.bikotsu-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bikotsu-top {
	--top-accent: #b8385f;
	--top-line: #06a84c;
}

/* ============================================================
   ファーストビュー（スマホ用の縦長画像、PCは横長に切り替え）
   ============================================================ */
.top-hero {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.top-hero__inner {
	position: relative;
	width: 100%;
	aspect-ratio: 940 / 1526;
	background: url("../images/top-hero-sp.jpg") center top / cover no-repeat;
}

.top-hero__cta-wrap {
	position: absolute;
	left: 50%;
	top: 85%;
	transform: translateX(-50%);
	display: grid;
	justify-items: center;
	gap: 6px;
	width: 88%;
}

.top-hero__cta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 64px;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--top-line);
	color: #ffffff;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.top-hero__cta:hover {
	color: #ffffff;
	opacity: 1;
}

.top-hero__cta:active {
	transform: translateY(1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.top-hero__cta-text {
	display: grid;
	justify-items: center;
	text-align: center;
	line-height: 1.35;
}

.top-hero__cta-main {
	font-size: 17px;
	font-weight: 700;
}

.top-hero__cta-sub {
	font-size: 11px;
	font-weight: 600;
}

.top-hero__cta-arrow {
	font-size: 20px;
	font-weight: 700;
}

.top-hero__note {
	margin: 0;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	color: #4a4048;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

/* ============================================================
   各セクション
   ============================================================ */
.top-section {
	padding: 48px 16px;
	text-align: center;
}

.top-section--tint {
	background: #faf6f7;
}

.top-section--pink {
	background: #fbeef2;
}

.top-section__text,
.top-section__lead,
.top-section__note {
	margin: 16px 0 0;
	line-height: 1.9;
}

.top-section__lead {
	font-size: 18px;
	font-weight: 600;
}

.top-section__note {
	font-size: 13px;
	color: #6b6470;
}

.top-buttons {
	display: grid;
	gap: 12px;
	justify-items: center;
	margin-top: 24px;
}

.top-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 360px);
	min-height: 52px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.top-button--line {
	background: var(--top-line);
	color: #ffffff;
}

.top-button--primary {
	background: var(--top-accent);
	color: #ffffff;
}

.top-button--outline {
	background: #ffffff;
	border-color: var(--top-accent);
	color: var(--top-accent);
}

.top-button--line:hover,
.top-button--primary:hover {
	color: #ffffff;
	opacity: 0.92;
}

/* ============================================================
   カード（カリキュラム・コース）
   ============================================================ */
.top-cards {
	display: grid;
	gap: 16px;
	margin-top: 24px;
	text-align: left;
}

.top-card {
	margin: 0;
	padding: 16px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(46, 43, 51, 0.08);
}

.top-card__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.top-card__title {
	margin: 12px 0 4px;
	font-size: 18px;
	font-weight: 600;
	color: var(--top-accent);
}

.top-card__en {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: #8a7e76;
}

.top-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
}

/* ============================================================
   選ばれる4つの理由
   ============================================================ */
.top-reasons {
	display: grid;
	gap: 16px;
	margin-top: 24px;
	text-align: left;
}

.top-reason {
	margin: 0;
	padding: 24px 20px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(46, 43, 51, 0.08);
	line-height: 1.8;
}

.top-reason__num {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: var(--top-accent);
}

.top-reason__title {
	margin: 8px 0 12px;
	font-size: 18px;
	font-weight: 600;
}

.top-reason p {
	margin: 0 0 8px;
}

/* ============================================================
   最後の導線（ゴールドの背景）
   ============================================================ */
.top-final {
	padding: 48px 20px;
	background: #9a7a2e;
	color: #ffffff;
	text-align: center;
}

.top-final h2 {
	color: #ffffff;
}

.top-final__mark {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto 12px;
}

.top-final__text,
.top-final__note {
	margin: 12px 0 0;
	line-height: 1.9;
}

.top-final__note {
	font-size: 14px;
}

/* ============================================================
   スマホ下部の固定バー（LINEの緑に統一）
   ページトップボタンとの重なり対策として、バーを前面に出す
   ============================================================ */
.bikotsu-sticky-cta {
	z-index: 10000;
}

.bikotsu-sticky-cta .bikotsu-sticky-cta__button {
	background: #06a84c !important;
	color: #ffffff !important;
}

.bikotsu-sticky-cta .bikotsu-sticky-cta__button:hover,
.bikotsu-sticky-cta .bikotsu-sticky-cta__button:focus-visible {
	background: #058f42 !important;
	color: #ffffff !important;
}

/* ============================================================
   PC（960px〜）
   ============================================================ */
@media (min-width: 960px) {
	.top-hero__inner {
		aspect-ratio: 1672 / 941;
		background-image: url("../images/top-hero-pc.jpg");
	}

	.top-hero__cta-wrap {
		top: 88%;
		width: auto;
	}

	.top-hero__cta {
		width: 380px;
		min-height: 68px;
	}

	.top-hero__cta-main {
		font-size: 20px;
	}

	.top-section {
		padding: 72px 32px;
	}

	.top-buttons {
		grid-auto-flow: column;
		justify-content: center;
	}

	.top-cards {
		grid-template-columns: repeat(3, 1fr);
		max-width: 1080px;
		margin-inline: auto;
	}

	.top-reasons {
		grid-template-columns: repeat(2, 1fr);
		max-width: 1080px;
		margin-inline: auto;
	}
}

/* ============================================================
   ボタンの文字（2行目を読みやすく）・動き
   ============================================================ */
.top-hero__cta {
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-hero__cta-sub {
	font-size: 12px;
}

.top-hero__cta-arrow {
	display: inline-block;
	transition: transform 0.25s ease;
}

/* マウスを乗せたとき（スマホでは押したときの沈む動きのみ） */
@media (hover: hover) and (pointer: fine) {
	.top-hero__cta:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
	}

	.top-hero__cta:hover .top-hero__cta-arrow {
		transform: translateX(4px);
	}
}

/* ============================================================
   症例・受講生の声（写真カード）
   ============================================================ */
.top-anchor {
	display: block;
	height: 0;
	scroll-margin-top: 80px;
}

.top-voices {
	display: flex;
	gap: 16px;
	margin: 24px -16px 0;
	padding: 4px 16px 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.top-voice {
	display: grid;
	flex: 0 0 min(72vw, 280px);
	gap: 8px;
	padding: 12px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(46, 43, 51, 0.08);
	color: inherit;
	text-decoration: none;
	scroll-snap-align: start;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.top-voice:active {
	transform: scale(0.99);
}

.top-voice__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: 10px;
	background: #f6f2f4;
}

.top-voice__caption {
	font-size: 12px;
	line-height: 1.6;
	color: #6b6470;
}

@media (hover: hover) and (pointer: fine) {
	.top-voice:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
	}
}

@media (min-width: 960px) {
	.top-voices {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
		max-width: 1080px;
		margin: 24px auto 0;
		padding: 4px 0 12px;
		overflow: visible;
	}

	.top-voice {
		flex: none;
	}
}

/* ============================================================
   カリキュラムの写真カード（スマホ：左に写真の横並び／PC：3列・写真は低め）
   ============================================================ */
.top-card:has(> .top-card__image) {
	display: grid;
	grid-template-columns: 96px 1fr;
	column-gap: 14px;
	align-items: center;
	padding: 12px;
	text-align: left;
}

.top-card:has(> .top-card__image) .top-card__image {
	grid-row: 1 / span 2;
	width: 96px;
	height: 96px;
	margin: 0;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 12px;
}

.top-card:has(> .top-card__image) .top-card__title {
	grid-column: 2;
	margin: 0 0 4px;
	font-size: 16px;
}

.top-card:has(> .top-card__image) .top-card__text {
	grid-column: 2;
	font-size: 13px;
	line-height: 1.6;
}

@media (min-width: 960px) {
	.top-card:has(> .top-card__image) {
		display: block;
		padding: 16px;
		text-align: center;
	}

	.top-card:has(> .top-card__image) .top-card__image {
		width: 100%;
		height: 190px;
		margin: 0;
	}

	.top-card:has(> .top-card__image) .top-card__title {
		margin: 12px 0 4px;
		font-size: 17px;
	}

	.top-card:has(> .top-card__image) .top-card__text {
		font-size: 14px;
	}
}

/* ============================================================
   スマホのドロワー下部：法務リンク（小さく、メニューより目立たせない）
   ============================================================ */
.drawer__legal {
	list-style: none;
	margin: 32px 0 0;
	padding: 16px 4px 0;
	border-top: 1px solid #e6e3e8;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.drawer__legal a {
	font-size: 12px;
	color: #6b6470;
	text-decoration: underline;
}

/* ============================================================
   ボタンの統一（サブ：白地・金色の細い枠線。LINEの緑のボタンより目立たせない）
   トップのボタンと、本文のブロックボタン（公式LINE以外）の両方に当てる
   ============================================================ */
.top-button--primary,
.top-button--outline,
.wp-block-button a.wp-block-button__link:not([href*="lin.ee"]) {
	background: #ffffff !important;
	border: 1.5px solid #c9a84c !important;
	border-radius: 999px !important;
	color: #7f6324 !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
}

.top-button--primary:hover,
.top-button--outline:hover,
.wp-block-button a.wp-block-button__link:not([href*="lin.ee"]):hover,
.wp-block-button a.wp-block-button__link:not([href*="lin.ee"]):focus-visible {
	background: #c9a84c !important;
	color: #2e2b33 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 18px rgba(201, 168, 76, 0.35) !important;
}

/* トップページの固定バー：下からふわっと表示する */
.bikotsu-sticky-cta.is-top {
	transform: translateY(16px);
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.bikotsu-sticky-cta.is-top.is-visible {
	transform: translateY(0);
}
