/**
 * Shared CONTACT CV banner.
 */

.tdsi-cv-contact {
	--tdsi-cv-gold: #c49d62;
	background: #eae8e4;
	padding: clamp(3.5rem, 8vh, 6rem) 0;
	scroll-margin-top: 5.75rem;
}

.tdsi-cv-contact__inner {
	width: min(1080px, calc(100% - 2.5rem));
	margin: 0 auto;
}

.tdsi-cv-contact__btn {
	position: relative;
	display: block;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 2800 / 720;
	min-height: 12.5rem;
	color: #fff;
	text-decoration: none;
}

.tdsi-cv-contact__btn:hover,
.tdsi-cv-contact__btn:focus-visible {
	color: #fff;
}

.tdsi-cv-contact__bg {
	position: absolute;
	inset: 0;
	background-color: #111;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.tdsi-cv-contact__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.76);
	transition: background 0.7s ease;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__bg::after,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__bg::after {
	background: rgba(0, 0, 0, 0.62);
}

.tdsi-cv-contact__shine {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		115deg,
		transparent 38%,
		rgba(255, 255, 255, 0.08) 50%,
		transparent 62%
	);
	transform: translateX(-120%);
	opacity: 0;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__shine,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__shine {
	animation: tdsi-cv-sheen 1.15s ease-out 1;
}

.tdsi-cv-contact__frame {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.tdsi-cv-contact__frame-edge {
	position: absolute;
	background: var(--tdsi-cv-gold);
}

.tdsi-cv-contact__frame-edge--t,
.tdsi-cv-contact__frame-edge--b {
	left: 0;
	width: 0;
	height: 2px;
}

.tdsi-cv-contact__frame-edge--r,
.tdsi-cv-contact__frame-edge--l {
	top: 0;
	width: 2px;
	height: 0;
}

.tdsi-cv-contact__frame-edge--t {
	top: 0;
	transition: width 0.22s ease 0.66s;
}

.tdsi-cv-contact__frame-edge--r {
	right: 0;
	transition: height 0.22s ease 0.44s;
}

.tdsi-cv-contact__frame-edge--b {
	right: 0;
	bottom: 0;
	left: auto;
	transition: width 0.22s ease 0.22s;
}

.tdsi-cv-contact__frame-edge--l {
	left: 0;
	top: auto;
	bottom: 0;
	transition: height 0.22s ease;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__frame-edge--t,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__frame-edge--t {
	width: 100%;
	transition-delay: 0s;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__frame-edge--r,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__frame-edge--r {
	height: 100%;
	transition-delay: 0.22s;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__frame-edge--b,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__frame-edge--b {
	width: 100%;
	transition-delay: 0.44s;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__frame-edge--l,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__frame-edge--l {
	height: 100%;
	transition-delay: 0.66s;
}

.tdsi-cv-contact__content {
	position: relative;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: inherit;
	height: 100%;
	padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
	text-align: center;
	opacity: 0;
	transform: translateY(0.7rem);
	transition: opacity 0.85s ease, transform 0.85s ease;
}

.tdsi-cv-contact.is-inview .tdsi-cv-contact__content {
	opacity: 1;
	transform: none;
}

.tdsi-cv-contact__title {
	display: block;
	margin: 0.875rem 0 0.75rem;
	font-family: "din-2014", sans-serif;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	color: #fff;
	transition: letter-spacing 0.7s ease;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__title,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__title {
	letter-spacing: 0.18em;
}

.tdsi-cv-contact__lead {
	display: block;
	margin: 0;
	max-width: 36rem;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 2;
	opacity: 0.86;
	transition: opacity 0.7s ease;
	text-align: left;
}

.tdsi-cv-contact__btn:hover .tdsi-cv-contact__lead,
.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__lead {
	opacity: 1;
}

@keyframes tdsi-cv-sheen {
	0% {
		opacity: 0;
		transform: translateX(-120%);
	}
	18% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translateX(120%);
	}
}

@media (max-width: 859px) {
	.tdsi-cv-contact__content {
		padding: clamp(3rem, 6vw, 4.5rem) 3rem;
	}
}

@media (max-width: 639px) {
	.tdsi-cv-contact__lead br {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tdsi-cv-contact__content,
	.tdsi-cv-contact__title,
	.tdsi-cv-contact__lead,
	.tdsi-cv-contact__bg::after,
	.tdsi-cv-contact__frame-edge {
		transition: none;
	}

	.tdsi-cv-contact__content {
		opacity: 1;
		transform: none;
	}

	.tdsi-cv-contact__btn:hover .tdsi-cv-contact__shine,
	.tdsi-cv-contact__btn:focus-visible .tdsi-cv-contact__shine {
		animation: none;
	}
}
