/* =========================================================
   りょうこピアノ教室｜見た目のファイル
   色は3色だけ：墨黒 #1C1C1E ／ 温かい白 #FAFAF7 ／ ボルドー #8C1C2B
   ========================================================= */
:root {
  --ink: #1C1C1E;
  --paper: #FAFAF7;
  --accent: #8C1C2B;
  --ink-soft: rgba(28, 28, 30, .72);
  --line: rgba(28, 28, 30, .16);
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --num: "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* 五線譜の位置と太さ */
  --staff-x: clamp(16px, 4.4vw, 72px);
  --staff-w: 40px;
  --gap: clamp(24px, 6.6vw, 96px);
  --content-x: calc(var(--staff-x) + var(--staff-w) + var(--gap));
  --side: clamp(20px, 5vw, 80px);
  --maxw: 1200px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.num { font-feature-settings: "tnum"; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { display: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 空き状況の切り替え（html の data-status で表示を変える） */
[data-status="open"] .if-full { display: none !important; }
[data-status="full"] .if-open { display: none !important; }

/* ---------- ボタンとリンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 40px;
  border-radius: 999px; border: 0;
  background: var(--accent); color: var(--paper);
  font: 500 1rem/1 var(--sans); letter-spacing: .06em;
  text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--accent); }
.text-link {
  display: inline-block; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  padding: 10px 0 12px; transition: background-size .5s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--side);
}
.brand { display: flex; align-items: center; min-height: 44px; gap: 12px; text-decoration: none; font-family: var(--mincho); font-size: 1.0625rem; letter-spacing: .08em; }
.brand img { width: 40px; height: auto; }
.header-link { font-size: .9375rem; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* =========================================================
   五線譜（ページの上から 05 発表会までつながる線）
   ========================================================= */
.score { position: relative; }
.staff {
  position: absolute; left: var(--staff-x); width: var(--staff-w);
  top: var(--staff-top, 160px); bottom: var(--staff-bottom, 0);
  pointer-events: none;
}
.staff-ink {
  position: relative; width: 100%;
  height: calc(var(--p, 1) * 100%);
  /* 1px の線を 6px おきに5本 */
  --l: linear-gradient(var(--ink), var(--ink));
  background: var(--l) 0 0 / 1px 100% no-repeat, var(--l) 25% 0 / 1px 100% no-repeat,
              var(--l) 50% 0 / 1px 100% no-repeat, var(--l) 75% 0 / 1px 100% no-repeat,
              var(--l) 100% 0 / 1px 100% no-repeat;
  opacity: .78;
}
/* 05 の終わりの終止線（細い線と太い線） */
.final-bar {
  position: absolute; left: var(--staff-x); bottom: 0;
  width: var(--staff-w); height: 9px;
  border-top: 1px solid var(--ink); border-bottom: 4px solid var(--ink);
  opacity: 0; transition: opacity .8s var(--ease);
}
.score.is-done .final-bar { opacity: .78; }

/* 各章の始まりに、五線譜の上に置く音符の玉 */
.note-head {
  position: absolute; left: calc(var(--staff-x) + var(--staff-w) / 2 - 8px); top: calc(var(--ch-pad) + 21px);
  width: 16px; height: 11px; border-radius: 50%;
  background: var(--ink); transform: rotate(-24deg) scale(.4);
  opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.chapter.is-in .note-head { opacity: 1; transform: rotate(-24deg); }
/* 五線譜から章番号へ渡す細い線（線が章に「着いた」ことを見せる） */
.chapter::before {
  content: ""; position: absolute;
  left: calc(var(--staff-x) + var(--staff-w) + 10px); top: calc(var(--ch-pad) + 26px);
  width: calc(var(--gap) - 26px); height: 1px; background: var(--ink); opacity: .78;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .15s;
}
.chapter.is-in::before { transform: none; }
.chapter::before { display: none; }

/* ---------- 最初の画面 ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px);
  align-items: end;
  max-width: calc(var(--maxw) + 200px);
  padding: 160px var(--side) 120px var(--content-x);
  min-height: min(100svh, 920px);
}
.hero-kicker { font-size: .9375rem; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 32px; }
.hero-kicker .sep { margin: 0 .4em; }
.hero-title {
  font-family: var(--mincho); font-weight: 400;
  font-size: clamp(2.6rem, 4.4vw, 4.75rem);
  line-height: 1.32; letter-spacing: .04em;
  font-feature-settings: "palt";
  white-space: nowrap;
}
.hero-lead { margin-top: 32px; max-width: 28em; }
.status-tag {
  display: inline-block;
  margin-top: 40px; padding: 10px 20px;
  background: var(--accent); color: var(--paper);
  font-size: .9375rem; letter-spacing: .06em; line-height: 1.5;
}
.status-tag.is-quiet { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin-top: 32px; }
.hero-photo { margin-right: calc(-1 * var(--side)); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }

/* ---------- 章（01〜05） ---------- */
.chapter {
  --ch-pad: clamp(96px, 11vw, 160px);
  position: relative;
  padding: var(--ch-pad) var(--side) 0 var(--content-x);
  max-width: calc(var(--maxw) + 200px);
}
.chapter.is-last { padding-bottom: clamp(96px, 10vw, 144px); }
.ch-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 32px clamp(32px, 5vw, 80px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.ch-label { display: flex; align-items: baseline; gap: 16px; font-size: .9375rem; letter-spacing: .1em; margin-bottom: 20px; }
.ch-num { font-family: var(--num); font-style: italic; font-size: 3.25rem; line-height: 1; letter-spacing: 0; }
.age { font-size: .9375rem; }
.age .num { font-family: var(--num); font-style: italic; font-size: 2rem; line-height: 1; letter-spacing: 0; }
.chapter h2, .sec-title {
  font-family: var(--mincho); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.45; letter-spacing: .04em; font-feature-settings: "palt";
}
.ch-desc { color: var(--ink); max-width: 26em; padding-bottom: 8px; }

.photo { position: relative; overflow: hidden; background: rgba(28, 28, 30, .05); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.sub { font-size: .9375rem; letter-spacing: .1em; color: var(--ink-soft); }

/* 01 教室について */
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo img { aspect-ratio: 4 / 5; object-position: 40% 50%; }
.values .sub { margin-bottom: 16px; }
.values dl > div { padding: 24px 0; border-top: 1px solid var(--line); }
.values dl > div:last-child { border-bottom: 1px solid var(--line); }
.values dt { font-family: var(--mincho); font-size: 1.25rem; letter-spacing: .04em; margin-bottom: 8px; line-height: 1.5; }
.teacher {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(64px, 8vw, 112px);
}
.teacher .name { font-family: var(--mincho); font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: .1em; line-height: 1.3; margin-top: 8px; }
.teacher .name span { display: block; font-family: var(--sans); font-size: .9375rem; letter-spacing: .12em; color: var(--ink-soft); margin-top: 8px; }
.facts { margin-top: 24px; border-top: 1px solid var(--line); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* 02・03 コース */
.course { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.course.is-reverse { grid-template-columns: 5fr 6fr; }
.course-photo img { aspect-ratio: 1 / 1; }
.course-name { font-family: var(--mincho); font-weight: 400; font-size: 1.5rem; letter-spacing: .06em; margin-bottom: 16px; }
.spec > div { display: grid; grid-template-columns: 5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-soft); font-size: .9375rem; padding-top: 2px; }
.note { margin-top: 20px; font-size: 1rem; color: var(--ink-soft); }

/* 04 大人 */
.adult-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.adult-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 4vw, 56px); align-items: start; }
.adult-plans .course-apply { grid-column: 1 / -1; margin-top: 8px; }
.adult-photo { margin-top: 8px; }
.adult-photo img { aspect-ratio: 3 / 4; object-position: 45% 70%; }
.course-apply { margin-top: 24px; }

/* 05 発表会：写真に白い面を少し重ねる */
.stage { position: relative; }
.stage-photo { width: calc(100vw - var(--content-x)); }
.stage-photo img { aspect-ratio: 21 / 9; object-position: 50% 55%; filter: saturate(.6) brightness(1.05); }
.stage-note { margin-right: 0; }
.stage-note {
  position: relative; z-index: 1;
  width: min(30em, 86%); margin: -72px 0 0 auto;
  background: var(--paper); padding: 32px 40px 0;
  font-family: var(--mincho); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.8; letter-spacing: .04em;
}

/* ---------- 先生のことば（余白だけの場所） ---------- */
.quiet { padding: clamp(120px, 14vw, 200px) var(--side) 0; display: flex; justify-content: center; }
.quiet blockquote p { font-family: var(--mincho); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 2; letter-spacing: .06em; font-feature-settings: "palt"; }
.quiet cite { display: block; margin-top: 24px; font-style: normal; font-size: .9375rem; letter-spacing: .12em; color: var(--ink-soft); }

/* ---------- 下半分の共通 ---------- */
.insta, .price, .access, .faq { padding: clamp(96px, 10vw, 144px) var(--side) 0 var(--content-x); max-width: calc(var(--maxw) + 200px); }
.faq { padding-bottom: clamp(96px, 10vw, 144px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: 48px; }
.sec-head p { max-width: 26em; }

/* 教室の今（インスタ） */
.insta-grid { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.insta-grid img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: auto; }
.insta-grid a { display: block; overflow: hidden; }
.insta-grid a img { transition: transform .6s var(--ease); }
.insta-grid a:hover img { transform: scale(1.03); }
.kari {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  background: var(--ink); color: var(--paper);
  font-size: .8125rem; letter-spacing: .06em; padding: 4px 12px; line-height: 1.6;
}
.insta-link { margin-top: 24px; }

/* 料金と流れ */
.price { }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.price-table th, .price-table td { text-align: left; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.price-table thead th { font-size: .9375rem; color: var(--ink-soft); border-bottom-color: var(--ink); padding-top: 0; }
.price-table tbody th { font-family: var(--mincho); font-size: 1.125rem; letter-spacing: .04em; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--ink); }
.flow li { padding: 24px 24px 0 0; position: relative; }
.flow li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.step { font-family: var(--mincho); font-size: 2rem; line-height: 1; display: block; margin-bottom: 12px; }
.flow-title { font-family: var(--mincho); font-size: 1.25rem; letter-spacing: .04em; margin-bottom: 8px; }
.flow li p:last-child { font-size: 1rem; color: var(--ink-soft); }

/* 教室の場所 */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.room-photo img { aspect-ratio: 4 / 3; }
.room-name { font-family: var(--mincho); font-weight: 400; font-size: 1.75rem; letter-spacing: .08em; margin: 24px 0 16px; }
.map { margin-top: 24px; aspect-ratio: 4 / 3; background: rgba(28, 28, 30, .05); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.7) contrast(.95); }

/* よくある質問 */
.faq-list { border-top: 1px solid var(--ink); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 56px 24px 0; min-height: 44px;
  font-family: var(--mincho); font-size: 1.1875rem; letter-spacing: .04em; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: var(--ink);
  transition: transform .4s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 56px 28px 0; }

/* ---------- 最後の呼びかけ（ピアノの写真をうっすら敷いた帯） ----------
   写真：Unsplash（Derek Olson）。濃さは ::before の opacity で調整する */
.cta { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(96px, 11vw, 160px) var(--side) clamp(96px, 11vw, 160px) var(--content-x); }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(images/cta-piano.webp) center 60% / cover no-repeat;
  opacity: .42; filter: grayscale(.4) brightness(.9);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(28, 28, 30, .72) 0%, rgba(28, 28, 30, .35) 70%, rgba(28, 28, 30, .2) 100%);
}
.cta-inner { max-width: 960px; }
.cta-kicker { font-size: .9375rem; letter-spacing: .08em; padding-bottom: 12px; border-bottom: 1px solid rgba(250, 250, 247, .5); display: inline-block; }
.cta-title {
  font-family: var(--mincho); font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1.35; letter-spacing: .04em;
  font-feature-settings: "palt"; margin: 32px 0 56px;
}
.madlib { font-family: var(--mincho); font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 2.4; letter-spacing: .04em; }
.madlib label { display: inline-block; }
.nw, .madlib .nw { white-space: nowrap; }
.madlib input, .madlib select, .free textarea {
  font: inherit; color: var(--paper); background: transparent;
  border: 0; border-bottom: 1px solid var(--paper); border-radius: 0;
  padding: 2px 6px; margin: 0 6px; min-height: 44px; line-height: 1.4;
}
.madlib input { width: 8em; }
.madlib input[name="年齢"] { width: 7em; }
.madlib select[name="コース"] { width: 11.5em; }
.madlib input[type="email"] { width: 13em; }
.madlib select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background: linear-gradient(45deg, transparent 50%, var(--paper) 50%) right 10px center / 7px 7px no-repeat,
              linear-gradient(-45deg, transparent 50%, var(--paper) 50%) right 4px center / 7px 7px no-repeat; }
.madlib select option { color: var(--ink); background: var(--paper); }
.madlib ::placeholder, .free ::placeholder { color: rgba(250, 250, 247, .62); }
.free { display: block; margin-top: 40px; font-size: 1rem; }
.free span { display: block; margin-bottom: 8px; }
.free textarea { width: 100%; margin: 0; font-family: var(--sans); font-size: 1rem; border: 1px solid rgba(250, 250, 247, .6); padding: 12px 16px; resize: vertical; }
.madlib input:focus, .madlib select:focus, .free textarea:focus { outline: 2px solid var(--paper); outline-offset: 2px; }
.form-privacy { margin: 24px 0 32px; font-size: .9375rem; }
.form-status { margin-top: 16px; font-size: 1rem; min-height: 1.5em; }
.form-privacy a, .mail-note a { display: inline-block; padding: 11px 0; margin: -11px 0; }
.mail-note { margin-top: 48px; font-size: .9375rem; line-height: 1.9; opacity: .92; }
.cta .if-full .btn { margin-top: 8px; }
.hp { display: none; }

/* ---------- フッター ---------- */
.site-footer { padding: clamp(80px, 9vw, 128px) var(--side) 48px var(--content-x); max-width: calc(var(--maxw) + 200px); }
.footer-name { font-family: var(--mincho); font-size: clamp(2.4rem, 7vw, 6rem); letter-spacing: .08em; line-height: 1.2; font-feature-settings: "palt"; }
.footer-row { display: flex; align-items: center; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ink); }
.footer-logo { width: 72px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: .9375rem; }
.footer-links a { display: inline-block; padding: 11px 0; text-decoration: none; background: linear-gradient(var(--line), var(--line)) 0 calc(100% - 9px) / 100% 1px no-repeat; }
.copy { margin-top: 40px; font-size: .8125rem; color: var(--ink-soft); letter-spacing: .06em; }

/* スマホの固定ボタン（PCでは出さない） */
.sticky-cta { display: none; }

/* ---------- ふわっと出る動き ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.ch-head .reveal + .reveal { transition-delay: .12s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .note-head, .final-bar { opacity: 1 !important; transform: none !important; transition: none !important; }
  .staff-ink { height: 100% !important; }
  .btn:hover { transform: none; }
}

/* =========================================================
   タブレット・スマホ
   ========================================================= */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
  .ch-head, .sec-head { grid-template-columns: 1fr; align-items: start; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { border-left: 0; padding-left: 0; }
  .flow li:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--line); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  :root { --staff-x: 12px; --staff-w: 24px; --gap: 18px; --side: 20px; }
  body { font-size: 1rem; line-height: 1.85; }
  .sp { display: inline; }
  .pc { display: none; }
  .hero-kicker .sep { display: none; }
  .site-header { padding: 16px var(--side); }
  .brand img { width: 32px; }
  .header-link { display: none; }
  /* 最初の画面：文字は全幅、五線譜は写真から始まる */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 72px var(--side) 0; }
  .hero-kicker { font-size: .875rem; margin-bottom: 20px; }
  .hero-title { font-size: clamp(1.75rem, 8.4vw, 2.4rem); line-height: 1.4; letter-spacing: .02em; }
  .hero-lead { margin-top: 20px; }
  .status-tag { margin-top: 24px; font-size: .875rem; padding: 8px 14px; }
  .hero-actions { margin-top: 24px; gap: 20px; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { order: -1; margin: 0 calc(-1 * var(--side)) 32px; }
  .hero-photo img { aspect-ratio: 16 / 10; object-position: 50% 32%; }

  .chapter { --ch-pad: 88px; padding-right: var(--side); }
  .note-head { left: calc(var(--staff-x) + var(--staff-w) / 2 - 6px); width: 12px; height: 8px; top: calc(var(--ch-pad) + 16px); }
  .chapter::before { display: none; }
  .ch-num { font-size: 2.5rem; }
  .ch-head { margin-bottom: 40px; gap: 20px; }
  .chapter h2, .sec-title { font-size: 1.6rem; line-height: 1.5; }
  .about-grid, .teacher, .course, .course.is-reverse, .adult-plans, .rooms { grid-template-columns: 1fr; gap: 32px; }
  .course.is-reverse .course-photo { order: 0; }
  .course-photo img { aspect-ratio: 4 / 3; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .adult-row, .adult-plans { grid-template-columns: 1fr; }
  .adult-photo { order: -1; }
  .adult-photo img { aspect-ratio: 4 / 3; }
  .stage-photo { width: calc(100% + var(--side)); }
  .stage-photo img { aspect-ratio: 4 / 3; }
  .nw-mail { display: flex; align-items: center; width: 100%; }
  .nw-mail label { flex: 1; }
  .madlib .nw-mail input[type="email"] { width: 100%; }
  .values dt { font-size: 1.125rem; }
  .teacher { margin-top: 64px; gap: 8px; }
  .teacher .name { font-size: 1.75rem; }
  .spec > div { grid-template-columns: 4em 1fr; gap: 12px; }
  .stage-note { width: auto; margin: -40px 0 0 24px; padding: 24px 0 0 24px; font-size: 1.125rem; }

  .quiet { padding: 120px var(--side) 0; }
  .quiet blockquote p { font-size: 1.25rem; line-height: 2; }
  .insta, .price, .access, .faq { padding-top: 96px; }
  .faq { padding-bottom: 96px; }
  .sec-head { margin-bottom: 32px; }
  .insta-grid { gap: 4px; }
  .kari { top: 8px; left: 8px; font-size: .75rem; padding: 2px 8px; }
  .price-table { min-width: 0; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tr { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .price-table tr:first-child { border-top: 1px solid var(--ink); }
  .price-table th, .price-table td { border: 0; padding: 2px 0; }
  .price-table tbody th { font-size: 1.1875rem; margin-bottom: 8px; }
  .price-table td { position: relative; padding-left: 4.5em; }
  .price-table td::before { content: attr(data-label); position: absolute; left: 0; top: 4px; color: var(--ink-soft); font-size: .9375rem; }
  .flow { grid-template-columns: 1fr; margin-top: 64px; }
  .flow li, .flow li + li { padding: 20px 0; border-left: 0; margin-top: 0; border-top: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 16px; }
  .flow li:nth-child(n+3) { margin-top: 0; border-top: 0; }
  .flow .step { grid-row: span 2; margin: 0; font-size: 1.75rem; }
  .flow-title { margin-bottom: 4px; }
  .room-name { font-size: 1.5rem; }
  .faq summary { font-size: 1.0625rem; padding-right: 40px; }
  .faq details p { padding-right: 0; }

  .cta { padding: 96px var(--side) 120px; }
  .cta::before {
    top: auto; height: 1000px; background-size: auto 100%; background-position: 22% center;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%);
    opacity: .5;
  }
  .insta, .price, .access, .faq, .site-footer { padding-left: var(--side); }
  .cta-kicker { font-size: .875rem; }
  .cta-title { font-size: 2rem; margin: 24px 0 40px; }
  .madlib { font-size: 1.125rem; line-height: 2.3; }
  .madlib input, .madlib select { margin: 4px 4px 4px 0; }
  .madlib input[name="お名前"] { width: 10em; }
  .madlib input[name="年齢"] { width: 8em; }
  .madlib select[name="希望の教室"] { width: 8em; }
  .madlib select[name="コース"], .madlib input[type="email"] { width: 100%; }
  .footer-name { font-size: 2rem; }
  .btn-light { width: 100%; }

  .footer-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .site-footer { padding-bottom: 112px; }

  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px;
    min-height: 52px; border-radius: 999px;
    background: var(--accent); color: var(--paper);
    font-size: 1rem; letter-spacing: .06em; text-decoration: none;
    box-shadow: 0 0 0 1px rgba(250, 250, 247, .4);
    transform: translateY(160%); transition: transform .5s var(--ease);
  }
  .sticky-cta.is-shown { transform: none; }
}

/* ---------- 送信完了・プライバシーポリシー・404 ---------- */
.sub-main { max-width: 760px; margin: 0 auto; padding: 160px var(--side) 96px; }
.sub-title { font-family: var(--mincho); font-weight: 400; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.4; letter-spacing: .04em; margin-bottom: 40px; font-feature-settings: "palt"; }
.sub-main h2 { font-family: var(--mincho); font-weight: 400; font-size: 1.25rem; margin: 48px 0 12px; letter-spacing: .04em; }
.sub-main p + p { margin-top: 16px; }
.sub-main ul { list-style: disc; padding-left: 1.4em; margin-top: 8px; }
.sub-back { margin-top: 48px !important; }
.sub-date { margin-top: 48px !important; color: var(--ink-soft); font-size: .9375rem; }
.subpage .site-footer { padding: 48px var(--side); border-top: 1px solid var(--line); max-width: 760px; margin: 0 auto; }
