@charset "UTF-8";

/* ==========================================================================
   トップページ固有スタイル
   ========================================================================== */


/* ---------- Hero（スライダー） ---------- */

.top-hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	max-height: 960px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* スライダーコンテナ */
.top-hero__slider {
	position: absolute;
	inset: 0;
}

/* 各スライド — 絶対配置で重ね、opacityでクロスフェード */
.top-hero__slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1.2s ease;
	will-change: opacity, transform;
}

.top-hero__slide.is-active {
	opacity: 1;
	animation: kenBurns 6s ease forwards;
}

/* Ken Burns エフェクト — ゆっくりズーム＆微パン */
@keyframes kenBurns {
	from {
		transform: scale(1) translate(0, 0);
	}
	to {
		transform: scale(1.08) translate(-0.5%, -0.5%);
	}
}

/* スライドインジケーター（番号 + プログレスバー一体型） */
.top-hero__indicator {
	position: absolute;
	bottom: 40px;
	right: 40px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 2;
}

.top-hero__indicator-current,
.top-hero__indicator-total {
	font-family: var(--font-english);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1;
}

.top-hero__indicator-current {
	color: var(--color-text-on-dark);
}

.top-hero__indicator-bar {
	width: 60px;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.2);
	position: relative;
	overflow: hidden;
}

.top-hero__indicator-fill {
	position: absolute;
	inset: 0;
	width: 0;
	background-color: var(--color-text-on-dark);
	will-change: width;
}

.top-hero__indicator-fill.is-running {
	animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
	from { width: 0; }
	to { width: 100%; }
}

.top-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(18, 35, 56, 0.72);
}

.top-hero__content {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 0 20px;
	max-width: 800px;
}

.top-hero__en {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	font-family: var(--font-english);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 24px;
	opacity: 0;
	animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.top-hero__en::before,
.top-hero__en::after {
	content: '';
	display: block;
	width: 32px;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.3);
}

.top-hero__title {
	font-family: var(--font-heading);
	font-size: 2.75rem;
	font-weight: 700;
	color: var(--color-text-on-dark);
	line-height: 1.6;
	letter-spacing: 0.08em;
	opacity: 0;
	animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.top-hero__sub {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.65);
	letter-spacing: 0.15em;
	margin-top: 20px;
	opacity: 0;
	animation: fadeSlideUp 0.8s ease 0.7s forwards;
}

.top-hero__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 48px;
	opacity: 0;
	animation: fadeSlideUp 0.8s ease 0.9s forwards;
}

/* ボタン大サイズ */
.btn--lg {
	padding: 16px 40px;
	font-size: 0.9375rem;
}

/* スクロールインジケーター */
.top-hero__scroll {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	z-index: 1;
	opacity: 0;
	animation: fadeSlideUp 0.8s ease 1.2s forwards;
}

.top-hero__scroll-text {
	font-family: var(--font-english);
	font-size: 0.625rem;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
}

.top-hero__scroll-line {
	display: block;
	width: 1px;
	height: 48px;
	background-color: rgba(255, 255, 255, 0.3);
	animation: scrollLine 1.8s ease infinite;
}

@keyframes fadeSlideUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scrollLine {
	0% {
		transform: scaleY(0);
		transform-origin: top;
	}
	50% {
		transform: scaleY(1);
		transform-origin: top;
	}
	50.1% {
		transform: scaleY(1);
		transform-origin: bottom;
	}
	100% {
		transform: scaleY(0);
		transform-origin: bottom;
	}
}


/* ---------- About ---------- */

.top-about {
	padding: 120px 0 100px;
}

.top-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	margin-bottom: 100px;
}

.top-about__lead {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.8;
	color: var(--color-text);
	margin-bottom: 24px;
}

.top-about__desc {
	font-size: 0.9375rem;
	line-height: 2;
	margin-bottom: 32px;
	color: var(--color-text-light);
}

.top-about__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
}

.top-about__image::after {
	content: '';
	position: absolute;
	bottom: -8px;
	right: -8px;
	width: 100%;
	height: 100%;
	border: 2px solid var(--color-primary-light);
	border-radius: var(--radius-lg);
	z-index: -1;
}

.top-about__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* 3つの強み */
.top-strengths__heading {
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	color: var(--color-text);
	letter-spacing: 0.05em;
}

.top-strengths__heading-en {
	display: block;
	font-family: var(--font-english);
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 8px;
}

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

.top-strengths__item {
	padding: 36px 32px;
	background-color: var(--color-bg);
	border-top: 3px solid var(--color-primary);
	box-shadow: 0 2px 12px rgba(28, 53, 87, 0.06);
	transition: transform var(--transition), box-shadow var(--transition);
}

.top-strengths__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(28, 53, 87, 0.1);
}

.top-strengths__number {
	display: block;
	font-family: var(--font-english);
	font-size: 2.25rem;
	font-weight: 600;
	color: var(--color-primary-light);
	line-height: 1;
	margin-bottom: 20px;
	letter-spacing: -0.02em;
}

.top-strengths__title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.5;
	color: var(--color-text);
}

.top-strengths__text {
	font-size: 0.875rem;
	color: var(--color-text-light);
	line-height: 1.9;
}


/* ---------- Technology（ベントーグリッド） ---------- */

.top-technology {
	padding: 120px 0;
}

.top-technology__lead {
	text-align: center;
	font-size: 0.9375rem;
	color: var(--color-text-light);
	margin-top: -32px;
	margin-bottom: 48px;
	letter-spacing: 0.03em;
}

.top-technology__bento {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	gap: 12px;
}

/* 4枚均等グリッド（2×2） */
.top-technology__bento--equal {
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto auto;
}

.top-technology__item {
	display: block;
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	min-height: 240px;
}

.top-technology__item .card__image {
	position: absolute;
	inset: 0;
}

.top-technology__item .card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.top-technology__item:hover .card__image img {
	transform: scale(1.08);
}

.top-technology__item:hover {
	color: var(--color-text-on-dark);
}

/* 大きいカード（2列分）— ベントーグリッド用 */
.top-technology__item--large {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
	min-height: 492px;
}

.top-technology__item--large .card__title {
	font-size: 1.375rem;
}

/* 均等グリッド内ではすべて同じサイズ */
.top-technology__bento--equal .top-technology__item {
	min-height: 320px;
}


/* ---------- Products ---------- */

.top-products {
	padding: 120px 0;
}

.top-products__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.top-products__header .section-label {
	margin-bottom: 0;
}

.top-products__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 56px;
}

.top-products__more {
	text-align: center;
	margin-top: 48px;
}


/* ---------- Spec CTA ---------- */

.top-spec-cta {
	position: relative;
	background-color: var(--color-bg-dark);
	padding: 100px 0;
	overflow: hidden;
}

.top-spec-cta__bg {
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.02) 0px,
			rgba(255, 255, 255, 0.02) 1px,
			transparent 1px,
			transparent 80px
		);
}

.top-spec-cta__inner {
	position: relative;
}

.top-spec-cta__content {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}

.top-spec-cta__en {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-english);
	font-size: 0.75rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 20px;
}

.top-spec-cta__en::before,
.top-spec-cta__en::after {
	content: '';
	display: block;
	width: 24px;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.2);
}

.top-spec-cta__title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--color-text-on-dark);
	margin-bottom: 16px;
	letter-spacing: 0.06em;
	line-height: 1.6;
}

.top-spec-cta__text {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 40px;
	line-height: 1.8;
}


/* ---------- News ---------- */

.top-news {
	padding: 100px 0 120px;
}

.top-news__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.top-news__header .section-label {
	margin-bottom: 0;
}

.top-news__list {
	margin-top: 48px;
	border-top: 2px solid var(--color-primary);
}

.top-news__item {
	border-bottom: 1px solid var(--color-border);
}

.top-news__link {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 16px;
	transition: background-color var(--transition), padding-left var(--transition);
}

.top-news__link:hover {
	color: inherit;
	padding-left: 24px;
	background-color: var(--color-bg-alt);
}

.top-news__date {
	font-family: var(--font-number);
	font-size: 0.875rem;
	color: var(--color-text-light);
	flex-shrink: 0;
	letter-spacing: 0.05em;
}

.top-news__cat {
	display: inline-block;
	padding: 3px 14px;
	background-color: var(--color-primary);
	color: var(--color-text-on-dark);
	font-size: 0.6875rem;
	font-weight: 500;
	border-radius: var(--radius);
	flex-shrink: 0;
	white-space: nowrap;
}

.top-news__title {
	font-size: 0.9375rem;
	line-height: 1.6;
}

.top-news__more {
	text-align: center;
	margin-top: 32px;
}


/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media screen and (max-width: 768px) {

	/* Hero */
	.top-hero {
		min-height: 480px;
		max-height: 700px;
	}

	.top-hero__title {
		font-size: 1.625rem;
		letter-spacing: 0.04em;
		line-height: 1.7;
	}

	.top-hero__en {
		font-size: 0.625rem;
		letter-spacing: 0.2em;
		margin-bottom: 16px;
	}

	.top-hero__en::before,
	.top-hero__en::after {
		width: 20px;
	}

	.top-hero__indicator {
		bottom: 24px;
		right: 20px;
		gap: 8px;
	}

	.top-hero__indicator-current,
	.top-hero__indicator-total {
		font-size: 0.625rem;
	}

	.top-hero__indicator-bar {
		width: 40px;
	}

	.top-hero__sub {
		font-size: 0.8125rem;
		letter-spacing: 0.08em;
	}

	.top-hero__actions {
		flex-direction: column;
		gap: 12px;
		margin-top: 32px;
	}

	.top-hero__actions .btn {
		width: 100%;
		max-width: 280px;
	}

	.btn--lg {
		padding: 14px 32px;
		font-size: 0.875rem;
	}

	/* About */
	.top-about {
		padding: 80px 0 72px;
	}

	.top-about__grid {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-bottom: 64px;
	}

	.top-about__lead {
		font-size: 1.125rem;
	}

	.top-about__image::after {
		display: none;
	}

	.top-strengths__heading {
		font-size: 1.125rem;
		margin-bottom: 28px;
	}

	.top-strengths__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.top-strengths__item {
		padding: 28px 24px;
	}

	.top-strengths__number {
		font-size: 1.75rem;
		margin-bottom: 12px;
	}

	.top-strengths__title {
		font-size: 1rem;
	}

	/* Technology ベントーグリッド */
	.top-technology {
		padding: 80px 0;
	}

	.top-technology__lead {
		font-size: 0.875rem;
		margin-top: -20px;
		margin-bottom: 32px;
	}

	.top-technology__bento {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 8px;
	}

	.top-technology__bento--equal {
		grid-template-columns: 1fr 1fr;
	}

	.top-technology__item--large {
		grid-column: 1;
		grid-row: auto;
		min-height: 260px;
	}

	.top-technology__item--large .card__title {
		font-size: 1.125rem;
	}

	.top-technology__item {
		min-height: 180px;
	}

	.top-technology__bento--equal .top-technology__item {
		min-height: 200px;
	}

	/* Products */
	.top-products {
		padding: 80px 0;
	}

	.top-products__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.top-products__grid {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		margin-top: 40px;
	}

	.top-products__more {
		margin-top: 32px;
	}

	/* Spec CTA */
	.top-spec-cta {
		padding: 72px 0;
	}

	.top-spec-cta__title {
		font-size: 1.375rem;
	}

	.top-spec-cta__text {
		font-size: 0.875rem;
		margin-bottom: 32px;
	}

	/* News */
	.top-news {
		padding: 80px 0;
	}

	.top-news__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.top-news__list {
		margin-top: 40px;
	}

	.top-news__link {
		flex-wrap: wrap;
		gap: 8px 16px;
		padding: 20px 8px;
	}

	.top-news__title {
		width: 100%;
		font-size: 0.875rem;
	}
}

@media screen and (max-width: 480px) {
	.top-products__grid {
		grid-template-columns: 1fr;
	}

	.top-technology__item {
		min-height: 160px;
	}

	.top-technology__item--large {
		min-height: 220px;
	}

	.top-technology__bento--equal {
		grid-template-columns: 1fr;
	}

	.top-technology__bento--equal .top-technology__item {
		min-height: 180px;
	}
}
