/* 書道教室 すずり庵（デモ）
   地は半紙の生成り、字と線は墨、朱は落款と添削の丸だけ。
   書体は筆の字（Yuji Mai）と明朝（Noto Serif JP）。ゴシックは使わない。 */

:root {
  --ground: #F2ECDC;   /* 地：少し黄みのある半紙の生成り */
  --paper: #FFFFFF;    /* 紙片の面だけ */
  --sumi: #111111;
  --usu: #6B6862;      /* 添え書き・罫線（色で指定。opacity で薄めない） */
  --shu: #C0392B;      /* 落款・添削の丸だけ */
  --fold: rgba(17, 17, 17, .05);
  --tint: rgba(17, 17, 17, .06);
  --brush: "Yuji Mai", "Noto Serif JP", serif;
  --mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --w: 1120px;
  --pad: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--sumi);
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(15px, .86rem + .3vw, 17px);
  line-height: 1.95;
  letter-spacing: .03em;
  font-feature-settings: "palt" 0;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 .9em; }
p, li, dd, td, figcaption { text-wrap: pretty; word-break: auto-phrase; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-weight: 400; margin: 0; }
b, strong { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--sumi); outline-offset: 3px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--sumi); color: #fff; padding: 8px 14px; z-index: 50; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------------- ヘッダー */
.hd { position: sticky; top: 0; z-index: 30; background: var(--ground); border-bottom: 1px solid var(--usu); }
.hd__in { max-width: 1280px; margin: 0 auto; height: 76px; padding: 0 var(--pad); display: flex; align-items: center; gap: 18px; }
.brand { display: block; text-decoration: none; flex: none; }
.logo { height: 50px; width: auto; }
.logo__sub { font-family: var(--mincho); font-size: 14px; letter-spacing: 3.6px; font-weight: 600; }
.demo { flex: none; font: 400 10px/1 var(--mincho); letter-spacing: .14em; color: var(--usu); border: 1px solid var(--usu); padding: 3px 5px 2px; align-self: center; margin-top: -14px; }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2vw, 30px); }
.gnav a { text-decoration: none; font-size: 15px; letter-spacing: .06em; position: relative; display: inline-block; padding: 8px 0; white-space: nowrap; }
.gnav a:hover { color: var(--usu); }
.gnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 2.2em; height: 5px; margin-left: -1.1em;
  background: var(--sumi);
  clip-path: polygon(0 55%, 18% 20%, 100% 0, 97% 70%, 70% 100%, 4% 95%);
}
.gnav .gnav__btn { display: none; }
.hd__btn { flex: none; }
.menu { display: none; }

/* ---------------- ボタンと文字のリンク（朱は使わない） */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 12px 26px;
  background: var(--sumi); color: #FFFFFF; border: 1px solid var(--sumi); border-radius: 0;
  font: 400 16px/1.5 var(--mincho); letter-spacing: .08em; text-decoration: none;
  transition: background-color .2s;
}
.btn:hover { background: #3A3936; border-color: #3A3936; }
.btn--s { min-height: 44px; padding: 8px 18px; font-size: 14.5px; }
.btn--frame { background: transparent; color: var(--sumi); }
.btn--frame:hover { background: var(--paper); border-color: var(--sumi); }
.tlink { text-decoration: underline; text-decoration-color: var(--usu); text-decoration-thickness: 1px; text-underline-offset: .4em; letter-spacing: .05em; }
.tlink:hover { text-decoration-color: var(--sumi); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.more { margin-top: 28px; }

/* ---------------- 区画 */
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: clamp(68px, 9vw, 128px) 0 0; }
.sec:last-of-type { padding-bottom: clamp(72px, 9vw, 120px); }
.bunchin { width: 18%; min-width: 58px; height: 6px; background: var(--sumi); margin: 0 0 26px; }
.sec__title, .ph__title { word-break: auto-phrase; text-wrap: balance; }
.sec__title { font-family: var(--brush); font-size: clamp(30px, 2.2rem + 1.2vw, 48px); line-height: 1.3; letter-spacing: .05em; margin-bottom: clamp(26px, 3vw, 40px); }
.sec__title--s { font-size: clamp(22px, 1.3rem + .6vw, 28px); }
.prose { max-width: 36em; }
.prose--narrow { max-width: 34em; margin-top: 40px; }
.sec--flow .prose--narrow, .sec--flow .more { margin-left: auto; margin-right: 0; width: min(100%, 34em); }
.rows--r { margin-left: auto; }
.feewrap { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.feewrap .small { margin-top: 0; }
.small { font-size: .86em; color: var(--usu); line-height: 1.85; margin-top: 18px; max-width: 46em; }

/* 区画の終わりの落款 */
.rakkan { display: flex; justify-content: flex-end; margin-top: 44px; }
.rakkan svg { width: 16px; height: 16px; }

/* 半紙の紙片 */
.hanshi {
  position: relative; background-color: var(--paper); border: 1px solid var(--usu);
  background-image: linear-gradient(var(--fold), var(--fold));
  background-size: 1px 100%; background-position: 50% 0; background-repeat: no-repeat;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3.4vw, 44px);
}
.hanshi--tate { aspect-ratio: 1 / 1.37; }
.hanshi__h { font-family: var(--brush); font-size: clamp(24px, 1.3rem + .8vw, 32px); line-height: 1.35; margin-bottom: 22px; }
.hanshi__h span { display: block; font-family: var(--mincho); font-size: 14px; letter-spacing: .08em; color: var(--usu); margin-top: 4px; }
/* 紙片の上端を文鎮で押さえる */
.hanshi > .bunchin { position: absolute; top: -3px; left: clamp(22px, 3.4vw, 44px); margin: 0; }

/* 下敷きの罫（SVG の中） */
.sj-paper { fill: var(--paper); stroke: var(--usu); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.sj-fold { stroke: var(--fold); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.sj-line { fill: none; stroke: var(--usu); stroke-width: 1px; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }

/* 朱の添削の丸 */
.maru-w { white-space: nowrap; }
.maru { position: relative; display: inline-block; white-space: nowrap; padding: 0 .1em; }
.maru__ring { position: absolute; left: -.55em; right: -.55em; top: -.42em; bottom: -.4em; width: calc(100% + 1.1em); height: calc(100% + .82em); pointer-events: none; overflow: visible; max-width: none; }

/* ---------------- 最初の画面 */
.hero { padding: clamp(20px, 3vw, 34px) 0 clamp(40px, 6vw, 72px); }
.hero__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 46% 1fr; gap: clamp(28px, 5vw, 84px); align-items: center; }
.hero__paper { width: min(100%, calc((82vh) / 1.37)); width: min(100%, calc((82svh) / 1.37)); margin: 0 auto; }
.hero__paper svg { width: 100%; height: auto; overflow: visible; }
.ei use { fill: var(--sumi); }
.ei-band { fill: var(--paper); }
.ei-parts { display: none; }
.js .ei-parts { display: inline; }
.js .ei-whole { opacity: 0; animation: arawasu 0s linear 2.75s both; }
@keyframes arawasu { to { opacity: 1; } }
.hero__title { font-family: var(--brush); font-size: clamp(34px, 1.6rem + 2.4vw, 62px); line-height: 1.32; letter-spacing: .04em; margin-bottom: clamp(22px, 3vw, 36px); }
.hero__text { max-width: 30em; }
.hero__text > p { font-size: 1.04em; }
.hero__note { font-size: .86em !important; color: var(--usu); margin-top: 1.4em; padding-left: 14px; border-left: 1px solid var(--usu); }

/* 「永」を一画ずつ（JS が付けた .js のときだけ。動きを減らす設定では .js が付かない） */
.js .ei-band { transform-box: fill-box; animation: 0.35s cubic-bezier(.5, .05, .35, 1) both; animation-delay: calc(var(--i) * .43s + .2s); }
.js .ei-band--x { transform-origin: 100% 50%; animation-name: kakuX; }
.js .ei-band--y { transform-origin: 50% 100%; animation-name: kakuY; }
@keyframes kakuX { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes kakuY { from { transform: scaleY(1); } to { transform: scaleY(0); } }
.js .hero__seal { transform-box: fill-box; transform-origin: 50% 50%; animation: osu .3s cubic-bezier(.3, .6, .4, 1) 2.85s both; }
@keyframes osu { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }

/* ---------------- 子どもの部・大人の部 */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: clamp(20px, 4vw, 56px); align-items: start; }
.pair__one--low { margin-top: 24px; }
.pair__one p { margin-bottom: .55em; }
.pair__after { margin-top: 34px; }

/* ---------------- 1回のお稽古の流れ（Z-3） */
.fig { margin: 0; }
.fig__title { font-family: var(--brush); font-size: clamp(18px, 1rem + .4vw, 22px); letter-spacing: .06em; margin-bottom: 18px; }
.fig__cap { font-size: .84em; color: var(--usu); margin-top: 22px; line-height: 1.8; }
.flow__track { position: relative; }
.flow__line { position: absolute; left: 0; right: 0; top: 13px; width: 100%; height: 14px; fill: var(--sumi); }
.flow__line--v { display: none; }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; }
.flow__step { position: relative; padding-top: 50px; }
.flow__dot { position: absolute; top: 8px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--sumi); }
.flow__dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--sumi); }
.flow__name { display: block; font-size: .98em; line-height: 1.7; }
.flow__sub { display: block; font-size: .82em; color: var(--usu); line-height: 1.7; margin-top: 6px; }
.flow--full .flow__track { padding-top: 66px; }
.flow--full .flow__line { top: 79px; }
.flow--full .flow__dot { top: 74px; }
.flow--full .flow__step { padding-top: 0; }
.flow--full .flow__steps { padding-top: 50px; }
.flow--full .flow__steps .flow__dot { top: -42px; }
/* くり返しの弧：3つ目と4つ目の上 */
.flow__step { position: relative; }
.flow__back { position: absolute; left: calc(-100% - 6px); width: calc(100% + 18px); top: -104px; height: 56px; }
.flow__arc-h { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; overflow: visible; }
.flow__arc-v { display: none; }
.flow__back-t { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--usu); background: var(--paper); padding: 0 6px; white-space: nowrap; line-height: 1.4; }
.sec--flow .flow { max-width: 980px; }

/* ---------------- 級と段（Z-1） */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.kyu__line { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.kyu--mini .kyu__line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kyu__line::before { content: ""; position: absolute; left: 12px; right: 0; top: 11px; height: 2px; background: var(--sumi); }
.kyu__pt { position: relative; padding-top: 42px; padding-right: 10px; }
.kyu__dot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--sumi); }
.kyu__when { display: block; font-size: .8em; color: var(--usu); line-height: 1.5; margin-bottom: 2px; }
.kyu__what { display: inline-block; position: relative; line-height: 1.6; }
.kyu__ring { position: absolute; left: -.7em; right: -.7em; top: -.55em; bottom: -.5em; width: calc(100% + 1.4em); height: calc(100% + 1.05em); overflow: visible; max-width: none; }
.kyu__note { display: block; font-size: .8em; color: var(--usu); margin-top: 14px; line-height: 1.6; }
.kyu--mini { background: var(--paper); border: 1px solid var(--usu); padding: 28px 26px 30px; }
.kyu--full .kyu__line { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* 段の紙片の階段 */
.stair { list-style: none; margin: 54px 0 0; padding: 0; display: flex; align-items: flex-end; gap: 6px; min-height: 230px; }
.stair__slip { position: relative; flex: 1 1 0; min-width: 0; margin-bottom: calc(var(--n) * 12px); }
.stair__slip > span:last-child { display: block; background: var(--paper); border: 1px solid var(--usu); text-align: center; padding: 14px 0 12px; font-size: .9em; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stair__slip--dan { margin-left: 22px; }
.stair__slip--dan > span:last-child { border-color: var(--sumi); font-weight: 600; }
.stair__slip--more > span:last-child { border-style: dashed; color: var(--usu); }
.stair__lab { position: absolute; bottom: calc(100% + 8px); left: -16px; font-size: 12.5px; color: var(--usu); white-space: nowrap; }

/* ---------------- 月謝 */
.hanshi--wide { max-width: 760px; }
.fee { display: grid; grid-template-columns: 1fr 1fr; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.fee__one { display: flex; flex-direction: column; align-items: flex-start; padding: 0 clamp(8px, 3vw, 40px); }
.fee__one + .fee__one { border-left: 1px solid var(--usu); }
.fee__bu { font-family: var(--brush); font-size: clamp(20px, 1.1rem + .6vw, 26px); }
.fee__yen { margin-top: 10px; font-size: 1.05em; }
.fee__yen b { font-size: clamp(34px, 1.6rem + 1.6vw, 50px); letter-spacing: .02em; line-height: 1.2; margin: 0 .08em; }
.fee__kai { font-size: .9em; color: var(--usu); }

/* ---------------- 罫で区切った行 */
.rows { margin: 0; max-width: 860px; border-top: 1px solid var(--usu); }
.rows__one { display: grid; grid-template-columns: 9em 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--usu); }
.rows dt { font-family: var(--brush); font-size: clamp(20px, 1.1rem + .5vw, 25px); line-height: 1.5; }
.rows dd { margin: 0; }

/* ---------------- 先生のこと（花） */
.split--hana { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; }
.hana svg { width: 100%; height: auto; }
.hana use { fill: var(--sumi); }

/* ---------------- 表 */
.tbl { width: 100%; max-width: 900px; border-collapse: collapse; border-top: 1px solid var(--usu); }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--usu); }
.tbl th { width: 9.5em; font-weight: 600; padding-right: 20px; font-size: .95em; white-space: nowrap; }
.tbl a { text-decoration-color: var(--usu); text-underline-offset: .3em; }
.hanshi .tbl { border-top-color: var(--usu); }

/* ---------------- 下層ページの頭 */
.crumb { max-width: var(--w); margin: 0 auto; padding: 18px var(--pad) 0; font-size: 13px; color: var(--usu); }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumb li + li::before { content: "／"; margin-right: 4px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.ph { padding: clamp(28px, 4vw, 52px) 0 0; }
.ph__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ph__paper { width: clamp(132px, calc(30vh / 1.37), 250px); }
.ph__paper svg { width: 100%; height: auto; }
.ph__paper use { fill: var(--sumi); }
.ph__title { font-family: var(--brush); font-size: clamp(34px, 1.8rem + 2vw, 58px); line-height: 1.3; letter-spacing: .05em; margin-bottom: 20px; }
.ph__lead { max-width: 34em; }
.ph--nochar .ph__in { grid-template-columns: minmax(0, 1fr); }
.ph--nochar .ph__title { padding-bottom: 18px; position: relative; }
.ph--nochar .ph__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 6px; background: var(--sumi); }

.pagefoot { padding: 0 0 clamp(64px, 8vw, 104px); }
.pagefoot__in { display: flex; flex-wrap: wrap; gap: 14px 40px; border-top: 1px solid var(--usu); padding-top: 32px; }

/* ---------------- フッター（墨で面を塗るのはここだけ） */
.ft { background: var(--sumi); color: #EDE7D6; padding: 60px 0 40px; }
.ft__in { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: auto 1fr; gap: 26px 64px; }
.ft .logo { height: 54px; }
.ft__info p { margin: 0 0 4px; font-size: 14.5px; }
.ft__info a { color: inherit; text-decoration-color: #8F8A80; text-underline-offset: .3em; }
.ft__nav { grid-column: 1 / -1; }
.ft__nav ul { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid #4A4844; display: flex; flex-wrap: wrap; gap: 8px 30px; }
.ft__nav a { color: #EDE7D6; text-decoration: none; font-size: 14px; }
.ft__nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.ft__copy { grid-column: 1 / -1; margin: 6px 0 0; font-size: 12.5px; color: #B9B3A6; }

/* ---------------- 見えたら出す（.js のときだけ隠す） */
.js .fade { opacity: 0; transition: opacity .5s ease; }
.js .fade.is-in { opacity: 1; }
.js .fade .maru__ring, .js .fade .kyu__ring, .js .fade .haru__mark { opacity: 0; transition: opacity .4s ease .3s; }
.js .fade.is-in .maru__ring, .js .fade.is-in .kyu__ring, .js .fade.is-in .haru__mark { opacity: 1; }

/* ================================================================ 下層ページの部品 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec--first { padding-top: clamp(40px, 5vw, 64px); }
.hanshi--fig { padding: clamp(24px, 3.4vw, 48px); background-image: none; }
.hanshi--gap { margin: 34px 0; }
.prose--after { margin-top: 34px; }
.prose--r { margin-left: auto; }
.prose--small { font-size: .9em; max-width: 46em; }
.sec--kojin, .sec--tokusho { padding-top: clamp(56px, 7vw, 96px); }
.sec__title--s { padding-top: 22px; border-top: 1px solid var(--usu); }

/* 紙片の中の表 */
.tbl--in { border-top: 0; }
.tbl--in tr:last-child th, .tbl--in tr:last-child td { border-bottom: 0; }
.tbl--in th { width: 8em; }
.tbl--one { max-width: 520px; }
.tbl--small { font-size: .9em; }
.tbl--small th { width: 11em; }

/* クラス：紙片と本文を横に。大人の部は左右を入れかえる */
.cls { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cls--r .cls__paper { order: 2; }
.cls__paper { padding-top: 18px; padding-bottom: 18px; }

/* 時間割（Z-2） */
.tt__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 22px; }
.tt__head .fig__title { margin: 0; }
.tt__legend { margin: 0; font-size: .82em; color: var(--usu); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tt__lg { display: inline-flex; align-items: center; gap: 6px; }
.nw { white-space: nowrap; }
.tt__sw { display: inline-block; width: 18px; height: 12px; border: 1.5px solid var(--sumi); vertical-align: middle; }
.tt__sw--o { border-color: var(--shu); }
.tt__table { position: relative; display: grid; grid-template-columns: 58px repeat(4, minmax(0, 1fr)); grid-template-rows: 40px repeat(21, 26px); column-gap: 10px; }
.tt__day { font-family: var(--brush); font-size: 20px; text-align: center; align-self: center; }
.tt__time { grid-column: 1; font-size: 12.5px; color: var(--usu); font-variant-numeric: tabular-nums; line-height: 1; transform: translateY(-6px); }
.tt__grid {
  position: relative; border: 1px dashed var(--usu); pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(107, 104, 98, .45) 25px 26px);
}
.tt__grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px dashed var(--usu); }
.tt__grid::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--usu); }
.tt__blk { position: relative; z-index: 1; background: var(--paper); border: 1.5px solid var(--sumi); margin: 3px 6px; padding: 6px 10px; display: flex; flex-direction: column; justify-content: center; line-height: 1.35; }
.tt__blk--o { border-color: var(--shu); }
.tt__who { font-family: var(--brush); font-size: 16px; }
.tt__t { font-size: 13px; font-variant-numeric: tabular-nums; }
.tt__list { display: none; }

/* 机の上（Z-4） */
.desk__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.desk__who { font-family: var(--brush); font-size: 20px; margin: 0 0 6px; }
.desk__svg { width: 100%; height: auto; }
.d-desk { fill: none; stroke: var(--sumi); stroke-width: 1.5; }
.d-shita { fill: var(--tint); stroke: none; }
.d-hanshi { fill: var(--paper); stroke: var(--sumi); stroke-width: 1; }
.d-fold { stroke: rgba(17, 17, 17, .12); stroke-width: 1; }
.d-bun { fill: var(--sumi); }
.d-line { fill: none; stroke: var(--sumi); stroke-width: 1.5; stroke-linecap: round; }
.d-umi { fill: var(--tint); stroke: none; }
.d-ho { fill: var(--sumi); }
.d-dash { fill: none; stroke: var(--usu); stroke-width: 1; stroke-dasharray: 4 4; }
.d-lead { stroke: var(--usu); stroke-width: 1; }
.d-lab { font-family: var(--mincho); font-size: 17px; fill: var(--sumi); }
.desk use { fill: var(--sumi); }
.d-bag { fill: var(--paper); stroke: var(--sumi); stroke-width: 1.5; }
.d-brush { font-family: var(--brush); fill: var(--sumi); }

/* 月謝の表 */
.hanshi--table { padding-top: clamp(30px, 4vw, 48px); }
.money { width: 100%; border-collapse: collapse; }
.money th, .money td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--usu); vertical-align: baseline; }
.money thead th { font-weight: 400; font-size: .86em; color: var(--usu); padding-top: 0; }
.money tbody th { font-family: var(--brush); font-weight: 400; font-size: 1.25em; width: 7.6em; white-space: nowrap; }
.money td b { font-size: 1.5em; }
.money__what { font-size: .88em; color: var(--usu); width: 44%; }
.money__sum th, .money__sum td { border-bottom: 0; padding-top: 22px; }
.money__sum { border-top: 2px solid var(--sumi); }

/* 払い方：月謝袋 */
.split--fukuro { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); align-items: center; max-width: 820px; }
.fukuro svg { width: 100%; height: auto; }

/* 体験 */
.taiken { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.taiken__paper { padding-top: 18px; padding-bottom: 18px; }

/* 決まり：紙片の上端を文鎮で押さえた本文 */
.hanshi--rule { max-width: 860px; padding-top: clamp(40px, 5vw, 56px); }
.hanshi--rule .acts { margin-top: 24px; }
.hanshi--rule .small { margin-top: 14px; }
.todoke { max-width: 860px; margin-top: 30px; }
.todoke__h { font-family: var(--brush); font-size: 21px; margin-bottom: 10px; }
.todoke__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--usu); }
.todoke__list li { padding: 12px 0 12px 1.6em; border-bottom: 1px solid var(--usu); position: relative; }
.todoke__list li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: .7em; height: 3px; background: var(--sumi); }

/* 先生：ごあいさつと「春」 */
.aisatsu { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.aisatsu__paper { padding-bottom: 36px; }
.aisatsu__sign { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--brush); font-size: 1.15em; }
.haru__paper { background: var(--paper); border: 1px solid var(--usu); }
.haru__paper svg { width: 100%; height: auto; }
.haru__paper use { fill: var(--sumi); }
.haru__sen { fill: none; stroke: var(--shu); stroke-width: 14; stroke-linecap: round; }
.haru__key { font-size: .88em; color: var(--usu); margin-top: 14px; display: flex; flex-wrap: wrap; gap: 0 1.4em; }
.haru__key span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--shu); border-radius: 50%; }
.haru__key span + span::before { border-radius: 0; border: 0; height: 3px; width: 14px; vertical-align: 4px; background: var(--shu); }

/* 和室の図 */
.split--room { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; }
.washitsu svg { width: 100%; height: auto; }
.w-room { fill: none; stroke: var(--sumi); stroke-width: 2.5; }
.w-mat { fill: none; stroke: var(--usu); stroke-width: 1; }
.w-desk { fill: var(--tint); stroke: var(--sumi); stroke-width: 1.5; }
.w-desk--t { fill: var(--paper); }
.w-win { stroke: var(--sumi); stroke-width: 1; stroke-dasharray: 10 3; }
.w-himo { stroke: var(--sumi); stroke-width: 1; }
.w-kami { fill: var(--paper); stroke: var(--sumi); stroke-width: 1; }
.w-gap { fill: var(--paper); }
.w-door { stroke: var(--sumi); stroke-width: 2; }

@media (max-width: 860px) {
  .feewrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cls, .taiken, .aisatsu, .split--room, .split--fukuro { grid-template-columns: minmax(0, 1fr); }
  .cls--r .cls__paper { order: 0; }
  .haru { max-width: 280px; }
  .split--fukuro .split__fig { max-width: 200px; }
}
@media (max-width: 760px) {
  .tt__table { display: none; }
  .tt__list { display: grid; gap: 18px; }
  .tt__dayrow { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 12px; align-items: start; border-top: 1px dashed var(--usu); padding-top: 14px; }
  .tt__dayname { font-family: var(--brush); font-size: 20px; margin: 0; }
  .tt__dayrow ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .tt__list .tt__blk { margin: 0; flex-direction: row; gap: 14px; align-items: baseline; }
  .desk__pair { grid-template-columns: minmax(0, 1fr); }
  .d-lab { font-size: 24px; }
  .money thead { display: none; }
  .money, .money tbody, .money tr, .money th, .money td { display: block; width: auto; }
  .money tr { padding: 14px 0; border-bottom: 1px solid var(--usu); }
  .money th, .money td { border: 0; padding: 2px 0; }
  .money td[data-l] { display: flex; justify-content: space-between; align-items: baseline; max-width: 300px; }
  .money td[data-l]::before { content: attr(data-l); font-size: .86em; color: var(--usu); }
  .money__what--empty { display: none !important; }
  .money__sum { border-top: 2px solid var(--sumi); border-bottom: 0 !important; }
  .tbl--small th { width: auto; }
}

/* ================================================================ 幅ごと */
@media (max-width: 1080px) {
  .gnav { gap: 20px; }
  .gnav ul { gap: 16px; }
  .gnav a { font-size: 14px; }
}
@media (max-width: 980px) {
  .menu {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 4px;
    background: none; border: 0; font: 400 14px/1 var(--mincho); letter-spacing: .1em; color: var(--sumi); cursor: pointer;
  }
  .menu__bars { position: relative; width: 22px; height: 12px; }
  .menu__bars::before, .menu__bars::after { content: ""; position: absolute; left: 0; height: 3px; background: var(--sumi); transition: transform .25s; }
  .menu__bars::before { top: 0; width: 22px; }
  .menu__bars::after { bottom: 0; width: 15px; }
  .is-menu .menu__bars::before { transform: translateY(4.5px) rotate(12deg); }
  .is-menu .menu__bars::after { transform: translateY(-4.5px) rotate(-12deg) scaleX(1.46); transform-origin: 0 50%; }
  .gnav {
    position: fixed; left: 0; right: 0; top: 77px; bottom: 0; margin: 0; z-index: 29;
    background: var(--ground); flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px var(--pad) 40px; overflow-y: auto;
    visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s;
  }
  .is-menu .gnav { visibility: visible; opacity: 1; transition: opacity .2s; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid var(--usu); }
  .gnav a { display: block; font-size: 17px; padding: 18px 0; }
  .gnav a[aria-current="page"]::after { left: 0; margin-left: 0; bottom: 12px; }
  .gnav .gnav__btn { display: inline-flex; margin-top: 28px; align-self: flex-start; }
  .hd__btn { margin-left: auto; }
  .hd__btn + .menu { margin-left: 8px; }
  .is-menu { overflow: hidden; }
}
@media (max-width: 860px) {
  .feewrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .split, .split--hana { grid-template-columns: minmax(0, 1fr); }
  .split--hana .split__fig { max-width: 240px; }
  .kyu--full .kyu__line { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .kyu--full .kyu__line::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; }
  .kyu--full .kyu__pt { padding: 0 0 0 44px; min-height: 26px; }
  .kyu--full .kyu__note { margin-top: 12px; }
  /* 段の紙片：左下から右上へ、縦に重ねる */
  .stair { flex-direction: column-reverse; align-items: flex-start; gap: 6px; min-height: 0; margin-top: 40px; }
  .stair__slip { flex: none; width: 92px; margin: 0 0 0 calc(var(--n) * 14px); }
  .stair__slip > span:last-child { padding: 6px 0 5px; }
  .stair__slip--dan { margin-bottom: 30px; margin-left: calc(var(--n) * 14px); }
  .stair__lab { bottom: auto; top: 50%; left: calc(100% + 12px); transform: translateY(-50%); }
}
@media (max-width: 760px) {

  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero__paper { width: 100%; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair__one--low { margin-top: 0; }
  .hanshi--tate { aspect-ratio: auto; min-height: 0; }
  .flow__line { display: none; }
  .flow__line--v { display: block; left: 3px; right: auto; top: 12px; bottom: 12px; width: 18px; height: calc(100% - 24px); }
  .flow--full .flow__steps { padding-left: 36px; }
  .flow--full .flow__line--v { left: 39px; top: 12px; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flow__step { padding: 0 0 0 44px; min-height: 26px; }
  .flow__dot { top: 2px; }
  .flow--full .flow__track { padding-top: 0; }
  .flow--full .flow__steps { padding-top: 0; }
  .flow--full .flow__steps .flow__dot { top: 2px; }
  .flow__back { position: static; width: auto; height: auto; display: block; }
  .flow__arc-h { display: none; }
  .flow__arc-v { display: block; position: absolute; left: -34px; top: -38px; width: 26px; height: 56px; }
  .flow__back-t { position: static; transform: none; display: block; padding: 0; margin-top: 4px; background: none; }
  .fee { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .fee__one { padding: 0; }
  .fee__one + .fee__one { border-left: 0; border-top: 1px solid var(--usu); padding-top: 24px; }
  .rows__one { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .tbl th, .tbl td { display: block; width: auto; border: 0; padding: 0; }
  .tbl tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--usu); }
  .tbl th { margin-bottom: 4px; font-size: .9em; }
  .ph__in { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; }
  .ph__paper { width: 112px; }
  .ph__lead { grid-column: 1 / -1; }
  .ph__text { display: contents; }
  .ph__title { align-self: center; margin-bottom: 0; }
  .ft__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hd__in { height: 64px; gap: 10px; }
  .gnav { top: 65px; }
  .logo { height: 40px; }
  .hd__btn { display: none; }
  .hd__btn + .menu { margin-left: auto; }
  .demo { margin-top: -10px; }
  html { scroll-padding-top: 76px; }
  .acts .btn { width: 100%; }
  .sec__title { font-size: 27px; }
  .ph__title { font-size: 28px; }
  .acts { gap: 16px; }
}
@media (max-width: 380px) {
  .logo { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .hd, .menu, .skip { display: none; }
  .js .fade { opacity: 1; }
}
