/* ==========================================================
   Resonance（音の波紋） — style.css の後に読む上書き
   色は style.css のトークンだけを使う（ダークモードもそのまま効く）。
   body には overflow / overscroll-behavior / height を付けないこと（Android でスクロールが止まる）。
   背景は position:fixed・pointer-events:none・z-index 負のレイヤー。
   ========================================================== */

:root {
  --glass: color-mix(in srgb, var(--surface) 62%, transparent);
  --glass-solid: color-mix(in srgb, var(--surface) 86%, transparent);
  --glass-edge: color-mix(in srgb, var(--surface) 85%, transparent);
  --glass-blur: blur(16px) saturate(1.35);
  --ghost: color-mix(in srgb, var(--dusty) 42%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --glass: color-mix(in srgb, var(--surface) 66%, transparent);
    --glass-solid: color-mix(in srgb, var(--surface) 90%, transparent);
    --glass-edge: color-mix(in srgb, var(--dusty) 22%, transparent);
    --ghost: color-mix(in srgb, var(--dusty) 34%, transparent);
  }
}
:root[data-theme="dark"] {
  --glass: color-mix(in srgb, var(--surface) 66%, transparent);
  --glass-solid: color-mix(in srgb, var(--surface) 90%, transparent);
  --glass-edge: color-mix(in srgb, var(--dusty) 22%, transparent);
  --ghost: color-mix(in srgb, var(--dusty) 34%, transparent);
}

/* ---------- 背景レイヤー ---------- */
.resonance-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.resonance-bg > * { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; }
.aura {
  top: -20%; right: -20%; bottom: -20%; left: -20%;
  background:
    radial-gradient(38% 34% at 18% 22%, var(--ivory) 0%, transparent 70%),
    radial-gradient(36% 30% at 82% 70%, color-mix(in srgb, var(--accent-soft) 85%, transparent) 0%, transparent 72%),
    radial-gradient(44% 40% at 70% 18%, var(--mist) 0%, transparent 70%),
    radial-gradient(40% 36% at 25% 85%, var(--mist) 0%, transparent 72%);
}
#resonance { display: block; width: 100%; height: 100%; }
.grain {
  opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .34 0 0 0 0 .40 0 0 0 0 .50 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: screen; opacity: .10; } }
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .10; }
/* 色のにじみは PC だけゆっくり動かす（スマホ・遅い端末・動きを減らす設定では止める） */
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) and (hover: hover) {
  html:not(.rz-static) .aura { will-change: transform; animation: aura-drift 38s ease-in-out infinite alternate; }
}
@keyframes aura-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) rotate(4deg) scale(1.05); }
  100% { transform: translate3d(-3%, 2%, 0) rotate(-3deg) scale(1.02); }
}

/* ---------- セクションは透ける紙に ---------- */
.hero, .facts, .page-hero { background: transparent; }
.page-hero { isolation: isolate; padding-top: clamp(80px, 11vw, 140px); }
.section--mist { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mist) 55%, transparent) 18%, color-mix(in srgb, var(--mist) 55%, transparent) 82%, transparent); }
.section--surface { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 45%, transparent) 20%, color-mix(in srgb, var(--surface) 45%, transparent) 80%, transparent); }
.section--warm { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ivory) 70%, transparent) 18%, color-mix(in srgb, var(--ivory) 70%, transparent) 82%, transparent); }
.site-footer { background: color-mix(in srgb, var(--surface) 88%, transparent); }
/* 波紋を canvas で描けているときは、SVG の輪は隠す（二重にしない） */
.has-resonance .hero__rings, .has-resonance .page-hero > .ripple { visibility: hidden; }

/* ---------- すりガラスのパネル（PC） ---------- */
.feature, .course, .voice, .step, .map-card, .cycle__node, .facts__list, .hero__badge, .news-list,
.box, .day, .faq details, .message, .slots, .growth__step, .merits li, .numbered li, .table-wrap, .types li, .form, .admin-day {
  background: var(--glass);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.feature, .course, .voice, .step, .map-card, .facts__list, .news-list, .box, .day, .message, .slots, .growth__step, .form {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 90%, transparent), var(--shadow);
}
.feature, .voice, .step, .box, .message, .growth__step, .numbered li, .merits li { border: 1px solid var(--glass-edge); }
.merits li { border-top: 3px solid var(--accent-soft); }
.form, .slots, .admin-day { background: var(--glass-solid); }
.cycle__node--a { background: color-mix(in srgb, var(--accent-soft) 78%, transparent); }
/* コースのカードは全部に枠を付ける（おすすめの60分だけローズの枠） */
.course { border: 1px solid var(--mist-2); }
.course--featured { border-color: var(--accent); }
.news-list { border-radius: var(--radius); padding: 4px clamp(14px, 3vw, 22px); border: 1px solid var(--glass-edge); }
.news-list li:last-child { border-bottom: 0; }
/* スマホ・タッチ端末は backdrop-filter を使わず、不透明度を上げるだけ（スクロールを重くしない） */
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  .feature, .course, .voice, .step, .map-card, .cycle__node, .facts__list, .hero__badge, .news-list,
  .box, .day, .faq details, .message, .slots, .growth__step, .merits li, .numbered li, .table-wrap, .types li, .form, .admin-day {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: var(--glass-solid);
  }
  .cycle__node--a { background: color-mix(in srgb, var(--accent-soft) 92%, transparent); }
}
/* 遅い端末（JS が判定）も同じ扱い */
.rz-static .feature, .rz-static .course, .rz-static .voice, .rz-static .step, .rz-static .map-card, .rz-static .facts__list,
.rz-static .news-list, .rz-static .box, .rz-static .day, .rz-static .faq details, .rz-static .message, .rz-static .growth__step,
.rz-static .numbered li, .rz-static .table-wrap, .rz-static .types li, .rz-static .merits li, .rz-static .hero__badge, .rz-static .cycle__node {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* ---------- ホームのヒーロー ---------- */
.hero { isolation: isolate; }
.hero__ghost {
  position: absolute; z-index: -1; left: -.06em; bottom: -.22em;
  font-family: var(--f-latin); font-style: italic; font-weight: 500; line-height: 1;
  font-size: clamp(120px, 30vw, 420px); letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--ghost); pointer-events: none; user-select: none;
}
@media (min-width: 861px) {
  .hero__inner { grid-template-columns: 1.3fr .7fr; padding-block: clamp(72px, 9vw, 128px) clamp(96px, 10vw, 150px); }
  .hero__title { font-size: clamp(40px, 4.4vw, 56px); letter-spacing: .06em; line-height: 1.32; }
  .hero__visual { width: min(100%, 400px); }
}
.hero__ghost--sub { display: none; }
/* スマホ：写真の左右の余白に、縦書きの大きな英字（左 Piano・右 Lesson）。他のセクションの英字と同じ線の書体 */
@media (max-width: 860px) {
  .hero__ghost {
    top: calc(var(--photo-top) + 8px); bottom: auto; left: calc(50% - var(--pw) / 2 - 1em - 6px);
    font-size: min(11vw, 64px); writing-mode: vertical-rl; transform: rotate(180deg);
    -webkit-text-stroke: 1px color-mix(in srgb, var(--dusty) 70%, transparent); letter-spacing: .02em; opacity: 1;
  }
  .hero__ghost--sub {
    display: block; transform: none; left: auto; right: calc(50% - var(--pw) / 2 - 1em - 6px);
    top: calc(var(--photo-top) + var(--pw) * .5);
    -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 70%, transparent);
  }
}

.hero__photo { border: 1px solid var(--glass-edge); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--dusty-deep) 55%, transparent); }
/* 基本情報：ヒーローに重なって浮くガラスの帯 */
.facts { border: 0; position: relative; z-index: 3; margin-top: clamp(-72px, -5vw, -32px); }
.facts__list { overflow: clip; border-radius: 20px; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); padding-inline: 0; }
.facts__item { border-left-color: color-mix(in srgb, var(--line) 80%, transparent); }
@media (max-width: 860px) { .facts__item:nth-child(n+3) { border-top-color: color-mix(in srgb, var(--line) 80%, transparent); } }

/* ---------- キーワードの帯（ホームだけ） ---------- */
.marquee {
  overflow: hidden; padding-block: clamp(40px, 6vw, 72px) clamp(8px, 2vw, 16px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee span {
  font-family: var(--f-latin); font-style: italic; font-weight: 500; line-height: 1.2;
  font-size: clamp(34px, 6vw, 76px); letter-spacing: .01em; color: var(--dusty-deep); white-space: nowrap; padding-inline: .45em;
}
.marquee span.o { color: transparent; -webkit-text-stroke: 1px var(--dusty); }
.marquee span.ja { font-family: var(--f-display); font-style: normal; font-weight: 600; font-size: clamp(22px, 3.6vw, 44px); letter-spacing: .08em; color: var(--accent-deep); font-feature-settings: normal; }
.marquee i {
  width: .9em; height: .9em; font-size: clamp(22px, 3vw, 36px); flex-shrink: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 14%, transparent 15% 33%, color-mix(in srgb, var(--accent) 60%, transparent) 34% 38%, transparent 39% 62%, color-mix(in srgb, var(--accent) 35%, transparent) 63% 67%, transparent 68%);
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 48s linear infinite; }
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 鍵盤の区切り線（スクロールでローズの光が走る。--p は JS が 0〜1 で入れる） ---------- */
.keys { --p: .5; position: relative; height: 36px; margin-block: 8px; }
.keys::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: max(var(--gutter), calc(50% - 380px)); right: max(var(--gutter), calc(50% - 380px));
  background: linear-gradient(90deg, var(--dusty) 0%, var(--dusty) calc(var(--p) * 100% - 16%), var(--accent) calc(var(--p) * 100%), var(--dusty) calc(var(--p) * 100% + 16%), var(--dusty) 100%);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='36'><rect width='112' height='36' fill='%23000' fill-opacity='.08'/><g fill='%23000'><rect x='0' y='0' width='1' height='36'/><rect x='48' y='0' width='1' height='36'/><rect x='16' y='22' width='1' height='14'/><rect x='32' y='22' width='1' height='14'/><rect x='64' y='22' width='1' height='14'/><rect x='80' y='22' width='1' height='14'/><rect x='96' y='22' width='1' height='14'/><rect x='11.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='27.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='59.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='75.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='91.2' y='0' width='9.6' height='22' rx='1.2'/></g></svg>") repeat-x 0 0 / 112px 36px, linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='112' height='36'><rect width='112' height='36' fill='%23000' fill-opacity='.08'/><g fill='%23000'><rect x='0' y='0' width='1' height='36'/><rect x='48' y='0' width='1' height='36'/><rect x='16' y='22' width='1' height='14'/><rect x='32' y='22' width='1' height='14'/><rect x='64' y='22' width='1' height='14'/><rect x='80' y='22' width='1' height='14'/><rect x='96' y='22' width='1' height='14'/><rect x='11.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='27.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='59.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='75.2' y='0' width='9.6' height='22' rx='1.2'/><rect x='91.2' y='0' width='9.6' height='22' rx='1.2'/></g></svg>") repeat-x 0 0 / 112px 36px, linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
  opacity: .55;
}

/* ---------- 見出しの後ろの大きな欧文と番号（build.py が書き出す） ---------- */
.eyebrow.has-ghost { position: relative; z-index: 0; }
.ghost {
  position: absolute; z-index: -1; left: -.05em; bottom: 100%; margin-bottom: -.3em;
  font-family: var(--f-latin); font-style: italic; font-weight: 500; line-height: 1; white-space: nowrap;
  font-size: clamp(68px, 11vw, 150px); letter-spacing: -.01em;
  color: transparent; -webkit-text-stroke: 1px var(--ghost); pointer-events: none; user-select: none;
}
.ghost::before { content: attr(data-t); }
/* 長い英字（Online & Video など）が画面の外にはみ出して横にずれないよう、セクション単位で切る
   （body には付けない。clip はスクロール箱を作らないので縦スクロールに影響しない） */
main > section, main > .section, main > .hero { overflow-x: clip; } /* hidden の予備は付けない（古い端末で縦のスクロール箱になり Android で引っかかるため） */
/* スマホ：長い英字（Behind the Scenes など）は画面幅に収まるまで小さくする（1文字 ≒ .4em で計算） */
@media (max-width: 760px) { .ghost { font-size: min(clamp(56px, 16vw, 96px), calc((100vw - 2 * var(--gutter)) / (var(--n, 8) * .4))); } }
.section-head--center .ghost { left: 50%; transform: translateX(-50%); }
.eyebrow__no { font-family: var(--f-body); font-style: normal; font-size: 11px; letter-spacing: .16em; color: var(--muted); margin-left: -2px; }
/* 下層ページの見出し：大きな欧文はタイトル帯の右下に */
.page-hero .eyebrow.has-ghost { position: static; }
.page-hero .ghost { left: auto; right: 0; bottom: -.16em; margin: 0; font-size: clamp(64px, 12vw, 168px); }
/* スマホでは狭くて本文やラベルに重なるので、タイトル帯の大きな英字は出さない */
@media (max-width: 560px) { .page-hero .ghost { display: none; } }
.h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.45; }

/* ---------- 音階のように段をずらす（PC・3枚並びのときだけ） ---------- */

.teacher__photo { box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--dusty-deep) 60%, transparent); }
/* 発表会の写真：説明文は写真の外に、少し間をあけて置く（枠の中に詰め込まない） */
.recital__photo { overflow: visible; border-radius: 0; box-shadow: none; }
.recital__photo img { display: block; border-radius: var(--radius); box-shadow: 0 30px 60px -34px color-mix(in srgb, var(--dusty-deep) 60%, transparent); }
.recital__caption { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-inline: 2px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.recital__caption::before { content: ""; flex: 0 0 20px; height: 1px; background: var(--accent); }
@media (max-width: 860px) { .recital { gap: clamp(72px, 18vw, 88px); } }

/* ---------- スマホのメニュー（タイル型・画面いっぱい）を波紋のデザインに ----------
   配置（2列タイル＋アクセス横長＋下段にInstagram・お問い合わせ）は style.css のまま。見た目だけ変える。 */
@media (max-width: 1180px) {
  .gnav { isolation: isolate; }
  /* メニューボタンの位置から広がる、静かな波紋 */
  .gnav::before {
    content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
    background:
      repeating-radial-gradient(circle at calc(100% - 34px) -36px, transparent 0 25px, color-mix(in srgb, var(--dusty) 22%, transparent) 25px 26px),
      radial-gradient(60% 45% at 8% 100%, color-mix(in srgb, var(--accent-soft) 80%, transparent), transparent 75%),
      radial-gradient(70% 50% at 100% 0%, var(--mist), transparent 70%);
    -webkit-mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
    mask-image: radial-gradient(120% 90% at 100% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 85%);
    transform-origin: calc(100% - 34px) 0; transform: scale(.35); opacity: 0;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
  }
  .menu-open .gnav::before { transform: none; opacity: 1; }
  .gnav__list { position: relative; }
  .gnav__list a {
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    border-color: color-mix(in srgb, var(--line) 85%, transparent);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 90%, transparent), 0 10px 24px -18px color-mix(in srgb, var(--dusty-deep) 60%, transparent);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  /* アイコンの丸に淡いリング */
  .gnav__list > li:not(.gnav__ig):not(.gnav__cta) > a .gnav__icon {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--dusty) 14%, transparent), 0 0 0 8px color-mix(in srgb, var(--dusty) 7%, transparent);
  }
  /* 今いるページは輪を強調 */
  .gnav__list a[aria-current="page"] {
    border-color: var(--dusty);
    background:
      repeating-radial-gradient(circle at 50% 38%, transparent 0 17px, color-mix(in srgb, var(--dusty) 16%, transparent) 17px 18px),
      color-mix(in srgb, var(--mist) 88%, transparent);
  }
  .gnav__list > li:not(.gnav__ig):not(.gnav__cta) > a[aria-current="page"] .gnav__icon {
    background: var(--surface); color: var(--accent-deep);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 0 9px color-mix(in srgb, var(--accent) 14%, transparent);
  }
  .gnav__list a[aria-current="page"] .gnav__en { color: var(--accent-deep); }
  .gnav__list .gnav__ig a { background: color-mix(in srgb, var(--accent-soft) 90%, transparent); }
  /* タイルが波紋にのって順に現れる */
  .gnav__list > li { transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
  body:not(.menu-open) .gnav__list > li { opacity: 0; transform: translateY(10px) scale(.98); }
  .menu-open .gnav__list > li:nth-child(2), .menu-open .gnav__list > li:nth-child(3) { transition-delay: .04s; }
  .menu-open .gnav__list > li:nth-child(4), .menu-open .gnav__list > li:nth-child(5) { transition-delay: .09s; }
  .menu-open .gnav__list > li:nth-child(6), .menu-open .gnav__list > li:nth-child(7) { transition-delay: .14s; }
  .menu-open .gnav__list > li:nth-child(8) { transition-delay: .19s; }
  .menu-open .gnav__list > li:nth-child(n+9) { transition-delay: .24s; }
}
@media (max-width: 1180px) and (max-height: 640px) {
  .gnav__list > li:not(.gnav__ig):not(.gnav__cta) > a .gnav__icon {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dusty) 14%, transparent), 0 0 0 6px color-mix(in srgb, var(--dusty) 7%, transparent);
  }
  .gnav__list > li:not(.gnav__ig):not(.gnav__cta) > a[aria-current="page"] .gnav__icon {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .aura { animation: none !important; }
  .gnav::before { transition: none; }
}

/* ---------- 検証で見つかった重なりの調整 ---------- */
/* カードや囲みの中では大きな英字を出さない（枠をまたいだり切れたりするため） */
.box .ghost, .message .ghost, .map-card .ghost, .form .ghost { display: none; }
/* タイトル帯（PC）：大きな英字の置き場を下にとって、説明文と重ならないように */
@media (min-width: 561px) {
  .page-hero__inner { padding-bottom: clamp(40px, 5vw, 76px); }
  .page-hero .ghost { bottom: -.1em; }
}
/* スマホ：写真の直後の見出しで、英字が写真にかからないよう上に余白 */
@media (max-width: 860px) { main .eyebrow.has-ghost { margin-top: clamp(24px, 7vw, 44px); } .page-hero .eyebrow.has-ghost { margin-top: 0; } }
/* 区切り線の直後の詰めたセクションは、英字の分だけ上をあける */
.keys + .section--tight { padding-top: clamp(88px, 9vw, 112px); }
/* 中央そろえの見出しは、ラベルと英字の重なりを少し減らす */
.section-head--center .ghost { margin-bottom: -.12em; }
/* タイトル帯の英字は右端で切れないよう、余白の内側に。狭いPC幅では少し小さく */
.page-hero .ghost { right: var(--gutter); }
@media (max-width: 1100px) { .page-hero .ghost { font-size: clamp(64px, 9vw, 120px); } }
@media (max-width: 560px) { .ghost { margin-bottom: .08em; } }
/* 総点検（9/30）の調整 */
.box .eyebrow.has-ghost, .message .eyebrow.has-ghost { margin-top: 0; }
/* 保護者の声・習って良かったことのカードも高さをそろえる */
.voices, .voices--scroll { align-items: stretch; }
/* 3つの特徴のカードは高さをそろえる */
.features, .features--scroll { align-items: stretch; }
.features > .feature { height: auto; }
.cta__inner { padding-inline: max(24px, var(--gutter)); }
.cta .ripple { opacity: .5; }
.site-footer a { white-space: nowrap; }
/* 背の低いスマホ（iPhone SE 等）では、最初の画面にキャッチコピーとボタンが入るよう写真を小さく */
@media (max-width: 560px) and (max-height: 700px) {
  .hero__inner { gap: 16px; }
}
@media (max-width: 560px) { .page-hero + .section .teacher__photo { max-width: 78%; margin-inline: auto; } }
/* 中くらいの高さ（iPhone SE 2/3 の 667px など）：アイコンは出したまま少し詰めて1画面に収める */
@media (max-width: 1180px) and (min-height: 641px) and (max-height: 700px) {
  .gnav__list > li:not(.gnav__ig):not(.gnav__cta) > a { padding-block: 8px; }
  .gnav__list > li:not(.gnav__ig):not(.gnav__cta) > a .gnav__icon { width: 38px; height: 38px; padding: 8px; margin-bottom: 2px; }
  .gnav__list .gnav__ig a, .gnav__list .gnav__cta a { height: 46px; }
}
/* 総点検B（9/30） */
.photo-row figure { align-content: start; }
.photo-row figure:nth-child(3):last-child img { object-position: center 65%; }
.news-list li:not([hidden]):not(:has(~ li:not([hidden]))) { border-bottom: 0; }
.pager button { display: inline-grid; place-items: center; line-height: 1; }
.pager__step { padding-bottom: 2px; }
.pager__gap { padding-top: 6px; }
@media (max-width: 560px) { .pager button { min-width: 38px; } }
.field__error { text-wrap: pretty; }
/* セレクトの矢印をサイトの山形に */
.select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%2356677F' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
/* FAQ：開閉の印を1行目にそろえ、答えの左端を質問文にそろえる */
.faq summary::after { top: 1.55em; }
.faq summary::before { flex: 0 0 14px; }
.faq .answer { padding-left: calc(24px + 14px + 14px); }
@media (max-width: 760px) { .faq summary::after { top: 1.4em; } .faq .answer { padding-left: calc(16px + 14px + 10px); } }
/* お問い合わせページでは、ヘッダーの「お問い合わせ」ボタンは出さない */
body.page-contact .header-cta, body.page-contact .gnav__cta { display: none; }
/* カードの中の小見出し（アクセスの「最寄り駅から」）は線なし */
.map-card .h3 { border-left: 0; padding-left: 0; }
.consent.field--error span { color: var(--err); }
/* 記事の前後リンク */
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article__navlink { display: grid; gap: 4px; padding: 14px 16px !important; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--glass-solid); }
.article__navlink small { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.article__navlink.is-next { text-align: right; }
@media (max-width: 560px) { .article__nav { grid-template-columns: 1fr; } .article__navlink.is-next { text-align: left; } }
.news-tools { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
/* 総点検（PC・タブレット 9/30） */
.page-hero + .section { padding-top: clamp(48px, 6vw, 84px); }
@media (min-width: 561px) {
  /* タイトル帯・2段組の英字は、その場所の幅に収まる大きさまで縮める（1文字 ≒ .42em） */
  .page-hero .ghost { font-size: min(clamp(64px, 9vw, 132px), calc(min(50vw, 560px) / (var(--n, 8) * .42))); }
  .split .ghost, .recital .ghost { font-size: min(clamp(68px, 11vw, 150px), calc(min(46vw, 520px) / (var(--n, 8) * .42))); }
}
.course__tag { white-space: nowrap; width: max-content; max-width: calc(100% - 32px); }
@media (max-width: 900px) and (min-width: 561px) { .course__tag { font-size: 11px; letter-spacing: .04em; padding-inline: 10px; left: 16px; } }
@media (max-width: 900px) and (min-width: 561px) { .course { padding-top: 40px; } }
@media (min-width: 761px) and (max-width: 1024px) { .features:has(> .feature:nth-child(3):last-child) { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
@media (min-width: 861px) { .elements { align-items: stretch; } .elements__panels, .elements__panel { height: 100%; } }
.section--mist .grid-2 { align-items: start; }
@media (min-width: 861px) and (max-width: 1280px) { .hero__ghost { opacity: .5; } }
@media (min-width: 1600px) { .hero__visual { width: min(100%, 460px); } .hero__title { font-size: 56px; } }
.gnav__list a[aria-current="page"] { font-weight: 600; }
.btn--ghost:hover { background: color-mix(in srgb, var(--dusty-deep) 10%, transparent); color: var(--dusty-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .split__media--soft img, :root:not([data-theme="light"]) .cloud-photo img { filter: brightness(.75) saturate(.9); } }
:root[data-theme="dark"] .split__media--soft img, :root[data-theme="dark"] .cloud-photo img { filter: brightness(.75) saturate(.9); }
/* スマホのロゴ文字を、右のボタンとぶつからない範囲で大きく（ヘッダーの高さは変えない） */
@media (max-width: 430px) {
  .brand__mark { width: clamp(30px, 9vw, 36px); height: clamp(30px, 9vw, 36px); }
  .brand__ja { font-size: clamp(13px, calc(7.4vw - 10px), 22px); line-height: 1.25; }
  .brand__en { font-size: clamp(10px, 2.9vw, 12px); line-height: 1.2; }
}
/* 循環図の丸は不透明に（後ろの円の線が透けて見えないように） */
.cycle__node, .rz-static .cycle__node { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.cycle__node--a, .rz-static .cycle__node--a { background: var(--accent-soft); }
/* トップの写真のバッジ：音符ではなく教室のロゴ（A＋音符）を入れる */
.hero__badge-dot svg.badge-logo { width: 20px; height: 20px; }
@media (min-width: 861px) { .hero__badge-dot svg.badge-logo { width: 24px; height: 24px; } }
.hero__badge strong { white-space: nowrap; }
.hero__badge { width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 860px) { .hero__badge strong { letter-spacing: .02em; } }
/* スマホのトップ写真を少し大きく（左右の縦書き英字との間を詰める） */
/* スマホのトップ写真は、どの機種でも同じ比率（画面幅の74%）。縦書きの英字はその左右6pxに置く */
@media (max-width: 860px) {
  .hero { --pw: min(74vw, 400px); --photo-top: 48px; }
  .hero__visual { width: var(--pw); }
}
/* トップ：教室の写真を雲のように透かして周りに浮かべる（背景の英字 Piano／Lesson とは重ならない位置） */
.hero__clouds { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__clouds img {
  position: absolute; object-fit: cover; border-radius: 50%; opacity: .5; filter: saturate(.85) brightness(1.05);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, rgba(0,0,0,.55) 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, rgba(0,0,0,.55) 60%, transparent 100%);
  animation: cloud-float 14s ease-in-out infinite alternate;
}
@keyframes cloud-float { from { transform: translate3d(0,0,0); } to { transform: translate3d(0,-10px,0); } }
.hero__clouds .c2 { animation-delay: -3s; } .hero__clouds .c3 { animation-delay: -6s; } .hero__clouds .c4 { animation-delay: -9s; } .hero__clouds .c5 { animation-delay: -12s; }
.hero__inner { position: relative; z-index: 1; }
/* PC：写真の周り（右半分）に5つ */
@media (min-width: 861px) {
  .hero__clouds .c1 { width: 300px; height: 220px; right: 1%; top: 6%; }
  .hero__clouds .c2 { width: 260px; height: 260px; right: 30%; top: 4%; opacity: .38; }
  .hero__clouds .c3 { width: 240px; height: 200px; right: -2%; top: 48%; }
  .hero__clouds .c4 { width: 220px; height: 190px; left: calc(60vw + 8px); top: 66%; opacity: .4; }
  .hero__clouds .c5 { width: 220px; height: 180px; left: 2%; top: 4%; opacity: .3; }
}
/* スマホ：縦書きの英字（左上 Piano・右 Lesson）を避けて配置 */
@media (max-width: 860px) {
  .hero__clouds .c1 { width: 48vw; height: 44vw; left: -16vw; top: 42vw; opacity: .5; }
  .hero__clouds .c2 { width: 50vw; height: 34vw; right: -14vw; top: -4vw; opacity: .5; }
  .hero__clouds .c3 { width: 60vw; height: 48vw; left: -18vw; top: 108vw; opacity: .16; }
  .hero__clouds .c4 { width: 62vw; height: 50vw; right: -20vw; top: 124vw; opacity: .16; }
  .hero__clouds .c5 { display: block; width: 46vw; height: 38vw; right: -14vw; top: 82vw; opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { .hero__clouds img { animation: none; } }
@media (max-width: 560px) and (max-height: 700px) {
  .hero__clouds .c1 { top: 50vw; }
  .hero__clouds .c5 { top: 92vw; }
}
.rz-static .hero__clouds img { animation: none; }
/* スマホ・タブレットでは雲の写真も揺らさない（動作を軽く） */
@media (pointer: coarse), (max-width: 760px) { .hero__clouds img { animation: none; } }
/* トップの講師欄（スマホ）：写真のすぐ下の見出しの英字が写真にかからないよう間をあける */
@media (max-width: 860px) { .teacher__photo + .stack-s { padding-top: 24px; } }
/* トップの先生の写真・バッジは講師紹介へのリンク */
a.hero__photo { display: block; }
a.hero__badge { text-decoration: none; }
a.hero__photo, a.hero__badge { transition: transform .3s ease, box-shadow .3s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { a.hero__photo:hover { transform: translateY(-3px); } }
a.hero__photo:focus-visible, a.hero__badge:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }
/* セクションの「ふわっ」：画面に入ったら下から浮かび上がる（動きを減らす設定では動かさない） */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(40px) scale(.985); transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.16, .8, .24, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  /* 並んだカードは少しずつ時間差で */
  .js .reveal.is-in:nth-child(2) { transition-delay: .12s; }
  .js .reveal.is-in:nth-child(3) { transition-delay: .24s; }
  .js .reveal.is-in:nth-child(4) { transition-delay: .36s; }
}
/* トップの見出し(h1)に地名の行を含める（見た目は小さな案内行のまま。検索では「府中市四谷のピアノ教室」が見出しとして伝わる） */
.hero__title .hero__place {
  font-family: var(--f-body); font-weight: 400; font-size: 14px; line-height: 1.6; letter-spacing: .14em;
  color: var(--dusty-deep); margin-bottom: clamp(14px, 2vw, 22px);
}
.hero__title .hero__catch { display: block; }

/* トップ：一番最初の写真は発表会（10/14）。先生の写真は スマホ＝下に透かし／PC＝左上に小さなアーチ */
.hero__stage { position: relative; z-index: 1; display: block; width: 100%; text-decoration: none; }
.hero__stage-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--dusty-deep) 55%, transparent); border: 1px solid var(--glass-edge); }
.hero__stage-poster { position: absolute; right: -3%; top: -9%; width: 21%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px;
  transform: rotate(5deg); box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--dusty-deep) 60%, transparent); border: 4px solid var(--surface); }
@media (min-width: 861px) { .hero__inner { grid-template-columns: 1fr 1fr; } .hero__visual { width: calc(100% + 72px); max-width: none; margin-right: -72px; justify-self: start; } .hero__title { font-size: clamp(34px, 3.2vw, 44px); } }
@media (max-width: 860px) { .hero { --pw: min(84vw, 420px); } .hero__ghost { display: none; } .hero__stage-poster { right: -2%; top: -8%; width: 20%; } }
.hero__badge-dot { font-size: 18px; color: var(--surface); }
.hero__visual { isolation: isolate; }
.hero__stage { z-index: 2; }
/* 先生の写真は、発表会の写真の後ろに大きく透かして置く（顔は写真にかからない位置） */
.hero__teacher { position: absolute; z-index: 1; left: -38%; top: -20%; width: 44%; display: block; opacity: .4; pointer-events: auto; }
.hero__teacher img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%;
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 48%, #000 62%, transparent 100%); }
.hero__badge { z-index: 3; }
@media (max-width: 860px) { .hero__teacher { left: auto; right: -10%; top: 92%; width: 46%; opacity: .32; } .hero__visual { margin-bottom: 16vw; } }
/* PC：発表会の写真はそのまま。先生の写真は小さなアーチ型で、写真の左上の角に重ねる（ポスターと対になる位置） */
@media (min-width: 861px) {
  .hero__teacher { left: -7%; top: -10%; width: 22%; opacity: 1; z-index: 3;
    border-radius: 999px 999px 14px 14px; overflow: hidden; border: 4px solid var(--surface);
    box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--dusty-deep) 60%, transparent); transform: rotate(-4deg); }
  .hero__teacher img { -webkit-mask-image: none; mask-image: none; object-position: 50% 8%; }
}

/* トップの集合写真：上が丸いアーチ＋外側に細い線（10/14 A案）。スマホは線を細く・淡く */
.hero__stage-photo { border-radius: 46% 46% 22px 22px / 34% 34% 22px 22px; border: 0; }
.hero__stage::before { content: ""; position: absolute; inset: -10px; z-index: -1; pointer-events: none; border: 1px solid color-mix(in srgb, var(--dusty) 55%, transparent); border-radius: 48% 48% 28px 28px / 36% 36% 28px 28px; }
@media (max-width: 860px) { .hero__stage::before { inset: -8px; border-width: .5px; border-color: color-mix(in srgb, var(--dusty) 40%, transparent); } }

/* レッスン・月謝の最初の見出し（Course）は上の余白が狭いので、PCでは透かし文字の分だけ下で止める */
@media (min-width: 761px) { #course { scroll-margin-top: calc(var(--header-h) + 44px); } }

/* ---------- 文字を大きくしたスマホ（拡大125〜200%で画面の幅が300px未満）向け（10/26 点検） ----------
   ふだんの大きさ（幅320px以上）の見た目は変えない。狭いときだけ、横にはみ出さず・変な所で割れない並びにする */
.gnav__list .gnav__ig a { white-space: nowrap; }
.req, .opt { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 299px) {
  /* ヘッダー：ロゴとメニューだけにする（お問い合わせは下の申込ボタンとメニューにある）。ホームは家の形だけ */
  .header-cta, .menu-open .header-home { display: none !important; }
  .site-header__inner { gap: 4px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand__ja { font-size: 13px; letter-spacing: 0; }
  .menu-toggle { flex-shrink: 0; margin-left: auto; }
  /* 下に浮く申込ボタン */
  .float-cta { left: 8px; right: 8px; }
  .float-cta .btn { padding: 11px 14px; letter-spacing: .04em; gap: 6px; }
  /* ボタン全般は余白と字間を詰めて、1〜2行に収める */
  .btn { padding: 12px 18px; letter-spacing: .04em; gap: 6px; max-width: 100%; }
  .gnav__list a { padding: 10px 8px; }
  .gnav__list .gnav__ig a, .gnav__list .gnav__cta a { font-size: 14px; letter-spacing: .02em; padding: 0 8px; gap: 6px; }
  /* 見出し：字間を詰めて、句読点だけが次の行に落ちないように */
  h1, h2, .h2 { letter-spacing: .04em; }
  .h2 { font-size: 22px; }
  /* 見出しの上の小さいラベル（Concept No.01 など）：単語の途中で割らない */
  .eyebrow { flex-wrap: wrap; white-space: nowrap; row-gap: 2px; gap: 8px; font-size: 17px; letter-spacing: .03em; }
  .eyebrow::before { width: 16px; }
  .section-head--center .eyebrow::after { width: 16px; }
  /* ホームの基本情報：1列に */
  .facts__list { grid-template-columns: 1fr; }
  .facts__item, .facts__item:nth-child(3) { border-left: 0; }
  .facts__item:nth-child(n+2) { border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
  /* ホームの循環図：丸を横に並べ、真ん中の説明は下に（重なり防止） */
  .cycle { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
  .cycle svg { display: none; }
  .cycle__node { position: static; transform: none; width: auto; min-width: 46%; aspect-ratio: auto; border-radius: 999px; padding: 10px 14px; white-space: normal; font-size: 15px; }
  .cycle__center { position: static; transform: none; width: 100%; order: 9; font-size: 13px; letter-spacing: .04em; }
  /* コースの札：カードの上に浮かせず、文の上に置く */
  .course__tag { position: static; display: inline-block; width: auto; max-width: 100%; white-space: normal; justify-self: start; margin-bottom: 4px; }
  /* その他の費用：名前と金額を上下に */
  .fee { grid-template-columns: 1fr; }
  .fee__price { text-align: left; }
  /* お問い合わせ：項目名と「必須」が割れないよう、札は次の行へ */
  .field__label { flex-wrap: wrap; row-gap: 4px; }
  .input, .select { padding-inline: 12px; }
  .choice span { padding: 8px 14px; font-size: 14px; }
  /* お知らせのページ送り：はみ出すなら2段に */
  .pager { flex-wrap: wrap; }
  .pager button { min-width: 32px; padding-inline: 6px; }
  /* 体験レッスンの料金：「体験レッスン」を割らずに、金額は下へ */
  .trial-fee__body { grid-template-columns: 1fr; }
  /* パンくず：1行にして、長い最後の項目は「…」で切る */
  .crumbs { flex-wrap: nowrap; }
  .crumbs li { flex-shrink: 0; }
  .crumbs li:last-child { flex: 1 1 auto; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 空き枠：曜日を縦に並べる */
  .slots__grid { grid-template-columns: 1fr; }
  /* フッター：1列に、リンクは折り返してよい */
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer a { white-space: normal; }
  /* 改行位置のまとまり（.nw）は、狭いときは解いて自然に折り返す */
  .nw { display: inline; }
}
@media (max-width: 249px) {
  /* メニュー：さらに狭いときは1列に */
  .gnav__list { grid-template-columns: 1fr; }
  .gnav__list li:nth-child(8) { grid-column: auto; }
}
@media (max-width: 209px) {
  /* 200%拡大：ロゴの絵を外して教室名を残す */
  .brand__mark { display: none; }
}

/* 体験レッスンの案内（cta）：波紋が中心のボタンへ、ゆっくり引き込まれていく（10/27）
   輪はどれも半径260→40へ同じ速さで縮む。開始をずらして、いつも等間隔に並ぶようにする */
.cta .ripple circle {
  transform-box: view-box; transform-origin: 200px 200px;
  animation: cta-pull 14s linear infinite;
}
.cta .ripple circle:nth-child(1) { --s0: 3.714; --s1: 0.571; animation-delay: 0.00s; }
.cta .ripple circle:nth-child(2) { --s0: 2.826; --s1: 0.435; animation-delay: -1.56s; }
.cta .ripple circle:nth-child(3) { --s0: 2.281; --s1: 0.351; animation-delay: -3.11s; }
.cta .ripple circle:nth-child(4) { --s0: 1.912; --s1: 0.294; animation-delay: -4.67s; }
.cta .ripple circle:nth-child(5) { --s0: 1.646; --s1: 0.253; animation-delay: -6.22s; }
.cta .ripple circle:nth-child(6) { --s0: 1.444; --s1: 0.222; animation-delay: -7.78s; }
.cta .ripple circle:nth-child(7) { --s0: 1.287; --s1: 0.198; animation-delay: -9.33s; }
.cta .ripple circle:nth-child(8) { --s0: 1.161; --s1: 0.179; animation-delay: -10.89s; }
.cta .ripple circle:nth-child(9) { --s0: 1.057; --s1: 0.163; animation-delay: -12.44s; }
@keyframes cta-pull {
  0% { transform: scale(var(--s0)); stroke-opacity: 0; }
  15% { stroke-opacity: 1; }
  75% { stroke-opacity: 1; }
  100% { transform: scale(var(--s1)); stroke-opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cta .ripple circle { animation: none; } }
.rz-static .cta .ripple circle { animation: none; }

/* 小さなカードの項目名：ホームの特長カードと同じ、丸いアイコンを添える（10/27） */
.box__title { display: flex; align-items: center; gap: 12px; }
.box__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--dusty-deep); }
.box:nth-child(2n) .box__icon { background: var(--accent-soft); color: var(--accent-deep); }
.box__icon svg { width: 21px; height: 21px; }

/* 師事：「ピアノ：」の後ろの名前が2行目に続くとき、名前の頭にそろえる（10/27） */
.career--pairs li { display: flex; }
.career__k { flex: none; }

/* タイトル帯（PC）：右下の大きな英字の下が空きすぎていたので詰める（10/27）
   すぐ下の段にも大きな英字があるページ（英字どうしが近づく）は、元の余白のまま */
@media (min-width: 561px) {
  .page-hero:has(+ .section:not(:has(.ghost))) { padding-bottom: clamp(12px, 1.6vw, 24px); }
  .page-hero + .section:not(:has(.ghost)) { padding-top: clamp(36px, 4.2vw, 60px); }
}

/* 10/28 スマホはヘッダーの「お問い合わせ」を出さない（メニューの中と下の固定ボタンで足りる） */
@media (max-width: 760px) {
  .header-cta { display: none !important; }
  .menu-toggle { margin-left: auto; }
  .menu-open .menu-toggle { margin-left: 10px; }
}
/* 10/28 PCは、スクロール中に画面の右下の端へ縦書きの「体験レッスン申し込み」タブを出す（本文にかぶらない） */
@media (min-width: 761px) {
  .float-cta {
    display: flex; position: fixed; right: 0; bottom: calc(clamp(20px, 3vw, 40px) + env(safe-area-inset-bottom, 0px)); z-index: 40;
    opacity: 0; transform: translateX(100%); pointer-events: none; transition: opacity .3s ease, transform .35s ease;
  }
  .float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .float-cta .btn {
    writing-mode: vertical-rl; border-radius: 14px 0 0 14px; padding: 22px 12px 18px; gap: 10px;
    font-size: 14px; letter-spacing: .2em; box-shadow: var(--shadow);
  }
  .float-cta .btn:hover { padding-right: 16px; }
  .float-cta .btn br { display: none; }
  .float-cta .btn svg { transform: rotate(90deg); }
  .float-cta .btn:hover .btn__arrow { transform: rotate(90deg) translateX(3px); }
  .float-cta .fc-one { display: none; }
}
/* 画面の端に余白が少ない幅では、フッター最下段の「ページの先頭へ」がタブに隠れないように */
@media (min-width: 761px) and (max-width: 1180px) { .site-footer__bottom { padding-right: 52px; } }

/* 固定ボタンの文言：スマホは1行、PCは「体験レッスン／申し込み」の2行 */
.float-cta .fc-two { display: none; }
@media (min-width: 761px) { .float-cta .fc-two { display: block; } }

/* 10/28 スマホの下ボタン：隠れている時に、iPhoneの下の余白（ホームバー）分だけ画面の下からはみ出して見えていた。
   隠す時は余白ぶん余計に下げ、さらに visibility でも消す */
@media (max-width: 760px) {
  .float-cta { transform: translateY(calc(100% + 40px + env(safe-area-inset-bottom, 0px))); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
  .float-cta.is-visible { transform: none; visibility: visible; transition: transform .35s ease, visibility 0s; }
}

/* 11/3 アクセス：駅と教室の位置関係の図（OpenStreetMap の川・線路・道をもとにした地図風のイメージ） */
.station-map { margin: 0 auto; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(8px, 2vw, 18px); }
.station-map svg { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 14px; }
.station-map__land { fill: color-mix(in srgb, var(--mist) 70%, var(--surface)); }
.station-map__river { fill: none; stroke: color-mix(in srgb, #8DB4D6 60%, var(--surface)); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.station-map__bg-roads { fill: none; stroke: var(--surface); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.station-map__roads { fill: none; stroke: var(--surface); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.station-map__mw { fill: none; stroke: #C9A97A; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.station-map__labels text.mw { fill: #8A6838; font-weight: 700; }
.station-map__ic rect { fill: #A9824C; stroke: var(--surface); stroke-width: 2; }
.station-map__ic text { font-size: 10px; font-weight: 700; fill: #8A6838; paint-order: stroke; stroke: color-mix(in srgb, var(--mist) 70%, var(--surface)); stroke-width: 3; stroke-linejoin: round; }
.station-map__rail path { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linejoin: round; }
.station-map__bridge circle { fill: var(--surface); stroke: #5E86AA; stroke-width: 2; }
.station-map__bridge text, .station-map__labels text { font-size: 10px; fill: var(--muted); paint-order: stroke; stroke: color-mix(in srgb, var(--mist) 70%, var(--surface)); stroke-width: 3; stroke-linejoin: round; }
.station-map__bridge text { fill: #4C7396; font-weight: 700; }
.station-map__labels .river { fill: #4C7396; font-size: 12px; letter-spacing: .3em; }
.station-map__st circle { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.station-map__st text, .station-map__home text { font-size: 14px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: color-mix(in srgb, var(--mist) 70%, var(--surface)); stroke-width: 4; stroke-linejoin: round; }
.station-map__st .t { font-size: 11px; fill: var(--accent-deep); }
.station-map__home .halo { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.station-map__home circle:not(.halo) { fill: var(--accent); stroke: var(--surface); stroke-width: 4; }
.station-map__home text.sub { font-size: 11px; font-weight: 400; fill: var(--muted); }
.station-map figcaption { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .station-map { padding: 6px; }
  .station-map__st text, .station-map__home text { font-size: 17px; }
  .station-map__st .t { font-size: 13px; }
  .station-map__bridge text, .station-map__labels text, .station-map__ic text { font-size: 12px; }
}

/* 11/3 リトミックのページ：教室日記へのリンク一覧 */
.link-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: grid; gap: 10px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; }
.link-list a::after { content: "›"; color: var(--dusty-deep); font-size: 20px; line-height: 1; }
.link-list a:hover { border-color: var(--dusty-deep); }
.box__sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.feature__more { margin-top: 2px; }
.feature__more a, .lead-link a { font-weight: 700; color: var(--dusty-deep); }
.lead-link { margin-top: 10px; font-size: 14px; color: var(--muted); }
