/* 予約システム デモ
   レイアウト: 生徒＝スマホ1列（チケットの財布が先頭）／スタッフ＝左にメニュー・右に作業面
   配色は確認②で3案から選ぶまでの仮（案1: 白＋深い紺）。グリッチ等の効果は使わない（決定110） */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --sunken: #eceff4;
  --ink: #18213a;
  --muted: #5b6478;
  --line: #d9dee7;
  --accent: #1f3b70;
  --accent-ink: #ffffff;
  --accent-soft: #e5ebf5;
  --nominate: #85570f;
  --nominate-soft: #f5ecda;
  --ok: #1d7347;
  --ok-soft: #e1f1e8;
  --warn: #8f5500;
  --warn-soft: #fbefd9;
  --danger: #ad2a20;
  --danger-soft: #f9e5e2;
  --focus: #3d6bd1;
  --shadow: 0 1px 2px rgba(24, 33, 58, .06), 0 4px 16px rgba(24, 33, 58, .06);

  --font-display: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;

  --fs-xs: .78rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.2rem; --fs-xl: 1.5rem;
  --r-sm: 6px; --r-md: 10px;
  --tap: 48px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1320; --surface: #161d2c; --sunken: #1c2436; --ink: #e5e9f1; --muted: #9aa3b6; --line: #2a3347;
    --accent: #93b2ea; --accent-ink: #0e1320; --accent-soft: #1f2b45;
    --nominate: #e3b968; --nominate-soft: #2f2616; --ok: #6fcf9c; --ok-soft: #16301f;
    --warn: #f0b45c; --warn-soft: #33250e; --danger: #f08a80; --danger-soft: #3a1b18; --focus: #93b2ea;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1320; --surface: #161d2c; --sunken: #1c2436; --ink: #e5e9f1; --muted: #9aa3b6; --line: #2a3347;
  --accent: #93b2ea; --accent-ink: #0e1320; --accent-soft: #1f2b45;
  --nominate: #e3b968; --nominate-soft: #2f2616; --ok: #6fcf9c; --ok-soft: #16301f;
  --warn: #f0b45c; --warn-soft: #33250e; --danger: #f08a80; --danger-soft: #3a1b18; --focus: #93b2ea;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-lg); } h3 { font-size: var(--fs-md); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- デモの帯 ---- */
.demo-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 16px; background: var(--ink); color: var(--bg); font-size: var(--fs-xs);
}
.demo-bar strong { font-family: var(--font-display); letter-spacing: .06em; }
.demo-bar label { display: flex; align-items: center; gap: 6px; }
.demo-bar select { background: var(--bg); color: var(--ink); border: 0; border-radius: var(--r-sm); padding: 4px 6px; max-width: 60vw; }
.demo-bar .spacer { flex: 1; }
@media (max-width: 480px) { .demo-bar .demo-note { display: none; } }
.demo-bar button { background: transparent; color: var(--bg); border: 1px solid currentColor; border-radius: var(--r-sm); padding: 3px 8px; cursor: pointer; }

/* ---- 共通の部品 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.big { min-height: var(--tap); width: 100%; font-size: var(--fs-md); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); padding-inline: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; background: var(--sunken); color: var(--muted); white-space: nowrap;
}
.pill.wrap { white-space: normal; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.nominate { background: var(--nominate-soft); color: var(--nominate); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.notice { border-radius: var(--r-md); padding: 10px 12px; font-size: var(--fs-sm); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.label { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .08em; font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; }
/* 会員のページの「紹介した人」と友達紹介特典の付与（2026-11-24）。名前と状態（付与済み・ボタン）を1行に。狭いときは折り返す */
.ref-list { display: grid; gap: 6px; }
.ref-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.ref-ask { display: grid; gap: 4px; justify-items: start; }
/* 会員のページの左（会員情報・チケット）: 中の折りたたみ（持っているチケット・取得履歴）の表が広くても、ページの横にはみ出さず表の中で横に動かす
   （グリッドの子は中身の幅より縮まないため。前から取得履歴を開くと数px はみ出していた） */
.m-left > .panel > details { min-width: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 8px 14px; min-height: 40px; cursor: pointer; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.field { display: grid; gap: 4px; }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
textarea { resize: vertical; line-height: 1.6; }
/* 入力の誤りを欄の下に出す（会員登録・会員情報・2026-11-24） */
.field-err { margin: 0; color: var(--danger); font-size: var(--fs-xs); font-weight: 700; }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
/* 生年月日: 年・月・日の3つの選ぶ欄を横に並べる（スマホ幅でもはみ出さない） */
/* 欄が複数ある項目（電話番号・生年月日・郵便番号）は、fieldset と legend を使わない（iPhone の Safari で、見出しが1文字ずつ縦に折れるため・2026-11-24 実機で発生）。
   div に role="group" と aria-labelledby を付けて、見出しは div にする。見張りは booking/app/test/no-legend.test.js */
.field[role="group"] { min-width: 0; }
.bday-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.bday-row select { min-width: 0; }
/* 郵便番号: 3桁 － 4桁 の2つの欄を1行に（スマホ幅390でも収まる・押しやすい高さは .field input の44px） */
.zip-row { display: flex; align-items: center; gap: 8px; }
.field .zip-row input { width: 5.5em; flex: 0 0 auto; text-align: center; letter-spacing: .08em; }
.field .zip-row input[data-zip="b"] { width: 6.5em; }
.zip-dash { color: var(--muted); font-weight: 700; }
/* 電話番号: 3つの欄と「－」2つを1行に（スマホ幅390でも収まる。欄は幅を分け合う） */
.tel-row { display: flex; align-items: center; gap: 6px; }
.field .tel-row input { flex: 1 1 0; min-width: 0; max-width: 7em; text-align: center; letter-spacing: .06em; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.choice .grow { flex: 1; min-width: 0; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-md); box-shadow: var(--shadow);
  font-size: var(--fs-sm); max-width: calc(100vw - 32px);
  pointer-events: none; /* 知らせは読むだけ。出ているあいだも下のボタンを押せるように（最長8秒出すため・#96） */
}
.empty { padding: 20px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }

/* ---- チケット（券の半券） ---- */
.wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.stub {
  position: relative; display: grid; gap: 2px; padding: 10px 12px 10px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.stub::before { /* ミシン目 */
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; border-left: 2px dashed var(--line);
}
.stub .kind { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; }
.stub .count { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; line-height: 1.1; }
.stub .count small { font-size: var(--fs-sm); font-weight: 500; margin-left: 2px; }
.stub.nominate .count { color: var(--nominate); }
.stub.zero .count { color: var(--muted); }
.stub-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 8px 12px 8px 18px; position: relative; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.stub-line::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; border-left: 2px dashed var(--line); }
.stub-line:last-child { border-bottom: 0; }

/* ---- 生徒（スマホ1列） ---- */
.m-wrap { max-width: 460px; margin: 0 auto; padding-inline: 16px; padding-block: 16px 40px; display: grid; gap: 20px; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-head .school { font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--accent); font-weight: 700; padding: 8px 0; cursor: pointer; min-height: 44px; }
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.entry button {
  min-height: 92px; border-radius: var(--r-md); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); cursor: pointer; display: grid; place-items: center; gap: 2px; padding: 12px;
}
.entry button + button { background: var(--surface); color: var(--accent); }
.entry small { font-weight: 500; font-size: var(--fs-xs); opacity: .85; }
.next-card { display: grid; gap: 6px; }
.next-card .when { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 700; }
.list-link { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; min-height: var(--tap); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-weight: 700; text-align: left; }
.days { display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)) auto; gap: 4px; align-items: stretch; }
.days .nav { border: 0; background: none; color: var(--accent); font-size: var(--fs-lg); cursor: pointer; padding: 0 4px; min-width: 32px; }
.day {
  display: grid; justify-items: center; gap: 0; padding: 6px 0; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; min-height: 60px; font-size: var(--fs-xs);
}
.day b { font-family: var(--font-display); font-size: var(--fs-md); }
.day .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 2px; }
.day.none .dot { background: transparent; }
.day.none { color: var(--muted); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day[aria-pressed="true"] .dot { background: var(--accent-ink); }
.day.sun b { color: var(--danger); } .day.sat b { color: var(--accent); }
.day[aria-pressed="true"] b { color: inherit; }
.times { display: grid; gap: 8px; }
.time-row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.time-row .t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); line-height: 40px; }
.time-row.full { background: var(--sunken); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--surface); color: var(--accent); font-weight: 700; cursor: pointer; font-size: var(--fs-sm);
}
.chip:hover { background: var(--accent-soft); }
.chip.hl { background: var(--accent); color: var(--accent-ink); }
.teacher { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; text-align: left; width: 100%; }
.avatar { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--sunken); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--muted); }
.avatar.sm { width: 36px; height: 36px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.teacher .name { font-family: var(--font-display); font-weight: 700; }
.date-group { display: grid; gap: 6px; }
.date-group h3 { font-size: var(--fs-sm); color: var(--muted); }
.summary { display: grid; gap: 0; }
.summary > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); font-size: var(--fs-sm); } .summary dd { margin: 0; font-weight: 700; min-width: 0; }
.price { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
/* 入れ替えが起きる予約の支払いの欄: 「この予約は、お支払い済みのチケットを使います」＋まだお支払いのない分の行き先（オーナーの確認 2026-11-21） */
.pay-swap { display: block; line-height: 1.5; }
.pay-shift { margin-top: 4px; font-weight: 400; line-height: 1.5; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 32px; font-weight: 700; margin: 0 auto; }
.bk { display: grid; gap: 6px; }
.bk .when { font-family: var(--font-display); font-weight: 700; }
details > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0; }

/* ---- はじめの画面 ---- */
.start { max-width: 920px; margin: 0 auto; padding-inline: 16px; padding-block: 28px 48px; display: grid; gap: 24px; }
.start .personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.persona { display: grid; gap: 10px; align-content: start; }
.persona h2 { font-size: var(--fs-md); }
.login-box { display: grid; gap: 10px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--tap); border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; width: 100%; }
.gmark { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--accent); border-right-color: var(--nominate); }

/* ---- スタッフ（左メニュー＋作業面） ---- */
.s-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 40px); }
.s-nav { background: var(--surface); border-right: 1px solid var(--line); padding-block: 16px; padding-inline: 12px; display: grid; gap: 4px; align-content: start; }
.s-nav .who { padding: 4px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.s-nav .who b { font-family: var(--font-display); display: block; }
.s-nav button { text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-weight: 700; color: var(--muted); }
.s-nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.s-main { padding-inline: 24px; padding-block: 20px 48px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.s-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.split { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.lesson-list { display: grid; gap: 6px; }
.lesson {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer;
}
.lesson .t { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.lesson[aria-current="true"] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.lesson.dim { opacity: .6; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: baseline; }
.card-head h2 { font-size: var(--fs-xl); }
.memo-list { display: grid; gap: 10px; }
.memo { border-left: 3px solid var(--line); padding-left: 12px; font-size: var(--fs-sm); white-space: pre-wrap; }
.memo .meta { color: var(--muted); font-size: var(--fs-xs); }
.slot-grid { display: grid; gap: 10px; }
.confirm-box { border: 2px solid var(--accent); border-radius: var(--r-md); padding: 14px; display: grid; gap: 10px; background: var(--surface); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; letter-spacing: .04em; background: var(--sunken); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--accent-soft); }
.ledger td { min-width: 150px; }
.ledger td.time { min-width: 0; font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.bk-cell { display: grid; gap: 2px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--accent-soft); border: 0; width: 100%; text-align: left; cursor: pointer; font-size: var(--fs-xs); }
.bk-cell b { font-size: var(--fs-sm); }
.bk-cell.done { background: var(--sunken); }
.bk-cell.first { box-shadow: inset 3px 0 0 var(--ok); }
.shift-table td { min-width: 104px; }
.shift-cell { width: 100%; min-height: 40px; border: 1px dashed var(--line); background: transparent; border-radius: var(--r-sm); cursor: pointer; font-weight: 700; padding: 4px; }
.shift-cell.on { border-style: solid; background: var(--accent-soft); color: var(--accent); }
.usage { display: grid; grid-template-columns: repeat(13, 1fr); gap: 1px; margin-top: 4px; }
.usage span { height: 14px; background: var(--sunken); }
.usage span.l1 { background: var(--accent-soft); } .usage span.l2 { background: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.usage span.l3 { background: var(--accent); } .usage span.over { background: var(--danger); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kpi .v { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 700; }
.drawer { position: sticky; top: 56px; }

@media (max-width: 860px) {
  .s-wrap { grid-template-columns: minmax(0, 1fr); }
  .s-nav { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; padding-block: 8px; }
  .s-nav .who { width: 100%; padding-bottom: 6px; margin-bottom: 2px; }
  .s-main { padding-inline: 16px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .drawer { position: static; }
}

/* ---- 2026-10-02 追加: 週/月の切り替え・複数選択・下のメニュー・レッスンメモ ---- */
.center { text-align: center; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.sub { font-size: var(--fs-md); }
.m-head .back { font-size: var(--fs-xl); line-height: 1; padding: 6px 8px 6px 0; min-width: 44px; }
.m-title { font-size: var(--fs-lg); font-family: var(--font-display); font-weight: 700; margin: 0; flex: 1; }
.m-head { min-height: 48px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; }
.small-btn { min-height: 36px; padding: 4px 12px; font-size: var(--fs-sm); }
.next-card { background: var(--sunken); border-radius: var(--r-md); padding: 14px 16px; }
.entry-rows { display: grid; gap: 12px; }
.entry-row {
  display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 20px;
  border-radius: var(--r-md); border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); cursor: pointer; text-align: left;
}
.entry-row.primary { background: var(--accent); color: var(--accent-ink); }
.cart-link { border-color: var(--accent); color: var(--accent); }
.has-tabs { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.has-sel { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar button { display: grid; justify-items: center; gap: 2px; min-height: 60px; padding-top: 8px; border: 0; background: transparent; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; cursor: pointer; }
.tabbar .tab-ic { width: 20px; height: 20px; border-radius: 5px; border: 2px solid currentColor; }
.tabbar button[aria-current="page"] { color: var(--accent); }
.tabbar button[aria-current="page"] .tab-ic { background: currentColor; }
.selbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow);
}
.chip.on { background: var(--accent); color: var(--accent-ink); }
.chip.on .pill { background: var(--accent-ink); }
.slot-note { line-height: 40px; color: var(--muted); }
.days .nav[disabled], .cal .nav[disabled], .week-nav .nav[disabled] { opacity: .3; cursor: default; }
.cal { display: grid; gap: 6px; }
.cal-head, .week-nav { display: flex; justify-content: space-between; align-items: center; }
.cal-head b, .week-nav b { font-family: var(--font-display); }
.cal .nav, .week-nav .nav { border: 0; background: none; color: var(--accent); font-size: var(--fs-xl); cursor: pointer; min-width: 44px; min-height: 44px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: var(--fs-xs); color: var(--muted); }
.cal-wd.sat { color: var(--accent); } .cal-wd.sun { color: var(--danger); }
.cal-day { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 46px; border: 0; border-radius: var(--r-sm); background: transparent; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal-day b { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-md); }
.cal-day .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-day.off { color: var(--muted); opacity: .45; cursor: default; }
.cal-day.off .dot { background: transparent; }
.cal-day[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cal-day[aria-pressed="true"] .dot { background: var(--accent-ink); }
.full-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.lines { display: grid; gap: 0; padding: 4px 16px; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.was { color: var(--muted); text-decoration: line-through; }
.notice.accent-n { background: var(--accent-soft); color: var(--accent); }
.btn.danger-text, .danger-text { color: var(--danger); }
.gbtn-line .lmark { width: 22px; height: 22px; border-radius: 6px; background: var(--ok); color: var(--surface); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-xs); margin-top: 8px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.methods { border: 0; padding: 0; margin: 0; min-width: 0; }
.methods > .mt-head { display: grid; gap: 2px; margin-bottom: 4px; }
.check-chip { position: relative; display: inline-flex; }
.check-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.check-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.first-box { border: 1px dashed var(--ok); border-radius: var(--r-md); padding: 12px; }

/* ---- 2026-10-02 追加②: 会員のページ・設定・講師側の週/月 ---- */
.member-split { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.3fr); }
.lesson-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; gap: 8px; }
.book-box { border-top: 1px solid var(--line); padding-top: 12px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.set-list { display: grid; }
.set-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.add-row .input { flex: 1; min-width: 160px; }
.field select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
@media (max-width: 860px) { .member-split { grid-template-columns: minmax(0, 1fr); } }

/* ---- メソッドの選択（ステージ › シーズン › 編） ---- */
details.season { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 2px 10px; }
details.season > summary { color: var(--ink); font-weight: 500; padding: 8px 0; min-height: 40px; display: flex; align-items: center; gap: 6px; list-style-position: inside; }
details.season[open] > .chips { padding-bottom: 10px; }
.stage-label { margin-top: 6px; }

/* ---- メソッドのツリー（守・破・離 → シーズン → 編）----
   Canva の図（3つの丸と、シーズンごとの色分け）に寄せた。スマホでも使えるよう上から下へ枝分かれする */
.mtree { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.mt-picked { display: flex; flex-wrap: wrap; gap: 4px; min-height: 24px; align-items: center; }
.mt-level { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mt-seasons, .mt-items { position: relative; margin-left: 22px; padding-left: 18px; padding-top: 6px; }
.mt-seasons::before, .mt-items::before { content: ""; position: absolute; left: 0; top: 0; bottom: 22px; border-left: 2px solid var(--line); }
.mt-seasons > li { position: relative; }
.mt-seasons > li::before { content: ""; position: absolute; left: -18px; top: 24px; width: 16px; border-top: 2px solid var(--line); }
.mt-items { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 4px; }
.mt-items::before { bottom: 4px; border-left-color: var(--c); opacity: .6; }
button.mt-stage, button.mt-season {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 8px 12px; min-height: 48px; cursor: pointer;
}
button.mt-season { border-left: 5px solid var(--c); }
button.mt-stage[aria-expanded="true"], button.mt-season[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
button.mt-season[aria-expanded="true"] { border-left-color: var(--c); }
.mt-label { flex: 1; min-width: 0; display: grid; }
.mt-label .small { color: var(--muted); }
.mt-caret { font-size: 1.25rem; color: var(--muted); transition: transform .15s; }
[aria-expanded="true"] > .mt-caret { transform: rotate(90deg); }
.mt-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-xs); font-weight: 700; display: inline-grid; place-items: center;
}
.mt-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
/* 守・破・離の丸（図の円に寄せる） */
.mt-ring {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.stage1 .mt-ring { background: radial-gradient(circle, var(--surface) 57%, transparent 58%), conic-gradient(#3f7cc4, #47c2c9, #7b5ea7, #3f7cc4); }
.stage2 .mt-ring { background: radial-gradient(circle, var(--surface) 57%, transparent 58%), conic-gradient(#e2574c, #ef7d3c, #e8b931, #6fbf4a, #2bb5a0, #5b8fd9, #9b5de5, #e2574c); }
.stage3 .mt-ring { background: radial-gradient(circle, var(--surface) 57%, transparent 58%), conic-gradient(#1a1a1a 0 50%, #d9d9d9 50% 100%); }
/* 編（押すと色が付く） */
.mt-item { position: relative; display: inline-flex; }
.mt-item input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mt-item span {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--surface); font-size: var(--fs-sm); font-weight: 700; color: var(--ink);
}
.mt-item input:checked + span { background: color-mix(in srgb, var(--c) 82%, #000); border-color: transparent; color: #fff; }
.mt-item input:checked + span::before { content: "✓"; }
.mt-item input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---- 編の下のツリー（例: 準備編 ┗ノイズブレス ┗ピットインブレス ┗サイレントブレス）---- */
.mt-items > li.mt-parent { flex-basis: 100%; }
.mt-prow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
button.mt-subtoggle {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; min-width: 52px; padding: 4px 10px; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); cursor: pointer; font-weight: 700;
}
button.mt-subtoggle[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.mt-sub { position: relative; margin: 6px 0 2px 14px; padding-left: 20px; display: grid; gap: 6px; justify-items: start; }
.mt-sub::before { content: ""; position: absolute; left: 0; top: 0; bottom: 20px; border-left: 2px solid var(--c); opacity: .55; }
.mt-sub > li { position: relative; }
.mt-sub > li::before { content: ""; position: absolute; left: -20px; top: 20px; width: 16px; border-top: 2px solid var(--c); opacity: .55; }
.mt-sub > li.mt-parent { justify-self: stretch; }

/* ---- 生徒のメソッドの進み具合 ---- */
.mp-line { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 4px; }
.mp-bar { position: relative; display: flex; flex: 1; max-width: 220px; height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.mp-bar i { display: block; height: 100%; }
.mp-bar i.d { background: var(--ok); }
.mp-bar i.t { background: var(--accent); }
.mp-num { color: var(--muted); white-space: nowrap; }
.mp-items { position: relative; margin-left: 22px; padding-left: 18px; padding-top: 6px; display: grid; gap: 4px; }
.mp-items::before { content: ""; position: absolute; left: 0; top: 0; bottom: 18px; border-left: 2px solid var(--c); opacity: .55; }
.mp-items > li { position: relative; }
.mp-items > li::before { content: ""; position: absolute; left: -18px; top: 20px; width: 14px; border-top: 2px solid var(--c); opacity: .55; }
.mp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 40px; padding: 4px 8px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.mp-row .mp-name { font-weight: 700; font-size: var(--fs-sm); }
.mp-row .mp-mark { width: 20px; text-align: center; font-weight: 700; }
.mp-row.none { color: var(--muted); }
.mp-row.none .mp-name { font-weight: 500; }
.mp-row.touched .mp-mark { color: var(--accent); }
.mp-row.done { background: var(--ok-soft); border-color: transparent; }
.mp-row.done .mp-mark { color: var(--ok); }
.mp-btn { min-height: 32px; padding: 2px 8px; font-size: var(--fs-xs); margin-left: auto; }
.mp-row .mt-subtoggle { min-height: 32px; }
.mp-legend .mp-row { min-height: 0; padding: 2px 8px; border: 0; }
.mp .mt-sub > li > .mp-row { width: 100%; }
.mp .mt-sub { justify-items: stretch; }

/* ---- 生徒のマイページの進み具合 ---- */
.mp-sum-row { display: flex; align-items: center; gap: 10px; }
.mt-ring.sm { width: 32px; height: 32px; font-size: .9rem; }
.mp-summary .mp-bar { max-width: none; }

/* ---- 2026-10-02 追加④: レッスンメモを大きく・項目に「何を書くか」を添える ---- */
.note-form .nf-title { font-size: var(--fs-lg); margin: 0; }
.nf > label { display: grid; gap: 2px; padding: 0; }
.nf-label { font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
.nf-hint { font-size: var(--fs-sm); color: var(--muted); }
.note-form .field input, .note-form .field textarea { font-size: var(--fs-md); }
.note-form .field textarea::placeholder, .note-form .field input::placeholder,
.member-split .field textarea::placeholder { color: var(--muted); opacity: .6; }
.first-box { background: color-mix(in srgb, var(--ok) 5%, var(--surface)); padding: 14px; }

/* ---- 2026-10-02 追加⑤: 校舎ごとのシフト（週・月）・設定・予約の場所・売上の期間 ---- */
.shift-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.range-label { font-family: var(--font-display); min-width: 9em; text-align: center; }
.shift-table .sticky-col { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; white-space: nowrap; }
.shift-table th.sun { color: var(--danger); } .shift-table th.sat { color: var(--accent); }
.shift-table th.today { background: var(--accent-soft); }
.shift-table.compact td { min-width: 40px; padding: 3px 2px; }
.shift-table.compact th { padding: 4px 2px; font-size: var(--fs-sm); line-height: 1.2; }
.shift-table.compact .shift-cell { min-height: 48px; font-size: var(--fs-xs); line-height: 1.25; padding: 2px; }
.shift-table.compact .pill { padding: 2px 5px; }
.shift-cell.picked { outline: 3px solid var(--focus); outline-offset: 1px; }
.other-campus { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.shift-editor { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; border-color: var(--accent); }
.shift-editor select { width: auto; }
.campus-card .card-head h2 { margin: 0; }
.place { display: block; font-size: var(--fs-sm); color: var(--ink); font-weight: 700; }
.place::before { content: "場所 "; font-weight: 500; color: var(--muted); }
.place.inline { display: inline; }
.place-in { color: var(--ink); }
.kpi .v small { font-size: var(--fs-sm); font-weight: 500; }
.sales-chart { margin: 16px 0; }
.bars { display: flex; align-items: stretch; gap: 2px; height: 200px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bar-col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: var(--r-sm); }
.bar-col:hover, .bar-col:focus-visible { background: var(--sunken); }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: min(70%, 36px); background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; }
.bar.zero { height: 1px !important; background: var(--line); }
.bar-x { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; padding-bottom: 2px; }
.bar-tip { display: none; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 3; background: var(--ink); color: var(--bg); font-size: var(--fs-xs); line-height: 1.4; padding: 6px 8px; border-radius: var(--r-sm); white-space: nowrap; pointer-events: none; }
.bar-col:first-child .bar-tip { left: 0; transform: none; } .bar-col:last-child .bar-tip { left: auto; right: 0; transform: none; }
.bar-col:hover .bar-tip, .bar-col:focus-visible .bar-tip { display: block; }
.row-link { cursor: pointer; } .row-link:hover td { background: var(--sunken); }

/* ---- 2026-10-02 追加⑥: 追加機能（お知らせ・宿題・カレンダー・キャンセル待ち・領収書・休館日・シフト希望・報酬・権限） ---- */
.btn.sm { min-height: 36px; padding: 4px 12px; font-size: var(--fs-sm); }
.notice.info-n { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.notice.ann summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.notice.ann summary::-webkit-details-marker { display: none; }
.notice.ann summary::after { content: "›"; color: var(--muted); transition: transform .15s; }
.notice.ann[open] summary::after { transform: rotate(90deg); }
.notice.ann p { margin: 8px 0 0; }
.hw-card p { margin: 0 0 6px; font-size: var(--fs-md); line-height: 1.7; }
.hw-card { border-left: 4px solid var(--ok); }
.hw-line { margin-top: 4px; }
.pill.seen { font-size: .7rem; vertical-align: 2px; margin-left: 6px; }
.cal-add { gap: 6px; margin-top: 2px; }
.cal-add .btn { min-height: 32px; text-decoration: none; }
.receipt { max-width: 520px; padding: 24px; }
.receipt .r-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 6px; }
.receipt h2 { margin: 0; letter-spacing: .3em; }
.receipt .r-to { font-size: var(--fs-lg); margin: 16px 0 4px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.receipt .r-amount { font-size: 1.8rem; font-weight: 700; text-align: center; margin: 12px 0; padding: 10px; background: var(--sunken); border-radius: var(--r-sm); }
.receipt .r-issuer { text-align: right; margin-top: 16px; line-height: 1.8; }
@media print {
  .demo-bar, .m-head, .tabbar, .no-print, .toast { display: none !important; }
  body { background: #fff; }
  .receipt { border: 0; box-shadow: none; }
}
.shift-cell.closed { display: grid; place-items: center; background: var(--sunken); color: var(--muted); border-style: solid; cursor: default; }
.shift-table th.closed { color: var(--muted); text-decoration: line-through; }
.req-tag { display: block; margin-top: 2px; font-size: .68rem; font-weight: 700; color: var(--warn); border: 1px dashed var(--warn); border-radius: 4px; padding: 0 2px; }
.req-list { padding: 0; }
.req-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); min-height: 52px; }
.req-row:last-child { border-bottom: 0; }
.req-row.dim { background: var(--sunken); }
.req-row .sun { color: var(--danger); } .req-row .sat { color: var(--accent); }
.req-row select { width: auto; min-height: 36px; }
.csv-row { gap: 6px; margin: -4px 0 12px; justify-content: flex-end; }
.time-row.full { grid-template-columns: 56px 1fr auto; align-items: center; }
.time-row.full .slot-note { line-height: 40px; }
.time-row.full .btn, .time-row.full .pill { white-space: nowrap; justify-self: end; }

/* ---- 2026-10-02 追加⑦: チケットのしくみ（初めて買う人向け） ---- */
.ticket-guide summary { cursor: pointer; }
.ticket-guide[open] summary { margin-bottom: 8px; }
.tg-steps { list-style: none; counter-reset: tg; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.tg-steps li { counter-increment: tg; display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; }
.tg-steps li::before { content: counter(tg); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); }
.tg-steps li span { font-size: var(--fs-sm); color: var(--muted); }
.tg-notes { margin: 0 0 6px; padding-left: 1.2em; font-size: var(--fs-sm); display: grid; gap: 4px; }
.price-col { display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.cal-day.sun:not(.off) b { color: var(--danger); } .cal-day.sat:not(.off) b { color: var(--accent); } .cal-day.sun[aria-pressed="true"] b, .cal-day.sat[aria-pressed="true"] b { color: inherit; }

/* ---- 2026-10-02 追加⑧: 生徒の会員情報・設定 ---- */
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 52px; height: 32px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap-any { overflow-wrap: anywhere; }
.m-head .btn.xs { min-height: 32px; padding: 2px 8px; }
.always-on { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---- 2026-10-02 スマホ実機（iPhone）で見つかったずれの修正 ---- */
/* メソッドの見出しは legend をやめて div にした（iPhone の Safari で細く折れるため） */
/* 予約台帳: PCは右に詳しい欄。スマホは表の下に（何も選んでいないときの案内は出さない） */
.split.split-drawer { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.ledger td.time, .ledger th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.ledger th:first-child { background: var(--sunken); }
@media (max-width: 860px) {
  .split.split-drawer { grid-template-columns: minmax(0, 1fr); }
  .drawer-empty { display: none; }
  .drawer { scroll-margin-top: 110px; }
  /* 表は文字を縦に折らず、横にずらして見る */
  .table-wrap td, .table-wrap th { white-space: nowrap; }
  .ledger td { min-width: 132px; }
}

/* ---- 2026-10-02 ログイン画面を生徒用とスタッフ用に分ける（決定135） ---- */
.login-page { max-width: 440px; }
.login-page h1 { font-size: var(--fs-xl); }
.staff-link { justify-self: center; font-size: var(--fs-sm); }
.staff-login .login-box .btn.big { display: grid; justify-items: center; gap: 0; }
@media (max-width: 860px) { .s-wrap { align-content: start; min-height: 0; } }

/* ---- 2026-10-02 ホームを1画面に（決定137） ---- */
.home { gap: 14px; }
.tk-panel { padding: 12px; display: grid; gap: 8px; }
.tk-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tk { display: grid; line-height: 1.15; }
.tk b { font-family: var(--font-display); font-size: var(--fs-xl); }
.tk small { font-size: var(--fs-xs); margin-left: 2px; }
.tk .xs { color: var(--muted); font-weight: 700; }
.tk.nominate b { color: var(--nominate); }
.tk.zero b { color: var(--muted); }
.tk-buy { margin-left: auto; }
.tk-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tk-warn, .note-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; border-radius: var(--r-sm); padding: 8px 10px; font-size: var(--fs-sm); cursor: pointer; font: inherit; font-size: var(--fs-sm); }
.tk-warn { background: var(--warn-soft); color: var(--warn); }
.note-line.ok { background: var(--ok-soft); color: var(--ok); }
.note-line.warn { background: var(--warn-soft); color: var(--warn); }
.note-line.ann { display: block; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.note-line.ann summary { list-style: none; display: flex; justify-content: space-between; cursor: pointer; }
.note-line.ann summary::-webkit-details-marker { display: none; }
.note-line.ann summary::after { content: "›"; color: var(--muted); transition: transform .15s; }
.note-line.ann[open] summary::after { transform: rotate(90deg); }
.note-line.ann p { margin: 6px 0 0; }
.home button.next-card { width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit; color: inherit; display: grid; gap: 2px; }
.entry-rows.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.entry-rows.two .entry-row { min-height: 52px; font-size: var(--fs-md); padding: 10px 12px; }
.hw-card { padding: 10px 12px; }
.hw-card summary { list-style: none; cursor: pointer; display: block; }
.hw-card summary::-webkit-details-marker { display: none; }
.hw-card .hw-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); }
.hw-card[open] .hw-text { -webkit-line-clamp: unset; display: block; }
.prog-line { display: grid; gap: 6px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; padding: 10px 12px; }
.prog-head { display: flex; justify-content: space-between; align-items: center; }
.prog-more { color: var(--accent); font-weight: 700; }
.prog-rings { display: flex; gap: 14px; flex-wrap: wrap; }
.prog-rings .pr { display: inline-flex; align-items: center; gap: 6px; }
.prog-now { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 2026-10-08 千里さん・ヤマザキさんの修正点 ---- */
.gbtn.gbtn-line.main { background: #06c755; color: #fff; border-color: #06c755; min-height: 56px; font-size: var(--fs-md); }
.gbtn.gbtn-line.main .lmark { background: #fff; color: #06c755; }
.shift-hint { margin: -4px 0 8px; }
.fill-span { width: auto; }
.tk-use { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.link-btn { border: 0; background: transparent; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-align: left; }
.link-btn:hover b { text-decoration: underline; }
.tk-open { display: flex; align-items: flex-end; gap: 14px; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.tk-more { color: var(--accent); font-weight: 700; align-self: center; }
.settings-grid.wide2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
div.plain { display: grid; gap: 4px; min-width: 0; }
.set-row.edit { align-items: flex-start; flex-direction: column; }
.handover { border-left: 4px solid var(--accent); }
.handover h2 { font-size: var(--fs-md); margin: 0; }
.ho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ho-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 8px 10px; background: var(--sunken); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.ho-list li > span:first-child { flex: 1 1 200px; }
.staff-note { background: var(--accent-soft); border-radius: var(--r-md); padding: 10px 12px; gap: 6px; }
.staff-note textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; font: inherit; background: var(--surface); }
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 16px; }
.modal { width: min(480px, 100%); max-height: 80vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal h2 { margin: 0; font-size: var(--fs-lg); }
.buy-ask .ba-sum > div { grid-template-columns: 6em 1fr; }
.buy-ask .ba-total dd b { font-size: var(--fs-lg); }
.buy-ask .btn.big { width: 100%; }

/* ---- 2026-10-09 オーナーの修正点（シフト・チケット・商品と割引・申し送り） ---- */
/* シフト: 直すところは表の下に出し、画面の下に貼りつける（表が下へずれない） */
.shift-editor { position: sticky; bottom: 8px; z-index: 5; margin: 12px 0 0; box-shadow: 0 6px 24px rgba(15, 23, 42, .18); }
.over-list { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 2px; }
.over-list li { line-height: 1.5; }
.fill-ask { border-color: var(--accent); margin-bottom: 12px; }
.fill-done { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
/* チケット: 買ったパックごとに1つ */
.tk-group { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.tk-group:last-child { border-bottom: 0; }
.tk-g-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.tk-g-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: var(--fs-sm); }
.tk-g-n { font-size: var(--fs-lg); }
.tk-g-use { margin: 0; padding-left: 1.2em; font-size: var(--fs-xs); color: var(--accent); display: grid; gap: 2px; }
/* ホームの「一覧」を枠のあるボタンに */
.tk-more { border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 12px; background: var(--surface); white-space: nowrap; }
.tk-open:hover .tk-more { border-color: var(--accent); }
/* 商品と割引: 並び替え・直す・削除 */
.set-acts { gap: 4px; flex-wrap: nowrap; }
/* 削除の確かめに「何に使う商品か」が入って長いとき（2026-11-24）は、確かめを次の行に回す（ボタンの文字を縦に割らない） */
.set-acts:has(.del-ask-long) { flex-wrap: wrap; justify-content: flex-end; }
.set-acts .btn { white-space: nowrap; }
.del-ask-long { justify-content: flex-end; } .del-ask-long > .xs { flex-basis: 100%; text-align: right; }
.btn.ord { min-width: 36px; padding-inline: 0; }
.price-col .pill.accent { text-align: center; line-height: 1.35; }
/* 申し送りの画面 */
.ho-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ho-editor { border-left: 4px solid var(--accent); }
.ho-editor h2 { margin: 0; font-size: var(--fs-md); }
.ho-editor textarea { width: 100%; min-height: 180px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; line-height: 1.7; background: var(--surface); color: var(--ink); resize: vertical; }
.ho-date input { width: auto; }
.ho-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ho-item { background: var(--sunken); border-radius: var(--r-sm); padding: 10px 12px; display: grid; gap: 6px; }
.ho-item.editing { outline: 2px solid var(--accent); }
.ho-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ho-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-sm); line-height: 1.7; }
@media (max-width: 860px) {
  .ho-split { grid-template-columns: minmax(0, 1fr); }
  .shift-editor { bottom: 4px; }
}
.set-row > .stack { flex: 1 1 220px; min-width: 0; }

/* ---- 2026-10-09 押せるところには枠を付ける［オーナー指示］ ---- */
.tk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-btns .btn { width: 100%; }
.tk-go { border: 1px solid currentColor; border-radius: var(--r-md); padding: 4px 10px; background: var(--surface); white-space: nowrap; font-weight: 700; }
.btn.quiet { border-color: var(--line); background: var(--surface); padding-inline: 12px; }
.btn.quiet:hover { border-color: var(--accent); }
.m-head .back, .back { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); justify-content: center; padding: 4px 10px; min-width: 44px; }
.m-head .back { padding: 4px 0 6px; }
.days .nav, .cal .nav, .week-nav .nav { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
main details:not(.panel):not(.notice):not(.season):not(.hw-card):not(.note-line) > summary {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
main details:not(.panel):not(.notice):not(.season):not(.hw-card):not(.note-line)[open] > summary { margin-bottom: 8px; }

/* ---- 2026-10-09 注文番号・券の番号［オーナー指示］ ---- */
.tk-no { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.tk-g-use .tk-no { color: inherit; opacity: .8; }
.tk-each { margin-top: 2px; }
main .tk-each > summary { min-height: 36px; padding: 4px 10px; font-size: var(--fs-xs); display: inline-flex; }
.tk-each ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: var(--fs-xs); }
.tk-each li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.tk-each li:last-child { border-bottom: 0; }

/* ---- 2026-10-09 持っているチケットを1枚ずつ［オーナー指示］ ---- */
.tk-item { padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.tk-item:last-child { border-bottom: 0; }
.tk-i-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; }
.tk-i-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: var(--fs-sm); }
.tk-i-use { font-size: var(--fs-xs); color: var(--accent); font-weight: 700; }
.tk-unpaid { margin-bottom: 8px; }
.tk-unpaid-use { display: block; margin-top: 2px; font-size: var(--fs-xs); }
/* 未払いの黄色い印（押せる）: ホーム・予約の一覧。見た目は印のまま、押せる範囲は指で押しやすい高さ（48px）まで広げる（オーナーの確認 2026-11-21） */
.pill.pay-due { position: relative; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); cursor: pointer; font-family: inherit; padding: 4px 10px; justify-self: start; }
.pill.pay-due::after { content: ''; position: absolute; inset: -8px -6px -12px; } /* 上はすぐ上のボタンに重ならない範囲まで */
.pill.pay-due:focus-visible { outline: 2px solid var(--warn); outline-offset: 2px; }

/* ---- 2026-10-13 ステージ3は開放型（受けるまで内容は ？？？）［オーナー指示］ ---- */
.masked { letter-spacing: .2em; color: var(--muted); }

/* ---- 2026-10-13 申し送りをスタッフ全員に・生徒への伝言［オーナー指示］ ---- */
.msg-box { gap: 6px; }
.btn.ho-done { white-space: nowrap; }
.btn.ho-done.on { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }

/* ---- 2026-10-13 シフトの休憩［オーナー指示］ ---- */
.brk-tag { display: block; font-size: 10px; font-weight: 700; color: var(--warn); line-height: 1.2; margin-top: 2px; }
th.brk-col, td.brk-col { min-width: 84px; background: var(--sunken); }
.brk-cell { display: grid; gap: 1px; width: 100%; text-align: left; border: 1px dashed var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: var(--r-sm); padding: 4px 8px; margin-bottom: 4px; font: inherit; font-size: var(--fs-xs); cursor: pointer; }
.brk-cell.on { border-style: solid; }
.brk-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; margin-bottom: 12px; border: 1px dashed var(--warn); border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.brk-picker { border-left: 4px solid var(--warn); margin-bottom: 12px; }
.brk-picker h2 { margin: 0; font-size: var(--fs-md); }

/* ---- 2026-10-13 生徒のタグ・相手を絞って送る［オーナー指示］ ---- */
.pill.tag { background: var(--sunken); color: var(--ink); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 4px; }
.tag-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; line-height: 1; padding: 0 2px; min-width: 24px; min-height: 24px; }
.tag-row { gap: 4px; margin-top: 4px; }
.target-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.aud-list { display: grid; gap: 0; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.aud-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.aud-row:last-child { border-bottom: 0; }
.aud-row input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
@media (max-width: 860px) { .target-split { grid-template-columns: minmax(0, 1fr); } }
td.nw { white-space: nowrap; }
.pay-break { min-width: 11em; }
th.brk-col, td.brk-col { min-width: 96px; }

/* ---- 2026-10-13 ステージ3を講師が開放［オーナー指示］ ---- */
.btn.mp-open { min-height: 32px; padding: 2px 10px; font-size: var(--fs-xs); }
.btn.mp-open.on { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.mp-open-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 0; list-style: none; }

/* ---- 2026-10-13 台帳・会員のページで予約を変更・キャンセル［オーナー指示］ ---- */
.act-row { flex-wrap: wrap; }
.act-box { border: 1px solid var(--accent); border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); gap: 8px; }
.chg-box .chg-date { width: auto; min-width: 150px; }
.chg-box .chg-ins { width: auto; }

/* ---- 2026-10-13 スタッフのメニューをグループのツリーに［オーナー指示］ ---- */
.s-nav .nav-tree { display: grid; gap: 2px; }
.s-nav .nav-gh { display: flex; justify-content: space-between; align-items: center; width: 100%; color: var(--ink); font-size: var(--fs-sm); padding: 8px 12px; }
.s-nav .nav-gh[disabled] { cursor: default; opacity: 1; }
.s-nav .nav-caret { color: var(--muted); transition: transform .15s; }
.s-nav .nav-group.open > .nav-gh .nav-caret { transform: rotate(90deg); }
.s-nav .nav-items { display: grid; gap: 2px; margin: 0 0 6px 14px; padding-left: 8px; border-left: 2px solid var(--line); }
.s-nav .nav-item { width: 100%; padding: 8px 12px; }
.s-nav .nav-single { margin-bottom: 4px; }
.s-nav .nav-single .nav-item { color: var(--ink); font-size: var(--fs-sm); }
.s-nav .nav-logout { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 12px; }
.s-nav .nav-menu-btn { display: none; }
@media (max-width: 860px) {
  .s-nav { display: block; }
  .s-nav .who { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 6px; margin-bottom: 6px; }
  .s-nav .who b { display: inline; }
  .s-nav .nav-menu-btn { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-md); min-height: 48px; padding: 8px 14px; }
  .s-nav .nav-menu-btn b { flex: 1; color: var(--accent); }
  .s-nav.menu-open .nav-menu-btn .nav-caret { transform: rotate(90deg); }
  .s-nav .nav-tree { display: none; margin-top: 8px; }
  .s-nav.menu-open .nav-tree { display: grid; }
}

/* スタッフの日付選び（週・月）［2026-10-17］ */
.sdp { display: grid; gap: 8px; margin-bottom: 12px; }
.sdp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sdp-seg button { padding: 6px 14px; min-height: 36px; }
.sdp-label { font-family: var(--font-display); font-size: var(--fs-md); }
.sdp .day { position: relative; }
.sdp .day.none .dot, .sdp .cal-day.none .dot { background: transparent; }
.sdp .day.none:not([aria-pressed="true"]) b, .sdp .cal-day.none:not([aria-pressed="true"]) b { opacity: .55; }
.sdp .day.is-today:not([aria-pressed="true"]), .sdp .cal-day.is-today:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 2px var(--accent); }
.sdp-cal { max-width: 420px; }
.sdp-sm .cal-day { min-height: 38px; }
.sdp-sm .sdp-cal { max-width: 360px; }
/* 予約台帳: 講師ごとの休憩（休憩なしの講師もここから入れる） */
.brk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.brk-chip { border-style: dashed; }
.brk-chip.none { color: var(--muted); }
.brk-chip .brk-add { color: var(--accent); font-weight: 700; }
/* お知らせ: タグを検索・名前で複数選ぶ */
.aud-sug { max-height: 132px; overflow: auto; }
.aud-cands { max-height: 260px; }
.aud-cands:empty { display: none; }
.aud-cand.on { background: var(--accent-soft, var(--surface-2)); }
/* 予約台帳: その日の講師のシフト・担当スタジオ・休憩（名前の並びをそろえる）［2026-10-17］ */
.day-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ds-card { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.ds-name { font-size: var(--fs-md); }
.ds-shift { font-weight: 700; font-variant-numeric: tabular-nums; }
.ds-k { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; margin-right: 6px; }
.ds-room { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; }
.ds-room.warn-text { color: var(--warn); }
.ds-card .brk-chip { justify-self: start; }
.warn-text { color: var(--warn); }
.room-owner { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (max-width: 480px) { .day-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ds-card { padding: 8px 10px; } .ds-card .brk-chip { font-size: var(--fs-xs); padding-left: 10px; padding-right: 10px; } }
.ds-room-sel { justify-self: start; max-width: 100%; min-height: 36px; padding: 4px 8px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-xs); color: var(--ink, inherit); }
.ds-room-sel.warn-text { color: var(--warn); }
/* 自動で付くタグ（点線の枠） */
.pill.tag.auto { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.chip.auto { border-style: dashed; }
.chip .auto-mark { opacity: .75; }
.tk-exp .nw, .ba-sum .nw { white-space: nowrap; display: inline-block; } /* 使用期限は「◯年◯月◯日(曜) まで」と「（◯か月）」の間でだけ折り返す */

/* シフト希望のカレンダー［10/27 MTG・決定211］ */
.req-quick { gap: 8px; align-items: center; flex-wrap: wrap; }
.rq-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 8px; }
.rq-wd { background: none; border: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); min-height: 32px; cursor: pointer; border-radius: 6px; }
.rq-wd:hover { background: var(--sunken); }
.rq-wd.sun, .rq-day.sun b { color: var(--danger); } .rq-wd.sat, .rq-day.sat b { color: var(--accent); }
.rq-day { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 64px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer; min-width: 0; }
.rq-day b { font-size: var(--fs-sm); }
.rq-day.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.rq-day.closed { background: var(--sunken); cursor: default; opacity: .7; }
.rq-tag { font-size: 10px; line-height: 1.3; padding: 1px 3px; border-radius: 4px; background: var(--sunken); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rq-tag.ok { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.rq-tag.req { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.req-bar { position: sticky; bottom: 8px; z-index: 2; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.req-bar select { width: auto; min-height: 40px; }
@media (min-width: 900px) { .rq-day { min-height: 84px; } .rq-tag { font-size: 11px; } }
.rq-day[aria-pressed="true"], .rq-day.on { background: var(--accent-soft, #e6ecf7); color: var(--ink, inherit); }
.rq-day.on b { color: var(--accent); }
.rq-day.sun.on b { color: var(--danger); }
@media (max-width: 599px) { .req-bar .row { flex-wrap: wrap; } .req-bar { padding: 10px 12px; gap: 8px; } }

/* 進み具合の段階（できてきた）・次の練習［決定211］ */
.mp-bar i.g { background: var(--ok); opacity: .5; }
.mp-row.good .mp-mark { color: var(--ok); }
.pill.good { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }
/* 項目ごとの進み具合（％）［オーナー指示 2026-11-05］ */
.mp-pct { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.mp-ibar { display: block; width: 72px; height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.mp-ibar i { display: block; height: 100%; background: var(--accent); }
.mp-ibar i.d { background: var(--ok); }
.mp-pv { min-width: 3.2em; text-align: right; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mp-row.none .mp-pv { color: var(--muted); font-weight: 500; }
.mp-row.done .mp-pv { color: var(--ok); }
.mp-step .btn { min-width: 44px; min-height: 44px; padding: 0; font-size: var(--fs-lg); line-height: 1; touch-action: manipulation; }
.mp-step .btn[disabled] { opacity: .35; }
.mp-pin { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: var(--fs-sm); }
.mp-pin input { width: 3.6em; min-height: 44px; padding: 0 6px; text-align: right; font: inherit; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: inherit; -moz-appearance: textfield; appearance: textfield; }
.mp-pin input::-webkit-inner-spin-button, .mp-pin input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mp-row.done .mp-pin { color: var(--ok); }
@media (max-width: 480px) { .mp-step { gap: 4px; flex-wrap: nowrap; max-width: 100%; } .mp-step .mp-ibar { width: 36px; } .mp-pin input { width: 3.2em; } }
.next-practice { padding: 10px 12px; border-radius: var(--r-sm, 8px); background: var(--accent-soft); }
.np-hw { margin: 0; font-weight: 600; }
.np-hw .xs { font-weight: 400; margin-left: 4px; }

/* 画面の中のタブ［決定211］ */
.ptabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 4px; -webkit-overflow-scrolling: touch; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; }
.ptabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.ptab-n { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); }
/* 会員のページ: PCは左に会員情報・右にタブ。スマホは会員情報もタブに */
.member-split .ptabs [data-value="info"] { display: none; }
@media (max-width: 860px) {
  .member-split { display: flex; flex-direction: column-reverse; }
  .member-split .ptabs [data-value="info"] { display: inline-block; }
  .member-split:not([data-tab="info"]) .m-left { display: none; }
  .member-split[data-tab="info"] .m-right > :not(.ptabs) { display: none; }
}
@media (max-width: 480px) { .ptabs { gap: 0; } .ptabs button { flex: 1 1 auto; padding: 0 6px; font-size: var(--fs-xs); } .ptab-n { margin-left: 3px; } }
/* ログインしているときの上の帯（切り替え・ログアウト）は、確認メッセージのポップアップより上に出す（押せるように・決定216） */
.demo-bar.real-bar { z-index: 70; }
.demo-bar .bar-link { color: var(--bg); border: 1px dashed currentColor; border-radius: var(--r-sm); padding: 3px 8px; text-decoration: none; }

/* ---- 切り替えメニュー（本物の動き方・2026-11-07）---- */
.sw { position: relative; }
.demo-bar .sw-btn { font-weight: 700; padding: 4px 10px; min-height: 32px; }
.sw-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 80; min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 10px 30px rgba(15, 23, 42, .25); font-size: var(--fs-sm); }
.sw-menu .sw-h { padding: 8px 10px 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.demo-bar .sw-menu button, .sw-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); text-align: left; text-decoration: none; font-weight: 700; cursor: pointer; }
.demo-bar .sw-menu button:hover, .sw-menu a:hover { background: var(--sunken); }
.demo-bar .sw-menu button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); }
.demo-bar .sw-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
.sw-menu .sw-test { margin-top: 6px; border-top: 1px dashed var(--line); border-radius: 0; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }

/* ---- ご意見・不具合（2026-11-08）---- */
.fb-ask textarea { width: 100%; }
.fb-ask .btn.big { width: 100%; }
.demo-bar .sw-menu button[role="menuitem"] { width: 100%; }
.fb-head { align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.fb-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.fb-img { display: block; max-width: min(320px, 100%); max-height: 320px; border: 1px solid var(--line); border-radius: var(--r-sm); object-fit: contain; background: var(--sunken); }
.fb-st button { min-height: 40px; font-size: var(--fs-sm); }
.fb-item textarea { width: 100%; }
.fb-set summary { cursor: pointer; font-weight: 700; }

/* ---- 決まりの文（キャンセル規定・返金・2026-11-17）: 1文ずつ行を分け、スマホでも読める大きさで ---- */
.summary > div.full { grid-template-columns: 1fr; gap: 4px; }
.policy-text { display: grid; gap: 4px; font-weight: 500; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink); }
.policy-text .pl { display: block; }
.policy-text.policy { margin-top: 6px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--sunken); }
.policy-box { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunken); }
.tg-notes .policy-text { font-size: inherit; }
.refund-note { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--warn); }
.buy-ask .refund-note { padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-soft); }
/* 利用規約・プライバシーポリシー・特定商取引法に基づく表記へのリンク（2026-11-18）。目立たせず、押しやすい高さだけ取る */
/*   押せるところに枠［オーナー指示 決定167］: 文の中の「利用規約」も小さな枠を付ける */
.choice a { color: var(--accent); font-weight: 700; text-decoration: none; padding: 1px 6px; margin-right: 2px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.agree-links, .legal-links { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-links { justify-content: center; }
.agree-links a, .legal-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--accent); text-decoration: none; }
.legal-links a { color: var(--muted); }

/* ---- 2026-11-18 代表の追加依頼: 初回無料の宣伝・事前決済の一言 ---- */
/* 初回無料チケットの宣伝（ログインの最初の画面・会員登録の入口のすぐ上）。目立つが邪魔にならない淡い帯 */
.free-promo { display: grid; gap: 2px; margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); text-align: center; font-size: var(--fs-sm); line-height: 1.5; }
.free-promo b { font-weight: 700; }
.free-promo .pp-head { font-size: var(--fs-xs); letter-spacing: .08em; }
/* 本文はスマホ幅（390）で1行に収まる大きさ（画面の幅に合わせて少し小さくする）。もっと狭い画面では「、」の所で折り返す */
.free-promo .pp-body { font-size: clamp(.75rem, 3.4vw, var(--fs-sm)); }
.free-promo .pp { display: inline-block; }
.free-promo .xs { color: var(--muted); }
/* 「事前決済が便利です♪」: オンラインのボタンの真上に、吹き出しの形で出す（どちらを勧めているか分かるように） */
.pay-pick { display: grid; gap: 0; }
.prepay { display: grid; }
.prepay-note { justify-self: center; position: relative; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 700; margin-bottom: 6px; }
.prepay-note::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--accent-soft); }
