/* =========================================================
   47共育塾 テーマ
   深い青を基調に、シルバーを差し色として使います。
   ========================================================= */

:root {
	/* 基本の2色（外観 → カスタマイズ → 47共育塾の設定 → 色 で変更できます） */
	--base: #0f2650;     /* 深い青：背景 */
	--accent: #b8c4d6;   /* 差し色：シルバー（ボタン・帯・数字） */

	/* 上の2色から自動でつくる色 */
	--panel: color-mix(in srgb, var(--base), #ffffff 5%);
	--panel-2: color-mix(in srgb, var(--base), #ffffff 10%);
	--line: color-mix(in srgb, var(--base), #ffffff 18%);
	--accent-hover: color-mix(in srgb, var(--accent), #ffffff 22%);
	--accent-dark: color-mix(in srgb, var(--accent), #000000 58%); /* 明るい背景の上で文字に使う */
	--accent-ink: var(--base); /* 差し色の上に置く文字（色の明るさに合わせて自動で白か紺に切り替わります） */
	--accent-text: var(--accent); /* 暗い背景の上の文字・線・数字（暗い差し色を選んだときは自動で明るくします） */

	--white: #ffffff;
	--muted: #9fb1cc;
	--text-soft: #cbd6e6;
	--paper: #eef2f8;
	--paper-2: #dce4ef;
	--paper-line: #d3dce8;
	--ink: #0a1830;
	--ink-muted: #4f5e75;

	--font-en: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
	--font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

	--header-h: 76px;
	--wrap: 1200px;
	--gutter: clamp(20px, 4vw, 48px);
	--sec-y: clamp(72px, 10vw, 128px);
	--radius: 4px;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--base);
	color: var(--white);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: 0.02em;
	font-feature-settings: "palt" 0;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.4; letter-spacing: 0.04em; word-break: auto-phrase; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(820px + var(--gutter) * 2); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sp-only { display: none; }

.site-main { padding-top: var(--header-h); }

/* ---------- header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	background: color-mix(in srgb, var(--base) 95%, transparent);
	border-bottom: 1px solid var(--line);
	/* backdrop-filter はスマホメニュー(position:fixed)の表示範囲を狭めるため使わない */
}
.site-header__inner { display: flex; align-items: center; height: 100%; padding-left: var(--gutter); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__logo { max-height: 48px; width: auto; }
.brand__mark {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px;
	border: 2px solid var(--accent-text);
	color: var(--accent-text);
	font-family: var(--font-en); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: 0;
}
.brand__logo-mark { width: 40px; height: auto; fill: var(--white); flex-shrink: 0; }
.site-footer__name .brand__logo-mark { width: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 18px; letter-spacing: 0.08em; }
.brand__sub { font-family: var(--font-en); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0.12em; }

.gnav { display: flex; align-items: center; gap: 28px; margin-right: 28px; }
.gnav__list { display: flex; gap: 28px; list-style: none; }
.gnav__list a {
	display: block; padding: 6px 0; white-space: nowrap;
	font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
	text-decoration: none; color: var(--white);
	border-bottom: 2px solid transparent;
}
.gnav__list a:hover,
.gnav__list .current-menu-item > a,
.gnav__list a[aria-current="page"] { border-bottom-color: var(--accent); }
.gnav__sub a { color: var(--muted); }
.gnav .gnav__line { display: none; }
.gnav__tel { font-family: var(--font-en); font-weight: 600; font-size: 20px; letter-spacing: 0.06em; text-decoration: none; }

.header-cta {
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	height: 100%; padding: 0 28px; min-width: 176px;
	background: var(--accent); color: var(--accent-ink); text-decoration: none;
	transition: background-color 0.2s;
}
.header-cta:hover { background: var(--accent-hover); }
.header-cta__en { font-family: var(--font-en); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: 0.08em; }
.header-cta__ja { font-weight: 700; font-size: 12px; letter-spacing: 0.08em; margin-top: 4px; }

.menu-toggle { display: none; }

/* ---------- buttons & links ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 12px 28px;
	border: 2px solid transparent; border-radius: var(--radius);
	font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.08em;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn--line { border-color: var(--accent-text); color: var(--white); }
.btn--line:hover { background: var(--accent); color: var(--accent-ink); }
.btn--block { width: 100%; }
.btn--small { min-height: 46px; padding: 8px 20px; font-size: 14px; }

.text-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-head); font-weight: 700; color: var(--accent-text);
	text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--white); }

/* ---------- section ---------- */
.sec { padding-block: var(--sec-y); }
.sec--tight { padding-block: clamp(48px, 6vw, 72px); }
.sec--panel { background: var(--panel); }
.sec--light { background: var(--paper); color: var(--ink); }

.sec-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head__en {
	font-family: var(--font-en); font-weight: 700;
	font-size: clamp(3rem, 7.5vw, 5.75rem); line-height: 0.88; letter-spacing: 0.01em;
	color: var(--white);
}
.sec-head__ja { font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--accent-text); letter-spacing: 0.1em; }
.sec--light .sec-head__en { color: var(--ink); }
.sec--light .sec-head__ja { color: var(--accent-dark); }

.lead { max-width: 46em; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 2; margin-bottom: clamp(40px, 5vw, 64px); }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.sec--light .note { color: var(--ink-muted); }

/* ---------- media placeholder ---------- */
.media { position: relative; overflow: hidden; background: var(--panel-2); aspect-ratio: 3 / 2; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--empty {
	display: grid; place-items: center;
	background:
		repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 15px),
		var(--panel-2);
	color: var(--muted); font-size: 13px; letter-spacing: 0.1em;
}
.sec--light .media--empty {
	background:
		repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink) 6%, transparent) 14px 15px),
		var(--paper-2);
	color: var(--ink-muted);
}

/* ---------- hero (TOP) ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: max(600px, calc(100svh - var(--header-h)));
	display: flex; align-items: flex-end;
	padding-block: clamp(64px, 10vh, 120px) clamp(96px, 14vh, 150px);
	background: var(--base);
}

/* 背景（動画・写真・どちらも無いときの光） */
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__video,
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.05) brightness(1.08); }
/* 青の色かぶせ：白黒にした映像に、深い青を乗せてトーンをそろえる */
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(160deg, color-mix(in srgb, var(--accent), #ffffff 30%) 0%, color-mix(in srgb, var(--base), var(--accent) 45%) 100%);
	mix-blend-mode: multiply;
}
.hero__glow {
	position: absolute; inset: -20%;
	background:
		radial-gradient(38% 42% at 22% 18%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 70%),
		radial-gradient(34% 40% at 78% 12%, color-mix(in srgb, var(--accent) 40%, transparent) 0%, transparent 70%),
		radial-gradient(60% 50% at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%);
	filter: blur(10px);
}
/* 文字を読みやすくする左下の影 */
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--base) 78%, transparent) 0%, color-mix(in srgb, var(--base) 38%, transparent) 45%, transparent 70%),
		linear-gradient(0deg, color-mix(in srgb, var(--base) 55%, transparent) 0%, transparent 35%);
}

/* 輪郭線だけの大きな「47」（SVG。線が描かれていく） */
.hero__number {
	position: absolute; z-index: -1;
	right: 3vw; bottom: 4vh;
	width: min(40vw, 640px); height: auto; overflow: visible;
	pointer-events: none;
}
.hero__number path {
	fill: transparent;
	stroke: color-mix(in srgb, var(--accent-text) 75%, transparent);
	stroke-width: 5; /* viewBox基準 */
	stroke-linejoin: round;
}

.hero__body { position: relative; text-shadow: 0 2px 18px color-mix(in srgb, var(--base) 70%, transparent); }
.hero__en {
	font-family: var(--font-en); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem);
	letter-spacing: 0.24em; color: var(--accent-text); margin-bottom: 18px;
}
.hero__catch {
	font-family: var(--font-head); font-weight: 900;
	font-size: clamp(2.75rem, 7.2vw, 6rem); line-height: 1.18; letter-spacing: 0.06em;
	margin-bottom: 28px;
}
.hero__catch .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__catch .line > span { display: inline-block; }
.hero__lead { max-width: 34em; font-size: clamp(0.95rem, 1.4vw, 1.0625rem); color: var(--text-soft); }

/* スクロールの合図 */
.hero__scroll {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: 0.3em; padding-left: 0.3em;
	color: var(--white); text-decoration: none;
}
.hero__scroll i { display: block; width: 1px; height: 72px; background: color-mix(in srgb, var(--white) 25%, transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleY(0); transform-origin: top; }

/* 動画の一時停止ボタン */
.hero__pause {
	position: absolute; right: var(--gutter); bottom: 24px;
	width: 44px; height: 44px; display: grid; place-items: center;
	border: 1px solid color-mix(in srgb, var(--white) 50%, transparent); border-radius: 50%;
	background: transparent; color: var(--white); cursor: pointer;
}
.hero__pause:hover { border-color: var(--white); }
.hero__pause::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.hero__pause[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

@media (prefers-reduced-motion: no-preference) {
	/* 写真：ゆっくり寄っていく */
	.hero__bg { animation: k47-zoom 24s ease-in-out infinite alternate; }
	/* 光：ゆっくり揺れる */
	.hero__glow { animation: k47-drift 14s ease-in-out infinite alternate; }
	/* 47：線が描かれてから、静かに残る */
	.hero__number path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: k47-draw 3.2s cubic-bezier(0.6, 0, 0.2, 1) 0.3s forwards; }
	/* キャッチ：1行ずつ下からせり上がる */
	.hero__catch .line > span { transform: translateY(105%); animation: k47-up 1s cubic-bezier(0.2, 0.7, 0.1, 1) forwards; }
	.hero__catch .line:nth-child(2) > span { animation-delay: 0.15s; }
	.hero__catch .line:nth-child(3) > span { animation-delay: 0.3s; }
	.hero__en, .hero__lead, .hero .btn-row { opacity: 0; animation: k47-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
	.hero__en { animation-delay: 0.05s; }
	.hero__lead { animation-delay: 0.55s; }
	.hero .btn-row { animation-delay: 0.7s; }
	.hero__scroll i::after { animation: k47-line 2.2s cubic-bezier(0.7, 0, 0.3, 1) 1.2s infinite; }
}
@keyframes k47-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes k47-drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes k47-draw { to { stroke-dashoffset: 0; } }
/* 描き終わったら破線の設定を外し、どの環境でも途切れない線にする */
.hero__number.is-drawn path, .opening__mark.is-drawn path { stroke-dasharray: none; }
@keyframes k47-up { to { transform: translateY(0); } }
@keyframes k47-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes k47-line {
	0% { transform: scaleY(0); transform-origin: top; }
	45% { transform: scaleY(1); transform-origin: top; }
	55% { transform: scaleY(1); transform-origin: bottom; }
	100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- clinic bar ---------- */
.clinic-bar { display: block; background: var(--panel); border-bottom: 1px solid var(--line); text-decoration: none; }
.clinic-bar__inner { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 24px; padding-block: 18px; }
.clinic-bar__img { aspect-ratio: 4 / 3; }
.clinic-bar__small { display: block; font-size: 14px; color: var(--muted); }
.clinic-bar__title { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: 0.06em; }
.clinic-bar__go {
	font-family: var(--font-head); font-weight: 700; font-size: 14px;
	padding: 14px 22px; border: 2px solid var(--accent-text); border-radius: var(--radius);
	transition: background-color 0.2s, color 0.2s;
}
.clinic-bar__go::after { content: "　›"; }
.clinic-bar:hover .clinic-bar__go { background: var(--accent); color: var(--accent-ink); }

/* ---------- page nav ---------- */
.page-nav {
	position: sticky; top: var(--header-h); z-index: 50;
	background: color-mix(in srgb, var(--panel) 96%, transparent); border-bottom: 1px solid var(--line);
}
.page-nav ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.page-nav ul::-webkit-scrollbar { display: none; }
.page-nav a {
	display: block; white-space: nowrap; padding: 14px 16px;
	font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
	color: var(--muted); text-decoration: none;
}
.page-nav a:hover { color: var(--accent-text); }

/* ---------- news ---------- */
.news-row { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.news-row .sec-head { margin-bottom: 0; }
.news-row .sec-head__en { font-size: clamp(2.75rem, 5vw, 4rem); }
.news-list { list-style: none; border-top: 1px solid var(--line); margin-bottom: 24px; }
.news-list a {
	display: grid; grid-template-columns: 7.5em 1fr; gap: 16px;
	padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.news-list time { font-family: var(--font-en); font-weight: 600; font-size: 17px; color: var(--accent-text); letter-spacing: 0.06em; }
.news-list a:hover .news-list__title { text-decoration: underline; text-underline-offset: 4px; }
.news-empty { color: var(--muted); }

/* ---------- philosophy ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); margin-bottom: clamp(56px, 7vw, 88px); }
.pillar { border-top: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent); padding-top: 24px; }
.pillar h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); margin-bottom: 14px; }
.pillar p { color: var(--text-soft); margin: 0; }

.org { max-width: 760px; margin-inline: auto; display: grid; gap: 28px; }
.org__cap { text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 14px; }
.org__row { display: grid; justify-items: center; position: relative; }
.org__row + .org__row::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: var(--line); }
.org__row--split { grid-template-columns: 1fr 1fr; gap: 20px; }
.org__box {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
	width: 100%; max-width: 520px; padding: 18px 20px;
	border: 1px solid var(--line); border-radius: var(--radius);
	font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-decoration: none;
}
.org__box small { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--text-soft); }
.org__box--muted { color: var(--white); }
.org__box--main { border: 2px solid var(--accent-text); font-size: 1.3rem; }
a.org__box:hover { border-color: var(--accent-text); }

/* ---------- representative ---------- */
.rep { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.rep__photo { aspect-ratio: 1 / 1; }
.rep__role { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.rep__name { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: 0.12em; margin-bottom: 20px; }
.rep__name span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; letter-spacing: 0.2em; color: var(--accent-text); margin-top: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(48px, 6vw, 72px) 0 32px; border-block: 1px solid var(--line); }
.stat { padding: 28px 24px; display: flex; flex-direction: column-reverse; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { font-size: 13px; color: var(--muted); }
.stat dd { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.stat__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 0.9; color: var(--accent-text); letter-spacing: 0; }
.stat__unit { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }

.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.more summary {
	list-style: none; cursor: pointer; padding: 18px 4px;
	font-family: var(--font-head); font-weight: 700; color: var(--accent-text);
	display: flex; justify-content: space-between; align-items: center;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "＋"; font-size: 1.2em; transition: transform 0.2s; }
.more[open] summary::after { transform: rotate(45deg); }
.more__body { padding: 8px 4px 32px; }
.more__body h4 { font-size: 1rem; color: var(--accent-text); margin: 20px 0 10px; }
.more__body h4:first-child { margin-top: 0; }
.more--inline { margin-top: auto; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.plain { list-style: none; }
.plain li { padding: 6px 0 6px 1.2em; position: relative; font-size: 15px; border-bottom: 1px dashed var(--line); }
.plain li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; background: var(--accent); }

/* ---------- academy ---------- */
.courses { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.course { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.course__body { padding: clamp(24px, 3vw, 36px); }
.course__title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.course__body > p { color: var(--ink-muted); }

.spec { margin-top: 20px; font-size: 15px; }
.spec th, .spec td { padding: 14px 4px; border-bottom: 1px solid var(--paper-line); text-align: left; vertical-align: top; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 1px solid var(--paper-line); }
.spec th { font-weight: 500; color: var(--ink-muted); width: 46%; }
.spec__price { text-align: right !important; font-family: var(--font-en); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.spec--dark th, .spec--dark td { border-color: var(--line) !important; }
.spec--dark th { color: var(--muted); }

.steps-box { margin-top: clamp(40px, 5vw, 64px); background: var(--base); color: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); }
.steps-box__title { font-size: 1.3rem; margin-bottom: 24px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps__n { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-en); font-weight: 700; font-size: 24px; }
.steps strong { font-family: var(--font-head); }
.steps li > span:last-child { font-size: 13px; color: var(--muted); }

/* ---------- community / cards ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.feature h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 20px 0 4px; }
.feature__meta { font-family: var(--font-head); font-weight: 700; color: var(--accent-text); margin-bottom: 10px; }
.feature p:last-child { color: var(--text-soft); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 28px); }
.card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); background: var(--base); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--text-soft); margin: 0; }
.card .text-link, .card .btn { margin-top: auto; align-self: flex-start; }
.card .more { border-bottom: 0; }

/* ---------- staff ---------- */
.staff-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.staff__inner summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.staff__inner summary::-webkit-details-marker { display: none; }
.staff__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--panel-2); margin-bottom: 12px; filter: grayscale(0.15); }
.staff__photo--empty { display: block; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.04) 14px 15px), var(--panel-2); }
.staff__role { font-size: 12px; color: var(--accent-text); line-height: 1.6; }
.staff__name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.12em; }
.staff__more { font-size: 13px; color: var(--muted); }
.staff__more::after { content: " ＋"; }
.staff__inner[open] .staff__more::after { content: " −"; }
.staff__body { font-size: 14px; color: var(--text-soft); padding-top: 10px; }
.staff__body p { margin-bottom: 0.6em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); padding-block: clamp(56px, 8vw, 96px); }
.cta-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band__en { font-family: var(--font-en); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); line-height: 0.9; margin-bottom: 12px; }
.cta-band__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 10px; }
.cta-band p:last-child { margin: 0; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn--accent { background: var(--base); color: var(--white); }
.cta-band .btn--accent:hover { background: var(--panel-2); }
.cta-band .btn--line { border-color: var(--accent-ink); color: var(--accent-ink); }
.cta-band .btn--line:hover { background: var(--accent-ink); color: var(--accent); }

/* ---------- page hero (下層) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 12vw, 160px) clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero--short { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.55) contrast(1.05) brightness(1.05); }
.page-hero:has(.page-hero__bg)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--base) 82%, transparent) 0%, color-mix(in srgb, var(--base) 40%, transparent) 55%, color-mix(in srgb, var(--base) 15%, transparent) 100%); }
.page-hero__en { font-family: var(--font-en); font-weight: 700; font-size: clamp(3rem, 9vw, 7rem); line-height: 0.88; color: transparent; -webkit-text-stroke: 1.5px var(--accent-text); margin-bottom: 20px; }
.page-hero__title { font-size: clamp(1.9rem, 4.4vw, 3.25rem); font-weight: 900; letter-spacing: 0.06em; margin-bottom: 18px; }
.page-hero__lead { max-width: 40em; color: var(--text-soft); margin: 0; }

/* ---------- clinic ---------- */
.features { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.features li { grid-column: span 2; border-top: 1px solid color-mix(in srgb, var(--accent-text) 45%, transparent); padding-top: 22px; }
.features li:nth-child(4) { grid-column: 2 / span 2; }
.features h3 { font-size: 1.15rem; margin-bottom: 10px; }
.features p { color: var(--text-soft); margin: 0; font-size: 15px; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.flow li { position: relative; padding: 28px 22px 24px; background: var(--base); border: 1px solid var(--line); border-radius: var(--radius); }
.flow__img { margin: -28px -22px 20px; border-radius: var(--radius) var(--radius) 0 0; }
.flow__n { font-family: var(--font-en); font-weight: 700; font-size: 3.5rem; line-height: 1; color: var(--accent-text); display: block; margin-bottom: 12px; }
.flow h3 { font-size: 1.1rem; margin-bottom: 8px; }
.flow p { font-size: 14px; color: var(--text-soft); margin: 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -12px; width: 8px; height: 8px; border-top: 2px solid var(--accent-text); border-right: 2px solid var(--accent-text); transform: translateY(-50%) rotate(45deg); }

.insurance { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.insurance__item { padding: 24px 28px; border: 1px solid var(--accent-text); border-radius: var(--radius); }
.insurance__item h3 { color: var(--accent-text); margin-bottom: 6px; font-size: 1.2rem; }
.insurance__item p { margin: 0; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.price-table { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.price-table h3 { font-size: 1.35rem; }
.price-table__empty { margin: 20px 0 0; padding: 20px; background: var(--paper); color: var(--ink-muted); }

.equip h3 { font-size: 1.15rem; margin: 18px 0 8px; }
.equip h3 small { display: block; font-family: var(--font-en); font-weight: 600; font-size: 15px; color: var(--accent-text); letter-spacing: 0.06em; }
.equip p { font-size: 15px; color: var(--text-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__img { aspect-ratio: 4 / 5; }
.split .sec-head__en { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.checks { list-style: none; margin: 24px 0 0; }
.checks li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 14px; height: 8px; border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }

.partner { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 40px; align-items: start; }
.partner .sec-head { margin-bottom: 0; }
.partner .sec-head__en { font-size: clamp(2.5rem, 5vw, 4rem); }
.partner__name { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }

/* ---------- contact ---------- */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.way { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.way--main { border-color: var(--accent-text); }
.way h3 { font-family: var(--font-en); font-weight: 700; font-size: 2rem; letter-spacing: 0.04em; }
.way p { color: var(--text-soft); margin: 0; flex: 1; }
.way .way__tel { font-family: var(--font-en); font-weight: 700; font-size: 2.2rem; color: var(--white); line-height: 1.1; }

.hours-wrap.has-schedule { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.hours { background: var(--white); text-align: center; table-layout: fixed; }
.hours th, .hours td { border: 1px solid var(--paper-line); padding: 14px 4px; }
.hours th { background: var(--ink); color: var(--white); font-family: var(--font-head); }
.hours td { font-family: var(--font-en); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.hours td.is-closed { font-family: var(--font-head); font-size: 1rem; color: #b42318; }
.schedule figcaption { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; }
.schedule img { border: 1px solid var(--paper-line); }

.access { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.access__map { aspect-ratio: 4 / 3; background: var(--panel-2); }
.access__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.access__list { margin: 0; }
.access__list > div { display: grid; grid-template-columns: 4em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.access__list > div:first-child { border-top: 1px solid var(--line); }
.access__list dt { font-family: var(--font-head); font-weight: 700; color: var(--accent-text); }
.access__list dd { margin: 0; }

.form-area input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.form-area textarea,
.form-area select { width: 100%; padding: 14px; background: var(--base); color: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.form-area input[type="submit"] { background: var(--accent); color: var(--accent-ink); border: 0; padding: 16px 40px; font-weight: 700; border-radius: var(--radius); cursor: pointer; }

/* ---------- news list / article ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-nav a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.cat-nav a[aria-current="page"], .cat-nav a:hover { border-color: var(--accent-text); color: var(--accent-text); }

.post-list { list-style: none; border-top: 1px solid var(--line); }
.post-item a { display: flex; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-item__img { width: 200px; aspect-ratio: 3 / 2; object-fit: cover; flex-shrink: 0; }
.post-item__body { display: flex; flex-direction: column; gap: 6px; }
.post-item time { font-family: var(--font-en); font-weight: 600; font-size: 17px; color: var(--accent-text); }
.post-item__title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.5; }
.post-item__excerpt { font-size: 14px; color: var(--muted); }
.post-item a:hover .post-item__title { text-decoration: underline; text-underline-offset: 4px; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); text-decoration: none; font-family: var(--font-en); font-weight: 600; }
.pagination .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-text); }

.article__meta { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.article__meta time { font-family: var(--font-en); font-weight: 600; font-size: 18px; color: var(--accent-text); }
.tag { font-size: 13px; padding: 2px 12px; border: 1px solid var(--accent-text); border-radius: 999px; text-decoration: none; }
.article__title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.5; }
.article__thumb { margin-bottom: 32px; }

.entry { font-size: 16px; line-height: 2; }
.entry > * + * { margin-top: 1.4em; }
.entry h2 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 2px solid currentColor; margin-top: 2.2em; }
.entry h3 { font-size: 1.25rem; margin-top: 2em; }
.entry ul, .entry ol { padding-left: 1.5em; }
.entry a { color: var(--accent-text); }
.sec--light .entry a { color: var(--accent-dark); }
.entry img { border-radius: var(--radius); }
.entry table th, .entry table td { border: 1px solid var(--paper-line); padding: 10px 12px; }
.entry .wp-block-button__link { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 700; }
.entry .wp-block-file a:not(.wp-block-file__button) { word-break: break-all; }

.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--paper-line); }
.article-nav a { text-decoration: none; font-weight: 700; color: var(--ink); }
.back { margin-top: 32px; text-align: center; }
.sec--light .text-link { color: var(--accent-dark); }
.sec--light .text-link:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(32px, 4vw, 64px); padding-bottom: 48px; }
.site-footer__name { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.08em; margin-bottom: 16px; }
.site-footer__brand p, .site-footer__brand address { color: var(--muted); }
.site-footer__label { font-family: var(--font-head); font-weight: 700; color: var(--accent-text); margin-bottom: 12px; }
.mini-hours { margin: 0; display: grid; gap: 2px; }
.mini-hours div { display: grid; grid-template-columns: 2em 1fr; color: var(--muted); }
.mini-hours dt { color: var(--white); }
.mini-hours dd { margin: 0; }
.site-footer__tel { display: block; font-family: var(--font-en); font-weight: 700; font-size: 2rem; text-decoration: none; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.site-footer__copy { padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-block: 0; }

.fixed-cta { display: none; }

/* ---------- 料金表（区分 × 対象） ---------- */
.prices--grid { margin-top: clamp(40px, 5vw, 64px); }
.prices--single { grid-template-columns: minmax(0, 640px); }
.price-table h3 small { font-family: var(--font-body); font-weight: 500; font-size: 0.8rem; color: var(--ink-muted); margin-left: 10px; }
.sec:not(.sec--light) .price-table { color: var(--ink); }
.grid-scroll { overflow-x: auto; margin-top: 20px; }
.price-grid { min-width: 420px; font-size: 15px; text-align: center; }
.price-grid th, .price-grid td { padding: 12px 6px; border-bottom: 1px solid var(--paper-line); }
.price-grid thead th { font-family: var(--font-head); font-size: 13px; color: var(--ink-muted); font-weight: 700; border-bottom: 2px solid var(--ink); }
.price-grid tbody th { text-align: left; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.price-grid td { font-family: var(--font-en); font-weight: 700; font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.price-grid__none { color: #b3bccb; font-weight: 400; }

.notes { list-style: none; margin: 18px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-muted); }
.notes li { position: relative; padding-left: 1.2em; }
.notes li::before { content: "※"; position: absolute; left: 0; }
.sec:not(.sec--light) > .wrap > .notes { color: var(--muted); }

.split--top { align-items: start; }
.split__img--wide { aspect-ratio: 4 / 3; }
.lead--tight { margin-bottom: 24px; }
.sub-head { font-size: 1.2rem; margin: clamp(48px, 6vw, 72px) 0 24px; }

/* ---------- 寄付募集 ---------- */
.donate {
	display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center;
	margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--accent-text); border-radius: var(--radius);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.donate__title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 10px; }
.donate__body p { margin: 0; color: var(--text-soft); }
.donate__soon { margin: 0; padding: 12px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ---------- 営業時間（アカデミー／整骨院） ---------- */
.hours + .hours { margin-top: 28px; }
.hours caption { caption-side: top; text-align: left; font-family: var(--font-head); font-weight: 700; padding-bottom: 10px; color: var(--ink); }
.hours td.is-reserve { font-family: var(--font-head); font-size: 0.9rem; color: var(--accent-dark); }
.mini-hours__title { margin: 12px 0 4px; color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.mini-hours__title:first-of-type { margin-top: 0; }
.mini-hours div { grid-template-columns: 2em 1fr; }

@media (max-width: 860px) {
	.donate { grid-template-columns: 1fr; }
	.donate .btn { width: 100%; }
	.prices--single { grid-template-columns: 1fr; }
}

/* =========================================================
   ウェルカム演出（オープニング）
   ========================================================= */
.opening, .opening__skip { display: none; }
html.is-opening { overflow: hidden; }

.k47-opening .opening {
	display: grid; place-items: center;
	position: fixed; inset: 0; z-index: 1000;
	background:
		radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%),
		var(--base);
	transition: opacity 0.8s ease, visibility 0.8s ease;
}
.k47-opening .opening__skip {
	display: block; position: fixed; z-index: 1001; right: var(--gutter); bottom: 28px;
	padding: 10px 18px; background: transparent; color: var(--white);
	border: 1px solid color-mix(in srgb, var(--white) 45%, transparent); border-radius: 999px;
	font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; cursor: pointer;
	transition: opacity 0.4s ease;
}
.opening__skip:hover { border-color: var(--white); }
.opening.is-done, .opening__skip.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.opening__inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.opening__logo { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 30px; }
.opening__mark { width: min(38vw, 210px); height: auto; overflow: visible; }
.opening__mark path {
	fill: var(--white); fill-opacity: 0;
	stroke: var(--white); stroke-width: 12; stroke-linejoin: round;
	stroke-dasharray: 1000; stroke-dashoffset: 1000;
	animation: k47-draw 1.5s cubic-bezier(0.6, 0, 0.2, 1) 0.15s forwards, k47-fill 0.6s ease 1.4s forwards;
}
.opening__wordmark { width: min(58vw, 270px); height: auto; fill: var(--white); opacity: 0; animation: k47-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.25s forwards; }
.opening__img { width: min(56vw, 300px); height: auto; margin-bottom: 30px; opacity: 0; animation: k47-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards; }
.opening__name {
	font-family: var(--font-head); font-weight: 900; font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: 0.3em; padding-left: 0.3em;
	margin: 0 0 6px; opacity: 0; animation: k47-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.45s forwards;
}
.opening__en {
	font-family: var(--font-en); font-weight: 600; font-size: 14px; letter-spacing: 0.32em; padding-left: 0.32em; color: var(--accent-text);
	margin: 0; opacity: 0; animation: k47-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.35s forwards;
}
.opening__sub {
	margin: 18px 0 0; font-size: 13px; letter-spacing: 0.2em; color: var(--muted);
	opacity: 0; animation: k47-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s forwards;
}
.opening__bar {
	position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
	background: var(--accent); transform: scaleX(0); transform-origin: left;
	animation: k47-bar 2.6s linear forwards;
}
@keyframes k47-fill { to { fill-opacity: 1; } }
@keyframes k47-bar { to { transform: scaleX(1); } }

/* 演出中はTOPの動きを止めておき、演出が終わってから始める */
.is-opening .hero,
.is-opening .hero * { animation-play-state: paused !important; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.gnav__tel { display: none; }
	.gnav, .gnav__list { gap: 20px; }
	.gnav { margin-right: 20px; }
	.header-cta { min-width: 0; padding: 0 20px; }
	.staff-grid { grid-template-columns: repeat(3, 1fr); }
	.features { grid-template-columns: 1fr 1fr; }
	.features li, .features li:nth-child(4) { grid-column: auto; }
	.flow { grid-template-columns: 1fr 1fr; }
	.flow li:nth-child(2)::after { display: none; }
}

@media (max-width: 860px) {
	:root { --header-h: 64px; }
	.sp-only { display: inline; }

	.brand__mark { width: 38px; height: 38px; font-size: 22px; }
	.brand__name { font-size: 16px; }
	.brand__sub { font-size: 11px; }
	.header-cta { display: none; }

	.menu-toggle {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
		width: 64px; height: 100%; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
	}
	.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s, background-color 0.2s; }
	.menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bar::before { top: -7px; }
	.menu-toggle__bar::after { top: 7px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
	.menu-toggle__label { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }

	.gnav {
		position: fixed; inset: var(--header-h) 0 0; margin: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 24px var(--gutter) 120px; background: var(--base);
		overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s;
	}
	.gnav.is-open { visibility: visible; opacity: 1; }
	.gnav__list { flex-direction: column; gap: 0; }
	.gnav__list a { font-size: 1.25rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
	.gnav__list a:hover { border-bottom-color: var(--line); color: var(--accent-text); }
	.gnav .gnav__line { display: flex; margin-top: 32px; }
	.gnav__tel { display: block; margin-top: 20px; font-size: 2rem; text-align: center; }

	.hero { align-items: flex-end; min-height: calc(100svh - var(--header-h) - 64px); }
	/* スマホは文字が下半分に重なるので、下側だけ少し濃く */
	.hero::before { background: linear-gradient(0deg, color-mix(in srgb, var(--base) 82%, transparent) 0%, color-mix(in srgb, var(--base) 55%, transparent) 45%, transparent 75%); }
	.hero__number { width: min(60vw, 420px); right: 6vw; top: 24px; bottom: auto; }
	.hero__number path { stroke: color-mix(in srgb, var(--accent-text) 38%, transparent); stroke-width: 7; }
	.hero__scroll { display: none; }
	.hero__pause { bottom: 16px; width: 40px; height: 40px; }
	.spec th { width: 58%; }
	.hero .btn-row .btn { flex: 1 1 100%; }

	.clinic-bar__inner { grid-template-columns: 88px 1fr; gap: 16px; }
	.clinic-bar__go { grid-column: 1 / -1; text-align: center; }

	.news-row { grid-template-columns: 1fr; gap: 24px; }
	.news-list a { grid-template-columns: 1fr; gap: 2px; }

	.pillars, .courses, .duo, .trio, .prices, .insurance, .split, .partner, .access, .cols-2, .cta-band__inner, .hours-wrap.has-schedule, .site-footer__grid { grid-template-columns: 1fr; }
	.org__row--split { grid-template-columns: 1fr; }
	.rep { grid-template-columns: 1fr; }
	.rep__photo { max-width: 320px; }
	.stats { grid-template-columns: 1fr; }
	.stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
	.stat { padding: 20px 4px; }
	.steps { grid-template-columns: 1fr; }
	.staff-grid { grid-template-columns: 1fr 1fr; }
	.features { grid-template-columns: 1fr; }
	.flow { grid-template-columns: 1fr; }
	.flow li::after { display: none; }
	.split__img { aspect-ratio: 3 / 2; }
	.hours { font-size: 14px; }
	.hours th, .hours td { padding: 10px 2px; }
	.hours td { font-size: 0.9rem; }
	.post-item a { flex-direction: column; gap: 12px; }
	.post-item__img { width: 100%; }

	.fixed-cta {
		display: grid; grid-template-columns: 1fr 1.4fr;
		position: fixed; inset: auto 0 0; z-index: 90;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--base); border-top: 1px solid var(--line);
	}
	.fixed-cta a { display: grid; place-items: center; min-height: 60px; font-family: var(--font-head); font-weight: 700; text-decoration: none; }
	.fixed-cta__tel { color: var(--white); }
	.fixed-cta__line { background: var(--accent); color: var(--accent-ink); }
	body { padding-bottom: 60px; }
}

@media (max-width: 860px) and (max-height: 500px) {
	.hero { min-height: 520px; }
}



@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =========================================================
   まとめた営業時間（フッター・スマホ）
   ========================================================= */
.hours-sp { display: none; }
.hours-compact { margin: 0; display: grid; gap: 0; }
.hours-compact div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
.hours-compact dt { font-family: var(--font-head); font-weight: 700; }
.hours-compact dd { margin: 0; font-family: var(--font-en); font-weight: 600; font-size: 1.05rem; }
.hours-compact .is-closed dd { font-family: var(--font-head); font-size: 0.95rem; color: #b42318; }
.hours-compact .is-reserve dd { font-family: var(--font-head); font-size: 0.95rem; color: var(--accent-dark); }
.hours-compact--mini div { grid-template-columns: 4.5em 1fr; gap: 8px; padding: 2px 0; border: 0; color: var(--muted); }
.hours-compact--mini dt { color: var(--white); font-weight: 500; font-size: 14px; }
.hours-compact--mini dd { font-family: var(--font-body); font-weight: 400; font-size: 14px; }
.hours-compact--mini .is-closed dd, .hours-compact--mini .is-reserve dd { font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.mini-hours__title { margin-top: 14px; }

/* グリッドの子要素が中身の幅で広がらないように */
.prices > *, .courses > *, .split > *, .access > *, .duo > *, .trio > *, .rep > *, .partner > *, .news-row > *, .hours-wrap > * { min-width: 0; }

/* =========================================================
   スマホの配置
   ========================================================= */
@media (max-width: 860px) {
	.sec { padding-block: 64px; }
	.sec-head { margin-bottom: 28px; }
	.sec-head__en { font-size: clamp(2.6rem, 12vw, 3.4rem); }
	.lead { margin-bottom: 32px; }

	/* ボタンは横幅いっぱいで押しやすく */
	.btn-row { flex-direction: column; gap: 10px; }
	.btn-row .btn { width: 100%; }
	.card .text-link, .card .btn { align-self: stretch; }

	/* TOP：ロゴの線は上側に小さく、見出しと重ならないように */
	.hero { padding-block: 56px 72px; }
	.hero__number { width: 60vw; right: 6vw; top: 20px; bottom: auto; }
	.hero__number path { stroke: color-mix(in srgb, var(--accent-text) 30%, transparent); }
	.hero__catch { font-size: clamp(2.3rem, 11vw, 3rem); margin-bottom: 20px; }
	.hero__en { font-size: 0.9rem; letter-spacing: 0.18em; margin-bottom: 12px; }

	/* 表 */
	.spec { font-size: 14px; }
	.spec th { width: 1%; white-space: nowrap; padding-right: 16px; }
	.spec td { word-break: auto-phrase; }
	.spec__price { font-size: 1.3rem; }

	/* 代表 */
	.rep__photo { width: 100%; max-width: 260px; margin-inline: auto; }
	.rep__name { font-size: 1.9rem; }
	.stat__num { font-size: 3.6rem; }

	/* パーソナル */
	.split { gap: 28px; }
	.split--top .split__img { order: -1; aspect-ratio: 16 / 10; }
	.price-table { padding: 20px 16px; }
	.price-table h3 small { display: block; margin: 4px 0 0; }

	/* 寄付・提携 */
	.donate__title { font-size: 1.15rem; }
	.donate__soon { white-space: normal; text-align: center; }
	.partner__name { font-size: 1.1rem; }

	/* スタッフ */
	.staff-grid { gap: 20px 14px; }
	.staff__name { font-size: 1.05rem; letter-spacing: 0.08em; }

	/* 新着 */
	.news-row .sec-head__en { font-size: 2.6rem; }

	/* フッター */
	.site-footer__grid { gap: 32px; padding-bottom: 32px; }
}

@media (max-width: 600px) {
	/* 料金表：区分ごとのカードにする */
	.grid-scroll { overflow: visible; margin-top: 14px; }
	.price-grid { min-width: 0; text-align: left; }
	.price-grid thead { display: none; }
	.price-grid, .price-grid tbody { display: block; }
	.price-grid tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 8px; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
	.price-grid tbody th { grid-column: 1 / -1; padding: 0 0 6px; border: 0; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
	.price-grid td { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; font-size: 1.1rem; white-space: normal; }
	.price-grid td::before { content: attr(data-label); font-family: var(--font-body); font-weight: 400; font-size: 11px; color: var(--ink-muted); }

	/* 営業時間：表をやめて、まとめた一覧にする */
	.hours { display: none; }
	.hours-sp { display: block; background: var(--white); padding: 16px 18px 6px; border-radius: var(--radius); }
	.hours-sp ~ .hours-sp { margin-top: 16px; }
	.hours-sp__title { margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; color: var(--ink); }
	.hours-sp .hours-compact div:last-child { border-bottom: 0; }
}

/* ヘッダー：メニューが1行に収まらない幅（タブレット・小さめのノートPC）では ☰ に切り替える */
@media (max-width: 1180px) {
	.header-cta { display: none; }
	.menu-toggle {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
		width: 72px; height: 100%; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
	}
	.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s, background-color 0.2s; }
	.menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.menu-toggle__bar::before { top: -7px; }
	.menu-toggle__bar::after { top: 7px; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
	.menu-toggle__label { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; }

	.gnav {
		position: fixed; inset: var(--header-h) 0 0; margin: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 24px var(--gutter) 120px; background: var(--base);
		overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0.2s;
	}
	.gnav.is-open { visibility: visible; opacity: 1; }
	.gnav__list { flex-direction: column; gap: 0; max-width: 640px; }
	.gnav__list a { font-size: 1.2rem; padding: 18px 0; border-bottom: 1px solid var(--line); }
	.gnav__list a:hover { border-bottom-color: var(--line); color: var(--accent-text); }
	.gnav .gnav__line { display: flex; margin-top: 32px; max-width: 640px; }
	.gnav__tel { display: block; margin-top: 20px; font-size: 2rem; max-width: 640px; text-align: center; }
}



/* =========================================================
   2026年11月 追加：レッスン体制・時間割・グループレッスン・フィジカルアカデミー
   ========================================================= */
.spec__price--sm { font-size: 1.1rem; }
.sub-head--flush { margin-top: 0; }
.mini-head { font-size: 1rem; margin: 0 0 4px; }
.checks--compact { margin-top: 8px; }
.checks--compact li { padding: 9px 0 9px 28px; font-size: 15px; }
.hl { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%); color: inherit; font-weight: 700; }

/* レッスン体制（明るいセクション内の白いカード） */
.system { margin-top: clamp(40px, 5vw, 64px); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.system__head { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 4px; align-items: center; padding: clamp(24px, 3vw, 36px); background: var(--base); color: var(--white); }
.system__badge { grid-row: span 2; padding: 10px 16px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.system__title { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.system__head p { margin: 0; color: var(--text-soft); font-size: 15px; }
.system__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); padding: clamp(24px, 3vw, 36px); }
.system__label { font-family: var(--font-head); font-weight: 700; margin: 0 0 14px; }
.session { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.session__item { display: flex; flex-direction: column; gap: 2px; padding: 18px; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper); }
.session__time { font-family: var(--font-en); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent-dark); }
.session__time small { font-family: var(--font-body); font-size: 0.9rem; margin-left: 2px; }
.session__item strong { font-family: var(--font-head); font-size: 1.1rem; margin-top: 6px; }
.session__item > span:last-child { font-size: 13px; color: var(--ink-muted); }
.session__plus { align-self: center; font-size: 1.4rem; color: var(--ink-muted); }
.month { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; counter-reset: none; }
.month li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 10px; text-align: center; border: 1px solid var(--paper-line); border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; }
.month li span { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.month li:nth-child(even) { background: var(--paper); }

/* 時間割 */
.timetable-box { margin-top: clamp(40px, 5vw, 64px); }
.timetable-wrap { background: var(--white); border-radius: var(--radius); padding: clamp(12px, 2vw, 20px); }
.timetable { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.timetable thead th { padding: 10px; background: var(--base); color: var(--white); font-family: var(--font-head); font-size: 14px; border-radius: 4px; }
.timetable thead th:first-child { width: 24%; }
.timetable tbody th { padding: 14px 8px; font-family: var(--font-en); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--paper-line); }
.tt { padding: 14px 10px; border-radius: 4px; text-align: center; font-family: var(--font-head); font-weight: 700; line-height: 1.4; border-left: 4px solid transparent; }
.tt small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.tt--academy { background: color-mix(in srgb, var(--base) 9%, var(--white)); border-left-color: var(--base); }
.tt--study { background: var(--paper); border-left-color: var(--accent); }
.tt--group { background: color-mix(in srgb, var(--accent) 30%, var(--white)); border-left-color: var(--accent-dark); }
.tt--personal { background: color-mix(in srgb, var(--base) 4%, var(--white)); border-left-color: var(--ink-muted); }

/* 持ち物 */
.bring { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--paper-line); border-radius: var(--radius); }
.bring__title { font-size: 1.1rem; margin: 0; }
.bring__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.bring__list li { padding: 8px 16px; border-radius: 999px; background: var(--white); font-weight: 500; }
.bring__list small { margin-left: 6px; font-size: 12px; color: var(--ink-muted); }

/* グループレッスン */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts__item { background: var(--base); padding: clamp(18px, 2.4vw, 28px) 16px; text-align: center; }
.facts dt { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.facts__item--price dd { font-family: var(--font-en); font-size: clamp(1.6rem, 3vw, 2.25rem); color: var(--accent-text); line-height: 1.1; }
.perks { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin: 0; }
.perk { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.perk__tag { align-self: flex-start; margin: 0 0 14px; padding: 4px 12px; border: 1px solid var(--accent-text); border-radius: 999px; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.perk__title { font-size: 1.3rem; margin: 0 0 10px; }
.perk p { color: var(--text-soft); margin: 0; }
.perk--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.perk--accent .perk__tag { border-color: currentColor; color: inherit; }
.perk--accent p { color: inherit; }
.perk__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.perk__price s { opacity: 0.7; font-size: 14px; }
.perk__price strong { font-family: var(--font-en); font-size: 2.4rem; line-height: 1; }
.perk__save { margin-top: 10px !important; align-self: flex-start; padding: 4px 12px; background: var(--accent-ink); color: var(--accent) !important; border-radius: 4px; font-weight: 700; font-size: 14px; }
.recommend { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 24px; align-items: start; }
.recommend__title { font-size: 1.3rem; margin: 12px 0 0; }
.recommend .checks { margin-top: 0; }
#group .btn-row, #physical .btn-row { margin-top: 24px; }

/* フィジカルアカデミー */
.measures { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 clamp(40px, 5vw, 64px); counter-reset: none; }
.measures li { padding: 26px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.measures__n { display: block; font-family: var(--font-en); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent-text); margin-bottom: 14px; }
.measures h4 { font-size: 1.35rem; margin: 0 0 6px; }
.measures p { margin: 0; color: var(--text-soft); font-size: 15px; }
.physical { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.physical .spec { margin-top: 0; }
.plans { display: grid; gap: 12px; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; background: var(--white); color: var(--ink); border-radius: var(--radius); }
.plan__name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.plan__name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.plan__price { margin: 0; font-family: var(--font-en); font-weight: 700; font-size: 1.75rem; white-space: nowrap; }
.physical__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.sports { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(120deg, var(--panel), var(--base)); }
.sports__catch { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; }
.sports__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; justify-content: flex-end; }
.sports__list li { padding: 10px 20px; border: 1px solid var(--accent-text); border-radius: 999px; font-weight: 700; color: var(--accent-text); }

@media (max-width: 860px) {
	.system__head { grid-template-columns: 1fr; }
	.system__badge { grid-row: auto; justify-self: start; margin-bottom: 8px; }
	.system__body { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts__item:last-child { grid-column: span 2; }
	.perks, .measures { grid-template-columns: 1fr; }
	.recommend { grid-template-columns: 1fr; gap: 8px; }
	.physical { grid-template-columns: 1fr; }
	.sports { grid-template-columns: 1fr; }
	.sports__list { justify-content: flex-start; }
	.bring { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.timetable { border-spacing: 3px; }
	.timetable thead th { font-size: 12px; padding: 8px 4px; }
	.timetable tbody th { font-size: 0.95rem; padding: 10px 2px; white-space: normal; line-height: 1.2; }
	.tt { padding: 10px 4px; font-size: 13px; border-left-width: 3px; }
	.tt small { font-size: 11px; }
	.month { grid-template-columns: 1fr 1fr; }
	.session { grid-template-columns: 1fr; }
	.session__plus { justify-self: center; }
	.physical__lists { grid-template-columns: 1fr; }
	.plan__price { font-size: 1.4rem; }
}


/* =========================================================
   TOP：スクロール演出（v2.0）
   ヒーロー → 代表 → 想い → 1階・2階の選択 → 選んだ方の紹介
   動きは html.k47-motion のときだけ。JSが無い・「動きを減らす」設定では
   すべて普通に並んだ状態で表示します。
   ========================================================= */
.scene { position: relative; }
.scene__stage { position: relative; overflow: hidden; }
.stage-label { margin: 0 0 14px; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: 0.3em; color: var(--accent-text); }

.k47-motion .scene { height: var(--scene-h, 300vh); }
.k47-motion .scene--overlap { margin-top: -100vh; }
.k47-motion .scene__stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
.k47-motion .stage-hero { --scene-h: 300vh; }
.k47-motion .stage-rep { --scene-h: auto; }
.k47-motion .stage-rep .scene__stage { position: relative; top: auto; height: auto; min-height: calc(100svh - var(--header-h)); }
.k47-motion .stage-phil { --scene-h: 500vh; }
.k47-motion .stage-choose { --scene-h: 200vh; }
.k47-motion .chapter { --scene-h: 250vh; }

/* --- ヒーロー --- */
.stage-hero .scene__stage { background: var(--base); min-height: 560px; }
.stage-hero__circle { position: absolute; left: 50%; top: 50%; width: 150vmax; height: 150vmax; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--base), #ffffff 12%) 0%, color-mix(in srgb, var(--base), #ffffff 6%) 55%, var(--base) 100%); transform: translate(-50%, -50%) scale(var(--circle, 1)); }
.stage-hero__ring { position: absolute; left: 50%; top: 50%; width: 70vmin; height: 70vmin; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent-text) 55%, transparent); transform: translate(-50%, -50%) scale(var(--ring-s, 1.8)) rotate(var(--ring-r, 120deg)); opacity: var(--ring-o, 0); }
.stage-hero__logo { position: absolute; z-index: 1; left: 50%; top: 50%; width: min(34vw, 420px); height: auto; aspect-ratio: 1951 / 1687; fill: var(--white); transform: translate(-50%, -50%) scale(var(--logo-s, 3)); opacity: var(--logo-o, 0); }
.stage-hero__marquee { position: absolute; z-index: 0; top: 50%; left: 0; margin: 0; white-space: nowrap; font-family: var(--font-en); font-weight: 700; font-size: clamp(90px, 15vw, 230px); line-height: 1; color: color-mix(in srgb, var(--accent-text) 16%, transparent); transform: translate(var(--mx, -120vw), -50%); }
.stage-hero__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(40px, 9vh, 96px); opacity: var(--catch-o, 1); transform: translateY(var(--catch-y, 0px)); }
.stage-hero__en { margin: 0 0 12px; font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: 0.36em; color: var(--accent-text); }
.stage-hero__catch { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(40px, 6vw, 84px); line-height: 1.15; letter-spacing: 0.04em; }
.stage-hero__lead { margin: 18px 0 0; max-width: 640px; font-size: clamp(13px, 1.2vw, 16px); line-height: 2; color: var(--text-soft); }
.stage-hero__scroll { position: absolute; right: clamp(16px, 3vw, 40px); bottom: 28px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.3em; color: var(--accent-text); opacity: var(--hint-o, 0); }
.stage-hero__scroll i { width: 1px; height: 40px; background: var(--accent-text); }
html:not(.k47-motion) .stage-hero .scene__stage { min-height: calc(100svh - var(--header-h)); }

/* --- 代表 --- */
.stage-rep .scene__stage { background: var(--paper); color: var(--ink); border-top-right-radius: var(--radius-in, 0px); }
.stage-rep__inner { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: clamp(24px, 4vw, 64px); min-height: 100%; padding-block: clamp(48px, 8vh, 96px); box-sizing: border-box; }
.k47-motion .stage-rep__inner { height: 100%; }
.stage-rep__body { flex: 999 1 520px; min-width: 0; }
.stage-rep .stage-label { color: var(--ink-muted); }
.stage-rep__name { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); }
.stage-rep__name span { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--ink-muted); }
.stage-rep__stats { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 8px; }
.stage-rep__num { margin: 0; display: flex; align-items: flex-end; gap: 8px; font-family: var(--font-en); font-weight: 700; font-size: clamp(90px, 12vw, 140px); line-height: 0.86; letter-spacing: -0.02em; }
.stage-rep__num small { font-family: var(--font-head); font-weight: 900; font-size: clamp(22px, 2.6vw, 38px); line-height: 1; padding-bottom: 0.3em; letter-spacing: 0; }
.stage-rep__label { margin: 10px 0 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.4vw, 20px); }
.stage-rep__text { margin: 18px 0 0; max-width: 560px; font-size: 14px; line-height: 2; color: var(--ink-muted); }
.stage-rep__dots { display: none; gap: 8px; margin-top: 22px; }
.stage-rep__dots i { display: block; width: 36px; height: 3px; background: var(--paper-line); }
.stage-rep__dots i.is-active { background: var(--ink); }
.stage-rep__photo { flex: 1 1 260px; max-width: 400px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; transform: scale(var(--photo-s, 1)); }
.about { padding-block: clamp(40px, 6vw, 72px); }
.about .org { margin-top: clamp(32px, 5vw, 56px); }
.about .org__box { color: var(--ink); background: var(--white); border-color: var(--paper-line); }
.about .org__box small { color: var(--ink-muted); }
.about .org__box--main { border-color: var(--ink); }
.about .org__row + .org__row::before { background: var(--paper-line); }
.about .org__cap { color: var(--ink-muted); }

/* --- 想い --- */
.stage-phil .scene__stage { background: var(--base); border-top-left-radius: var(--radius-in, 0px); }
.stage-phil__bg { position: absolute; left: -2vw; top: 12%; margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 26vw; line-height: 1; white-space: nowrap; color: color-mix(in srgb, var(--accent-text) 6%, transparent); transform: translateX(var(--bgx, 0vw)); pointer-events: none; }
.stage-phil__inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding-block: clamp(48px, 8vh, 96px); box-sizing: border-box; }
.k47-motion .stage-phil__inner { height: 100%; }
.stage-phil__lines { margin: 0; display: flex; flex-direction: column; gap: clamp(4px, 1.2vh, 14px); font-family: var(--font-head); font-weight: 900; line-height: 1.35; }
.phrase { display: block; font-size: clamp(26px, 3.6vw, 54px); will-change: transform, opacity; }
.phrase--r { text-align: right; }
.phrase--s { font-size: clamp(20px, 2.6vw, 38px); }
.phrase--c { text-align: center; font-size: clamp(24px, 3.2vw, 48px); color: var(--accent-text); }
.stage-phil__pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: clamp(16px, 3vh, 32px); }
.pill { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-top: 2px solid var(--accent-text); background: color-mix(in srgb, var(--accent-text) 8%, transparent); }
.pill b { font-family: var(--font-en); font-size: 14px; letter-spacing: 0.2em; color: var(--accent-text); }
.pill strong { font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.pill span { font-size: 13px; color: var(--text-soft); }

/* --- 1階・2階の選択 --- */
.stage-choose .scene__stage { background: color-mix(in srgb, var(--base), #000000 30%); border-top-right-radius: var(--radius-in, 0px); }
.halves { display: flex; width: 100%; min-height: 70vh; }
.k47-motion .halves { height: 100%; min-height: 0; }
.half { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; margin: 0; padding: 0; border: 0; cursor: pointer; background: var(--base); color: var(--white); text-align: left; font: inherit; transition: flex-grow 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.half--l { transform: translateX(var(--lx, 0%)); }
.half--r { transform: translateX(var(--rx, 0%)); }
.halves:hover .half { flex-grow: 1; }
.halves .half:hover, .halves .half:focus-visible { flex-grow: 1.9; }
.half:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.half__img { position: absolute; inset: 0; margin: 0; }
.half__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) brightness(0.75); transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s; }
.half:hover .half__img img { transform: scale(1.06); filter: grayscale(0) brightness(0.9); }
.half::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--base), #000 35%) 0%, color-mix(in srgb, var(--base) 45%, transparent) 60%, color-mix(in srgb, var(--base) 30%, transparent) 100%); pointer-events: none; }
.half__body { position: absolute; z-index: 1; left: clamp(20px, 4vw, 56px); right: 20px; bottom: clamp(28px, 8vh, 80px); display: flex; flex-direction: column; gap: 6px; }
.half__num { font-family: var(--font-en); font-weight: 700; font-size: clamp(80px, 12vw, 180px); line-height: 0.85; color: var(--accent-text); transform: translateY(var(--num-y, 0px)); opacity: var(--num-o, 1); }
.half__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 2.8vw, 40px); }
.half__sub { font-size: 13px; color: var(--text-soft); }
.half__cue { margin-top: 10px; align-self: flex-start; padding: 10px 18px; border: 1px solid var(--white); border-radius: 4px; font-family: var(--font-head); font-weight: 700; font-size: 13px; opacity: 0.6; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s, background 0.3s, color 0.3s; }
.half:hover .half__cue, .half:focus-visible .half__cue { opacity: 1; transform: none; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.half.is-picked .half__cue { opacity: 1; transform: none; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.stage-choose__copy { position: absolute; z-index: 2; left: 50%; top: clamp(24px, 6vh, 64px); margin: 0; padding: 14px 26px; transform: translate(-50%, var(--copy-y, 0px)); opacity: var(--copy-o, 1); white-space: nowrap; background: color-mix(in srgb, var(--base), #000 30%); border: 1px solid color-mix(in srgb, var(--accent-text) 40%, transparent); border-radius: 999px; font-family: var(--font-head); font-weight: 900; font-size: clamp(14px, 1.6vw, 22px); letter-spacing: 0.06em; pointer-events: none; }
.stage-choose__line { position: absolute; z-index: 1; left: 50%; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--accent-text) 50%, transparent); transform: scaleY(var(--line, 1)); transform-origin: top; pointer-events: none; }
.halves:hover ~ .stage-choose__line { opacity: 0; }

/* --- 選んだ後のチャプター --- */
.chapter--dark .scene__stage { background: var(--base); color: var(--white); }
.chapter--light .scene__stage { background: var(--paper); color: var(--ink); }
.chapter__ghost { position: absolute; right: -2vw; bottom: -6vh; margin: 0; font-family: var(--font-en); font-weight: 700; font-size: 44vw; line-height: 0.8; color: color-mix(in srgb, currentColor 6%, transparent); transform: translateX(var(--ghost-x, 0%)); pointer-events: none; }
.chapter__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: clamp(24px, 4vw, 64px); min-height: 100%; padding-block: clamp(48px, 8vh, 96px); box-sizing: border-box; }
.k47-motion .chapter__inner { height: 100%; }
.chapter__body { flex: 999 1 520px; min-width: 0; }
.chapter__label { margin: 0 0 8px; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: 0.3em; color: var(--accent-text); opacity: var(--label-o, 1); transform: translateY(var(--label-y, 0px)); }
.chapter--light .chapter__label { color: var(--accent-dark); }
.chapter__mask { overflow: hidden; }
.chapter__title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.2; transform: translateY(var(--title-y, 0%)); }
.chapter__lead { margin: 14px 0 0; max-width: 600px; font-size: 15px; line-height: 2; color: var(--text-soft); opacity: var(--lead-o, 1); }
.chapter--light .chapter__lead { color: var(--ink-muted); }
.chapter__items { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 4px; max-width: 640px; }
.chapter__item { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.chapter--light .chapter__item { border-color: var(--paper-line); }
.chapter__k { flex: none; min-width: 3.5em; font-family: var(--font-en); font-weight: 700; font-size: 15px; color: var(--accent-text); }
.chapter--light .chapter__k { color: var(--accent-dark); }
.chapter__txt { display: flex; flex-direction: column; gap: 2px; }
.chapter__txt strong { font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.chapter__txt span { font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.chapter--light .chapter__txt span { color: var(--ink-muted); }
.chapter__media { position: relative; flex: 0 1 min(46%, 600px); min-width: 280px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--accent); clip-path: inset(0 calc(100% - var(--media-r, 100%)) 0 0 round 10px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); }
.chapter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(var(--img-z, 1)); transition: opacity 0.6s ease; }
.chapter__img.is-active { opacity: 1; }
.chapter__measure { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--accent-ink); text-align: center; }
.chapter__measure b { font-family: var(--font-en); font-size: clamp(48px, 6vw, 80px); line-height: 1; }
.chapter__measure span { font-family: var(--font-head); font-weight: 900; font-size: 16px; }
.k47-motion [data-steps] .chapter__item { transition: opacity 0.4s; }

/* パネル（選ぶまでJSで隠す） */
.panel[hidden] { display: none; }
.panel-link__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.panel-link__inner p { margin: 0; }
.panel-next { padding: clamp(64px, 10vw, 120px) 0; text-align: center; background: color-mix(in srgb, var(--base), #000 30%); }
.panel-next__en { margin: 0 0 10px; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: 0.3em; color: var(--accent-text); }
.panel-next__title { margin: 0 0 24px; font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3.4vw, 44px); }
.panel-next__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.panel-next .btn { font: inherit; font-family: var(--font-head); font-weight: 700; cursor: pointer; }
html:not(.k47-motion) .panel-next [data-pick] { display: none; }

/* 後半の各セクション：方向を変えてフェードイン */
.k47-motion .rv { opacity: 0; transform: translate(var(--rv-x, 0px), var(--rv-y, 40px)); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--rv-d, 0s); }
.k47-motion .rv.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
	.halves { flex-direction: column; }
	.half--l, .half--r { transform: translateY(0); }
	.k47-motion .half--l { transform: translateX(var(--lx, 0%)); }
	.stage-choose__line { display: none; }
	.stage-choose__copy { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
	.chapter__media { flex: 0 0 auto; width: min(100%, calc(30svh * 1.6)); min-width: 0; aspect-ratio: 16 / 10; }
	.k47-motion .chapter__inner { gap: 14px; padding-block: 16px; }
	.chapter__title { font-size: clamp(26px, 7vw, 32px); }
	.chapter__lead { font-size: 13px; line-height: 1.8; margin-top: 8px; }
	.chapter__items { margin-top: 10px; }
	.chapter__item { padding: 8px 0; }
	.chapter__txt strong { font-size: 15px; }
	.stage-rep__photo { flex-basis: 160px; max-width: 200px; }
	.chapter__ghost { font-size: 70vw; }
	.phrase { font-size: clamp(22px, 6.4vw, 30px); }
	.phrase--s { font-size: clamp(17px, 4.6vw, 22px); }
	.phrase--c { font-size: clamp(20px, 5.6vw, 26px); }
	.k47-motion .stage-phil__pillars { display: none; }
	.chapter__txt span { display: none; }
}

/* 地域の活動〜スタッフ：大きな英字が流れる＋中身が方向を変えて入る */
.flow-sec { position: relative; overflow: hidden; }
.flow-sec > .wrap { position: relative; z-index: 1; }
.flow-sec::before { content: attr(data-flow-en); position: absolute; z-index: 0; top: clamp(8px, 2vw, 24px); left: 0; white-space: nowrap; font-family: var(--font-en); font-weight: 700; font-size: clamp(90px, 16vw, 240px); line-height: 1; color: color-mix(in srgb, currentColor 5%, transparent); transform: translateX(var(--fx, 0vw)); pointer-events: none; }
.flow-sec:nth-of-type(even)::before { left: auto; right: 0; }

/* パーソナル：写真の上を切って、料金を本文の中にまとめる */
.personal-split { align-items: stretch; }
.split__img--crop { aspect-ratio: auto; min-height: 420px; height: 100%; }
.split__img--crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.checks--two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.price-strip { margin-top: 24px; padding: 20px 22px 16px; background: var(--white); color: var(--ink); border-radius: var(--radius); }
.price-strip__title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 1.1rem; }
.price-strip__title small { display: block; margin-top: 2px; font-family: var(--font-body); font-weight: 500; font-size: 0.78rem; color: var(--ink-muted); }
.price-strip__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; margin: 14px 0 0; border-top: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.price-strip__cell { padding: 12px 10px; }
.price-strip__cell + .price-strip__cell { border-left: 1px solid var(--paper-line); }
.price-strip__cell dt { font-size: 0.75rem; color: var(--ink-muted); }
.price-strip__cell dd { margin: 4px 0 0; font-family: var(--font-en); font-weight: 700; font-size: 1.15rem; line-height: 1.2; white-space: nowrap; }
.price-strip__cell--main dd { font-size: 1.6rem; }
.price-strip .notes { margin-top: 10px; font-size: 0.78rem; }
@media (max-width: 760px) {
	.checks--two { grid-template-columns: 1fr; }
	.split__img--crop { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
	.price-strip__grid { grid-template-columns: 1fr 1fr; }
	.price-strip__cell:nth-child(3) { border-left: 0; }
	.price-strip__cell:nth-child(n+3) { border-top: 1px solid var(--paper-line); }
}

/* スマホ：スクロール量を短くして、重い効果を減らす */
.k47-motion .phrase, .k47-motion .pill, .k47-motion .chapter__item, .k47-motion .half, .stage-hero__logo, .stage-hero__ring, .stage-hero__marquee, .stage-hero__circle { will-change: transform, opacity; }
@supports (height: 100svh) {
	.k47-motion .scene__stage { height: calc(100svh - var(--header-h)); }
}
@media (max-width: 760px) {
	.k47-motion .stage-hero { --scene-h: 200svh; }
	.k47-motion .stage-phil { --scene-h: 300svh; }
	.k47-motion .stage-choose { --scene-h: 150svh; }
	.k47-motion .chapter { --scene-h: 170svh; }
	.k47-motion .chapter[data-steps] { --scene-h: 230svh; }
	.k47-motion .scene--overlap { margin-top: -100svh; }
	.stage-hero__circle { background: color-mix(in srgb, var(--base), #ffffff 8%); }
	.chapter__media { box-shadow: none; }
	.half__img img { filter: brightness(0.75); transition: none; }
	.stage-phil__bg, .chapter__ghost, .flow-sec::before { will-change: transform; }
	.k47-motion .rv { transition-duration: 0.6s; }
}

/* 代表：3つの数字を並べて同時にカウントアップ（貼り付けなし） */
.stage-rep__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(24px, 4vw, 56px); margin-top: 20px; }
.stage-rep__stat + .stage-rep__stat { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--paper-line); }
.stage-rep__num { font-size: clamp(64px, 7.5vw, 120px); }
.stage-rep__label { max-width: 15em; font-size: clamp(12px, 1.1vw, 15px); line-height: 1.6; }
@media (max-width: 760px) {
	.stage-rep__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.stage-rep__stat + .stage-rep__stat { padding-left: 10px; }
	.stage-rep__num { font-size: clamp(40px, 12vw, 56px); gap: 2px; }
	.stage-rep__num small { font-size: 14px; }
	.stage-rep__label { font-size: 11px; }
}

/* 経歴の開閉ボタン：明るい背景で文字が薄すぎたので濃く */
.sec--light .more summary { color: var(--ink); }
.sec--light .more summary::after { color: var(--ink-muted); }

/* 47共育塾の成り立ち：上から順に「つながって生まれた」流れを見せる */
.about .org { max-width: 880px; gap: 0; }
.about .org__cap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 28px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; color: var(--ink); }
.org__cap-en { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: 0.3em; color: var(--ink-muted); }
.about .org__row + .org__row::before { display: none; }
.about .org__box { max-width: 560px; box-shadow: 0 10px 30px -18px rgba(15, 38, 80, 0.35); }
.about .org__box--main { position: relative; max-width: 620px; padding: 26px 20px; background: var(--base); border: 0; color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; box-shadow: 0 24px 50px -20px rgba(15, 38, 80, 0.6); }
.about .org__box--main small { color: var(--accent-text); font-size: 14px; }
.org__mark { width: 54px; height: auto; aspect-ratio: 1951 / 1687; fill: currentColor; margin-bottom: 6px; }
.about .org__box--main::after { content: ""; position: absolute; inset: -8px; border: 1px solid var(--base); border-radius: calc(var(--radius) + 6px); opacity: 0.35; pointer-events: none; }
.org__link { position: relative; display: flex; justify-content: center; height: 72px; }
.org__link i { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); transform-origin: top; }
.org__link--2 i { bottom: 50%; }
.org__link--2 b { position: absolute; left: 25%; right: 25%; top: 50%; height: 2px; background: var(--ink); }
.org__link--2 b::before, .org__link--2 b::after { content: ""; position: absolute; top: 0; width: 2px; height: 36px; background: var(--ink); }
.org__link--2 b::before { left: 0; }
.org__link--2 b::after { right: 0; }
.org__link em { position: absolute; left: calc(50% + 16px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.org__link--2 em { top: 25%; }
.org__floor { font-family: var(--font-en); font-weight: 700; font-size: 34px; line-height: 1; color: var(--ink); opacity: 0.25; }
.about .org__row--split { gap: 24px; }
.about a.org__box { transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.about a.org__box:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 18px 36px -18px rgba(15, 38, 80, 0.5); }

/* 動き（画面に入ったら順番に） */
.k47-motion .org .org__cap, .k47-motion .org .org__row--1, .k47-motion .org .org__link em, .k47-motion .org .org__box--l, .k47-motion .org .org__box--r { opacity: 0; transition: opacity 0.45s ease, transform 0.52s cubic-bezier(0.2, 0.7, 0.2, 1); }
.k47-motion .org .org__cap { transform: translateY(20px); }
.k47-motion .org .org__row--1 { transform: translateY(-30px); transition-delay: 0.13s; }
.k47-motion .org .org__link i { transform: scaleY(0); transition: transform 0.39s ease; }
.k47-motion .org .org__link--1 i { transition-delay: 0.52s; }
.k47-motion .org .org__link--1 em { transform: translate(-10px, -50%); transition-delay: 0.78s; }
.k47-motion .org .org__box--main { opacity: 0; transform: scale(0.8); transition: opacity 0.39s ease 0.85s, transform 0.59s cubic-bezier(0.3, 1.4, 0.5, 1) 0.85s; }
.k47-motion .org .org__box--main::after { transform: scale(0.9); }
.k47-motion .org .org__link--2 i { transition-delay: 1.37s; }
.k47-motion .org .org__link--2 b { transform: scaleX(0); transition: transform 0.39s ease 1.62s; }
.k47-motion .org .org__link--2 b::before, .k47-motion .org .org__link--2 b::after { transform: scaleY(0); transform-origin: top; transition: transform 0.26s ease 1.95s; }
.k47-motion .org .org__link--2 em { transform: translate(-10px, -50%); transition-delay: 1.69s; }
.k47-motion .org .org__box--l { transform: translateX(-60px); transition-delay: 2.15s; }
.k47-motion .org .org__box--r { transform: translateX(60px); transition-delay: 2.24s; }
.k47-motion .org.is-in .org__cap, .k47-motion .org.is-in .org__row--1, .k47-motion .org.is-in .org__box--l, .k47-motion .org.is-in .org__box--r { opacity: 1; transform: none; }
.k47-motion .org.is-in .org__link em { opacity: 1; transform: translate(0, -50%); }
.k47-motion .org.is-in .org__link i, .k47-motion .org.is-in .org__link--2 b, .k47-motion .org.is-in .org__link--2 b::before, .k47-motion .org.is-in .org__link--2 b::after { transform: none; }
.k47-motion .org.is-in .org__box--main { opacity: 1; transform: none; }
.k47-motion .org.is-in .org__box--main::after { animation: k47-org-pulse 1.56s ease-out 1.30s infinite; }
@keyframes k47-org-pulse { 0% { transform: scale(0.96); opacity: 0.5; } 100% { transform: scale(1.12); opacity: 0; } }
.k47-motion .org.is-in a.org__box:hover { transform: translateY(-4px); transition-delay: 0s; }

@media (max-width: 760px) {
	.org__link { height: 64px; }
	.org__link em { left: auto; right: 0; max-width: 42%; white-space: normal; text-align: left; font-size: 11px; line-height: 1.5; }
	.org__link--1 em { left: calc(50% + 12px); right: auto; max-width: none; white-space: nowrap; }
	.org__link--2 em { display: none; }
	.about .org__row--split { grid-template-columns: 1fr 1fr; gap: 10px; }
	.about .org__row--split .org__box { padding: 14px 8px; font-size: 0.95rem; }
	.about .org__row--split small { font-size: 11px; }
	.org__floor { font-size: 26px; }
}

/* 1Fの写真：挙手と指さしが見えるように */
.half__img--academy img { object-position: 52% 45%; }

/* スマホ：細かい情報は「詳しく見る」に格納（PCでは開いたまま・ボタン非表示） */
.mfold { border: 0; }
.mfold > summary { display: none; }
@media (max-width: 760px) {
	.mfold { margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
	.sec--light .mfold, .price-strip .mfold { border-color: var(--paper-line); }
	.mfold > summary { display: flex; padding: 14px 4px; font-size: 14px; }
	.mfold[open] > .mfold__body { padding-bottom: 20px; }
	.card .mfold { margin-top: 8px; border-bottom: 0; }
	.card .mfold > summary { padding: 10px 2px; font-size: 13px; }
	/* 文字を少し詰めて読みやすく */
	.sec .lead { font-size: 14px; line-height: 1.9; }
}

/* 「詳しく見る」ボタン（スマホ） */
@media (max-width: 760px) {
	.mfold { border: 0 !important; margin-top: 20px; }
	.mfold > summary { display: block; padding: 0; }
	.mfold > summary::after { display: none; }
	.mfold__btn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 12px 16px; border: 1px solid currentColor; border-radius: 999px; text-align: center; }
	.mfold__btn b { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; }
	.mfold__btn b::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s; }
	.mfold__btn small { font-size: 11px; font-weight: 500; opacity: 0.75; }
	.mfold__close { display: none !important; }
	.mfold[open] .mfold__open { display: none !important; }
	.mfold[open] .mfold__close { display: inline-flex !important; }
	.mfold[open] .mfold__btn b::after { transform: translateY(2px) rotate(-135deg); }
	.mfold[open] .mfold__btn small { display: none; }
	.mfold[open] > summary { margin-bottom: 16px; }
	.mfold > summary .mfold__btn { color: var(--white); }
	.sec--light .mfold > summary .mfold__btn { color: var(--ink); }
	.mfold__body { animation: k47-fold-in 0.4s ease; }
	@keyframes k47-fold-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
	.card .mfold { margin-top: 12px; }
	.card .mfold__btn { padding: 9px 14px; }
	.card .mfold__btn b { font-size: 13px; }
	.mfold-inner > summary { display: none; }
	.mfold-inner { border: 0; margin: 0; }
	.mfold-inner .more__body { padding: 8px 0 0; }

	/* 代表の写真を真ん中に */
	.stage-rep__photo { margin-inline: auto; }

	/* 紹介写真はスマホでは切り抜きの動きをやめ、ふわっと出す（軽い） */
	.chapter__media { clip-path: none; opacity: var(--media-o, 1); transform: scale(var(--media-s, 1)); will-change: transform, opacity; }
	.stage-rep .scene__stage, .stage-phil .scene__stage, .stage-choose .scene__stage { border-radius: 0 !important; }
}

/* =========================================================
   v1.12：アプリのような動き
   各エリアは1画面。画面に入ったら、そのエリアの動きが最後まで一気に再生されます。
   （スクロール量に動きを縛らないので、途中で止まったりカクついたりしない）
   ========================================================= */
.k47-motion .scene { height: auto !important; margin-top: 0 !important; scroll-margin-top: var(--header-h); }
.k47-motion .scene__stage { position: relative !important; top: auto !important; height: auto !important; min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; border-radius: 0 !important; }
.k47-motion .stage-rep__inner, .k47-motion .stage-phil__inner, .k47-motion .chapter__inner { height: auto !important; min-height: 0; width: 100%; }
.k47-motion .halves { height: auto; min-height: calc(100svh - var(--header-h)); flex: 1; }
.k47-motion .panel-next, .k47-motion .flow-sec { scroll-margin-top: var(--header-h); }

/* 共通のなめらかさ */
.k47-motion .scene * { --ez: cubic-bezier(0.16, 1, 0.3, 1); }

/* ヒーロー：円が広がる → 47が大きく入って上へ → コピーが出る */
.k47-motion .stage-hero__circle { transform: translate(-50%, -50%) scale(0.05); transition: transform 1.6s var(--ez); }
.k47-motion .stage-hero.is-in .stage-hero__circle { transform: translate(-50%, -50%) scale(1); }
.k47-motion .stage-hero__logo { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
.k47-motion .stage-hero.is-in .stage-hero__logo { animation: k47-hero-logo 2.2s var(--ez) forwards; }
@keyframes k47-hero-logo {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
	45% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	100% { opacity: 1; transform: translate(-50%, -50%) translateY(-17vh) scale(0.58); }
}
.k47-motion .stage-hero__ring { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(120deg); }
.k47-motion .stage-hero.is-in .stage-hero__ring { animation: k47-hero-ring 2.2s var(--ez) forwards; }
@keyframes k47-hero-ring {
	0% { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(120deg); }
	45% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
	100% { opacity: 0.8; transform: translate(-50%, -50%) translateY(-17vh) scale(0.62) rotate(-40deg); }
}
.k47-motion .stage-hero__marquee { transform: translate(0, -50%); animation: k47-marquee 40s linear infinite; opacity: 0; transition: opacity 1.2s ease 0.6s; }
.k47-motion .stage-hero.is-in .stage-hero__marquee { opacity: 1; }
@keyframes k47-marquee { from { transform: translate(10vw, -50%); } to { transform: translate(-110%, -50%); } }
.k47-motion .stage-hero__body { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease 1.3s, transform 1.1s var(--ez) 1.3s; }
.k47-motion .stage-hero.is-in .stage-hero__body { opacity: 1; transform: none; }
.k47-motion .stage-hero__scroll { opacity: 0; transition: opacity 0.8s ease 2s; }
.k47-motion .stage-hero.is-in .stage-hero__scroll { opacity: 1; }
.k47-motion .stage-hero__scroll i { animation: k47-scroll-line 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes k47-scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 代表：写真がふわっと、文字が下から */
.k47-motion .stage-rep__photo { transform: scale(0.8); opacity: 0; transition: transform 1.2s var(--ez), opacity 0.8s ease; }
.k47-motion .stage-rep.is-in .stage-rep__photo { transform: none; opacity: 1; }
.k47-motion .stage-rep__body > * { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.9s var(--ez); }
.k47-motion .stage-rep__body > :nth-child(2) { transition-delay: 0.08s; }
.k47-motion .stage-rep__body > :nth-child(3) { transition-delay: 0.16s; }
.k47-motion .stage-rep__body > :nth-child(4) { transition-delay: 0.24s; }
.k47-motion .stage-rep__body > :nth-child(5) { transition-delay: 0.32s; }
.k47-motion .stage-rep.is-in .stage-rep__body > * { opacity: 1; transform: none; }

/* 想い：文章が多方向から順番に */
.k47-motion .phrase { opacity: 0; transform: translate(var(--px, 0), var(--py, 0)) scale(var(--ps, 1)); filter: blur(8px); transition: opacity 0.9s ease, transform 1.2s var(--ez), filter 0.9s ease; transition-delay: var(--d, 0s); }
.k47-motion .stage-phil.is-in .phrase { opacity: 1; transform: none; filter: none; }
.k47-motion .pill { opacity: 0; transform: translateY(50px); transition: opacity 0.7s ease, transform 1s var(--ez); transition-delay: var(--d, 0s); }
.k47-motion .stage-phil.is-in .pill { opacity: 1; transform: none; }
.k47-motion .stage-phil__bg { transform: none; animation: k47-drift 30s linear infinite alternate; }
@keyframes k47-drift { from { transform: translateX(0); } to { transform: translateX(-30vw); } }

/* 1階・2階：左右から合わさる */
.k47-motion .half--l { transform: translateX(-60%); }
.k47-motion .half--r { transform: translateX(60%); }
.k47-motion .half { transition: flex-grow 0.7s var(--ez), transform 1.1s var(--ez); }
.k47-motion .stage-choose.is-in .half { transform: none; }
.k47-motion .half__num { opacity: 0; transform: translateY(80px); transition: opacity 0.8s ease 0.5s, transform 1s var(--ez) 0.5s; }
.k47-motion .stage-choose.is-in .half__num { opacity: 1; transform: none; }
.k47-motion .stage-choose__line { transform: scaleY(0); transition: transform 1s var(--ez) 0.4s; }
.k47-motion .stage-choose.is-in .stage-choose__line { transform: scaleY(1); }

/* 紹介（チャプター） */
.k47-motion .chapter__ghost { transform: translateX(40%); opacity: 0; transition: transform 1.6s var(--ez), opacity 1s ease; }
.k47-motion .chapter.is-in .chapter__ghost { transform: none; opacity: 1; }
.k47-motion .chapter__label { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease 0.1s, transform 0.8s var(--ez) 0.1s; }
.k47-motion .chapter__title { transform: translateY(110%); transition: transform 1s var(--ez) 0.2s; }
.k47-motion .chapter__lead { opacity: 0; transition: opacity 0.8s ease 0.45s; }
.k47-motion .chapter.is-in .chapter__label, .k47-motion .chapter.is-in .chapter__title, .k47-motion .chapter.is-in .chapter__lead { opacity: 1; transform: none; }
.k47-motion .chapter__media { clip-path: inset(0 100% 0 0 round 10px); opacity: 1; transform: none; transition: clip-path 1.2s var(--ez) 0.25s; }
.k47-motion .chapter.is-in .chapter__media { clip-path: inset(0 0 0 0 round 10px); }
.k47-motion .chapter__img { transform: scale(1.12); transition: opacity 0.6s ease, transform 1.6s var(--ez); }
.k47-motion .chapter.is-in .chapter__img { transform: none; }
.k47-motion .chapter__item { opacity: 0; transform: translateX(60px); transition: opacity 0.6s ease, transform 0.9s var(--ez); transition-delay: var(--d, 0s); }
.k47-motion .chapter.is-in .chapter__item { opacity: 1; transform: none; }
.k47-motion [data-steps].is-in .chapter__item:not(.is-active) { opacity: 0.45; transition-delay: 0s; }
.k47-motion [data-steps] .chapter__item { cursor: pointer; }

/* 後半：大きな英字がすっと入る */
.flow-sec::before { transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease; }
.k47-motion .flow-sec::before { transform: translateX(calc(var(--side, -1) * 25vw)); opacity: 0; }
.k47-motion .flow-sec:nth-of-type(even)::before { --side: 1; }
.k47-motion .flow-sec.is-in::before { transform: none; opacity: 1; }

@media (max-width: 760px) {
	.k47-motion .phrase { filter: none; }
	.k47-motion .chapter__media { clip-path: none; opacity: 0; transform: scale(0.92); transition: opacity 0.8s ease 0.25s, transform 1s var(--ez) 0.25s; }
	.k47-motion .chapter.is-in .chapter__media { opacity: 1; transform: none; }
	.k47-motion .half--l { transform: translateX(-100%); }
	.k47-motion .half--r { transform: translateX(100%); }
	.k47-motion .halves { min-height: calc(100svh - var(--header-h) - 56px); }
	.k47-motion .stage-hero.is-in .stage-hero__logo { animation-name: k47-hero-logo-sp; }
	.k47-motion .stage-hero.is-in .stage-hero__ring { animation-name: k47-hero-ring-sp; }
	@keyframes k47-hero-logo-sp {
		0% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
		45% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
		100% { opacity: 1; transform: translate(-50%, -50%) translateY(-16vh) scale(0.8); }
	}
	@keyframes k47-hero-ring-sp {
		0% { opacity: 0; transform: translate(-50%, -50%) scale(1.8) rotate(120deg); }
		45% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
		100% { opacity: 0.8; transform: translate(-50%, -50%) translateY(-16vh) scale(0.85) rotate(-40deg); }
	}
}

/* 動きで要素が画面の外にはみ出しても、ページ幅が変わらないようにする
   （スマホではページ幅が広がると全体が縮んで、上のメニューの大きさが変わって見えるため） */
body { overflow-x: hidden; }
@supports (overflow: clip) {
	html, body { overflow-x: clip; }
	.site-main { overflow-x: clip; }
}
