/* ドレミの小窓ピアノ教室（デモ）全ページ共通
   地は白、文字は鍵盤の黒。若草は印と面だけ。ボタンは白い字が読める濃さの若草を使う */
:root {
  --ink: #1F1F1F;
  --ink-2: #4a4a48;
  --line: rgba(31, 31, 31, .25);
  --white: #fff;
  --leaf: #A3C585;
  --leaf-deep: #557D3E;
  --leaf-pale: #F2F7EC;
  --wood: #b98a5a;
  --mincho: "Kaisei Opti", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(.22, .7, .25, 1);
  --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--maru); font-weight: 400;
  font-size: clamp(15px, .9rem + .2vw, 17px); line-height: 1.95; letter-spacing: .02em;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; word-break: auto-phrase; text-wrap: pretty; }
h1, h2, h3, dt, th { word-break: auto-phrase; text-wrap: balance; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; line-height: 1.5; letter-spacing: .04em; margin: 0; font-feature-settings: "palt"; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--leaf-deep); outline-offset: 3px; border-radius: 4px; }
.nb { display: inline-block; }

/* ロゴ */
.logo .mk-glass { fill: var(--leaf-pale); }
.logo .mk-line { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.logo .mk-thin { stroke: var(--ink); stroke-width: .7; opacity: .55; }
.logo .mk-note { fill: var(--leaf-deep); }
.logo .mk-stem { stroke: var(--leaf-deep); stroke-width: 1.5; stroke-linecap: round; }
.logo__name { font-family: var(--mincho); font-weight: 700; font-size: 21px; fill: var(--ink); }
.logo__sub { font-family: var(--maru); font-weight: 500; font-size: 10.5px; fill: var(--ink-2); letter-spacing: .3em; }
.logo--head { width: 176px; height: auto; }
.logo--foot { width: 200px; height: auto; }

/* ヘッダー */
.head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(31, 31, 31, .08); }
.head__in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 14px; min-height: 72px; }
.brand { display: block; text-decoration: none; flex: none; }
.demo { font-size: 9px; letter-spacing: .14em; color: #8a8a86; border: 1px solid #cfcfca; border-radius: 3px; padding: 0 4px; line-height: 15px; align-self: center; margin-right: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gnav a { display: block; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; position: relative; }
.gnav a:hover { background: var(--leaf-pale); }
.gnav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 7px; height: 5px; margin-left: -3.5px; border-radius: 50%; background: var(--leaf-deep); transform: rotate(-22deg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 10px 26px; border-radius: 999px; font-weight: 500; text-decoration: none; letter-spacing: .06em; transition: transform .25s var(--ease), background-color .25s; }
.btn--leaf { background: var(--leaf-deep); color: #fff; }
.btn--leaf:hover { background: #48693a; transform: translateY(-1px); }
.btn--line { border: 1px solid var(--ink); background: #fff; }
.btn--line:hover { background: var(--leaf-pale); }
.head__btn { min-height: 42px; padding: 8px 20px; font-size: 14px; }
.menu { display: none; }

@media (max-width: 960px) {
  .head__in { min-height: 64px; gap: 10px; }
  .logo--head { width: 156px; }
  .head__btn { display: none; }
  .menu { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--ink); font: inherit; }
  .menu__bars { position: relative; width: 26px; height: 9px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transition: transform .3s var(--ease); }
  .menu__label { font-size: 9px; letter-spacing: .2em; line-height: 1; }
  .gnav { position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { font-size: 16px; padding: 14px 4px; border-radius: 0; border-bottom: 1px dashed rgba(31, 31, 31, .18); }
  .gnav a[aria-current="page"]::after { left: auto; right: 6px; top: 50%; margin: -2.5px 0 0; }
  .is-menu .gnav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .25s var(--ease); }
  .is-menu .menu__bars { transform: scaleX(.7); }
}

/* 区切り：白鍵と黒鍵の並びを線だけで描いた帯（高さ12px） */
.keys {
  height: 12px; border-top: .75px solid rgba(31, 31, 31, .45); border-bottom: .75px solid rgba(31, 31, 31, .45);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='12'%3E%3Cg fill='none' stroke='%231F1F1F' stroke-opacity='.45' stroke-width='.75'%3E%3Cpath d='M.4 0v12M10.4 0v12M20.4 0v12M30.4 0v12M40.4 0v12M50.4 0v12M60.4 0v12'/%3E%3Crect x='7' y='-1' width='6' height='8'/%3E%3Crect x='17' y='-1' width='6' height='8'/%3E%3Crect x='37' y='-1' width='6' height='8'/%3E%3Crect x='47' y='-1' width='6' height='8'/%3E%3Crect x='57' y='-1' width='6' height='8'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 70px 12px;
}

/* 区画の頭を流れる五線譜 */
.flow { display: block; width: 100%; height: 60px; color: var(--ink); opacity: .25; pointer-events: none; }
.flow use { stroke: currentColor; }
.sec { position: relative; padding: clamp(56px, 8vw, 112px) 0; }
.sec > .flow { position: absolute; left: 0; top: clamp(18px, 3vw, 36px); }
.sec--pale { background: var(--leaf-pale); }

/* 見出し：線に乗った四分音符 */
.h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 1.1rem + 1.2vw, 34px); margin-bottom: 28px; }
.h2__mark { flex: none; width: 40px; height: 30px; }
.h2__mark .hm-staff path { stroke: var(--ink); stroke-opacity: .3; stroke-width: .75; fill: none; }
.h2__mark .hm-note { fill: var(--leaf); }
.h2__mark .hm-stem { stroke: var(--leaf); stroke-width: 1.4; }
.h3 { font-size: clamp(19px, 1rem + .5vw, 23px); margin: 0 0 12px; }
.lead p + p { margin-top: .9em; }
.more { margin-top: 32px; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link:hover { color: var(--leaf-deep); border-color: var(--leaf-deep); }
.btn .arr, .link .arr { transition: transform .25s var(--ease); }
.btn:hover .arr, .link:hover .arr { transform: translateX(4px); }

/* 写真の縁 */
.ph { margin: 0; position: relative; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--frame { background: #fff; padding: 10px; border: 1px solid var(--ink); }
.ph--sill::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: -9px; height: 0; border-top: 1.5px solid var(--ink); }

/* ===== トップ：最初の画面 ===== */
.hero { position: relative; padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 72px); text-align: center; overflow: hidden; }
.hero__stage { position: relative; height: clamp(300px, 30vw, 430px); margin-bottom: clamp(26px, 3vw, 40px); }
.hero__band { position: absolute; left: 0; right: 0; top: 50%; height: 160px; margin-top: -80px; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 160px; color: var(--ink); opacity: .32; }
.hero__cover { display: none; }
.hnote { position: absolute; left: calc(var(--x) - 10px); top: var(--y); width: 24px; height: 60px; }
.hnote svg { width: 100%; height: 100%; }
.hnote--ink { color: var(--ink); fill: var(--ink); }
.hnote--leaf { color: var(--leaf-deep); fill: var(--leaf); }
.hnote--sp { display: none; }
.hero__win { position: relative; z-index: 2; height: 100%; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero__win img { aspect-ratio: 1 / 1; }
.hero__title { font-size: clamp(30px, 1.2rem + 2.4vw, 48px); letter-spacing: .08em; }
.hero__text { margin: 14px auto 0; max-width: 30em; }
.hero__cta { margin-top: 26px; }
.hero__cta .btn { min-width: 250px; min-height: 54px; font-size: 1.02em; }
.hero__note { margin-top: 10px; font-size: .86em; color: var(--ink-2); }
@media (max-width: 767px) {
  .hero__stage { height: auto; }
  .hero__win { width: 62vw; height: auto; }
  .hnote--pc { display: none; }
  .hnote--sp { display: block; }
  .hero__text { text-align: left; max-width: 22em; }
}

/* ===== トップ：各区画 ===== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.lesson__ph { aspect-ratio: 4 / 3.3; margin-right: calc((min(100vw, var(--wrap)) - 100vw) / 2 - 24px); }
.lesson__ph img { border-radius: 2px 0 0 2px; }
.lesson__dg { margin-top: clamp(40px, 5vw, 64px); }
.recital__ph { aspect-ratio: 16 / 10; margin-left: calc((min(100vw, var(--wrap)) - 100vw) / 2 - 24px); }
.recital__dg { margin-top: clamp(40px, 5vw, 64px); }
.rules { max-width: 760px; margin: 0 auto; }
.rules__text { font-size: 1.06em; }
.rules__text .em { font-family: var(--mincho); font-weight: 500; }
.teacher-msg { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.teacher-msg__words { font-family: var(--mincho); font-weight: 500; font-size: clamp(19px, 1rem + .7vw, 25px); line-height: 2.05; }
.teacher-msg__words p + p { margin-top: 1em; }
.teacher-msg__ph { aspect-ratio: 1 / 1.04; border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; overflow: hidden; }
.faq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; }
.faq .h2 { white-space: nowrap; align-self: start; font-size: clamp(24px, 1.1rem + 1vw, 30px); }
.qa { margin: 0; }
.qa__q { font-family: var(--mincho); font-weight: 700; font-size: 1.08em; position: relative; padding-left: 30px; }
.qa__q::before { content: ""; position: absolute; left: 2px; top: .62em; width: 13px; height: 9px; border-radius: 50%; background: var(--leaf); transform: rotate(-22deg); }
.qa__a { margin: 6px 0 0; padding: 0 0 22px 30px; border-bottom: 1px dashed rgba(31, 31, 31, .22); }
.qa__a + .qa__q { margin-top: 22px; }
.place { max-width: 820px; margin: 0 auto; }
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: .75px solid rgba(31, 31, 31, .3); }
.info th { width: 8.5em; font-family: var(--mincho); font-weight: 500; padding-right: 16px; white-space: nowrap; }
.info tr:first-child th, .info tr:first-child td { border-top: .75px solid rgba(31, 31, 31, .3); }
@media (max-width: 767px) {
  .split, .split--wide, .teacher-msg, .faq { grid-template-columns: minmax(0, 1fr); }
  .lesson__ph { margin: 0 -24px; order: -1; }
  .recital__ph { margin: 0 -24px; }
  .faq .h2 { white-space: normal; }
  .teacher-msg__ph { max-width: 300px; }
  .faq { gap: 8px; }
  .info th { width: 6em; white-space: normal; }
}

/* ===== 図解の共通 ===== */
.dg { margin: 0; }
.dg__cap { font-size: .84em; color: var(--ink-2); margin-bottom: 12px; }
.dg__foot { font-size: .84em; color: var(--ink-2); margin-top: 12px; }
.sheet { background: #fff; border: .75px solid rgba(31, 31, 31, .35); padding: clamp(18px, 3vw, 36px); position: relative; }
.sheet::before { content: ""; position: absolute; inset: 5px; border: .75px solid rgba(31, 31, 31, .14); pointer-events: none; }

/* P-1 1年の予定（12小節） */
.p1__score { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)) 64px; row-gap: 26px; }
.p1__m, .p1__end { display: flex; flex-direction: column; min-width: 0; }
.p1__name { font-family: var(--mincho); font-weight: 700; font-size: 15px; padding-left: 6px; line-height: 1.4; margin-bottom: 8px; }
.p1__staff { position: relative; height: 37px; display: flex; justify-content: space-around; align-items: flex-start; padding: 0 3px;
  background: repeating-linear-gradient(to bottom, rgba(31, 31, 31, .5) 0 .75px, transparent .75px 9px) 0 0 / 100% 37px no-repeat;
  border-right: 1px solid var(--ink); }
.p1__m:first-child .p1__staff { border-left: 1px solid var(--ink); }
.p1__note { width: 10px; height: 25px; margin-top: var(--t); color: var(--ink); fill: var(--ink); flex: none; }
.p1__rest { width: 11px; height: 8px; margin-top: 9px; flex: none; }
.p1__rest svg { width: 11px; height: 8px; fill: var(--ink); }
.p1__tag { align-self: flex-start; width: max-content; max-width: calc(200% - 8px); margin: 22px 4px 0 2px; font-size: 12px; line-height: 1.5; background: var(--leaf-pale); border-left: 3px solid var(--leaf); padding: 4px 6px 4px 7px; border-radius: 0 3px 3px 0; letter-spacing: .02em; }
.sec--pale .p1__tag, .sheet .p1__tag { background: #eaf2df; }
.p1__m:nth-child(12) .p1__tag { margin-top: 64px; max-width: calc(100% - 6px); }
.p1__staff--end { border-right: 0; background-size: 14px 37px; padding: 0; }
.p1__staff--end::after { content: ""; position: absolute; left: 10px; top: 0; height: 37px; width: 4px; background: var(--ink); }
.p1__staff--end::before { content: ""; position: absolute; left: 6px; top: 0; height: 37px; width: 1px; background: var(--ink); }
.p1__end { padding-top: 29px; }
.p1__tag--end { background: var(--leaf-deep) !important; color: #fff; border: 0; border-radius: 3px; white-space: nowrap; margin-left: -10px; font-weight: 500; }
.p1__legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .84em; color: var(--ink-2); }
.p1__legend span { display: inline-flex; align-items: center; gap: 6px; }
.p1__legend svg { width: 9px; height: 22px; fill: var(--ink); color: var(--ink); }
.p1__legend .lg-rest { width: 12px; height: 8px; }
@media (max-width: 1023px) {
  .p1__score { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .p1__m:nth-child(6n + 1) .p1__staff { border-left: 1px solid var(--ink); }
  .p1__end { grid-column: 5 / 7; flex-direction: row; align-items: center; padding-top: 0; gap: 14px; justify-self: end; }
  .p1__end .p1__staff--end { width: 16px; flex: none; }
  .p1__tag--end { margin: 0; }
}
@media (max-width: 599px) {
  .p1__score { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; }
  .p1__m:nth-child(6n + 1) .p1__staff { border-left: 0; }
  .p1__m:nth-child(4n + 1) .p1__staff { border-left: 1px solid var(--ink); }
  .p1__end { grid-column: 1 / -1; }
  .p1__name { font-size: 14px; }
  .p1__tag { font-size: 11.5px; margin-top: 18px; }
}

/* P-2 月謝と回数の表 */
.fee { width: 100%; border-collapse: collapse; font-size: .95em; }
.fee th, .fee td { border-bottom: .75px solid rgba(31, 31, 31, .4); padding: 14px 10px; text-align: center; }
.fee thead th { font-family: var(--mincho); font-weight: 700; border-bottom: 1.5px solid var(--ink); padding-top: 4px; }
.fee tbody th { text-align: left; font-weight: 500; padding-left: 0; line-height: 1.6; }
.fee td { font-family: var(--mincho); font-weight: 700; font-size: 1.12em; letter-spacing: .02em; white-space: nowrap; }
.fee td.none { background: repeating-linear-gradient(90deg, transparent 0 13px, rgba(31, 31, 31, .28) 13px 13.75px); border-left: .75px solid rgba(31, 31, 31, .2); border-right: .75px solid rgba(31, 31, 31, .2); }
.fee col.c-head { width: 36%; }
.fee__en { font-family: var(--mincho); }
.dg--mini .fee { font-size: .88em; }
.dg--mini .fee th, .dg--mini .fee td { padding: 10px 8px; }
@media (max-width: 599px) {
  .fee { font-size: .82em; }
  .fee th, .fee td { padding: 11px 4px; }
  .fee tbody th { padding-right: 6px; }
  .fee col.c-head { width: 41%; }
  .fee td { font-size: .98em; letter-spacing: 0; }
  .fee td.none { background-size: auto; }
}

/* P-3 体験レッスンの30分 */
.p3 { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.p3__clock { position: relative; }
.p3__clock svg { width: 100%; height: auto; overflow: visible; }
.p3__seg { stroke: var(--ink); stroke-width: .9; }
.p3__seg--a { fill: #fff; }
.p3__seg--b { fill: var(--leaf-pale); }
.p3__tick { stroke: var(--ink); stroke-width: 1.2; }
.p3__num { font-family: var(--mincho); font-weight: 700; font-size: 15px; fill: var(--ink); }
.p3__seglabel { font-family: var(--mincho); font-weight: 700; font-size: 14px; fill: var(--ink); }
.p3__hand { stroke: var(--leaf-deep); stroke-width: 2; stroke-linecap: round; }
.p3__hand-head { fill: var(--leaf-deep); }
.p3__center { fill: #fff; stroke: var(--ink); stroke-width: .9; }
.p3__price { font-family: var(--mincho); font-weight: 700; font-size: 16px; fill: var(--ink); }
.p3__list { list-style: none; margin: 0; padding: 0; }
.p3__list li { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: .75px solid rgba(31, 31, 31, .3); }
.p3__list li:first-child { border-top: .75px solid rgba(31, 31, 31, .3); }
.p3__t { font-family: var(--mincho); font-weight: 700; white-space: nowrap; display: flex; align-items: baseline; gap: 6px; }
.p3__t::before { content: ""; width: 10px; height: 10px; border: .9px solid var(--ink); border-radius: 50%; flex: none; transform: translateY(1px); }
.p3__list li:nth-child(even) .p3__t::before { background: var(--leaf); border-color: var(--leaf-deep); }
@media (max-width: 767px) {
  .p3 { grid-template-columns: minmax(0, 1fr); }
  .p3__clock { max-width: 300px; margin: 0 auto; }
}

/* P-4 振替の流れ */
.p4__cap { display: inline-block; font-size: .86em; font-weight: 500; border: 1px solid var(--ink); border-radius: 999px; padding: 2px 14px; margin-bottom: 22px; background: #fff; }
.p4__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; position: relative; }
.p4__steps::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 37px;
  background: repeating-linear-gradient(to bottom, rgba(31, 31, 31, .45) 0 .75px, transparent .75px 9px) 0 0 / 100% 37px no-repeat; }
.p4__step { position: relative; }
.p4__head { position: relative; height: 50px; display: flex; align-items: flex-start; }
.p4__note { width: 18px; height: 45px; margin-top: -11px; fill: var(--ink); color: var(--ink); background: transparent; }
.p4__step:nth-child(2) .p4__note { margin-top: -15px; }
.p4__step:nth-child(3) .p4__note { margin-top: -20px; }
.p4__step:nth-child(4) .p4__note { margin-top: -24px; fill: var(--leaf-deep); color: var(--leaf-deep); }
.p4__n { position: absolute; left: 30px; top: 50px; font-family: var(--mincho); font-weight: 700; font-size: 26px; line-height: 1; color: var(--leaf-deep); }
.p4__t { margin-top: 10px; padding-left: 0; padding-top: 34px; font-size: .95em; line-height: 1.8; min-height: 7.2em; }
.p4__branch { position: relative; margin-top: 20px; width: calc(200% + 26px); padding: 14px 16px 14px 56px; border: 1px dashed rgba(31, 31, 31, .55); border-radius: 4px; background: #fff; }
.p4__branch::before { content: ""; position: absolute; left: 22px; top: -21px; height: 21px; border-left: 1px solid var(--ink); }
.p4__no { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 500; }
.p4__restmark { position: absolute; left: 16px; top: 22px; width: 26px; height: 20px;
  background: linear-gradient(var(--ink), var(--ink)) 0 6px / 100% 1px no-repeat; }
.p4__restmark::after { content: ""; position: absolute; left: 6px; top: 7px; width: 14px; height: 6px; background: var(--ink); }
.p4__arrow { display: inline-block; width: 30px; height: 1px; background: var(--ink); position: relative; }
.p4__arrow::after { content: ""; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--ink); border-right: 0; }
.p4__sub { margin-top: 6px; font-size: .86em; color: var(--ink-2); }
.dg--mini .p4__t { min-height: 0; }
@media (max-width: 767px) {
  .p4__steps { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 58px; }
  .p4__steps::before { left: 6px; right: auto; top: 0; bottom: 0; width: 37px; height: auto;
    background: repeating-linear-gradient(to right, rgba(31, 31, 31, .45) 0 .75px, transparent .75px 9px) 0 0 / 37px 100% no-repeat; }
  .p4__step { padding: 4px 0 22px; }
  .p4__head { position: absolute; left: -58px; top: 0; width: 50px; height: 50px; justify-content: center; }
  .p4__note, .p4__step:nth-child(n) .p4__note { margin-top: -4px; width: 16px; height: 40px; }
  .p4__n { position: static; font-size: 22px; }
  .p4__t { padding-top: 0; margin-top: 4px; min-height: 0; }
  .p4__head { flex-direction: column; }
  .p4__head .p4__n { order: -1; display: none; }
  .p4__t::before { content: attr(data-n) "　"; font-family: var(--mincho); font-weight: 700; color: var(--leaf-deep); font-size: 1.2em; }
  .p4__branch { width: 100%; margin-top: 14px; }
  .p4__branch::before { display: none; }
}

/* ===== 下層ページの頭 ===== */
.phead { position: relative; padding: clamp(36px, 5vw, 64px) 0 0; }
.phead__title { display: flex; align-items: center; gap: 16px; font-size: clamp(28px, 1.2rem + 2vw, 44px); letter-spacing: .08em; }
.phead__title .h2__mark { width: 52px; height: 39px; }
.phead__lead { margin-top: 14px; }
.phead__img { margin: clamp(26px, 4vw, 44px) 0 0; height: clamp(220px, 34vw, 460px); position: relative; overflow: hidden; }
.phead__img img { width: 100%; height: 100%; object-fit: cover; }
.phead__img::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, .85); pointer-events: none; }
.phead > .flow { position: absolute; left: 0; top: 8px; }
.pnext { display: flex; gap: 14px 28px; flex-wrap: wrap; justify-content: center; padding: clamp(48px, 6vw, 80px) 24px; }

/* レッスンと月謝 */
.age { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.age__item { padding: 26px clamp(18px, 2.4vw, 32px) 30px; border-right: .75px solid rgba(31, 31, 31, .3); }
.age__item:first-child { padding-left: 0; }
.age__item:last-child { border-right: 0; padding-right: 0; }
.age__label { font-size: 12px; font-weight: 500; color: var(--leaf-deep); letter-spacing: .14em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.age__label svg { width: 9px; height: 22px; fill: var(--leaf); color: var(--leaf-deep); }
.cost { width: 100%; border-collapse: collapse; }
.cost th, .cost td { padding: 16px 0; border-bottom: .75px solid rgba(31, 31, 31, .3); text-align: left; vertical-align: top; }
.cost thead th { font-size: .84em; color: var(--ink-2); font-weight: 500; padding: 4px 0 8px; border-bottom: 1.5px solid var(--ink); }
.cost tbody th { width: 11em; font-family: var(--mincho); font-weight: 500; padding-right: 16px; }
.cost .amt { font-family: var(--mincho); font-weight: 700; }
.pay { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; border: .75px solid rgba(31, 31, 31, .35); padding: clamp(20px, 3vw, 36px); background: #fff; }
.envelope { width: 100%; max-width: 180px; }
@media (max-width: 767px) {
  .age { grid-template-columns: minmax(0, 1fr); }
  .age__item, .age__item:first-child, .age__item:last-child { padding: 22px 0; border-right: 0; border-bottom: .75px solid rgba(31, 31, 31, .3); }
  .cost tbody th { width: 7.5em; }
  .pay { grid-template-columns: minmax(0, 1fr); }
  .envelope { max-width: 130px; }
}

/* 教室の1年 */
.event { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.event--rev { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.event__ph { aspect-ratio: 3 / 4; }
.event--rev .event__ph { aspect-ratio: 4 / 3.1; }
.timeline { list-style: none; margin: 18px 0 20px; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.4em; top: 10px; bottom: 10px; border-left: .75px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 0; padding: 7px 0; position: relative; }
.timeline time { font-family: var(--mincho); font-weight: 700; padding-right: 14px; white-space: nowrap; font-size: .95em; }
.timeline span { padding-left: 22px; }
.timeline li::after { content: ""; position: absolute; left: calc(5.4em - 5px); top: 17px; width: 10px; height: 7px; border-radius: 50%; background: var(--leaf-deep); transform: rotate(-22deg); }
.offs { width: 100%; border-collapse: collapse; }
.offs th, .offs td { text-align: left; padding: 14px 0; border-bottom: .75px solid rgba(31, 31, 31, .3); vertical-align: top; }
.offs thead th { font-size: .84em; font-weight: 500; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); padding-top: 4px; }
.offs tbody th { width: 7em; font-family: var(--mincho); font-weight: 500; }
@media (max-width: 767px) {
  .event, .event--rev { grid-template-columns: minmax(0, 1fr); }
  .event__ph { max-width: 340px; }
  .event--rev .event__ph { order: -1; max-width: none; }
}

/* レッスンの決まり */
.notice { position: relative; background: #fff; border: .75px solid rgba(31, 31, 31, .4); padding: clamp(24px, 4vw, 44px); margin-top: clamp(28px, 4vw, 40px); }
.notice .flow { position: absolute; left: 0; top: 10px; height: 40px; opacity: .18; }
.notice p { position: relative; }
.line-note { margin-top: 28px; padding: 18px 22px; border-top: 1.5px solid var(--ink); border-bottom: .75px solid rgba(31, 31, 31, .3); }
.line-note__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.line-note small { display: block; margin-top: 6px; color: var(--ink-2); font-size: .86em; }
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.rule { padding: 26px 0; border-top: .75px solid rgba(31, 31, 31, .3); }
.rule p + p { margin-top: .7em; }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px dashed rgba(31, 31, 31, .22); }
.dots li::before { content: ""; position: absolute; left: 3px; top: 1.15em; width: 11px; height: 8px; border-radius: 50%; background: var(--leaf); transform: rotate(-22deg); }
@media (max-width: 767px) { .rule-list { grid-template-columns: minmax(0, 1fr); } }

/* 先生と教室 */
.hello { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hello__ph { aspect-ratio: 4 / 3; }
.name-story { max-width: 760px; margin: 0 auto; text-align: center; }
.name-story__win { width: 120px; margin: 0 auto 22px; }
.name-story p { text-align: left; }
.name-story p + p { margin-top: .9em; }
.room { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.room__ph { aspect-ratio: 4 / 3; }
.room__sub { width: 62%; margin: 26px 0 0 auto; aspect-ratio: 1 / 1; }
.career { max-width: 760px; }
@media (max-width: 767px) {
  .hello, .room { grid-template-columns: minmax(0, 1fr); }
  .room__sub { width: 70%; }
}

/* 体験レッスン */
.thead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 72px); align-items: end; }
.thead__ph { aspect-ratio: 3 / 4; }
.thead__price { font-family: var(--mincho); font-weight: 700; font-size: clamp(22px, 1rem + 1.2vw, 30px); margin-top: 18px; }
.form { display: grid; gap: 22px; max-width: 760px; }
.f-row label, .f-row .f-label { display: block; font-weight: 500; margin-bottom: 8px; }
.req { display: inline-block; font-size: 11px; font-weight: 500; color: #fff; background: var(--leaf-deep); border-radius: 3px; padding: 0 6px; margin-left: 8px; line-height: 19px; vertical-align: 2px; }
.f-row input[type="text"], .f-row input[type="tel"], .f-row input[type="email"], .f-row select, .f-row textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid rgba(31, 31, 31, .5); border-radius: 6px; background: #fff; color: var(--ink); }
.f-row textarea { min-height: 130px; resize: vertical; }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf-deep); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.choices label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(31, 31, 31, .35); border-radius: 999px; cursor: pointer; margin: 0; font-weight: 400; }
.choices input { accent-color: var(--leaf-deep); width: 18px; height: 18px; margin: 0; }
.agree label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.agree input { accent-color: var(--leaf-deep); width: 20px; height: 20px; margin: 4px 0 0; flex: none; }
.form .btn { justify-self: start; min-width: 260px; border: 0; font: inherit; font-weight: 500; cursor: pointer; }
.form.is-checked :invalid { border-color: #b4412e; }
.map { margin: 8px 0 0; }
.map svg { width: 100%; height: auto; }
.map .road { fill: none; stroke: var(--ink); stroke-width: 1; }
.map .road-thin { fill: none; stroke: var(--ink); stroke-width: .75; stroke-opacity: .45; }
.map .route { fill: none; stroke: var(--leaf-deep); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.map .lbl { font-family: var(--maru); font-weight: 500; font-size: 15px; fill: var(--ink); }
.map .lbl-b { font-family: var(--mincho); font-weight: 700; font-size: 17px; fill: var(--ink); }
.map .lbl-g { font-family: var(--mincho); font-weight: 700; font-size: 16px; fill: var(--leaf-deep); }
.map .bld { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.map .bld-pale { fill: var(--leaf-pale); stroke: var(--ink); stroke-width: 1; }
.map .ink { fill: var(--ink); }
.map .leaf { fill: var(--leaf-deep); }
@media (max-width: 767px) {
  .thead { grid-template-columns: minmax(0, 1fr); }
  .thead__ph { max-width: 300px; order: -1; }
  .form .btn { width: 100%; min-width: 0; }
  .map .lbl { font-size: 19px; } .map .lbl-b { font-size: 21px; } .map .lbl-g { font-size: 20px; }
}

/* ===== フッター ===== */
.foot { position: relative; padding: 64px 0 26px; background: var(--leaf-pale); }
.flow--foot { position: absolute; left: 0; top: 18px; height: 40px; opacity: .2; }
.foot__in { position: relative; display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.foot__logo { display: inline-block; text-decoration: none; }
.foot__logo { --mk-glass: #fff; }
.foot__addr { margin-top: 14px; font-size: .9em; line-height: 1.9; }
.foot__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; align-content: start; }
.foot__nav a { text-decoration: none; font-size: .92em; }
.foot__nav a:hover { text-decoration: underline; }
.foot__copy { text-align: center; margin-top: 44px; font-size: .8em; color: var(--ink-2); }

/* ===== 動き（JSが html に .js を付けたときだけ隠す） ===== */
@keyframes cover-out { from { transform: translateX(0); } to { transform: translateX(101%); } }
@keyframes note-land { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hand-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.js .hero__cover { display: block; position: absolute; inset: -2px 0; background: #fff; z-index: 1; animation: cover-out 1.9s var(--ease) .15s both; }
.hnote { z-index: 3; }
.js .hnote { opacity: 0; transform: translateY(-14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(1.2s + var(--d) * .22s); }
.js .hero.is-on .hnote { opacity: 1; transform: none; }
.js .hero__win { animation: rise .9s var(--ease) backwards; }
.js .hero__body > * { animation: rise .8s var(--ease) backwards; }
.js .hero__body > :nth-child(1) { animation-delay: .25s; }
.js .hero__body > :nth-child(2) { animation-delay: .4s; }
.js .hero__body > :nth-child(3) { animation-delay: .55s; }
.js .hero__body > :nth-child(4) { animation-delay: .6s; }
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .sec > .flow, .js .phead > .flow { opacity: 0; transform: translateX(-30px); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.js .sec.is-in > .flow, .js .phead.is-in > .flow { opacity: .25; transform: none; }
.js .p1 .p1__note, .js .p1 .p1__rest { opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); transition-delay: calc(var(--i) * .09s); }
.js .p1.is-in .p1__note, .js .p1.is-in .p1__rest { opacity: 1; transform: none; }
.p1__m { --i: 0; }
.js .p1 .p1__tag { opacity: 0; transition: opacity .5s; transition-delay: calc(var(--i) * .09s + .25s); }
.js .p1.is-in .p1__tag { opacity: 1; }
.js .p4 .p4__step { opacity: 0; transform: translateX(-10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .p4 .p4__step:nth-child(2) { transition-delay: .2s; }
.js .p4 .p4__step:nth-child(3) { transition-delay: .4s; }
.js .p4 .p4__step:nth-child(4) { transition-delay: .6s; }
.js .p4.is-in .p4__step { opacity: 1; transform: none; }
.js .p3 .p3__segs path { opacity: 0; transition: opacity .5s; }
.js .p3.is-in .p3__segs path { opacity: 1; }
.js .p3 .p3__segs path:nth-child(2) { transition-delay: .5s; }
.js .p3 .p3__segs path:nth-child(3) { transition-delay: 1.1s; }
.js .p3 .p3__segs path:nth-child(4) { transition-delay: 1.7s; }
.p3__handg { transform-origin: 0 0; }
.js .p3.is-in .p3__handg { animation: hand-turn 2.4s var(--ease) .1s both; }
.js .fee tbody tr { opacity: 0; transition: opacity .6s; }
.js .p2.is-in .fee tbody tr { opacity: 1; }
.js .p2 .fee tbody tr:nth-child(2) { transition-delay: .08s; }
.js .p2 .fee tbody tr:nth-child(3) { transition-delay: .16s; }
.js .p2 .fee tbody tr:nth-child(4) { transition-delay: .24s; }
.js .p2 .fee tbody tr:nth-child(5) { transition-delay: .32s; }
.js .map .route { opacity: 0; transition: opacity 1s .3s; }
.js .map.is-in .route { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
