/*
Theme Name: Lightning Child UTS v2
Theme URI: https://under-the-sky-studio.example.com/
Author: Under The Sky Studio
Description: Lightning child theme for よりいウェディング brand top page.
Template: lightning
Version: 2.0.1
Text Domain: lightning-child-uts-v2
*/

.uts-brand-home {
	--uts-ink: #292b25;
	--uts-muted: #6c6f64;
	--uts-white: #fffdf8;
	--uts-cream: #f7f1e7;
	--uts-beige: #ded0bc;
	--uts-moss: #596a55;
	--uts-moss-dark: #374235;
	--uts-line: rgba(89, 106, 85, 0.18);
	background: var(--uts-white);
	color: var(--uts-ink);
	font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
	line-height: 1.9;
	letter-spacing: 0;
	overflow: hidden;
}

.uts-brand-home *,
.uts-brand-home *::before,
.uts-brand-home *::after {
	box-sizing: border-box;
}

.uts-brand-home img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.uts-brand-home a {
	color: inherit;
}

.uts-brand-home h1,
.uts-brand-home h2,
.uts-brand-home h3,
.uts-brand-home p {
	margin: 0;
	overflow-wrap: anywhere;
}

.uts-brand-home h1,
.uts-brand-home h2,
.uts-brand-home h3 {
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
}

.uts-container {
	width: min(1120px, calc(100% - 34px));
	margin: 0 auto;
}

.uts-section {
	padding: 78px 0;
}

.uts-eyebrow,
.uts-brand-mark,
.uts-service-card__number,
.uts-text-link,
.uts-button {
	font-family: "Helvetica Neue", Arial, sans-serif;
}

.uts-eyebrow {
	margin-bottom: 14px;
	color: var(--uts-moss);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.uts-section-heading {
	margin-bottom: 34px;
}

.uts-section-heading h2 {
	max-width: 760px;
	font-size: clamp(1.7rem, 7vw, 3.1rem);
}

.uts-section-heading--split {
	display: grid;
	gap: 22px;
}

.uts-section-heading--split p {
	max-width: 620px;
	color: var(--uts-muted);
	font-size: 0.94rem;
}

.uts-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100svh;
	padding: 108px 17px 54px;
	background-position: center;
	background-size: cover;
	color: #ffffff;
	isolation: isolate;
}

.uts-hero__shade {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(24, 29, 24, 0.16) 0%, rgba(24, 29, 24, 0.18) 34%, rgba(24, 29, 24, 0.72) 100%),
		linear-gradient(90deg, rgba(24, 29, 24, 0.58) 0%, rgba(24, 29, 24, 0.2) 58%, rgba(24, 29, 24, 0.04) 100%);
}

.uts-hero__inner {
	width: min(980px, 100%);
	margin: 0 auto;
	padding-bottom: 8px;
}

.uts-brand-mark {
	margin-bottom: 22px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.uts-hero h1 {
	max-width: 760px;
	font-size: clamp(2rem, 8.4vw, 4.6rem);
	text-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.uts-hero__lead {
	margin-top: 26px;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(0.96rem, 3.4vw, 1.18rem);
}

.uts-hero__buttons,
.uts-contact__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 34px;
}

.uts-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.uts-button:hover,
.uts-button:focus-visible,
.uts-text-link:hover,
.uts-text-link:focus-visible {
	transform: translateY(-1px);
}

.uts-button--light {
	background: rgba(255, 253, 248, 0.94);
	color: var(--uts-moss-dark);
}

.uts-button--outline {
	border-color: rgba(255, 255, 255, 0.62);
	color: #ffffff;
}

.uts-button--green {
	background: var(--uts-moss);
	color: #ffffff;
	box-shadow: 0 16px 32px rgba(89, 106, 85, 0.18);
}

.uts-button--beige {
	background: var(--uts-cream);
	color: var(--uts-moss-dark);
}

.uts-services {
	background: var(--uts-white);
}

.uts-service-list {
	display: grid;
	gap: 42px;
}

.uts-service-card {
	display: grid;
	gap: 20px;
}

.uts-service-card__image {
	display: block;
	aspect-ratio: 1.28 / 1;
	background: var(--uts-cream);
	overflow: hidden;
	text-decoration: none;
}

.uts-service-card__body {
	padding: 0 4px;
}

.uts-service-card__number {
	margin-bottom: 14px;
	color: var(--uts-beige);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.uts-service-card h3 {
	color: var(--uts-ink);
	font-size: clamp(1.8rem, 8vw, 3rem);
}

.uts-service-card__subtitle {
	margin-top: 4px;
	color: var(--uts-moss);
	font-size: 0.95rem;
}

.uts-service-card__copy {
	margin-top: 22px;
	color: var(--uts-muted);
	font-size: 1rem;
}

.uts-text-link {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-top: 26px;
	color: var(--uts-moss-dark);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-decoration: none;
}

.uts-text-link::after {
	width: 54px;
	height: 1px;
	background: currentColor;
	content: "";
}

.uts-gallery {
	position: relative;
	background:
		linear-gradient(180deg, rgba(247, 241, 231, 0.96), rgba(251, 248, 241, 0.98)),
		linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(89, 106, 85, 0.09) calc(50% - 1px), rgba(89, 106, 85, 0.09) 50%, transparent 50%);
}

.uts-gallery .uts-section-heading {
	margin-bottom: 46px;
}

.uts-gallery-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	align-items: stretch;
}

.uts-gallery-item {
	position: relative;
	aspect-ratio: 1.18 / 1;
	margin: 0;
	background: #fffdf8;
	box-shadow: 0 18px 40px rgba(55, 66, 53, 0.09);
	overflow: hidden;
}

.uts-gallery-item img {
	filter: saturate(0.88) contrast(0.98);
	transition: transform 0.7s ease, filter 0.7s ease;
}

.uts-gallery-item:hover img,
.uts-gallery-item:focus-within img {
	filter: saturate(0.98) contrast(1);
	transform: scale(1.035);
}

.uts-gallery-item figcaption {
	position: absolute;
	right: 14px;
	bottom: 12px;
	left: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 10px;
	color: rgba(255, 255, 255, 0.92);
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.uts-gallery-item figcaption::before {
	width: 28px;
	height: 1px;
	background: currentColor;
	content: "";
	opacity: 0.74;
}

.uts-gallery-item::after {
	position: absolute;
	inset: auto 0 0;
	height: 42%;
	background: linear-gradient(180deg, transparent, rgba(31, 36, 30, 0.48));
	content: "";
	pointer-events: none;
}

.uts-gallery-item--main,
.uts-gallery-item--wide {
	aspect-ratio: 1.28 / 1;
}

.uts-gallery-item--portrait {
	aspect-ratio: 0.86 / 1;
}

.uts-gallery-item--landscape {
	aspect-ratio: 1.48 / 1;
}

.uts-gallery-item--detail {
	aspect-ratio: 1 / 1;
}

.uts-gallery-item--small {
	align-self: end;
	aspect-ratio: 1 / 1;
}

.uts-gallery-item--detail,
.uts-gallery-item--small {
	box-shadow: 0 16px 32px rgba(55, 66, 53, 0.08);
}

.uts-gallery-item:nth-child(2) img {
	object-position: 50% 45%;
}

.uts-gallery-item:nth-child(4) img {
	object-position: 28% center;
}

.uts-gallery-item:nth-child(6) img {
	object-position: center 38%;
}

.uts-gallery-item:nth-child(7) img {
	object-position: center center;
}

.uts-contact {
	padding: 92px 17px 104px;
	background: var(--uts-white);
	text-align: center;
}

.uts-contact__inner {
	width: min(720px, 100%);
	margin: 0 auto;
	padding: 48px 0;
	border-top: 1px solid var(--uts-line);
	border-bottom: 1px solid var(--uts-line);
}

.uts-contact h2 {
	font-size: clamp(1.7rem, 7vw, 3rem);
}

@media (min-width: 700px) {
	.uts-container {
		width: min(1180px, calc(100% - 64px));
	}

	.uts-section {
		padding: 112px 0;
	}

	.uts-hero {
		padding: 128px 48px 78px;
	}

	.uts-hero__buttons,
	.uts-contact__buttons {
		flex-direction: row;
		justify-content: flex-start;
	}

	.uts-contact__buttons {
		justify-content: center;
	}

	.uts-button {
		min-width: 190px;
	}

	.uts-section-heading--split {
		grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
		align-items: end;
	}

	.uts-service-list {
		gap: 74px;
	}

	.uts-service-card {
		grid-template-columns: minmax(0, 1.52fr) minmax(260px, 0.68fr);
		gap: 42px;
		align-items: center;
	}

	.uts-service-card:nth-child(even) {
		grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.52fr);
	}

	.uts-service-card:nth-child(even) .uts-service-card__image {
		order: 2;
	}

	.uts-service-card__image {
		aspect-ratio: 16 / 8.6;
	}

	.uts-gallery-grid {
		grid-template-columns: repeat(12, 1fr);
		grid-auto-rows: 74px;
		gap: 18px;
	}

	.uts-gallery-item {
		grid-column: span 4;
		grid-row: span 4;
		aspect-ratio: auto;
	}

	.uts-gallery-item--main {
		grid-column: span 8;
		grid-row: span 5;
		aspect-ratio: auto;
	}

	.uts-gallery-item--portrait {
		grid-column: span 4;
		grid-row: span 5;
		aspect-ratio: auto;
	}

	.uts-gallery-item--landscape,
	.uts-gallery-item--wide {
		grid-column: span 6;
		grid-row: span 4;
		aspect-ratio: auto;
	}

	.uts-gallery-item--small,
	.uts-gallery-item--detail {
		grid-column: span 4;
		grid-row: span 3;
		aspect-ratio: auto;
	}
}

@media (min-width: 1024px) {
	.uts-hero {
		background-position: center center;
	}

	.uts-service-card__body {
		padding: 0 18px;
	}

	.uts-gallery-grid {
		padding-top: 18px;
		grid-auto-rows: 86px;
	}

	.uts-gallery-item--main {
		grid-column: 1 / 8;
		grid-row: 1 / span 5;
	}

	.uts-gallery-item:nth-child(2) {
		grid-column: 8 / 13;
		grid-row: 1 / span 5;
	}

	.uts-gallery-item:nth-child(3) {
		grid-column: 1 / 5;
		grid-row: 6 / span 3;
	}

	.uts-gallery-item:nth-child(4) {
		grid-column: 5 / 9;
		grid-row: 6 / span 3;
	}

	.uts-gallery-item:nth-child(5) {
		grid-column: 1 / 7;
		grid-row: 9 / span 4;
	}

	.uts-gallery-item:nth-child(6) {
		grid-column: 9 / 13;
		grid-row: 6 / span 3;
	}

	.uts-gallery-item:nth-child(7) {
		grid-column: 7 / 13;
		grid-row: 9 / span 4;
	}
}

@media (max-width: 699px) {
	.uts-container {
		width: min(100% - 28px, 1120px);
	}

	.uts-section {
		padding: 68px 0;
	}

	.uts-hero {
		min-height: 100svh;
		padding: 96px 14px 42px;
		background-position: 58% center;
	}

	.uts-brand-mark {
		margin-bottom: 18px;
	}

	.uts-hero__lead {
		margin-top: 22px;
	}

	.uts-gallery-grid {
		gap: 10px;
	}
}
