/* 作り直し（v2）の画面で共通に使う見た目。カードを使わず、見出しと線で区切る（今の管理画面の .flat と同じ考え方） */
:root {
  --ink: #19212a; --muted: #64717f; --line: #dbe3ea; --paper: #fbfcfd; --soft: #eef4fb; --white: #fff;
  --primary: #0717a8; --primary-dark: #07106f;
  /* 動き（2026-11-27 本人「遷移のアニメーションを統一」）: 入る・動くは --mo-in と --mo-ease、出る・閉じるは --mo-out と --mo-ease-out。すべての画面の動きはこの 4 つだけを使う */
  --mo-in: .3s; --mo-out: .2s; --mo-ease: cubic-bezier(.32, .72, 0, 1); --mo-ease-out: cubic-bezier(.4, 0, 1, 1);
  --danger: #c0392b; --danger-soft: #fbe9e7; --ok: #2e8b57; --ok-soft: #e6f4ec; --warn: #a86f12; --warn-soft: #fdf3e3;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* iPhone の Chrome（2026-10 時点）: ページ全体がスクロールすると、アドレスバーの高さの分だけページの上が隠れたまま戻らない。
   Chrome のときだけ（html.crios、各ページの head で付ける）ページ全体は動かさず、body の中でスクロールする。Safari ではこの不具合はない */
html.crios, html.crios body { height: 100%; overflow: hidden; }
html.crios body { overflow-y: auto; }
body { background: var(--paper); color: var(--ink); font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; font-size: 15px; line-height: 1.65; }
a { color: var(--primary); }
.top { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.top .in { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: 13.5px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
nav a.on { background: var(--soft); color: var(--primary); font-weight: 700; }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 60px; }
main.narrow { max-width: 440px; }
h1 { font-size: 20px; margin: 16px 0 4px; }
h2 { font-size: 15px; margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
p { margin: 6px 0; }
.sub, .muted { color: var(--muted); }
.small { font-size: 13px; }
.notice { padding: 8px 10px; border-radius: 8px; background: var(--soft); margin: 8px 0; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
form.stack, .stack { display: grid; gap: 8px; margin: 10px 0; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); } /* 入力欄の項目名は濃く（2026-10-26 本人「文字が薄くて認識し辛い」）。例の文字（placeholder）は薄く */
input::placeholder, textarea::placeholder { color: #a7b0b9; font-weight: 400; }
label.choice, label.agree, label.chk, .checks label, label.inline { font-weight: 400; } /* 選ぶ・印を付けるものの文字は太くしない */
input, select { font: inherit; font-weight: 400; font-size: 16px; line-height: 1.35; color: var(--ink); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); width: 100%; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
button.primary { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 700; }
button.primary:hover { background: var(--primary-dark); }
button.danger { color: var(--danger); border-color: var(--danger); }
button.link { border: 0; background: none; color: var(--primary); padding: 4px 0; text-decoration: underline; }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checks { display: flex; gap: 14px; flex-wrap: wrap; }
.checks label { display: flex; gap: 6px; align-items: center; color: var(--ink); font-size: 14px; }
.checks input { width: auto; }
.list { border-top: 1px solid var(--line); }
.list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--primary); margin-right: 4px; }
.tag.gray { background: #eef1f4; color: var(--muted); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.ask { background: var(--warn); color: var(--white); } /* 確認待ち（返事をお願いしている） */
.line-copy { width: 100%; min-height: 180px; font-size: 13px; line-height: 1.5; }
.copy { word-break: break-all; font-size: 12.5px; background: var(--white); border: 1px dashed var(--line); padding: 8px; border-radius: 8px; }
@media (max-width: 520px) { .list > div { grid-template-columns: 1fr; } }
/* 予定（3段目） */
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.planned:not(:has(input[name="note.plannedUnit"]:not(:placeholder-shown))) .pace { display: none; }
button.link { border: 0; background: none; padding: 0 2px; min-height: 0; color: inherit; cursor: pointer; font: inherit; }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.day-head { grid-column: 1 / -1; display: block !important; padding: 14px 0 4px !important; border-bottom: 0 !important; font-weight: 700; color: var(--muted); font-size: 13.5px; }
.sheet { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 12px 0; background: var(--white); }
.sheet input { margin-top: 6px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 10px 0; }
.month > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 64px; padding: 3px; font-size: 11.5px; overflow: hidden; }
.month .wd { min-height: 0; text-align: center; color: var(--muted); padding: 4px 0; }
.month button.d { all: unset; display: block; cursor: pointer; width: 100%; height: 100%; }
.month .num { font-weight: 700; font-size: 12px; }
.month .out { background: #f5f7f9; color: var(--muted); }
.month .sel { outline: 2px solid var(--primary); outline-offset: -2px; }
.month .today .num { color: var(--primary); }
.month .chip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; padding: 0 3px; margin-top: 2px; background: var(--soft); }
.month .chip.proposed, .month .chip.held { background: var(--warn-soft); }
.month .chip.done { background: var(--ok-soft); }
.month .chip.rested, .month .chip.cancelled { background: #eef1f4; color: var(--muted); text-decoration: line-through; }
.month .chip.off { background: #eef1f4; color: var(--muted); }
@media (max-width: 520px) { .month > div { min-height: 48px; font-size: 10px; } .month .chip { padding: 0 1px; } }

/* ---- 画面の上（スマホ）: 1行にして、メニューは横に流す。場所を取らない ---- */
@media (max-width: 720px) {
  .top .in { flex-wrap: nowrap; gap: 8px; padding: 6px 12px; }
  .brand { font-size: 14px; flex: none; }
  .brand small { display: none; }
  nav { flex-wrap: nowrap; overflow-x: auto; margin-left: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav::-webkit-scrollbar { display: none; }
  nav a { padding: 6px 9px; font-size: 13px; }
  main { padding: 0 12px 60px; }
  h1 { font-size: 19px; margin-top: 16px; }
}
main.wide { max-width: 1200px; }
a.btn { display: inline-block; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; background: var(--white); color: var(--ink); }
button.icon { border: 0; background: none; font-size: 22px; line-height: 1; padding: 6px 10px; color: var(--ink); }
button.small-btn { padding: 6px 12px; font-size: 13px; border-radius: 999px; }
button.small-btn.primary { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 700; }
button.small-btn.warn { background: var(--warn-soft); border-color: #f1d9ad; color: var(--warn); font-weight: 700; }

/* ---- 予定: 上に月の表、すぐ下（パソコンでは横）に選んだ日。授業を押すと下から詳しい画面 ---- */
.sch-bar { display: flex; align-items: center; gap: 4px; margin: 10px 0 6px; flex-wrap: wrap; }
.sch-month { font-size: 17px; min-width: 7.5em; text-align: center; }
.sch { display: grid; gap: 12px; }
@media (min-width: 960px) { .sch { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); align-items: start; } .sch-day { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; } }
.month2 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.month2 .wd { text-align: center; font-size: 11.5px; color: var(--muted); padding: 3px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month2 .wd.sun, .month2 .num.sun { color: #c0392b; }
.month2 .wd.sat, .month2 .num.sat { color: #1f5fb4; }
.month2 .cell { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-width: 0; height: 86px; padding: 2px 2px 3px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.3; }
.month2 .cell:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.month2 .cell.out { background: #f6f8fa; }
.month2 .cell.out > * { opacity: .55; }
.month2 .cell.sel { background: #e9f1ff; box-shadow: inset 0 0 0 2px var(--primary); }
.month2 .num { font-weight: 700; font-size: 12px; padding-left: 2px; }
.month2 .today .num { background: var(--primary); color: var(--white); border-radius: 999px; align-self: flex-start; padding: 0 6px; }
.month2 .nm, .month2 .bar { display: block; white-space: nowrap; overflow: hidden; text-overflow: clip; border-radius: 3px; padding: 0 2px; }
.month2 .nm small { font-size: 9.5px; margin-left: 1px; }
.month2 .nm.r0 { color: var(--muted); border: 1px dashed #c9d2dc; }
.month2 .nm.r1 { background: var(--warn-soft); color: #7a4f08; }
.month2 .nm.r2 { background: #e3ecfb; color: #173f8a; }
.month2 .nm.r3 { background: var(--ok-soft); color: #23704a; } /* 実施済みも同じ形で（2026-10-27 本人「実施済みのものに関しても同じようなスタイルで」） */
.month2 .bar { color: var(--white); font-size: 10.5px; }
.month2 .bar.test { background: #d9480f; font-weight: 700; } /* テストは大事な予定なので、灰色にせず目立つ色に（2026-10-27 本人「重要さが表示に反映されていません」） */
.month2 .bar.event { background: #a23b3b; }
.month2 .bar.off { background: #c3cad2; color: #3d4752; }
.month2 .bar.meeting { background: #6a4fb3; }
.month2 .nm.mt { background: #ece7f8; color: #4a3590; } /* 保護者・生徒の予定の面談（授業と同じ形、色は代表の画面の面談と同じ紫。2026-12-04） */
.month2 .more { font-size: 10px; color: var(--muted); padding-left: 2px; }
@media (min-width: 720px) { .month2 .cell { height: 96px; font-size: 12px; } .month2 .bar { font-size: 11px; } }
.day-title { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.day-title strong { font-size: 16px; }
.rows { display: grid; }
.rows .ev { display: grid; grid-template-columns: minmax(4.2em, max-content) minmax(0, 1fr) auto; /* 時刻の列は中身に合わせる（14:30〜15:30 が本文に重なっていた。2026-10-11） */ gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rows .lesson { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rows .lesson:hover { background: #f4f7fb; }
.rows .lesson:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.rows .t { font-weight: 700; font-size: 14px; line-height: 1.2; }
.rows .t small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.rows .b { min-width: 0; display: grid; gap: 2px; }
.rows .tags { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.rows .go { color: var(--muted); font-size: 20px; }
.rows .lesson.s-rested, .rows .lesson.s-cancelled { opacity: .6; }
.rows .ev .t { font-weight: 400; font-size: 12px; }
.rows .ev.test .b, .rows .ev.event .b { color: var(--ink); }
.rows .ev.test { box-shadow: inset 3px 0 0 #d9480f; } .rows .ev.test .b { font-weight: 700; }
.rows button.ev { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(4.2em, max-content) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); cursor: pointer; width: 100%; } /* テストの行は押すと詳細（2026-11-20） */
.rows button.ev.test { box-shadow: inset 3px 0 0 #d9480f; } .rows button.ev:hover { background: #f4f7fb; } .rows button.ev:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.rows .ev.meeting { grid-template-columns: 4.2em minmax(0, 1fr) auto; font-size: 15px; color: var(--ink); } /* 面談は授業の行と同じ形（2026-11-27） */
.rows .ev.meeting .t { font-weight: 700; font-size: 14px; }
.rows .ev.meeting .b small { font-size: 12.5px; }
.rows .x { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 2px 8px; }

/* ---- 下から出る画面（パソコンでは真ん中） ---- */
.overlay { position: fixed; inset: 0; background: rgba(15, 22, 30, .35); z-index: 40; }
.bsheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: var(--white); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); padding: 0 16px calc(20px + env(safe-area-inset-bottom)); animation: sheet-up var(--mo-in) var(--mo-ease); }
.bsheet .grab { width: 40px; height: 4px; border-radius: 4px; background: #d3dae2; margin: 8px auto 2px; }
.bsheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--white); padding: 6px 0 8px; z-index: 1; }
.bsheet-head strong { font-size: 16px; }
.bsheet-body { padding-top: 4px; }
.seg { display: flex; background: #eef1f4; border-radius: 10px; padding: 3px; margin: 0 0 12px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px 0; font-size: 13.5px; border-radius: 8px; color: var(--muted); }
.seg button.on { background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 720px) { .bsheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); border-radius: 14px; animation: none; } .bsheet .grab { display: none; } }
@media (prefers-reduced-motion: reduce) { .bsheet { animation: none; } }

/* ---- メニュー（アイコンつき）。スマホでは画面の下に固定（親指で押せる位置） ---- */
nav a { display: inline-flex; align-items: center; gap: 5px; }
nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  body.has-tabs nav#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); display: flex; justify-content: space-around; gap: 0; margin: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); overflow: visible; }
  body.has-tabs nav#nav a { flex: 1; flex-direction: column; gap: 1px; font-size: 10.5px; padding: 4px 0; border-radius: 8px; text-align: center; }
  body.has-tabs nav#nav a.on { background: none; }
  body.has-tabs nav#nav svg { width: 22px; height: 22px; }
  body.has-tabs main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.has-tabs .bsheet { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.page-head { display: flex; align-items: baseline; gap: 10px; }
.page-head h1 { margin-bottom: 4px; }
h2 .count { font-size: 12px; background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 0 8px; font-weight: 700; }
.rows .todo { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rows .todo:hover { background: #f4f7fb; }
.rows .todo .b { display: grid; gap: 1px; }
.rows .todo .n { font-weight: 700; color: var(--warn); font-size: 16px; }
.rows .lesson-row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.rows .lesson-row .b { text-decoration: none; color: var(--ink); }
.rows .lesson-row .act { text-align: right; }
a.small-btn { display: inline-block; text-decoration: none; padding: 6px 12px; font-size: 13px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); background: var(--white); white-space: nowrap; }
a.small-btn.primary { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 700; }
button.small-btn { white-space: nowrap; }

/* ---- 生徒の画面: 上のタブ（横に流れる） ---- */
.tabs2 { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 6px 0 4px; padding-bottom: 2px; }
.tabs2::-webkit-scrollbar { display: none; }
.tabs2 a { flex: none; text-decoration: none; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: #eef1f4; color: var(--muted); white-space: nowrap; }
.tabs2 a.on { background: var(--primary); color: var(--white); font-weight: 700; }
.rows .todo.left { opacity: .55; }
.rows .todo .tags { display: flex; gap: 4px; }
.seg a { flex: 1; text-align: center; text-decoration: none; padding: 7px 0; font-size: 13.5px; border-radius: 8px; color: var(--muted); }
.seg a.on { background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.acct { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
@media (max-width: 720px) { .acct { margin-left: auto; } }
/* ---- 月の仕事: 時期ごとのまとまり。今の時期は目立たせる ---- */
section.step { border: 1px solid var(--line); border-radius: 12px; padding: 2px 14px 10px; margin: 12px 0; background: var(--white); }
section.step.now { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
section.step h2 { margin-top: 12px; }
/* ---- 戻る（入口の下の画面の左上）と、押せる一覧の行（button） ---- */
a.back { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 6px rgba(0, 0, 0, .14); display: grid; place-items: center; color: var(--ink); text-decoration: none; margin: -2px 0; }
a.back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
a.back:active { background: var(--soft); }
body.has-back .top .in { padding-top: 6px; padding-bottom: 6px; }
.rows button.todo { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font: inherit; color: var(--ink); }
.bsheet h3 { font-size: 14px; margin: 16px 0 6px; }
/* ---- 下から出る画面: 描き直しでは動かさない・広い版（表のあるもの） ---- */
.bsheet.still { animation: none; }
@media (min-width: 720px) { .bsheet.wide { width: min(820px, 94vw); } }
.bsheet .stack > a.btn { text-align: center; }
/* ---- 書く画面の保存ボタン: 画面の下に貼りつける ---- */
.actionbar { position: sticky; bottom: 0; z-index: 5; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 0; margin-top: 8px; }
@media (max-width: 720px) { body.has-tabs .actionbar { bottom: calc(60px + env(safe-area-inset-bottom)); } }
/* ---- たまに使うものはたたむ ---- */
details.more { margin: 18px 0; }
details.more > summary { cursor: pointer; color: var(--primary); font-size: 14px; padding: 6px 0; }
details.more[open] > summary { margin-bottom: 6px; }
/* ---- 記録: 前回までの宿題のチェック（まだ・やってきた・一部・やってこなかった） ---- */
.hwchk { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chk { display: flex; background: #eef1f4; border-radius: 10px; padding: 3px; }
.chk label { flex: 1 1 auto; position: relative; display: block; margin: 0; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk span { display: block; text-align: center; padding: 8px 6px; font-size: 12.5px; border-radius: 8px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chk input:checked + span { background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.chk input[value="done"]:checked + span { color: var(--ok); }
.chk input[value="partial"]:checked + span { color: var(--warn); }
.chk input[value="notDone"]:checked + span { color: var(--danger); }
.chk input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: -2px; }
/* ---- 記録: 宿題の行（教材・範囲・外す） ---- */
.hwrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; margin: 6px 0; }
/* ---- 記録を書く画面: 授業の前に見る枠・小さな見出し・正答率 ---- */
.before { display: grid; gap: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.before .ho.unread { background: var(--warn-soft); border-radius: 6px; padding: 4px 6px; margin: 0 -6px; }
.before .small-btn { margin-left: 6px; }
.field-label { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
label.inline { display: flex; align-items: center; gap: 6px; }
label.inline input { width: 6em; }
.seg-cap { display: flex; justify-content: space-between; margin-top: 2px; }
form.rec h2 { margin-top: 22px; }
form.rec details.more { margin: 2px 0; }
form.rec button.link { justify-self: start; text-decoration: none; color: var(--primary); }
/* ---- 複数行の入力欄（1行の入力欄と同じ見た目に） ---- */
textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); width: 100%; resize: vertical; line-height: 1.6; }
textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
/* ---- 段階のあるスライダー（理解度）: 太い帯・段階の点・白い丸のつまみ。--t は 0〜1 ---- */
.slider-head { display: flex; justify-content: space-between; align-items: baseline; }
.slider-value { color: var(--ink); font-size: 14px; }
.slider { --h: 40px; --r: 18px; position: relative; height: var(--h); margin-top: 2px; }
.slider-track { position: absolute; inset: 0; border-radius: 999px; background: #e6e9ee; overflow: hidden; }
.slider-track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc((100% - 2 * var(--r) - 4px) * var(--t) + 2 * var(--r) + 4px); background: var(--primary); border-radius: 999px; transition: width .12s ease-out; }
.slider-track i { position: absolute; top: 50%; left: calc(var(--r) + 2px + (100% - 2 * var(--r) - 4px) * var(--k)); width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #9aa6b2; }
.slider-track i.on { background: rgba(255, 255, 255, .75); }
.slider.unset .fill { width: 0; }
.slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0 2px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; border: 0; }
.slider input[type=range]:focus { outline: none; }
.slider input[type=range]::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: calc(2 * var(--r)); height: calc(2 * var(--r)); margin-top: calc((var(--h) - 2 * var(--r)) / 2); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.slider input[type=range]::-moz-range-track { height: 100%; background: transparent; }
.slider input[type=range]::-moz-range-thumb { width: calc(2 * var(--r)); height: calc(2 * var(--r)); border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.slider.unset input[type=range]::-webkit-slider-thumb { opacity: .55; }
.slider.unset input[type=range]::-moz-range-thumb { opacity: .55; }
.slider input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--primary); outline-offset: 2px; }
/* ---- 記録を書く画面（1画面）: 1行の要点・前回の宿題の ○△×・細いスライダー・開く画面 ---- */
form.rec { margin: 6px 0 0; }
form.rec > textarea { margin: 8px 0; }
.before { margin: 8px 0 2px; padding: 8px 10px; gap: 3px; overflow-wrap: anywhere; min-width: 0; }
.rec-block { padding: 6px 0 2px; border-bottom: 1px solid var(--line); }
.rec-label { font-size: 12px; color: var(--muted); }
.rec-label span { font-size: 11px; white-space: nowrap; }
.hwline { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.hwline .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk3 { display: flex; gap: 3px; flex-shrink: 0; }
.mk3 button { width: 38px; padding: 3px 0; font-size: 15px; line-height: 1.3; color: var(--muted); }
.mk3 button.on { border-color: transparent; font-weight: 700; }
.mk3 button.on.done { background: var(--ok-soft); color: var(--ok); }
.mk3 button.on.partial { background: var(--warn-soft); color: var(--warn); }
.mk3 button.on.notDone { background: var(--danger-soft); color: var(--danger); }
.rec-row, .rec-line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; text-align: left; color: var(--ink); }
.rec-row .k, .rec-line .k { font-size: 12px; color: var(--muted); }
.rec-row .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-row .v.ph { color: var(--muted); font-size: 13px; }
.rec-row .go { color: var(--muted); }
.rec-line .slider-value { font-size: 13px; min-width: 2.6em; text-align: right; }
.slider.sm { --h: 26px; --r: 11px; margin: 0; }
.slider.sm .slider-track i { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.hwrow.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); margin: 0; }
.panel-overlay { position: fixed; inset: 0; background: rgba(15, 22, 30, .35); z-index: 40; display: none; }
.panel-overlay.open { display: block; }
.panel { position: fixed; z-index: 41; background: var(--white); display: flex; flex-direction: column; visibility: hidden; }
.panel.open { visibility: visible; }
.panel.bottom { left: 0; right: 0; bottom: 0; max-height: 82vh; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); transform: translateY(100%); }
.panel.bottom.open { transform: none; animation: sheet-up var(--mo-in) var(--mo-ease); }
.panel.left { top: 0; bottom: 0; left: 0; width: min(400px, 88vw); box-shadow: 8px 0 30px rgba(0, 0, 0, .18); transform: translateX(-100%); }
.panel.left.open { transform: none; animation: drawer-in var(--mo-in) var(--mo-ease); }
.panel.still { animation: none; }
@keyframes drawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.panel-body { flex: 1; overflow: auto; padding: 10px 16px; display: grid; gap: 8px; align-content: start; }
.panel-body > * { min-width: 0; }
.panel-foot { padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.panel-foot button { width: 100%; }
.panel-body button.link { justify-self: start; text-decoration: none; color: var(--primary); }
@media (min-width: 720px) { .panel.bottom { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); border-radius: 14px; transform: translate(-50%, -50%); } .panel.bottom.open { transform: translate(-50%, -50%); animation: none; } }
@media (prefers-reduced-motion: reduce) { .panel.open { animation: none; } }
/* ---- 記録: 左上の三本線（ハンバーガーメニュー）。点はまだ見ていないものがある印 ---- */
.rec-head { align-items: center; gap: 8px; margin-top: 6px; }
.rec-head .t { flex: 1; min-width: 0; }
.rec-head h1 { margin: 0; font-size: 18px; line-height: 1.3; }
.hamb { position: relative; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 0; background: none; display: grid; place-items: center; border-radius: 10px; }
.hamb svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.hamb:active { background: var(--soft); }
.hamb.dot::after { content: ""; position: absolute; top: 7px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #1a73e8; border: 2px solid var(--paper); }
.panel .before { margin: 0; }
.panel .rec-label span { white-space: normal; }
/* ---- 記録: 2人同時の授業の切り替え（上の真ん中、Chat/Work のような形） ---- */
.seg2 { position: relative; display: flex; width: fit-content; max-width: 100%; margin: 8px auto 0; background: #eef1f4; border-radius: 999px; padding: 3px; gap: 2px; }
.seg2 button { position: relative; z-index: 1; transition: color var(--mo-in); border: 0; background: none; border-radius: 999px; padding: 6px 16px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.seg2 button.on { background: var(--white); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg2 .ok { color: var(--ok); }
/* 丸い背景が滑る（ヌルっと）。測り終わるまでは押されたボタン自身に背景を付けておく */
.seg2 .ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 999px; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); opacity: 0; transition: transform var(--mo-in) var(--mo-ease), width var(--mo-in) var(--mo-ease); }
.seg2.ready .ind { opacity: 1; }
.seg2.ready button.on { background: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .seg2 .ind { transition: none; } }
/* ---- 記録を書く画面のまとまり: 上の帯に名前、本文は1枚の白い枠（iPhone の設定のような形）、下に保存の帯。下のメニューは隠す ---- */
.bar-title { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.bar-title strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-right { flex-shrink: 0; min-width: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.bar-right .pub { padding: 6px 14px; border-radius: 999px; border: 0; background: var(--primary); color: var(--white); font-weight: 700; font-size: 14px; }
.bar-title small b { font-weight: 700; } .bar-title small b.ok { color: var(--ok); } .bar-title small b.warn { color: var(--warn); }
body.focus .top .brand { display: none; }
body.focus .top .in { flex-wrap: nowrap; }
body.focus nav#nav { display: none !important; }
body.focus main { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.group { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin: 10px 0 0; }
.group > .rec-row:last-child, .group > .rec-line:last-child { border-bottom: 0; }
.group .rec-row, .group .rec-line { padding: 11px 0; }
.rec-text { align-items: start; grid-template-columns: 48px minmax(0, 1fr); cursor: text; }
.rec-text .k { padding-top: 2px; }
.rec-text textarea { border: 0; padding: 0; background: none; resize: none; min-height: 1.6em; line-height: 1.6; outline: none; color: var(--ink); }
.rec-text:focus-within .k { color: var(--primary); }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.savebar .primary { padding-left: 18px; padding-right: 18px; }
@media (min-width: 720px) { .savebar { left: 50%; transform: translateX(-50%); width: min(860px, 100%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
/* ---- 記録: 行の頭の色つきアイコン・宿題の印・2人同時の切り替えを上の帯に ---- */
.ibox { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ibox svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-range { background: #2f6fde; } .i-understanding { background: #e0a100; } .i-comment { background: #2e9b5f; } .i-homework { background: #7b4fd6; } .i-next { background: #138a8a; } .i-accuracy { background: #d0533c; }
.group .rec-row, .group .rec-line { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; }
.group .rec-text { grid-template-columns: 28px minmax(0, 1fr); }
.rec-row .v .mk { display: inline-flex; align-items: center; gap: 2px; margin-right: 10px; font-weight: 700; font-size: 15px; }
.mk.done { color: var(--ok); } .mk.partial { color: var(--warn); } .mk.notDone { color: var(--danger); } .mk.todo { color: var(--muted); font-weight: 400; font-size: 13px; } .mk.today { color: #7b4fd6; }
.mini-i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; vertical-align: middle; color: #c3ccd5; }
.mini-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-i.on { color: #138a8a; }
.mk.today .mini-i { color: #7b4fd6; width: 18px; margin-right: 1px; }
.rec-row .v .nx { margin-left: 4px; color: var(--ink); }
.bar-seg { display: flex; justify-content: center; }
.bar-seg .seg2 { margin: 0; }
.bar-seg .seg2 button { padding: 5px 12px; font-size: 13.5px; max-width: 40vw; }
.rec-sub { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.rec-sub b.ok { color: var(--ok); } .rec-sub b.warn { color: var(--warn); }
/* ---- 範囲: 単元のまとまり ---- */
.ublock { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.ublock > .hwrow:first-child input { font-weight: 700; }
.ublock > .hwrow:first-child { grid-template-columns: minmax(0, 1fr) auto; }
.rec-row .v b { font-weight: 700; }
/* ---- 予定（スマホ）: カレンダーは2週分の窓（選んだ週が一番上）、すぐ下に選んだ日とそのあとの予定 ---- */
.cal-win { position: relative; touch-action: pan-y; overflow-x: hidden; } /* 縦はスクロール、横はスワイプで月を変える */
.cal-win .month2 { will-change: transform; }
.cal-handle { display: none; }
.day-band { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 6px 4px; margin-top: 8px; background: #eef1f4; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
@media (max-width: 719px) {
  .cal-win { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .cal-win::-webkit-scrollbar { display: none; }
  .sch-day.leaving { pointer-events: none; }
  .cal-win .wd { position: sticky; top: 0; z-index: 1; background: var(--white); height: 24px; box-sizing: border-box; }
  .cal-handle { display: block; width: 100%; padding: 10px 0 8px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
  .cal-handle span { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 5px; background: #c9d1da; transition: background .15s, width .15s; }
  .cal-handle.grab span { background: #9aa6b2; width: 52px; }
  .sch-bar + p.small.muted { display: none; }
  /* 「更新」を足しても上の段を 1 行に（2026-11-20） */
  .sch-month { min-width: 6.2em; } .sch-bar .small-btn { padding-left: 9px; padding-right: 9px; }
  /* 週の表示の一覧: その中でスクロールして前後の日も見る。日の見出しは上に留まる（2026-10-30 本人） */
  .sch-day.agenda { position: relative; height: 55vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .sch-day.agenda .day-title { position: sticky; top: 0; z-index: 1; background: var(--paper); }
  .sch-day.agenda .agenda-day { padding-bottom: 4px; }
}
/* ---- 動き（全体）: 画面の移り変わり・閉じる動き・選んだ日・押したときの手応え。「視差効果を減らす」では付けない ---- */
html { -webkit-tap-highlight-color: transparent; }
.overlay, .panel-overlay.open { animation: fade-in var(--mo-in) var(--mo-ease); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes drawer-out { to { transform: translateX(-100%); } }
.bsheet.closing, .panel.bottom.closing { animation: sheet-down var(--mo-out) var(--mo-ease-out) forwards; }
.panel.left.closing { animation: drawer-out var(--mo-out) var(--mo-ease-out) forwards; }
.overlay.closing, .panel-overlay.closing { animation: fade-out var(--mo-out) var(--mo-ease-out) forwards; }
@media (min-width: 720px) {
  .bsheet, .panel.bottom.open { animation: pop-in var(--mo-in) var(--mo-ease); }
  .bsheet.closing, .panel.bottom.closing { animation: fade-out var(--mo-out) var(--mo-ease-out) forwards; }
}
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -50%); } to { opacity: 1; transform: translate(-50%, -50%); } } /* 縮めて出さない（2026-11-28 本人「ズームして切り替わるのが気持ち悪い」） */
#app.fade-in { animation: fade-in var(--mo-in) var(--mo-ease); } /* 中に画面に固定の部品があるので、ずらさず濃さだけ */
@keyframes content-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sch-day.enter { animation: content-in var(--mo-in) var(--mo-ease); }
.month2 .cell.sel.enter { animation: sel-in var(--mo-in) var(--mo-ease); }
@keyframes sel-in { from { background: transparent; box-shadow: inset 0 0 0 0 var(--primary); } }
.rows .todo, .rec-row, .lesson, button, a.btn, .day-band { transition: background-color .15s, transform .12s; }
.rows .todo:active, .rec-row:active, .lesson:active, .day-band:active { background: #eef2f6; }
button:active:not(:disabled), a.btn:active { transform: scale(.97); }
.notice { animation: fade-in var(--mo-in) var(--mo-ease); }
.slider-track .fill { transition: width var(--mo-in) var(--mo-ease); }
/* 画面の移り変わり（対応しているブラウザだけ）: 上の帯と下のメニューは動かさず、中身だけ */
@supports (view-transition-name: none) {
  #app { view-transition-name: page; }
  .top { view-transition-name: topbar; }
  /* view-transition-name で #app は別の重なりの層になり、中の下から出る画面が上の帯（.top）の下に隠れる。開いているあいだは #app を帯より上に（2026-10-29 本人「モーダル上部が見切れている」） */
  #app:has(.overlay, .bsheet, .panel.open, .panel-overlay.open) { position: relative; z-index: 20; }
  ::view-transition-old(page), ::view-transition-new(page), ::view-transition-old(topbar), ::view-transition-new(topbar) { animation-duration: var(--mo-in); animation-timing-function: var(--mo-ease); }
  ::view-transition-old(page), ::view-transition-old(topbar) { animation-duration: var(--mo-out); animation-timing-function: var(--mo-ease-out); }
  /* 画面の切り替えは 1 種類だけ: その場でふわっと入れ替える（2026-11-28 本人「ズームして切り替わったり、逆再生のズームだったり、スライドしたり、統一されていないのが気持ち悪い」）。
     奥へ・戻る・メニュー・タブの区別なく同じ。前の画面と次の画面の大きさが違うときに枠ごと伸び縮みして「ズーム」に見えていたので、枠は動かさず、絵は上に揃えて伸ばさない */
  ::view-transition-group(page), ::view-transition-group(topbar), ::view-transition-group(root) { animation: none; }
  ::view-transition-old(page), ::view-transition-new(page), ::view-transition-old(topbar), ::view-transition-new(topbar) { height: 100%; object-fit: none; object-position: top center; }
  ::view-transition-new(page), ::view-transition-new(topbar) { animation-name: vt-fade-in; }
  ::view-transition-old(page), ::view-transition-old(topbar) { animation-name: vt-fade-out; }
}
@keyframes vt-fade-in { from { opacity: 0; } }
@keyframes vt-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  #app { view-transition-name: none; }
}
/* ---- 今日: 上の帯に「今日」、対応することと授業は白い枠。行の右に丸いボタン ---- */
body.has-bar .top .brand { display: none; }
body.has-bar .top .in { flex-wrap: nowrap; min-height: 52px; }
.sec-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; margin: 18px 2px 6px; }
.sec-title .count { font-size: 12px; background: var(--warn-soft); color: var(--warn); border-radius: 999px; padding: 0 8px; font-weight: 700; line-height: 1.6; }
.sec-title .count.gray { background: #eef1f4; color: var(--muted); }
.group a.rec-row { text-decoration: none; }
.rec-row .lbl { font-weight: 700; display: block; }
.rec-row .v small { display: block; font-size: 12px; }
.rec-row .cnt { font-weight: 700; font-size: 17px; color: var(--warn); padding-right: 2px; }
.lrow { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.group > .lrow:last-child { border-bottom: 0; }
.lrow .t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.lrow .t small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.lrow .b { min-width: 0; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.lrow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ibtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; flex-shrink: 0; }
.ibtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ibtn.primary { background: var(--primary); border-color: var(--primary); color: var(--white); }
.ibtn.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.ibtn.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---- 生徒の一覧: 探す欄・家族ごとの白い枠・名字の丸・小さな印 ---- */
.search { position: relative; display: block; margin: 10px 0 4px; }
.search svg { position: absolute; left: 11px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { padding-left: 36px; border-radius: 12px; background: #eef1f4; border-color: transparent; }
.fam-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 4px 6px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mini-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef1f4; color: var(--muted); }
.mini-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.srow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.group > .srow:last-child { border-bottom: 0; }
.srow.left { opacity: .55; }
.srow .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.srow .b { display: grid; min-width: 0; }
.srow .b strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .b small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .badges { display: flex; gap: 4px; }
.srow .go { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px 2px 6px; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.bar-right .ibtn { width: 36px; height: 36px; }
/* 上の帯のポスト（事務員から。2026-11-27）: PC ではメニューの右端、スマホでは帯の右。振り分け待ちの件数は右上の丸 */
.bar-right:has(.post-btn) { order: 10; }
.post-btn { position: relative; cursor: pointer; }
.post-btn:hover { background: var(--soft); }
.post-btn:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.post-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #b23a2a; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---- 保護者・生徒の画面（assets/v2/portal-ui.js）: 白い枠に 1 件 1 行、操作は下から出る画面 ---- */
body.has-bar .brand { display: none; }
@media (min-width: 721px) { body.has-bar .brand { display: block; } }
.day-head2 { display: flex; align-items: baseline; gap: 8px; margin: 14px 2px 0; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.day-head2.today { color: var(--primary); }
.day-head2 small { font-weight: 400; font-size: 11.5px; }
.day-head2 + .group { margin-top: 4px; }
.lrow.pl { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lrow.pl:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 6px; }
.lrow.pl .nm b { font-weight: 700; }
.lrow.pl .nm small { color: var(--muted); font-size: 12px; }
.lrow.pl .go { color: var(--muted); font-size: 20px; padding-right: 2px; }
.lrow.pl.mt .nm { color: #4a3590; font-weight: 700; }
.lrow.pl.mt .nm small { font-weight: 400; }
.lrow.faded { opacity: .55; }
.lrow.faded .t { text-decoration: line-through; }
.group > .lrow.pl:last-child { border-bottom: 0; }
/* 次の授業（ホームの一番上）: 1 つだけ大きく */
.hero { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 4px; width: 100%; margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--primary); color: var(--white); }
.hero:focus-visible { outline: 3px solid #9fb0ff; outline-offset: 2px; }
.hero:active { transform: scale(.99); }
.hero .k { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; opacity: .85; }
.hero .k b { font-size: 12px; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 1px 9px; opacity: 1; }
.hero strong { font-size: 26px; line-height: 1.2; letter-spacing: .01em; }
.hero strong small { font-size: 14px; font-weight: 400; opacity: .9; }
.hero .s { font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero .s .tag { background: rgba(255, 255, 255, .2); color: var(--white); }
.hero.empty { background: var(--white); color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.hero.empty strong { font-size: 16px; color: var(--muted); }
/* 授業を押したときの画面 */
.ls-head { display: grid; gap: 4px; padding: 2px 0 10px; }
.ls-head strong { font-size: 16px; }
.ls-req { display: grid; gap: 10px; background: var(--soft); border-radius: 10px; padding: 12px; margin: 6px 0; }
.choice-list { display: grid; gap: 6px; }
.choice { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.choice .b { display: grid; gap: 2px; }
.choice .b small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.choice .cost { font-size: 13px; color: var(--muted); white-space: nowrap; }
.choice.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; background: #f2f5ff; }
.choice.danger.on { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger) inset; background: var(--danger-soft); }
.choice:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
button.wide, a.btn.wide { width: 100%; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 11px 14px; font-weight: 700; text-align: center; }
a.btn.wide svg, button.btn svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 宿題: 左の丸を押して「できた」 */
.hw { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.group > .hw:last-child { border-bottom: 0; }
.hw .b { display: grid; gap: 1px; min-width: 0; }
.hw .nm { font-weight: 700; }
.hw .b small { color: var(--muted); font-size: 12px; }
.hw .b small .note { display: block; color: var(--warn); }
.hw.reported .nm { color: var(--muted); }
.hw.confirmed .nm { color: var(--muted); text-decoration: line-through; }
.hw-dot { all: unset; box-sizing: border-box; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #b9c3cf; display: grid; place-items: center; color: var(--white); background: var(--white); transition: background .15s, border-color .15s, transform .12s; }
.hw-dot:active { transform: scale(.9); }
.hw-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hw-dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hw-dot.on { background: var(--primary); border-color: var(--primary); }
.hw-dot.done { background: var(--ok); border-color: var(--ok); cursor: default; }
span.hw-dot { cursor: default; }
/* 授業の記録: 1 件 1 枚 */
.rcard { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 4px; margin: 10px 0 0; }
.rc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; }
.rc-head strong { font-size: 15px; }
.rc-head strong small { font-weight: 400; color: var(--muted); font-size: 12px; }
.rc-line { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.rc-line .ibox { margin-top: 1px; }
.rc-line .pre { white-space: pre-wrap; }
.rc-line.pm { background: #eefaf8; margin: 4px -12px 0; padding: 9px 12px 10px; border-top: 0; border-radius: 0 0 11px 11px; }
.rc-line.pm b { display: block; font-size: 12px; color: #138a8a; }
.rcard:has(.rc-line.pm) { padding-bottom: 0; }
.chk-list { display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* 授業計画: 月ごとに 1 枚 */
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; display: grid; gap: 8px; }
.pcard.ask { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-head strong { font-size: 16px; }
.pl-list { display: grid; }
.pl { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.pl .b { display: grid; gap: 1px; min-width: 0; }
.pl .b small { font-size: 12px; }
.pl .n { display: grid; gap: 2px; justify-items: end; }
.pl .n select { width: auto; padding: 4px 8px; font-size: 14px; }
.pl .n small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pl .amt { font-weight: 700; min-width: 5.2em; text-align: right; }
.pl-note { padding: 0 0 6px; }
.pc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 8px; }
.pc-total strong { font-size: 18px; }
.pcard p { margin: 0; }
details.ph { border-bottom: 1px solid var(--line); }
.group > details.ph:last-child { border-bottom: 0; }
details.ph summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; }
details.ph summary::-webkit-details-marker { display: none; }
details.ph summary .b { display: grid; gap: 1px; min-width: 0; }
details.ph summary .b small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.ph .pl-list { padding-bottom: 6px; }
/* 請求・キャンセル料の行 */
.irow { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.irow:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 6px; }
.group > .irow:last-child { border-bottom: 0; }
.irow .b { display: grid; gap: 2px; min-width: 0; }
.irow .b small { color: var(--muted); font-size: 12px; }
.irow .amt { font-weight: 700; font-size: 16px; }
.irow .go { color: var(--muted); font-size: 20px; padding-right: 2px; }
.inv-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 10px; }
.inv-total strong { font-size: 24px; }
.itbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.itbl td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.itbl td.r { text-align: right; white-space: nowrap; }
.bsheet textarea { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
/* テスト・行事 */
.evrow { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.group > .evrow:last-child { border-bottom: 0; }
.evrow .t { font-weight: 700; font-size: 15px; line-height: 1.2; }
.evrow .t small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.evrow .b { display: grid; gap: 1px; min-width: 0; }
.evrow .b small { color: var(--muted); font-size: 12px; }
.evrow .x { all: unset; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.evrow .x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sec-title .add { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; padding: 0; color: var(--primary); }
.sec-title .add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sec-title .more { margin-left: auto; font-size: 12.5px; font-weight: 400; text-decoration: none; }
/* やること（ホーム） */
.todo-row { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.group > .todo-row:last-child { border-bottom: 0; }
.todo-row .v { display: grid; gap: 1px; min-width: 0; }
.todo-row .lbl { font-weight: 700; }
.todo-row .v small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-row .cnt { font-weight: 700; font-size: 17px; color: var(--warn); }
.todo-row .go { color: var(--muted); font-size: 20px; padding-right: 2px; }
.todo-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 6px; }
.sec-title:first-child { margin-top: 12px; }

/* ---- スタッフの残りの画面（2026-10-08）: 見出しは上の帯に、一覧は白い枠に 1 件 1 行 ---- */
h2 { font-size: 15px; margin: 18px 2px 6px; }
h2::after { display: none; }
.bsheet h2 { margin-top: 14px; }
/* .rows（押すと下から出る画面を開く行の一覧）も白い枠に */
.rows { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin: 8px 0 0; }
.rows > :last-child { border-bottom: 0 !important; }
.rows .todo, .rows .ev, .rows .lesson, .rows .lesson-row { padding-left: 0; padding-right: 0; }
.rows .todo { padding-top: 11px; padding-bottom: 11px; }
.rows .todo:hover, .rows .lesson:hover { background: none; }
.rows .todo:active, .rows .lesson:active { background: none; }
.group .todo { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.group button.todo { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font: inherit; }
.group .todo .b { display: grid; gap: 1px; min-width: 0; }
.group .todo .go { color: var(--muted); font-size: 20px; padding-right: 2px; }
.group > .todo:last-child { border-bottom: 0; }
.group .todo.left { opacity: .55; }
.group .tags { display: flex; gap: 4px; }
/* 月を選ぶ: ‹ 2026年11月 › */
.mpick { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 4px; }
.mpick strong { font-size: 16px; min-width: 7.5em; text-align: center; }
.mpick button.icon { width: 36px; height: 36px; border-radius: 50%; font-size: 24px; padding: 0; display: grid; place-items: center; }
/* 月の仕事: 1 つの仕事が 1 枚 */
.job { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 0; overflow: hidden; }
.job.now { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.job-head { display: grid; grid-template-columns: 28px auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; text-decoration: none; color: var(--ink); }
.job-head .v { display: flex; gap: 8px; align-items: baseline; min-width: 0; white-space: nowrap; } /* 1 行に（2026-11-27） */
.job-head > .tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .job-head { grid-template-columns: 28px minmax(0, 1fr) auto; } .job-head > .tags { grid-column: 2; grid-row: 2; justify-content: flex-start; } .job-head .go { grid-column: 3; grid-row: 1 / 3; } }
.job-head .lbl { font-weight: 700; font-size: 15px; }
.job-head small { color: var(--muted); font-size: 12px; }
.job-head small b { color: var(--warn); }
.job-head .go { color: var(--muted); font-size: 20px; }
.job-head:active { background: #eef2f6; }
.job-body { padding: 0 12px 10px; display: grid; gap: 6px; }
.job-body .tags { display: flex; gap: 4px; flex-wrap: wrap; }
/* 計画: 家族の見出し → 生徒ごとの白い枠 */
.sub-head { display: flex; align-items: center; gap: 8px; padding: 10px 0 6px; border-bottom: 1px solid var(--line); }
.sub-head strong { font-size: 15px; }
.sub-head small { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-head .mini-btn { border: 0; padding: 0; cursor: pointer; }
.fam-head .row { gap: 6px; }
.fam-head .small-btn { font-size: 12.5px; padding: 5px 10px; }
.search input[type="search"] { width: 100%; }
.rows .lesson-row { grid-template-columns: 5.4em minmax(0, 1fr) auto; }
.rows .lesson-row .t small, .rows .ev .t { white-space: nowrap; }
.tabs2 { margin-top: 10px; }
.agree { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); padding: 4px 0; }
.agree input { width: 20px; height: 20px; }

/* 成績: 科目の表と試験をまたいだ一覧（2026-10-11）。数字は右寄せ、1 列目は科目 */
.gwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.gtable { border-collapse: collapse; font-size: 14px; min-width: 100%; }
table.gtable th, table.gtable td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.gtable thead th { font-weight: 500; color: var(--muted); font-size: 12px; text-align: right; vertical-align: bottom; }
table.gtable thead th .nm { display: block; color: var(--ink); font-size: 13px; }
table.gtable thead th small { display: block; font-weight: 400; }
table.gtable tbody th { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--white); }
table.gtable td { text-align: right; font-variant-numeric: tabular-nums; }
table.gtable td small { color: var(--muted); font-size: 11px; }
table.gtable tr.tot th, table.gtable tr.tot td { border-top: 2px solid var(--line); font-weight: 600; }
.gsum { margin: 12px 0; }
/* 試験をまたいだ一覧: 行が試験、列が科目。3教科・合計は線で区切って太字に。スマホでは詰めて 1 画面に収める */
table.gsum-t tbody th .nm { display: block; font-size: 13px; }
table.gsum-t tbody th small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
table.gsum-t thead th { color: var(--ink); font-size: 13px; }
/* 数字は列の中央に（PC で表が広がると右寄せでは右に寄って見える。2026-11-02 本人「右にめっちゃ寄っている」） */
table.gsum-t td, table.gsum-t thead th { text-align: center; }
table.gsum-t .agg, table.gsum-t .tot { font-weight: 600; }
table.gsum-t .agg:not(.agg + .agg), table.gsum-t .tot { border-left: 2px solid var(--line); }
table.gsum-t .agg + .tot { border-left-width: 1px; }
@media (max-width: 480px) { table.gsum-t th, table.gsum-t td { padding: 6px 4px; } table.gsum-t { font-size: 13px; } }
button.linkish { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
/* 入力欄: 模試は順位・人数の列を隠し、定期テストは偏差値の列を隠す（種類を切り替えるとその場で変わる） */
form[data-form=gr-save]:has(select[name=series] option[value="__new"]:checked) .c-newseries, form[data-form=gr-save]:has(select[name=series] option:not([value="定期テスト"]):checked) .c-rank, form[data-form=gr-save]:has(select[name=series] option[value="定期テスト"]:checked) .c-dev { display: none; }
form[data-form=gr-save]:has(select[name=series] option[value="__new"]:checked) .c-newseries { display: block; }
form[data-form=gr-save] .c-newseries { display: none; }
table.gform th { font-weight: 500; color: var(--muted); font-size: 12px; text-align: left; }
/* 成績のグラフ: 科目の帯で 1 本を大きく。試験は ‹ › で 1 つずつ（2026-10-11） */
.gchart { margin: 12px 0; }
.gchips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.gchip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 13px; white-space: nowrap; }
.gchip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }
.gchart-head { display: flex; align-items: baseline; gap: 8px; margin: 6px 2px 2px; }
.gchart-head .up { color: var(--ok); } .gchart-head .down { color: var(--danger); }
.gchart svg { width: 100%; height: auto; display: block; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
/* 成績の収まり（2026-10-11）: 推移は 1 つの箱、試験ごとは ‹ › の帯とカードを 1 つの箱に。成績票は大きなボタンで開く */
.gtrend { padding: 10px 12px 6px; margin: 8px 0 0; }
/* 生徒の概要の今週の授業（2026-11-05）: 7 日分のカレンダーと、合計・科目ごとのコマ数 */
.wk { padding: 12px; margin: 8px 0 0; }
/* 週の移動（2026-11-06）: 見出しの右に ‹ ›。今週以外では「今週」で戻れる */
.sn-head { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.sn-head h2 { flex: 1; margin: 0 2px; }
.sn-text { margin: 6px 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* 生徒のこと（志望校）と面談の記録（2026-11-27）: 行は授業の行と同じ大きさ。前の志望は薄く */
.rows .ev.gl, .rows .ev.mr { grid-template-columns: 4.6em minmax(0, 1fr) auto; font-size: 15px; color: var(--ink); }
.rows .ev.gl .t, .rows .ev.mr .t { font-weight: 700; font-size: 13px; }
.rows .ev.gl .b small, .rows .ev.mr .b small { font-size: 12.5px; }
.rows .ev.mr { align-items: start; }
.rows .ev.gl-past { opacity: .6; }
.gl-h { font-size: 13px; color: var(--muted); font-weight: 600; margin: 14px 2px 2px; }
.mr-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.gl-form, .mr-form { margin: 6px 0 10px; }
.mt-rec { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.wk-sum p { margin: 0; }
.wk-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; }
.wk-n { font-size: 14px; } .wk-n strong { font-size: 30px; color: var(--primary); margin-right: 2px; font-variant-numeric: tabular-nums; }
.wk-s { font-size: 14px; color: var(--muted); } .wk-s b { color: var(--ink); font-size: 17px; }
.wk-sum .tag { align-self: center; }
.wk-cal { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wk-bar { display: flex; align-items: center; gap: 6px; padding: 6px; border-bottom: 1px solid var(--line); }
button.wk-go { flex: none; width: 56px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: var(--soft); color: var(--primary); font-size: 24px; font-weight: 700; line-height: 1; }
button.wk-go:hover { background: #dce8f6; }
.wk-range { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-variant-numeric: tabular-nums; }
.wk-range b { font-size: 16px; }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wk-d { min-width: 0; min-height: 92px; padding: 0 2px 4px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.wk-d:first-child { border-left: 0; }
.wk-h { margin: 0 -2px 2px; padding: 4px 0; text-align: center; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); line-height: 1.25; font-variant-numeric: tabular-nums; }
.wk-h span { display: block; font-size: 12px; }
.wk-d.sun .wk-h span { color: var(--danger); } .wk-d.sat .wk-h span { color: var(--primary); }
.wk-d.today { background: var(--soft); } .wk-d.today .wk-h { color: var(--primary); font-weight: 700; }
.wk-l { display: block; padding: 3px 2px; border-radius: 6px; background: var(--primary); color: var(--white); font-size: 12px; line-height: 1.25; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.wk-l b { display: block; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wk-l small { display: block; font-size: 10px; }
button.wk-l { width: 100%; border: 0; font: inherit; font-size: 12px; cursor: pointer; } /* 生徒・保護者のホームは押すと下から出る画面（2026-11-27） */
.wk-l.done { background: #e7ebef; color: var(--muted); }
.wk-l.mt { background: #6a4fb3; }
.wk-l.tent { background: var(--white); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.wk-next { margin: 8px 2px 0; }
/* 最新の回を大きく（2026-11-05）。過去の一覧とグラフは「過去の結果」を開いたときだけ */
.glatest { padding: 4px 2px 10px; }
.glatest-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; }
.glatest-head .nm { font-size: 17px; font-weight: 700; }
.glatest-head button.nm { font-size: 17px; }
.glatest-head small { color: var(--muted); font-size: 12px; }
.glatest-head .vs { margin-left: auto; }
.gtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.gtiles.main { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 8px; }
.gtile { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 8px 2px; border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums; }
.gtile .lb { font-size: 12.5px; color: var(--muted); }
.gtile .v { font-size: 24px; font-weight: 700; line-height: 1.25; }
.gtile .d { font-size: 12.5px; color: var(--muted); }
.gtile .d.up { color: var(--ok); } .gtile .d.down { color: var(--danger); }
.gtile small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.gtiles.main .gtile { padding: 10px 4px; border: 0; background: var(--soft); }
.gtiles.main .lb { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.gtiles.main .v { font-size: 38px; color: var(--primary); }
.gtiles.main .d { font-size: 14px; font-weight: 700; }
.gpast { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.gpast small { color: var(--muted); font-weight: 400; }
.gpast .ch { margin-left: auto; color: var(--muted); font-size: 11px; }
.gtrend .gsum { margin: 0 0 6px; }
.gtrend .gchart { margin: 10px 0 4px; }
.gtrend .gchart svg { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.gsheets { display: flex; flex-direction: column; gap: 6px; }
.gsheet-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gsheet-btn .ic { flex: none; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); }
.gsheet-btn .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsheet-btn .go { flex: none; color: var(--primary); font-weight: 700; }
.gsheet-btn.as-label { border-style: dashed; color: var(--muted); }
.gupload { margin-top: 10px; }
.gupload summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 2px; }
/* 授業計画の下書きのチェック（選んだものだけお知らせ。2026-10-11） */
.pl-row { display: flex; align-items: center; gap: 10px; }
.pl-row > .todo { flex: 1; min-width: 0; }
.pl-row > .pl-pick { flex: none; width: 20px; height: 20px; margin: 0 0 0 2px; accent-color: var(--primary); }
/* 面談の相手: 「登録していない人」を選んだときだけ名前の欄（2026-10-11） */
form[data-form=sch-meeting] .mt-with { display: none; }
form[data-form=sch-meeting]:has(select[name=familyId] option[value=""]:checked) .mt-with { display: block; }
/* 個別指導条件のカード（保護者ページ。2026-10-12） */
.cond-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 10px 0; font-size: 14px; }
.cond-dl dt { color: var(--muted); white-space: nowrap; }
.cond-dl dd { margin: 0; }
/* 契約の画面の書類（同意・適用・終了を同じ並びで） */
.pcard.doc .cond-dl { margin: 0; }
.pcard.doc .pc-head { align-items: flex-start; }
.btn.sm { padding: 4px 10px; font-size: 13px; min-height: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
/* 書面をページの上に重ねて開く（入塾・契約更新の個別受講条件書） */
.doc-view { position: fixed; inset: 0; z-index: 60; background: var(--white); display: flex; flex-direction: column; }
.doc-view-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
.doc-view iframe { flex: 1; width: 100%; border: 0; }
.doc-view-msg { padding: 24px 16px; color: var(--muted); }
body.doc-open { overflow: hidden; }
.btn.sm svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 体験生（2026-10-12） */
.trial-new { margin: 10px 0 4px; }
.trial-new summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 14px; padding: 6px 2px; }
.trial-new form { margin-top: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
form[data-form=sch-create] .trial-hint { display: none; margin: -4px 0 0; }
form[data-form=sch-create]:has(select[name=studentId] option[data-trial]:checked) .trial-hint { display: block; }

/* 授業計画のまとめ（assets/v2/plan-view.js。管理画面の一覧・計画全体のプレビュー・保護者画面） */
.pl-set { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: var(--white); }
/* 受講計画書（#plans）2026-10-26 作り直し: やることが残っている順のまとまり。1人1行。押すと下から生徒の受講計画書 */
.pl-progress { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 2px 14px; font-size: 14px; color: var(--muted); }
.pl-progress > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.pl-progress b { font-size: 24px; color: var(--ink); }
.pl-progress small { width: 100%; font-size: 13px; }
.pl-sec { margin: 0 0 18px; }
.pl-sec-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; }
.pl-sec-head h2 { flex: 1; margin: 0; font-size: 15px; }
.pl-rows { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pl-stu-row { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; font-size: 15px; color: var(--ink); }
button.pl-stu-row { cursor: pointer; }
button.pl-stu-row:hover { background: #f6f8fa; }
button.pl-stu-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.pl-stu-row + .pl-stu-row { border-top: 1px solid var(--line); }
.pl-stu-row strong { font-size: 15px; }
.pl-stu-row .pl-what { flex: 1; min-width: 10em; color: var(--ink); font-size: 14px; }
.pl-stu-row .pl-cnt { white-space: nowrap; font-weight: 700; }
/* 承認済み: 使った回数の棒と「あと何回」（2026-10-27） */
.pl-stu-row.has-prog { display: grid; grid-template-columns: minmax(0, 1fr) 15em 6.5em 1em; gap: 6px 14px; }
.pl-stu-row .pl-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.pl-prog { display: grid; gap: 4px; }
.pl-prog .bar { display: flex; height: 8px; border-radius: 99px; background: #e7ebef; overflow: hidden; }
.pl-prog .bar i { display: block; height: 100%; }
.pl-prog .bar .d { background: var(--primary); }
.pl-prog .bar .f { background: #7d8fe0; }
.pl-prog .bar .t { background: repeating-linear-gradient(45deg, #f0b44a 0 4px, #f8d798 4px 8px); }
.pl-prog .lbl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.pl-prog .lbl b { font-size: 15px; }
.pl-prog .lbl small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .pl-stu-row.has-prog { grid-template-columns: minmax(0, 1fr) auto 1em; } .pl-stu-row.has-prog .pl-who { grid-column: 1 / -1; } .pl-stu-row.has-prog .pl-prog { grid-column: 1; } }
.pl-stu-row .pl-amt { white-space: nowrap; min-width: 6.5em; text-align: right; }
.pl-stu-row .go { color: var(--muted); }
.pl-stu-row .grow { flex: 1; }
.pl-famblock + .pl-famblock { margin-top: 10px; }
.pl-fam-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 2px 6px; }
.pl-fam-head strong { font-size: 14px; }
.pl-fam-head .grow { flex: 1; }
.pl-fam-head > strong + .small-btn, .pl-fam-head > strong + span + .small-btn { margin-left: auto; }
/* 生徒の受講計画書（下から出る画面）: 期間と状態ごとの見出しと行の表 */
.pl-set-head .grow { flex: 1; }
.bsheet .pl-set { border: 0; border-radius: 0; padding: 0; margin: 0 0 12px; background: none; }
.bsheet .pl-set-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 0; font-size: 14px; }
.bsheet .pl-set-head .pl-amt { font-weight: 700; color: var(--ink); }
.pl-lines { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pl-r { display: flex; align-items: stretch; }
.pl-r + .pl-r { border-top: 1px solid var(--line); }
.pl-r .pl-pick { flex: none; align-self: center; width: 18px; height: 18px; margin: 0 0 0 12px; accent-color: var(--primary); }
.pl-line { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 5em 9em 7em 1em; align-items: baseline; gap: 2px 12px; padding: 8px 12px; font-size: 14.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pl-line:hover { background: #f6f8fa; }
.pl-line:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.pl-line .pl-ln-subj { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.pl-line .pl-kind { color: var(--muted); font-size: 13px; }
.pl-line .pl-n, .pl-line .pl-fee, .pl-line .pl-amt { text-align: right; white-space: nowrap; }
.pl-line .pl-amt { font-weight: 700; }
.pl-line .go { color: var(--muted); text-align: right; }
.pl-line .pl-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.pl-line .pl-note .over { color: var(--danger); }
.pl-line .pl-note .left { color: var(--ok); }
/* 行の表の見出し（2026-11-08） */
.pl-hd { background: #f6f8fa; }
.pl-hd .pl-pick { visibility: hidden; }
.pl-hd .pl-line { cursor: default; padding-top: 5px; padding-bottom: 5px; font-size: 12px; color: var(--muted); }
.pl-hd .pl-line:hover { background: none; }
.pl-hd .pl-line .pl-amt { font-weight: 400; }
@media (max-width: 560px) {
  .pl-line { grid-template-columns: minmax(0, 1fr) auto 1em; }
  .pl-line .pl-n { grid-column: 2; grid-row: 1; }
  .pl-line .pl-fee { grid-column: 1; grid-row: 2; text-align: left; font-size: 13px; color: var(--muted); }
  .pl-line .pl-amt { grid-column: 2; grid-row: 2; }
  .pl-line .go { grid-column: 3; grid-row: 1 / 3; }
  .pl-hd { display: none; }
}
.pl-set-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pl-set-head small { color: var(--muted); }
.pl-set-head .grow { flex: 1; }
.pl-subj { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.pl-subj-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 2px; font-size: 15px; }
.pl-subj-head small { color: var(--muted); font-weight: 400; font-size: 13px; }
.pl-subj-head .amt { margin-left: auto; white-space: nowrap; }
.pv-notes { display: grid; gap: 4px; margin: 4px 0; }
.pv-note { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.pv-purposes { display: grid; gap: 2px; margin: 4px 0; padding: 6px 8px; background: var(--soft); border-radius: 8px; }
.pv-purpose { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pv-purpose span { overflow-wrap: anywhere; min-width: 0; }
.pv-purpose b { white-space: nowrap; }
.pv-purpose.muted { color: var(--muted); }
.pv-warn { color: var(--danger); margin: 2px 0; }
.pv-head { margin: 0; }
.pv-tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.pv-tbl thead th { padding: 0 0 4px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; text-align: right; white-space: nowrap; }
.pv-tbl thead th:first-child { padding-left: 0; text-align: left; }
.pv-tbl tbody th { padding: 10px 0 2px; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.pv-tbl tbody td { padding: 10px 0 2px 12px; text-align: right; white-space: nowrap; }
.pv-tbl td small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.pv-tbl .amt { font-weight: 700; }
.pv-item { border-bottom: 1px solid var(--line); }
.pv-tbl .pv-more td { padding: 0 0 10px; font-size: 13px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.pv-tbl tfoot th, .pv-tbl tfoot td { padding: 10px 0 0 12px; font-size: 14px; text-align: right; white-space: nowrap; }
.pv-tbl tfoot th { padding-left: 0; text-align: left; }
.pv-tbl tfoot .amt { font-size: 18px; }
.parts-in { display: grid; grid-template-columns: minmax(0, 1fr) 6em; gap: 4px 8px; }
/* 講師の本人情報: ほかに雇われている勤務先が「ある」のときだけ、曜日と時間の欄を出す（:has が使えない端末では常に出る） */
form[data-form="em-registration"]:not(:has(input[name="otherEmployment"][value="yes"]:checked)) .ow-hours { display: none; }
/* 入職の手続き: 進み具合（ステップ表示） */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 0; margin: 8px 0 18px; }
.steps.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 11px; line-height: 1.3; color: var(--muted); }
.steps li + li::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 15px); right: calc(50% + 15px); height: 2px; background: var(--line); }
.steps li.done::before, .steps li.now::before { background: var(--primary); }
.steps .n { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--white); font-size: 12px; font-weight: 700; }
.steps li.done .n { background: var(--primary); border-color: var(--primary); color: var(--white); }
.steps li.now .n { border-color: var(--primary); color: var(--primary); }
.steps li.now .t { color: var(--ink); font-weight: 700; }
/* 入職の手続き: 本人情報の登録（項目ごとの見出し・必須の印・選択肢） */
.reg-form { display: grid; gap: 22px; margin-top: 8px; }
.reg-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.reg-field > legend { display: flex; align-items: center; gap: 8px; padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--ink); }
.req { font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--white); background: #b42318; border-radius: 4px; padding: 0 6px; }
.reg-help { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.reg-field label.sub { font-size: 12px; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 15px; color: var(--ink); cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.choice small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.reg-confirm .cond-dl { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.reg-form input[aria-invalid="true"], .reg-form select[aria-invalid="true"] { border-color: #b42318; background: #fff6f5; }
.reg-error { margin: 0; font-size: 12px; font-weight: 700; color: #b42318; }
.reg-field.has-error input:not([type="radio"]):placeholder-shown { border-color: #b42318; background: #fff6f5; }
.reg-field.has-error .choice { border-color: #e7a59d; }
.reg-confirm .cond-dl { grid-template-columns: minmax(6.5em, 38%) minmax(0, 1fr); }
.reg-confirm .cond-dl dt { white-space: normal; }
/* 入職の手続き: 登録内容（見出しの下に内容） */
.reg-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.reg-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reg-card-head h2 { margin: 0; font-size: 16px; }
.reg-rows { margin: 6px 0 0; }
.reg-rows > div { padding: 10px 0; border-top: 1px solid var(--line); }
.reg-rows > div:first-child { border-top: 0; }
.reg-rows dt { font-size: 12px; color: var(--muted); }
.reg-rows dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
/* 入職の手続き: 今後の流れ */
.flow { margin: 20px 0 8px; }
.flow h2 { font-size: 16px; margin: 0 0 10px; }
.flow ol { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; padding: 0 0 16px 28px; }
.flow li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); box-sizing: border-box; }
.flow li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow li.done::before { background: var(--primary); border-color: var(--primary); }
.flow li.done::after { background: var(--primary); }
.flow li.now::before { border-color: var(--primary); box-shadow: 0 0 0 3px var(--soft); }
.flow .ft { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.flow li:not(.done):not(.now) .ft { color: var(--muted); }
.flow .fb { margin-top: 2px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.fbadge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 8px; background: var(--soft); color: var(--primary); }
.fbadge.now { background: var(--primary); color: var(--white); }
.reg-note { display: block; margin-top: 2px; font-size: 12px; color: #b54708; }
.opt { font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }
/* 書類のひな形の一覧: 説明は折り返して全部見せ、右の「見本 ›」は小さく */
.doc-row { font-size: 15px; }
.doc-row .v small { white-space: normal; overflow: visible; line-height: 1.5; }
.doc-row .go { font-size: 13px; color: var(--muted); white-space: nowrap; }
/* 代表の画面: 勤務開始までにすること */
.todo-list { margin: 8px 0 0; padding-left: 1.2em; }
.todo-list li { margin: 2px 0; }
.reg-card .reg-form { gap: 16px; }
/* 勤務の日（シフト）: 2026-10-18 一般的なシフト管理の形 */
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.day-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 4px 0 6px; }
.day-nav h1 { margin: 0; text-align: center; font-size: 20px; }
.day-nav h1 small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.day-nav .btn { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.shift-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 8px; }
.shift-time { font-size: 24px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.shift-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.shift-list li { display: grid; grid-template-columns: 7.5em auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.shift-list .t { font-variant-numeric: tabular-nums; }
.shift-list .tag { justify-self: start; margin: 0; }
.shift-list .l { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.shift-rows { display: grid; gap: 6px; }
.shift-row { display: grid; grid-template-columns: 6.5em auto 6.5em 10em minmax(0, 1fr) 2.4em; gap: 6px; align-items: center; }
.shift-row input, .shift-row select { min-width: 0; margin: 0; }
.shift-row .sep { color: var(--muted); }
.shift-row .icon { width: 2.4em; height: 2.4em; padding: 0; border-radius: 8px; }
.shift-row-head span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) {
  .shift-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 2.4em; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
  .shift-row select { grid-column: 1 / 4; }
  .shift-row input[name^="label_"] { grid-column: 1 / 4; }
  .shift-row .icon { grid-row: 1; grid-column: 4; }
  .shift-row-head { display: none; }
  .shift-list li { grid-template-columns: 7em auto; }
  .shift-list .l { grid-column: 1 / -1; }
}
.reg-field:has(input[name="delivery"][value="paper"]:checked) .dl-mail, .reg-field:not(:has(input[name="delivery"]:checked)) .dl-mail { display: none; }

/* 入塾の手続き（2026-10-26 本人「受講条件に記載する内容というのが分かるまとまり」「どこが登録されている情報で項目なのか分からない」）:
   個別受講条件書に載る内容は 1 つの枠に。登録した内容は、項目名と中身を左右に並べる表で、文字は濃く */
.cond-box { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 14px; background: var(--paper); }
.cond-box > legend { padding: 0 6px; margin: 0 0 4px -6px; }
.cond-sub { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.info-head { font-size: 15px; margin: 16px 0 0; }
/* 表計算のような罫線つきの表（入塾のお申込み。2026-10-26 本人「エクセルのような表示形式の方が分かりやすい」） */
.grid-table { width: 100%; border-collapse: collapse; margin: 10px 0 0; }
.grid-table th, .grid-table td { border: 1px solid #c3ccd5; padding: 8px 10px; text-align: left; vertical-align: top; color: var(--ink); overflow-wrap: anywhere; }
/* 項目名は 1 行。狭い画面では語のまとまり（span）の間でだけ折り返す */
.grid-table th { width: 1%; white-space: nowrap; background: #eef2f6; font-size: 14px; font-weight: 600; text-align: center; vertical-align: middle; } /* 項目名はマスの中央 */
.grid-table th > span { display: inline-block; white-space: nowrap; }
@media (max-width: 480px) { .grid-table th { white-space: normal; } }
.grid-table td { background: var(--white); font-size: 15px; white-space: pre-line; }
/* 入塾のお申込みの同意の欄: 開く全文の一覧（開いたものに ✓）とチェック欄 */
.agree-card { display: grid; gap: 12px; }
.agree-docs { list-style: none; margin: 0; padding: 0; }
.agree-docs li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.agree-docs li:first-child { padding-top: 2px; }
.agree-docs .mk { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c3ccd5; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--white); }
.agree-docs li.done .mk { background: #1a7f37; border-color: #1a7f37; }
.agree-docs .t { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.agree-docs .t small { display: block; font-weight: 400; color: var(--muted); }
.agree-docs .small-btn { flex: none; }
.reg-field input[readonly] { background: #eef2f6; color: var(--ink); }
/* 受講計画書の承認（保護者 #plan）2026-10-27: 科目・回数・金額の表 */
.plan-tbl { width: 100%; border-collapse: collapse; margin: 10px 0 12px; }
.plan-tbl th, .plan-tbl td { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: left; vertical-align: middle; color: var(--ink); }
.plan-tbl thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-top: 0; }
.plan-tbl tbody th { font-weight: 400; }
.plan-tbl tbody th strong { font-size: 15.5px; margin-right: 6px; }
.plan-tbl tbody th small, .plan-tbl td small { display: block; font-size: 13px; color: var(--muted); }
.plan-tbl .n { width: 7em; }
.plan-tbl .n select { width: 100%; }
.plan-tbl .amt, .plan-tbl thead th:last-child { text-align: right; white-space: nowrap; width: 6.5em; }
.plan-tbl tbody .amt { font-weight: 700; }
.plan-tbl tfoot th, .plan-tbl tfoot td { border-bottom: 0; border-top: 1.5px solid var(--ink); font-weight: 700; font-size: 16px; }
.info-table { margin: 6px 0 0; }
.info-table > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.info-table > div:first-child { border-top: 0; }
.info-table dt { font-size: 14px; font-weight: 600; color: var(--ink); }
.info-table dd { margin: 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.info-table dd.act { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.info-table dd.act > span { min-width: 0; overflow-wrap: anywhere; }
.info-table dd.act .small-btn { flex: none; }
.text-btn { all: unset; cursor: pointer; font-size: 14px; color: var(--primary); text-decoration: underline; text-underline-offset: .2em; }
.text-btn.danger { color: var(--danger); }
.text-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.danger-line { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); text-align: right; }
.cond-view { margin-top: 14px; padding: 10px 14px 4px; }
.cond-view .info-head { margin: 0; }

/* 授業の入れ方: 確定で入れる / 保護者に承認をお願いする（2026-10-27） */
.send-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.send-seg label { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; }
.send-seg label small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.send-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.send-seg label:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.send-seg label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 授業日時の承認は予定の画面で（2026-10-27 本人「この画面と予定の画面は統一されるべき」）: 承認待ちの帯・選ぶ印・承認するボタン */
.ask-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.lrow-pick { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.group > .lrow-pick:last-child { border-bottom: 0; }
.lrow-pick > .lrow { border-bottom: 0; }
.lrow-pick .ck { all: unset; box-sizing: border-box; cursor: pointer; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #e3b45c; background: var(--warn-soft); color: transparent; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.lrow-pick .ck.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.lrow-pick .ck:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.month2 .nm.on { background: var(--primary); color: #fff; }
.ask-go { position: sticky; bottom: 12px; z-index: 5; margin: 12px 0 0; }
@media (max-width: 720px) { body.has-tabs .ask-go { bottom: calc(68px + env(safe-area-inset-bottom)); } }

/* 予定の月の表: 時刻と科目の2行（2026-10-27） */
.month2 .nm.t2 { white-space: normal; line-height: 1.15; padding: 1px 2px; }
.month2 .nm.t2 .tm { display: block; font-size: 9.5px; margin: 0; opacity: .85; }
.month2 .nm.t2 b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; }
/* 同じ時刻で段階の違う授業（1:2 の片方だけ下書きなど）: 名前ごとに段階の色（2026-11-20） */
.month2 .nm.mix { color: var(--ink); }
.month2 .nm.mix .tm { color: var(--muted); }
.month2 .nm.mix b span { border-radius: 3px; padding: 0 2px; }
.month2 .nm.mix .r0 { color: var(--muted); outline: 1px dashed #c9d2dc; outline-offset: -1px; }
.month2 .nm.mix .r1 { background: var(--warn-soft); color: #7a4f08; }
.month2 .nm.mix .r2 { background: #e3ecfb; color: #173f8a; }
.month2 .nm.mix .r3 { background: var(--ok-soft); color: #23704a; }
/* ホームの下: 授業記録と宿題を並べる */
.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.home-links .todo-row { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
@media (max-width: 380px) { .home-links { grid-template-columns: 1fr; } }
/* 月の表: 終了時刻も（2026-10-27 本人「時間がこのフォントサイズなら終了時刻も表示できるはず」）。狭い画面では開始の下に */
.month2 .nm.t2 .te { white-space: nowrap; }
@media (max-width: 560px) { .month2 .nm.t2 .te { display: block; } .month2 .cell { height: 100px; } .month2 .nm.t2 .sj { display: none; } } /* 名と科目（2026-10-27 本人「ここに科目も表示できるはず」）。スマホでは名だけ */
/* 生徒の一覧: 1つの枠、1行（2026-10-27） */
.stu-list { margin-top: 12px; }
.stu-list .srow { padding: 8px 0; }
.stu-list .srow .b { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.stu-list .srow .b .tag { align-self: center; }
.stu-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.stu-tools .search { flex: 1; margin: 0; }
/* 授業の多い日（2026-10-27 本人「授業が多すぎて表示がうまくできない」）: パソコンは授業を1行で「18:00〜19:30 一郎 英語」。5行まで */
@media (min-width: 720px) {
  .month2 .cell { height: 112px; }
  .month2 .nm.t2 { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; overflow: hidden; line-height: 1.35; }
  .month2 .nm.t2 .tm { display: inline; flex: none; font-size: 10px; }
  .month2 .nm.t2 b { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.pl-unplanned ul { margin: 4px 0 0; padding-left: 1.2em; }
.pl-unplanned li { margin: 1px 0; }
/* 生徒の授業の計画（2026-10-27 本人「授業の計画に焦点を当てる」） */
.sp-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.sp-head strong { font-size: 17px; }
.sp-tbl { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 14px; }
.sp-tbl th, .sp-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.sp-tbl thead th { font-size: 12px; color: var(--muted); font-weight: 600; background: #f6f8fa; }
.sp-tbl tbody th, .sp-tbl thead th:first-child { text-align: left; white-space: normal; }
.sp-tbl tbody tr:last-child th, .sp-tbl tbody tr:last-child td { border-bottom: 0; }
.sp-tbl .warn-text { color: #a86f12; }
.sp-block { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.sp-block.warn { border-color: #f0c36d; background: var(--warn-soft); }
.sp-bh { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sp-block ul { margin: 6px 0 0; padding-left: 1.2em; }
.sp-block li { margin: 3px 0; }
.sp-block li .text-btn { margin-left: 8px; }
.sp-est { margin: 12px 2px 0; }
.sp-plans { margin: 6px 2px 0; }
@media (max-width: 560px) { .sp-tbl .sp-fee { display: none; } .sp-tbl th, .sp-tbl td { padding: 7px 6px; } }
/* 授業料の総額（確定・見込み・計画） */
.sp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.sp-sum > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); display: grid; gap: 2px; }
.sp-sum span { font-size: 12px; color: var(--muted); }
.sp-sum b { font-size: 18px; }
@media (max-width: 420px) { .sp-sum b { font-size: 15px; } .sp-sum > div { padding: 8px; } }

/* ---- スタッフのホーム 案A「ノート」（2026-11-27 本人「案 A で進みましょう」）。紙の地・藍・明朝の見出し・朱はアラートだけ。まずはホームだけ ---- */
body.page-home { background: #f6f3ec; }
.home-a { --ha-ink: #1d2433; --ha-ai: #1f2f57; --ha-muted: #6b6558; --ha-line: #ddd6c8; --ha-line2: #ebe5d9; --ha-card: #fffdf8; --ha-shu: #b23a2a;
  display: flex; flex-direction: column; gap: 32px; padding: 24px 0 8px; color: var(--ha-ink); }
.home-a .serif, .home-a h2, .home-a .sec-title { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif; }
.ha-today { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 44px; padding-bottom: 22px; border-bottom: 1px solid var(--ha-line); }
.ha-date { flex: 1 1 260px; }
.ha-date small { display: block; font-size: 13px; color: var(--ha-muted); letter-spacing: .1em; }
.ha-date b { display: block; font-size: 40px; line-height: 1.2; }
.ha-date b span { font-size: 20px; margin-left: 10px; color: var(--ha-muted); }
.ha-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.ha-stat { color: inherit; text-decoration: none; }
.ha-stat small { display: block; font-size: 13px; color: var(--ha-muted); }
.ha-stat .n { display: block; font-size: 32px; font-weight: 700; color: var(--ha-ai); line-height: 1.2; }
.ha-stat .n span { font-size: 14px; margin-left: 3px; }
.ha-stat .nx { display: block; font-size: 17px; font-weight: 700; line-height: 1.9; }
.ha-sec { display: flex; flex-direction: column; gap: 10px; }
.ha-head { display: flex; align-items: baseline; gap: 10px; }
.ha-head h2 { margin: 0; font-size: 20px; }
.ha-head h2::after { display: none; }
.ha-head .c { font-size: 13px; font-weight: 700; color: var(--ha-ai); }
.ha-head .c.shu { color: var(--ha-shu); }
.ha-head a { margin-left: auto; font-size: 14px; color: var(--ha-ai); text-decoration: none; }
.ha-box { background: var(--ha-card); border: 1px solid var(--ha-line); border-radius: 6px; }
.ha-box.ha-alert { border-color: #e3c9c2; }
.ha-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--ha-line2); color: inherit; text-decoration: none; }
.ha-row:first-child { border-top: 0; }
.ha-row .b { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: block; }
.ha-row .t { display: block; font-weight: 700; }
.ha-row .d { display: block; font-size: 14px; color: var(--ha-muted); }
/* 事務員からのお願い: 題だけを並べ、押すとその場で中身（2026-11-28） */
.ha-ask { align-items: flex-start; }
.ha-ask .ha-check { margin-top: 2px; }
.ha-title { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 4px 0; }
.ha-title .t::after { content: '›'; display: inline-block; margin-left: 8px; color: var(--ha-muted); font-weight: 400; transition: transform var(--mo-in) var(--mo-ease); }
.ha-ask.open .ha-title .t::after { transform: rotate(90deg); }
.ha-title:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.ha-more { margin-top: 8px; display: grid; gap: 6px; animation: fade-in var(--mo-in) var(--mo-ease); }
.ha-more p { margin: 0; }
.ha-more .rec { color: var(--ha-ai); }
/* 選択肢・答え・話で答える（2026-11-29。答えは会話で、画面は見るだけ） */
.ha-opts { margin: 0; padding-left: 1.4em; display: grid; gap: 2px; }
.ha-opts li.star { font-weight: 700; }
.ha-opts li.star > .ha-opt-l::after { content: ' ★'; color: var(--ha-ai); }
.ha-ans { color: var(--ha-ai); font-weight: 700; }
.ha-ans small { display: block; font-weight: 400; color: var(--ha-muted); }
.ha-done { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--ha-muted); }
.rm-row { align-items: flex-start; }
/* LINE の連絡（#line。staff/home.js の lineInboxPage）: 相手の一覧と 1 本のトーク。幅の広い画面は左右に並べ、スマホは一覧 → トークの 2 段（2026-12-04） */
main:has(.ln-app), body.has-tabs main:has(.ln-app) { padding-bottom: 0; }
.ln-app { --ha-ink: #1d2433; --ha-ai: #1f2f57; --ha-muted: #6b6558; --ha-line: #ddd6c8; --ha-line2: #ebe5d9; --ha-card: #fffdf8; --ha-shu: #b23a2a;
  display: grid; grid-template-columns: 280px minmax(0, 1fr); flex: 1; min-height: 0; margin-top: 16px; color: var(--ha-ink);
  background: var(--ha-card); border: 1px solid var(--ha-line); border-radius: 6px; overflow: hidden; }
.ln-list { overflow-y: auto; border-right: 1px solid var(--ha-line); }
.ln-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--ha-line2); color: inherit; text-decoration: none; }
.ln-item:first-child { border-top: 0; }
.ln-item.on { background: #eef0f6; }
.ln-item .b, .ln-head .b { flex: 1; min-width: 0; }
.ln-item .t, .ln-item .d, .ln-head .t, .ln-head .d { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-item .t, .ln-head .t { font-weight: 700; }
.ln-item .d, .ln-head .d { font-size: 13px; color: var(--ha-muted); }
.ln-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--ha-muted); }
.ln-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ha-shu); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.ln-tag { margin-right: 6px; font-size: 12px; color: var(--ha-ai); }
.ln-talk { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ln-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ha-line2); }
.ln-app .ln-back { display: none; flex: none; }
.ln-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column-reverse; background: #f6f2e9; } /* 逆向きに積むと、開いたときにいちばん新しい文が見える */
.ln-msgs { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; margin-bottom: auto; }
.ln-day { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--ha-muted); }
.ln-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 88%; align-self: flex-start; }
.ln-msg.out { align-self: flex-end; flex-direction: row-reverse; }
.ln-from { margin-bottom: -4px; font-size: 12px; color: var(--ha-muted); }
.ln-bubble { flex: 0 1 auto; min-width: 0; margin: 0; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--ha-line2); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ln-msg.out .ln-bubble { background: #dfe5f3; border-color: #cdd6ea; }
.ln-msg time { flex: none; font-size: 11px; color: var(--ha-muted); }
.ln-write { margin: 0; padding: 10px 14px; border-top: 1px solid var(--ha-line2); }
.ln-off { font-size: 13px; color: var(--ha-muted); }
.ln-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-size: 13px; color: var(--ha-muted); }
.ln-row { display: flex; align-items: flex-end; gap: 10px; }
.ln-reply { flex: 1; min-width: 0; margin: 0; font: inherit; font-size: 14px; line-height: 1.6; max-height: 40vh; resize: none; }
/* 画面の残りの高さいっぱいに置き、中（一覧・トーク）だけが動く。送った・止まったの知らせが出たら、その分だけ縮む */
.ln-wrap { container-type: inline-size; display: flex; flex-direction: column; height: calc(100dvh - var(--ln-top, 54px) - var(--ln-bottom, 26px)); min-height: 380px; }
.ln-wrap > .notice { flex: none; margin-bottom: 0; }
/* 1 列に切り替えるのは、画面ではなく中身の幅で決める（左にメニューがある幅でも狭ければ 2 段） */
@container (max-width: 620px) {
  .ln-app { display: block; }
  .ln-list { height: 100%; border-right: 0; }
  .ln-app .ln-item.on { background: none; }
  .ln-app:not(.sel) .ln-talk, .ln-app.sel .ln-list { display: none; }
  .ln-app.sel .ln-talk { height: 100%; }
  .ln-app .ln-back { display: inline-flex; }
}
@media (max-width: 720px) {
  .ln-wrap { --ln-bottom: calc(70px + env(safe-area-inset-bottom)); } /* 下のメニューの分 */
  .ln-app { margin-top: 12px; }
  .ln-reply { font-size: 16px; } /* iPhone で欄を押したときに画面が拡大しない大きさ */
}
.rm-text { white-space: pre-wrap; font: inherit; font-size: 13px; color: var(--ha-muted); margin: 6px 0 0; }
.ha-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ha-talk { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--ha-ai); background: #fbf9f4; color: var(--ha-ai); }
.ha-go { justify-self: start; font-size: 14px; font-weight: 700; color: var(--ha-ai); text-decoration: none; }
.ha-row .rec { display: block; font-size: 14px; color: var(--ha-ai); margin-top: 2px; }
.ha-row .go { color: #8b8578; }
.ha-tag { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--ha-shu); padding: 2px 9px; border-radius: 3px; }
.ha-check { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #c9c1b1; background: #fbf9f4; color: var(--ha-ai); display: grid; place-items: center; padding: 0; }
.ha-check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.ha-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ha-tile { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--ha-card); border: 1px solid var(--ha-line); border-radius: 6px; color: inherit; text-decoration: none; }
.ha-tile .n small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--ha-muted); }
.ha-tiles.ha-site { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ha-site-note { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.7; color: var(--ha-muted); }
.ha-tile .n { font-size: 26px; font-weight: 700; color: var(--ha-ai); line-height: 1.3; }
a.ha-row:hover, .ha-row a.b:hover, .ha-tile:hover, .ha-stat:hover { background: #fbf7ee; }
/* 週のカレンダー（部品は生徒の画面と同じ。色だけ案A に） */
.ha-week .sec-title { margin: 0; font-size: 20px; }
.home-a .wk { background: var(--ha-card); border-color: var(--ha-line); border-radius: 6px; margin: 0; }
.home-a .wk-cal { border-color: var(--ha-line2); border-radius: 4px; }
.home-a .wk-bar, .home-a .wk-h { border-color: var(--ha-line2); }
.home-a .wk-d { border-color: var(--ha-line2); }
.home-a .wk-n strong { color: var(--ha-ai); font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; }
.home-a button.wk-go { background: #f1ede3; color: var(--ha-ai); }
.home-a .wk-d.today { background: #eef0f6; }
.home-a .wk-d.today .wk-h { color: var(--ha-ai); }
.home-a .wk-d.sun .wk-h span { color: var(--ha-shu); } .home-a .wk-d.sat .wk-h span { color: var(--ha-ai); }
.home-a .wk-l { background: var(--ha-ai); border-radius: 4px; }
.home-a .wk-l.done { background: #e9e6de; color: var(--ha-muted); }
.home-a .wk-l.tent { background: var(--ha-card); color: #8a5a0c; box-shadow: inset 0 0 0 1px #a86f12; }
@media (max-width: 640px) { .home-a { gap: 26px; padding-top: 16px; } .ha-date b { font-size: 32px; } .ha-row { padding: 12px 14px; } }

/* ---- スタッフの上の帯とメニュー 案A（2026-11-27 本人「上の帯とメニュー」）。生成りの帯・明朝の名前・藍の下線。スタッフの画面だけ（body:is(.staff-a, .family-a, .student-a)） ---- */
body:is(.staff-a, .family-a, .student-a) .top { background: #fbf9f4; border-bottom-color: #ddd6c8; }
body:is(.staff-a, .family-a, .student-a) .brand { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif; font-size: 19px; letter-spacing: .08em; color: #1f2f57; }
body:is(.staff-a, .family-a, .student-a) .brand small { font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; letter-spacing: 0; color: #6b6558; }
body:is(.staff-a, .family-a, .student-a) .bar-title strong { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif; font-size: 17px; color: #1d2433; }
body:is(.staff-a, .family-a, .student-a) .bar-title small { color: #6b6558; }
body:is(.staff-a, .family-a, .student-a) a.back { background: #fffdf8; box-shadow: 0 0 0 1px #ddd6c8; color: #1f2f57; }
body:is(.staff-a, .family-a, .student-a) a.back:active { background: #f1ede3; }
@media (min-width: 721px) {
  body:is(.staff-a, .family-a, .student-a) nav#nav { gap: 2px 18px; }
  body:is(.staff-a, .family-a, .student-a) nav#nav a { color: #5d5a52; border-radius: 0; padding: 8px 2px 6px; border-bottom: 2px solid transparent; }
  body:is(.staff-a, .family-a, .student-a) nav#nav a:hover { color: #1f2f57; }
  body:is(.staff-a, .family-a, .student-a) nav#nav a.on { background: none; color: #1f2f57; border-bottom-color: #1f2f57; }
}
@media (max-width: 720px) {
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav { background: #fbf9f4; border-top-color: #ddd6c8; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a { color: #6b6558; position: relative; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a.on { color: #1f2f57; font-weight: 700; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a.on::before { content: ""; position: absolute; top: -5px; left: 30%; right: 30%; height: 2px; background: #1f2f57; border-radius: 2px; }
}

/* ---- スタッフと保護者の全画面の地とカード 案A（保護者は 2026-11-27 本人「保護者の画面も案Aにしよう」）（2026-11-27 本人「全画面の地とカード」）。色の変数をスタッフの画面だけで置き換える：
   紙の地・生成りのカード・温かい線・藍（ボタン・リンク・選んだもの）・墨の文字。見出しは明朝 ---- */
body:is(.staff-a, .family-a, .student-a) { --ink: #1d2433; --muted: #6b6558; --line: #ddd6c8; --paper: #f6f3ec; --soft: #eef0f6; --white: #fffdf8; --primary: #1f2f57; --primary-dark: #0f1a36; }
body:is(.staff-a, .family-a, .student-a) h1, body:is(.staff-a, .family-a, .student-a) h2, body:is(.staff-a, .family-a, .student-a) .sec-title { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif; }
body:is(.staff-a, .family-a, .student-a) button.wk-go:hover { background: #e3e6ef; }
.ha-row .clamp2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; } /* 事務員からは 2 行まで（2026-11-27） */
.ha-row .d.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 事務員からの種類の行（2026-11-27） */
.ha-n { margin-left: 10px; font-size: 13px; color: var(--ha-ai, #1f2f57); }
.ha-add { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: var(--white); font-size: 14px; font-weight: 700; cursor: pointer; } /* 受け取り箱に入れる（2026-11-27） */
.ha-add:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
/* ホームの「事務員から」の見出しの右: 提出箱へ入れる小さなボタンと振り分け待ち（2026-11-27） */
.ha-head-r { margin-left: auto; display: inline-flex; align-items: center; gap: 12px; align-self: center; }
.ha-head .ha-head-r a { margin-left: 0; font-size: 13px; font-weight: 700; color: var(--ha-shu); }
.ha-add.mini { min-height: 34px; padding: 0 14px; font-size: 13px; background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.ha-add.mini:hover { background: var(--soft); }
.ha-when { flex: none; display: grid; justify-items: end; line-height: 1.25; color: var(--ha-muted, #6b6558); } /* テスト前のあと何日（2026-11-27） */
.ha-when b { font-size: 15px; color: var(--ink); }
.ha-when small { font-size: 12px; }
.ha-when.now small { color: #fff; background: var(--primary); padding: 1px 8px; border-radius: 3px; }
.wk-next-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; width: 100%; margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: var(--soft); color: var(--ink); } /* 週の下の次の授業（2026-11-27） */
.wk-next-btn .k { font-size: 12.5px; color: var(--muted); }
.wk-next-btn b { font-size: 16px; color: var(--primary); }
.wk-next-btn.none { cursor: default; }
.wk-next-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- PC の左のメニュー（2026-11-27 本人「PC 版は上のバーを出すんじゃなくて、横に出てくるやつ。今のクラのシステムと同じような感じで」）。スタッフ・保護者・生徒の画面（保護者・生徒は 2026-11-27 本人「保護者と生徒の画面も左のメニューにして」）----
   藍の帯に白い文字、今の画面は生成りで抜く。いちばん上に名前と畳むボタン、その下にポスト（事務員から）、設定はいちばん下。
   上の帯は出さない（2026-11-27 本人「そしたらもうヘッダーはいらない」）: 戻る・画面の名前・右のボタンは本文の頭に、地のまま置く。畳むとアイコンだけの細い帯 */
.side-brand, .side-post, .side-acct { display: none; }
.post-slot { margin-left: auto; flex: none; }
body.focus .post-slot { display: none; }
@media (min-width: 960px) {
  body:is(.staff-a, .family-a, .student-a).has-tabs { padding-left: 224px; transition: padding-left .2s; }
  body:is(.staff-a, .family-a, .student-a).has-tabs.side-closed { padding-left: 68px; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav { position: fixed; top: 0; bottom: 0; left: 0; width: 224px; z-index: 12; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 14px 12px 16px; background: #1f2f57; overflow-x: hidden; overflow-y: auto; view-transition-name: sidenav; transition: width .2s; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 14px 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-name { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif; font-size: 19px; letter-spacing: .08em; color: #fbf9f4; white-space: nowrap; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-name small { display: block; margin-top: 2px; font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; font-size: 11.5px; letter-spacing: 0; color: #b9c0d0; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-toggle { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: none; color: #b9c0d0; cursor: pointer; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-toggle:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 8px; font-size: 14.5px; color: #d6dbe6; white-space: nowrap; position: relative; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a.on { background: #fbf9f4; color: #1f2f57; font-weight: 700; border: 0; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a[href="#settings"] { margin-top: auto; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-acct { display: flex; margin-top: auto; }
  body.family-a.has-tabs #acct { display: none; } /* アカウントは左のメニューのいちばん下 */
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav a:focus-visible, body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-toggle:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-post { display: flex; margin-bottom: 10px; }
  body:is(.staff-a, .family-a, .student-a).has-tabs nav#nav .side-n { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #b23a2a; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
  /* 畳んだとき: アイコンだけ。件数はアイコンの右上の丸 */
  body:is(.staff-a, .family-a, .student-a).has-tabs.side-closed nav#nav { width: 68px; padding-left: 10px; padding-right: 10px; }
  body:is(.staff-a, .family-a, .student-a).side-closed nav#nav .side-brand { justify-content: center; padding: 4px 0 12px; }
  body:is(.staff-a, .family-a, .student-a).side-closed nav#nav .side-name { display: none; }
  body:is(.staff-a, .family-a, .student-a).side-closed nav#nav a { justify-content: center; padding: 10px 0; }
  body:is(.staff-a, .family-a, .student-a).side-closed nav#nav a > span:not(.side-n) { display: none; }
  body:is(.staff-a, .family-a, .student-a).side-closed nav#nav .side-n { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
  /* 上の帯は出さない: 帯の中身（戻る・画面の名前・右のボタン）は本文の頭に、地のまま */
  body:is(.staff-a, .family-a, .student-a).has-tabs .top { position: static; background: transparent; border-bottom: 0; }
  body:is(.staff-a, .family-a, .student-a).has-tabs .top .in { padding-top: 18px; padding-bottom: 0; min-height: 0; }
  body:is(.staff-a, .family-a, .student-a).has-tabs .top .brand, body:is(.staff-a, .family-a, .student-a).has-tabs .post-slot { display: none; }
  body:is(.staff-a, .family-a, .student-a).has-tabs .bar-title { text-align: left; align-items: flex-start; }
  body:is(.staff-a, .family-a, .student-a).has-tabs.page-home .top .bar-title { display: none; } /* ホームは左のメニューで分かるので名前を出さない */
  body:is(.staff-a, .family-a, .student-a).focus.has-tabs { padding-left: 0; }
  ::view-transition-group(sidenav), ::view-transition-old(sidenav), ::view-transition-new(sidenav) { animation: none; }
  /* 画面の名前は本文と一緒に動く */
}
/* LINE とつないだ結果の画面（family/app.js の linkDonePage。それだけを主題に） */
.ll-done { text-align: center; padding: 48px 8px 24px; }
.ll-done h1 { margin: 16px 0 8px; }
.ll-done p { margin: 8px 0; }
.ll-mark { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; }
.ll-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ll-mark.ok { background: var(--ok-soft); color: var(--ok); }
.ll-mark.ng { background: var(--danger-soft); color: var(--danger); }
/* 1 件の請求のページ（portal-ui.js の invoicePage） */
.inv-page h2 { margin: 12px 0 8px; }
.inv-page .inv-total { margin: 8px 0 12px; }
.ll-done a.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 700; margin-top: 8px; }
/* 請求のいまの状態（入金を確認中・確認済み。portal-ui.js の invoiceBody） */
.inv-state { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--soft); margin: 8px 0 4px; }
.inv-state b { font-size: 1.15em; }
.inv-state.ok { background: var(--ok-soft); }
.inv-state.ok b { color: var(--ok); }
/* 契約者ごとの受講計画書のページ（billing.js の planFamilyPage） */
.pl-fam-title { font-size: 1.35em; margin: 14px 0 2px; }
.pl-send .pl-msg { margin: 8px 0 12px; }
/* 受講計画書の承認（portal-ui.js の planApprovalCard）: 科目の右の丸いボタンで、その下に条件が伸びて開く */
.pa-toggle { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.pa-subj strong { white-space: nowrap; }
.pa-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.pa-subj { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pa-chev { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--primary); transition: transform .25s ease, background-color .2s; }
.pa-chev svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pa-toggle:hover .pa-chev { background: var(--soft); }
.pa-row.open .pa-chev { transform: rotate(180deg); background: var(--soft); }
.pa-dc { text-align: right; white-space: nowrap; width: 1%; }
.pa-more-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--primary); font-size: .85em; font-weight: 600; white-space: nowrap; }
.pa-more-btn:hover { background: var(--soft); }
.pa-more-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pa-more-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.pa-row.open .pa-more-btn { background: var(--soft); }
.pa-row.open .pa-more-btn svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .pa-more-btn svg { transition: none; } }
.pa-chev .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pa-row.open th, .pa-row.open td { border-bottom-color: transparent; }
.pa-detail td { padding: 0 !important; }
.pa-detail:not(.open) td { border-bottom: none; }
.pa-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .28s ease, opacity .22s ease; }
.pa-detail.open .pa-wrap { grid-template-rows: 1fr; opacity: 1; }
.pa-in { overflow: hidden; }
.pa-facts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 6px; margin: 2px 0 10px; }
.pa-facts div { background: var(--soft); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.pa-facts span { font-size: .78em; color: var(--muted); }
.pa-facts b { font-size: .98em; white-space: nowrap; }
.pa-facts small { font-size: .72em; color: var(--muted); }
.pa-note { margin: 0 0 10px; padding: 6px 10px; border-left: 3px solid var(--primary); background: var(--white); font-size: .92em; }
.pa-note span { display: block; font-size: .78em; color: var(--muted); }
.pa-min { margin: 0 0 10px; font-size: .85em; color: var(--warn); }
@media (prefers-reduced-motion: reduce) { .pa-wrap, .pa-chev { transition: none; } }
/* 承認の表（科目・詳細・回数・金額）。列の幅を決め、見出しと値を列ごとに同じ揃えに：科目は左、詳細と回数は中央、金額は右 */
.pa-tbl { table-layout: auto; }
.pa-tbl col.c-subj { width: 1%; }
.pa-tbl tbody th, .pa-tbl tfoot th { white-space: nowrap; padding-right: 10px; }
/* 科目の列は名前の幅だけにして、残りを 詳細・回数・金額 で分ける（科目と詳細の間が空かない。2026-11-30 本人「科目と詳細までのスペースが空きすぎ」） */
.pa-tbl col.c-dc { width: 27%; }
.pa-tbl col.c-n { width: 36%; }
.pa-tbl col.c-amt { width: 37%; }
.pa-tbl th, .pa-tbl td { padding-left: 4px; padding-right: 4px; vertical-align: middle; }
.pa-tbl .pa-dc, .pa-tbl .n { text-align: center !important; width: auto; }
.pa-tbl .amt { text-align: right !important; width: auto; }
.pa-tbl tbody th { text-align: left; }
.pa-tbl .n select { width: 100%; min-width: 4.6em; padding-left: 8px; padding-right: 20px; background-position: right 5px center; }
.pa-tbl .pa-more-btn { padding: 5px 6px 5px 8px; }
.pa-tbl tfoot th { text-align: left; }
/* 書面を画面の上に重ねて見せる（LINE などアプリの中のブラウザ。agreement-document.js の showInPage） */
.doc-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--white); display: flex; flex-direction: column; }
.doc-ov-bar { display: flex; justify-content: flex-end; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--white); }
.doc-ov-close { min-width: 5em; }
.doc-ov-frame { display: block; border: 0; background: var(--white); }
html.doc-ov-open, html.doc-ov-open body { overflow: hidden; }
/* 書面を縮めて見せる箱（agreement-document.js の fitDocFrame）。中の iframe はスクロールせず、この箱がスクロールする */
.doc-fit { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; background: var(--white); }
.doc-fit iframe { display: block; border: 0; }
/* 承認のお願いの生徒のページ（staff/schedule.js の scheduleAskPage）: 1 授業 1 行 */
.ska-list { margin: 8px 0 4px; }
.ska-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ska-row input { width: auto; margin: 0; }
.ska-when { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 保護者からの連絡のページ（staff/schedule.js の scheduleRequestsPage）: 1 件 1 かたまり */
.skr-list { margin-top: 12px; display: grid; gap: 10px; }
.skr-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--white); }
.skr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.skr-when { font-variant-numeric: tabular-nums; }
.skr-note { margin: 8px 0 0; white-space: pre-wrap; }
/* 授業の画面で、済んでいない連絡を主題にする（staff/schedule.js） */
.req-focus { border: 1px solid var(--warn-soft); background: var(--warn-soft); border-radius: 10px; padding: 12px 14px; margin: 4px 0 2px; }
.req-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.req-title .tag { font-size: 14px; font-weight: 700; }
.req-note { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--warn); background: var(--white); border-radius: 4px; font-size: 15px; white-space: pre-wrap; }
.req-focus .row { margin-top: 6px; }
.req-more { margin-top: 6px; }
/* 授業を直す入力欄（staff/schedule.js の editForm）。iPhone の日付・時刻の欄は中身の幅より狭くならず、隣の欄に重なって並びが崩れていた（2026-11-30 本人「表示が乱れてる」）。
   3 つの欄を同じ幅・同じ高さにそろえ、欄の名前の高さもそろえる */
.sch-edit .row { align-items: flex-start; flex-wrap: nowrap; gap: 8px; }
.sch-edit .row > label { flex: 1 1 0; min-width: 0; }
.sch-edit input, .sch-edit select { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; }
.sch-edit input[type=date], .sch-edit input[type=time] { -webkit-appearance: none; appearance: none; text-align: left; padding-right: 6px; }
.sch-edit input[type=date]::-webkit-date-and-time-value, .sch-edit input[type=time]::-webkit-date-and-time-value { text-align: left; }
/* 日時の変更の案の状態（staff/schedule.js の連絡のかたまり） */
.req-offer { margin: 6px 0 2px; font-size: 14px; }
.req-offer .req-note { margin: 6px 0 0; }
/* 塾からの日時の案（保護者の授業の画面。assets/v2/portal-ui.js lessonSheet） */
.mv-offer { border: 1px solid var(--warn-soft); background: var(--warn-soft); border-radius: 12px; padding: 14px; margin: 4px 0 12px; }
.mv-k { font-weight: 700; margin-bottom: 8px; }
.mv-row { display: flex; align-items: baseline; gap: 10px; margin: 4px 0; }
.mv-l { flex: 0 0 4.5em; font-size: 13px; color: var(--muted); }
.mv-row.was span:last-child { color: var(--muted); }
.mv-row.now strong { font-size: 18px; }
.mv-arrow { display: flex; padding-left: calc(4.5 * 13px + 10px); color: var(--warn); margin: 0; line-height: 0; }
.mv-msg { margin: 12px 0 4px; }
.mv-msg-k { display: block; font-size: 13px; color: var(--muted); margin: 0 0 8px 2px; }
.mv-note { position: relative; margin: 0; padding: 10px 14px; background: var(--white); border-radius: 14px; white-space: pre-wrap; font-size: 15px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mv-note::before { content: ''; position: absolute; top: -7px; left: 18px; border: 7px solid transparent; border-top: 0; border-bottom-color: var(--white); }
.mv-offer .primary.wide { margin-top: 10px; }
/* 遅刻の連絡の分数（assets/v2/portal-ui.js lessonSheet） */
.late-mins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; }
.late-mins button { height: 44px; font-size: 16px; }
.late-mins button.on { background: var(--primary); color: var(--white); border-color: transparent; font-weight: 700; }
.late-sum { margin: 6px 0 10px; font-size: 15px; }
.choice-detail { margin: 2px 0 8px; }
/* 事務作業：事務員に頼む欄と、頼んでいること（staff/home.js の workPart） */
.cw-form { display: grid; gap: 8px; }
.cw-form .cw-date { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.cw-form .cw-date input { width: auto; }
.cw-form button { justify-self: start; }
.cw-row { display: flex; align-items: center; gap: 10px; }
.cw-row .b { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.cw-row .t .tag { margin-left: 8px; }
.cw-row .d { color: var(--muted); white-space: pre-wrap; }
.cw-add { margin-bottom: 18px; }
.ha-opts .ha-does { display: block; white-space: pre-wrap; color: var(--muted, #666); font-size: 12px; font-weight: 400; margin-top: 2px; }
