/*
 * TOPページ リニューアル用デザイントーン(Phase 1)
 *
 * - :root のトークンと .top-section / .top-eyebrow / .top-heading 等は、
 *   今後ほかのTOPセクションを作り直すときの共通基準として使う
 * - .top-flow 以下は「特攻店長の全体像」セクションの図解専用
 *
 * 色・余白は実画面レビューで調整する前提の仮値。
 */

/* 色・角丸・影のトークンは assets/css/tokens.css(全ページ共通)で定義 */

/* ------------------------------------------------------------
 * セクション共通
 * ---------------------------------------------------------- */

/* 旧デザインのままのTOPセクション(NEWS・料金など)は、タブレット〜小さめPC幅で
   左右の余白がゼロになり文字が画面端に張り付くため、この幅だけ余白を足す
   (600px以下は style.css で main 自体に余白あり、1180px超は中央寄せで余白が出る) */
@media ( min-width: 601px ) and ( max-width: 1180px ) {
	main.wp-block-group > .wp-block-group.is-layout-constrained {
		padding-left: 24px;
		padding-right: 24px;
	}
}

.top-section {
	position: relative;
	padding: 112px 24px;
	color: var( --tt-ink );
	font-feature-settings: "palt";
}

.top-section__inner {
	max-width: 1180px;
	margin: 0 auto;
}

.top-section--tint {
	background-color: var( --tt-mint-pale );
	background-image:
		radial-gradient( 60% 50% at 0% 0%, rgba( 221, 243, 235, 0.9 ) 0%, transparent 70% ),
		radial-gradient( 50% 60% at 100% 100%, rgba( 43, 154, 130, 0.10 ) 0%, transparent 70% );
	overflow: hidden;
}

/* 方眼の地模様(うっすら)。中央付近だけに見えるようマスクする */
.top-section--tint::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient( rgba( 19, 117, 97, 0.06 ) 1px, transparent 1px ),
		linear-gradient( 90deg, rgba( 19, 117, 97, 0.06 ) 1px, transparent 1px );
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient( 70% 60% at 50% 60%, #000 0%, transparent 75% );
	mask-image: radial-gradient( 70% 60% at 50% 60%, #000 0%, transparent 75% );
	pointer-events: none;
}

.top-section--tint > * {
	position: relative;
}

.top-section__head {
	display: grid;
	grid-template-columns: minmax( 0, 1.4fr ) minmax( 0, 1fr );
	gap: 32px 56px;
	align-items: end;
	margin-bottom: 64px;
}

.top-section__head > * {
	margin: 0;
}

.top-section .top-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	padding: 6px 14px 6px 6px;
	border: 1px solid var( --tt-line );
	border-radius: 999px;
	background: #fff;
	color: var( --tt-green );
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.top-eyebrow__en {
	padding: 3px 10px;
	border-radius: 999px;
	background: var( --tt-green );
	color: #fff;
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
}

.top-section .top-heading {
	margin: 0;
	color: var( --tt-ink );
	font-size: clamp( 1.75rem, 1.1rem + 2.4vw, 2.75rem );
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0.01em;
	text-wrap: pretty;
}

/* 見出し内の強調(マーカー風)。ベタ塗りではなく下半分だけに敷く。
   inline-block にして強調語の途中で改行されないようにする */
.top-marker {
	display: inline-block;
	background: linear-gradient( transparent 62%, var( --tt-mint ) 62% );
	color: var( --tt-green );
	padding: 0 0.04em;
}

.top-section .top-lead {
	margin: 0 0 16px;
	color: var( --tt-ink );
	font-size: clamp( 1.125rem, 0.95rem + 0.6vw, 1.375rem );
	font-weight: 800;
	line-height: 1.65;
	text-wrap: pretty;
}

.top-section .top-body {
	margin: 0;
	color: var( --tt-ink-muted );
	font-size: 0.9375rem;
	line-height: 2;
}

.top-section .top-more {
	margin: 48px 0 0;
	text-align: center;
}

/* 「詳細はこちら」系ボタン。ヒーロー・料金・ヘッダーのCTAと同じグラデーションの角丸ボタンに揃える */
.top-more a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 30px;
	border-radius: 999px;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 14px 28px -12px rgba( 13, 85, 72, 0.65 );
	color: #fff !important;
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-more a::after {
	content: "→";
	transition: transform 0.2s ease;
}

.top-more a:hover {
	transform: translateY( -2px );
	box-shadow: 0 18px 32px -12px rgba( 13, 85, 72, 0.75 );
}

.top-more a:hover::after {
	transform: translateX( 4px );
}

/* ------------------------------------------------------------
 * 「特攻店長の全体像」図解
 *   PC : 入力(モール・カート) → 特攻店長 → 出力(倉庫/基幹/外部)
 *        接続線は assets/js/top-flow.js がカード位置を測って描画する
 *   SP : 同じ順で縦フロー(CSSの縦線のみ)
 * ---------------------------------------------------------- */

.top-icon-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.top-flow svg.ti {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.top-flow {
	--wire-gap: 104px;
	position: relative;
	display: grid;
	grid-template-columns: minmax( 200px, 0.85fr ) minmax( 470px, 1.75fr ) minmax( 250px, 0.95fr );
	column-gap: var( --wire-gap );
	align-items: center;
}

.top-flow ul,
.top-flow ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-flow p,
.top-flow h3 {
	margin: 0;
}

/* --- 接続線(JSで描画) --- */

.top-flow__wires {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	pointer-events: none;
	z-index: 0;
}

.top-flow__wire {
	fill: none;
	stroke: var( --tt-green-teal );
	stroke-width: 1.5;
	stroke-dasharray: 3 5;
	stroke-opacity: 0.45;
}

.top-flow__wire.is-muted {
	stroke-opacity: 0.25;
}

/* 線上を流れる粒。向きごとに色を変えて双方向のやり取りを表す */
.top-flow__particle.is-fwd {
	fill: var( --tt-flow-fwd );
	filter: drop-shadow( 0 0 4px rgba( 19, 117, 97, 0.7 ) );
}

.top-flow__particle.is-back {
	fill: var( --tt-flow-back );
	stroke: #fff;
	stroke-width: 1.25;
	filter: drop-shadow( 0 0 4px rgba( 43, 154, 130, 0.9 ) );
}

/* 線の上のラベル(上: 右向き / 下: 左向き)。矢印はCSSで付け、SPでは上下矢印に変える */
.top-flow__tags {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.top-flow__tags--in {
	left: calc( 100% + var( --wire-gap ) / 2 );
	transform: translate( -50%, -50% );
}

.top-flow__tags--out {
	right: calc( 100% + var( --wire-gap ) / 2 );
	transform: translate( 50%, -50% );
}

.top-flow__tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	box-shadow: 0 4px 12px -6px rgba( 13, 85, 72, 0.4 );
}

.top-flow__tag.is-fwd {
	background: var( --tt-flow-fwd );
	color: #fff;
}

.top-flow__tag.is-fwd::after {
	content: "→";
}

.top-flow__tag.is-back {
	background: var( --tt-flow-back );
	color: var( --tt-green-deep );
}

.top-flow__tag.is-back::before {
	content: "←";
}

/* --- 列見出し(モール・カート / 連携先) --- */

.top-flow__in,
.top-flow__out {
	position: relative;
}

.top-flow__col-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.top-flow__col-label {
	color: var( --tt-green );
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
}

.top-flow__col-title {
	color: var( --tt-ink );
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.35;
}

.top-node__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var( --tt-radius-sm );
	background: var( --tt-mint );
	color: var( --tt-green );
	font-size: 24px;
	flex-shrink: 0;
}

/* --- 共通ノード --- */

.top-node {
	position: relative;
	z-index: 1;
	background: #fff;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-md );
	box-shadow: var( --tt-shadow-card );
}

/* 接続ポート(線がカードに刺さる位置の小さな丸) */
.top-node--source::after,
.top-node--target::before,
.top-hub::before,
.top-hub::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var( --tt-green-teal );
	box-sizing: border-box;
	z-index: 2;
}

.top-node--source::after {
	width: 10px;
	height: 10px;
	margin-top: -5px;
	right: -5px;
	border-width: 2.5px;
}

.top-node--target::before {
	left: -6px;
}

.top-hub::before {
	left: -6px;
}

.top-hub::after {
	right: -6px;
}

/* --- 左: モール・カート(1つずつ線をつなぐ) --- */

.top-flow__sources {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.top-node--source {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	border-radius: var( --tt-radius-sm );
	color: var( --tt-ink );
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
}

.top-node--source::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var( --tt-green-teal );
	box-shadow: 0 0 0 4px var( --tt-mint );
	flex-shrink: 0;
}

.top-node--source.is-more {
	background: rgba( 255, 255, 255, 0.6 );
	border-style: dashed;
	box-shadow: none;
	color: var( --tt-ink-muted );
	font-weight: 500;
}

.top-node--source.is-more::before {
	background: var( --tt-line );
	box-shadow: none;
}

/* --- 中央: 特攻店長 --- */

.top-flow__hub {
	position: relative;
	z-index: 1;
}

/* 背面の光と、外へ広がる波紋 */
.top-flow__hub::before,
.top-flow__hub::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: -1;
}

.top-flow__hub::before {
	inset: -48px -36px;
	background: radial-gradient( 50% 50% at 50% 50%, rgba( 43, 154, 130, 0.32 ) 0%, rgba( 43, 154, 130, 0 ) 70% );
	filter: blur( 8px );
}

.top-flow__hub::after {
	inset: -1px;
	border: 2px solid var( --tt-green-teal );
	border-radius: var( --tt-radius-lg );
	animation: top-hub-ripple 2.6s ease-out infinite;
}

.top-hub {
	position: relative;
	padding: 34px 32px 32px;
	border-radius: var( --tt-radius-lg );
	background:
		radial-gradient( 70% 55% at 100% 0%, rgba( 143, 227, 194, 0.35 ) 0%, transparent 60% ),
		radial-gradient( 60% 50% at 0% 100%, rgba( 6, 40, 34, 0.45 ) 0%, transparent 70% ),
		linear-gradient( 150deg, var( --tt-green-deep ) 0%, var( --tt-green ) 58%, var( --tt-green-teal ) 100% );
	box-shadow: var( --tt-shadow-hub ), inset 0 1px 0 rgba( 255, 255, 255, 0.28 );
	color: #fff;
}

.top-hub__head {
	margin-bottom: 20px;
	text-align: center;
}

.top-hub__name {
	font-size: 2.25rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.15;
}

/* ロゴに合わせて「攻」だけ赤。濃い緑の上でも沈まないよう明るめの赤+うっすら発光 */
.top-hub__name-accent {
	color: var( --tt-accent-red );
	text-shadow: 0 0 18px rgba( 255, 70, 70, 0.45 );
}


/* 土台: 一元管理(控えめな横並び) */
.top-hub__base {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.top-hub__base-title {
	flex-shrink: 0;
	color: rgba( 255, 255, 255, 0.85 );
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

.top-hub__tiles {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 8px;
	flex: 1;
}

.top-hub__tiles li {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 6px;
	border: 1px solid rgba( 255, 255, 255, 0.18 );
	border-radius: 10px;
	background: rgba( 255, 255, 255, 0.08 );
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.top-hub__tiles svg.ti {
	font-size: 18px;
	color: var( --tt-glow );
}

/* 主役: 業務ルールに応じた判断・自動処理 */
.top-hub__auto {
	padding: 26px 22px 24px;
	border-radius: 22px;
	background: #fff;
	color: var( --tt-ink );
	box-shadow: 0 20px 40px -18px rgba( 0, 0, 0, 0.45 );
}

.top-hub__auto-title {
	margin-bottom: 22px !important;
	color: var( --tt-ink );
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.01em;
	text-align: center;
}

.top-hub__steps {
	/* 光が 01→04 を走る1周の長さ。アイコンの点滅タイミングもこれに合わせる */
	--step-cycle: 1.6s;
	position: relative;
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 8px;
	counter-reset: top-step;
}

/* ステップをつなぐ流れる線 + 走る光 */
.top-hub__steps::before,
.top-hub__steps::after {
	content: "";
	position: absolute;
	top: 28px;
	height: 2px;
	margin-top: -1px;
	pointer-events: none;
}

.top-hub__steps::before {
	left: 12.5%;
	right: 12.5%;
	background-image: linear-gradient( 90deg, var( --tt-green-teal ) 50%, transparent 50% );
	background-size: 10px 2px;
	opacity: 0.6;
	animation: top-flow-dash-x 0.35s linear infinite;
}

.top-hub__steps::after {
	left: calc( 12.5% - 28px );
	width: 56px;
	height: 8px;
	margin-top: -4px;
	border-radius: 999px;
	background: linear-gradient( 90deg, transparent, var( --tt-glow ) 60%, #fff );
	box-shadow: 0 0 14px 2px rgba( 143, 227, 194, 0.9 );
	animation: top-step-runner var( --step-cycle ) linear infinite;
}

.top-hub__steps li {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	color: var( --tt-ink );
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.35;
	text-align: center;
	white-space: nowrap;
	counter-increment: top-step;
}

.top-hub__step-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient( 145deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 0 0 5px #fff, 0 8px 18px -6px rgba( 13, 85, 72, 0.6 );
	color: #fff;
	font-size: 24px;
}

.top-hub__step-icon {
	animation: top-step-pop var( --step-cycle ) ease-out infinite;
}

/* 光が届いたときに広がる輪 */
.top-hub__step-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	animation: top-step-ring var( --step-cycle ) ease-out infinite;
}

/* 01→04 の順に、光の到着(1周の 0 / 25 / 50 / 75%)に合わせて点滅させる */
.top-hub__steps li:nth-child( 2 ) .top-hub__step-icon,
.top-hub__steps li:nth-child( 2 ) .top-hub__step-icon::before {
	animation-delay: calc( var( --step-cycle ) * -0.75 );
}

.top-hub__steps li:nth-child( 3 ) .top-hub__step-icon,
.top-hub__steps li:nth-child( 3 ) .top-hub__step-icon::before {
	animation-delay: calc( var( --step-cycle ) * -0.5 );
}

.top-hub__steps li:nth-child( 4 ) .top-hub__step-icon,
.top-hub__steps li:nth-child( 4 ) .top-hub__step-icon::before {
	animation-delay: calc( var( --step-cycle ) * -0.25 );
}

.top-hub__step-icon::after {
	content: counter( top-step, decimal-leading-zero );
	position: absolute;
	top: -6px;
	right: -10px;
	padding: 1px 6px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

/* --- 右: 倉庫・物流 / 基幹 / 外部サービス --- */

.top-flow__targets {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.top-node--target {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
}

.top-node__title {
	color: var( --tt-ink );
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-node__sub {
	margin-top: 2px !important;
	color: var( --tt-ink-muted );
	font-size: 0.8125rem;
	line-height: 1.6;
}

/* --- アニメーション --- */

@keyframes top-flow-dash-x {
	to {
		background-position: 10px 0;
	}
}

@keyframes top-flow-dash-y {
	to {
		background-position: 0 10px;
	}
}

@keyframes top-flow-dot-down {
	from {
		background-position: 50% -12px, 50% calc( 100% + 12px ), 50% 0;
	}
	to {
		background-position: 50% calc( 100% + 12px ), 50% -12px, 50% 0;
	}
}

@keyframes top-hub-ripple {
	0% {
		opacity: 0.55;
		transform: scale( 1 );
	}
	100% {
		opacity: 0;
		transform: scale( 1.06, 1.08 );
	}
}

/* 0〜75%で 01→04 を走り、残りは04で消えて次の周回へ */
@keyframes top-step-runner {
	0% {
		left: calc( 12.5% - 28px );
		opacity: 0;
	}
	4% {
		opacity: 1;
	}
	75% {
		left: calc( 87.5% - 28px );
		opacity: 1;
	}
	85%,
	100% {
		left: calc( 87.5% - 28px );
		opacity: 0;
	}
}

@keyframes top-step-pop {
	0% {
		transform: scale( 1 );
	}
	8% {
		transform: scale( 1.16 );
	}
	22%,
	100% {
		transform: scale( 1 );
	}
}

@keyframes top-step-ring {
	0% {
		box-shadow: 0 0 0 0 rgba( 43, 154, 130, 0.7 );
	}
	30%,
	100% {
		box-shadow: 0 0 0 16px rgba( 43, 154, 130, 0 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.top-hub__steps::before,
	.top-flow__in::after,
	.top-flow__out::before {
		animation: none;
	}

	.top-flow__hub::after,
	.top-hub__steps::after {
		display: none;
	}

	.top-hub__step-icon,
	.top-hub__step-icon::before {
		animation: none;
	}
}

/* 小さめのPC幅: 線のスペースと左右列を少し詰める */
@media ( max-width: 1240px ) {
	.top-flow {
		--wire-gap: 96px;
		grid-template-columns: minmax( 170px, 0.85fr ) minmax( 440px, 1.75fr ) minmax( 220px, 0.95fr );
	}

	.top-node--target {
		padding: 16px;
	}
}

/* ------------------------------------------------------------
 * タブレット以下: 縦フローに変形
 * ---------------------------------------------------------- */

@media ( max-width: 1080px ) {
	.top-section {
		padding: 88px 24px;
	}

	.top-section__head {
		grid-template-columns: 1fr;
		gap: 24px;
		margin-bottom: 48px;
	}

	.top-flow {
		--link-h: 72px;
		grid-template-columns: minmax( 0, 1fr );
		max-width: 640px;
		margin: 0 auto;
	}

	.top-flow__wires {
		display: none;
	}

	/* 左列は1枚の白カードにまとめ、モール名はチップ表示 */
	.top-flow__in {
		margin-bottom: var( --link-h );
		padding: 24px;
		border: 1px solid var( --tt-line );
		border-radius: var( --tt-radius-md );
		background: #fff;
		box-shadow: var( --tt-shadow-card );
		z-index: 1;
	}

	.top-flow__sources {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.top-node--source {
		padding: 8px 14px;
		border: 0;
		background: var( --tt-mint-pale );
		box-shadow: none;
		font-size: 0.8125rem;
	}

	.top-node--source::before {
		width: 6px;
		height: 6px;
		box-shadow: none;
	}

	.top-node--source.is-more {
		border: 1px dashed var( --tt-line );
	}

	.top-node--source::after,
	.top-node--target::before {
		display: none;
	}

	/* 縦の接続線 */
	.top-flow__in::after,
	.top-flow__out::before {
		content: "";
		position: absolute;
		left: 50%;
		width: 12px;
		height: var( --link-h );
		margin-left: -6px;
		background-image:
			radial-gradient( circle, var( --tt-flow-fwd ) 3.5px, transparent 4.5px ),
			radial-gradient( circle, var( --tt-flow-back ) 3.5px, transparent 4.5px ),
			linear-gradient( 180deg, rgba( 43, 154, 130, 0.55 ) 50%, transparent 50% );
		background-size: 12px 12px, 12px 12px, 2px 8px;
		background-repeat: no-repeat, no-repeat, repeat-y;
		background-position: 50% -12px, 50% calc( 100% + 12px ), 50% 0;
		animation: top-flow-dot-down 1.6s linear infinite;
	}

	.top-flow__in::after {
		top: 100%;
	}

	.top-flow__out {
		padding-top: var( --link-h );
	}

	.top-flow__out::before {
		top: 0;
	}

	/* SPのラベル: 線の右に下向き、左に上向き */
	.top-flow__tags--in,
	.top-flow__tags--out {
		left: 50%;
		right: auto;
		width: 0;
		height: 0;
		transform: none;
	}

	.top-flow__tag {
		position: absolute;
		top: 0;
		transform: translateY( -50% );
	}

	.top-flow__tag.is-fwd {
		left: 14px;
	}

	.top-flow__tag.is-back {
		right: 14px;
	}

	.top-flow__tags--in {
		top: calc( 100% + var( --link-h ) / 2 );
	}

	.top-flow__tags--out {
		top: calc( var( --link-h ) / 2 );
	}

	.top-flow__tag.is-fwd::after {
		content: "↓";
	}

	.top-flow__tag.is-back::before {
		content: "↑";
	}

	/* ハブのポートを上下に付け替え */
	.top-hub::before,
	.top-hub::after {
		left: 50%;
		right: auto;
		margin: 0 0 0 -6px;
	}

	.top-hub::before {
		top: -6px;
	}

	.top-hub::after {
		top: auto;
		bottom: -6px;
	}

	.top-flow__out .top-flow__col-head {
		display: none;
	}

	.top-flow__targets {
		display: grid;
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
		gap: 12px;
	}

	.top-node--target {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		padding: 18px;
	}
}

/* スマホ */
@media ( max-width: 600px ) {
	/* main に付いている左右20pxパディングを打ち消して帯を画面幅いっぱいに */
	.top-section {
		margin-left: -20px;
		margin-right: -20px;
		padding: 72px 20px;
	}

	.top-section__head {
		margin-bottom: 40px;
	}

	.top-section .top-lead br {
		display: none;
	}

	.top-section .top-body {
		font-size: 0.875rem;
		line-height: 1.9;
	}

	.top-flow__in {
		padding: 20px;
	}

	.top-flow__col-title {
		font-size: 1.25rem;
	}

	.top-node--source {
		padding: 7px 12px;
		font-size: 0.75rem;
	}

	.top-flow__hub::before {
		inset: -24px -12px;
	}

	.top-hub {
		padding: 24px 16px 16px;
		border-radius: 22px;
	}

	.top-flow__hub::after {
		border-radius: 22px;
	}

	.top-hub__name {
		font-size: 1.75rem;
	}


	.top-hub__base {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.top-hub__tiles li {
		flex-direction: column;
		gap: 4px;
		font-size: 0.8125rem;
	}

	.top-hub__auto {
		padding: 22px 14px 16px;
		border-radius: 18px;
	}

	.top-hub__auto-title {
		font-size: 1.3125rem;
		margin-bottom: 18px !important;
	}

	.top-hub__steps {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 10px;
	}

	.top-hub__steps::before,
	.top-hub__steps::after {
		display: none;
	}

	.top-hub__steps li {
		flex-direction: row;
		justify-content: flex-start;
		gap: 10px;
		padding: 10px;
		border-radius: 14px;
		background: var( --tt-mint-pale );
		font-size: 0.875rem;
		text-align: left;
	}

	.top-hub__step-icon {
		width: 40px;
		height: 40px;
		font-size: 19px;
		box-shadow: none;
	}

	.top-hub__step-icon::after {
		top: -8px;
		right: -10px;
	}

	.top-flow__targets {
		grid-template-columns: minmax( 0, 1fr );
		gap: 10px;
	}

	.top-node--target {
		flex-direction: row;
		align-items: center;
		padding: 14px 16px;
	}

	.top-node--target .top-node__icon {
		width: 42px;
		height: 42px;
		font-size: 21px;
	}

	.top-node__title {
		font-size: 1.0625rem;
	}
}

/* ============================================================
 * 「理想の運用を、その先へ。」カスタマイズセクション(Phase 2)
 *   3ステップ(会話形式・右肩上がり) → 実例(よくある改善 → その先へ)
 *   → 着地(事業の力へ)
 * ========================================================== */

/* 背面の矢印が右にはみ出しても横スクロールを出さない */
.top-custom {
	overflow-x: clip;
}

/* 連続する新デザインセクションの間は、main の共通余白を詰める */
.top-section + .top-section {
	margin-top: 0;
}

/* このセクションはサブコピーを見出しに次ぐ大きさで見せる */
.top-section.top-custom .top-lead {
	font-size: clamp( 1.375rem, 1rem + 1.2vw, 1.875rem );
	line-height: 1.5;
	letter-spacing: 0.01em;
}

.top-custom svg.ti {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.top-custom ul,
.top-custom ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-custom p,
.top-custom h3 {
	margin: 0;
}

/* --- 3ステップ --- */

/* 背面の右上がり矢印。矢じりがSTEP 03の上に覗くよう上に余白を取る */
.top-steps-wrap {
	position: relative;
	padding-top: 120px;
}

.top-steps__rise {
	position: absolute;
	top: 0;
	left: -32px;
	bottom: -48px;
	width: calc( 100% + 152px );
	height: calc( 100% + 48px );
	overflow: visible;
	pointer-events: none;
	z-index: 0;
}

.top-steps__rise-band {
	fill: url( #tc-rise-fill );
}


.top-steps {
	--step-offset: 56px;
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr ) minmax( 0, 1.15fr );
	gap: 80px;
	align-items: start;
}

/* 右肩上がりの階段にして「その先へ」を表す */
.top-step--1 {
	margin-top: calc( var( --step-offset ) * 2 );
}

.top-step--2 {
	margin-top: var( --step-offset );
}

.top-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 380px;
	padding: 32px 28px 30px;
	border: 1px solid var( --tt-line );
	border-radius: 24px;
	background: #fff;
	box-shadow: var( --tt-shadow-card );
}

/* ステップ間の矢印(流れる光つき) */
.top-step:not( :last-child )::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -58px;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background:
		url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E" ) center / 18px no-repeat,
		linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 0 0 6px #fff, 0 8px 18px -6px rgba( 13, 85, 72, 0.6 );
	z-index: 2;
	animation: top-step-nudge 1.2s ease-in-out infinite;
}

.top-step__avatar {
	position: absolute;
	top: -34px;
	right: 22px;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	background: var( --tt-mint );
	border: 4px solid #fff;
	box-shadow: 0 12px 24px -12px rgba( 13, 85, 72, 0.5 );
	animation: top-avatar-bob 3s ease-in-out infinite;
}

.top-step__avatar svg {
	display: block;
	width: 100%;
	height: 100%;
}

.top-step--2 .top-step__avatar {
	background: #c9ece0;
	animation-delay: -1s;
}

.top-step--3 .top-step__avatar {
	background: #e9faf3;
	border-color: var( --tt-glow );
	box-shadow: 0 0 0 6px rgba( 143, 227, 194, 0.25 ), 0 14px 28px -12px rgba( 0, 0, 0, 0.5 );
	animation-delay: -2s;
}

.top-step__num {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 3.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.top-step__num span {
	font-size: 0.875rem;
	letter-spacing: 0.18em;
}

.top-step__who {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 999px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.5;
}

.top-step__who svg.ti {
	font-size: 15px;
}

/* 吹き出し */
.top-step__bubble {
	position: relative;
	margin-bottom: 8px !important;
	padding: 18px 20px;
	border-radius: 18px;
	background: var( --tt-mint-pale );
	border: 1px solid var( --tt-line );
	color: var( --tt-ink );
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.01em;
}

.top-step__bubble::after {
	content: "";
	position: absolute;
	left: 28px;
	bottom: -9px;
	width: 16px;
	height: 16px;
	background: inherit;
	border-right: 1px solid var( --tt-line );
	border-bottom: 1px solid var( --tt-line );
	transform: rotate( 45deg );
}

.top-step__text {
	color: var( --tt-ink-muted );
	font-size: 0.875rem;
	line-height: 1.8;
}

.top-step__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto !important;
}

.top-step__chips li {
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px dashed var( --tt-line );
	color: var( --tt-ink );
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.5;
}

.top-step__chips li::before {
	content: "“";
	margin-right: 2px;
	color: var( --tt-green );
}

.top-step__chips li::after {
	content: "”";
	margin-left: 2px;
	color: var( --tt-green );
}

/* STEP 2: 特攻店長の提案(ミント+ティールの吹き出し) */
.top-step--2 {
	background: linear-gradient( 180deg, var( --tt-mint ) 0%, #fff 70% );
	border-color: #bfe3d6;
}

.top-step--2 .top-step__who {
	background: var( --tt-green );
	color: #fff;
}

.top-step--2 .top-step__bubble {
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green ) );
	border-color: transparent;
	color: #fff;
}

.top-step--2 .top-step__bubble::after {
	left: auto;
	right: 28px;
	background: var( --tt-green );
	border-color: transparent;
}

/* STEP 3: 「そこまでできるのか」(クライマックス。濃い緑) */
.top-step--3 {
	border-color: transparent;
	background:
		radial-gradient( 80% 50% at 100% 0%, rgba( 143, 227, 194, 0.35 ) 0%, transparent 60% ),
		linear-gradient( 150deg, var( --tt-green-deep ) 0%, var( --tt-green ) 65%, var( --tt-green-teal ) 100% );
	/* 背面の矢印と同化しないよう白い縁取りで切り分ける */
	box-shadow: 0 0 0 6px #fff, var( --tt-shadow-hub );
	color: #fff;
}

.top-step--3 .top-step__num {
	background: linear-gradient( 135deg, #fff, var( --tt-glow ) );
	-webkit-background-clip: text;
	background-clip: text;
}

.top-step--3 .top-step__who {
	background: rgba( 255, 255, 255, 0.14 );
	color: #fff;
}

.top-step--3 .top-step__who svg.ti {
	color: var( --tt-glow );
	animation: top-twinkle 1.4s ease-in-out infinite;
}

.top-step--3 .top-step__bubble {
	background: #fff;
	border-color: transparent;
	color: var( --tt-green-deep );
	font-size: 1.5rem;
	box-shadow: 0 16px 32px -16px rgba( 0, 0, 0, 0.45 );
}

.top-step--3 .top-step__bubble::after {
	border-color: transparent;
}

.top-step--3 .top-step__text {
	color: rgba( 255, 255, 255, 0.85 );
}

.top-step--3 .top-step__chips li {
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	background: rgba( 255, 255, 255, 0.1 );
	color: #fff;
}

.top-step--3 .top-step__chips li::before,
.top-step--3 .top-step__chips li::after {
	color: var( --tt-glow );
}

/* 背面の波紋(全体像の中央カードと同じ演出) */
.top-step--3::before {
	content: "";
	position: absolute;
	inset: -7px;
	border: 2px solid var( --tt-green-teal );
	border-radius: 24px;
	pointer-events: none;
	animation: top-hub-ripple 2.6s ease-out infinite;
}

/* --- カスタマイズの実例 --- */

.top-cases {
	margin-top: 112px;
}

.top-cases__head {
	margin-bottom: 36px;
	text-align: center;
}

.top-cases__en {
	color: var( --tt-green );
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	line-height: 1.4;
}

.top-cases__title {
	margin-top: 6px !important;
	color: var( --tt-ink );
	font-size: clamp( 1.75rem, 1.2rem + 1.8vw, 2.75rem );
	font-weight: 800;
	line-height: 1.35;
}

.top-cases__grid {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) 56px minmax( 0, 1.5fr );
	align-items: center;
}

.top-cases__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px !important;
	color: var( --tt-ink );
	font-size: 1.625rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-cases__list {
	display: grid;
	gap: 12px;
}

.top-case {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-md );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
}

.top-case__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: var( --tt-radius-sm );
	background: var( --tt-mint );
	color: var( --tt-green );
	font-size: 22px;
	flex-shrink: 0;
}

.top-case__title {
	color: var( --tt-ink );
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.45;
}

.top-case__text {
	margin-top: 2px !important;
	color: var( --tt-ink-muted );
	font-size: 0.8125rem;
	line-height: 1.6;
}

/* 「よくある」→「その先へ」の矢印 */
.top-cases__arrow {
	position: relative;
	height: 100%;
}

.top-cases__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	margin: -14px 0 0 -8px;
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	border-left: 18px solid var( --tt-green-teal );
	animation: top-step-nudge 1.2s ease-in-out infinite;
}

/* さらに、その先へ: 濃い緑のパネルで一段強く */
.top-cases__group--beyond {
	position: relative;
	padding: 28px;
	border-radius: var( --tt-radius-lg );
	background:
		radial-gradient( 70% 55% at 100% 0%, rgba( 143, 227, 194, 0.3 ) 0%, transparent 60% ),
		linear-gradient( 150deg, var( --tt-green-deep ) 0%, var( --tt-green ) 60%, var( --tt-green-teal ) 100% );
	box-shadow: var( --tt-shadow-hub );
}

.top-cases__group--beyond .top-cases__label {
	color: #fff;
	font-size: 1.875rem;
}

.top-cases__group--beyond .top-cases__label svg.ti {
	color: var( --tt-glow );
	animation: top-twinkle 1.4s ease-in-out infinite;
}

.top-cases__group--beyond .top-cases__list {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.top-cases__group--beyond .top-case {
	position: relative;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 22px 20px 20px;
	border: 0;
	background: #fff;
	box-shadow: 0 18px 36px -18px rgba( 0, 0, 0, 0.5 );
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* カード上辺のアクセントライン */
.top-cases__group--beyond .top-case::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient( 90deg, var( --tt-green-teal ), var( --tt-glow ) );
}

.top-cases__group--beyond .top-case:hover {
	transform: translateY( -3px );
	box-shadow: 0 24px 40px -18px rgba( 0, 0, 0, 0.55 );
}

.top-cases__group--beyond .top-case__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient( 145deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 8px 18px -8px rgba( 13, 85, 72, 0.7 );
	color: #fff;
	font-size: 24px;
}

.top-cases__group--beyond .top-case__title {
	color: var( --tt-ink );
	font-size: 1.25rem;
}

.top-cases__group--beyond .top-case__text {
	color: var( --tt-ink-muted );
}

/* --- 着地: 事業の力へ --- */

.top-section .top-landing {
	position: relative;
	margin-top: 112px;
	padding: 64px 56px 56px;
	border-radius: 32px;
	background: linear-gradient( 160deg, var( --tt-mint ) 0%, var( --tt-mint-pale ) 55%, #fff 100% );
	border: 1px solid var( --tt-line );
	overflow: hidden;
}

.top-landing > *:not( .top-landing__chart ) {
	position: relative;
	z-index: 1;
}

/* 右肩上がりのグラフ(背景装飾)。線が描かれていくアニメーション */
.top-landing__chart {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 64%;
	height: 95%;
	overflow: visible;
	pointer-events: none;
}

.top-landing__area {
	fill: url( #tc-chart-fill );
}

/* 描画アニメーションはテンプレート内のSMILで実施(pathLength="1" で正規化) */
.top-landing__line {
	fill: none;
	stroke: var( --tt-green-teal );
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
}

.top-landing__dot {
	fill: #fff;
	stroke: var( --tt-green-teal );
	stroke-width: 4;
	filter: drop-shadow( 0 0 8px rgba( 43, 154, 130, 0.9 ) );
}

.top-section .top-landing__pre {
	margin: 0 0 14px;
	color: var( --tt-green );
	font-size: clamp( 1.25rem, 1rem + 0.8vw, 1.625rem );
	font-weight: 800;
	line-height: 1.6;
}

.top-section .top-landing__main {
	max-width: 820px;
	margin: 0 0 44px;
	color: var( --tt-ink );
	font-size: clamp( 1.75rem, 1.1rem + 2.2vw, 2.875rem );
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.top-landing__outcomes {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-landing__outcomes li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: 22px 24px;
	border-radius: var( --tt-radius-md );
	background: rgba( 255, 255, 255, 0.85 );
	border: 1px solid var( --tt-line );
	box-shadow: var( --tt-shadow-card );
	color: var( --tt-ink );
	font-size: clamp( 1.125rem, 0.95rem + 0.6vw, 1.375rem );
	font-weight: 800;
	line-height: 1.45;
	-webkit-backdrop-filter: blur( 6px );
	backdrop-filter: blur( 6px );
}

.top-landing__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient( 145deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 8px 18px -8px rgba( 13, 85, 72, 0.7 );
	color: #fff;
	font-size: 24px;
	flex-shrink: 0;
}

.top-landing svg.ti {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- アニメーション --- */

@keyframes top-step-nudge {
	0%,
	100% {
		transform: translateX( 0 );
	}
	50% {
		transform: translateX( 5px );
	}
}

@keyframes top-twinkle {
	0%,
	100% {
		transform: scale( 1 ) rotate( 0 );
		opacity: 1;
	}
	50% {
		transform: scale( 1.3 ) rotate( 15deg );
		opacity: 0.7;
	}
}


@keyframes top-avatar-bob {
	0%,
	100% {
		transform: translateY( 0 );
	}
	50% {
		transform: translateY( -6px );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.top-step::after,
	.top-step--3 .top-step__who svg.ti,
	.top-cases__arrow::before,
	.top-cases__group--beyond .top-cases__label svg.ti {
		animation: none;
	}

	.top-step--3::before {
		display: none;
	}

	.top-landing__line {
		stroke-dasharray: none;
	}

	.top-step__avatar {
		animation: none;
	}

	.top-landing__dot {
		display: none;
	}
}

/* --- タブレット以下: 縦に積む --- */

@media ( max-width: 1080px ) {
	.top-steps {
		grid-template-columns: minmax( 0, 1fr );
		gap: 48px;
		max-width: 640px;
		margin: 0 auto;
	}

	.top-step--1,
	.top-step--2 {
		margin-top: 0;
	}

	.top-steps-wrap {
		padding-top: 24px;
	}

	.top-steps__rise {
		display: none;
	}

	/* 縦積みでは↓矢印と重ならないよう、イラストをカード内に収める */
	.top-step__avatar {
		top: 20px;
		right: 20px;
		width: 84px;
		height: 84px;
	}

	.top-step {
		min-height: 0;
	}

	.top-step:not( :last-child )::after {
		top: auto;
		right: auto;
		bottom: -42px;
		left: 50%;
		margin: 0 0 0 -18px;
		transform: rotate( 90deg );
		animation-name: top-step-nudge-y;
	}

	.top-cases {
		margin-top: 88px;
	}

	.top-cases__grid {
		grid-template-columns: minmax( 0, 1fr );
		max-width: 640px;
		margin: 0 auto;
	}

	.top-cases__arrow {
		height: 56px;
	}

	.top-cases__arrow::before {
		transform: rotate( 90deg );
		animation-name: top-step-nudge-y;
	}

	.top-section .top-landing {
		margin-top: 88px;
		padding: 48px 32px 40px;
	}

	.top-landing__chart {
		width: 90%;
		height: 50%;
		opacity: 0.7;
	}

	.top-landing__outcomes {
		grid-template-columns: minmax( 0, 1fr );
		max-width: 420px;
	}
}

@keyframes top-step-nudge-y {
	0%,
	100% {
		transform: rotate( 90deg ) translateX( 0 );
	}
	50% {
		transform: rotate( 90deg ) translateX( 5px );
	}
}

@media ( max-width: 600px ) {
	.top-step {
		padding: 26px 20px 22px;
	}

	.top-step__num {
		font-size: 3rem;
	}

	.top-step__avatar {
		width: 72px;
		height: 72px;
		top: 18px;
		right: 16px;
	}

	.top-step__bubble {
		font-size: 1.1875rem;
		padding: 14px 16px;
	}

	.top-step--3 .top-step__bubble {
		font-size: 1.375rem;
	}

	.top-cases__group--beyond {
		padding: 22px 16px 16px;
	}

	.top-cases__group--beyond .top-cases__label {
		font-size: 1.25rem;
	}

	.top-cases__group--beyond .top-cases__list {
		grid-template-columns: minmax( 0, 1fr );
	}

	.top-cases__group--beyond .top-case {
		flex-direction: row;
		align-items: center;
		padding: 16px;
	}

	.top-section .top-landing {
		padding: 40px 20px 24px;
		border-radius: 24px;
	}

	.top-section .top-landing__main br {
		display: none;
	}

	.top-landing__outcomes li {
		flex-direction: row;
		align-items: center;
		padding: 16px 18px;
	}

	.top-cases__label {
		font-size: 1.375rem;
	}
}

/* ============================================================
 * ヒーロー(Phase 3)
 *   左: コピー・補足・CTA / 右: 管理画面を抽象化したモック
 *   (モールから受注が届き、業務ルールで自動処理され、倉庫へ連携される様子)
 * ========================================================== */

.top-section.top-hero {
	padding: 72px 24px 96px;
	overflow-x: clip;
	background:
		radial-gradient( 55% 70% at 88% 35%, rgba( 43, 154, 130, 0.16 ) 0%, transparent 70% ),
		radial-gradient( 45% 55% at 0% 100%, rgba( 221, 243, 235, 0.95 ) 0%, transparent 70% ),
		linear-gradient( 180deg, #fff 0%, var( --tt-mint-pale ) 100% );
}

/* 方眼の地模様(右側だけうっすら) */
.top-section.top-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient( rgba( 19, 117, 97, 0.06 ) 1px, transparent 1px ),
		linear-gradient( 90deg, rgba( 19, 117, 97, 0.06 ) 1px, transparent 1px );
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient( 55% 75% at 78% 45%, #000 0%, transparent 75% );
	mask-image: radial-gradient( 55% 75% at 78% 45%, #000 0%, transparent 75% );
	pointer-events: none;
}

.top-hero-slide {
	position: relative;
	display: grid;
	grid-template-columns: minmax( 0, 1.15fr ) minmax( 0, 1fr );
	gap: 56px;
	align-items: center;
	min-height: 520px;
}

.top-hero__copy > * {
	margin-top: 0;
	margin-bottom: 0;
}

.top-section .top-hero__title {
	margin: 0 0 24px;
	color: var( --tt-ink );
	font-size: clamp( 2rem, 1.2rem + 3.2vw, 3.5rem );
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: 0.01em;
}

.top-section .top-hero__lead {
	max-width: 30em;
	margin: 0 0 36px;
	color: var( --tt-ink-muted );
	font-size: clamp( 1rem, 0.9rem + 0.35vw, 1.1875rem );
	font-weight: 500;
	line-height: 1.95;
}

/* --- CTA --- */

.top-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
}

.top-hero .top-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 18px 30px;
	border-radius: 999px;
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-hero .top-btn--primary {
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	color: #fff;
	box-shadow: 0 14px 28px -12px rgba( 13, 85, 72, 0.65 );
}

.top-hero .top-btn--primary::after {
	content: "→";
	transition: transform 0.2s ease;
}

.top-hero .top-btn--primary:hover {
	transform: translateY( -2px );
	box-shadow: 0 18px 32px -12px rgba( 13, 85, 72, 0.75 );
	color: #fff;
}

.top-hero .top-btn--primary:hover::after {
	transform: translateX( 4px );
}

.top-hero .top-btn--ghost {
	background: #fff;
	color: var( --tt-green-deep );
	box-shadow: inset 0 0 0 2px var( --tt-green );
}

.top-hero .top-btn--ghost:hover {
	background: var( --tt-mint );
	color: var( --tt-green-deep );
}


/* --- 右: ビジュアル --- */

.top-hero__visual {
	--hero-cycle: 6s;
	position: relative;
	padding-left: 128px;
}

.top-hero__visual ul,
.top-hero__visual ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-hero__visual p {
	margin: 0;
}

/* モール・カートから受注が流れ込む */
.top-hero__malls {
	position: absolute;
	top: 50%;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transform: translateY( -50% );
}

.top-hero__malls li {
	position: relative;
	width: max-content;
	padding: 7px 12px;
	border: 1px solid var( --tt-line );
	border-radius: 10px;
	background: #fff;
	box-shadow: var( --tt-shadow-card );
	color: var( --tt-ink );
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.4;
}

/* チップ → 管理画面への流れる線 */
.top-hero__malls li::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	width: 140px;
	height: 2px;
	margin-top: -1px;
	background:
		radial-gradient( circle, var( --tt-green-teal ) 2.5px, transparent 3px ) 0 50% / 10px 10px no-repeat,
		linear-gradient( 90deg, rgba( 43, 154, 130, 0.45 ) 50%, transparent 50% ) 0 0 / 8px 2px repeat-x;
	animation: top-hero-feed 1.4s linear infinite;
	z-index: -1;
}

.top-hero__malls li:nth-child( 2 )::after {
	animation-delay: -0.35s;
}

.top-hero__malls li:nth-child( 3 )::after {
	width: 100px;
	animation-delay: -0.7s;
}

.top-hero__malls li:nth-child( 4 )::after {
	width: 150px;
	animation-delay: -1.05s;
}

/* 管理画面モック */
.top-hero__app {
	position: relative;
	z-index: 1;
	overflow: hidden;
	border: 1px solid var( --tt-line );
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 2px 4px rgba( 23, 51, 46, 0.04 ), 0 40px 80px -32px rgba( 13, 85, 72, 0.45 );
}

.top-hero__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid var( --tt-line );
	background: linear-gradient( 150deg, var( --tt-green-deep ), var( --tt-green ) );
	color: #fff;
}

.top-hero__dots {
	display: inline-flex;
	gap: 5px;
}

.top-hero__dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.35 );
}

.top-hero__app-title {
	flex: 1;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.top-hero__app-title > span:last-child {
	margin-left: 10px;
	color: rgba( 255, 255, 255, 0.7 );
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.top-hero__live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.14 );
	font-size: 0.6875rem;
	font-weight: 700;
}

.top-hero__live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var( --tt-glow );
	box-shadow: 0 0 0 0 rgba( 143, 227, 194, 0.8 );
	animation: top-hero-live 1.4s ease-out infinite;
}

.top-hero__stats {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 10px;
	padding: 16px 18px 6px;
}

.top-hero__stat {
	padding: 10px 12px;
	border-radius: 12px;
	background: var( --tt-mint-pale );
}

.top-hero__stat span {
	display: block;
	margin-bottom: 8px;
	color: var( --tt-ink );
	font-size: 0.75rem;
	font-weight: 800;
}

.top-hero__stat i {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: var( --tt-mint );
	overflow: hidden;
}

.top-hero__stat i::before {
	content: "";
	display: block;
	width: var( --w );
	height: 100%;
	border-radius: inherit;
	background: linear-gradient( 90deg, var( --tt-green-teal ), var( --tt-green ) );
	transform-origin: left;
	animation: top-hero-bar var( --hero-cycle ) ease-in-out infinite;
}

.top-hero__rows {
	padding: 8px 10px 14px;
}

.top-hero__rows li {
	--row-delay: 0s;
	display: grid;
	grid-template-columns: 96px minmax( 0, 1fr ) auto;
	align-items: center;
	gap: 10px;
	padding: 10px 8px;
	border-radius: 10px;
	border-bottom: 1px solid #edf5f2;
	font-size: 0.8125rem;
	animation: top-hero-row var( --hero-cycle ) ease-in-out infinite;
	animation-delay: var( --row-delay );
}

.top-hero__rows li:last-child {
	border-bottom: 0;
}

.top-hero__rows li:nth-child( 2 ) { --row-delay: 0.5s; }
.top-hero__rows li:nth-child( 3 ) { --row-delay: 1s; }
.top-hero__rows li:nth-child( 4 ) { --row-delay: 1.5s; }
.top-hero__rows li:nth-child( 5 ) { --row-delay: 2s; }

.top-hero__mall {
	justify-self: start;
	padding: 2px 8px;
	border-radius: 6px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.6875rem;
	font-weight: 800;
	white-space: nowrap;
}

.top-hero__id {
	color: var( --tt-ink-muted );
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.75rem;
}

/* ステータス: 判定中 → 自動処理済 に切り替わる */
.top-hero__status {
	position: relative;
	display: inline-grid;
	min-width: 92px;
	text-align: center;
}

.top-hero__status b {
	grid-area: 1 / 1;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 1.5;
	white-space: nowrap;
	animation: var( --hero-cycle ) ease-in-out infinite;
	animation-delay: var( --row-delay );
}

.top-hero__status .is-wait {
	background: #fff4dc;
	color: #9a6a00;
	animation-name: top-hero-wait;
}

.top-hero__status .is-done {
	background: var( --tt-green-teal );
	color: #fff;
	animation-name: top-hero-done;
}

/* 浮遊カード */
.top-hero__float {
	position: absolute;
	z-index: 2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 48px -20px rgba( 13, 85, 72, 0.5 );
}

.top-hero__float--rule {
	top: -34px;
	right: -28px;
	padding: 14px 16px;
	border: 1px solid var( --tt-line );
	animation: top-avatar-bob 3.4s ease-in-out infinite;
}

.top-hero__float-label {
	margin-bottom: 8px !important;
	color: var( --tt-green );
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.12em;
}

.top-hero__rule {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var( --tt-ink );
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.6;
}

.top-hero__rule + .top-hero__rule {
	margin-top: 4px !important;
}

.top-hero__rule span {
	padding: 1px 7px;
	border-radius: 6px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.625rem;
}

.top-hero__rule + .top-hero__rule span {
	background: var( --tt-green );
	color: #fff;
}

.top-hero__float--toast {
	right: 28px;
	bottom: -26px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px 12px 12px;
	background: var( --tt-green-deep );
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 800;
	animation: top-hero-toast var( --hero-cycle ) ease-in-out infinite;
	animation-delay: 1.2s;
}

.top-hero__toast-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var( --tt-glow );
	color: var( --tt-green-deep );
}

.top-hero__toast-icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- アニメーション --- */

@keyframes top-hero-feed {
	from {
		background-position: 0 50%, 0 0;
	}
	to {
		background-position: 100% 50%, 8px 0;
	}
}

@keyframes top-hero-live {
	70% {
		box-shadow: 0 0 0 8px rgba( 143, 227, 194, 0 );
	}
	100% {
		box-shadow: 0 0 0 0 rgba( 143, 227, 194, 0 );
	}
}

@keyframes top-hero-bar {
	0% {
		transform: scaleX( 0.35 );
	}
	45%,
	85% {
		transform: scaleX( 1 );
	}
	100% {
		transform: scaleX( 0.35 );
	}
}

@keyframes top-hero-row {
	0%,
	12% {
		background: transparent;
	}
	18% {
		background: var( --tt-mint );
	}
	32%,
	100% {
		background: transparent;
	}
}

@keyframes top-hero-wait {
	0%,
	14% {
		opacity: 1;
	}
	18%,
	92% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes top-hero-done {
	0%,
	14% {
		opacity: 0;
		transform: scale( 0.8 );
	}
	20% {
		opacity: 1;
		transform: scale( 1.1 );
	}
	26%,
	90% {
		opacity: 1;
		transform: scale( 1 );
	}
	96%,
	100% {
		opacity: 0;
		transform: scale( 1 );
	}
}

@keyframes top-hero-toast {
	0%,
	30% {
		opacity: 0;
		transform: translateY( 12px ) scale( 0.96 );
	}
	38%,
	82% {
		opacity: 1;
		transform: translateY( 0 ) scale( 1 );
	}
	90%,
	100% {
		opacity: 0;
		transform: translateY( 12px ) scale( 0.96 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.top-hero__malls li::after,
	.top-hero__live::before,
	.top-hero__stat i::before,
	.top-hero__rows li,
	.top-hero__status b,
	.top-hero__float--rule,
	.top-hero__float--toast {
		animation: none;
	}

	.top-hero__status .is-wait {
		opacity: 0;
	}
}

/* --- タブレット以下: コピー → CTA → ビジュアル の順に縦積み --- */

@media ( max-width: 1080px ) {
	.top-section.top-hero {
		padding: 56px 24px 88px;
	}

	.top-hero-slider {
		max-width: 640px;
	}

	.top-hero-slide {
		grid-template-columns: minmax( 0, 1fr );
		gap: 56px;
		align-items: start;
		min-height: 0;
	}

	.top-hero__visual {
		padding-left: 0;
		padding-top: 64px;
	}

	.top-hero__malls {
		top: 0;
		left: 0;
		right: 0;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
		transform: none;
	}

	.top-hero__malls li::after {
		display: none;
	}

	.top-hero__float--rule {
		top: 40px;
		right: -8px;
	}
}

@media ( max-width: 600px ) {
	.top-section.top-hero {
		margin-left: -20px;
		margin-right: -20px;
		padding: 40px 20px 72px;
	}

	.top-section .top-hero__title {
		margin-bottom: 18px;
	}

	.top-section .top-hero__lead br {
		display: none;
	}

	.top-section .top-hero__lead {
		margin-bottom: 26px;
		font-size: 0.9375rem;
		line-height: 1.85;
	}

	.top-hero__ctas {
		gap: 10px;
	}

	.top-hero .top-btn {
		justify-content: center;
		width: 100%;
		padding: 16px 24px;
	}

	.top-hero__visual {
		padding-top: 48px;
	}

	.top-hero__malls {
		flex-wrap: nowrap;
		gap: 6px;
	}

	.top-hero__malls li {
		padding: 5px 9px;
		font-size: 0.6875rem;
		white-space: nowrap;
	}

	.top-hero__rows li {
		grid-template-columns: 76px minmax( 0, 1fr ) auto;
		gap: 6px;
		padding: 9px 6px;
	}

	.top-hero__app-title > span:last-child {
		display: none;
	}

	.top-hero__float--rule {
		position: relative;
		top: auto;
		right: auto;
		width: max-content;
		max-width: 100%;
		margin: 14px 0 0 auto;
	}

	/* SPではトーストを管理画面の上部(集計欄の上)に重ねて出す */
	.top-hero__float--toast {
		top: 96px;
		right: 10px;
		bottom: auto;
		left: 10px;
		padding: 10px 14px 10px 10px;
		font-size: 0.75rem;
	}
}

/* --- ヒーロー: ビジュアルのバリエーション(管理画面「右側のビジュアル」で選択) --- */

.top-hero__visual--rules,
.top-hero__visual--idea,
.top-hero__visual--scale,
.top-hero__visual--image {
	padding-left: 0;
}

/* 業務ルールの自動実行 */
.top-hv-rules {
	display: grid;
	gap: 10px;
	padding: 18px 18px 8px;
	counter-reset: top-rule;
}

.top-hv-rules li {
	--rule-delay: 0s;
	position: relative;
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr ) 28px;
	align-items: center;
	gap: 28px;
	padding: 10px;
	border: 1px solid var( --tt-line );
	border-radius: 14px;
	animation: top-rule-row 6s ease-in-out infinite;
	animation-delay: var( --rule-delay );
}

.top-hv-rules li:nth-child( 2 ) { --rule-delay: 0.9s; }
.top-hv-rules li:nth-child( 3 ) { --rule-delay: 1.8s; }
.top-hv-rules li:nth-child( 4 ) { --rule-delay: 2.7s; }

/* 条件 → 処理 の矢印 */
.top-hv-rules li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc( ( 100% - 28px - 56px ) / 2 + 10px + 7px );
	width: 10px;
	height: 10px;
	margin-top: -5px;
	border-top: 2px solid var( --tt-green-teal );
	border-right: 2px solid var( --tt-green-teal );
	transform: rotate( 45deg );
}

.top-hv-rules__if,
.top-hv-rules__then {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var( --tt-ink );
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-hv-rules__if {
	background: var( --tt-mint-pale );
}

.top-hv-rules__then {
	background: var( --tt-mint );
	animation: top-rule-then 6s ease-in-out infinite;
	animation-delay: var( --rule-delay );
}

.top-hv-rules small {
	color: var( --tt-green );
	font-size: 0.625rem;
	font-weight: 800;
	letter-spacing: 0.1em;
}

.top-hv-rules__check {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var( --tt-line );
	background:
		url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E" ) center / 14px no-repeat;
	animation: top-rule-check 6s ease-in-out infinite;
	animation-delay: var( --rule-delay );
}

.top-hv-rules__foot {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px 18px;
	color: var( --tt-ink-muted );
	font-size: 0.75rem;
	font-weight: 700;
}

.top-hv-rules__foot i {
	position: relative;
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: var( --tt-mint );
	overflow: hidden;
}

.top-hv-rules__foot i::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 40%;
	border-radius: inherit;
	background: linear-gradient( 90deg, transparent, var( --tt-green-teal ), transparent );
	animation: top-rule-scan 1.6s linear infinite;
}

/* 提案・カスタマイズ(会話) */
.top-hv-chat {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	border: 1px solid var( --tt-line );
	border-radius: 24px;
	background: rgba( 255, 255, 255, 0.85 );
	box-shadow: 0 40px 80px -32px rgba( 13, 85, 72, 0.45 );
}

.top-hv-chat__msg,
.top-hv-chat__result {
	animation: 7.5s ease-in-out infinite both;
}

.top-hv-chat__msg {
	max-width: 82%;
	animation-name: top-chat-1;
}

.top-hv-chat__msg--tokko {
	align-self: flex-end;
	animation-name: top-chat-2;
}

.top-hv-chat__who {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.6875rem;
	font-weight: 800;
}

.top-hv-chat__msg--tokko .top-hv-chat__who {
	float: right;
	background: var( --tt-green );
	color: #fff;
}

.top-hv-chat__msg p {
	clear: both;
	padding: 14px 18px;
	border-radius: 18px 18px 18px 4px;
	background: var( --tt-mint-pale );
	border: 1px solid var( --tt-line );
	color: var( --tt-ink );
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.5;
}

.top-hv-chat__msg--tokko p {
	border: 0;
	border-radius: 18px 18px 4px 18px;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green ) );
	color: #fff;
}

.top-hv-chat__result {
	position: relative;
	padding: 20px 22px;
	border-radius: 20px;
	background:
		radial-gradient( 80% 60% at 100% 0%, rgba( 143, 227, 194, 0.35 ) 0%, transparent 60% ),
		linear-gradient( 150deg, var( --tt-green-deep ), var( --tt-green ) );
	color: #fff;
	animation-name: top-chat-3;
}

.top-hv-chat__result p {
	margin-bottom: 10px !important;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-hv-chat__result ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.top-hv-chat__result li {
	padding: 4px 12px;
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.1 );
	font-size: 0.8125rem;
	font-weight: 700;
}

.top-hv-chat__result li::before {
	content: "✓ ";
	color: var( --tt-glow );
}

.top-hv-chat__spark {
	position: absolute;
	top: -12px;
	right: 18px;
	width: 34px;
	height: 34px;
	background: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd76a' d='M12 1l2.6 7.4L22 11l-7.4 2.6L12 21l-2.6-7.4L2 11l7.4-2.6z'/%3E%3C/svg%3E" ) center / contain no-repeat;
	animation: top-twinkle 1.4s ease-in-out infinite;
}

/* 大量商品・特殊商材 */
.top-hv-scale {
	padding: 26px 26px 28px;
}

.top-hv-scale__count {
	font-size: clamp( 3.5rem, 2rem + 4vw, 5.5rem );
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.top-hv-scale__count span {
	margin-left: 6px;
	font-size: 0.32em;
	letter-spacing: 0;
}

.top-hv-scale__caption {
	margin: 8px 0 18px !important;
	color: var( --tt-ink );
	font-size: 0.9375rem;
	font-weight: 800;
}

.top-hv-scale__progress {
	height: 10px;
	border-radius: 999px;
	background: var( --tt-mint );
	overflow: hidden;
}

.top-hv-scale__progress i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background:
		repeating-linear-gradient( 45deg, rgba( 255, 255, 255, 0.25 ) 0 8px, transparent 8px 16px ),
		linear-gradient( 90deg, var( --tt-green-teal ), var( --tt-green ) );
	transform-origin: left;
	animation: top-scale-fill 4s ease-in-out infinite;
}

.top-hv-scale__malls {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 8px;
	margin-top: 16px !important;
}

.top-hv-scale__malls li {
	--mall-delay: 1s;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var( --tt-mint-pale );
	color: var( --tt-ink );
	font-size: 0.75rem;
	font-weight: 800;
	white-space: nowrap;
}

.top-hv-scale__malls li::after {
	content: "";
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border-radius: 50%;
	background:
		url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E" ) center / 10px no-repeat,
		var( --tt-green-teal );
	animation: top-scale-check 4s ease-in-out infinite;
	animation-delay: var( --mall-delay );
}

.top-hv-scale__malls li:nth-child( 2 ) { --mall-delay: 1.4s; }
.top-hv-scale__malls li:nth-child( 3 ) { --mall-delay: 1.8s; }

.top-hv-scale__special {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed var( --tt-line );
}

.top-hv-scale__special p {
	color: var( --tt-green );
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.top-hv-scale__special ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.top-hv-scale__special li {
	padding: 3px 10px;
	border-radius: 999px;
	background: var( --tt-green );
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}


/* アイキャッチ画像 */
.top-hero__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 40px 80px -32px rgba( 13, 85, 72, 0.45 );
}

@keyframes top-rule-row {
	0%,
	8% {
		border-color: var( --tt-line );
		box-shadow: none;
	}
	14%,
	40% {
		border-color: var( --tt-green-teal );
		box-shadow: 0 8px 20px -10px rgba( 13, 85, 72, 0.45 );
	}
	50%,
	100% {
		border-color: var( --tt-line );
		box-shadow: none;
	}
}

@keyframes top-rule-then {
	0%,
	12% {
		background: var( --tt-mint );
		color: var( --tt-ink );
	}
	18%,
	88% {
		background: var( --tt-green-teal );
		color: #fff;
	}
	96%,
	100% {
		background: var( --tt-mint );
		color: var( --tt-ink );
	}
}

@keyframes top-rule-check {
	0%,
	14% {
		background-color: transparent;
		border-color: var( --tt-line );
		transform: scale( 1 );
	}
	20% {
		background-color: var( --tt-green-teal );
		border-color: var( --tt-green-teal );
		transform: scale( 1.2 );
	}
	26%,
	88% {
		background-color: var( --tt-green-teal );
		border-color: var( --tt-green-teal );
		transform: scale( 1 );
	}
	96%,
	100% {
		background-color: transparent;
		border-color: var( --tt-line );
		transform: scale( 1 );
	}
}

@keyframes top-rule-scan {
	from {
		left: -40%;
	}
	to {
		left: 100%;
	}
}

@keyframes top-chat-1 {
	0% {
		opacity: 0;
		transform: translateY( 12px );
	}
	6%,
	88% {
		opacity: 1;
		transform: none;
	}
	96%,
	100% {
		opacity: 0;
		transform: none;
	}
}

@keyframes top-chat-2 {
	0%,
	14% {
		opacity: 0;
		transform: translateY( 12px );
	}
	20%,
	88% {
		opacity: 1;
		transform: none;
	}
	96%,
	100% {
		opacity: 0;
		transform: none;
	}
}

@keyframes top-chat-3 {
	0%,
	30% {
		opacity: 0;
		transform: translateY( 12px ) scale( 0.96 );
	}
	36% {
		opacity: 1;
		transform: scale( 1.03 );
	}
	42%,
	88% {
		opacity: 1;
		transform: none;
	}
	96%,
	100% {
		opacity: 0;
		transform: none;
	}
}

@keyframes top-scale-fill {
	0% {
		transform: scaleX( 0.05 );
	}
	70%,
	90% {
		transform: scaleX( 1 );
	}
	100% {
		transform: scaleX( 0.05 );
	}
}

@keyframes top-scale-check {
	0%,
	10% {
		opacity: 0;
		transform: scale( 0.4 );
	}
	20%,
	85% {
		opacity: 1;
		transform: scale( 1 );
	}
	95%,
	100% {
		opacity: 0;
		transform: scale( 0.4 );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.top-hv-rules li,
	.top-hv-rules__then,
	.top-hv-rules__check,
	.top-hv-rules__foot i::before,
	.top-hv-chat__msg,
	.top-hv-chat__result,
	.top-hv-chat__spark,
	.top-hv-scale__progress i,
	.top-hv-scale__malls li::after {
		animation: none;
	}
}

@media ( max-width: 600px ) {
	.top-hv-rules {
		padding: 14px 12px 6px;
	}

	.top-hv-rules li {
		grid-template-columns: minmax( 0, 1fr ) minmax( 0, 1fr ) 22px;
		gap: 18px;
		padding: 8px;
	}

	.top-hv-rules li::before {
		left: calc( ( 100% - 22px - 36px ) / 2 + 8px + 3px );
		width: 8px;
		height: 8px;
		margin-top: -4px;
	}

	.top-hv-rules__if,
	.top-hv-rules__then {
		padding: 6px 8px;
		font-size: 0.75rem;
	}

	.top-hv-rules__check {
		width: 22px;
		height: 22px;
	}

	.top-hero__visual--rules .top-hero__float--toast {
		display: none;
	}

	.top-hv-chat {
		padding: 20px 16px;
	}

	.top-hv-chat__msg p {
		font-size: 0.9375rem;
	}

	.top-hv-chat__result p {
		font-size: 1.25rem;
	}

	.top-hv-scale {
		padding: 22px 18px;
	}
}

/* ============================================================
 * 「選ばれる理由」(ベントーグリッド)と「主要機能」(Phase 4)
 * ========================================================== */

.top-reasons svg.ti,
.top-features svg.ti {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.top-reasons ul,
.top-reasons ol,
.top-features ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-reasons p,
.top-reasons h3 {
	margin: 0;
}

/* --- 選ばれる理由: 大小のカードを組み合わせたグリッド --- */

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

.top-bento__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 34px 32px 32px;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-lg );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
	overflow: hidden;
}

.top-bento__card--wide {
	grid-column: span 2;
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 0.9fr );
	align-items: center;
	gap: 32px;
}

.top-bento__card--mint {
	background: linear-gradient( 160deg, var( --tt-mint ) 0%, #fff 75% );
	border-color: #c4e6da;
}

.top-bento__card--dark {
	border-color: transparent;
	background:
		radial-gradient( 80% 55% at 100% 0%, rgba( 143, 227, 194, 0.35 ) 0%, transparent 60% ),
		linear-gradient( 150deg, var( --tt-green-deep ) 0%, var( --tt-green ) 65%, var( --tt-green-teal ) 100% );
	box-shadow: var( --tt-shadow-hub );
	color: #fff;
}

/* 背景に大きく透かす番号(カード右上。文字・図より後ろ) */
.top-bento__num {
	position: absolute;
	z-index: 0;
	top: 14px;
	right: 24px;
	color: var( --tt-mint );
	font-size: 5.5rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	pointer-events: none;
}

.top-bento__card--mint .top-bento__num {
	color: #fff;
}

.top-bento__card--dark .top-bento__num {
	color: rgba( 255, 255, 255, 0.1 );
}

.top-bento__body > :not( .top-bento__num ),
.top-bento__visual {
	position: relative;
	z-index: 1;
}

.top-bento__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px !important;
	padding: 5px 12px;
	border-radius: 999px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-bento__tag svg.ti {
	font-size: 15px;
}

.top-bento__card--mint .top-bento__tag {
	background: #fff;
}

.top-bento__card--dark .top-bento__tag {
	background: rgba( 255, 255, 255, 0.14 );
	color: #fff;
}

.top-bento__card--dark .top-bento__tag svg.ti {
	color: var( --tt-glow );
}

.top-bento__title {
	margin-bottom: 12px !important;
	color: var( --tt-ink );
	font-size: clamp( 1.375rem, 1rem + 1vw, 1.875rem );
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.01em;
}

.top-bento__card--dark .top-bento__title {
	color: #fff;
}

.top-bento__text {
	color: var( --tt-ink-muted );
	font-size: 0.9375rem;
	line-height: 1.85;
}

.top-bento__card--dark .top-bento__text {
	color: rgba( 255, 255, 255, 0.85 );
}

/* 01: 複数モール → 特攻店長 に集約 */
.top-merge {
	display: grid;
	grid-template-columns: auto minmax( 40px, 1fr ) auto;
	align-items: center;
	padding: 20px;
	border-radius: 20px;
	background: var( --tt-mint-pale );
}

.top-merge__malls {
	display: grid;
	gap: 8px;
}

.top-merge__malls li {
	padding: 6px 12px;
	border: 1px solid var( --tt-line );
	border-radius: 10px;
	background: #fff;
	color: var( --tt-ink );
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
}

.top-merge__lines {
	width: 100%;
	height: 100%;
	min-height: 140px;
	overflow: visible;
}

.top-merge__lines path {
	fill: none;
	stroke: var( --tt-green-teal );
	stroke-width: 2;
	stroke-dasharray: 4 5;
	vector-effect: non-scaling-stroke;
	animation: top-merge-flow 0.9s linear infinite;
}

.top-merge__hub {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px 18px;
	border-radius: 18px;
	background: linear-gradient( 150deg, var( --tt-green-deep ), var( --tt-green ) );
	box-shadow: 0 16px 32px -14px rgba( 13, 85, 72, 0.6 );
	color: #fff;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.3;
	white-space: nowrap;
}

.top-merge__hub small {
	margin-top: 4px;
	color: var( --tt-glow );
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
}

/* 02: 条件 → 処理 */
.top-mini-rule {
	display: grid;
	gap: 10px;
	margin-top: auto;
}

.top-mini-rule span {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var( --tt-line );
	color: var( --tt-ink );
	font-size: 0.9375rem;
	font-weight: 800;
}

.top-mini-rule span + span {
	background: var( --tt-green-teal );
	border-color: transparent;
	color: #fff;
}

.top-mini-rule span + span::before {
	content: "";
	position: absolute;
	top: -15px;
	left: 26px;
	width: 2px;
	height: 18px;
	background: var( --tt-green-teal );
}

.top-mini-rule span + span::after {
	content: "✓";
	margin-left: auto;
	color: var( --tt-glow );
}

.top-mini-rule small {
	padding: 1px 8px;
	border-radius: 6px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.6875rem;
}

.top-mini-rule span + span small {
	background: rgba( 255, 255, 255, 0.2 );
	color: #fff;
}

/* 03: カスタマイズの例 */
.top-chips-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto !important;
}

.top-chips-cloud li {
	padding: 7px 14px;
	border: 1px solid rgba( 255, 255, 255, 0.25 );
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.1 );
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 800;
}

/* 04: 実績とチーム */
.top-proof {
	display: grid;
	gap: 16px;
}

.top-proof__stats {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 12px;
}

.top-proof__stats p {
	padding: 18px 18px 16px;
	border-radius: 18px;
	background: var( --tt-mint-pale );
}

.top-proof__stats strong {
	display: block;
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.top-proof__stats small {
	margin-left: 2px;
	font-size: 0.4em;
	letter-spacing: 0;
}

.top-proof__stats span {
	display: block;
	margin-top: 6px;
	color: var( --tt-ink-muted );
	font-size: 0.8125rem;
	font-weight: 700;
}

.top-proof__team {
	display: flex;
	align-items: center;
	gap: 0;
}

.top-proof__team li {
	flex: 1;
	padding: 10px 8px;
	border-radius: 999px;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 800;
	text-align: center;
	box-shadow: 0 0 0 4px #fff;
}

.top-proof__team li + li {
	margin-left: -6px;
}

/* 下部の補足バッジ */
.top-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 36px !important;
}

.top-badges li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var( --tt-line );
	border-radius: 999px;
	background: #fff;
	color: var( --tt-green-deep );
	font-size: 0.875rem;
	font-weight: 800;
}

.top-badges svg.ti {
	color: var( --tt-green );
	font-size: 16px;
}

/* --- 主要機能 --- */

.top-features__group {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	color: var( --tt-ink );
	font-size: 1.25rem;
	font-weight: 800;
}

.top-features__group::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var( --tt-line );
}

.top-features__grid {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 16px;
}

.top-features__grid--core {
	margin-bottom: 48px !important;
}

.top-features__grid > li {
	display: flex;
}

.top-feature {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 28px 24px 24px;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-md );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
	color: var( --tt-ink );
	text-decoration: none !important;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-feature:hover {
	transform: translateY( -4px );
	border-color: var( --tt-green-teal );
	box-shadow: 0 24px 40px -20px rgba( 13, 85, 72, 0.45 );
	color: var( --tt-ink );
}

.top-features__grid--core .top-feature::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient( 90deg, var( --tt-green-teal ), var( --tt-glow ) );
}

.top-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: linear-gradient( 145deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 10px 20px -10px rgba( 13, 85, 72, 0.7 );
	color: #fff;
	font-size: 26px;
}

.top-feature__name {
	margin-bottom: 6px;
	color: var( --tt-green );
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.top-feature__title {
	margin-bottom: 10px;
	color: var( --tt-ink );
	font-size: 1.3125rem;
	font-weight: 800;
	line-height: 1.45;
}

.top-feature__text {
	color: var( --tt-ink-muted );
	font-size: 0.875rem;
	line-height: 1.8;
}

.top-feature__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 18px;
	color: var( --tt-green );
	font-size: 0.875rem;
	font-weight: 800;
}

.top-feature__more::after {
	content: "→";
	transition: transform 0.2s ease;
}

.top-feature:hover .top-feature__more::after {
	transform: translateX( 4px );
}

/* 拡張機能は一段控えめに(横並びのコンパクトなカード) */
.top-features__grid--extra .top-feature {
	display: grid;
	grid-template-columns: 44px minmax( 0, 1fr );
	grid-template-rows: auto auto 1fr;
	column-gap: 14px;
	padding: 20px;
	background: var( --tt-mint-pale );
	box-shadow: none;
}

.top-features__grid--extra .top-feature__icon {
	grid-row: 1 / span 3;
	width: 44px;
	height: 44px;
	margin: 0;
	background: #fff;
	box-shadow: none;
	border: 1px solid var( --tt-line );
	color: var( --tt-green );
	font-size: 20px;
}

.top-features__grid--extra .top-feature__name {
	margin-bottom: 2px;
}

.top-features__grid--extra .top-feature__title {
	margin-bottom: 6px;
	font-size: 1.0625rem;
}

.top-features__grid--extra .top-feature__text {
	font-size: 0.8125rem;
	line-height: 1.7;
}

@keyframes top-merge-flow {
	to {
		stroke-dashoffset: -9;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.top-merge__lines path {
		animation: none;
	}
}

@media ( max-width: 1080px ) {
	.top-bento {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.top-bento__card--wide {
		grid-column: span 2;
	}

	.top-features__grid {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 600px ) {
	.top-bento {
		grid-template-columns: minmax( 0, 1fr );
		gap: 14px;
	}

	.top-bento__card,
	.top-bento__card--wide {
		grid-column: auto;
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 28px 22px 24px;
	}

	.top-bento__num {
		right: 18px;
		font-size: 4rem;
	}

	.top-merge {
		padding: 16px;
	}

	.top-proof__stats strong {
		font-size: 2.25rem;
	}

	.top-features__grid {
		grid-template-columns: minmax( 0, 1fr );
		gap: 12px;
	}

	.top-features__grid--core .top-feature {
		display: grid;
		grid-template-columns: 52px minmax( 0, 1fr );
		column-gap: 16px;
		padding: 22px 20px 20px;
	}

	.top-features__grid--core .top-feature__icon {
		grid-row: 1 / span 4;
		width: 52px;
		height: 52px;
		margin: 0;
		font-size: 24px;
	}

	.top-features__grid--core .top-feature__more {
		padding-top: 10px;
	}

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

/* ============================================================
 * 導入実績(導入企業ロゴ)と対応モール・連携サービス(Phase 5)
 * ========================================================== */

/* --- 導入実績 --- */

.top-section.top-clients {
	padding: 80px 0 72px;
	background: #fff;
}

.top-clients__head {
	padding: 0 24px;
	text-align: center;
}

.top-clients__head > * {
	margin-top: 0;
	margin-bottom: 0;
}

.top-section .top-clients__title {
	margin: 0 0 36px;
	color: var( --tt-ink );
	font-size: clamp( 1.5rem, 1rem + 1.8vw, 2.375rem );
	font-weight: 800;
	line-height: 1.4;
}

.top-stats {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	max-width: 960px;
	margin: 0 auto 48px !important;
	padding: 0;
	list-style: none;
}

.top-stats li {
	position: relative;
	padding: 4px 16px;
}

.top-stats li + li::before {
	content: "";
	position: absolute;
	top: 10%;
	bottom: 10%;
	left: 0;
	width: 1px;
	background: var( --tt-line );
}

.top-stats strong {
	display: block;
	font-size: clamp( 2.25rem, 1.6rem + 2vw, 3.25rem );
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.top-stats small {
	margin-left: 2px;
	font-size: 0.42em;
	letter-spacing: 0;
}

.top-stats li > span {
	display: block;
	margin-top: 6px;
	color: var( --tt-ink-muted );
	font-size: 0.875rem;
	font-weight: 700;
}

/* --- 対応モール・連携サービス(カテゴリタブ) --- */

.top-int {
	padding: 0;
}

.top-int__tabs {
	display: none;
}

/* JSが有効なときだけタブ表示に切り替える */
.top-int.is-tabbed .top-int__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.top-int__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid var( --tt-line );
	border-radius: 999px;
	background: #fff;
	color: var( --tt-ink );
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-int__tab svg.ti,
.top-int__panel svg.ti {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: var( --tt-green );
	font-size: 18px;
}

.top-int__tab:hover {
	border-color: var( --tt-green-teal );
}

.top-int__tab:focus-visible {
	outline: 2px solid var( --tt-green-teal );
	outline-offset: 3px;
}

.top-int__tab.is-active {
	border-color: transparent;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 12px 24px -12px rgba( 13, 85, 72, 0.7 );
	color: #fff;
}

.top-int__tab.is-active svg.ti {
	color: var( --tt-glow );
}

.top-int__count {
	min-width: 26px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.75rem;
	text-align: center;
}

.top-int__tab.is-active .top-int__count {
	background: rgba( 255, 255, 255, 0.2 );
	color: #fff;
}

.top-int__panel {
	padding: 32px;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-lg );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
}

.top-int__panel + .top-int__panel {
	margin-top: 20px;
}

.top-int.is-tabbed .top-int__panel {
	display: none;
}

.top-int.is-tabbed .top-int__panel.is-active {
	display: block;
	margin-top: 0;
	animation: top-hero-in 0.4s ease both;
}

.top-int__panel-title {
	margin: 0 0 6px;
	color: var( --tt-ink );
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-int__panel-lead {
	margin: 0 0 24px;
	color: var( --tt-ink-muted );
	font-size: 0.9375rem;
	line-height: 1.8;
}

/* タブ表示中は見出しをタブが兼ねるので、パネル内の見出しは読み上げ用に残して隠す */
.top-int.is-tabbed .top-int__panel-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
}

.top-logos {
	display: grid;
	grid-template-columns: repeat( 6, minmax( 0, 1fr ) );
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px;
	border: 1px solid #e6f0ec;
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.top-logos li:hover {
	border-color: var( --tt-green-teal );
	transform: translateY( -2px );
	box-shadow: 0 10px 20px -12px rgba( 13, 85, 72, 0.4 );
}

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

@media ( prefers-reduced-motion: reduce ) {
	.top-int.is-tabbed .top-int__panel.is-active {
		animation: none;
	}
}

@media ( max-width: 1080px ) {
	.top-stats {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		row-gap: 24px;
		max-width: 560px;
	}

	.top-stats li:nth-child( 3 )::before {
		display: none;
	}

	.top-logos {
		grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 600px ) {
	.top-section.top-clients {
		margin-left: -20px;
		margin-right: -20px;
		padding: 56px 0 48px;
	}

	.top-clients__head {
		padding: 0 20px;
	}

	.top-section .top-clients__title {
		margin-bottom: 28px;
	}

	.top-stats {
		margin-bottom: 36px !important;
	}

	.top-stats li {
		padding: 0 8px;
	}

	/* タブは横スクロールさせず、2列×2段で全部見せる */
	.top-int.is-tabbed .top-int__tabs {
		display: grid;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 8px;
		margin-bottom: 16px;
	}

	.top-int__tab {
		justify-content: center;
		gap: 6px;
		padding: 12px 8px;
		border-radius: 14px;
		font-size: 0.875rem;
		white-space: nowrap;
	}

	/* 幅が足りないのでアイコンは省き、ラベルを1行に収める */
	.top-int__tab svg.ti {
		display: none;
	}

	.top-int__count {
		min-width: 22px;
		padding: 1px 6px;
	}

	.top-int__panel {
		padding: 20px 14px;
		border-radius: 20px;
	}

	.top-logos {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		gap: 10px;
	}

	.top-logos li {
		padding: 4px;
		border-radius: 10px;
	}
}

/* ============================================================
 * オプション機能・料金プラン(Phase 6)
 * ========================================================== */

/* --- オプション機能 --- */

.top-opt-compare {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 12px;
	margin-bottom: 28px;
}

.top-section .top-opt-compare__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
	padding: 14px 18px;
	border: 1px dashed var( --tt-line );
	border-radius: var( --tt-radius-md );
	color: var( --tt-ink-muted );
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.6;
}

.top-section .top-opt-compare__item.is-option {
	border: 1px solid transparent;
	background: var( --tt-mint );
	color: var( --tt-ink );
}

.top-opt-compare__item span {
	padding: 3px 12px;
	border-radius: 999px;
	background: #fff;
	color: var( --tt-green-deep );
	font-size: 0.8125rem;
	font-weight: 800;
}

.top-opt-compare__item.is-option span {
	background: var( --tt-green );
	color: #fff;
}

.top-opt-compare__item a {
	margin-left: auto;
	color: var( --tt-green );
	font-size: 0.8125rem;
	font-weight: 800;
	text-decoration: none;
}

.top-opt-compare__item a::after {
	content: " →";
}

.top-opt-cards {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-opt-cards > li {
	display: flex;
}

.top-opt {
	display: flex;
	flex: 1;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-lg );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
	color: var( --tt-ink );
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-opt:hover {
	transform: translateY( -4px );
	border-color: var( --tt-green-teal );
	box-shadow: 0 24px 40px -20px rgba( 13, 85, 72, 0.45 );
	color: var( --tt-ink );
}

/* 既存のバナー画像(500×180、文字入り)を切らずにそのまま見せる */
.top-opt__media {
	display: block;
	aspect-ratio: 25 / 9;
	overflow: hidden;
	background: var( --tt-mint-pale );
}

.top-opt__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.top-opt:hover .top-opt__media img {
	transform: scale( 1.04 );
}

.top-opt__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 24px 22px;
}

.top-opt__badge {
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var( --tt-mint );
	color: var( --tt-green-deep );
	font-size: 0.75rem;
	font-weight: 800;
}

.top-opt__title {
	margin-bottom: 10px;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-opt__text {
	color: var( --tt-ink-muted );
	font-size: 0.875rem;
	line-height: 1.85;
}

.top-opt__more {
	margin-top: auto;
	padding-top: 18px;
	color: var( --tt-green );
	font-size: 0.875rem;
	font-weight: 800;
}

.top-opt__more::after {
	content: " →";
}

/* --- 料金プラン --- */

/* PCは5枚を横並びにし、subgrid で各行(プラン名・説明・価格・各項目)の高さを揃えて比較しやすく */
.top-plans {
	display: grid;
	grid-template-columns: repeat( 5, minmax( 0, 1fr ) );
	column-gap: 12px;
	row-gap: 12px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.top-plan {
	display: grid;
	grid-row: span 7;
	grid-template-rows: subgrid;
	row-gap: 0;
	padding: 0 18px 8px;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-md );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
	overflow: hidden;
}

.top-plan p,
.top-plan dl,
.top-plan dd {
	margin: 0;
}

.top-plan__head {
	margin: 0 -18px;
	padding: 20px 18px 16px;
	background: linear-gradient( 150deg, var( --tt-green-deep ), var( --tt-green ) );
	color: #fff;
}

.top-plan--trial .top-plan__head {
	/* 白文字のコントラストを確保するため、明るい側も濃いめに */
	background: linear-gradient( 150deg, #1f8a72, var( --tt-green-teal ) );
}

.top-plan__name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.top-plan__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff;
	color: var( --tt-green );
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
}

.top-plan__kana {
	margin-top: 4px !important;
	color: rgba( 255, 255, 255, 0.8 );
	font-size: 0.75rem;
	font-weight: 700;
}

.top-plan__desc {
	padding: 16px 0 14px;
	color: var( --tt-ink );
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.7;
}

.top-plan__price {
	padding: 14px 0;
	border-top: 1px solid #edf5f2;
}

.top-plan__label {
	display: block;
	color: var( --tt-ink-muted );
	font-size: 0.75rem;
	font-weight: 700;
}

.top-plan__price p {
	color: var( --tt-ink );
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.2;
}

.top-plan__price strong {
	margin-right: 2px;
	font-size: clamp( 1.75rem, 1.2rem + 1vw, 2.25rem );
	letter-spacing: -0.02em;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.top-plan__price small {
	display: block;
	margin-top: 4px;
	color: var( --tt-ink-muted );
	font-size: 0.6875rem;
}

.top-plan__spec {
	padding: 10px 0;
	border-top: 1px solid #edf5f2;
}

.top-plan__spec dt {
	color: var( --tt-ink-muted );
	font-size: 0.6875rem;
	font-weight: 700;
}

.top-plan__spec dd {
	color: var( --tt-ink );
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.5;
}

.top-plan__spec small {
	display: block;
	color: var( --tt-ink-muted );
	font-size: 0.6875rem;
	font-weight: 700;
}

.top-section .top-price__notes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
	color: var( --tt-ink-muted );
	font-size: 0.8125rem;
	line-height: 1.7;
}

.top-price__notes li::before {
	content: "※ ";
	color: var( --tt-green );
}

.top-price__consult {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	align-items: center;
	gap: 20px 32px;
	padding: 28px 32px;
	border-radius: var( --tt-radius-lg );
	background: #fff;
	border: 1px solid var( --tt-line );
	box-shadow: var( --tt-shadow-card );
}

.top-section .top-price__consult-text {
	margin: 0;
	color: var( --tt-ink-muted );
	font-size: 0.9375rem;
	line-height: 1.8;
}

.top-price__consult-text strong {
	display: block;
	margin-bottom: 4px;
	color: var( --tt-ink );
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.5;
}

.top-section .top-price__consult-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 0;
}

.top-price__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 999px;
	background: linear-gradient( 135deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	box-shadow: 0 14px 28px -12px rgba( 13, 85, 72, 0.65 );
	color: #fff !important;
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 0.2s ease;
}

.top-price__cta::after {
	content: "→";
}

.top-price__cta:hover {
	transform: translateY( -2px );
}

.top-price__link {
	color: var( --tt-green ) !important;
	font-size: 0.875rem;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
}

.top-price__link::after {
	content: " →";
}

@media ( max-width: 1080px ) {
	.top-opt-cards {
		grid-template-columns: minmax( 0, 1fr );
		max-width: 640px;
		margin: 0 auto;
	}

	.top-plans {
		grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	}

	.top-price__consult {
		grid-template-columns: minmax( 0, 1fr );
	}
}

@media ( max-width: 600px ) {
	.top-opt-compare {
		grid-template-columns: minmax( 0, 1fr );
		margin-bottom: 20px;
	}

	.top-opt__body {
		padding: 20px;
	}

	.top-opt__title {
		font-size: 1.25rem;
	}

	/* スマホはプランごとのカードを縦に並べ、4項目は2列×2段に */
	.top-plans {
		grid-template-columns: minmax( 0, 1fr );
		row-gap: 14px;
	}

	.top-plan {
		grid-row: auto;
		grid-template-rows: none;
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
		column-gap: 16px;
	}

	.top-plan__head,
	.top-plan__desc,
	.top-plan__price {
		grid-column: 1 / -1;
	}

	.top-plan__head {
		display: flex;
		align-items: baseline;
		gap: 10px;
		padding: 16px 18px 14px;
	}

	.top-plan__kana {
		margin-top: 0 !important;
	}

	.top-plan__desc {
		padding: 12px 0 10px;
	}

	.top-plan__price {
		padding: 10px 0;
	}

	.top-price__consult {
		padding: 24px 20px;
	}

	.top-price__consult-text strong {
		font-size: 1.125rem;
	}

	.top-price__cta {
		justify-content: center;
		width: 100%;
	}

	.top-price__consult-links {
		justify-content: center;
	}
}

/* ============================================================
 * サポート体制・導入から本稼働までの流れ(Phase 7)
 * ========================================================== */

.top-support svg.ti,
.top-flowsec svg.ti {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

/* --- サポート体制(少し柔らかい見せ方) --- */

.top-support__grid {
	display: grid;
	grid-template-columns: minmax( 0, 1.35fr ) minmax( 0, 1fr );
	gap: 32px;
	align-items: stretch;
}

.top-support__points {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-support__points li {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px 22px;
	border-radius: 24px;
	background: var( --tt-mint-pale );
}

.top-support__points p {
	margin: 0;
}

.top-support__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 18px;
	background: #fff;
	color: var( --tt-green );
	font-size: 24px;
}

.top-support__title {
	margin-bottom: 6px !important;
	color: var( --tt-ink );
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.5;
}

.top-support__text {
	color: var( --tt-ink-muted );
	font-size: 0.875rem;
	line-height: 1.8;
}

/* 既存のサポート画像のうち、右側の人物イラスト部分だけを見せる */
.top-support__visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	overflow: hidden;
	border: 1px solid var( --tt-line );
	border-radius: 28px;
	background: #fff;
}

/* 元画像(888×254)が粗く見えないよう拡大は約1.1倍まで */
.top-support__visual img {
	display: block;
	width: 420px;
	max-width: 100%;
	height: 280px;
	object-fit: cover;
	object-position: 100% 50%;
}

/* --- 導入から本稼働までの流れ(4フェーズのタイムライン) --- */

.top-flowline {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.top-flowline__phase {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-lg );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
}

/* フェーズ間の矢印 */
.top-flowline__phase:not( :last-child )::after {
	content: "";
	position: absolute;
	top: 34px;
	right: -17px;
	z-index: 1;
	width: 14px;
	height: 14px;
	border-top: 3px solid var( --tt-green-teal );
	border-right: 3px solid var( --tt-green-teal );
	transform: rotate( 45deg );
}

.top-flowline__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 20px 16px;
	border-radius: var( --tt-radius-lg ) var( --tt-radius-lg ) 0 0;
	background: linear-gradient( 150deg, var( --tt-green-deep ), var( --tt-green ) );
	color: #fff;
}

.top-flowline__phase:last-child .top-flowline__head {
	/* 白文字のコントラストを確保するため、明るい側も濃いめに */
	background: linear-gradient( 150deg, #1f8a72, var( --tt-green-teal ) );
}

.top-section .top-flowline__head .top-flowline__phase-title {
	margin: 0;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-flowline__phase-title span {
	display: block;
	color: var( --tt-glow );
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
}

.top-flowline__phase:last-child .top-flowline__phase-title span {
	color: #fff;
}

.top-flowline__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.15 );
	font-size: 20px;
}

.top-flowline__steps {
	position: relative;
	margin: 0;
	padding: 20px 20px 22px;
	list-style: none;
}

/* ステップをつなぐ縦線 */
.top-flowline__steps::before {
	content: "";
	position: absolute;
	top: 34px;
	bottom: 40px;
	left: 37px;
	width: 2px;
	background: repeating-linear-gradient( 180deg, var( --tt-line ) 0 6px, transparent 6px 10px );
}

.top-flowline__steps li {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax( 0, 1fr );
	gap: 12px;
}

.top-flowline__steps li + li {
	margin-top: 18px;
}

.top-flowline__num {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var( --tt-mint );
	box-shadow: 0 0 0 4px #fff;
	color: var( --tt-green-deep );
	font-size: 0.8125rem;
	font-weight: 800;
}

.top-flowline__steps li.is-goal .top-flowline__num {
	background: linear-gradient( 145deg, var( --tt-green-teal ), var( --tt-green-deep ) );
	color: #fff;
}

.top-section .top-flowline__title {
	margin: 6px 0 4px;
	color: var( --tt-ink );
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.5;
}

.top-flowline__steps li.is-goal .top-flowline__title {
	color: var( --tt-green );
	font-size: 1.125rem;
}

.top-section .top-flowline__text {
	margin: 0;
	color: var( --tt-ink-muted );
	font-size: 0.8125rem;
	line-height: 1.75;
}

@media ( max-width: 1080px ) {
	.top-support__grid {
		grid-template-columns: minmax( 0, 1fr );
	}

	.top-support__visual {
		padding: 12px 0;
	}

	.top-flowline {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.top-flowline__phase:nth-child( 2 )::after {
		display: none;
	}
}

@media ( max-width: 600px ) {
	.top-support__points {
		grid-template-columns: minmax( 0, 1fr );
		gap: 12px;
	}

	.top-support__points li {
		flex-direction: row;
		align-items: flex-start;
		padding: 20px 18px;
	}

	.top-support__icon {
		flex-shrink: 0;
		width: 44px;
		height: 44px;
		border-radius: 14px;
		font-size: 20px;
	}

	.top-support__title {
		font-size: 1.0625rem;
	}

	/* 縦に並べ、フェーズ間の矢印は下向きに */
	.top-flowline {
		grid-template-columns: minmax( 0, 1fr );
		gap: 28px;
	}

	.top-flowline__phase:not( :last-child )::after,
	.top-flowline__phase:nth-child( 2 )::after {
		display: block;
		top: auto;
		right: auto;
		bottom: -22px;
		left: 50%;
		margin-left: -7px;
		transform: rotate( 135deg );
	}
}

/* ============================================================
 * NEWS・お問い合わせ(Phase 8)
 * ========================================================== */

/* --- NEWS: 左に見出し、右にリスト(取得・管理は既存の query ブロックのまま) --- */

.top-section.top-news {
	padding-top: 96px;
	padding-bottom: 96px;
}

/* 導入企業ロゴの直後に置くときは、同じ白背景が続くので上の余白を詰めてひと続きに見せる */
.top-section.top-clients + .top-section.top-news {
	padding-top: 40px;
}

.top-news__inner {
	display: grid;
	grid-template-columns: minmax( 0, 0.9fr ) minmax( 0, 2.6fr );
	gap: 32px 56px;
	align-items: start;
}

.top-news__head > * {
	margin-top: 0;
	margin-bottom: 0;
}

.top-news__head .top-heading {
	margin-bottom: 20px !important;
}

.top-section .top-news__all {
	margin: 0;
}

.top-news__all a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 1px solid var( --tt-line );
	border-radius: 999px;
	background: #fff;
	color: var( --tt-green-deep ) !important;
	font-size: 0.875rem;
	font-weight: 800;
	text-decoration: none !important;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.top-news__all a::after {
	content: "→";
}

.top-news__all a:hover {
	border-color: var( --tt-green-teal );
	background: var( --tt-mint-pale );
}

/* 既存の .news-list / .news-item(お知らせ一覧ページと共通)を、TOPでだけ上書き */
.top-news .news-list {
	margin: 0;
	padding: 8px 8px;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-lg );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
}

.top-news .news-list .wp-block-post-template {
	margin: 0;
}

.top-news .news-item {
	position: relative;
	align-items: center;
	gap: 20px;
	padding: 18px 48px 18px 20px;
	border: 0;
	border-radius: 16px;
	transition: background-color 0.2s ease;
}

.top-news .wp-block-post-template > li + li .news-item {
	border-top: 1px solid #edf5f2;
	border-radius: 0;
}

.top-news .news-item:hover {
	background: var( --tt-mint-pale );
	border-radius: 16px;
}

.top-news .news-item::after {
	content: "→";
	position: absolute;
	top: 50%;
	right: 20px;
	color: var( --tt-green );
	font-weight: 800;
	transform: translateY( -50% );
	transition: transform 0.2s ease;
}

.top-news .news-item:hover::after {
	transform: translate( 4px, -50% );
}

.top-news .news-item__date {
	color: var( --tt-ink-muted );
	font-size: 0.8125rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.top-news .news-item__title {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.6;
}

.top-news .news-item__title a {
	color: var( --tt-ink );
	text-decoration: none;
}

/* カテゴリのリンクは、行全体に広げたタイトルのリンクより前面に出して押せるようにする */
.top-news .news-item__term a {
	position: relative;
	z-index: 1;
}

/* 行全体をクリックできるように、タイトルのリンクを行いっぱいに広げる */
.top-news .news-item__title a::before {
	content: "";
	position: absolute;
	inset: 0;
}

.top-news .news-item__title a:hover {
	color: var( --tt-green );
}

/* --- お問い合わせ: 相談への動機づけ(濃い緑) + Zohoフォームのカード --- */

.top-section.top-contact {
	padding-top: 104px;
	padding-bottom: 104px;
}

.top-contact__cta {
	position: relative;
	overflow: hidden;
	padding: 56px 56px 48px;
	border-radius: 32px;
	background:
		radial-gradient( 60% 70% at 100% 0%, rgba( 143, 227, 194, 0.3 ) 0%, transparent 60% ),
		linear-gradient( 150deg, var( --tt-green-deep ) 0%, var( --tt-green ) 65%, var( --tt-green-teal ) 100% );
	box-shadow: var( --tt-shadow-hub );
	color: #fff;
	text-align: center;
}

.top-contact__cta > * {
	position: relative;
}

/* 方眼の地模様 */
.top-contact__cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient( rgba( 255, 255, 255, 0.06 ) 1px, transparent 1px ),
		linear-gradient( 90deg, rgba( 255, 255, 255, 0.06 ) 1px, transparent 1px );
	background-size: 40px 40px;
	-webkit-mask-image: radial-gradient( 70% 80% at 50% 40%, #000 0%, transparent 80% );
	mask-image: radial-gradient( 70% 80% at 50% 40%, #000 0%, transparent 80% );
	pointer-events: none;
}

.top-contact__cta .top-eyebrow {
	border-color: rgba( 255, 255, 255, 0.25 );
	background: rgba( 255, 255, 255, 0.1 );
	color: #fff;
}

.top-contact__cta .top-eyebrow__en {
	background: #fff;
	color: var( --tt-green-deep );
}

.top-section .top-contact__title {
	margin: 0 0 16px;
	color: #fff;
	font-size: clamp( 1.75rem, 1.1rem + 2.4vw, 2.875rem );
	font-weight: 800;
	line-height: 1.35;
}

.top-section .top-contact__lead {
	margin: 0 0 36px;
	color: rgba( 255, 255, 255, 0.88 );
	font-size: clamp( 1rem, 0.9rem + 0.4vw, 1.1875rem );
	font-weight: 700;
	line-height: 1.8;
}

.top-contact__choices {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 14px;
	max-width: 920px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.top-contact__choices li {
	display: flex;
}

.top-contact__choice {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 22px 20px 20px;
	border: 1px solid rgba( 255, 255, 255, 0.22 );
	border-radius: 20px;
	background: rgba( 255, 255, 255, 0.08 );
	color: #fff !important;
	text-align: left;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.top-contact__choice:hover {
	background: rgba( 255, 255, 255, 0.16 );
	transform: translateY( -3px );
}

.top-contact__choice-label {
	color: rgba( 255, 255, 255, 0.85 );
	font-size: 0.8125rem;
	font-weight: 700;
}

.top-contact__choice-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.4;
}

.top-contact__choice-cta::after {
	content: "→";
	flex-shrink: 0;
}

.top-contact__choice.is-primary {
	border-color: transparent;
	background: #fff;
	color: var( --tt-green-deep ) !important;
	box-shadow: 0 16px 32px -16px rgba( 0, 0, 0, 0.45 );
}

.top-contact__choice.is-primary .top-contact__choice-label {
	color: var( --tt-green );
}

.top-contact__choice.is-primary:hover {
	background: #fff;
}

/* フォームのカード(中身は Zoho の埋め込み。style.css の .contact-section 用の調整はそのまま効く) */
.top-section .top-contact__form {
	max-width: 960px;
	margin: 32px auto 0;
	padding: 48px 48px 40px;
	border: 1px solid var( --tt-line );
	border-radius: var( --tt-radius-lg );
	background: #fff;
	box-shadow: var( --tt-shadow-card );
	scroll-margin-top: 24px;
}

.top-section .top-contact__form-title {
	margin: 0 0 8px;
	color: var( --tt-ink );
	font-size: 1.5rem;
	font-weight: 800;
	text-align: center;
}

.top-section .top-contact__form-lead {
	margin: 0 0 28px;
	color: var( --tt-ink-muted );
	font-size: 0.9375rem;
	text-align: center;
}

@media ( max-width: 1080px ) {
	.top-news__inner {
		grid-template-columns: minmax( 0, 1fr );
	}

	.top-news__head {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: 16px;
	}

	.top-news__head .top-eyebrow {
		flex-basis: 100%;
	}

	.top-news__head .top-heading {
		margin-bottom: 0 !important;
	}

	.top-contact__choices {
		grid-template-columns: minmax( 0, 1fr );
		max-width: 520px;
	}
}

@media ( max-width: 600px ) {
	.top-section.top-news,
	.top-section.top-contact {
		padding-top: 72px;
		padding-bottom: 72px;
	}

	.top-section.top-clients + .top-section.top-news {
		padding-top: 24px;
	}

	.top-news .news-list {
		padding: 4px;
		border-radius: 20px;
	}

	.top-news .news-item {
		padding: 16px 36px 16px 14px;
	}

	.top-news .news-item::after {
		right: 14px;
	}

	.top-contact__cta {
		padding: 40px 20px 28px;
		border-radius: 24px;
	}

	.top-section .top-contact__lead br {
		display: none;
	}

	.top-section .top-contact__form {
		margin-top: 20px;
		padding: 28px 16px 20px;
		border-radius: 20px;
	}

	.top-section .top-contact__form-title {
		font-size: 1.1875rem;
	}

	.top-section .top-contact__form-lead {
		font-size: 0.875rem;
		text-align: left;
	}
}

/* ============================================================
 * 動きを減らす設定(prefers-reduced-motion)
 * 各セクションの個別指定がメディアクエリ内の後続ルールに上書きされないよう、
 * ファイル末尾でまとめて止める。グラフ(SMIL)は top-sections.js で静止させる
 * ========================================================== */

@media ( prefers-reduced-motion: reduce ) {
	.top-section *,
	.top-section *::before,
	.top-section *::after {
		animation: none !important;
		transition-duration: 0s !important;
	}

	.top-hero__status .is-wait {
		opacity: 0 !important;
	}
}
