/**
 * TOP CONTACT section (FV YouTube background reprise).
 */

.tdsi-top-contact {
	--tdsi-contact-gold: #c49d62;
	--tdsi-contact-paper: #eae8e4;
	--tdsi-contact-ink: #111;
	--tdsi-contact-pad-x: clamp(1.25rem, 4vw, 3rem);
	--tdsi-contact-max: 1080px;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(28rem, 62vh, 42rem);
	color: #EAE8E4;
	background: #111;
}

.tdsi-top-contact__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background: #000;
}

.tdsi-top-contact__bg::before,
.tdsi-top-contact__bg::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	z-index: 3;
	pointer-events: none;
}

.tdsi-top-contact__bg::before {
	top: 0;
	height: clamp(4.5rem, 12vh, 6.5rem);
	background: linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
}

.tdsi-top-contact__bg::after {
	bottom: 0;
	height: clamp(4.5rem, 12vh, 6.5rem);
	background: linear-gradient(0deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
}

.tdsi-top-contact__clip {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	background: #000;
	pointer-events: none;
}

.tdsi-top-contact__player {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.tdsi-top-contact__player.is-front {
	z-index: 2;
	opacity: 1;
}

.tdsi-top-contact__player iframe,
.tdsi-top-contact__player > div {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 0;
	width: 140vw !important;
	height: 78.75vw !important;
	min-width: 248.89vh !important;
	min-height: 140vh !important;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}

.tdsi-top-contact__slides,
.tdsi-top-contact__slide,
.tdsi-top-contact__fallback {
	position: absolute;
	inset: 0;
}

.tdsi-top-contact__slides {
	z-index: 3;
	pointer-events: none;
}

.tdsi-top-contact.is-yt-live .tdsi-top-contact__slides {
	z-index: 2;
}

.tdsi-top-contact__slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.tdsi-top-contact__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.7s ease, visibility 0s linear 0s;
}

.tdsi-top-contact__still {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.tdsi-top-contact.is-yt-live .tdsi-top-contact__still {
	opacity: 0;
}

.tdsi-top-contact__fallback {
	background:
		linear-gradient(120deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)),
		#1a1a1a;
}

.tdsi-top-contact__veil {
	position: absolute;
	inset: 0;
	z-index: 3;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 45%, rgba(0, 0, 0, 0.35) 100%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.45) 100%);
	pointer-events: none;
}

.tdsi-top-contact__hitblock {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: auto;
}

.tdsi-top-contact__inner {
	position: relative;
	z-index: 5;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(16rem, auto);
	align-items: center;
	column-gap: clamp(1.5rem, 4vw, 3rem);
	width: min(var(--tdsi-contact-max), calc(100% - (var(--tdsi-contact-pad-x) * 2)));
	max-width: var(--tdsi-contact-max);
	min-height: inherit;
	margin-inline: auto;
	padding: clamp(3.5rem, 8vh, 5.5rem) 0;
}

.tdsi-top-contact__title {
	margin: 0;
	color: var(--tdsi-contact-gold);
	font-family: "din-2014", sans-serif;
	font-size: clamp(3.25rem, 8vw, 5.75rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	transform: translateY(-7.5rem);
}

.tdsi-top-contact__action {
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	text-align: left;
	transform: translateY(7.5rem);
}

.tdsi-top-contact__lead {
	margin: 0;
	color: #EAE8E4;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.9;
	text-align: left;
}

.tdsi-top-contact__cta {
	display: inline-block;
	perspective: 1000px;
	color: inherit;
	text-decoration: none;
	vertical-align: top;
}

.tdsi-top-contact__cta-inner {
	position: relative;
	display: block;
	transform-style: preserve-3d;
	transform-origin: bottom center;
	transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
	.tdsi-top-contact__cta:hover .tdsi-top-contact__cta-inner {
		transform: rotateX(-90deg) translateY(50%);
	}
}

.tdsi-top-contact__cta-face {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 15rem;
	padding: 0.8rem 2.5rem;
	border-radius: 0;
	font-family: "din-2014", "Noto Sans JP", sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.tdsi-top-contact__cta-face--front {
	position: relative;
	background: var(--tdsi-contact-paper);
	color: var(--tdsi-contact-ink);
}

.tdsi-top-contact__cta-face--back {
	position: absolute;
	inset: 0;
	background: var(--tdsi-contact-paper);
	color: var(--tdsi-contact-gold);
	transform: rotateX(90deg) translateY(-100%);
	transform-origin: top center;
}

.tdsi-top-contact__cta-text {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	user-select: none;
}

.tdsi-top-contact__cta-arrow {
	display: inline-block;
	font-weight: 400;
}

@media (max-width: 759px) {
	.tdsi-top-contact {
		min-height: clamp(24rem, 70vh, 36rem);
	}

	.tdsi-top-contact__inner {
		grid-template-columns: 1fr;
		row-gap: 2.5rem;
		align-content: center;
		padding: clamp(3rem, 8vh, 4.5rem) 0;
	}

	.tdsi-top-contact__title {
		font-size: var(--tdsi-top-sp-display);
		transform: none;
	}

	.tdsi-top-contact__lead {
		font-size: var(--tdsi-top-sp-lead);
	}

	.tdsi-top-contact__action {
		justify-self: start;
		align-items: flex-start;
		text-align: left;
		transform: none;
	}

	.tdsi-top-contact__cta-face {
		min-width: 12rem;
		padding: 0.65rem 1.75rem;
		font-size: var(--tdsi-top-sp-cta);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tdsi-top-contact__slide {
		transition: none;
	}

	.tdsi-top-contact__cta-inner {
		transition: none;
	}

	.tdsi-top-contact__cta:hover .tdsi-top-contact__cta-inner {
		transform: none;
	}
}
