/* ===========14=============================================================
   top.css - トップページ専用スタイル（.page-top で囲む）
   ========================================================================== */

/* ---- hero ------------------------------------------------------------- */

.page-top .hero {
	position: relative;
}

.page-top .hero__media {
	position: relative;
	overflow: hidden;
	height: calc(100vh - var(--header-height));
	height: calc(100dvh - var(--header-height));
}

.page-top .hero__bg-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	opacity: 0;
	transition: opacity 1.8s ease;
}

.page-top .hero__bg-slide.is-active {
	opacity: 1;
}

.page-top .hero__caption {
	position: absolute;
	inset: 0;
	z-index: 2;
	container-type: inline-size;
	display: flex;
	align-items: center;
	padding: 40px clamp(24px, 6vw, 96px);
}

.page-top .hero__caption::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: #ffffff;
	background-image: url("../../images/common/grain_noise.png"),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.55) 100%),
		url("../../images/common/top_main_background.png");
	background-repeat: repeat, no-repeat, no-repeat;
	background-size: 160px 160px, cover, cover;
	background-position: 0 0, center 18%, center 18%;
	background-attachment: scroll, scroll, fixed;
	background-blend-mode: overlay, normal, normal;
	mask-image: linear-gradient(
		to bottom,
		transparent 0,
		rgba(0, 0, 0, 0.03) 10%,
		rgba(0, 0, 0, 0.5) 60%,
		rgba(0, 0, 0, 1.0) 95%,
		#000 600px
	);
	-webkit-mask-image: linear-gradient(
		to bottom,
		transparent 0,
		rgba(0, 0, 0, 0.03) 10%,
		rgba(0, 0, 0, 0.5) 60%,
		rgba(0, 0, 0, 1.0) 95%,
		#000 600px
	);
}

.page-top .hero__caption-inner {
	display: flex;
	flex-direction: column;
}

@keyframes hero-copy-in {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.page-top .hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-jp);
	font-weight: 400;
	font-size: 20px;
	letter-spacing: 0.1em;
	color: var(--color-heading);
	margin: 0 0 8px;
	opacity: 0;
	animation: hero-copy-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.page-top .hero__eyebrow-icon {
	width: 21px;
	height: 21px;
	flex-shrink: 0;
}

.page-top .hero__eyebrow-en {
	font-family: var(--font-en);
}

.page-top .hero__headline {
	font-family: var(--font-jp);
	font-weight: 700;
	font-size: clamp(32px, 6.5cqw, 64px);
	line-height: 1.5;
	letter-spacing: 0.04em;
	color: var(--color-heading);
	margin: 0;
	opacity: 0;
	animation: hero-copy-in 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.page-top .hero__headline-accent {
	background: linear-gradient(90deg, #00bfd3 0%, #3a4a6b 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* ---- about -------------------------------------------------------------- */

.page-top .about {
	padding-block: 100px;
	background-color: #ffffff;
	background-image: url("../../images/common/grain_noise.png"),
		linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
		url("../../images/common/top_main_background.png");
	background-size: 160px 160px, cover, cover;
	background-position: 0 0, center 18%, center 32%;
	background-repeat: repeat, no-repeat, no-repeat;
	background-blend-mode: overlay, normal, normal;
}

.page-top .about__text {
	max-width: 965px;
}

.page-top .about__body {
	font-size: 18px;
	letter-spacing: 0.05em;
	line-height: 2.4;
}

.page-top .about__body strong {
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.12em;
}

.page-top .about__body--spacer {
	line-height: 1.2;
}

/* ---- business ------------------------------------------------------------ */

.page-top .growth-band {
	position: relative;
	background-color: #eafafb;
	background-image: url("../../images/common/grain_noise.png"),
		linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.55) 88%, #ffffff 99%),
		linear-gradient(to bottom, #eafafb 0%, #def4f7 22%, #d3f0f4 45%, #a3e2ec 70%, #74d0e3 85%, #74d0e3 92%, #ffffff 100%);
	background-repeat: repeat, no-repeat, no-repeat;
	background-size: 160px 160px, 100% 100%, 100% 100%;
	background-blend-mode: overlay, normal, normal;
}

.page-top .business {
	position: relative;
	padding-block: 100px;
}

.page-top .business::after,
.page-top .strength::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background-image: repeating-linear-gradient(
		to right,
		var(--color-primary) 0,
		var(--color-primary) 2px,
		transparent 2px,
		transparent 16px
	);
}

.page-top .business__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 60px;
	row-gap: 56px;
}

.page-top .business__card {
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-top .business__figure {
	aspect-ratio: 530 / 370;
	margin-bottom: 28px;
}

.page-top .business__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-top .business__title {
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
	padding-inline: 32px;
}

.page-top .business__body {
	font-size: 16px;
	line-height: 2;
	letter-spacing: 0.03em;
	padding-inline: 32px;
	padding-bottom: 32px;
}

.page-top .business__cta {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

/* ---- strength ------------------------------------------------------------ */

.page-top .strength {
	position: relative;
	padding-block: 100px;
}

.page-top .strength__lead {
	font-size: 16px;
	line-height: 2;
	letter-spacing: 0.1em;
	margin-bottom: 40px;
}

.page-top .strength__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.page-top .strength__card {
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(5px);
	border: 1px solid var(--color-primary);
	border-radius: 20px;
	padding: 40px 30px;
	min-height: 372px;
}

.page-top .strength__art {
	position: absolute;
	top: -10%;
	right: -15%;
	width: 70%;
	height: auto;
	opacity: 0.5;
	pointer-events: none;
}

.page-top .strength__number {
	position: relative;
	font-family: var(--font-en);
	font-weight: 500;
	font-size: 40px;
	letter-spacing: 0.06em;
	color: var(--color-gray-light);
	margin-bottom: 8px;
}

.page-top .strength__label {
	position: relative;
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.06em;
	color: var(--color-primary);
	margin-bottom: 28px;
}

.page-top .strength__heading {
	position: relative;
	display: flex;
	flex-direction: column;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.06em;
	color: var(--color-heading);
	margin-bottom: 16px;
}

.page-top .strength__body {
	position: relative;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.85;
	letter-spacing: 0.06em;
}

/* ---- numbers ------------------------------------------------------------- */

.page-top .numbers {
	position: relative;
	padding-block: 100px;
}

.page-top .numbers__brand {
	font-family: var(--font-en);
	font-weight: 600;
}

.page-top .numbers__note {
	margin-top: 24px;
	font-size: 13px;
	color: var(--color-subtext);
	text-align: right;
}

.page-top .numbers__group {
	margin-top: 40px;
}

.page-top .numbers__group-label {
	display: flex;
	align-items: center;
	gap: 24px;
	text-align: center;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.1em;
	margin-bottom: 24px;
}

.page-top .numbers__group-label::before,
.page-top .numbers__group-label::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--color-primary);
}

.page-top .numbers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.page-top .stat-card {
	background: var(--color-bg);
	border-radius: 15px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 260px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.page-top .stat-card__title {
	position: relative;
	align-self: stretch;
	margin-inline: -20px;
	text-align: left;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.1em;
	padding-inline: 10px;
	padding-bottom: 10px;
}

.page-top .stat-card__title::after {
	content: "";
	position: absolute;
	left: 0;
	width: 80%;
	bottom: 0;
	height: 3px;
	background-image: radial-gradient(circle, var(--color-primary) 1.5px, transparent 1.6px);
	background-repeat: repeat-x;
	background-size: 12px 3px;
	background-position: left center;
}

.page-top .stat-card__icon {
	height: 100px;
	object-fit: none;
}

.page-top .stat-card__value {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	flex-wrap: nowrap;
}

.page-top .stat-card__value:has(.stat-card__note) {
	flex-wrap: wrap;
}

.page-top .stat-card__prefix,
.page-top .stat-card__unit {
	font-weight: 700;
	font-size: 20px;
	white-space: nowrap;
}

.page-top .stat-card__more {
	margin-left: 0.3em;
	font-size: 0.7em;
}

.page-top .stat-card__number {
	font-family: var(--font-en);
	font-weight: 700;
	font-size: clamp(40px, 5vw, 70px);
	color: var(--color-primary);
	line-height: 1;
}

.page-top .stat-card__plus {
	color: var(--color-primary);
	font-size: 22px;
}

.page-top .stat-card__note {
	flex-basis: 100%;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 400;
	color: var(--color-subtext);
	text-align: center;
}

.page-top .stat-card__suffix {
	font-weight: 700;
	font-size: 16px;
	color: var(--color-subtext);
}

/* ---- company -------------------------------------------------------------- */

.page-top .company {
	position: relative;
	padding-block: 150px;
}

.page-top .company::before {
	content: "";
	position: absolute;
	top: 52px;
	left: 0;
	width: 71.9vw;
	height: 760px;
	border-radius: 0 28px 28px 0;
	background-color: #ffffff;
	background-image: url("../../images/common/grain_noise.png"),
		linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
		url("../../images/common/top_main_background.png");
	background-repeat: repeat, no-repeat, no-repeat;
	background-size: 160px 160px, cover, cover;
	background-position: 0 0, center 18%, center 18%;
	background-blend-mode: overlay, normal, normal;
	z-index: 0;
	pointer-events: none;
}

.page-top .company__inner {
	position: relative;
	z-index: 1;
	display: flex;
	gap: clamp(24px, 5vw, 64px);
	align-items: flex-start;
	flex-wrap: wrap;
}

.page-top .company__text {
	flex: 1 1 320px;
}

.page-top .company__lead {
	font-size: 16px;
	line-height: 2;
	letter-spacing: 0.1em;
	margin-bottom: 32px;
}

.page-top .company__cards {
	flex: 1 1 560px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.page-top .company__card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--color-bg);
	border: 1px solid var(--color-primary);
	border-radius: 20px;
	padding: 30px 40px;
	min-height: 164px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-top .company__card:hover {
	box-shadow: var(--shadow-cta);
	transform: translateY(-2px);
}

.page-top .company__card-trace {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
}

.page-top .company__card-trace-rect {
	fill: none;
	stroke: var(--color-primary);
	stroke-width: 2;
	stroke-dashoffset: var(--trace-length, 0);
}

.page-top .company__card:hover .company__card-trace-rect {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.25s linear;
}

.page-top .company__card-label {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 16px;
}

.page-top .company__card-en {
	font-family: var(--font-en);
	font-weight: 500;
	font-size: 30px;
	letter-spacing: 0.18em;
	color: var(--color-heading);
}

.page-top .company__card-ja {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.06em;
	color: var(--color-heading);
}

.page-top .company__card-body {
	font-size: 14px;
	line-height: 1.7;
	letter-spacing: 0.06em;
	color: var(--color-text);
}

.page-top .company__card-arrow {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
}

/* ---- news ----------------------------------------------------------------- */

.page-top .news {
	padding-block: 100px;
}

.page-top .news__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}

.page-top .news__head .section-heading__title {
	margin-bottom: 0;
}

.page-top .news__item {
	display: flex;
	align-items: center;
	gap: 55px;
	padding: 30px 0;
	border-bottom: 1px solid var(--color-border);
}

.page-top .news__date {
	font-family: var(--font-en);
	font-size: 16px;
	letter-spacing: 0.1em;
	color: var(--color-subtext);
	flex-shrink: 0;
}

.page-top .news__title {
	flex: 1;
	font-weight: 500;
	font-size: 16px;
	letter-spacing: 0.1em;
	color: var(--color-heading);
}

.page-top .news__arrow {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
}

.page-top .news__cta {
	display: flex;
	justify-content: flex-end;
}

/* ==========================================================================
   レスポンシブ対応（メディアクエリ）
   ========================================================================== */

/* ---- レスポンシブ（〜900px） ---- */

@media (max-width: 900px) {
	.page-top .hero__caption {
		padding: 28px 24px;
	}

	.page-top .hero__eyebrow {
		font-size: 16px;
	}

	.page-top .hero__headline {
		font-size: 26px;
	}

	.page-top .hero__caption::before {
		mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 15%, rgba(0, 0, 0, 0.7) 32%, #000 42%);
		-webkit-mask-image: linear-gradient(
			to bottom,
			transparent 0%,
			rgba(0, 0, 0, 0.1) 33%,
			rgba(0, 0, 0, 0.7) 66%,
			rgba(0, 0, 0, 1.0) 95%,
			#000 600px
			);
	}

	.page-top .business__grid {
		grid-template-columns: 1fr;
		row-gap: 16px;
	}

	.page-top .business__figure {
		aspect-ratio: 530 / 280;
		margin-bottom: 15px;
	}

	.page-top .business__title {
		margin-bottom: 10px;
		padding-inline: 20px;
		font-size: 16px;
	}

	.page-top .business__body {
		padding-inline: 20px;
		padding-bottom: 20px;
		font-size: 12px;
	}

	.page-top .business__card {
		border-radius: 15px;
	}

	.page-top .strength__grid {
		grid-template-columns: 1fr;
	}

	.page-top .numbers__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.page-top .about__body {
		font-size: 16px;
	}

	.page-top .about__body strong {
		font-size: 20px;
	}

	.page-top .strength__lead {
		font-size: 13px;
        line-height: 1.8;
	}

	.page-top .strength__card {
		padding: 25px 20px;
		min-height: unset;
	}

	.page-top .strength__number {
		font-size: 25px;
		margin-bottom: 0;
	}

	.page-top .strength__label {
		font-size: 18px;
		margin-bottom: 15px;
	}

	.page-top .strength__heading {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.page-top .strength__body {
		font-size: 12px;
	}

	.page-top .numbers__group-label {
		font-size: 14px;
		margin-bottom: 15px;
	}

	.page-top .stat-card {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 12px 16px;
		min-height: unset;
		text-align: left;
	}

	.page-top .stat-card__title {
		flex-basis: 100%;
		font-size: 14px;
	}

	.page-top .stat-card__icon {
		width: 70px;
		height: 60px;
		object-fit: contain;
		order: 2;
		flex-shrink: 0;
		margin-left: auto;
		align-self: center;
	}

	.page-top .stat-card__value {
		order: 1;
		max-width: calc(100% - 86px);
		justify-content: flex-start;
	}

	.page-top .stat-card__prefix, .page-top .stat-card__unit {
		font-size: 18px;
	}

	.page-top .stat-card__plus {
		font-size: 20px;
	}

	.page-top .stat-card__suffix {
		font-size: 14px;
	}

	.page-top .stat-card__note {
		order: 3;
		flex-basis: 100%;
		min-width: 0;
		text-align: left;
		font-size: 9px;
	}

	.page-top .company::before {
		width: 90vw;
    	height: 95%;
		border-radius: 0 20px 20px 0;
	}

	.page-top .company__lead {
		font-size: 13px;
		line-height: 1.8;
	}

	.page-top .company__inner {
		gap: 0;
	}

	.page-top .company__text {
		display: contents;
	}

	.page-top .company__text > .section-heading__eyebrow {
		order: 1;
		flex-basis: 100%;
	}

	.page-top .company__text > .section-heading__title {
		order: 2;
		flex-basis: 100%;
	}

	.page-top .company__text > .company__lead {
		order: 3;
		flex-basis: 100%;
	}

	.page-top .company__cards {
		order: 4;
	}

	.page-top .company__text > .btn--cta {
		order: 5;
		justify-content: center;
		margin: 32px auto 0;
	}

	.page-top .company__card {
		flex-wrap: wrap;
	}

	.page-top .company__card-text {
		display: contents;
	}

	.page-top .company__card-label {
		order: 1;
		margin-bottom: 0;
	}

	.page-top .company__card-arrow {
		order: 2;
	}

	.page-top .company__card-body {
		order: 3;
		flex-basis: 100%;
		margin-top: 0px;
		font-size: 12px;
	}

	.page-top .company__card-en {
		font-size: 28px;
	}

	.page-top .company__card-ja {
		font-size: 14px;
	}

	.page-top .news__date {
		font-size: 12px;
	}

	.page-top .news__title {
		font-size: 12px;
	}

	.page-top .about {
		padding-block: 60px;
	}

	.page-top .business {
		padding-block: 60px;
	}

	.page-top .strength {
		padding-block: 60px;
	}

	.page-top .numbers {
		padding-block: 60px;
	}

	.page-top .company {
		padding-block: 90px;
	}

	.page-top .news {
		padding-block: 60px;
	}

	.page-top .news .container {
		display: flex;
		flex-direction: column;
	}

	.page-top .news__head {
		display: contents;
	}

	.page-top .news__head-text {
		order: 1;
	}

	.page-top .news__list {
		order: 2;
	}

	.page-top .news__cta {
		order: 3;
		justify-content: center;
		margin-top: 32px;
	}
}

/* ---- レスポンシブ（〜700px） ---- */

@media (max-width: 700px) {
	.page-top .company__card {
		padding: 20px;
		gap: 15px;
	}

	.page-top .company__card-label {
		flex-direction: column;
		align-items: flex-start;
		gap: 0px;
	}

	.page-top .company__card-en {
		font-size: 22px;
	}

	.page-top .company__card-ja {
		font-size: 14px;
	}

	.page-top .news__item {
		flex-wrap: wrap;
		gap: 2px 0;
		padding: 20px 0;
	}

	.page-top .news__title {
		flex-basis: 100%;
		order: 2;
	}

	.page-top .news__arrow {
		display: none;
	}

	.page-top .news__cta {
		justify-content: center;
	}
}

/* ---- レスポンシブ（〜600px） ---- */

@media (max-width: 600px) {
	.page-top .about__body {
		font-size: 13px;
		line-height: 1.8;
	}

	.page-top .about__body strong {
		font-size: 18px;
	}

	.page-top .about__body--spacer {
		line-height: 0.8;
	}
}

/* ---- レスポンシブ（〜520px） ---- */

@media (max-width: 520px) {
	.page-top .numbers__grid {
		grid-template-columns: 1fr;
	}
}

/* ---- モーション設定（prefers-reduced-motion） ---- */

@media (prefers-reduced-motion: reduce) {
	.page-top .hero__eyebrow,
	.page-top .hero__headline {
		opacity: 1;
		animation: none;
	}

	.page-top .company__card-trace-rect {
		transition: none;
	}
}
