@charset "UTF-8";
/* =====================================================================
   TOP 別レイアウト案 3（index4.html）
   事業概要：グラデーション背景がフルスクリーンに固定され、右のテキストだけがスクロールする。
   開発事業の文章が終わると、背景が運営事業のグラデーションにクロスフェード（js/top.js が --opsMix を更新）
     左：画像（各パネル内で追従）　右：事業名・ステートメント見出し＋本文・事業内容リスト
   各行は画面に入ったとき下からマスクリビール（[data-reveal].isIn）
   top.css の後に読み込む
   ===================================================================== */
.overview { padding-bottom: 0; }

/* 背景（sticky で画面に固定） */
.bizScroll { position: relative; color: #fff; }
.bizBg {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	z-index: 0;
}
.bizBgLayer {
	position: absolute;
	inset: 0;
	background: var(--colorDark) center / cover no-repeat;
}
/* 文字を読みやすくするための暗め処理（両側 5%。値はここで調整） */
.bizScroll { --dimLeft: rgba(0, 0, 0, .05); --dimRight: rgba(0, 0, 0, .05); }
.bizBgLayer::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--dimLeft) 0%, var(--dimRight) 60%, var(--dimRight) 100%);
}
.bizBgLayer.isDev { background-image: url("../images/noise_left.jpg"); }
.bizBgLayer.isOps {
	background-image: url("../images/noise_right.jpg");
	opacity: var(--opsMix, 0);
}

/* 本文は背景の上を流れる */
.bizFlow {
	position: relative;
	z-index: 1;
	margin-top: -100vh;
	margin-top: -100svh;
}
.bizPanel { padding: 10vh 0 12vh; }
.bizPanel.isOps { padding-top: 14vh; }
.bizPanelInner {
	display: flex;
	align-items: stretch; /* 左画像列を右の文章と同じ高さに */
	gap: clamp(32px, 4vw, 56px);
}

/* 左画像：2枚を縦に並べ、右の文章とぴったり同じ高さに（列の高さに合わせて2枚で等分・追従しない） */
.bizVisual {
	flex: 0 0 clamp(260px, 28vw, 400px);
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.bizDots { display: none; }
.bizVisual img {
	width: 100%;
	flex: 1 1 0;
	min-height: 0;
	height: auto;
	object-fit: cover;
}

/* 右テキスト */
.bizText { flex: 1 1 auto; min-width: 0; }
.bizTitle {
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1.3;
	margin-bottom: 1.6em;
}
.bizTitle .en {
	display: inline-block;
	margin-left: 1em;
	font-family: var(--fontEnCond);
	font-weight: 700;
	font-size: clamp(11px, .9vw, 13px);
	letter-spacing: .02em;
	opacity: .85;
	vertical-align: .15em;
}
.bizPanel .statementHead {
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 300;
	letter-spacing: .12em;
	line-height: 1.5;
	margin-bottom: 1.2em;
}
/* 本文：元サイトのモーダルと同じくらい（16px前後） */
.bizPanel .statementBody {
	font-size: 17px;
	letter-spacing: .05em;
	line-height: 2.7;
}
.bizPanel .statementBody p { margin: 0; }
.bizList {
	position: relative;
	margin-top: 48px;
	padding-top: 32px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 32px;
	font-size: 13px;
	letter-spacing: .03em;
	line-height: 1.7;
}
.bizList::before {
	content: "";
	position: absolute;
	left: 0; top: 0;
	width: 100%;
	height: 1px;
	background: rgba(255, 255, 255, .5);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}
.bizList.isIn::before { transform: none; }
.bizList li { position: relative; padding-left: 1.2em; }
.bizList li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .8em;
	width: .5em;
	height: 1px;
	background: currentColor;
	opacity: 0;
	transition: opacity .5s ease .3s;
}
.bizList li.isIn::before { opacity: 1; }

/* ---------- テキスト：行ごとに下からマスクリビール ---------- */
.mask { display: block; overflow: hidden; }
span.mask { display: inline-block; vertical-align: top; }
.mask > span {
	display: inline-block;
	transform: translateY(110%);
	transition: transform .9s cubic-bezier(.16, 1, .3, 1);
}
.mask.isIn > span { transform: none; }
/* リストは左からずらして出す */
.bizList li:nth-child(1) > span { transition-delay: .05s; }
.bizList li:nth-child(2) > span { transition-delay: .1s; }
.bizList li:nth-child(3) > span { transition-delay: .15s; }
.bizList li:nth-child(4) > span { transition-delay: .2s; }
.bizList li:nth-child(5) > span { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
	.mask > span, .bizList::before { transition: none !important; transform: none !important; }
	.bizList li::before { opacity: 1 !important; }
}

/* ---------- SP / tablet ---------- */
@media screen and (max-width: 899px) {
	.bizPanel { padding: 6vh 0 10vh; }
	.bizPanel.isOps { padding-top: 6vh; }
	.bizPanelInner {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}
	/* SP：画像は横スライド（スワイプ）。次の画像を少しのぞかせる */
	.bizVisual {
		flex: none;
		flex-direction: row;
		gap: 12px;
		margin: 0 calc(var(--containerPad) * -1);
		padding: 0 var(--containerPad);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 var(--containerPad);
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.bizVisual::-webkit-scrollbar { display: none; }
	.bizVisual img {
		flex: 0 0 86%;
		aspect-ratio: 16 / 10;
		scroll-snap-align: start;
	}
	/* ページ送りのドット（js/top.js が .bizDots を生成） */
	.bizDots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin-top: -14px; /* 画像〜ドット 14px（親の gap 28px を相殺） */
	}
	.bizDots span {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: rgba(255, 255, 255, .45);
		transition: background-color .3s ease;
	}
	.bizDots span.isActive { background: #fff; }
	.bizText { max-width: none; }
	.bizTitle { font-size: 18px; margin-bottom: 2.2em; } /* 事業名〜キャッチの間 */
	.bizTitle .en { display: block; margin: .4em 0 0; }
	.bizPanel .statementHead { font-size: clamp(17px, 4.9vw, 22px); letter-spacing: .06em; }
	.bizPanel .statementBody { font-size: 15px; line-height: 1.8; letter-spacing: .04em; } /* 10-12 企業理念の本文に合わせる */
	/* 続き文章を js/top.js が表示上の1行ごとに .mask に分割する（[data-split-lines]） */
	.bizPanel .statementBody .spText .mask { display: block; }
	.bizList {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 36px;
		padding: 24px 0;
		font-size: 13px;
	}
	/* SP はリストの下にも罫線 */
	.bizList::after {
		content: "";
		position: absolute;
		left: 0; bottom: 0;
		width: 100%;
		height: 1px;
		background: rgba(255, 255, 255, .5);
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform 1s cubic-bezier(.16, 1, .3, 1) .3s;
	}
	.bizList.isIn::after { transform: none; }
}

/* ---------- 企業理念（09-25）：キャッチなし・ステートメントを中央揃え（index4 のみ） ---------- */
.philosophy .philosophyStatement p { line-height: 2.7; }
.philosophy .philosophyStatement p + p { margin-top: 0; }
@media screen and (max-width: 899px) {
	.philosophy .philosophyStatement p { line-height: 2; }
	.philosophy .philosophyStatement p + p { margin-top: 0.6em; }
}

/* ---------- 企業理念（10-12）：SP は改行なしの段落で（ボックス・強調なし） ---------- */
@media screen and (max-width: 899px) {
	.philosophy .philosophyBox { text-align: left; }
	.philosophy .philosophyBox p { font-size: 15px; line-height: 1.8; letter-spacing: .04em; }
	.philosophy .philosophyStatement .philosophyBox p + p { margin-top: 1.2em; }
}

/* ---------- 事業紹介（10-12）：SP 本文をいくつかの段落（塊）に分ける ---------- */
@media screen and (max-width: 899px) {
	.bizPanel .statementBody .spText + .spText { margin-top: 1.2em; }
}

/* ---------- 事業概要（10-12）：SP 本文を企業理念の本文と同じ組みに（15px / 1.8 / .04em・左右はコンテナの 25px） ---------- */
@media screen and (max-width: 899px) {
	.overview .overviewLead { padding: 0; }
	.overview .overviewLead p { font-size: 15px; line-height: 1.8; letter-spacing: .04em; text-align: left; }
}
}
