/* 個別指導 ノートの木（デモ）
   黒板の深緑 × チョークの白と黄。下層は方眼ノートの紙。
   見出し Kaisei Decol／札 Yomogi／本文 Zen Kaku Gothic New */

:root {
  --board: #2E4A3F;
  --board-deep: #243C33;
  --chalk: #F4F1E8;
  --chalk-dim: rgba(244, 241, 232, .82);
  --chalk-y: #F2D16B;
  --paper: #F7F5EE;
  --paper-2: #FDFCF8;
  --kraft: #E7DFCC;
  --ink: #23312B;
  --ink-soft: #4C5952;
  --rule: rgba(46, 74, 63, .085);
  --rule-strong: rgba(46, 74, 63, .16);
  --wood: #8C6745;
  --wood-dark: #6E5036;
  --tape: rgba(236, 229, 205, .78);
  --stk-mint: #DCE9DA;
  --stk-peach: #F4DECF;
  --stk-cream: #F5EBC2;

  --f-head: "Kaisei Decol", "Hiragino Mincho ProN", serif;
  --f-hand: "Yomogi", "Kaisei Decol", sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --wrap: 1120px;
  --pad: clamp(18px, 4.6vw, 40px);
  --ease-pop: cubic-bezier(.3, 1.45, .55, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(15px, 0.35vw + 13.8px, 17px);
  line-height: 1.85;
  letter-spacing: .02em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 .9em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.4; word-break: auto-phrase; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--chalk-y); outline-offset: 3px; border-radius: 4px; }
.grid-paper :focus-visible, .kraft :focus-visible { outline-color: var(--board); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(760px + var(--pad) * 2); }

/* ---------- 地 ---------- */
/* 黒板: 深緑に、消し跡とチョークの粉をうすく重ねる */
.board {
  position: relative;
  color: var(--chalk);
  background-color: var(--board);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E"),
    radial-gradient(60% 38% at 18% 30%, rgba(244, 241, 232, .055), transparent 70%),
    radial-gradient(46% 30% at 78% 72%, rgba(244, 241, 232, .045), transparent 70%),
    linear-gradient(176deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .12));
}
/* 区画の角の、チョークの粉のかすれ */
.board.sec::before, .hero::before, .phead::before {
  content: "";
  position: absolute;
  top: 14px; right: 18px;
  width: 150px; height: 86px;
  pointer-events: none;
  opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 86'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -2 0 0 0 1.5'/%3E%3CfeComposite in='SourceGraphic' operator='in'/%3E%3C/filter%3E%3Cg filter='url(%23c)' fill='none' stroke='%23F4F1E8' stroke-linecap='round'%3E%3Cpath d='M18 62C52 44 92 30 140 16' stroke-width='9' opacity='.28'/%3E%3Cpath d='M46 76C78 62 108 52 146 42' stroke-width='6' opacity='.2'/%3E%3Cpath d='M96 10C112 8 126 6 142 4' stroke-width='3' opacity='.35'/%3E%3C/g%3E%3C/svg%3E") no-repeat right top / contain;
}
.board.sec:nth-of-type(odd)::before { left: 14px; right: auto; transform: scaleX(-1); top: auto; bottom: 34px; }

/* 方眼ノート */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.kraft {
  background-color: var(--kraft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.sec { position: relative; display: flow-root; padding: clamp(64px, 9vw, 112px) 0; }
.sec--flush { padding-top: 0; }
.board.sec { padding-bottom: clamp(84px, 10vw, 128px); }

/* ---------- 見出し ---------- */
.h2 {
  font-family: var(--f-head);
  font-size: clamp(26px, 2.2vw + 16px, 40px);
  letter-spacing: .04em;
  font-feature-settings: "palt";
  color: var(--chalk);
  filter: url(#chalk);
}
.h2 small { display: inline-block; font-size: .55em; letter-spacing: .02em; margin-left: .3em; }
.h2--ink, .grid-paper .h2, .kraft .h2 { color: var(--board); filter: none; }
.grid-paper .sign__board .h2 { color: var(--chalk); filter: url(#chalk); }
.h2--sm { font-size: clamp(22px, 1.2vw + 17px, 28px); }
.sec-head { margin-bottom: clamp(32px, 4vw, 52px); }
.sec-lead { margin-top: 18px; color: var(--chalk-dim); max-width: 40em; }

/* チョークで引いた線（transform だけで左から出す） */
.cl { display: block; width: min(210px, 62%); height: 14px; margin: 10px 0 22px; overflow: hidden; }
.cl__in { display: block; width: 100%; height: 100%; overflow: hidden; }
.cl svg { display: block; width: 100%; height: 100%; overflow: visible; filter: url(#chalk); }
.cl path { fill: none; stroke: var(--chalk-y); stroke-width: 5; stroke-linecap: round; }
.cl .cl__thin { stroke-width: 2; opacity: .55; }
.cl--ink path, .grid-paper .cl path, .kraft .cl path { stroke: var(--board); opacity: .78; }
.cl--ink .cl__thin, .grid-paper .cl .cl__thin, .kraft .cl .cl__thin { opacity: .35; }
.grid-paper .sign__board .cl path { stroke: var(--chalk-y); opacity: 1; }
.grid-paper .sign__board .cl .cl__thin { opacity: .55; }
.cl--center { margin-left: auto; margin-right: auto; }
.cl--hero { width: min(300px, 70%); margin: 18px 0 26px; }
.cl--head { margin-bottom: 20px; }
.js .cl__in { transform: translateX(-101%); transition: transform 1s cubic-bezier(.55, .1, .3, 1) .15s; }
.js .cl__in svg { transform: translateX(101%); transition: transform 1s cubic-bezier(.55, .1, .3, 1) .15s; }
.js .cl.is-in .cl__in, .js .cl.is-in .cl__in svg { transform: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: 15px; letter-spacing: .06em;
  text-decoration: none; line-height: 1.3; text-align: center;
  border: 2px solid transparent;
  transition: transform .2s ease, opacity .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 56px; padding: 12px 30px; font-size: 16px; }
.btn--wide { width: 100%; max-width: 420px; }
.btn--y { background: var(--chalk-y); color: var(--board); box-shadow: 0 3px 0 #C9A949; }
.btn--line { border-color: var(--chalk); color: var(--chalk); background: transparent; }
.btn--board { background: var(--board); color: var(--chalk); box-shadow: 0 3px 0 var(--board-deep); }
.arw { width: 18px; height: 10px; position: relative; flex: none; }
.arw::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px; }
.arw::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

.more { margin-top: 30px; }
.more__a {
  font-weight: 700; text-decoration: none; color: var(--board);
  background: linear-gradient(transparent 62%, rgba(46, 74, 63, .16) 62%);
  padding: 0 2px;
}
.more__a:hover { background: linear-gradient(transparent 62%, rgba(46, 74, 63, .3) 62%); }
.board .more__a, .more--board .more__a { color: var(--chalk); background: none; border-bottom: 2px dashed rgba(244, 241, 232, .5); padding-bottom: 2px; }
.board .more__a:hover { border-bottom-color: var(--chalk-y); }

/* ---------- 写真（紙焼きをテープで貼る） ---------- */
.print { position: relative; margin: 0; padding: 10px 10px 12px; background: var(--paper-2); box-shadow: 0 10px 22px rgba(0, 0, 0, .22), 0 1px 2px rgba(0, 0, 0, .2); transform: rotate(var(--rot, 1.4deg)); }
.print img { width: 100%; }
.print--paper { box-shadow: 0 8px 18px rgba(35, 49, 43, .14), 0 1px 2px rgba(35, 49, 43, .16); }
.tape { position: absolute; z-index: 2; width: 92px; height: 26px; background: var(--tape); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: inherit; }
.tape--l { top: -12px; left: -14px; transform: rotate(-32deg); }
.tape--r { top: -11px; right: -16px; transform: rotate(28deg); }

/* ---------- 粉受け ---------- */
.tray { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; background: linear-gradient(var(--wood) 0 60%, var(--wood-dark)); box-shadow: 0 -2px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .14); }
.tray__goods { position: absolute; right: max(var(--pad), calc(50% - 560px)); bottom: 10px; width: 200px; height: 24px; }
.tray__chalk { fill: var(--chalk); }
.tray__chalk--y { fill: var(--chalk-y); }
.tray__eraser { fill: #3A3836; }
.tray__felt { fill: #9A938A; }

/* ---------- ヘッダー ---------- */
.head { position: sticky; top: 0; z-index: 50; background: var(--board-deep); color: var(--chalk); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.head__in { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; gap: 18px; }
.head__brand { margin-right: auto; min-width: 0; }
.head__tag { margin: 0 0 1px; font-family: var(--f-hand); font-size: 12px; letter-spacing: .06em; color: var(--chalk-dim); line-height: 1.4; }
.head__logo { display: flex; align-items: center; gap: 10px; }
.brand { display: block; text-decoration: none; }
.logo { display: block; overflow: visible; color: var(--chalk); }
.logo .mark__leaf { fill: var(--chalk-y); }
.logo__sub { font-family: var(--f-body); font-weight: 700; font-size: 12px; fill: var(--chalk-dim); }
.logo__name { font-family: var(--f-head); font-weight: 700; font-size: 27px; fill: var(--chalk); }
.logo--head { width: 182px; height: auto; }
.demo { flex: none; font-size: 10px; letter-spacing: .14em; line-height: 1; padding: 4px 6px 3px; border: 1px solid rgba(244, 241, 232, .7); border-radius: 3px; color: var(--chalk); font-weight: 700; }
.head__tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.tel { font-family: var(--f-head); font-weight: 700; font-size: 21px; letter-spacing: .04em; text-decoration: none; color: var(--chalk); }
.tel__hours { font-size: 11.5px; color: var(--chalk-dim); letter-spacing: .06em; }
.head__btn { min-height: 46px; }
.menu { display: none; }

.gnav { border-top: 1px dashed rgba(244, 241, 232, .22); }
.gnav ul { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: calc(var(--wrap) + var(--pad) * 2); display: flex; gap: clamp(14px, 3vw, 40px); }
.gnav a { position: relative; display: block; padding: 11px 0 12px; font-size: 14.5px; font-weight: 700; letter-spacing: .08em; text-decoration: none; color: var(--chalk-dim); }
.gnav a:hover { color: var(--chalk); }
.gnav a[aria-current="page"] { color: var(--chalk); }
.gnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M2 4C30 2.4 64 4.6 98 2.8' fill='none' stroke='%23F2D16B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.gnav__tel { display: none; }

@media (max-width: 960px) {
  .head__tel { display: none; }
}
@media (max-width: 820px) {
  .head__in { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .head__btn { display: none; }
  .logo--head { width: 156px; }
  .head__tag { font-size: 10.5px; }
  .menu { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 56px; height: 52px; margin-right: -6px; padding: 0; border: 0; background: none; color: var(--chalk); cursor: pointer; }
  .menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 26px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
  .menu__bars { position: relative; }
  .menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; }
  .menu__bars::before { top: -8px; }
  .menu__bars::after { top: 8px; }
  .menu__label { margin-top: 8px; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
  .is-menu .menu__bars { background: transparent; }
  .is-menu .menu__bars::before { transform: translateY(8px) rotate(45deg); }
  .is-menu .menu__bars::after { transform: translateY(-8px) rotate(-45deg); }
  .gnav { display: none; border-top: 1px dashed rgba(244, 241, 232, .25); padding: 6px 0 22px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .is-menu .gnav { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px dashed rgba(244, 241, 232, .18); }
  .gnav a { padding: 15px 2px; font-size: 16px; }
  .gnav a[aria-current="page"]::after { left: 0; right: auto; width: 7em; bottom: 9px; }
  .gnav__tel { display: flex; flex-direction: column; padding: 16px var(--pad) 0; margin: 0; }
  .gnav__tel a { font-family: var(--f-head); font-weight: 700; font-size: 24px; text-decoration: none; }
  .gnav__tel span { font-size: 12px; color: var(--chalk-dim); }
}

/* ---------- 最初の画面 ---------- */
.hero { padding: clamp(40px, 6vw, 84px) 0 clamp(72px, 8vw, 104px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__title {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(22px, 2.5vw + 6px, 40px);
  line-height: 1.6; letter-spacing: .02em;
  font-feature-settings: "palt";
  color: var(--chalk);
  filter: url(#chalk);
  text-wrap: nowrap;
}
.hero__title .ln { display: block; white-space: nowrap; }
.hero__lead { font-size: clamp(15px, .4vw + 13.6px, 18px); line-height: 2; color: var(--chalk-dim); margin-bottom: 30px; }
.hero__photo { --rot: 1.8deg; }
/* 見出しはチョークで書くように左から1文字ずつ（1回・2秒以内） */
.js .hero__title .ch { opacity: 0; animation: chalkIn .2s ease-out forwards; animation-delay: calc(.12s + var(--i) * .06s); }
@keyframes chalkIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* ---------- お知らせ（紙の帯） ---------- */
.news { position: relative; z-index: 3; margin-top: -30px; margin-bottom: -26px; }
.news__paper { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: start; padding: 22px clamp(18px, 3vw, 34px) 20px; background: var(--paper-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); transform: rotate(-.35deg);
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(46, 74, 63, .12) 33px 34px); background-position: 0 14px; }
.news__label { font-family: var(--f-hand); font-weight: 400; font-size: 19px; color: var(--board); letter-spacing: .1em; padding-top: 2px; }
.news__list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 34px; }
.news__list li { display: flex; gap: 18px; }
.news__list time { flex: none; font-family: var(--f-hand); color: var(--ink-soft); letter-spacing: .04em; }
.tape--news { top: -13px; left: 50%; margin-left: -46px; transform: rotate(-3deg); }

/* ---------- よく伺うこと（ノートを切り取った紙） ---------- */
.asks { padding-top: clamp(96px, 11vw, 140px); }
.asks__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.ask { position: relative; transform: rotate(var(--r)); }
.ask:nth-child(2) { margin-top: 46px; }
.ask:nth-child(3) { margin-top: 14px; }
.ask::before { content: ""; position: absolute; z-index: 2; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: var(--tape); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.ask:nth-child(2)::before { transform: rotate(5deg); left: 30%; }
.ask__paper {
  position: relative;
  padding: 30px 22px 30px 38px;
  background-color: #FFFEFA;
  background-image:
    linear-gradient(90deg, transparent 26px, rgba(190, 120, 110, .38) 26px 27px, transparent 27px),
    repeating-linear-gradient(transparent 0 31px, rgba(70, 110, 140, .2) 31px 32px);
  background-position: 0 0, 0 30px;
  filter: drop-shadow(0 6px 10px rgba(35, 49, 43, .14));
  /* 下の辺だけ、ちぎったようにギザギザ */
  clip-path: polygon(0 0, 100% 0, 100% 97%, 96% 99.4%, 91% 97.6%, 86% 99.6%, 80% 97.8%, 74% 99.2%, 68% 97.4%, 62% 99.6%, 56% 97.9%, 50% 99.3%, 44% 97.5%, 38% 99.6%, 32% 97.7%, 26% 99.3%, 20% 97.6%, 14% 99.5%, 8% 97.8%, 3% 99.4%, 0 97.5%);
}
.ask__q { font-family: var(--f-head); font-weight: 700; font-size: clamp(16.5px, .5vw + 14.5px, 19px); line-height: 32px; color: var(--board); margin-bottom: 32px; }
.ask__a { font-size: 14.5px; line-height: 32px; color: var(--ink); }

/* ---------- コース（黒板に貼った紙） ---------- */
.course__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 5vw, 64px); max-width: 960px; }
.ccard { position: relative; padding: 38px clamp(22px, 3vw, 36px) 30px; background: var(--paper-2); color: var(--ink); transform: rotate(var(--r)); box-shadow: 0 10px 20px rgba(0, 0, 0, .22);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 20px 20px; }
.ccard:nth-child(2) { margin-top: 34px; }
.magnet { position: absolute; top: -13px; left: 50%; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F17E6C, #C9503F 70%); box-shadow: 0 3px 4px rgba(0, 0, 0, .3); }
.magnet--y { background: radial-gradient(circle at 35% 30%, #7FB6D9, #3F7EA8 70%); }
.ccard__name { font-family: var(--f-head); font-size: clamp(22px, 1vw + 18px, 28px); color: var(--board); margin-bottom: 14px; }
.ccard__text { font-size: 15px; }
.ccard__price { margin-top: 20px; padding-top: 16px; border-top: 2px dashed var(--rule-strong); font-weight: 700; color: var(--board); }
.ccard__price b { font-family: var(--f-head); font-size: 34px; letter-spacing: .02em; margin: 0 2px; }
.ccard__price span { display: inline-block; font-size: 13.5px; font-weight: 400; color: var(--ink-soft); margin-left: 4px; }
.course__note { margin-top: 34px; font-size: 13.5px; color: var(--chalk-dim); }

/* ---------- 2段組み（写真と文） ---------- */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.split--top { align-items: start; }
.split__photo { --rot: -1.4deg; width: 100%; max-width: 480px; justify-self: center; }
.split--rev .split__photo { --rot: 1.6deg; }
.juku-cho .split__photo { max-width: 400px; justify-self: center; }
.sub--about .split__photo { max-width: 400px; }
.split__fig { display: flex; justify-content: center; }
.name { font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: .1em; margin-bottom: 18px; }
.name span { font-family: var(--f-head); font-weight: 500; font-size: 14px; letter-spacing: .1em; margin-right: 12px; color: var(--chalk-y); }
.name small { font-family: var(--f-body); font-size: 13px; font-weight: 400; letter-spacing: .04em; margin-left: 8px; color: var(--ink-soft); }
.name--ink { color: var(--board); }
.name--ink span { color: var(--ink-soft); }

/* ---------- 保護者の方へ（連絡帳のページ） ---------- */
.renraku { position: relative; max-width: 820px; margin: 0 auto; transform: rotate(var(--r)); }
.renraku__page {
  position: relative;
  padding: clamp(34px, 5vw, 56px) clamp(22px, 5vw, 64px) clamp(40px, 5vw, 56px) clamp(46px, 7vw, 92px);
  background-color: #FFFEFA;
  background-image:
    linear-gradient(90deg, transparent clamp(30px, 5vw, 62px), rgba(190, 120, 110, .4) 0 calc(clamp(30px, 5vw, 62px) + 1px), transparent 0),
    repeating-linear-gradient(transparent 0 35px, rgba(70, 110, 140, .2) 35px 36px);
  background-position: 0 0, 0 26px;
  box-shadow: 0 12px 26px rgba(80, 60, 30, .18);
  line-height: 36px;
}
.renraku__page::before { /* 綴じ穴 */
  content: ""; position: absolute; left: clamp(10px, 2vw, 22px); top: 40px; bottom: 40px; width: 12px;
  background: radial-gradient(circle, var(--kraft) 5px, rgba(0, 0, 0, .12) 5.5px, transparent 6.5px) center top / 12px 72px repeat-y;
}
.renraku__page p { margin-bottom: 0; }
.renraku__page .cl { margin-bottom: 14px; }
.pencil { position: absolute; right: -10px; bottom: -22px; width: min(260px, 46%); transform: rotate(-8deg); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .18)); }
.pencil__body { fill: #3F6B57; }
.pencil__line { stroke: rgba(255, 255, 255, .25); stroke-width: 2; }
.pencil__band { fill: #C9B26A; }
.pencil__end { fill: #E9A39A; }
.pencil__wood { fill: #E6C79B; }
.pencil__lead { fill: #3A3A3A; }

/* ---------- 無料体験授業（立て看板の黒板） ---------- */
.sign { position: relative; max-width: 760px; margin: 0 auto; padding-bottom: 48px; }
.sign__board { position: relative; z-index: 1; text-align: center; padding: clamp(40px, 6vw, 64px) clamp(22px, 5vw, 60px); border: 12px solid var(--wood); border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .2), 0 14px 26px rgba(35, 49, 43, .24); }
.sign__board p { color: var(--chalk-dim); }
.sign__board .btn { margin-top: 24px; }
.sign__tel { margin-top: 22px; font-size: 14px; }
.sign__tel a { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--chalk); text-decoration: none; margin: 0 4px; }
.sign__leg { position: absolute; bottom: 0; width: 14px; height: 70px; background: var(--wood-dark); border-radius: 0 0 3px 3px; }
.sign__leg--l { left: 18%; transform: rotate(8deg); }
.sign__leg--r { right: 18%; transform: rotate(-8deg); }

/* ---------- 教室案内（表） ---------- */
.access { padding-top: 0; }
.access__in { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px 48px; align-items: start; }
.access__more { grid-column: 2; margin-top: 4px; }
.info { width: 100%; border-collapse: collapse; font-size: 15px; }
.info th, .info td { padding: 14px 4px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-strong); }
.info th { width: 12.5em; font-weight: 700; color: var(--board); padding-right: 18px; }
.info a { text-decoration: none; font-weight: 700; }
.info--board { margin-top: 6px; }
.info--board th, .info--board td { border-bottom: 1px dashed rgba(244, 241, 232, .28); }
.info--board th { color: var(--chalk-y); font-weight: 500; font-family: var(--f-head); font-size: 15px; letter-spacing: .04em; }
.info--board td { color: var(--chalk); }
.info--board a { color: var(--chalk); }

/* ---------- 付箋・紙が「ぺたっ」と貼られる ---------- */
.stk { transform: rotate(var(--r, 0deg)); }
.js .stk { opacity: 0; transform: translateY(-14px) scale(1.06) rotate(calc(var(--r, 0deg) * 3)); transition: opacity .25s ease, transform .5s var(--ease-pop); }
.js .stk.is-in { opacity: 1; transform: rotate(var(--r, 0deg)); }
.js .asks__list .stk:nth-child(2) { transition-delay: .12s; }
.js .asks__list .stk:nth-child(3) { transition-delay: .24s; }
.js .course__cards .stk:nth-child(2) { transition-delay: .14s; }

/* ---------- 下層の頭（黒板の帯） ---------- */
.phead { padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 7vw, 88px); overflow: hidden; }
.phead__in { position: relative; z-index: 1; }
.crumbs ol { list-style: none; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--chalk-dim); }
.crumbs li + li::before { content: "›"; margin-right: 10px; opacity: .7; }
.crumbs a { text-decoration: none; border-bottom: 1px dashed rgba(244, 241, 232, .45); }
.phead__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 3vw + 18px, 52px); letter-spacing: .06em; filter: url(#chalk); }
.phead__lead { max-width: 34em; color: var(--chalk-dim); font-size: clamp(15px, .3vw + 14px, 17px); line-height: 2; }
.phead__lead p { margin: 0; }
.sub--course .phead .wrap, .sub--trial .phead .wrap { padding-right: calc(var(--pad) + min(38vw, 440px)); min-height: 280px; }
.phead__photo { position: absolute; z-index: 1; right: max(var(--pad), calc(50% - 560px)); top: 50%; width: min(36vw, 420px); margin-top: -10px; transform: translateY(-50%) rotate(2deg); }
.sub--trial .phead__photo { width: min(28vw, 320px); }
.phead__wide { margin: clamp(28px, 4vw, 40px) auto 0; max-width: calc(var(--wrap) + var(--pad) * 2); padding: 0 var(--pad); }
.phead__wide img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: center 62%; border: 10px solid var(--paper-2); box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }

.endcta { margin-top: clamp(48px, 6vw, 72px); text-align: center; }

/* ---------- 月謝の表 ---------- */
.fee__sheet { max-width: 860px; padding: clamp(22px, 4vw, 40px); background: var(--paper-2); box-shadow: 0 8px 18px rgba(35, 49, 43, .1); border-top: 6px solid var(--board); }
.fee__table { width: 100%; border-collapse: collapse; }
.fee__table th, .fee__table td { padding: 16px 10px; border-bottom: 1px solid var(--rule-strong); text-align: right; }
.fee__table thead th { font-family: var(--f-hand); font-weight: 400; font-size: 16px; color: var(--ink-soft); border-bottom: 2px solid var(--board); }
.fee__table tbody th { text-align: left; font-weight: 700; color: var(--board); font-size: 15px; }
.fee__table td { white-space: nowrap; }
.fee__table b { font-family: var(--f-head); font-size: clamp(20px, 1vw + 16px, 26px); color: var(--board); margin-right: 2px; }
.fee__notes { list-style: none; margin: 24px 0 0; padding: 0; font-size: 14.5px; }
.fee__notes li { position: relative; padding-left: 1.3em; margin-bottom: 6px; }
.fee__notes li::before { content: ""; position: absolute; left: 0; top: .78em; width: .6em; height: 2px; background: var(--board); }

/* 付箋の囲み（季節の講習・自習の席・持ってくるもの） */
.season, .bring { position: relative; max-width: 640px; padding: 34px clamp(22px, 4vw, 40px) 30px; background: var(--stk-cream); box-shadow: 0 10px 16px -8px rgba(35, 49, 43, .3); }
.season::before, .bring::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px; background: rgba(0, 0, 0, .04); }
.season--mint { background: var(--stk-mint); margin-left: auto; margin-right: auto; }
.season .h2, .bring .h2 { margin-bottom: 12px; }
.bring { background: var(--stk-peach); margin: 0 auto; }
.bring__list { list-style: none; margin: 6px 0 0; padding: 0; }
.bring__list li { position: relative; padding: 6px 0 6px 38px; border-bottom: 1px dashed rgba(35, 49, 43, .2); }
.bring__list li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--board); border-radius: 3px; }
.bring__list li::after { content: ""; position: absolute; left: 9px; top: 12px; width: 8px; height: 14px; border-right: 3px solid var(--board); border-bottom: 3px solid var(--board); transform: rotate(40deg); }

/* ---------- 授業の記録の例（連絡のメモ） ---------- */
.slip { position: relative; padding: 30px clamp(22px, 3vw, 34px); background: #FFFEFA; box-shadow: 0 8px 16px rgba(35, 49, 43, .14); background-image: repeating-linear-gradient(transparent 0 33px, rgba(70, 110, 140, .18) 33px 34px); background-position: 0 22px; line-height: 34px; }
.slip::before { content: ""; position: absolute; top: -12px; right: 24px; width: 80px; height: 24px; background: var(--tape); transform: rotate(6deg); }
.slip p { margin: 0; }
.slip__lead, .slip__tail { font-family: var(--f-hand); color: var(--ink-soft); }
.slip__body { font-family: var(--f-hand); font-size: clamp(17px, .5vw + 15px, 20px); color: #2B4A78; }

/* ---------- 机の絵 ---------- */
.seats { width: min(380px, 100%); height: auto; overflow: visible; }
.seats__desk { fill: #E9D4B4; stroke: #B9956B; stroke-width: 2; }
.seats__wall { stroke: #B9956B; stroke-width: 3; stroke-dasharray: 4 5; }
.seats__note { fill: #fff; stroke: rgba(46, 74, 63, .3); }
.seats__pencil { stroke: #3F6B57; stroke-width: 5; stroke-linecap: round; }
.seats__kid { fill: #9DB7A8; }
.seats__sensei { fill: var(--board); }
.seats__lb { font-family: var(--f-hand); font-size: 14px; fill: var(--ink-soft); text-anchor: middle; }
.seats__lb--y { fill: var(--board); font-weight: 700; }

/* ---------- 写真（横長） ---------- */
.wide { --rot: -.6deg; max-width: 980px; margin: 0 auto; }
.wide img { aspect-ratio: 2 / 1; object-fit: cover; object-position: center 70%; }
.wide figcaption { padding: 14px 6px 4px; font-size: 14px; color: var(--ink-soft); font-family: var(--f-hand); }

/* ---------- 図解の共通 ---------- */
.dg { margin: 0; }
.dg__note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
/* 小さな黒板（木の枠） */
.minib { position: relative; padding: clamp(20px, 3vw, 34px); border: 10px solid var(--wood); border-radius: 6px; background: var(--board-deep); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), 0 10px 22px rgba(0, 0, 0, .25);
  background-image: radial-gradient(50% 40% at 30% 30%, rgba(244, 241, 232, .05), transparent 70%); }

/* N-1 時間割 */
.tt__scroll { display: flex; gap: 18px; align-items: flex-start; }
.tt__table { flex: 1; border-collapse: collapse; width: 100%; min-width: 0; color: var(--chalk); }
.tt__table thead th { font-family: var(--f-hand); font-weight: 400; font-size: 18px; padding: 4px 0 10px; text-align: center; border-bottom: 2px solid rgba(244, 241, 232, .7); }
.tt__table thead th:last-child { color: var(--chalk-y); }
.tt__table tbody th { text-align: left; padding: 10px 14px 10px 0; font-weight: 400; border-bottom: 1px solid rgba(244, 241, 232, .22); white-space: nowrap; }
.tt__table td { text-align: center; border-bottom: 1px solid rgba(244, 241, 232, .22); border-left: 1px dashed rgba(244, 241, 232, .18); width: 9%; padding: 6px 2px; }
.tt__sat th, .tt__sat td { border-top: 2px solid rgba(244, 241, 232, .6); }
.tt__name { display: block; font-family: var(--f-hand); font-size: 15px; color: var(--chalk-dim); }
.tt__time { display: block; font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.tt__note { display: block; font-size: 12px; color: var(--chalk-y); }
.tt__mark { width: 28px; height: 28px; display: block; margin: 0 auto; overflow: visible; filter: url(#chalk); }
.tt__mark path { fill: none; stroke: var(--chalk); stroke-width: 2.6; stroke-linecap: round; }
.tt__sat ~ tr .tt__mark path, .tt__sat .tt__mark path { stroke: var(--chalk-y); }
.tt__self { display: inline-block; font-family: var(--f-hand); font-size: 14px; color: var(--chalk-y); border: 1.5px solid var(--chalk-y); border-radius: 999px; padding: 0 8px; }
.tt__side { writing-mode: vertical-rl; font-family: var(--f-hand); font-size: 14px; letter-spacing: .16em; color: var(--chalk-dim); margin: 40px 0 0; flex: none; }
.tt__foot { margin-top: 18px; font-family: var(--f-hand); font-size: 15px; color: var(--chalk-y); }
.js .dg.tt .tt__on > * { opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .35s var(--ease-pop); transition-delay: calc(var(--k) * .035s); }
.js .dg.tt.is-in .tt__on > * { opacity: 1; transform: none; }

/* N-4 80分の帯 */
.band { max-width: none; }
.band__key { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 14.5px; color: var(--chalk); }
.band__key li { word-break: auto-phrase; }
.band__key b { white-space: nowrap; font-family: var(--f-hand); font-weight: 400; font-size: 16px; }
.band__sw { display: inline-block; width: 30px; height: 12px; border-radius: 6px; vertical-align: -1px; margin-right: 10px; }
.band__sw--y { background: var(--chalk-y); }
.band__sw--w { background: var(--chalk); }
.band__top { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 8px; filter: url(#chalk); }
.band__c { flex: var(--m) 0 0; }
.band__c--y { background: var(--chalk-y); }
.band__c--w { background: var(--chalk); opacity: .92; }
.band__bar { list-style: none; margin: 0; padding: 0; display: flex; border: 2px solid rgba(244, 241, 232, .8); border-radius: 6px; }
.band__seg { flex: var(--m) 0 0; min-width: 0; padding: 14px 10px 16px; border-left: 2px dashed rgba(244, 241, 232, .5); display: flex; flex-direction: column; gap: 4px; }
.band__seg:first-child { border-left: 0; }
.band__t { font-size: 13.5px; line-height: 1.55; color: var(--chalk); }
.band__min { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: var(--chalk-y); }
.band__n { font-size: 12px; color: var(--chalk-dim); line-height: 1.5; }
.band__seg { padding-left: 8px; padding-right: 6px; }
.band__scale { display: flex; justify-content: space-between; font-family: var(--f-hand); font-size: 13px; color: var(--chalk-dim); margin-top: 8px; }
.band__foot { margin-top: 20px; font-size: 14px; color: var(--chalk-dim); }
.js .band .band__c { transform: scaleX(0); transform-origin: left center; transition: transform .35s ease-out; transition-delay: calc(.2s + var(--k) * .09s); }
.js .band.is-in .band__c { transform: none; }
.js .band .band__seg { opacity: 0; transition: opacity .4s ease; transition-delay: calc(.1s + var(--k) * .15s); }
.js .band.is-in .band__seg { opacity: 1; }

/* 4区切りは狭いので、細い区切りは名前を上に逃がす（スマホは縦に） */
@media (max-width: 1100px) {
  .band__bar { flex-direction: column; }
  .band__seg { flex: none; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; border-left: 0; border-top: 2px dashed rgba(244, 241, 232, .5); padding: 12px 14px; position: relative; }
  .band__seg::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--m) / 50 * 6px + 4px); background: rgba(242, 209, 107, .5); }
  .band__seg:first-child { border-top: 0; }
  .band__min { font-size: 19px; order: -1; min-width: 3em; }
  .band__t { flex: 1; font-size: 14px; }
  .band__n { flex-basis: 100%; padding-left: calc(3em + 12px); }
}

/* N-2 階段 */
.stairwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.stair__box { position: relative; padding: 0 0 0 54px; }
.stair__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 0; }
.stair__step { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 12px 8px 10px; min-height: calc(110px + var(--s) * 52px); background: #FFFEFA; border: 2px solid var(--board); border-left-width: 0; box-shadow: inset 0 -10px 0 rgba(46, 74, 63, .06); }
.stair__step:first-child { border-left-width: 2px; }
.stair__step:last-child { background: #FBF3D6; }
.stair__no { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--board); line-height: 1; }
.stair__t { font-size: 13px; line-height: 1.5; font-weight: 700; color: var(--board); }
.stair__s { font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); }
.stair__kid { position: absolute; left: 4px; bottom: 0; width: 40px; height: 70px; }
.stair__kid circle, .stair__kid path { fill: var(--board); }
.stair__kid .stair__legs { fill: none; stroke: var(--board); stroke-width: 6; stroke-linecap: round; }
.stair__kid .stair__hair { fill: #182920; }
.stair .dg__note { text-align: right; }
.js .stair .stair__step { opacity: 0; transform: translateY(18px); transition: opacity .3s ease, transform .45s var(--ease-pop); transition-delay: calc(var(--s) * .14s); }
.js .stair.is-in .stair__step { opacity: 1; transform: none; }

/* N-3 入塾までの手順 */
.road__list { list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; display: flex; justify-content: space-between; position: relative; }
.road__list::before { content: ""; position: absolute; left: 6%; right: 6%; top: 62px; height: 3px; background: repeating-linear-gradient(90deg, var(--board) 0 10px, transparent 10px 16px); opacity: .5; }
.road__item { position: relative; z-index: 1; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 0; }
.road__item--wait { flex-grow: 1.5; }
.road__dot { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 124px; height: 124px; border-radius: 50%; background: #FFFEFA; border: 2.5px solid var(--board); padding: 10px; box-shadow: 0 4px 0 rgba(46, 74, 63, .12); }
.road__item:last-child .road__dot { background: var(--board); color: var(--chalk); }
.road__n { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1; color: inherit; margin-bottom: 4px; }
.road__t { font-weight: 700; font-size: 14px; line-height: 1.45; word-break: auto-phrase; }
.road__s { text-wrap: balance; word-break: auto-phrase; margin-top: 12px; max-width: 11em; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.road__item--wait .road__dot { border-style: dashed; }
.road__stk { position: absolute; top: -40px; left: 50%; margin-left: -80px; width: 160px; padding: 6px 8px; background: var(--stk-cream); font-family: var(--f-hand); font-size: 14.5px; color: var(--ink); box-shadow: 0 5px 8px -4px rgba(35, 49, 43, .3); white-space: nowrap; }
.road { padding-top: 48px; }
.js .road .road__dot { opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .45s var(--ease-pop); transition-delay: calc(var(--s) * .13s); }
.js .road.is-in .road__dot { opacity: 1; transform: none; }
.js .road .road__stk { transition-delay: .75s; }

.steps { list-style: none; margin: 0; padding: 0; max-width: 820px; counter-reset: none; }
.steps__item { padding: 18px 0 20px; border-bottom: 1px solid var(--rule-strong); }
.steps__t { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--board); margin-bottom: 6px; }
.steps__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--board); color: var(--chalk-y); font-family: var(--f-head); font-size: 16px; }
.steps__item p { padding-left: 46px; font-size: 15px; }

/* ---------- 地図 ---------- */
.access2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.map__road path { fill: none; stroke: rgba(244, 241, 232, .7); stroke-width: 10; stroke-linecap: round; opacity: .5; filter: url(#chalk); }
.map__rail { fill: none; stroke: var(--chalk); stroke-width: 3; filter: url(#chalk); }
.map__railtick { fill: none; stroke: var(--chalk); stroke-width: 2; opacity: .7; }
.map__walk { fill: none; stroke: var(--chalk-y); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.map__station { fill: none; stroke: var(--chalk); stroke-width: 2.5; }
.map__park { fill: rgba(244, 241, 232, .08); stroke: var(--chalk); stroke-width: 2; stroke-dasharray: 6 5; }
.map__tree { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linejoin: round; }
.map__school { fill: rgba(242, 209, 107, .18); stroke: var(--chalk-y); stroke-width: 2.5; }
.map__roof { fill: none; stroke: var(--chalk-y); stroke-width: 2.5; stroke-linejoin: round; }
.map__t { font-family: var(--f-hand); font-size: 18px; fill: var(--chalk); text-anchor: middle; }
.map__t--y { fill: var(--chalk-y); font-size: 20px; }
.map__t--s { font-size: 15px; fill: var(--chalk-y); }

/* ---------- フォーム ---------- */
.wrap--form { max-width: calc(820px + var(--pad) * 2); }
.form { padding: clamp(22px, 4vw, 44px); background: var(--paper-2); color: var(--ink); border-radius: 4px; box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }
.row { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; border-bottom: 1px dashed var(--rule-strong); margin: 0; }
.row__label { margin: 0; font-weight: 700; font-size: 15px; padding-top: 10px; color: var(--board); line-height: 1.5; }
.req { display: inline-block; margin-left: 10px; padding: 2px 7px 1px; font-size: 12px; line-height: 1.5; border-radius: 3px; background: var(--board); color: var(--chalk-y); vertical-align: 1px; font-weight: 700; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink);
  padding: 10px 12px; border: 1.5px solid #B9C2BD; border-radius: 4px; background: #fff;
}
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232E4A3F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(46, 74, 63, .35); outline-offset: 0; border-color: var(--board); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; min-width: 3em; text-align: center; padding: 8px 16px; border: 1.5px solid #B9C2BD; border-radius: 999px; font-size: 15px; background: #fff; }
.chips input:checked + span { background: var(--board); border-color: var(--board); color: var(--chalk); }
.chips input:focus-visible + span { outline: 3px solid var(--board); outline-offset: 2px; }
.chips--days span { min-width: 2.8em; padding: 8px 10px; }
.agree { padding: 22px 0 6px; text-align: center; }
.agree label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; }
.agree input { width: 22px; height: 22px; accent-color: var(--board); }
.agree a { color: var(--board); font-weight: 700; }
.form__submit { margin-top: 22px; text-align: center; }
.form.is-checked :invalid { border-color: #B6473A; background: #FFF6F4; }
.form.is-checked .chips:has(input:invalid) span, .form.is-checked .agree:has(input:invalid) label { color: #B6473A; }
.form__msg { margin-top: 18px; text-align: center; font-weight: 700; color: var(--board); }
.formsec__tel { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--chalk-dim); }
.formsec__tel a { font-family: var(--f-head); font-weight: 700; font-size: 22px; color: var(--chalk); text-decoration: none; margin: 0 6px; }

/* ---------- よくある質問 ---------- */
.faq { margin: 0; }
.faq__item { padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
.faq dt { display: flex; gap: 12px; font-weight: 700; color: var(--board); font-size: 16.5px; line-height: 1.6; margin-bottom: 10px; }
.faq dd { display: flex; gap: 12px; margin: 0; font-size: 15px; }
.faq__q, .faq__a { flex: none; font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.3; width: 1.5em; }
.faq__q { color: var(--board); }
.faq__a { color: #B98E2B; }

/* ---------- フッター ---------- */
.foot { padding: clamp(48px, 6vw, 72px) 0 64px; }
.foot__in { display: flex; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; }
.logo--foot { width: 210px; height: auto; }
.foot__addr { margin-top: 16px; font-size: 14px; color: var(--chalk-dim); }
.foot__addr a { color: var(--chalk); text-decoration: none; font-weight: 700; }
.foot__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; font-size: 14px; align-content: start; }
.foot__nav a { text-decoration: none; color: var(--chalk-dim); }
.foot__nav a:hover, .foot__nav a[aria-current="page"] { color: var(--chalk); }
.foot__nav a[aria-current="page"] { border-bottom: 2px solid var(--chalk-y); }
.foot__copy { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 40px auto 0; padding: 0 var(--pad); font-size: 12px; color: var(--chalk-dim); }

/* ---------- 画面幅ごと ---------- */
@media (max-width: 1100px) {
  .stairwrap { grid-template-columns: minmax(0, 1fr); }
  .stair__box { max-width: 760px; }
}
@media (max-width: 960px) {
  .asks__list { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 34px; }
  .ask:nth-child(n) { margin-top: 0; }
  .ask:nth-child(2) { margin-left: 22px; }
  .access2 { grid-template-columns: minmax(0, 1fr); }
  .road__dot { width: 104px; height: 104px; }
  .road__t { font-size: 13px; }
  .road__list::before { top: 52px; }
}
@media (max-width: 820px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__photo { max-width: 560px; }
  .hero__title { font-size: clamp(22px, 5.6vw, 40px); }
  .split, .split--rev { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__photo { order: 2; }
  .split__photo { max-width: 560px; }
  .course__cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .ccard:nth-child(2) { margin-top: 0; }
  .access__in { grid-template-columns: minmax(0, 1fr); }
  .access__more { grid-column: 1; }
  .sub--course .phead .wrap, .sub--trial .phead .wrap { padding-right: var(--pad); min-height: 0; }
  .phead__photo { position: relative; right: auto; top: auto; width: min(86%, 460px); margin: 30px 0 0 var(--pad); transform: rotate(1.6deg); }
  .sub--trial .phead__photo { width: min(64%, 300px); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .row__label { padding-top: 0; }
  .tt__side { writing-mode: horizontal-tb; margin: 12px 0 0; letter-spacing: .06em; }
  .tt__scroll { flex-direction: column; gap: 0; }
}
@media (max-width: 640px) {
  .news { margin-top: -26px; }
  .news__paper { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .news__list { line-height: 1.7; }
  .news__list li { flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid rgba(46, 74, 63, .1); }
  .news__paper { background-image: none; }
  .news__list li:last-child { border-bottom: 0; }
  .btns .btn { flex: 1 1 100%; }
  .ask__paper { padding: 28px 18px 30px 36px; }
  .ask:nth-child(2) { margin-left: 0; }
  .ccard__price b { font-size: 30px; }
  .info th { width: 7.5em; font-size: 14px; }
  .info td { font-size: 14px; }
  .tt__table tbody th { padding-right: 8px; }
  .tt__name { font-size: 12px; }
  .tt__time { font-size: 13.5px; }
  .tt__note { font-size: 10.5px; white-space: normal; }
  .tt__table thead th { font-size: 15px; }
  .tt__mark { width: 20px; height: 20px; }
  .tt__self { font-size: 11px; padding: 0 3px; }
  .minib { padding: 16px 12px; border-width: 8px; }
  .renraku__page { line-height: 34px; background-image: linear-gradient(90deg, transparent 30px, rgba(190, 120, 110, .4) 0 31px, transparent 0), repeating-linear-gradient(transparent 0 33px, rgba(70, 110, 140, .2) 33px 34px); }
  .pencil { width: 170px; bottom: -18px; }
  .sign__leg--l { left: 14%; } .sign__leg--r { right: 14%; }
  .sign__board { border-width: 9px; }
  .sign__tel span { display: block; }
  .faq dt { font-size: 15.5px; }
  .fee__table th, .fee__table td { padding: 14px 4px; }
  .fee__table tbody th { font-size: 13.5px; }
  .fee__table b { font-size: 19px; }
  .foot__nav { grid-template-columns: minmax(0, 1fr); }

  /* 階段はスマホでは下から上へ（左下が1段目） */
  .stair__box { padding: 0 0 0 0; }
  .stair__list { grid-template-columns: minmax(0, 1fr); display: flex; flex-direction: column-reverse; gap: 6px; }
  .stair__step { min-height: 0; margin-left: calc(var(--s) * 9%); border-width: 2px; border-left-width: 2px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 12px; }
  .stair__no { font-size: 18px; }
  .stair__t { font-size: 14px; flex: 1; }
  .stair__s { flex-basis: 100%; padding-left: 22px; font-size: 12.5px; }
  .stair__kid { position: static; display: block; width: 30px; height: 52px; margin: 8px 0 0 6px; }

  /* 手順は縦に */
  .road { padding-top: 0; }
  .road__list { flex-direction: column; gap: 14px; }
  .road__list::before { left: 46px; right: auto; top: 30px; bottom: 30px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--board) 0 10px, transparent 10px 16px); }
  .road__item { flex-direction: row; align-items: center; text-align: left; gap: 16px; }
  .road__item--wait { margin: 52px 0 12px; }
  .road__dot { flex: none; width: 92px; height: 92px; padding: 6px; }
  .road__t { font-size: 12.5px; }
  .phead__wide img { aspect-ratio: 16 / 10; }
  .road__s { margin-top: 0; max-width: none; }
  .road__stk { top: -44px; left: 104px; margin-left: 0; }
}
@media (max-width: 400px) {
  .tt__table td { padding: 6px 0; }
}

/* 動きを減らす設定では、すべて完成形で止める */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stk, .cl__in, .cl__in svg, .hero__title .ch, .stair__step, .road__dot, .band__c, .band__seg, .tt__on > * { opacity: 1 !important; }
  .cl__in, .cl__in svg, .band__c, .stair__step, .road__dot, .tt__on > * { transform: none !important; }
  .stk { transform: rotate(var(--r, 0deg)) !important; }
}
