/* フジゼミ 英語学習：スマホで使うことを最優先にした見た目 */
:root {
  --bg: #f7f7f5; --card: #fff; --line: #dcdcd6; --text: #222; --sub: #666;
  --accent: #1f5fa8; --accent-bg: #eaf1fa; --ok: #1a7a3c; --ng: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 12px 16px 40px; }
header { border-bottom: 1px solid var(--line); margin-bottom: 14px; padding-bottom: 8px; }
.brand { margin: 0; font-weight: bold; color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 15px; margin-top: 4px; }
.nav a { color: var(--accent); text-decoration: none; }
.nav .logout { margin-left: auto; }
.nav .logout button { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font: inherit; font-size: 13px; color: var(--sub); cursor: pointer; }
.who { margin: 4px 0 0; font-size: 12px; color: var(--sub); }
h1 { font-size: 20px; margin: 6px 0 14px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
label { display: block; font-size: 14px; color: var(--sub); margin-bottom: 12px; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.btn { display: block; width: 100%; padding: 13px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: bold; cursor: pointer; margin-top: 6px; }
.small { font-size: 13px; color: var(--sub); }
.mono { font-family: Consolas, "Courier New", monospace; }
.flash { border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; }
.flash.ok { background: #e4f3e8; border: 1px solid #b6dcc1; }
.flash.ng { background: #fbe9e7; border: 1px solid #efc2bc; color: #6e1a13; }
.pwbox { background: #fff; border: 2px solid var(--ok); border-radius: 8px; padding: 10px 12px; margin: 10px 0 6px; }
.pwbox div { display: flex; gap: 12px; align-items: baseline; padding: 2px 0; }
.pwbox span { width: 6.5em; flex: 0 0 auto; font-size: 13px; color: var(--sub); }
.pwbox strong { font-size: 18px; word-break: break-all; }
.links { padding-left: 1.2em; }
.links a { color: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); padding: 10px 0; }
.list li:first-child { border-top: 0; }
.row-main { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #eee; color: #555; }
.tag.stop { background: #fbe9e7; color: var(--ng); }
.tag.me { background: var(--accent-bg); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 6px; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 4px 0 0; }
.small-btn { padding: 6px 12px; border: 1px solid var(--accent); border-radius: 6px; background: #fff; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; }
.small-select { display: inline-block; width: auto; margin: 0; padding: 5px 8px; font-size: 14px; }
.log .time { font-size: 13px; color: var(--sub); }
a { color: var(--accent); }

/* ---------- フェーズ2：単元の一覧・テスト・結果 ---------- */
.lead { font-size: 17px; margin: 0 0 12px; }
.row-link { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; text-decoration: none; color: var(--text); padding: 4px 0; }
.row-link strong { color: var(--accent); }
.units { list-style: none; margin: 0; padding: 0; }
.unit .btn { margin-top: 10px; text-align: center; text-decoration: none; }
.notice { background: #fff6d8; border: 1px solid #e6d189; border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: 14px; }
.tag.pass { background: #e4f3e8; color: var(--ok); }
.tag.fail { background: #fbe9e7; color: var(--ng); }
.tag.doing { background: #fff2cc; color: #8a6d00; }
.bar { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--sub); margin-bottom: 8px; }
/* 進み具合の棒（style 属性は安全のための設定で止められるので、progress 要素の値で表す） */
.prog { display: block; width: 100%; height: 5px; margin: 0 0 14px; border: 0; border-radius: 3px; overflow: hidden; background: #e3e3dd; -webkit-appearance: none; appearance: none; }
.prog::-webkit-progress-bar { background: #e3e3dd; }
.prog::-webkit-progress-value { background: var(--accent); }
.prog::-moz-progress-bar { background: var(--accent); }
.shiji { background: var(--accent-bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #123d6e; margin-bottom: 14px; }
.wabun { font-size: 15px; color: var(--sub); margin-bottom: 6px; white-space: pre-wrap; }
.mondai { font-size: 19px; font-weight: bold; margin: 0 0 16px; word-break: break-word; white-space: pre-wrap; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 17px; line-height: 1.5; color: var(--text); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice b { color: var(--accent); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.conf { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.conf p { margin: 0 0 8px; font-size: 14px; font-weight: bold; }
.conf-btn { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; }
/* 選択肢を選ぶまでは、確かさのボタンを出さない（:has に対応していない古いブラウザでは最初から出る） */
@supports selector(:has(a)) {
  form:not(:has(input[name="choice"]:checked)) .conf { display: none; }
}
.score { text-align: center; }
.score .n { font-size: 40px; font-weight: bold; line-height: 1.3; }
.score .j { display: inline-block; margin: 4px 0 6px; padding: 4px 18px; border-radius: 99px; font-weight: bold; }
.j.pass { background: #e4f3e8; color: var(--ok); }
.j.fail { background: #fbe9e7; color: var(--ng); }
.j.near { background: #eef1f5; color: #33475b; }   /* 全範囲テスト：届かなかったとき（責めない色） */
.results .mark { font-weight: bold; font-size: 18px; }
.mark.o { color: var(--ok); } .mark.x { color: var(--ng); }
.rq { font-size: 15px; margin: 4px 0 6px; white-space: pre-wrap; word-break: break-word; }
.ra { font-size: 14px; margin: 0 0 6px; }
.ra .you { color: var(--ng); } .ra .cor { color: var(--ok); font-weight: bold; }
.kai { font-size: 14px; background: #fafaf8; border-left: 3px solid var(--line); padding: 8px 10px; white-space: pre-wrap; }
.hos { font-size: 13px; color: var(--sub); margin-top: 6px; padding-left: 10px; white-space: pre-wrap; }
.hos b { color: var(--accent); }

/* ---------- フェーズ3：弱点ボックス・日付を進める ---------- */
.shiftbar { background: #fff2cc; border: 2px solid #e0b400; color: #6b5300; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-weight: bold; font-size: 14px; }
.wbcard .btn { margin-top: 10px; text-align: center; text-decoration: none; }
.drill-fb { text-align: center; }
.big-mark { font-size: 28px; font-weight: bold; margin: 6px 0; }
.big-mark.o { color: var(--ok); } .big-mark.x { color: var(--ng); }
.drill-msg { text-align: left; margin: 8px 0 0; }
.fb-choices { list-style: none; margin: 0 0 12px; padding: 0; }
.fb-choices li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.fb-choices li b { color: var(--accent); }
.fb-choices li.right { border-color: var(--ok); background: #eef8f1; }
.fb-choices li.mine { border-color: var(--ng); background: #fdf1ef; }
a.btn { text-align: center; text-decoration: none; }

/* ---------- フェーズ4：ストップウォッチと勉強時間 ---------- */
.sw-time { font-size: 38px; font-weight: bold; font-variant-numeric: tabular-nums; text-align: center; margin: 4px 0; }
.btn.stop { background: #b3261e; }
.totals { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.totals div { flex: 1 1 28%; min-width: 92px; background: #fafaf8; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.totals span { display: block; font-size: 11px; color: var(--sub); white-space: nowrap; }
.totals strong { font-size: 16px; white-space: nowrap; }
.weekdays { list-style: none; margin: 0; padding: 0; }
.weekdays li { display: flex; justify-content: space-between; padding: 6px 4px; border-top: 1px solid var(--line); }
.weekdays li:first-child { border-top: 0; }
.weekdays li.today { font-weight: bold; }
details.fix summary { cursor: pointer; color: var(--accent); font-size: 14px; margin-top: 4px; }
details.fix form { margin-top: 8px; }
.twocol { display: flex; flex-wrap: wrap; gap: 8px; }
.twocol label { flex: 1 1 45%; min-width: 160px; }

/* ---------- フェーズ5：講師画面と教材の管理 ---------- */
.tag.idle { background: #ececec; color: #444; border: 1px solid #bbb; }
.ov { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 2px; font-size: 13px; color: var(--sub); }
.ov span { white-space: nowrap; }
.ov b { margin-left: 4px; font-size: 15px; color: var(--text); }
.ov b.warn { color: var(--ng); }
.tag.pub { background: #e4f3e8; color: var(--ok); }
input[type="file"] { padding: 8px; font-size: 14px; }
.report { margin: 6px 0 0; padding-left: 1.2em; font-size: 14px; overflow-wrap: anywhere; }
.steps { margin: 0 0 10px; padding-left: 1.4em; font-size: 14px; }

/* ---------- 追補5：あとで解く／まぐれ正解 ---------- */
form.later { margin-top: 10px; text-align: center; }
form.later .small-btn { width: 100%; padding: 10px; border-color: var(--line); color: var(--sub); }
.lucky-sum { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbf9; text-align: left; }
.lucky-sum .small { margin-top: 2px; }
.tag.luck { background: #fff2cc; color: #8a6d00; }

/* ---------- 追補6：見直す ---------- */
label.flag { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbf9; font-size: 14px; color: var(--text); }
label.flag input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
.small-btn.keep { display: block; width: 100%; margin-top: 10px; padding: 10px; border-color: var(--line); color: var(--sub); }
.tag.rev { background: #e8eefb; color: #24488c; }

/* ---------- 2026-09-23：ホームの2つの入口／結果の問題と選択肢 ---------- */
.entry { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.entry-btn { display: block; padding: 18px 16px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; }
.entry-btn + .entry-btn { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.entry-name { display: block; font-size: 20px; font-weight: bold; }
.entry-sub { display: block; margin-top: 2px; font-size: 14px; opacity: .9; }
.doing-card strong { display: block; margin: 2px 0 6px; }
.results .rs { margin: 6px 0 2px; }
.results .fb-choices { margin: 6px 0 8px; }
.tag.mine-ok { background: #e4f3e8; color: var(--ok); }

/* ---------- 単元別の結果（2026-09-23） ---------- */
.pick summary { cursor: pointer; color: var(--accent); font-size: 15px; }
.picklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; margin: 10px 0; }
label.pickone { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; color: var(--text); }
label.pickone input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
label.pickone .mono { margin-left: 6px; }

/* 単語テスト：確かさを聞かずに次へ（2026-09-23） */
.conf-btn.go-btn { text-align: center; font-weight: bold; background: var(--accent); color: #fff; }

/* ---------- 英単語の暗記（第6弾 フェーズ2） ---------- */
.mem-card { text-align: center; }
.mem-stage { font-weight: bold; color: var(--accent); margin: 0 0 6px; }
#mem-intro p { text-align: left; }
.mem-word { font-size: 34px; font-weight: bold; margin: 18px 0 20px; word-break: break-word; line-height: 1.3; }
.mem-choices { display: flex; flex-direction: column; gap: 10px; }
.mem-choice { display: block; width: 100%; padding: 15px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 19px; cursor: pointer; touch-action: manipulation; }
.mem-choice:disabled { cursor: default; color: var(--text); }
.mem-choice.right { border-color: var(--ok); background: #eef8f1; box-shadow: inset 0 0 0 1px var(--ok); }
.mem-choice.mine { border-color: var(--ng); background: #fdf1ef; }
.mem-fb { min-height: 1.8em; margin-top: 12px; font-weight: bold; }
.mem-fb.o { color: var(--ok); } .mem-fb.x { color: var(--ng); }
.mem-next { margin-top: 12px; }
.mem-time { display: block; width: 100%; height: 6px; margin: 4px 0 0; border: 0; border-radius: 3px; overflow: hidden; background: #e3e3dd; -webkit-appearance: none; appearance: none; }
.mem-time::-webkit-progress-bar { background: #e3e3dd; }
.mem-time::-webkit-progress-value { background: #e0a100; }
.mem-time::-moz-progress-bar { background: #e0a100; }
.mem-list .mark { margin-right: 2px; }
.entry-btn.entry-word { background: #fff; color: var(--ok); border: 2px solid var(--ok); }

/* ---------- 英単語の演習（第6弾 フェーズ3） ---------- */
.pr-prompt { text-align: center; font-size: 22px; margin: 6px 0 18px; }
.pr-prompt.en { font-size: 30px; }
a.small-btn.pr-go { display: inline-block; margin-top: 6px; text-decoration: none; }
.pr-audio { text-align: center; margin: -8px 0 12px; }
.pr-play { margin: 4px 0 8px; }

/* ---------- 英単語のテスト（第6弾 フェーズ4） ---------- */
.wt-timer { text-align: right; font-size: 15px; margin: -6px 0 10px; color: var(--sub); }
.wt-timer strong { font-size: 20px; font-variant-numeric: tabular-nums; color: var(--text); }
.wt-timer.warn strong { color: var(--ng); }
.pr-prompt.wt-sentence { font-size: 19px; text-align: left; }
.wt-void textarea { display: block; width: 100%; min-height: 3em; margin-top: 4px; padding: 8px; font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- 今日の復習・英単語の入口（第6弾 フェーズ5） ---------- */
.review-card { text-align: center; }
.review-n { font-size: 18px; margin-bottom: 4px; }
.review-n strong { font-size: 26px; }
.words-units .btn.next-step { margin-top: 8px; }
.next-step-off { margin-top: 8px; padding: 11px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; color: var(--sub); }
.words-links { margin-top: 6px; text-align: right; }
h3.sub { font-size: 14px; margin: 12px 0 4px; color: var(--sub); }
/* 英単語の「次は」（ホームの今日の復習のすぐ下。追補19の5） */
.word-next-card { border: 2px solid var(--ok); }
.btn.word-next-btn { background: var(--ok); font-size: 18px; padding: 16px 12px; margin-top: 8px; }
.word-next-label { margin-top: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; font-weight: bold; }

/* ---------- 講師画面の英単語（第6弾 フェーズ6） ---------- */
.ov-words { border-top: 1px dashed var(--line); padding-top: 3px; }
.ov-label { font-weight: bold; color: var(--ok); }

/* ---------- 早見表（教材ごとの生徒×単元の合否。2026-09-25） ---------- */
.gridwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px -4px 0; }
table.grid { border-collapse: collapse; font-size: 14px; white-space: nowrap; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 3px 6px; text-align: center; min-width: 30px; }
table.grid thead th { background: #f0f0ec; font-weight: normal; }
table.grid .gname { position: sticky; left: 0; background: var(--card); text-align: left; font-weight: normal; z-index: 1; }
table.grid thead .gname, table.grid tfoot .gname { background: #f0f0ec; }
table.grid .gname .mono { margin-left: 6px; color: var(--sub); }
table.grid .gsum { font-weight: bold; }
table.grid td.gpass { color: var(--ok); background: #e4f3e8; font-weight: bold; }
table.grid td.gfail { color: var(--ng); background: #fbe9e7; }
table.grid td.gdoing { background: #fff2cc; }
table.grid .gdo { font-size: 11px; color: #8a6d00; margin-left: 2px; }
table.grid .gnp { display: block; font-size: 10px; color: var(--sub); line-height: 1; }
table.grid tfoot td, table.grid tfoot th { background: #f7f7f3; }

/* ---------- 暗記の「わからない」（第9弾 フェーズ2） ---------- */
.mem-choice.mem-dk { background: #fafaf8; color: var(--sub); border-style: dashed; font-size: 16px; }
/* 英単語の早見表（第9弾 フェーズ4） */
table.wgrid td.wg-cell { min-width: 120px; white-space: normal; vertical-align: top; }
table.wgrid td.wg-cell .tag { margin: 2px 0; }

/* ---------- ホームの英単語：番号付きのカード2枚（追補20の1） ---------- */
.word-card { border: 2px solid var(--ok); }
.word-card-head { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.word-no { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 20px; font-weight: bold; flex: none; }
.word-box-card { border-color: #e07b00; background: #fff6ea; }   /* 毎日やる場所なので橙で目立たせる（警告の赤にしない。追補20の追記） */
.word-box-card .word-no { background: #e07b00; }
.word-box-card .btn.word-next-btn { background: #c96a00; }
.word-box-ov { font-size: 15px; margin-top: 8px; }
.word-box-ov b { font-size: 20px; }
.btn.btn-sub { background: #fff; color: var(--text); border: 2px solid var(--line); }


/* カードで覚える（追補22）。表と裏を同じ升目に重ね、高さは長いほうに合わせる */
.wc-intro { text-align: center; }
.wc-card { perspective: 1200px; cursor: pointer; margin: 4px 0 12px; outline: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.wc-card:focus-visible .wc-face { box-shadow: 0 0 0 3px var(--accent-bg), 0 0 0 4px var(--accent); }
.wc-inner { display: grid; transition: transform .5s ease; transform-style: preserve-3d; }
.wc-card.flipped .wc-inner { transform: rotateY(180deg); }
.wc-face { grid-area: 1 / 1; min-height: 260px; padding: 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06); -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.wc-back { transform: rotateY(180deg); align-items: stretch; text-align: left; justify-content: flex-start; background: #fbfbf8; }
.wc-word { font-size: 34px; font-weight: bold; line-height: 1.3; word-break: break-word; margin-bottom: 18px; }
.wc-audio { border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--accent); font: inherit; font-size: 15px; padding: 7px 16px; cursor: pointer; }
.wc-hint { margin: 18px 0 0; font-size: 13px; color: var(--sub); }
.wc-bword { font-size: 18px; font-weight: bold; color: var(--sub); margin-bottom: 8px; word-break: break-word; }
.wc-meaning { font-size: 26px; font-weight: bold; line-height: 1.35; margin-bottom: 6px; }
.wc-others { font-size: 15px; color: var(--sub); margin-bottom: 10px; }
.wc-ex { font-size: 17px; line-height: 1.5; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.wc-exja { font-size: 15px; color: var(--sub); line-height: 1.5; margin-top: 2px; white-space: pre-line; }
.wc-trivia { font-size: 14px; line-height: 1.6; background: var(--accent-bg); border-radius: 8px; padding: 8px 10px; margin-top: 12px; }
.wc-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.wc-btn { padding: 12px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; touch-action: manipulation; }
.wc-btn:disabled { color: #b5b5b0; cursor: default; }
.wc-btn.wc-next { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: bold; }
.wc-end { text-align: center; }
.wc-link { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) {
  .wc-inner { transition: none; }
}

/* ---------- 英文読解レベル0 識別問題（v1仕様書 追補8。青系のカード・下線は今答える1か所だけ） ---------- */
.shk-home-card { border-color: #2b6cb0; background: #eef5fc; }   /* 英単語の②と同じ作り（枠と薄い地）で青系。フェーズCの判断1 */
.shk-home-card .word-card-head { color: #1c4f86; }
.shk-home-card .btn.word-next-btn { background: #2b6cb0; text-align: center; text-decoration: none; }
.shk-home-card .btn.btn-sub { text-align: center; text-decoration: none; }
.btn.shk-btn-sub { background: #fff; color: #2b6cb0; border: 1px solid #2b6cb0; text-align: center; text-decoration: none; }
.shk-box { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #9cbbe0; }
.shk-box-head { font-weight: bold; color: #1c4f86; }
.shk-sentence { font-weight: normal; }
.shk-passage { font-size: 17px; line-height: 1.9; margin: 0 0 16px; word-break: break-word; }
u.shk-ul { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; background: #fff1a8; color: #102a4c; font-weight: bold; padding: 0 2px; border-radius: 3px; }
.shk-kai { margin-top: 12px; font-size: 15px; background: #fafaf8; border-left: 3px solid #9cbbe0; padding: 8px 12px; }
.shk-kai p { margin: 6px 0; }
.shk-sent-small { font-size: 15px; }
.shk-yaku { color: var(--sub); }
.shk-wrong { margin: 2px 0 6px; padding-left: 1.2em; }
.shk-refs { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--sub); }
.shk-refs ul { margin: 4px 0 0; padding-left: 1.2em; }
.shk-refs u.shk-ul { font-weight: normal; padding: 0 1px; }
.shk-ref-no { display: inline-block; min-width: 3.5em; margin-right: 6px; color: #1c4f86; }

/* ---------- 教材の管理（2026-10-02 作り直し：上に固定の帯・種類ごとの開け閉め・まとめて選ぶ・確かめ） ---------- */
.mat-bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 2px solid var(--line); padding: 8px 0 8px; margin: 0 0 12px; }
.mat-bar-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.mat-count b { font-size: 18px; }
.mat-actions { margin-top: 6px; }
.mat-actions .small-btn { flex: 1 1 140px; padding: 9px 10px; font-weight: bold; }
.mat-actions .mat-go { background: var(--accent); color: #fff; }
.mat-actions .mat-stop { background: #fff; color: var(--accent); }
.mat-filter { margin-top: 6px; }
.mat-filter label { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--text); }
.mat-filter input, .mat-check input, .mat-all input { display: inline-block; width: auto; margin: 0; }
.mat-msg:empty { display: none; }
.mat-msg { margin: 8px 0 0; max-height: 30vh; overflow: auto; }
.mat-group > summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; font-weight: bold; font-size: 16px; list-style: revert; }
.mat-group[open] > summary { margin-bottom: 8px; }
.mat-all { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 6px; }
.mat-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--text); font-size: 15px; cursor: pointer; }
.mat-check input { margin-top: 5px; transform: scale(1.3); }
.mat-row > .small { margin-left: 28px; }
.ng-text { color: var(--ng); }
.mat-dialog { border: 1px solid var(--line); border-radius: 10px; padding: 16px; width: min(560px, calc(100vw - 32px)); max-height: 80vh; }
.mat-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.mat-dialog-btns { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.mat-dialog-btns .btn { flex: 1; margin: 0; }
.mat-group > summary::-webkit-details-marker { display: none; }
.mat-gtitle::before { content: "▶"; display: inline-block; width: 1.4em; font-size: 12px; color: var(--accent); }
.mat-group[open] .mat-gtitle::before { content: "▼"; }

/* ---------- 識別問題のミニテストと講師の一覧（v1仕様書 追補9） ---------- */
.shk-test-card { border: 2px solid #2b6cb0; }
.shk-test-no { font-size: 15px; margin: 18px 0 6px; color: var(--sub); }
.shk-cells { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin: 4px 0 2px; font-size: 12px; }
.shk-cells-head { font-weight: bold; color: #1c4f86; margin-right: 2px; }
.shk-cell { border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; white-space: nowrap; }
.shk-cell b { margin-right: 4px; color: #1c4f86; }
.shk-cell.pass { border-color: var(--ok); background: #eef8f1; }
.shk-call { border: 2px solid #e07b00; background: #fff6ea; }
.shk-why { margin: 2px 0 0; padding-left: 1.2em; }

/* アカウントの管理（v1仕様書 追補10）：姓と名・学年と期限を横に並べる（スマホでは縦）、期限が近い印、削除の欄 */
.acc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .acc-two { grid-template-columns: 1fr; } }
.tag.warn { background: #fff2cc; color: #8a6d00; }
details.acc-danger summary { color: var(--ng); }
.small-btn.danger { border-color: var(--ng); color: var(--ng); }
details.acc-edit, details.acc-danger, details.acc-transfer { margin-top: 6px; }

/* ---------- スタッフの画面（v1仕様書 追補11）：左の列にメニュー。PCとタブレット。生徒の画面は変えない ---------- */
body.staff { background: var(--bg); }
.staff .topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); margin: 0; }
.staff .topbar .brand { margin: 0; }
.staff .topbar .who { margin: 0 0 0 auto; }
.menu-toggle { position: absolute; left: -9999px; }
.menu-btn { display: none; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; font-size: 14px; color: var(--accent); background: #fff; }
.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 12px 12px 24px; min-height: calc(100vh - 46px); font-size: 15px; }
.side-list { list-style: none; margin: 0 0 4px; padding: 0; }
.side-list a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.side-list a:hover { background: var(--accent-bg); color: var(--accent); }
.side-head { margin: 12px 0 2px; padding: 0 10px; font-size: 12px; font-weight: bold; color: var(--sub); }
.side-gap { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.side-off { display: block; padding: 6px 10px; color: #aaa; font-size: 14px; }
.side-logout { margin: 12px 10px 0; }
.side-logout button { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; font: inherit; font-size: 14px; color: var(--sub); cursor: pointer; }
.side-small { margin: 16px 10px 0; font-size: 12px; }
.main { padding: 14px 20px 40px; min-width: 0; max-width: 1100px; }
.staff .main > .card, .staff .main > form, .staff .main > p { max-width: 1060px; }
@media (max-width: 900px) {
  /* タブレットの縦など：メニューをたたむ（「メニュー」を押すと開く） */
  .menu-btn { display: inline-block; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .menu-toggle:checked ~ .shell .side { display: block; }
  .main { padding: 12px 14px 40px; }
}

/* 生徒の一覧・スタッフの一覧：表の形（横にはみ出さないよう、狭いときは操作を下の段に回す） */
.tbl-tools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin-bottom: 10px; }
.tbl-tools label { margin: 0; }
.tbl-tools input, .tbl-tools select { width: auto; min-width: 180px; padding: 7px 10px; font-size: 15px; }
.tbl-tools .small-btn { text-decoration: none; display: inline-block; }
.ptable { list-style: none; margin: 0; padding: 0; }
.ptable > li { border-top: 1px solid var(--line); padding: 8px 0; }
.prow { display: grid; grid-template-columns: minmax(120px, 1.4fr) minmax(90px, 1fr) 64px minmax(150px, 1.2fr) 70px 300px; gap: 4px 12px; align-items: center; }
.staff-table .prow { grid-template-columns: minmax(120px, 1.2fr) minmax(90px, 1fr) 110px minmax(130px, 1fr) 70px 400px; }
.prow.head { font-size: 13px; color: var(--sub); font-weight: bold; }
.prow.head a { color: var(--sub); text-decoration: none; }
.prow.head a.on { color: var(--accent); }
.prow .ops { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-end; }
.prow .ops a.small-btn, .ops form.inline { margin: 0; }
a.small-btn { text-decoration: none; display: inline-block; }
.small-btn.off { border-color: var(--line); color: #aaa; cursor: default; }
.prow .tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 8px; }
details.stu-prog { margin-top: 2px; }
details.stu-prog summary { cursor: pointer; font-size: 13px; color: var(--accent); }
@media (max-width: 1180px) {
  /* タブレットなど：操作のボタンを下の段に回す（横にはみ出さない） */
  .prow, .staff-table .prow { grid-template-columns: minmax(110px, 1.4fr) minmax(90px, 1fr) 90px minmax(150px, 1.2fr) 70px; }
  .prow .ops { grid-column: 1 / -1; justify-content: flex-start; }
  .prow.head .c-ops { display: none; }
}
@media (max-width: 620px) {
  .prow, .staff-table .prow { grid-template-columns: minmax(110px, 1.4fr) minmax(80px, 1fr) 90px; }
  .prow > .c-exp, .prow > .c-status { grid-column: span 1; }
  .prow .ops { grid-column: 1 / -1; justify-content: flex-start; }
  .prow.head .c-ops { display: none; }
}
.formcard { max-width: 640px; }
.soon { border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; color: var(--sub); font-size: 14px; margin-top: 14px; }
.btn.danger-btn { background: var(--ng); }
.prow .tag { white-space: nowrap; }
@media (max-width: 1180px) { .staff-table .prow { grid-template-columns: minmax(110px, 1.2fr) minmax(90px, 1fr) 130px minmax(140px, 1.1fr) 70px; } }
@media (max-width: 620px) { .staff-table .prow { grid-template-columns: minmax(110px, 1.4fr) minmax(80px, 1fr) 130px; } }

/* 項目別の一覧と、生徒の詳細の「進み具合のまとめ」（v1仕様書 追補12） */
table.pggrid td.pg-pass { color: var(--ok); background: #e4f3e8; font-weight: bold; }
table.pggrid td.pg-clear { color: #24488c; background: #e8eefb; }
table.pggrid td.pg-doing { color: #8a6d00; background: #fff2cc; }
table.pggrid td.pg-year, table.pggrid td.pg-last { font-size: 13px; color: var(--sub); }
.pg-legend { line-height: 1.9; }
.pg-key { display: inline-block; padding: 0 8px; border-radius: 4px; font-weight: bold; white-space: nowrap; }
.pg-key.pg-pass { color: var(--ok); background: #e4f3e8; }
.pg-key.pg-clear { color: #24488c; background: #e8eefb; }
.pg-key.pg-doing { color: #8a6d00; background: #fff2cc; }
table.pg-sum { border-collapse: collapse; font-size: 14px; width: 100%; }
table.pg-sum th, table.pg-sum td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: center; white-space: nowrap; }
table.pg-sum thead th { background: #f0f0ec; font-weight: normal; font-size: 13px; }
table.pg-sum tbody th { text-align: left; font-weight: normal; white-space: normal; }

/* 学年を1つ上げる（追補14） */
table.yup { width: auto; min-width: 320px; margin-bottom: 10px; }
table.yup td { text-align: left; }
label.check { display: block; margin-top: 6px; font-weight: bold; }
label.check input { display: inline-block; width: auto; margin: 0 6px 0 0; vertical-align: middle; }

.envbar { background: #ffe0e0; border-color: #c62828; color: #7a1010; }
.wc-prior { font-size: 14px; color: var(--muted, #555); margin-top: 4px; }
.kb-card .review-n { margin-top: 12px; }
/* ホーム：教材の枠（2026-10-04）。4つの教材とも同じひな形（進める／特訓BOX）。色は教材ごとに1系統（--sc）。番号（①②）と②の橙はやめた */
.subj { margin: 20px 0 0; --sc: var(--accent); --sc-bg: var(--accent-bg); }
.subj-words { --sc: #1a7a3c; --sc-bg: #eaf5ee; }
.subj-kobun { --sc: #6a3fa0; --sc-bg: #f2ecf9; }
.subj-shk { --sc: #1c4f86; --sc-bg: #eaf1fa; }
.subj-v1 { --sc: #a85a00; --sc-bg: #fbf1e3; }
.subj-h { font-size: 17px; margin: 0 0 8px; padding: 2px 0 2px 10px; border-left: 6px solid var(--sc); color: var(--sc); }
.subj .subj-card { border: 2px solid var(--sc); background: #fff; padding: 14px; }
.subj-part-h { font-size: 15px; font-weight: bold; color: var(--sc); margin: 0 0 6px; }
.subj-part .btn { margin-top: 8px; }
.subj-part .btn.word-next-btn { background: var(--sc); }
.subj-part .word-next-label { margin-top: 8px; }
.subj-part .ov { margin: 0; }
.subj-box { background: var(--sc-bg); border-radius: 8px; padding: 12px; margin-top: 14px; }
.subj-alone { margin-top: 14px; }
.subj-alone .subj-box { margin-top: 0; }
.today-card { border: 2px solid var(--text); }
.today-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.today-list { list-style: none; margin: 8px 0 0; padding: 0; }
.today-list li { --sc: var(--accent); border-top: 1px solid var(--line); }
.today-list li.subj-words { --sc: #1a7a3c; } .today-list li.subj-kobun { --sc: #6a3fa0; } .today-list li.subj-shk { --sc: #1c4f86; } .today-list li.subj-v1 { --sc: #a85a00; }
.today-row { display: flex; align-items: center; gap: 10px; padding: 11px 2px; text-decoration: none; color: var(--text); }
.today-name { flex: 1 1 auto; font-weight: bold; color: var(--sc); border-left: 5px solid var(--sc); padding-left: 8px; }
.today-row b { font-size: 20px; white-space: nowrap; }
.today-go { flex: 0 0 auto; font-size: 13px; color: var(--sc); white-space: nowrap; }
.today-row.done { color: var(--sub); } .today-row.done b { font-size: 15px; font-weight: normal; } .today-row.done .today-go { color: var(--sub); }
.kb-prog { margin: 6px 0 2px; font-weight: bold; }
.kb-dots { letter-spacing: 3px; margin-right: 8px; color: #6a3fa0; }
.kb-sum h2 { margin-top: 0; }

/* 正解したら自動で次の問題へ（v1仕様書 追補17）。○だけの枠は、動き（autonext.js）が働いたときだけ出す */
.an-quick { display: none; }
body.an-on .an-quick { display: block; }
body.an-on .an-detail { display: none; }
.an-quick .small-btn { margin-top: 10px; padding: 9px 18px; }
body.an-wait .choice, body.an-wait .conf-btn { pointer-events: none; }
/* 思い出してから選ぶ画面（英単語。2026-11-11＝決定メモ303）：自動で進んだ直後の歯止めは最初のボタンにかける（薄く見せる）。選択肢にはかけない */
body.an-wait form[data-wrc] .choice { pointer-events: auto; }
body.an-wait .wrc-gate button, body.an-wait .wsr-q1 button { opacity: .4; }
.wrc-gate button, .wsr-q1 button { transition: opacity .15s; }
/* 答えを受け取らずに出し直した同じ問題の上の1行（注意の色。flash の ok／ng より目立たない） */
.wrc-again { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid #c98a1a; background: #fdf6e7; color: var(--text); font-size: 14px; border-radius: 4px; }

/* チェック方式（v1仕様書 追補19）：選択肢そのものが送るボタン。チェックの欄は、選択肢のすぐ下に、親指で押せる大きさで */
button.choice { width: 100%; text-align: left; font: inherit; font-size: 17px; line-height: 1.5; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
button.choice:active { border-color: var(--accent); background: var(--accent-bg); box-shadow: inset 0 0 0 1px var(--accent); }
button.choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* チェックの見た目（決定メモ 16の1・2026-10-04 塾長決定）：□ は、選択肢と同じ枠の中の、一番下の行。
   選択肢は枠の中の行にし、丸数字と □ は同じ大きさ（32px四方）。□ の行が無い画面（英単語のテスト・特訓BOXなど）の選択肢も、同じ枠の形（決定メモ 18の3）。□ の行は、薄い色と太い線で選択肢と区切る。
   いちばん下の選択肢との間に、押しても何も起きないすき間を置く（押し間違いを減らす） */
.choices { gap: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.choices .choice { align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
.choices .choice b { flex: 0 0 32px; width: 32px; height: 32px; font-size: 30px; line-height: 32px; text-align: center; font-weight: normal; }
.choices .choice span { font-weight: bold; }
.choices .choice:last-child, .ckset .choice:nth-last-child(2) { border-bottom: 0; }
.choices label.choice:has(input:checked) { border-color: var(--line); box-shadow: inset 4px 0 0 var(--accent); }
.ck { position: relative; display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; align-content: center; margin: 12px 0 0; padding: 14px 14px 12px; min-height: 84px; border-top: 4px solid #d9a441; background: #fff8e8; color: var(--text); cursor: pointer; touch-action: manipulation; }
.ck input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ck-sq { position: relative; flex: 0 0 32px; width: 32px; height: 32px; border: 2px solid #8a6d3b; border-radius: 5px; background: #fff; }
.ck input:checked + .ck-sq { border-color: #c96a00; background: #c96a00; }
.ck input:checked + .ck-sq::after { content: ""; position: absolute; left: 9px; top: 2px; width: 9px; height: 18px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.ck input:focus-visible + .ck-sq { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 小さい字の2行は、□ の下まで幅を使う（スマホの幅で、かっこの行が2行に折れないように） */
.ck-text { display: contents; }
.ck-text b { display: block; grid-column: 2; font-size: 17px; line-height: 1.5; }
.ck-text small { display: block; grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: #5c5346; }
.ck-text b + small { margin: 6px 0 0 -0.5em; }
.ck:has(input:checked) { background: #ffe6b3; }
form.ck-mark { margin: 12px 0 14px; text-align: center; }
.ck-mark-btn { display: inline-block; padding: 11px 22px; font-size: 15px; font-weight: bold; border-color: #c96a00; color: #c96a00; background: #fffaf0; touch-action: manipulation; }
form.ck-mark .small { display: block; margin-top: 4px; }
.an-quick form.ck-mark { margin: 12px 0 0; }

/* 学習の進め方（v1仕様書 追補20）：右上の入口と、その場で重ねて出す枠 */
.brand-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.howto-link { flex: 0 0 auto; padding: 5px 12px; border: 1px solid var(--accent); border-radius: 99px; background: #fff; color: var(--accent); font-size: 13px; font-weight: bold; text-decoration: none; }
.howto-back { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 14px; }
.howto-back[hidden] { display: none; }
.howto-box { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 12px; padding: 18px 18px 16px; box-shadow: 0 6px 30px rgba(0, 0, 0, .3); }
.howto-box h2 { margin: 0 0 10px; font-size: 19px; }
.howto-list { margin: 0 0 12px; padding-left: 22px; font-size: 15px; line-height: 1.7; }
.howto-list li { margin-bottom: 8px; }
.howto-list ul { margin: 4px 0 0; padding-left: 18px; }
.howto-list ul li { margin-bottom: 2px; }
body.howto-on { overflow: hidden; }

/* 生徒ごと・単元ごとに開く設定（v1仕様書 追補18）：生徒の詳細の枠 */
.uo-h { margin: 14px 0 4px; font-size: 15px; }
.uo-list .ops { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.uo-list .ops form.inline { margin: 0; }

/* 字（フォント）（決定メモ 16の2）：新しい字＝Noto Sans JP（決まりは fonts.css）。届くまでは、うしろの端末の字で出る。
   f-w5＝本文を一段太く（400 → 500。太字は 700 のまま） */
body.f-noto { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji"; }
body.f-noto.f-w5 { font-weight: 500; }
.fonttry { margin: 26px 0 0; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; background: #fff; font-size: 13px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media print { .fonttry { display: none; } }

/* 動画・音声・PDF：見せる設定と、まとまりの中の項目（2026-10-05） */
.mg-bulk { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; margin-left: 10px; vertical-align: middle; }
.mg-bulk form.inline { margin: 0; }
.mset-ops { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.mset-ops form.inline { margin: 0; }

/* 動画・音声・PDF：生徒の入口・教材の一覧・項目の一覧と再生（2026-10-05） */
.subj-media { --sc: #0f6b6f; --sc-bg: #e6f3f3; }
.md-last { border: 2px solid var(--text); }
.md-last-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); padding: 4px 0; }
.md-last-link strong { color: var(--accent); font-size: 17px; }
.md-sets li { padding: 0; }
.md-set { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 2px; text-decoration: none; color: var(--text); }
.md-set strong { flex: 1 1 100%; font-size: 16px; }
.md-set .md-go { margin-left: auto; color: #0f6b6f; font-size: 14px; white-space: nowrap; }
.md-sec { font-size: 15px; margin: 16px 0 2px; padding: 4px 8px; background: #e6f3f3; border-left: 5px solid #0f6b6f; border-radius: 2px; }
.md-items li { padding: 8px 0; }
.md-row { display: flex; align-items: center; gap: 10px; }
.md-title { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.md-title strong { flex: 1 1 100%; overflow-wrap: anywhere; }
.md-row .small-btn { flex: 0 0 auto; min-width: 76px; padding: 9px 10px; text-align: center; text-decoration: none; white-space: nowrap; }
.md-item.md-on { background: #e6f3f3; margin: 0 -8px; padding: 8px; border-radius: 8px; }
.md-player { margin-top: 8px; }
.md-player audio { width: 100%; display: block; }
.md-now { font-size: 13px; color: var(--sub); margin-bottom: 4px; overflow-wrap: anywhere; }
.md-player-btns { display: flex; gap: 8px; margin-top: 6px; }
.md-player-btns .small-btn { flex: 1 1 0; padding: 9px 6px; }
.md-player-btns .small-btn:disabled { border-color: var(--line); color: #aaa; cursor: default; }
.subj-media .btn.word-next-btn { background: var(--sc); }
/* 動画の再生の画面（2026-11-14 移行 便M2）：上に動画（16:9）、その下に「前の動画」「次の動画」。項目の印 見終わった ✔／途中 */
.md-vplay { padding: 10px; }
.md-vhead { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-bottom: 8px; }
.md-vtitle { font-size: 17px; overflow-wrap: anywhere; }
.md-vwrap { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 6px; overflow: hidden; }
.md-vwrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.md-vfrom { margin: 6px 0 0; }
.md-vbtns { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.md-vbtns .small-btn { padding: 9px 12px; text-decoration: none; white-space: nowrap; }
.md-vbtns .md-vnext-on { background: #0f6b6f; color: #fff; border-color: #0f6b6f; font-weight: bold; }
.md-vnow { color: #0f6b6f; border-color: #0f6b6f; }
.md-mark { white-space: nowrap; }
.md-last-done { margin-top: 2px; }
/* 2026-11-15（移行 便M2-2＝決定メモ356・設計メモ3-3）：幅が広いとき（901px から。PC・横向きのタブレット。境目はスタッフの画面の枠の 900px にそろえた）は、
   左に動画（16:9）・右に項目の一覧。一覧の高さは動画の高さにそろえ、一覧だけが動く（public/media.js が見ている行まで送る）。題・区切り・前後の動画は動画の下。
   形：.md-vlay（格子）の中で .md-vplay を display: contents にし、題（h）・動画（v）・下の並び（f）・一覧（s）を並べる。一覧は動画の行だけにのる（中身は重ねて置くので、行の高さ＝動画の高さ）。
   幅がせまいとき（スマホ・縦のタブレット）は前のまま（上に動画、下に一覧） */
@media (min-width: 901px) {
  body.md-wide .wrap { max-width: 1240px; }
  .md-vlay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 34%); grid-template-areas: "v s" "h ." "f ."; gap: 0 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
  .md-vlay .md-vplay { display: contents; }
  .md-vlay .md-vwrap { grid-area: v; }
  .md-vlay .md-vhead { grid-area: h; margin: 10px 0 0; }
  .md-vlay .md-vfoot { grid-area: f; }
  .md-side { grid-area: s; position: relative; min-height: 200px; }
  .md-side-in { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
  .md-side-in > .card { border: 0; border-radius: 0; margin: 0; padding: 8px 12px; }
  .md-side-in > .card:first-child { border-bottom: 1px solid var(--line); background: #f3f8f8; }
  .md-side-in .md-sec { margin-top: 10px; }
  .md-side-in .md-item.md-on { background: #d3ebeb; box-shadow: inset 4px 0 0 #0f6b6f; margin: 0 -12px; padding: 8px 12px 8px 14px; border-radius: 0; }
}

/* ==========================================================================================
   スタッフの画面の枠・メニュー5つ・生徒の詳細の見出し・見せるもの（2026-10-05。見本＝見本_デモ画面_2026-10-05.html の形）
   幅が狭いとき（タブレットの縦・スマホ）は、メニューが上に折り返して並ぶ（押して開く形は、やめた）
   ========================================================================================== */
.staff .topbar { justify-content: space-between; padding: 10px 20px; gap: 4px 12px; }
.staff .topbar .brand { font-size: 17px; }
.staff .topbar .who { margin: 0 0 0 auto; font-size: 13px; }
.top-logout { margin: 0; }
.top-logout button { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; color: var(--sub); cursor: pointer; }
.shell { display: flex; flex-wrap: wrap; align-items: flex-start; }
.menu { flex: 1 1 170px; display: flex; flex-wrap: wrap; gap: 4px; padding: 16px 12px; }
.menu-item { flex: 1 1 150px; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text); text-decoration: none; box-sizing: border-box; }
.menu-item:hover { background: var(--accent-bg); }
.menu-item.on { font-weight: bold; color: #fff; background: var(--accent); }
.staff .main { flex: 999 1 520px; min-width: 0; max-width: 1100px; padding: 16px 20px 40px; }
/* 2026-10-23（決定メモ195）：幅701px以上では、メニューを左に1列（幅200px・縦並び・広がらない）。広い画面で、余った幅をメニューが受け取って2列に並んでいたため。700px以下は下の @media のまま（上に折り返して並ぶ） */
@media (min-width: 701px) {
  .shell { flex-wrap: nowrap; }
  .menu { flex: 0 0 200px; width: 200px; flex-direction: column; flex-wrap: nowrap; }
  .menu-item { flex: 0 0 auto; }
}
.subnav { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 10px; }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--text); text-decoration: none; font-size: 14px; }
.subnav a.on { border-color: var(--text); background: var(--text); color: #fff; font-weight: bold; }
.staff .flash { font-size: 15px; }
.staff .flash.ok { font-weight: bold; color: #145a2e; background: #e6f4ea; border: 2px solid #2e8b57; border-radius: 12px; padding: 12px 18px; }
.staff .flash.ok .small, .staff .flash.ok p, .staff .flash.ok li { font-weight: normal; }
form.is-sent button[type="submit"] { opacity: .55; cursor: default; }
.set-list li { padding: 0; }
.set-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px; text-decoration: none; color: var(--text); }
.set-row strong { color: var(--accent); font-size: 16px; }
@media (max-width: 700px) {
  .menu { padding: 8px 10px; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); }
  .menu-item { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 0 10px; font-size: 14px; }
  .staff .main { padding: 12px 12px 40px; }
  .staff .topbar { padding: 8px 12px; }
}

/* 生徒の登録のあとの帯 */
.done-box { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; background: #e6f4ea; border: 2px solid #2e8b57; border-radius: 14px; margin-bottom: 14px; max-width: 640px; box-sizing: border-box; }
.done-box p { margin: 0; }
.done-head { font-size: 18px; font-weight: bold; color: #145a2e; }
.done-head::before { content: "✔ "; }
.done-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.done-acts .btn { margin: 0; width: auto; flex: 1 1 220px; text-align: center; text-decoration: none; }

/* 生徒の詳細：名札と、見出し4つ */
.who-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 20px; font-size: 14px; color: var(--sub); }
.who-card .who-name { font-size: 22px; color: var(--text); }
.who-ok { font-size: 13px; font-weight: bold; color: #145a2e; background: #e6f4ea; padding: 2px 10px; border-radius: 10px; }
.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.st-tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; font-weight: bold; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 22px; text-decoration: none; }
.st-tab.on { color: #fff; background: #22211f; border-color: #22211f; }

/* 見せるもの */
.sh-h { margin: 0; font-size: 16px; }
.sh-count { margin-left: 10px; font-size: 14px; font-weight: normal; color: var(--sub); }
.sh-now { display: flex; flex-direction: column; gap: 10px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: #eef3fa; border: 1px solid #b9cde6; border-radius: 22px; }
.sh-kind { font-size: 12px; color: #3d5a80; }
.sh-cnm { margin-left: 6px; }
.sh-x { width: 36px; height: 36px; margin-right: -10px; border: 0; background: transparent; color: #3d5a80; font-size: 18px; line-height: 1; cursor: pointer; }
.sh-pick { padding: 0; }
.sh-head { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.sh-head .notice { margin: 0; }
.sh-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-cat { min-height: 44px; padding: 0 16px; font: inherit; font-weight: bold; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; cursor: pointer; }
.sh-cat[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.sh-cat small { margin-left: 8px; font-size: 13px; font-weight: normal; }
.sh-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.sh-fld { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; color: var(--sub); }
.sh-fld.grow { flex: 1 1 200px; min-width: 0; }
.sh-fld select, .sh-fld input, .sh-grade select, .sh-copy select { width: auto; max-width: 100%; height: 44px; padding: 0 10px; font-size: 16px; border: 1px solid #b5b2a8; border-radius: 10px; background: #fff; box-sizing: border-box; }
.sh-fld.grow input { width: 100%; }
.sh-filters .small-btn { min-height: 44px; }
.small-btn.sh-plain { border-color: #b5b2a8; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.small-btn.sh-plain.off { color: #999; border-color: var(--line); pointer-events: none; }
.sh-list { max-height: 372px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sh-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 20px; border-bottom: 1px solid #ebe9e3; background: #fff; }
.sh-row[hidden] { display: none; }
.sh-row.changed { background: #fff7e0; }
.sh-txt { flex: 1 1 240px; min-width: 0; }
.sh-nm { font-weight: bold; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.sh-meta, .sh-subj { font-size: 13px; color: var(--sub); }
.sh-state { width: 72px; text-align: right; font-size: 14px; font-weight: bold; color: var(--sub); }
.sh-state.on { color: var(--accent); }
.sh-grade { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; font-weight: bold; color: var(--text); }
.sh-grade[hidden] { display: none; }
.sh-grade select.need { border: 2px solid #c2410c; }
input.sh-sw { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 52px; height: 30px; margin: 7px 4px; border-radius: 15px; background: #85827a; position: relative; cursor: pointer; }
input.sh-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: left .15s; }
input.sh-sw:checked { background: var(--accent); }
input.sh-sw:checked::after { left: 25px; }
input.sh-sw:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sh-empty { padding: 20px; color: var(--sub); }
.sh-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 20px; }
.sh-foot-copy { justify-content: flex-start; border-top: 1px solid var(--line); }
.sh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sh-warn { font-size: 14px; font-weight: bold; color: #9a3412; }
.sh-warn[hidden] { display: none; }
.sh-chg { font-size: 14px; font-weight: bold; color: var(--sub); }
.sh-chg.some { color: #9a3412; }
.btn.sh-save { width: auto; margin: 0; min-height: 52px; padding: 0 24px; font-size: 17px; }
.btn.sh-save:disabled { background: #6f6c65; cursor: default; }
.sh-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.sh-copy label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--sub); }
.sh-note { padding: 12px 20px; margin: 0; }

/* ---------- 生徒の画面の帯・メニュー・いまどこ（2026-10-05 塾長決定＝決定メモ28・30。見本_生徒の画面_2026-10-05.html。部品は src/student_nav.php） ---------- */
header.sn-bar { position: -webkit-sticky; position: sticky; top: 0; z-index: 40; margin: 0; padding: 0; background: #fff; border-bottom: 1px solid #b5b2a8; }
.sn-in { max-width: 720px; margin: 0 auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.sn-row { display: flex; align-items: center; gap: 6px; }
.sn-sp { flex: 1 1 auto; }
.sn-b { flex: 0 0 auto; box-sizing: border-box; min-height: 48px; padding: 0 10px; display: inline-flex; align-items: center; gap: 3px; font: inherit; font-weight: bold; font-size: 15px; white-space: nowrap; text-decoration: none; color: #1f5fa8; background: #fff; border: 2px solid #1f5fa8; border-radius: 12px; cursor: pointer; }
.sn-b.sn-home { color: #fff; background: #1f5fa8; }
.sn-b.sn-mb { color: var(--text); border-color: #b5b2a8; }
.sn-b.off { color: #b5b2a8; background: #f1f0ec; border-color: #dcdcd6; cursor: default; }
.sn-b:focus-visible, .sn-mi:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.sn-crumb { font-size: 13px; color: var(--sub); line-height: 1.5; }
.sn-crumb a { color: var(--sub); text-decoration: none; }
.sn-crumb b { color: var(--text); }
.sn-brand { font-weight: bold; font-size: 16px; color: #1f5fa8; }
.sn-lock { font-size: 14px; font-weight: bold; color: #b3261e; }
.sn-wrap { padding-top: 14px; }
.sn-hide { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.sn-menu > summary { list-style: none; }
.sn-menu > summary::-webkit-details-marker { display: none; }
.sn-sheet-back { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 45; background: rgba(20, 19, 17, .5); overflow-y: auto; }
.sn-sheet { max-width: 720px; margin: 0 auto; box-sizing: border-box; padding: 10px 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.sn-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 18px; }
.sn-sec { margin-top: 4px; font-size: 13px; font-weight: bold; color: var(--sub); }
.sn-list { display: flex; flex-direction: column; }
.sn-mi { box-sizing: border-box; width: 100%; min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 4px; text-align: left; font: inherit; font-weight: bold; font-size: 16px; text-decoration: none; color: var(--sc, var(--text)); background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; cursor: pointer; }
.sn-mi.howto-link { color: var(--text); }
.sn-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 6px; background: var(--sc, #b5b2a8); }
.sn-r { margin-left: auto; font-weight: normal; color: var(--sub); }
.sn-logout { margin: 0; }
body.sn-on { overflow: hidden; }
/* いま受けられるテスト（ホームの一番上） */
.tbox { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 14px 16px; color: #fff; background: #262421; border-radius: 14px; }
.tbox h2 { margin: 0; font-size: 18px; line-height: 1.45; color: #fff; }
.tbox-tag { align-self: flex-start; padding: 1px 12px; font-size: 13px; font-weight: bold; color: #262421; background: #ffd84d; border-radius: 10px; }
.tbox-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; padding: 10px 12px; color: var(--text); background: #fff; border-radius: 10px; }
.tbox-t { flex: 1 1 170px; min-width: 0; }
.tbox-t b { display: block; line-height: 1.45; }
.tbox-take { flex: 0 0 auto; box-sizing: border-box; min-height: 50px; padding: 0 16px; display: inline-flex; align-items: center; font-weight: bold; font-size: 17px; white-space: nowrap; text-decoration: none; color: #262421; background: #ffd84d; border-radius: 10px; }
.tbox-more summary { min-height: 44px; display: flex; align-items: center; font-weight: bold; cursor: pointer; color: #ffd84d; }
.tbox-more .tbox-row { margin-top: 10px; }
/* ホームの教材の枠 */
.hm-title { font-size: 20px; margin: 18px 0 0; }
.subj.hm { margin-top: 12px; }
.hm-card { display: flex; flex-direction: column; gap: 10px; }
.hm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.hm-h { margin: 0; font-size: 17px; color: var(--sc); }
.hm-nw { white-space: nowrap; }
.hm-where { font-weight: bold; }
.hm-card .btn.word-next-btn { margin-top: 0; background: var(--sc); font-size: 17px; line-height: 1.4; padding: 13px 12px; text-align: center; text-decoration: none; box-sizing: border-box; }
.hm-card .word-next-label { margin-top: 0; }
.hm-more { align-self: flex-end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 14px; color: #1f5fa8; }
progress.hm-prog { display: block; width: 100%; height: 10px; margin: 0; border: 0; border-radius: 5px; overflow: hidden; background: #ebe9e3; -webkit-appearance: none; appearance: none; }
progress.hm-prog::-webkit-progress-bar { background: #ebe9e3; }
progress.hm-prog::-webkit-progress-value { background: var(--sc, #1a7a3c); }
progress.hm-prog::-moz-progress-bar { background: var(--sc, #1a7a3c); }
.today-row .today-go { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; font-size: 15px; font-weight: bold; color: #fff; background: var(--sc); border-radius: 8px; }
.today-row.done .today-go { padding: 0; font-size: 14px; font-weight: normal; background: none; }
/* ステップ（覚える → 演習 → テスト） */
.stp { display: flex; align-items: stretch; gap: 4px; }
.stp-i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 2px; text-align: center; color: var(--sub); background: #fff; border: 2px solid #dcdcd6; border-radius: 10px; }
.stp-n { font-size: 12px; }
.stp-nm { font-weight: bold; font-size: 16px; line-height: 1.3; }
.stp-v { font-size: 12px; font-weight: bold; line-height: 1.3; }
.stp-i.done { color: #145a2e; background: #eaf5ee; border-color: #1a7a3c; }
.stp-i.now { color: #fff; background: #1a7a3c; border-color: #1a7a3c; }
.stp-sep { flex: 0 0 auto; align-self: center; font-weight: bold; color: #b5b2a8; }
.stp.mini .stp-i { padding: 3px 2px; }
.stp.mini .stp-nm { font-size: 14px; }
/* 英単語：級の順番・級の道のり */
.wd-card { display: flex; flex-direction: column; gap: 10px; }
.wd-card h2 { margin: 0; }
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ladder-lv { padding: 4px 12px; font-size: 14px; font-weight: bold; color: var(--sub); background: #f1f0ec; border: 1px solid #dcdcd6; border-radius: 18px; }
.ladder-lv.now { color: #fff; background: #1a7a3c; border-color: #1a7a3c; }
.ladder-lv.done { color: #145a2e; background: #eaf5ee; border-color: #1a7a3c; }
.ladder-arrow { color: #b5b2a8; font-weight: bold; }
.path-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.path-head h2 { color: #1a7a3c; font-size: 17px; }
.path-info { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 13px; color: var(--sub); }
.path-info span { white-space: nowrap; }
ol.path { list-style: none; margin: 0; padding: 0; }
ol.path > li { position: relative; padding: 0 0 10px 44px; }
ol.path > li::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: -2px; width: 2px; background: #b5b2a8; }
ol.path > li:last-child { padding-bottom: 0; }
ol.path > li:last-child::before { display: none; }
.path-num { position: absolute; left: 0; top: 6px; box-sizing: border-box; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 15px; color: var(--sub); background: #fff; border: 2px solid #b5b2a8; border-radius: 16px; }
ol.path > li.done > .path-num { color: #fff; background: #1a7a3c; border-color: #1a7a3c; }
ol.path > li.now > .path-num { color: #145a2e; border: 3px solid #1a7a3c; }
.path-b { box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; text-align: left; text-decoration: none; color: var(--text); background: #fff; border: 1px solid #dcdcd6; border-radius: 10px; }
ol.path > li.now > .path-b { border: 3px solid #1a7a3c; }
.path-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: bold; }
.tag.here { color: #fff; background: #1a7a3c; }
.tag.ready { color: #262421; background: #ffd84d; }
.path-b .btn, .path-b .next-step-off { margin-top: 6px; }
.path-old > summary { min-height: 44px; display: flex; align-items: center; font-weight: bold; cursor: pointer; color: var(--sub); }
/* 単元の画面：グループの表 */
.gboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.gb { height: 42px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 15px; text-decoration: none; color: var(--sub); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.gb.half { color: #145a2e; background: #eaf5ee; border-color: #1a7a3c; }
.gb.done { color: #fff; background: #1a7a3c; border-color: #1a7a3c; }
.gb.now { outline: 3px solid #262421; outline-offset: 1px; }
.gb-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--sub); }
.gb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gb-legend i { width: 16px; height: 16px; box-sizing: border-box; border: 1px solid #b5b2a8; border-radius: 4px; background: #fff; }
.gb-legend i.half { background: #eaf5ee; border-color: #1a7a3c; }
.gb-legend i.done { background: #1a7a3c; border-color: #1a7a3c; }
.gb-legend i.now { outline: 2px solid #262421; outline-offset: 1px; }
.wu-next .btn { margin-top: 0; background: #1a7a3c; font-size: 17px; padding: 14px 12px; text-align: center; text-decoration: none; box-sizing: border-box; }
.wu-next .btn.wu-test { background: #262421; }
.wu-next .next-step-off { margin-top: 0; }
/* 1問の画面の上の枠（単元・グループ・ステップ・残り） */
.wu-ctx { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.wu-ctx-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.wd-card .btn.next-step { background: #1a7a3c; text-align: center; text-decoration: none; box-sizing: border-box; }
.path-b .btn.next-step { font-size: 15px; padding: 10px; }

/* ---------- ホームは「今日やることだけ」・スマホは下の帯・英語構文と識別の中の画面（2026-10-06 塾長決定＝決定メモ33の1。見本_生徒と講師の画面_2026-10-06.html） ---------- */
/* 今日やること */
.today-k { display: block; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--sub); }
.today-row .today-name { min-width: 0; line-height: 1.4; }
.today-list li.today-none .today-name { font-weight: normal; color: var(--sub); border-left: 0; padding-left: 0; }
.btn.hm-pick { display: block; margin: 0 0 14px; padding: 14px 12px; font-size: 17px; line-height: 1.4; text-align: center; text-decoration: none; box-sizing: border-box; color: #fff; background: #262421; }
/* 帯（2026-10-06 シンプル版＝決定メモ39の1の2）：ホームは上だけ（アプリの名前・「？」・「メニュー」）。ほかの画面は、題と「‹ ホームへ」1つ。
   スマホの幅（600px未満）では、「‹ ホームへ」を画面の下に固定。それより広い幅では、題の左。1問の画面は「✕ やめる」・題・「3／10」・棒だけ */
.sn-hd { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.sn-ttl { min-width: 0; font-weight: bold; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.sn-bot { display: contents; }
.sn-top .sn-b { min-height: 44px; border-radius: 22px; }
.sn-b.sn-q { min-width: 44px; justify-content: center; font-size: 18px; color: var(--text); border-color: #b5b2a8; }
.sn-sub .sn-b.sn-home { min-height: 44px; color: #1f5fa8; background: #fff; }
.sn-sheet-head .sn-b { min-height: 48px; }
@media (max-width: 599.98px) {
  body.sn-at-sub { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .sn-bot { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #b5b2a8; }
  .sn-sub .sn-bot .sn-b.sn-home { width: 100%; min-height: 56px; justify-content: center; }
  /* メニューは、下から開く */
  .sn-sheet-back { display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
  .sn-sheet { width: 100%; max-height: 100%; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0; }
  /* 文字を打っている間は、下の帯を引っこめる（キーボードの上に帯が乗って、打つ所が狭くならないように。public/sn.js） */
  body.sn-typing .sn-bot { display: none; }
  body.sn-typing.sn-at-sub { padding-bottom: 0; }
}
@media print { .sn-bot { display: none; } }
/* 教材の色で出すステップ・マス・道のり（英単語は緑のまま） */
.subj-words { --sc-fg: #145a2e; } .subj-kobun { --sc-fg: #47287a; } .subj-shk { --sc-fg: #153d69; }
.nw { display: inline-block; white-space: nowrap; }
.subj-kobun .stp-i.done, .subj-shk .stp-i.done { color: var(--sc-fg); background: var(--sc-bg); border-color: var(--sc); }
.subj-kobun .stp-i.now, .subj-shk .stp-i.now { color: #fff; background: var(--sc); border-color: var(--sc); }
.stp-i.again { color: #7a5a12; background: #fff7e6; border-color: #d4a340; }
.stp.tight .stp-nm { font-size: 14px; white-space: nowrap; }
.stp.tight.mini .stp-nm { font-size: 13px; }
.kb-page .gb.done, .kb-page .gb-legend i.done { color: #fff; background: var(--sc); border-color: var(--sc); }
.gb.again { color: #7a5a12; background: #fff7e6; border: 2px solid #d4a340; }
.gb-legend i.again { background: #fff7e6; border: 2px solid #d4a340; }
.tag.again { color: #7a5a12; background: #fff7e6; border: 1px solid #d4a340; white-space: nowrap; }
.kb-card { display: flex; flex-direction: column; gap: 10px; }
.kb-card h2 { margin: 0; font-size: 17px; color: var(--sc); }
.kb-card p { margin: 0; }
.kb-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.btn.kb-go { margin-top: 0; padding: 14px 12px; font-size: 17px; line-height: 1.4; text-align: center; text-decoration: none; box-sizing: border-box; background: var(--sc); }
.btn.kb-go.line { color: var(--sc); background: #fff; border: 2px solid var(--sc); }
.btn.kb-go.ink { color: #fff; background: #262421; }
.kb-next form, .rrow form { margin: 0; }
.kb-names > summary { list-style: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 14px; color: #1f5fa8; text-decoration: underline; cursor: pointer; }
.kb-names > summary::-webkit-details-marker { display: none; }
.kb-names .kb-n-close, .kb-names[open] .kb-n-open { display: none; }
.kb-names[open] .kb-n-close { display: inline; }
.kb-stage:has(.kb-names[open]) > .gboard { display: none; }   /* 名前つきの一覧を開いたら、番号のマスはしまう（:has の無い古い端末では、両方出る） */
.ulist { display: flex; flex-direction: column; }
.urow { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 6px 2px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.uno { flex: 0 0 3.6em; font-size: 13px; color: var(--sub); }
.unm { flex: 1 1 auto; min-width: 0; font-weight: bold; line-height: 1.4; }
.rlist { display: flex; flex-direction: column; }
.rrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; padding: 4px 0; border-top: 1px solid var(--line); }
.rno { flex: 0 0 auto; min-width: 3.6em; font-size: 13px; color: var(--sub); white-space: nowrap; }
.rnm { flex: 1 1 160px; min-width: 0; line-height: 1.4; }
.rmore { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 14px; color: #1f5fa8; white-space: nowrap; }
.rrow > b { flex: 0 0 auto; white-space: nowrap; }
/* 識別の道のり（英単語の道のりと同じ形を、識別の色で） */
.subj-shk .path-head h2 { color: var(--sc); }
.subj-shk ol.path > li.done > .path-num { background: var(--sc); border-color: var(--sc); }
.subj-shk ol.path > li.now > .path-num { color: var(--sc-fg); border-color: var(--sc); }
.subj-shk ol.path > li.now > .path-b { border-color: var(--sc); }
.subj-shk .tag.here { background: var(--sc); }
.sk-off { padding: 10px 12px; text-align: center; font-size: 15px; color: var(--sub); background: #f1f0ec; border: 1px dashed #b5b2a8; border-radius: 10px; }
/* 講師：生徒の詳細の「テスト」の見出しの中の切り替え */
.st-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.st-sub a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; font-weight: bold; text-decoration: none; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; }
.st-sub a.on { color: #fff; background: #1f5fa8; border-color: #1f5fa8; }

/* ==========================================================================================
   生徒一覧・期限切れ一覧（2026-10-06。決定メモ 35・36。見本＝見本_管理画面_2026-10-06.html の形）
   行を低くして、1ページ20件が、PCでほぼスクロールなしに入る。狭いとき（タブレットの縦）は、表だけが枠の中で横に動く（ページは横にはみ出さない）
   ========================================================================================== */
.stu-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.stu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.stu-tools form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.stu-tools .stu-filter { flex: 1 1 420px; }
.stu-tools .sp, .stu-foot .sp { flex: 1 1 auto; }
.stu-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; white-space: nowrap; }
.stu-tools select, .stu-tools input[type="search"] { width: auto; min-width: 0; min-height: 38px; padding: 0 8px; font-size: 15px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.stu-tools input[type="search"] { width: 11em; }
.stu-tools .small-btn { min-height: 38px; }
.stu-tools .sw { gap: 8px; font-weight: bold; }
.stu-tools .sw input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.tbtn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-weight: bold; font-size: 14px; color: #145a2e; background: #fff; border: 2px solid var(--ok); border-radius: 999px; text-decoration: none; }
.js .js-nojs { display: none; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table.stu-tb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stu-tb th { padding: 8px 10px; text-align: left; font-size: 13px; white-space: nowrap; background: #ebe9e3; border-bottom: 1px solid #b5b2a8; }
.stu-tb th a { color: var(--text); text-decoration: none; font-weight: bold; }
.stu-tb th a.on { color: var(--accent); }
.stu-tb th .ar { margin-left: 4px; color: var(--sub); }
.stu-tb td { padding: 1px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; line-height: 1.5; }
.stu-tb tbody tr:nth-child(even) { background: #faf9f6; }
.stu-tb tbody tr:last-child td { border-bottom: 0; }
.stu-tb .nm { max-width: 13em; overflow: hidden; text-overflow: ellipsis; font-weight: bold; }
.stu-tb .nm a { color: var(--text); text-decoration: none; }
.stu-tb .nm a:hover { text-decoration: underline; }
.stu-tb .mono { font-size: 15px; }
/* 長いID（メールアドレスなど）：幅を決めて、入りきらない分は「…」。マウスを乗せると全部が出る（title）。となりの列に重ならない */
.idc { display: inline-block; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.stu-tb td.idc { display: table-cell; max-width: 9.5em; vertical-align: middle; }
.stu-tb .dim, .stu-foot .dim, .pw-none { color: var(--sub); font-size: 13px; }
.pw-dots { color: var(--sub); letter-spacing: 1px; }
.stu-tb .ops { text-align: right; padding-right: 6px; }
.stu-tb .tag { margin-left: 6px; }
.tag.exp-stop { color: var(--text); background: #ebe9e3; border: 1px solid #b5b2a8; }
.tag.kind { background: var(--accent-bg); color: var(--accent); }
.tag.kind.warn { background: #fff2cc; color: #8a6d00; }
.ib { width: 36px; height: 36px; margin-left: 2px; display: inline-grid; place-items: center; vertical-align: middle; background: transparent; border: 0; border-radius: 8px; }
a.ib:hover { background: #ebe9e3; }
/* PC（マウス）では行を低く：1ページ20件が、ほぼスクロールなしに入る。指で押す端末では、押しやすい高さに戻す */
.stu-tb .ib { height: 30px; }
@media (pointer: coarse) { .stu-tb .ib { height: 40px; } }
.ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib.i-info { color: var(--accent); } .ib.i-edit { color: var(--ok); } .ib.i-stop { color: #8a5a00; } .ib.i-del { color: var(--ng); } .ib.i-pass { color: var(--accent); }
.stu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--sub); }
.pgs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 0 10px; font: inherit; font-size: 14px; font-weight: bold; color: var(--accent); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; text-decoration: none; cursor: pointer; }
.pg.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.pg.off { color: #b5b2a8; cursor: default; }
.ib-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--sub); }
.ib-legend > span { display: inline-flex; align-items: center; gap: 2px; }
.ib-legend .ib { width: 24px; height: 24px; margin: 0; }
.ib-legend .ib svg { width: 18px; height: 18px; }
.stu-empty { margin: 0; padding: 18px; color: var(--sub); }
.stu-card > .small { margin: 0; }
.pw-row { align-items: center; }
/* 画面の右上の名前の所：長いIDでも崩れない（入りきらない分は「…」。マウスを乗せると全部が出る） */
.staff .topbar .who { min-width: 0; max-width: 60%; display: flex; white-space: nowrap; }
.staff .topbar .who .who-nm { overflow: hidden; text-overflow: ellipsis; max-width: 12em; }
.staff .topbar .who .who-id { overflow: hidden; text-overflow: ellipsis; max-width: 11em; }
/* スタッフの一覧（見た目は、あとで生徒一覧にそろえる）：長いIDで、となりの列に重ならない */
.prow > div { min-width: 0; }
.prow > div > .mono { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 区分（登録・編集） */
.acc-kind { margin: 0 0 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; border: 1px solid #b5b2a8; border-radius: 8px; }
.acc-kind legend { padding: 0 4px; font-weight: bold; font-size: 14px; }
.acc-kind label { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 40px; margin: 0; font-size: 16px; }
.acc-kind input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
/* 進み具合へ移した印 */
.pg-marks { display: block; }
.pg-marks .tag { display: inline-block; margin: 2px 4px 0 0; white-space: nowrap; }
.stu-marks .row-main { align-items: center; }
/* 停止と削除の確かめの窓 */
dialog.ask { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-top: 6px solid #8a5a00; border-radius: 14px; background: #fff; color: var(--text); }
dialog.ask.ask-del { border-top-color: var(--ng); }
dialog.ask::backdrop { background: rgba(30, 28, 24, .45); }
dialog.ask form { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px; }
dialog.ask h3, .ask-page h2 { margin: 0; font-size: 18px; }
.ask-who { margin: 0; padding: 8px 12px; font-weight: bold; background: #f1f0ec; border-radius: 8px; overflow-wrap: anywhere; }
.ask-who .tag { margin-left: 8px; }
dialog.ask ul, .ask-page ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
dialog.ask label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: bold; font-size: 14px; }
dialog.ask input[name="confirm_id"] { min-height: 44px; font-family: Consolas, "Courier New", monospace; }
.ask-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.ask-acts .btn { width: auto; margin: 0; min-height: 48px; padding: 0 18px; text-align: center; text-decoration: none; display: inline-flex; align-items: center; }
.btn.ask-warn { background: #8a5a00; color: #fff; }
.ask-acts .btn:disabled { color: var(--sub); background: #ebe9e3; cursor: default; }
.ask-page { display: flex; flex-direction: column; gap: 12px; border-top: 6px solid #8a5a00; }
.ask-page.ask-del { border-top-color: var(--ng); }
.ask-page form { margin: 0; display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================================
   生徒の画面 シンプル版（2026-10-06 塾長決定＝決定メモ37・38・39。見本_生徒の画面_シンプル版_2026-10-06.html。部品は src/quiz.php）
   1つの画面で、押すものは1つ（大きく）。説明の文は置かない。中身の幅は、読みやすい幅（560px）で、まん中に。
   ========================================================================================== */
/* 1問の画面の上：「✕ やめる」・題・「3／10」・棒 */
.sn-quiz .sn-in { padding: 6px 12px; }
.qz-quit { flex: 0 0 auto; min-height: 42px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 14px; font-weight: bold; white-space: nowrap; text-decoration: none; color: var(--sub); background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; }
.qz-quit:focus-visible, .qz-big:focus-visible, .qz-chip:focus-visible, .qz-ch .choice:focus-visible, .qz-ok:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.qz-cnt { flex: 0 0 auto; font-weight: bold; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
progress.qz-bar { display: block; width: 100%; height: 8px; margin: 0; border: 0; background: #ebe9e3; -webkit-appearance: none; appearance: none; }
progress.qz-bar::-webkit-progress-bar { background: #ebe9e3; }
progress.qz-bar::-webkit-progress-value { background: var(--sc, #1f5fa8); }
progress.qz-bar::-moz-progress-bar { background: var(--sc, #1f5fa8); }
/* 「ここでやめますか？」 */
.qz-sheet { display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 46; flex-direction: column; justify-content: flex-end; background: rgba(30, 28, 24, .45); }
.qz-sheet.on, .qz-sheet:target { display: flex; }
.qz-sheet-in { box-sizing: border-box; width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 18px 18px 0 0; }
.qz-sheet-in h2 { margin: 0; font-size: 18px; }
.qz-sheet-in p { margin: 0 0 4px; font-size: 15px; color: var(--sub); }
@media (min-width: 600px) {
  .qz-sheet { justify-content: center; }
  .qz-sheet-in { border-radius: 18px; padding-bottom: 18px; }
}
/* 中身 */
.qz { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.qz-inst { margin: 0; font-size: 14px; color: var(--sub); }
.qz-ja { margin: 0; font-size: 16px; white-space: pre-wrap; }
.qz-en { margin: 0; font-size: 24px; font-weight: bold; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.qz form { margin: 0; }
.qz-ch { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.qz-ch .choice { box-sizing: border-box; width: 100%; min-height: 62px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 14px; font: inherit; font-size: 19px; font-weight: bold; line-height: 1.4; text-align: left; color: var(--text); background: #fff; border: 2px solid #b5b2a8; border-radius: 14px; cursor: pointer; touch-action: manipulation; }
.qz-ch .choice b { flex: 0 0 34px; width: 34px; height: 34px; font-size: 30px; line-height: 34px; font-weight: normal; text-align: center; color: #1f5fa8; }
.qz-ch .choice span { min-width: 0; overflow-wrap: anywhere; }
.qz-fb .choice { cursor: default; }
.qz-fb .choice.right { background: #e4f3e8; border-color: #1a7a3c; }
.qz-fb .choice.wrong { background: #fbe9e7; border-color: #b3261e; }
.qz-fb .choice .qz-tag { margin-left: auto; flex: 0 0 auto; font-size: 13px; }
.qz-fb .choice.right .qz-tag { color: #1a7a3c; }
.qz-fb .choice.wrong .qz-tag { color: #b3261e; }
/* 大きなボタン・小さなリンク・1行の言葉 */
.qz-big { box-sizing: border-box; width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 8px 14px; font: inherit; font-size: 19px; font-weight: bold; line-height: 1.3; text-align: center; text-decoration: none; color: #fff; background: var(--sc, #1f5fa8); border: 0; border-radius: 14px; cursor: pointer; touch-action: manipulation; }
.qz-big.plain { color: var(--text); background: #fff; border: 1px solid #b5b2a8; }
.qz-link { align-self: center; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: bold; color: #1f5fa8; }
.qz-link.sub { margin-top: -10px; font-size: 14px; font-weight: normal; }
.qz-hint { margin: 0; font-size: 14px; color: var(--sub); }
.qz-hint.center { text-align: center; }
.qz-sec { margin: 2px 0 0; font-size: 14px; font-weight: bold; color: var(--sub); }
.qz-sec + .qz-hint { margin-top: -8px; font-size: 13px; }
/* 正解：大きな「正解！」だけ（帯の下いっぱい） */
.qz-ok { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-top: 56px; text-decoration: none; background: #e4f3e8; }
.qz-ring { box-sizing: border-box; width: 150px; height: 150px; border: 18px solid #1a7a3c; border-radius: 50%; }
.qz-w { font-size: 34px; font-weight: bold; line-height: 1.3; color: #1a7a3c; }
.qz-s { font-size: 16px; font-weight: bold; color: #7a5a12; padding: 0 16px; text-align: center; line-height: 1.6; }   /* 長い1行（英単語の「次は…」。2026-11-08）も端まで広げない */
/* 間違い：正しい答え・解説・下に固定の「次へ」 */
.qz-ng { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; font-weight: bold; color: #b3261e; background: #fbe9e7; border-radius: 12px; }
.qz-x { font-size: 30px; line-height: 1; }
.qz-exp { margin-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); padding: 12px 14px; font-size: 16px; white-space: pre-wrap; background: #fff; border-left: 6px solid #b5b2a8; border-radius: 8px; }
.qz-exp > b { display: block; font-size: 13px; color: var(--sub); }
.qz-hos { display: block; margin-top: 8px; font-size: 14px; color: var(--sub); white-space: pre-wrap; }
.qz-hos b { margin-right: .6em; color: #1f5fa8; }
.qz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
.qz-foot .qz-big { max-width: 560px; margin: 0 auto; }
/* 結果：「10問中 ○問」・言葉・一覧 */
.qz-score { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.qz-num { font-size: 20px; font-weight: bold; font-variant-numeric: tabular-nums; }
.qz-num b { font-size: 46px; line-height: 1.1; color: var(--sc, #1f5fa8); }
.qz-verdict { font-size: 24px; font-weight: bold; color: var(--sc, #1f5fa8); }
.qz-rlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.qz-rv { position: relative; border-top: 1px solid var(--line); }
.qz-rv:first-child { border-top: 0; }
.qz-rv summary { min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 8px 114px 8px 10px; font-weight: bold; list-style: none; cursor: pointer; }
.qz-rv summary::-webkit-details-marker { display: none; }
.qz-m { flex: 0 0 26px; font-size: 22px; line-height: 1; text-align: center; }
.qz-rv.ok .qz-m { color: #1a7a3c; }
.qz-rv.ng .qz-m { color: #b3261e; }
.qz-tx { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.qz-more { display: block; font-size: 13px; font-weight: bold; color: #1f5fa8; }
.qz-rv details[open] .qz-more { display: none; }
.qz-body { display: flex; flex-direction: column; gap: 4px; padding: 0 12px 12px 44px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.qz-lab { margin-top: 4px; font-size: 12px; font-weight: bold; color: var(--sub); }
.qz-rv span.qz-chip { position: absolute; top: 8px; right: 8px; margin: 0; }
.qz-chip { box-sizing: border-box; min-width: 98px; min-height: 42px; padding: 0 8px; font: inherit; font-size: 13px; font-weight: bold; white-space: nowrap; color: #7a5a12; background: #fff7e6; border: 1px solid #d4a340; border-radius: 21px; cursor: pointer; touch-action: manipulation; }
.qz-chip[aria-pressed="true"], .qz-chip.in { color: #fff; background: #7a5a12; border-color: #7a5a12; }
span.qz-chip.in { display: grid; place-items: center; cursor: default; }
/* 単元の画面（英語構文）：単元の番号と名前・ボタン1つ */
.qz-unitbox { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 14px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.qz-uno { font-size: 15px; font-weight: bold; color: var(--sc, #1f5fa8); }
.qz-uname { font-size: 24px; font-weight: bold; line-height: 1.4; overflow-wrap: anywhere; }
.qz-ustt { font-size: 15px; font-weight: bold; color: var(--sub); }
/* ---------- ホームと「全体」（2026-10-06 シンプル版＝決定メモ39の1の3・6） ---------- */
/* ホーム：あいさつ → テストの箱 → 今日の特訓 → 学習を進める（教材ごとに1行）→ 今日の勉強時間。スマホの幅で、スクロールなしに入る大きさに */
.hm { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.hm > * { margin-top: 0; margin-bottom: 0; }
.hm-hello { font-size: 20px; font-weight: bold; line-height: 1.4; }
.hm-time { text-align: center; font-size: 14px; color: var(--sub); }
.hm .tbox { gap: 8px; padding: 10px 12px; }
.hm .tbox-row { flex-wrap: nowrap; padding: 0; color: #fff; background: none; }
.hm .tbox-t { flex: 1 1 auto; }
.hm .tbox-t small { display: block; font-size: 12px; font-weight: bold; line-height: 1.4; color: #ffd84d; }
.hm .tbox-t b { line-height: 1.4; }
.hm .tbox-take { min-height: 52px; font-size: 16px; border-radius: 12px; }
.bx { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: #fff7e6; border: 2px solid #d4a340; border-radius: 16px; }
.bx h2 { margin: 0; font-size: 16px; color: #7a5a12; }
.bx-list { margin: 0; padding: 0; list-style: none; }
.bx-list li { display: flex; align-items: center; gap: 10px; min-height: 50px; --sc: #1f5fa8; }
.bx-list li.subj-words { --sc: #1a7a3c; } .bx-list li.subj-kobun { --sc: #6a3fa0; } .bx-list li.subj-shk { --sc: #1c4f86; } .bx-list li.subj-v1 { --sc: #a85a00; }
.bx-n { flex: 1 1 auto; min-width: 0; font-weight: bold; color: var(--sc); }
.bx-c { font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-go { flex: 0 0 auto; box-sizing: border-box; min-width: 76px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; font-weight: bold; text-decoration: none; color: #fff; background: var(--sc); border-radius: 12px; }
.sj-sec { margin: 2px 0 0; font-size: 14px; font-weight: bold; color: var(--sub); }
.hm .sj-sec { margin-bottom: -4px; }
.sj { --sc: #1f5fa8; display: flex; align-items: stretch; gap: 10px; padding: 10px 10px 10px 12px; background: #fff; border: 1px solid var(--line); border-left: 8px solid var(--sc); border-radius: 16px; }
.sj.subj-words { --sc: #1a7a3c; } .sj.subj-kobun { --sc: #6a3fa0; } .sj.subj-shk { --sc: #1c4f86; } .sj.subj-v1 { --sc: #a85a00; } .sj.subj-media { --sc: #0f6b6f; }
.sj-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-decoration: none; color: var(--text); }
.sj-row { display: flex; align-items: baseline; gap: 8px; }
.sj-nm { font-weight: bold; font-size: 18px; line-height: 1.4; color: var(--sc); }
.sj-all { margin-left: auto; font-size: 13px; font-weight: bold; color: #1f5fa8; text-decoration: underline; white-space: nowrap; }
.sj-wh { font-size: 14px; font-weight: bold; line-height: 1.4; }
.sj-meter { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--sub); }
.sj-meter progress.hm-prog { flex: 1 1 auto; width: auto; min-width: 40px; }
.sj-go { flex: 0 0 102px; box-sizing: border-box; min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; font-size: 17px; font-weight: bold; line-height: 1.3; text-align: center; text-decoration: none; color: #fff; background: var(--sc); border-radius: 14px; }
.sj-go span { font-size: 13px; }
.sj-go.off { font-size: 13px; color: var(--sub); background: #f1f0ec; border: 1px dashed #b5b2a8; }
.sj.slim { padding-top: 6px; padding-bottom: 6px; }
.sj.slim .sj-go { min-height: 46px; flex-direction: row; gap: 4px; }
body.sn-at-home .wrap { padding-bottom: 16px; }
@media (max-width: 379.98px) { .sj-nm { font-size: 16px; } .sj-go { flex-basis: 92px; } }   /* 幅360：教材の名前（いちばん長い名前）が、1行に入るように */
.sj-info:focus-visible, .sj-go:focus-visible, .bx-go:focus-visible, .sj-u:focus-visible, .sj-tab:focus-visible, .sj-boxline:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
/* 「全体」：級の並び・一覧（押せない見た目）・レベルの切り替え・ステージの見出しと番号のマス・特訓BOXの1行 */
.sj-lvrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sj-lv { padding: 4px 12px; font-size: 15px; font-weight: bold; color: var(--sub); background: #ebe9e3; border-radius: 16px; }
.sj-lv.now { color: #fff; background: var(--sc); }
.sj-ar { font-weight: bold; color: #b5b2a8; }
.sj-wlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sj-wrow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; border-top: 1px solid var(--line); }
.sj-wrow:first-child { border-top: 0; }
.sj-wrow.now { background: var(--sc-bg); }
.sj-wm { flex: 0 0 22px; font-weight: bold; text-align: center; color: var(--sc); }
.sj-wn { flex: 1 1 auto; min-width: 0; font-weight: 500; color: var(--sub); }
.sj-wrow.now .sj-wn, .sj-wrow.done .sj-wn { font-weight: bold; color: var(--text); }
.sj-wn em { margin-left: 8px; padding: 1px 8px; font-size: 12px; font-style: normal; white-space: nowrap; color: #fff; background: var(--sc); border-radius: 10px; }
.sj-wc { flex: 0 0 auto; font-weight: bold; font-variant-numeric: tabular-nums; color: var(--sub); }
.sj-wrow.link { padding: 0; }
.sj-wrow.link a { flex: 1 1 auto; min-height: 52px; display: flex; align-items: center; padding: 6px 14px; font-weight: bold; text-decoration: none; color: #1f5fa8; }
.sj-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sj-tab { box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; font-size: 15px; font-weight: bold; text-decoration: none; color: var(--sc); background: #fff; border: 2px solid var(--sc); border-radius: 12px; }
.sj-tab.on { color: #fff; background: var(--sc); }
.sj-tabs.two .sj-tab { flex: 1 1 0; min-height: 50px; font-size: 16px; }
.sj-legend { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 13px; color: var(--sub); }
.sj-legend i { display: inline-block; box-sizing: border-box; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; border: 2px solid #b5b2a8; border-radius: 4px; }
.sj-legend i.d { background: var(--sc); border-color: var(--sc); }
.sj-legend i.n { border: 3px solid #262421; }
.sj-stg { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 -6px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--sub); }
.sj-stg b { flex: 0 0 auto; font-size: 15px; color: var(--sc); }
.sj-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sj-u { box-sizing: border-box; min-height: 48px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 17px; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--text); background: #fff; border: 2px solid #b5b2a8; border-radius: 12px; }
.sj-u.done { color: #fff; background: var(--sc); border-color: var(--sc); }
.sj-u.next { border: 4px solid #262421; }
.sj-boxline { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 4px 14px; text-decoration: none; color: #7a5a12; background: #fff7e6; border: 1px solid #d4a340; border-radius: 12px; }
.sj-boxgo { font-weight: bold; white-space: nowrap; }
.sj-boxnote { margin: -6px 0 0; font-size: 12.5px; line-height: 1.5; text-align: center; color: var(--sub); }   /* 「期日の前の問題は、卒業には数えません」（sn_box_line。2026-10-23） */
.sj-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.sj-links .qz-link.sub { margin-top: 0; }
.wu-pick .gb-legend i.done, .wu-pick .gb.done { background: #1a7a3c; }
.sn-mi.sn-week { cursor: default; }
/* 学習の進め方：4行と「くわしく」 */
.howto-steps { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.howto-steps li { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; font-weight: bold; line-height: 1.5; }
.howto-n { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #1f5fa8; border-radius: 50%; }
.howto-more { margin: 0 0 12px; }
.howto-more > summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: bold; color: #1f5fa8; cursor: pointer; }
.howto-detail { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.howto-detail li { margin-bottom: 8px; }
/* 2便（2026-10-09＝決定メモ62。見本_特訓BOXの新しい形_2026-10-09.html）：区切りの画面・結果の「続ける」・帯の小さな1行・「いま解き直す」 */
.tk-gate { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tk-gate b { font-size: 21px; line-height: 1.4; }
.tk-gate span { font-size: 15px; color: var(--sub); }
.tk-gate span.tk-n { font-size: 34px; font-weight: bold; line-height: 1.2; color: var(--sc, #1f5fa8); }
.tk-sum { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tk-sum b { font-size: 20px; }
.tk-sum span { font-size: 14px; color: var(--sub); }
.qz .qz-link.tk-quit { margin-top: -6px; text-decoration: underline; }
.tk-now:empty { display: none; }
.tk-now .qz-big.line { min-height: 52px; font-size: 17px; }
.sn-ttl small.sn-sub2 { display: block; font-size: 12px; font-weight: bold; line-height: 1.3; color: var(--sub); }
.qz-ng small.qz-ngs { display: block; margin-top: 2px; font-size: 14px; font-weight: bold; }
/* 段階D：特訓（今日の特訓・特訓する）。結果の一覧の右の「特訓終了まで あと2回」・英単語と識別の1問 */
/* 2026-10-09：「特訓終了まで あと3回」は、前の言葉より長いので、2行（特訓終了まで／あと3回）に折る。行の右に空けてある幅（114px）に収まり、問題文と重ならない */
.qz-rv span.qz-stat { position: absolute; top: 11px; right: 10px; width: 6.6em; font-size: 13px; font-weight: bold; line-height: 18px; text-align: right; color: #7a5a12; }
.qz-rv span.qz-stat.done { top: 20px; }
.qz-en.dq-word { padding-top: 6px; font-size: 40px; line-height: 1.3; text-align: center; }
.qz-en.dq-ja { font-size: 26px; text-align: center; }
.qz-en.dq-pass { font-size: 17px; font-weight: normal; line-height: 1.8; }
.qz-en u, .qz-tx u { text-decoration-thickness: 3px; text-underline-offset: 5px; }
.dq-audio { display: flex; justify-content: center; }
.dq-play { min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: bold; color: #1f5fa8; background: #fff; border: 1px solid #1f5fa8; border-radius: 22px; cursor: pointer; touch-action: manipulation; }
.qz-exp.dq-exp { white-space: normal; }
.qz-exp.dq-exp p { margin: 6px 0 0; }
.qz-exp.dq-exp ul { margin: 4px 0 0; padding-left: 20px; }
.qz-body .dq-exp p { margin: 4px 0 0; }
.qz-body .dq-exp ul { margin: 4px 0 0; padding-left: 20px; }
.qz-body .dq-exp { white-space: normal; }
/* 段階D：識別（演習・ミニテスト）と中学英文法のテスト。選ぶ →「この答えで次へ」の形・小さなリンクの形のボタン・一覧の行の右の言葉 */
.qd-form { display: flex; flex-direction: column; gap: 14px; }
.qd-pick .choice:has(input:checked) { border-color: var(--sc, #1f5fa8); background: var(--sc-bg, #eaf1fa); box-shadow: inset 0 0 0 1px var(--sc, #1f5fa8); }
.qd-pick .choice:has(input:focus-visible) { outline: 3px solid #262421; outline-offset: 2px; }
.qd-opts { display: flex; gap: 8px; }
.qd-opts:empty { display: none; }
.qd-opts > label { flex: 1 1 0; box-sizing: border-box; min-width: 0; min-height: 48px; margin: 0; }
.qd-opts .ck { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #d9a441; border-radius: 12px; }
.qd-opts .ck-sq { flex: 0 0 24px; width: 24px; height: 24px; }
.qd-opts .ck input:checked + .ck-sq::after { left: 7px; top: 2px; width: 6px; height: 13px; border-width: 0 3px 3px 0; }
.qd-opts .ck-text { display: block; }
.qd-opts .ck-text b { font-size: 15px; }
.qd-opts .ck-text small { display: none; }
.qd-opts label.flag { align-items: center; padding: 6px 10px; font-size: 15px; font-weight: bold; border: 1px solid #b5b2a8; border-radius: 12px; background: #fff; cursor: pointer; touch-action: manipulation; }
.qd-opts label.flag input { width: 24px; height: 24px; }
.qd-links { align-items: center; }
.qd-links form { margin: 0; }
.qd-linkbtn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font: inherit; font-size: 14px; color: #1f5fa8; text-decoration: underline; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.qd-linkbtn:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.qz-link.qd-quit { margin-top: 0; }
.sj-wrow.link a .sj-wm { margin-right: 10px; }
.qd-nm { flex: 1 1 auto; min-width: 0; margin-right: 10px; overflow-wrap: anywhere; }
.qd-st { flex: 0 0 auto; margin-right: 8px; font-size: 13px; white-space: nowrap; color: var(--sub); }
.subj-v1 .sj-wrow.link a { color: var(--text); }
/* 段階C：英単語（学習とテスト）。覚える（カード）・覚えたか確かめる・演習・テスト・まだ確かめていない語・入口の確認。部品は src/words_hub.php の wq_… */
.wq-mem [hidden], .wq-ok[hidden], .wq-card [hidden], .wq-card[hidden] { display: none; }
.qz-en.wq-word { padding-top: 6px; font-size: 40px; line-height: 1.3; text-align: center; }
.qz-en.wq-ja { font-size: 26px; text-align: center; }
.wq-audio { align-self: center; box-sizing: border-box; min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: bold; color: #1f5fa8; background: #fff; border: 1px solid #1f5fa8; border-radius: 22px; cursor: pointer; touch-action: manipulation; }
.wq-audio:focus-visible, .wq-linkbtn:focus-visible, .wq-ch .choice:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.wq-au { display: flex; justify-content: center; }
/* 覚える（カード）：語・音声・意味・例文と訳・下に固定の「次へ」 */
.wq-card, .wq-test { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.wq-mean { margin: 0; font-size: 26px; font-weight: bold; line-height: 1.4; text-align: center; overflow-wrap: anywhere; color: #1a7a3c; }
.wq-exbox { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.wq-e { font-size: 18px; font-weight: bold; line-height: 1.5; overflow-wrap: anywhere; }
.wq-j { font-size: 15px; line-height: 1.5; white-space: pre-line; color: var(--sub); }
/* 覚えたか確かめる（public/memorize.js が動かす）：始める前・1問・「正解！」・間違い */
.wq-intro, .wq-play, .wq-top { display: flex; flex-direction: column; gap: 14px; }
.wq-play .mem-time { height: 8px; margin: 0; border-radius: 4px; }
.wq-ch .choice:disabled { cursor: default; color: var(--text); }
.wq-ch .choice.right { background: #e4f3e8; border-color: #1a7a3c; }
.wq-ch .choice.wrong { background: #fbe9e7; border-color: #b3261e; }
.wq-ch .choice .qz-tag { margin-left: auto; flex: 0 0 auto; font-size: 13px; }
.wq-ch .choice.right .qz-tag { color: #1a7a3c; }
.wq-ch .choice.wrong .qz-tag { color: #b3261e; }
.wq-ch .choice.wq-dk { min-height: 52px; justify-content: center; font-size: 16px; font-weight: normal; color: var(--sub); background: #fafaf8; border-style: dashed; }
.wq-play.wq-done { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.wq-ok { cursor: default; }
/* 解説・一覧の中の、語と例文 */
.wq-xw { display: block; font-weight: bold; }
.wq-xe { display: block; margin-top: 8px; font-weight: bold; }
.wq-xj { display: block; font-size: 14px; color: var(--sub); }
/* 答え合わせの「解説」「ほかの選択肢」（2026-10-15。部品は src/words_hub.php の wq_more_html・wq_more_rows） */
.wq-xh { display: block; margin-top: 10px; font-size: 13px; font-weight: bold; color: var(--sub); }
.wq-xx { display: block; }
.wq-xo { display: block; }
.wq-xow { margin-right: .8em; font-weight: bold; }
.qz-exp .wq-au { margin-top: 10px; justify-content: flex-start; }
.qz-body .wq-audio { min-height: 40px; }
/* テスト：選ぶ →「この答えで次へ」（下に固定）。残り時間 */
.wq-pick .choice:has(input:checked) { border-color: var(--sc, #1f5fa8); background: var(--sc-bg, #eaf1fa); box-shadow: inset 0 0 0 1px var(--sc, #1f5fa8); }
.wq-pick .choice:has(input:focus-visible) { outline: 3px solid #262421; outline-offset: 2px; }
.wq-test .wt-timer { margin: -4px 0 -8px; }
/* 一覧（単元・グループ）と、小さなリンクの形のボタン */
.wq-rows .sj-wrow.link a .sj-wn { margin-right: 10px; font-weight: bold; color: var(--text); }
.wq-rows .sj-wlist + .sj-sec { margin-top: 6px; }
.sj-links form.qz-form { margin: 0; display: inline-flex; }
.wq-linkbtn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font: inherit; font-size: 14px; color: #1f5fa8; text-decoration: underline; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.wq-note { margin: 0; padding: 10px 14px; font-size: 15px; line-height: 1.6; background: #fff7e6; border: 1px solid #d4a340; border-radius: 12px; }
/* カード：表と裏（2026-10-06 夜。塾長の指示で戻した）。表＝語（と、下に「▶ 音声」）。押すと裏＝意味・例文と訳 */
/* 同日 深夜：押すと、横に回って裏返る（回す決まりは、上の .wc-card・.wc-inner＝rotateY・0.5秒。「動きを減らす」設定では回さない）。
   表と裏を同じ升目に重ねるので、高さは長いほうに合う。見えていない面は、回り終わったら visibility で隠す（読み上げ・文字の選択に出さない） */
.wq-flip { box-sizing: border-box; width: 100%; margin: 0; font: inherit; color: var(--text); text-align: center; border-radius: 16px; }
.wq-flip .wc-inner { grid-template-columns: minmax(0, 1fr); -webkit-transform-style: preserve-3d; }
.wq-flip:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.wq-flip:focus-visible .wq-face { box-shadow: none; }
.wq-face { box-sizing: border-box; min-width: 0; min-height: 220px; gap: 12px; padding: 20px 14px; align-items: stretch; justify-content: center; text-align: center; overflow-wrap: anywhere; background: #fff; border: 2px solid #b5b2a8; border-radius: 16px; box-shadow: none; }
.wq-front { visibility: visible; transition: visibility 0s linear 0s; }
.wq-back { visibility: hidden; transition: visibility 0s linear .5s; transform: rotateY(180deg); background: #eaf5ee; border-color: #1a7a3c; }
.wq-flip.flipped .wq-front { visibility: hidden; transition-delay: .5s; }
.wq-flip.flipped .wq-back { visibility: visible; transition-delay: 0s; }
.wq-flip.wc-snap .wc-inner, .wq-flip.wc-snap .wq-face { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .wq-flip .wq-face { transition: none !important; }
}
.wq-flip .wq-word { display: block; padding-top: 0; }
.wq-back .wq-word { font-size: 28px; }
.wq-flip .wq-mean { display: block; }
.wq-flip .wq-pos { display: block; margin-bottom: -8px; font-size: 13px; line-height: 1.3; color: var(--sub); }   /* カードの裏の品詞（意味の上に小さく。2026-10-24） */
.wq-flip .wq-pos[hidden] { display: none; }
.wq-flip .wq-exbox { text-align: left; }
.wq-flip .wq-e, .wq-flip .wq-j { display: block; }
.wq-intro[hidden] { display: none; }
/* ---------- 検証用を見たあとの直し（2026-10-06 夜） ---------- */
/* 押した瞬間：押した選択肢の色を変え、ほかは押せない（public/sn.js） */
.qz .choice.picked, .qz .qz-big.picked, .qz .go-btn.picked, .qz button.picked { color: #fff; background: var(--sc, #1f5fa8); border-color: var(--sc, #1f5fa8); }
.qz .choice.picked b { color: #fff; }
body.qz-sent .qz .choice, body.qz-sent .qz button[type="submit"], body.qz-sent .qz label.choice { pointer-events: none; }
body.qz-sent .qz .choice:not(.picked), body.qz-sent .qz label.choice { opacity: .55; }
/* 結果の一覧の、押せない「✓ 特訓BOX」：ボタンに見えない小さな札（ボタンの見た目は、押せる「＋ 特訓BOX」「✓ 特訓BOX」だけ） */
.qz-rv span.qz-chip.in { top: 16px; right: 10px; min-width: 0; min-height: 0; padding: 2px 8px; font-size: 12px; font-weight: bold; color: #7a5a12; background: none; border: 1px dashed #d4a340; border-radius: 6px; }
.qz-rv:has(span.qz-chip.in) summary { padding-right: 104px; }
/* 選択肢が全部短いときは、2列（識別。スクロールなしで全部見えるように） */
.qz-two .qz-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-two .qz-ch .choice { min-height: 56px; padding: 6px 10px; gap: 8px; font-size: 17px; }
.qz-two .qz-ch .choice b { flex-basis: 28px; width: 28px; }
.qz-tomorrow { margin-top: -6px; color: #7a5a12; }

/* 見せるもの：中学英文法の行の「開いている単元 ○」「単元を開く ›」（2026-10-07） */
.sh-open { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 0; font-size: 14px; color: var(--text); }
.sh-open b { font-size: 16px; }
.sh-open-go { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #b5b2a8; border-radius: 10px; background: #fff; font-weight: bold; text-decoration: none; }

/* ---------- 英語構文を、生徒ごとに単元を選んで見せる（2026-10-07。見本_構文の単元を選ぶ_2026-10-07.html） ---------- */
/* 生徒：全体の画面の、開いていない単元（点線のうすい番号。押せない）／開いている単元を全部クリアした日のボタン「全体を見る」／「次の単元は、先生が開くと解けます」 */
.sj-u.shut { color: #c9c6bc; background: transparent; border: 2px dashed #c9c6bc; }
.sj-legend i.x { border: 2px dashed #c9c6bc; }
.sj-go.quiet { color: var(--sc); background: #fff; border: 2px solid var(--sc); }
.qz-wait { margin: 0; padding: 12px 14px; font-weight: bold; text-align: center; color: var(--text); background: #f1ebf8; border-radius: 12px; }
/* スタッフ：単元を選ぶ */
.kp-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; }
.kp-who h2 { margin: 0; font-size: 20px; }
.kp-who span { font-size: 13px; color: var(--sub); }
.kp { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; background: #fff; border: 1px solid #dcdcd6; border-radius: 10px; }
.kp-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: bold; }
.kp-tools select { width: auto; min-height: 40px; padding: 0 8px; font-size: 16px; background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.kp-sp { flex: 1 1 auto; }
.kp-sbtn { min-height: 40px; padding: 0 14px; font: inherit; font-weight: bold; font-size: 14px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; white-space: nowrap; cursor: pointer; }
.kp-sbtn.go { color: #fff; background: #6a3fa0; border-color: #6a3fa0; }
.kp-count { margin: 0; font-weight: bold; font-variant-numeric: tabular-nums; }
.kp-count b { font-size: 20px; color: #6a3fa0; }
.kp-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 13px; color: var(--sub); }
.kp-legend i { display: inline-block; box-sizing: border-box; width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; border: 2px solid #b5b2a8; border-radius: 5px; background: #fff; }
.kp-legend i.o { background: #6a3fa0; border-color: #6a3fa0; }
.kp-stg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.kp-stg b { color: #6a3fa0; }
.kp-stg span { flex: 1 1 10em; min-width: 0; font-size: 13px; color: var(--sub); }
.kp-stg button { min-height: 34px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: bold; color: #6a3fa0; background: #fff; border: 1px solid #6a3fa0; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.kp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.kp-u { position: relative; display: block; margin: 0; cursor: pointer; }
.kp-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kp-in:disabled { cursor: default; }
.kp-b { position: relative; box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 46px; font-weight: bold; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--text); background: #fff; border: 2px solid #b5b2a8; border-radius: 10px; pointer-events: none; }
.kp-in:checked + .kp-b { color: #fff; background: #6a3fa0; border-color: #6a3fa0; }
.kp-in:focus-visible + .kp-b { outline: 3px solid #262421; outline-offset: 2px; }
.kp-u.chg .kp-b { box-shadow: 0 0 0 3px #d4a340; }
.kp-ck { position: absolute; top: 0; right: 4px; font-size: 11px; font-weight: bold; color: #1a7a3c; }
.kp-in:checked + .kp-b .kp-ck { color: #fff; }
.kp-last { min-height: 1.6em; margin: 0; font-size: 14px; color: var(--sub); }
.kp-last b { color: var(--text); }
.kp-save { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; background: var(--bg, #f7f7f5); border-top: 1px solid #b5b2a8; }
.kp-msg { flex: 1 1 12em; min-width: 0; font-size: 14px; color: var(--sub); }
.kp-msg.warn { font-weight: bold; color: #8a5a00; }
.kp-go { width: auto; min-height: 48px; margin: 0; padding: 0 22px; }
.kp-go:disabled { color: var(--sub); background: #ebe9e3; cursor: default; }
/* 2026-10-07 検証用を見たあとの直し：幅360で「全体を見る」が2行に折れないように／「見せるもの」の「保存していない変更があります」の窓 */
.sj-go.quiet { font-size: 15px; white-space: nowrap; }
dialog.ask > form[method="dialog"] p { margin: 0; }
.sh-ask-acts { flex-wrap: wrap; }
.sh-ask-acts .btn:disabled { color: var(--sub); background: #ebe9e3; cursor: default; }

/* 生徒の詳細「テスト」：英単語の単元の確認テスト（前の名前＝下の級の確認テスト。決定メモ43・2026-10-07。2026-10-21 に作り直した形は、このまとまりの下の「単元の確認テスト」） */
.wh-pick { margin: 0 0 12px; }
.wh-pick label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: bold; }
.wh-pick select { width: auto; min-width: 9em; min-height: 46px; padding: 0 10px; font-size: 16px; background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.wh-cks { display: grid; grid-template-columns: repeat(auto-fill, minmax(15em, 1fr)); gap: 8px; }
.wh-ck { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 6px 12px; font-weight: bold; background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; cursor: pointer; }
.wh-ck input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: #1f5fa8; }
.wh-ck small { font-weight: normal; font-size: 13px; color: var(--sub); }
.wh-ck.on { background: #eaf1fa; border-color: #1f5fa8; }
.wh-ck.off { color: var(--sub); background: #f1f0ec; cursor: default; }
.wh-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 8px; }
.wh-acts .wh-go { width: auto; min-height: 46px; margin: 0; padding: 0 22px; }
.wh-acts .wh-go:disabled { color: var(--sub); background: #ebe9e3; cursor: default; }
.wh-acts .wh-all { min-height: 46px; padding: 0 18px; }
.wh-list .row-main { align-items: center; }
.wh-list .wh-sc { font-weight: bold; font-variant-numeric: tabular-nums; }
.wh-list form.inline { margin: 0; }
.wh-result .wh-miss { font-weight: bold; }

/* 教材の設定「ステバイ修了テスト」：単元のチェックボックス（学年ごとにたたむ）→「まとめて開く」／プルダウン＋「ここまで開く」（決定メモ43・252・2026-11-02） */
.uo-pick { margin: 0 0 10px; }
.uo-pick form { margin: 0; }
.uo-gr { margin: 0; border-bottom: 1px solid var(--line); }
.uo-gr > summary { min-height: 44px; gap: 10px; }
.uo-gr > summary::before { content: "▸"; color: var(--sub); }
.uo-gr[open] > summary::before { content: "▾"; }
.uo-cnt { font-weight: normal; color: var(--sub); }
.uo-gn { margin-left: auto; padding: 1px 8px; border-radius: 99px; background: var(--accent-bg); font-size: 12px; white-space: nowrap; }
.uo-gn[hidden] { display: none; }
.uo-bulk { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 6px; }
.uo-bulk[hidden] { display: none; }
.uo-bulk .small-btn { min-height: 38px; }
.uo-list2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19em), 1fr)); gap: 0 14px; margin: 0 0 8px; padding: 0; list-style: none; }
.uo-u { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 40px; margin: 0; padding: 4px 0; font-size: 15px; color: var(--text); cursor: pointer; }
.uo-u input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; padding: 0; }
.uo-u input:disabled { cursor: default; }
.uo-u input:disabled ~ .uo-nm { color: var(--sub); }
.uo-nm { flex: 1 1 8em; min-width: 0; overflow-wrap: anywhere; }
.uo-u .tag { white-space: nowrap; }
.uo-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.uo-pick .uo-go { width: auto; min-height: 46px; margin: 0; padding: 0 22px; white-space: nowrap; }
.uo-pick .uo-go:disabled { color: var(--sub); background: #ebe9e3; cursor: default; }
.sh-sv .uo-acts .small { margin: 0; }
.uo-upto-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 14px !important; }
.uo-upto-f label { display: flex; flex-direction: column; flex: 1 1 14em; gap: 4px; min-width: 0; margin: 0; font-size: 13px; font-weight: bold; color: var(--sub); }
.uo-upto-f select { width: 100%; min-width: 6em; min-height: 46px; padding: 0 10px; font-size: 16px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.uo-now .row-main { align-items: center; }
.uo-now form.inline { margin: 0; }
/* ---------- スタッフの一覧（2026-10-07。生徒一覧と同じ表＝.stu-tb。下に「期限切れ・停止」を分けて出す） ---------- */
.stf-sec { margin: 4px 0 -4px; font-size: 15px; color: var(--sub); }
.stf-tb .c-role { font-size: 14px; }
.stf-tb .nm .tag { margin-left: 6px; }
.stf-tb { table-layout: fixed; }
.stf-tb th:nth-child(1) { width: 27%; } .stf-tb th:nth-child(2) { width: 25%; } .stf-tb th:nth-child(3) { width: 15%; } .stf-tb th:nth-child(4) { width: 19%; } .stf-tb th:nth-child(5) { width: 14%; }
.stf-tb td.idc { max-width: none; }
@media (max-width: 760px) { .stf-tb { table-layout: auto; } .stf-tb th:nth-child(n) { width: auto; } .stf-tb td.idc { max-width: 9.5em; } }

/* 始める級より下の級（2026-10-08・決定メモ46の2の2）：講師の「進み具合」で、数字・印の代わりに出す */
table.pg-sum td.pg-lower { color: var(--sub); font-size: 13px; text-align: center; background: #f6f6f3; }
table.pggrid td.pg-lower { color: #999; background: #f3f3f0; }
.pg-key.pg-lower { color: #666; background: #ecece8; font-weight: normal; }

/* 英語構文のミックス問題（2026-10-08・決定メモ46の5。見本_ミックス問題と中学英文法のテスト_2026-10-08.html） */
/* 全体の画面：ステージの番号のマスの下の1行（まだ／受けられます・受けている途中／次の日から／合格） */
.mixrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 52px; box-sizing: border-box; padding: 8px 12px; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--line); border-left: 6px solid #b5b2a8; border-radius: 12px; }
.mx-t { flex: 1 1 10em; min-width: 0; display: flex; flex-direction: column; line-height: 1.45; }
.mixrow .ms { font-size: 14px; color: var(--sub); }
.mixrow.ready { color: #fff; background: #262421; border-color: #262421; border-left-color: #ffd84d; }
.mixrow.ready .ms { color: #e9e6dd; }
.mixrow.passed { border-left-color: #1a7a3c; }
.mixrow.passed .ms { font-weight: bold; color: #145a2e; }
.mixrow.again { border-left-color: #a85a00; }
.mx-go { flex: 0 0 auto; box-sizing: border-box; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; font-weight: bold; white-space: nowrap; text-decoration: none; color: #262421; background: #ffd84d; border-radius: 10px; }
.mx-mini { flex: 0 0 auto; box-sizing: border-box; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; font-weight: bold; white-space: nowrap; text-decoration: none; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.mx-go:focus-visible, .mx-mini:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.mixrow.ready .mx-go:focus-visible { outline-color: #fff; }
/* 結果の一覧：行の上に小さく、単元の名前 */
.qz-un { display: block; font-size: 12px; font-weight: bold; line-height: 1.5; color: var(--sc, #6a3fa0); }
/* 講師の「進み具合」：レベルごとの表 */
.kbm-tbl { overflow-x: auto; }
.kbm-tbl table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 14px; }
.kbm-tbl th, .kbm-tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.kbm-tbl th { font-size: 12px; white-space: nowrap; color: var(--sub); background: #f1f0ec; }
.kbm-tbl td.n { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kbm-tbl td small { display: block; color: var(--sub); }
.kbm-staff > .small { margin-top: 10px; }
/* 識別：単元を選ぶ画面（全体）・何周でも・まぜて解く（2026-10-08＝決定メモ50の5。見本_識別の単元を選ぶ_2026-10-08.html） */
.sk-ulist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sk-ulist > li + li { border-top: 1px solid var(--line); }
.sk-urow { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 7px 10px 7px 14px; text-decoration: none; color: var(--text); background: #fff; touch-action: manipulation; }
.sk-urow:focus-visible, .sk-pick:focus-visible { outline: 3px solid #262421; outline-offset: -3px; }
.sk-un { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sk-nm { font-size: 19px; font-weight: bold; line-height: 1.3; overflow-wrap: anywhere; }
.sk-ar { flex: 0 0 auto; font-size: 22px; font-weight: bold; color: #b5b2a8; }
.sk-tag { flex: 0 0 auto; box-sizing: border-box; min-width: 82px; padding: 4px 10px; font-size: 13px; font-weight: bold; text-align: center; white-space: nowrap; border-radius: 999px; }
.sk-tag.pass { color: #fff; background: #1a7a3c; }
.sk-tag.test { color: #262421; background: #ffd84d; }
.sk-tag.doing { color: #1c4f86; background: #eaf1fa; }
.sk-tag.yet { color: #5f5d57; background: #ebe9e3; }
.qz-big.line { color: var(--sc, #1f5fa8); background: #fff; border: 2px solid var(--sc, #1f5fa8); }
.qz-hint.sk-mixnote { margin-top: -8px; }
.qz-ustt.sk-pass { color: #1a7a3c; }
.qz .qz-link.sk-pick { text-decoration: underline; }
.qz form.qz-form:has(.sk-rest) { align-self: center; margin-top: -10px; }
/* 識別の入口（2026-11-02 組S＝決定メモ253・254）：「見分けること」の1行・「前回」の印・ホームの「前回の続き」 */
.sk-goal { font-size: 13px; line-height: 1.45; color: var(--sub); overflow-wrap: anywhere; }
.qz-unitbox .sk-goal { max-width: 30em; font-size: 14px; }
.sk-last { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: 12px; font-weight: bold; line-height: 1.5; vertical-align: 2px; color: #1c4f86; background: #fff; border: 1px solid #1c4f86; border-radius: 999px; }
.hm-more.sk-cont { align-self: flex-start; overflow-wrap: anywhere; }
.sj.has-last { flex-wrap: wrap; row-gap: 2px; }
.sj.subj-shk .sj-go { flex-basis: 118px; }   /* 「今日の単元を／選ぶ」で折れる幅（2026-11-02 組S） */
.sj-last { flex: 1 0 100%; box-sizing: border-box; display: flex; align-items: center; min-height: 40px; padding: 0 2px; font-size: 14px; font-weight: bold; line-height: 1.4; color: #1f5fa8; text-decoration: underline; overflow-wrap: anywhere; }
.sj-last:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
/* テストの、提出の前の「見直し」（2026-10-08 夜＝決定メモ54。見本_テストの見直し_2026-10-08.html。部品は src/testing.php の v1_rv_*・画面は src/pages/test.php） */
.rv-ck { align-self: flex-start; box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 0; padding: 4px 14px 4px 10px; font-size: 16px; font-weight: bold; color: var(--text); background: #fff; border: 2px dashed #b5b2a8; border-radius: 12px; cursor: pointer; touch-action: manipulation; }
.rv-ck input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: #a85a00; }
.rv-ck:has(input:checked) { color: #a85a00; background: #fff1dc; border: 2px solid #a85a00; }
.rv-ck:has(input:focus-visible) { outline: 3px solid #262421; outline-offset: 2px; }
.rv-sum { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.rv-sum b { font-size: 20px; }
.rv-sum span { font-size: 14px; color: var(--sub); }
.rv-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-jb { box-sizing: border-box; min-height: 46px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 16px; font-weight: bold; font-variant-numeric: tabular-nums; text-decoration: none; color: #a85a00; background: #fff1dc; border: 2px solid #a85a00; border-radius: 12px; touch-action: manipulation; }
.rv-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rv-list > li { scroll-margin-top: 150px; }
.rv-list > li + li { border-top: 1px solid var(--line); }
.rv-row { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 8px 8px 8px 12px; text-decoration: none; color: var(--text); background: #fff; touch-action: manipulation; }
.rv-row.flag { background: #fff1dc; }
.rv-row:focus-visible, .rv-jb:focus-visible { outline: 3px solid #262421; outline-offset: -3px; }
.rv-n { flex: 0 0 36px; height: 36px; display: grid; place-items: center; font-size: 15px; font-weight: bold; font-variant-numeric: tabular-nums; background: #ebe9e3; border-radius: 10px; }
.rv-row.flag .rv-n { color: #fff; background: #a85a00; }
.rv-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.rv-qs { font-size: 13px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-an { font-size: 16px; font-weight: bold; overflow-wrap: anywhere; }
.rv-an i { font-style: normal; margin-right: 6px; color: #1f5fa8; }
.rv-tg { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rv-tg:empty { display: none; }
.rv-tag { padding: 1px 8px; font-size: 12px; font-weight: bold; white-space: nowrap; border: 1px solid; border-radius: 999px; }
.rv-tag.rev { color: #a85a00; background: #fff; border-color: #a85a00; }
.rv-tag.chg { color: #1f5fa8; background: #eaf1fa; border-color: #1f5fa8; }
.rv-ar { flex: 0 0 auto; font-size: 20px; line-height: 1; color: var(--sub); }
.qz .qz-link.rv-quit { margin-top: -4px; margin-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
/* 時間の制限があるテスト（英単語）の、見直しの一覧（2026-10-10＝決定メモ81。src/wrv.php）：残り時間は、上の帯のすぐ下に止める（問題の行に重ねない＝地の色の帯にする）。
   止める高さは public/wtest.js が、上の帯の高さに合わせる。「いったんやめる」が無いので、下の固定のボタンの分を、ここで空ける */
.wq-test .rv-ck { display: inline-flex; margin-top: 14px; }   /* 英単語のテストの1問：選択肢の下に、間をあけて、文の幅で（ミックス問題・識別と同じ見え方） */
.rv-sum .rv-tm { font-weight: bold; color: #a85a00; }
.rv.rv-noquit { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.rv .wt-timer.rv-timer { position: -webkit-sticky; position: sticky; top: 0; z-index: 30; margin: -12px -16px -6px; padding: 6px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.rv.rv-noquit .rv-list > li { scroll-margin-top: 190px; }
.rv-ask .qz-sheet-in { gap: 10px; padding-top: 20px; text-align: center; }
.rv-ask .qz-sheet-in h2 { font-size: 21px; }
.rv-ask .qz-sheet-in p { margin: 0; color: var(--text); }
.rv-ask .qz-sheet-in p.rv-left { font-weight: bold; color: #a85a00; }
.qz-chg { display: block; font-size: 12px; font-weight: bold; color: #1f5fa8; }
/* 3便（2026-10-09＝決定メモ64。見本_特訓BOXの新しい形_2026-10-09.html）：「先に特訓」（歯止めの画面）・ホームの行のボタン・講師の解除 */
.tk-gate b span.nw { font-size: inherit; color: inherit; }   /* 見出しを2つに分けて包んだ中身は、見出しの大きさと色のまま（上の .tk-gate span が当たらないように） */
.tk-block { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; font-size: 15px; background: #fff1dc; border: 2px solid #a85a00; border-radius: 16px; }
.tk-block > b { font-size: 17px; line-height: 1.4; color: #a85a00; }
.tk-block > span { line-height: 1.5; color: var(--text); }
.tk-block > small { font-size: 13px; line-height: 1.5; color: var(--sub); }   /* 「まだの単元：2・3・4・7・8」（hs_open_gate_block。2026-10-23） */
.sj-go.stop { background: #a85a00; }
.bx-rel { margin: 8px 0; line-height: 1.7; }
.bx-rel .tag { white-space: nowrap; }
.bx-rel-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.bx-rel-act form.inline { margin: 0; }
/* 講師の「進捗状況」（2026-10-09＝決定メモ55の2・67。見本_進捗状況_2026-10-08.html 第3版）：きょう・テスト。せまい幅では、表だけが、枠（.tscroll）の中で横に送れる */
.stt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.stt-tools .sp { flex: 1 1 auto; }
.stt-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; white-space: nowrap; }
.stt-tools select { width: auto; min-width: 0; min-height: 38px; padding: 0 8px; font-size: 15px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.stt-tools .small-btn { min-height: 38px; }
.stt-daynav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stt-day { min-width: 9.5em; text-align: center; font-size: 18px; font-weight: bold; font-variant-numeric: tabular-nums; }
.stt-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; padding: 0 10px; font-weight: bold; color: var(--accent); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; text-decoration: none; box-sizing: border-box; }
.stt-pg.off { color: #b5b2a8; }
.stt-sums { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.stt-sum { display: flex; align-items: baseline; gap: 6px; padding: 6px 14px; font-weight: bold; background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; }
.stt-sum b { font-size: 22px; font-variant-numeric: tabular-nums; }
.stt-sum.did { color: #145a2e; background: #e4f3e8; border-color: var(--ok); }
.stt-sum.not { color: #8a5a00; background: #fff3d6; border-color: #d4a340; }
h2.stt-sec { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 16px 0 8px; font-size: 15px; }
h2.stt-sec small { font-size: 13px; font-weight: normal; color: var(--sub); }
table.stt-tb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stt-tb th { padding: 8px 10px; text-align: left; font-size: 13px; white-space: nowrap; background: #ebe9e3; border-bottom: 1px solid #b5b2a8; }
.stt-tb td { padding: 5px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; line-height: 1.6; }
.stt-tb tbody tr:last-child td { border-bottom: 0; }
.stt-tb td.wrapc { white-space: normal; min-width: 10.5em; }
.stt-tb th.num, .stt-tb td.num { text-align: right; }
.stt-tb .ops { text-align: right; }
.stt-tb .tag.idle { margin-left: 6px; white-space: nowrap; }
.stt-nm { font-weight: bold; color: var(--text); text-decoration: none; }
.stt-nm:hover { text-decoration: underline; }
.stt-dim { color: var(--sub); font-size: 13px; }
.stt-did { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.stt-did li { display: flex; gap: 6px; }
.stt-did b { flex: 0 0 9.4em; }   /* 2026-10-14：5.6em から（「ステバイ修了テスト」＝9字が、途中で折れないように） */
.stt-did li span { flex: 1 1 auto; min-width: 11em; }
.stt-t { white-space: nowrap; }
.stt-t a { font-weight: bold; }
.stt-res { display: inline-block; padding: 0 9px; font-size: 13px; font-weight: bold; line-height: 1.6; border: 1px solid; border-radius: 999px; white-space: nowrap; }
.stt-res + .stt-res { margin-left: 4px; }
.stt-res.ok { color: #145a2e; background: #e4f3e8; border-color: var(--ok); }
.stt-res.ng { color: var(--ng); background: #fbe9e7; border-color: var(--ng); }
.stt-res.mid { color: #8a5a00; background: #fff3d6; border-color: #d4a340; }
.stt-tb tr.open-row > td { background: var(--accent-bg); }
.stt-tb tr.stt-detail > td { padding: 12px 14px 14px; white-space: normal; background: #fff; border-bottom: 2px solid var(--accent); }
.stt-dhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.stt-dhead .sp { flex: 1 1 auto; }
.stt-mini { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-weight: bold; font-size: 14px; color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: 8px; white-space: nowrap; text-decoration: none; box-sizing: border-box; }
.stt-miss { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.stt-miss li { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 6px 10px; background: #f1f0ec; border-radius: 8px; }
.stt-miss .qn { flex: 0 0 4em; font-weight: bold; }
.stt-miss .qt { flex: 1 1 16em; min-width: 0; }
.stt-miss .ans { flex: 0 1 auto; min-width: 0; font-size: 14px; }
.stt-miss .ans i { font-style: normal; font-weight: bold; color: var(--ng); }
.stt-miss .ans u { text-decoration: none; font-weight: bold; color: #145a2e; }
.stt-exp, .stt-all, .stt-count { margin: 0 0 6px; }
.stt-empty { padding: 18px; color: var(--sub); }
.stt-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; }
.stt-foot { margin-top: 12px; }
.stt-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.stt-one { margin: 0 0 12px; padding: 12px 14px; background: #fff; border: 2px solid var(--accent); border-radius: 10px; }
.stt-one p { margin: 0 0 8px; }
.stt-tb td.stt-rs { white-space: normal; }
.stt-tb td.stt-rs .stt-res { margin: 1px 4px 1px 0; }
/* 「開く」の中身：表が横に送れる幅でも、見えている幅に収めて、左に留める（表を横に送っても、中身は動かない） */
.tscroll.stt-cq { container-type: inline-size; }
.stt-dwrap { position: sticky; left: 14px; box-sizing: border-box; max-width: calc(100cqw - 28px); }
@media (max-width: 899.98px) {
  .stt-tb th, .stt-tb td { padding-left: 7px; padding-right: 7px; }
  .stt-tb td.wrapc { min-width: 8.5em; }
  .stt-mini { padding: 0 10px; }
}

/* ---- 講師へのガイド（「進捗状況」の弾 2便。2026-10-09＝決定メモ70。見本_進捗状況_2026-10-08.html 第3版）：今日すること・気になる生徒の4つの枠・対応の記録 ---- */
.menu-item[data-cnt]::after, .stt-nav a[data-cnt]::after { content: attr(data-cnt); display: inline-block; margin-left: 6px; padding: 0 7px; font-size: 12px; font-weight: bold; line-height: 1.6; color: #262421; background: #fff3d6; border: 1px solid #d4a340; border-radius: 999px; font-variant-numeric: tabular-nums; }
/* 生徒一覧の上の帯「今日すること」（2026-12-03 決定メモ427。src/guide.php の guide_band_html）。はじめは閉じている・開くと前のホームの中身 */
.gd-band { margin: 0 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.gd-band > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 14px; list-style: none; cursor: pointer; }
.gd-band > summary::-webkit-details-marker { display: none; }
.gd-band-t { font-weight: bold; }
.gd-band-n { padding: 0 9px; font-size: 13px; font-weight: bold; line-height: 1.7; color: #262421; background: #fff3d6; border: 1px solid #d4a340; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gd-band-top { min-width: 0; font-size: 14px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-band-o { margin-left: auto; flex: 0 0 auto; font-size: 14px; font-weight: bold; color: #1f5fa8; }
.gd-band-o .o, .gd-band[open] .gd-band-o .c { display: none; }
.gd-band[open] .gd-band-o .o { display: inline; }
.gd-band[open] > summary { border-bottom: 1px solid var(--line); }
.gd-band-in { padding: 4px 14px 10px; }
.gd-band-in > #gd-todo { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }   /* 見出しは帯の1行に出ている（読み上げには残す） */
.gd-band.zero { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 14px; color: var(--sub); }
.gd-band.zero .gd-band-t { color: var(--text); }
.staff .topbar .brand a { color: inherit; text-decoration: none; }
.gd-hello { margin: 0 0 6px; font-size: 16px; }
.gd-box { display: flex; flex-direction: column; margin: 0 0 12px; background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; overflow: hidden; }
.gd-box h3 { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 9px 14px; font-size: 15px; background: #ebe9e3; }
.gd-box h3 small { font-size: 13px; font-weight: normal; color: var(--sub); }
.gd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border-top: 1px solid var(--line); }
.gd-who { flex: 0 0 7.5em; min-width: 0; font-weight: bold; }
.gd-b { flex: 1 1 19em; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gd-s { font-size: 14px; color: var(--sub); }
.gd-s .tag { display: inline-block; margin: 0 8px 0 0; font-weight: bold; white-space: nowrap; border: 1px solid; }
.gd-s .tag.gd-soon { color: #8a5a00; background: #fff3d6; border-color: #d4a340; }
.gd-s .tag.gd-over { color: var(--ng); background: #fbe9e7; border-color: var(--ng); }
.gd-t { font-weight: bold; }
.gd-t::before { content: '→ '; color: var(--accent); }
.gd-n { font-size: 13px; color: var(--sub); }
.gd-a { flex: 0 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gd-a form.inline { margin: 0; }
.gd-none { color: var(--sub); }
.stt-mini.solid { color: #fff; background: var(--accent); cursor: pointer; font-family: inherit; }
button.stt-mini { cursor: pointer; font-family: inherit; }
.gd-recbtn { margin: 0 0 4px; }
.gd-zero { margin-bottom: 10px; }
#gd-rec-tb .ops form.inline { margin: 0; }
#gd-rec-tb { margin-bottom: 0; }
.tscroll + .card.stu-marks { margin-top: 14px; }
.gd-stu .stt-tb td { vertical-align: top; }
/* 対応の記録（「気になる生徒」の下）：せまい幅では、表を横に送らずに、1件を2段に組む（2026-10-10＝決定メモ72の3の1。幅820で「もとに戻す」が表の右に隠れていた）。
   1段め＝押した日時・押した人・生徒・理由／2段め＝そのあと と「もとに戻す」（見えている幅に収まる） */
@media (max-width: 900px) {
  #gd-rec-tb, #gd-rec-tb tbody { display: block; width: 100%; }
  #gd-rec-tb thead { display: none; }
  #gd-rec-tb tr { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  #gd-rec-tb tbody tr:last-child { border-bottom: 0; }
  #gd-rec-tb td { display: block; padding: 0; border: 0; white-space: normal; }
  #gd-rec-tb td.gd-after { flex: 1 1 60%; min-width: 0; }
  #gd-rec-tb td.ops { flex: 0 0 auto; margin-left: auto; }
  #gd-rec-tb td.ops:empty { display: none; }
  #gd-rec-tb td.stt-empty { flex: 1 1 100%; }
}

/* ---- テストの問題と解説の印刷用のページ（「進捗状況」の弾 3便。2026-10-10＝決定メモ55の3・75・77。見本_進捗状況_2026-10-08.html の viewPrint）。src/testprint.php ----
   上に、紙には出ない帯（2つのチェック・「印刷する」・「閉じる」）。下に、紙（A4・縦）。
   2つのチェックは、紙より前に置いた入力（.tp-ck）。入り方で、紙の中の出す・出さないを、ここの決まりだけで切り替える（読み直さない。動きのファイルが働かない端末でも切り替わる）。
   白黒で刷っても読めるように、紙の中は黒い字だけ（○×は、字で出す） */
.tp { max-width: 800px; }
.tp-ck { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.tp-bar .sp { flex: 1 1 auto; }
.tp-lb { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; margin: 0; font-weight: bold; font-size: 15px; cursor: pointer; white-space: nowrap; }
.tp-box { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; font-size: 16px; line-height: 1; color: #fff; background: #fff; border: 2px solid #6b675e; border-radius: 5px; }
#tp-miss:checked ~ .tp-bar label[for="tp-miss"] .tp-box, #tp-ex:checked ~ .tp-bar label[for="tp-ex"] .tp-box { background: var(--accent); border-color: var(--accent); }
#tp-miss:checked ~ .tp-bar label[for="tp-miss"] .tp-box::before, #tp-ex:checked ~ .tp-bar label[for="tp-ex"] .tp-box::before { content: "✓"; }
#tp-miss:focus-visible ~ .tp-bar label[for="tp-miss"] .tp-box, #tp-ex:focus-visible ~ .tp-bar label[for="tp-ex"] .tp-box { outline: 3px solid var(--accent); outline-offset: 2px; }
.tp-how { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--sub); }
.tp-paper { padding: 28px 30px; color: #1a1a1a; background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; line-height: 1.6; }
.tp-ttl { margin: 0; padding: 0 0 6px; font-size: 18px; border-bottom: 2px solid #1a1a1a; }
.tp-meta { display: flex; flex-wrap: wrap; gap: 2px 22px; margin: 8px 0 12px; font-size: 13px; }
.tp-note, .tp-only, .tp-none { margin: 0 0 10px; font-size: 13px; }
.tp-none { padding: 14px 0; font-size: 15px; font-weight: bold; }
.tp-only, .tp-none { display: none; }
#tp-miss:checked ~ .tp-paper .tp-only, #tp-miss:checked ~ .tp-paper .tp-none { display: block; }
#tp-miss:checked ~ .tp-paper .tp-q.ok { display: none; }
#tp-ex:not(:checked) ~ .tp-paper .tp-ex { display: none; }
.tp-q { padding: 10px 0; border-top: 1px solid #b9b6ad; break-inside: avoid; page-break-inside: avoid; }
.tp-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-weight: bold; }
.tp-unit { font-size: 13px; }
.tp-inst { font-size: 12px; font-weight: normal; color: #444; }
.tp-body { font-weight: bold; overflow-wrap: anywhere; }
.tp-body .shk-ul { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: inherit; background: none; }
.tp-ch { margin: 4px 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0 22px; }
.tp-ch li { min-width: 8em; overflow-wrap: anywhere; }   /* 短い選択肢は、1行に並ぶ。長い英文は、入るだけ並んで折り返す */
.tp-a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; font-size: 13px; }
.tp-a b { font-size: 14px; }
.tp-mk { min-width: 1.4em; text-align: center; border: 1px solid #1a1a1a; border-radius: 4px; line-height: 1.35; }
.tp-q.ng .tp-mk { color: #fff; background: #1a1a1a; }
.tp-chg { padding: 0 6px; font-size: 12px; border: 1px solid #1a1a1a; border-radius: 999px; }
.tp-ex { margin-top: 4px; padding: 6px 10px; font-size: 13px; background: #f3f2ee; border-radius: 6px; overflow-wrap: anywhere; }
.tp-ex > span { display: block; }
.tp-ex > .tp-we, .tp-ex > .tp-wj { display: inline; margin-right: 1.4em; }   /* 英単語：例文と、例文の訳は、同じ行に続ける（入らなければ折り返す） */
.tp-hos { margin-top: 2px; }
.tp-ex .shk-kai { margin: 0; padding: 0; background: none; border: 0; font-size: 13px; }
.tp-ex .shk-kai p, .tp-ex .shk-kai ul { margin: 0 0 2px; }
.tp-ex .shk-sent-small { display: none; }   /* 英文は、すぐ上に出ているので、解説の中では出さない */
.tp-ex .shk-wrong { padding-left: 1.4em; }
.tp-ex .shk-refs { margin-top: 4px; }
@page tp-a4 { size: A4 portrait; margin: 14mm 14mm 15mm; }
@media print {
  .tp-page .topbar, .tp-page .menu, .tp-page .subnav, .tp-page .envbar, .tp-page .shiftbar, .tp-page .main > h1, .tp-page .flash, .tp-page .fonttry, .tp-page .tp-bar, .tp-page .tp-ck { display: none !important; }
  /* 講師の「？」の包み（見出しの行 .hw-h1row・切り替えの並びの行 .hw-row）も消す。紙（.tp）は名前つきの紙なので、その前に何か残ると紙の切れ目が入り、1枚目が白紙になっていた（2026-10-30 決定メモ245） */
  .tp-page .hw-h1row, .tp-page .hw-row, .tp-page .hw-sq { display: none !important; }
  body.tp-page { background: #fff; }
  .tp-page .shell { display: block; }
  .tp-page .main { max-width: none; padding: 0; }
  .tp-page .tp { max-width: none; page: tp-a4; }
  /* 刷るときは、字と行の間を少し詰める（紙の枚数をおさえる。100問の全範囲テストで、15枚ほど） */
  .tp-page .tp-paper { padding: 0; border: 0; border-radius: 0; font-size: 9.5pt; line-height: 1.45; }
  .tp-page .tp-ttl { font-size: 13pt; padding-bottom: 3pt; }
  .tp-page .tp-meta { margin: 4pt 0 6pt; }
  .tp-page .tp-q { padding: 5pt 0; }
  .tp-page .tp-ch { margin: 2pt 0; }
  .tp-page .tp-meta, .tp-page .tp-a, .tp-page .tp-ex, .tp-page .tp-note, .tp-page .tp-only, .tp-page .tp-unit, .tp-page .tp-ex .shk-kai { font-size: 8.5pt; }
  .tp-page .tp-a b { font-size: 9.5pt; }
  .tp-page .tp-inst, .tp-page .tp-chg { font-size: 8pt; }
  .tp-page .tp-ex { margin-top: 2pt; padding: 3pt 7pt; }
  .tp-page .tp-ex { background: none; border: 1px solid #8a877f; }
  .tp-page .tp-q.ng .tp-mk { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 講師の「テスト」の一覧：せまい幅では、表を横に送らずに、1件を2段に組む（3便のついでの直し＝決定メモ77。幅820で、右はしの「開く」「閉じる」が切れていた。対応の記録と同じ考え方）。
   1段め＝受けた日時・氏名・点・結果・「開く」（右はし。見えている幅に収まる）／2段め＝テストの名前。「開く」の中身は、その下に、見えている幅いっぱいで出る */
@media (max-width: 900px) {
  #stt-tests, #stt-tests tbody { display: block; width: 100%; }
  #stt-tests thead { display: none; }
  #stt-tests tr.stt-row { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
  #stt-tests tr.stt-row.open-row { background: var(--accent-bg); }
  #stt-tests tr.stt-row > td { display: block; padding: 0; border: 0; white-space: normal; background: none; }
  #stt-tests tr.stt-row > td.wrapc { order: 9; flex: 1 1 100%; min-width: 0; }
  #stt-tests tr.stt-row > td.ops { flex: 0 0 auto; margin-left: auto; }
  #stt-tests tr.stt-detail, #stt-tests tr.stt-detail > td { box-sizing: border-box; display: block; width: 100%; }
  #stt-tests tbody > tr:last-child { border-bottom: 0; }
  #stt-tests td.stt-empty { display: block; }
  #stt-tests .stt-dwrap { position: static; max-width: none; }
}
/* 運用のまとめ（システム管理者だけ。2026-10-11＝決定メモ86。見本_運用のまとめ_2026-10-11.html 第1版）：期間・入るもの／入らないもの・手順・これまでに作ったまとめ */
.ops-lead { max-width: 46em; margin: 0 0 12px; color: var(--sub); }
.ops-form { row-gap: 8px; }
.ops-form input[type="date"] { width: auto; min-height: 38px; padding: 0 8px; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.btn.ops-go { display: inline-block; width: auto; margin: 0; min-height: 44px; padding: 0 18px; }
#ops-done { max-width: 1060px; box-sizing: border-box; }
#ops-done[hidden] { display: none; }
.ops-inout { display: flex; flex-wrap: wrap; gap: 10px; max-width: 1060px; margin: 0 0 12px; }
.ops-inout > div { flex: 1 1 260px; min-width: 0; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ops-inout h3 { margin: 0 0 4px; font-size: 14px; }
.ops-inout ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.ops-inout .no h3 { color: #b3261e; }
.ops-inout p { margin: 6px 0 0; }
.ops-steps { max-width: 46em; margin: 0 0 4px; padding: 10px 14px 10px 2.4em; font-size: 14px; background: #f1f0ec; border: 1px solid var(--line); border-radius: 10px; }
.ops-steps code { font-family: Consolas, 'Courier New', monospace; font-size: 13px; overflow-wrap: anywhere; }
#ops-hist .tscroll { max-width: 1060px; }
/* ==========================================================================================
   行き先に分かれるホーム・「英語」のページ・科目の印・帯の時計・勉強時間の数え方
   （2026-10-12 塾長決定＝決定メモ91・100。見本_ホームの行き先_2026-10-11.html 第6版。部品は src/dest.php・src/student_nav.php）
   色を使うのは、科目の印（四角）だけ。進むボタン・特訓の黄・テストの黒は、いままでどおり。
   ========================================================================================== */
/* 今日の特訓（1行）：左に「今日の特訓」と小さな内訳、右に「始める」1つ */
.bx.bx-one { padding: 8px 14px; }
.bx1 { display: flex; align-items: center; gap: 10px; min-height: 50px; --sc: #7a5a12; }
.bx1-t { display: block; line-height: 1.4; }
.bx1-s { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--text); }
.bx1-i { white-space: nowrap; }
/* 前回の続き（1枚）：「学習を進める」の行と同じ枠。棒と「全体 ›」は無い */
.sj-lab { font-size: 12px; font-weight: bold; line-height: 1.4; color: var(--sub); }
.sj.sj-cont .sj-go { min-height: 64px; }
/* 行き先のボタン：印（四角）＋名前＋（あれば）小さな札。スマホは2列、広い幅は横に並べる */
.dst-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .dst-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; } }
.dst-tile { box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 14px; }
.dst-tile:focus-visible, .st-link:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.dst-ic { flex: 0 0 40px; box-sizing: border-box; width: 40px; height: 40px; display: grid; place-items: center; font-size: 19px; font-weight: bold; line-height: 1; color: #1f5fa8; background: #fff; border: 2px solid #1f5fa8; border-radius: 11px; }
.dst-ic.soft.dst-eng { color: #b23a3a; background: #fbe4e4; border-color: #fbe4e4; }   /* 英語＝淡い赤の地に、赤い字（学習記録で決まっている科目の色） */
.dst-ic.soft.dst-nihonshi, .dst-ic.soft.dst-sekaishi, .dst-ic.soft.dst-sogo { color: #1f6b40; background: #dcefe3; border-color: #dcefe3; }   /* 教科書ガイドの科目＝社会の淡い緑（2026-10-14 便2） */
.dst-ic.soft.dst-sugaku { color: #1f5fa8; background: #e1ecf8; border-color: #e1ecf8; }   /* 数学＝淡い青の地に、青い字（学習記録の数学の色。2026-10-30） */
.dst-ic.soft.dst-guide { color: #1f5fa8; background: #eaf1fa; border-color: #eaf1fa; }   /* デジタルガイド＝淡い青の地に、青い字・本の絵（2026-11-29 決定メモ419。見本 Fg3651MkN6KEbqzru45Bo5） */
.dst-ic.soft.dst-mvideo, .dst-ic.soft.dst-maudio, .dst-ic.soft.dst-mpdf { color: #0f6b6f; background: #e6f3f3; border-color: #e6f3f3; }   /* 動画・音声・PDF＝前の「動画・音声・PDF」の色（.subj-media）の淡い地（2026-11-19 決定メモ379） */
.dst-ic.sm { flex-basis: 32px; width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }   /* 科目のページの、題の左 */
.dst-tb { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dst-tn { font-weight: bold; font-size: 16px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }   /* 名前が2行になるときは、「・」の所で折る（「動画・音声・／PDF」） */
@media (max-width: 379.98px) { .dst-tn { font-size: 14px; } }   /* 幅360：「動画・音声・」が、1行に入るように */
/* 7字の名前（デジタルガイド・歴史総合の演習。2026-11-29）：幅390で語の途中で折れないように、少し小さく */
#dst-guide .dst-tn, #dst-sogo .dst-tn { font-size: 14px; letter-spacing: -0.02em; }
@media (max-width: 379.98px) { #dst-guide .dst-tn, #dst-sogo .dst-tn { font-size: 13px; } }
.dst-bd { align-self: flex-start; max-width: 100%; box-sizing: border-box; padding: 0 8px; font-size: 12px; font-weight: bold; color: #7a5a12; background: #fff7e6; border: 1px solid #d4a340; border-radius: 10px; }   /* 長い札（「今日の振り返りを書こう」＝2026-11-21 追補20-1）は、枠の中で折り返す */
/* 帯の右の時計（学習記録を見せる生徒だけ） */
.sn-b.sn-clock { min-width: 44px; min-height: 44px; justify-content: center; padding: 0 10px; color: var(--text); border-color: #b5b2a8; border-radius: 22px; }
/* 勉強時間の数え方：入口（「今日の勉強時間」の右の、下線つきの小さな字）と、重ねて出す中身 */
.st-link { display: inline-flex; align-items: center; min-height: 32px; margin-left: 6px; padding: 0 6px; font-size: 14px; font-weight: bold; color: #1f5fa8; text-decoration: underline; }
.st-rule-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.howto-box .st-rule-head h2 { margin: 0; }
.st-rl { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; padding: 12px 14px; border: 2px solid #b5b2a8; border-radius: 14px; }
.st-rl-w { font-size: 14px; font-weight: bold; color: var(--sub); }
.st-rl-h { font-size: 19px; font-weight: bold; line-height: 1.4; color: #1f5fa8; }
.st-rl-e { font-size: 14px; line-height: 1.6; }
.st-fine { margin: 4px 0 0; padding-left: 1.2em; font-size: 15px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.st-nb { display: inline-block; }   /* 「（何も押しません）」：せまい幅では、かっこごと次の行へ送る（終わりの2字だけが落ちないように。2026-10-12 2便） */
/* ==========================================================================================
   生徒のタグと、お知らせ（2026-10-12 塾長決定＝決定メモ91〜93・101・102。見本_連絡とタグ_2026-10-11.html 第2版・見本_ホームの行き先_2026-10-11.html 第6版。
   部品は src/tags.php・src/notice.php）
   ========================================================================================== */
/* --- スタッフ：タグの札・生徒の一覧のタグの列・まとめて付ける行 --- */
.tg { display: inline-block; margin: 1px 4px 1px 0; padding: 0 8px; font-size: 12px; font-weight: bold; line-height: 1.7; white-space: nowrap; color: var(--text); background: #ebe9e3; border: 1px solid #b5b2a8; border-radius: 999px; }
.stu-tb td.c-tags { white-space: normal; min-width: 6em; max-width: 9.5em; }   /* タグが多い生徒は、列の中で折り返す */
.stu-tb .c-tags .tg { white-space: nowrap; }   /* タグ1つずつの中では、折らない（「日本史選／択」のように、語の途中で折れていた）。タグとタグの間では、折れる（2026-10-12） */
/* タグの列が入っても、幅1280で、表が枠からはみ出さないように：長い氏名・長いIDの切りつめを、少し早める（全文は、マウスを乗せると出る） */
.stu-tg .nm { max-width: 10em; }
.stu-tb.stu-tg td.idc { max-width: 8em; }
/* 表の枠：枠の中の「目に見えない字」（.sn-hide）が、ページの横幅を広げないように、枠を基準にする */
.tscroll { position: relative; }
.stu-tb .c-ck { width: 1%; padding-right: 0; }
.stu-tb .c-ck input, .acc-tags input { display: inline-block; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--accent); vertical-align: middle; }
.stu-tagrow { padding: 6px 10px; background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; }
.stu-tagrow select { display: inline-block; width: auto; min-width: 0; margin: 0; min-height: 38px; padding: 0 8px; font-size: 15px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 8px; }
.stu-picked { font-size: 14px; font-weight: bold; white-space: nowrap; }
.acc-tags { gap: 4px 18px; }
/* --- スタッフ：タグの管理 --- */
.tg-card { display: flex; flex-direction: column; gap: 10px; }
.tg-new, .tg-ren { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.tg-new label, .tg-ren label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: bold; color: var(--text); }
.tg-new input[type="text"], .tg-ren input[type="text"] { display: inline-block; width: 13em; max-width: 100%; margin: 0; min-height: 42px; padding: 0 10px; border: 1px solid #b5b2a8; }
.btn.tg-add { display: inline-block; width: auto; margin: 0; min-height: 44px; padding: 0 20px; }
.tg-tb td { vertical-align: middle; }
.tg-tb .ops { text-align: right; white-space: nowrap; }
.tg-tb .ops .small-btn { margin-left: 6px; }
.small-btn.solid { color: #fff; background: var(--accent); font-weight: bold; }
.small-btn.danger.solid { color: #fff; background: var(--ng); border-color: var(--ng); }
.tg-ask, .nt-ask { border: 2px solid #8a5a00; }
.tg-ask h2, .nt-panel h2 { margin: 0 0 8px; font-size: 17px; }
.tg-ask-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0; }
.tg-ask-acts .small-btn { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; }
/* --- スタッフ：相手を選ぶ札（押して選ぶ。いくつでも）・「相手：○人」 --- */
.aud { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.aud-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aud-gl { flex: 0 0 3.2em; font-size: 13px; font-weight: bold; color: var(--sub); }
label.chipb { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.chipb input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; }
.chipb span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: bold; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 999px; }
.chipb input:checked + span { color: #fff; background: var(--accent); border-color: var(--accent); }
.chipb input:focus-visible + span { outline: 3px solid #262421; outline-offset: 2px; }
.aud:has(.aud-all input:checked) .aud-pick { display: none; }   /* 「全員」を選んだら、学年・区分・タグは隠す（受け取る側も、「全員」を先に見る） */
.aud-count { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 12px; padding: 8px 12px; font-weight: bold; color: var(--text); background: var(--accent-bg); border-radius: 10px; }
.aud-count b { font-size: 20px; font-variant-numeric: tabular-nums; }
.aud-count details { flex: 1 1 14em; min-width: 0; font-weight: normal; }
.aud-count summary { display: inline-block; font-weight: bold; color: var(--accent); text-decoration: underline; cursor: pointer; list-style: none; }
.aud-count summary::-webkit-details-marker { display: none; }
.aud-count details[open] summary { margin-bottom: 4px; }
.aud-names { margin: 0; font-size: 14px; line-height: 1.7; }
/* --- スタッフ：連絡（お知らせの一覧・書く・下に出す枠） --- */
.btn.nt-write-btn { display: inline-flex; align-items: center; width: auto; margin: 0; min-height: 44px; padding: 0 18px; }
.tag.nt-imp-tag { display: inline-block; margin-right: 6px; font-weight: bold; color: #fff; background: #c62828; }
.tag.nt-wd-tag { display: inline-block; margin-right: 6px; font-weight: bold; color: var(--text); background: #ebe9e3; border: 1px solid #b5b2a8; }
.nt-tb td { vertical-align: middle; }
.nt-tb td.nt-t { min-width: 13em; }
.nt-tb td.nt-to { min-width: 9em; font-size: 14px; }
.nt-tb .nt-ack a { font-weight: bold; color: var(--accent); }
.nt-tb tr.nt-gone .stt-nm, .nt-tb tr.nt-gone td.nt-to { color: var(--sub); }
.nt-tb tr[aria-current] > td { background: var(--accent-bg); }
.nt-pgs, .nt-note { margin: 10px 0 0; }
.nt-panel { margin-top: 12px; max-width: 1060px; }
.nt-panel p { margin: 0 0 8px; }
.nt-panel p:last-child { margin-bottom: 0; }
.nt-body { margin: 0 0 10px; padding: 10px 12px; line-height: 1.7; overflow-wrap: anywhere; background: #faf9f6; border: 1px solid var(--line); border-radius: 10px; }
.nt-form textarea { display: block; box-sizing: border-box; width: 100%; min-height: 8em; margin-top: 4px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; resize: vertical; }
.nt-form label { color: var(--text); font-weight: bold; }
.nt-sec { margin: 6px 0 8px; font-size: 15px; }
label.nt-imp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; font-size: 16px; }
label.nt-imp input { display: inline-block; width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--accent); }
label.nt-imp .dim { font-size: 13px; font-weight: normal; color: var(--sub); }
/* 見せる期限（2026-11-27）：書く画面の日付の欄・一覧の「まで」・期限を変える枠・生徒の画面の「まで」 */
label.nt-exp { display: block; margin: 4px 0 2px; font-size: 15px; }
label.nt-exp input[type="date"] { display: block; box-sizing: border-box; width: 100%; max-width: 220px; min-height: 44px; margin-top: 4px; padding: 6px 10px; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.nt-exp-note { margin: 0 0 12px; }
.nt-until { display: inline-block; margin-left: 6px; font-size: 12px; color: var(--sub); white-space: nowrap; }
.nt-tb td.ops .nt-exp-btn { margin-right: 6px; }
.nt-exp-form { margin: 0 0 8px; }
.nt-exp-form label.nt-exp { margin-bottom: 10px; }
.nb-until { margin-left: auto; font-size: 12px; font-weight: normal; color: var(--sub); white-space: nowrap; }
.nt-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.nt-acts .btn { flex: 1 1 180px; width: auto; margin: 0; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.aud .dim, .tg-new .dim, .tg-ren .dim { font-size: 13px; font-weight: normal; color: var(--sub); }
.gd-news-t { font-weight: bold; }
.gd-news-t b { font-size: 20px; font-variant-numeric: tabular-nums; }
/* --- 生徒：赤い点・新着の箱・封筒・お知らせの画面 --- */
.nt-dot { flex: 0 0 10px; display: inline-block; width: 10px; height: 10px; background: #c62828; border-radius: 50%; }
.inbox { display: flex; flex-direction: column; background: #fff; border: 2px solid #262421; border-radius: 14px; overflow: hidden; }
.inbox-row { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.inbox-row:first-child { border-top: 0; }
.inbox-row:focus-visible, .nb-ack:focus-visible { outline: 3px solid #262421; outline-offset: -3px; }
.inbox-k { flex: 0 0 auto; min-width: 5.2em; padding: 1px 8px; font-size: 12px; font-weight: bold; text-align: center; color: #fff; background: #262421; border-radius: 999px; }
.inbox-k.imp, .nb-k { color: #fff; background: #c62828; }
.inbox-tx { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: bold; line-height: 1.4; overflow-wrap: anywhere; }
.inbox-tx small { margin-left: 8px; font-size: 12px; font-weight: bold; color: var(--sub); white-space: nowrap; }
.inbox-ar { flex: 0 0 auto; font-weight: bold; color: #1f5fa8; }
.sn-b.sn-mail { position: relative; min-width: 44px; min-height: 44px; justify-content: center; padding: 0 10px; color: var(--text); border-color: #b5b2a8; border-radius: 22px; }
.sn-cnt { position: absolute; top: -6px; right: -6px; box-sizing: border-box; min-width: 21px; height: 21px; padding: 0 5px; display: grid; place-items: center; font-size: 12px; font-weight: bold; line-height: 1; color: #fff; background: #c62828; border: 2px solid #fff; border-radius: 999px; font-variant-numeric: tabular-nums; }
.sn-mi.sn-news { color: var(--text); border-top: 0; }
.sn-mi.sn-news + .sn-mi { border-top: 1px solid var(--line); }
.sn-news .sn-r { display: inline-flex; align-items: center; }
.nb { margin: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.nb.imp { border: 2px solid #c62828; }
.nb-d { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: bold; color: var(--sub); }
.nb-k { display: inline-block; margin-right: 2px; padding: 1px 10px; font-size: 12px; font-weight: bold; border-radius: 999px; }
.nb h2 { margin: 2px 0 0; font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.nb-b { margin: 4px 0 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.nb-b a { color: #1f5fa8; }
.nb form { margin: 10px 0 0; }
.nb-ack { box-sizing: border-box; width: 100%; min-height: 50px; font: inherit; font-size: 17px; font-weight: bold; color: #fff; background: #c62828; border: 0; border-radius: 12px; cursor: pointer; touch-action: manipulation; }
.nb-acked { margin: 8px 0 0; font-size: 13px; font-weight: bold; color: var(--sub); }
.nb-pg { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nb-pgn { font-size: 14px; font-weight: bold; color: var(--sub); }
/* 掲示板の公開フォルダ（2026-11-27＝決定メモ414〜416。見本「生徒：掲示板」。src/folder.php の pf_board_html）：上に公開フォルダ、下にお知らせ */
.pf { display: flex; flex-direction: column; gap: 8px; }
.pf-h { margin: 4px 0 0; font-size: 14px; font-weight: bold; color: var(--sub); }
.pf-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pf-row { display: flex; align-items: center; gap: 12px; min-height: 48px; box-sizing: border-box; padding: 10px 14px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.pf-row:first-child { border-top: 0; }
.pf-row:focus-visible { outline: 3px solid #262421; outline-offset: -3px; }
.pf-ic { flex: 0 0 auto; color: #1f5fa8; }
.pf-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-t { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pf-nm { font-size: 16px; font-weight: bold; line-height: 1.4; overflow-wrap: anywhere; }
.pf-new { padding: 0 7px; font-size: 11px; font-weight: bold; line-height: 1.6; color: #fff; background: #c62828; border-radius: 999px; white-space: nowrap; }
.pf-until { font-size: 12px; font-weight: bold; color: #8a4b00; }
.pf-ar { flex: 0 0 auto; font-size: 18px; color: #6f6d66; }
.pf-note { margin: 0; font-size: 12px; color: var(--sub); }
.pf-h.nb-h { margin-top: 10px; }
.inbox-k.pf-k { min-width: 0; }
/* 先生：公開フォルダの管理（src/pages/folders.php） */
.pf-lead { margin: 0 0 12px; font-size: 14px; color: var(--sub); }
.pf-sec { margin: 0 0 10px; font-size: 17px; }
.pf-form label { color: var(--text); font-weight: bold; }
.pf-form { margin-bottom: 14px; }
.pf-tb td.pf-nmc { min-width: 13em; font-weight: bold; }
.pf-tb td.pf-to { min-width: 9em; font-size: 14px; }
.pf-tb td.pf-exp { white-space: nowrap; font-size: 14px; }
.pf-tb td.pf-no { color: var(--sub); font-variant-numeric: tabular-nums; }
.pf-tb td.ops { white-space: nowrap; }
.pf-tb td.ops form.pf-mv { display: inline; margin: 0; }
.pf-tb td.ops .small-btn { margin-right: 6px; }
.pf-tb tr.pf-expd .stt-nm, .pf-tb tr.pf-expd td.pf-to, .pf-tb tr.pf-expd td.pf-exp { color: var(--sub); }
.pf-tb tr[aria-current] > td { background: var(--accent-bg); }
.pf-foot { margin: 10px 0 0; }
.pf-to-link { margin: 0 0 12px; }

/* ---------- 緊急メンテナンス（2026-10-12＝決定メモ107・108。見本_緊急メンテナンス_2026-10-12.html。src/maint.php） ---------- */
/* 生徒のメンテナンスの画面：黄色の線の枠の中に、工具の絵・見出し・文・（目安の札）・「もう一度ひらく」・小さな字。スマホ・タブレット・パソコンで、同じ並び */
.mt { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; margin: 24px auto 0; padding: 26px 20px 22px; text-align: center; background: #fff; border: 2px solid #d4a340; border-radius: 18px; }
.mt-ic { width: 64px; height: 64px; display: grid; place-items: center; color: #8a5a00; background: #fff3d6; border-radius: 50%; }
.mt-ic svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mt h2 { margin: 0; font-size: 21px; line-height: 1.45; }
.mt h2 span, .mt p span { display: inline-block; }
@media (max-width: 380px) { .mt { padding-left: 12px; padding-right: 12px; } }   /* 幅360：文が、1字だけ次の行へ送られないように */
.mt p { margin: 0; font-size: 16px; line-height: 1.7; }
.mt p.mt-eta { padding: 6px 14px; font-weight: bold; color: #8a5a00; background: #fff3d6; border-radius: 999px; font-variant-numeric: tabular-nums; }
.mt-again { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 4px; font-size: 17px; font-weight: bold; text-decoration: none; color: #1f5fa8; background: #fff; border: 2px solid #1f5fa8; border-radius: 14px; touch-action: manipulation; }
.mt p.mt-small { font-size: 13px; color: #5f5d57; }
/* ログインの画面の、フォームの上の黄色の枠 */
.mt-note { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; padding: 10px 14px; text-align: left; color: #8a5a00; background: #fff3d6; border: 2px solid #d4a340; border-radius: 12px; }
.mt-note b { font-size: 16px; }
.mt-note span { font-size: 14px; color: var(--text); }
/* 先生の画面のいちばん上の赤い帯（帯 topbar のさらに上・幅いっぱい） */
.mt-red { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 10px 16px; color: #fff; background: #b3261e; }
.mt-red b { font-size: 15px; }
.mt-red span { font-size: 13px; }
.mt-red .mt-sp { flex: 1 1 auto; }
.mt-red .mt-mini { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; font-weight: bold; font-size: 14px; text-decoration: none; color: #b3261e; background: #fff; border-radius: 8px; }
/* 「設定」→「緊急メンテナンス」 */
.mt-card { display: flex; flex-direction: column; gap: 12px; }
.mt-card > p, .mt-card > div > p { margin: 0; }
.mt-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.mt-pill { display: inline-flex; align-items: center; padding: 3px 14px; font-weight: bold; border-radius: 999px; }
.mt-pill.ok { color: #145a2e; background: #e4f3e8; border: 1px solid #1a7a3c; }
.mt-pill.on { color: #fff; background: #b3261e; border: 1px solid #b3261e; }
.mt-fld { display: flex; flex-direction: column; gap: 4px; }
.mt-fld label { margin: 0; font-size: 14px; font-weight: bold; color: var(--text); }
.mt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-fld input[type="time"] { display: inline-block; width: auto; margin: 0; min-height: 42px; padding: 4px 10px; border: 1px solid #b5b2a8; font-variant-numeric: tabular-nums; }
.mt-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.mt-btn { display: inline-block; width: auto; margin: 0; min-height: 44px; padding: 0 18px; border-radius: 10px; }
.btn.mt-btn.red { background: #b3261e; }
.btn.mt-btn.ghost { color: var(--text); background: #fff; border: 1px solid #b5b2a8; }
.mt-ask { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: #fff3d6; border: 2px solid #d4a340; border-radius: 12px; }
.mt-ask h2 { margin: 0; font-size: 16px; }
.mt-ask p { margin: 0; }
.mt-ask ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 2px; }
.mt-log { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }

/* ==================== 学習記録（生徒の画面。2026-10-12 学習記録の組み込み 2便） ====================
   形と言葉の正は「見本_学習記録の中_2026-10-12.html」（第2版）と「見本_学習記録_生徒の画面_シンプル版_2026-10-06.html」。部品は src/kiroku_view.php、動きは public/kiroku.js。
   字・地の色・大きなボタン（qz-big）・帯は、学習アプリのもの。学習記録だけの色は、ここ：科目の色（kk-＜記号＞。--sc＝地、--st＝その上の字）・
   気づき・振り返りの紫（#7a4fb5）・先生の印の朱色（#d3381c）・科目なしの灰色のしま。帯とグラフは SVG（その場に書いた見た目〈style=〉は使えない決まり） */
.kk-en { --sc: #d5524e; --st: #fff; } .kk-ma { --sc: #3d7fcf; --st: #fff; } .kk-ja { --sc: #f0c22e; --st: #2b2a26; }
.kk-sc { --sc: #a8d045; --st: #2b2a26; } .kk-so { --sc: #2e8f57; --st: #fff; } .kk-ot { --sc: #8a8984; --st: #fff; } .kk-x { --sc: #3d8f8f; --st: #fff; }
.kk-none { --sc: repeating-linear-gradient(135deg, #c9c6bd 0 3px, #eceae4 3px 6px); --st: #2b2a26; }

/* 帯の時計の3つの状態（学習記録の外の画面。計っていない＝時計の印だけ〈.sn-clock〉／計っている＝科目の色の点と「0:42」／一時停止＝灰色の字） */
.sn-b.sn-clock.kr-on { gap: 6px; padding: 0 11px; border-color: #262421; font-variant-numeric: tabular-nums; }
.sn-cd { flex: 0 0 10px; width: 10px; height: 10px; background: var(--sc, #8a8984); border-radius: 50%; }
.sn-b.sn-clock.kr-paused { padding: 0 11px; color: #5f5d57; border-color: #b5b2a8; }
/* ホームの帯：時計が出ている生徒だけ、スマホの幅で、アプリの名前を「フジゼミ」に縮める（ボタンは縮めない。名前は折り返さない） */
.sn-has-clock .sn-brand { white-space: nowrap; }
@media (max-width: 599.98px) { .sn-has-clock .sn-brand-x { display: none; } }
@media (max-width: 379.98px) { .sn-has-clock .sn-hd { gap: 6px; } }   /* 幅360で「一時停止」が出たとき、1px 足りないので、すき間を 8 → 6 に（測った数は、学習記録の2便の報告の6） */
/* 学習記録の入口の、右上の「？」（勉強時間の数え方と、この画面の使い方） */
.sn-b.kr-q { min-width: 44px; min-height: 44px; justify-content: center; padding: 0 10px; font-size: 18px; color: var(--text); border-color: #b5b2a8; border-radius: 22px; }

.kr { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; }
.kr > *, .kr form > * { margin-top: 0; margin-bottom: 0; }
.kr form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.kr h2, .kr h3, .kr p, .kr ul { margin: 0; }
.kr ul { padding: 0; list-style: none; }
.kr a { text-decoration: none; color: inherit; }
.kr label { margin: 0; font-size: inherit; color: inherit; }
.kr [hidden] { display: none !important; }
.kr a:focus-visible, .kr button:focus-visible, .kr summary:focus-visible, .kr input:focus-visible + span { outline: 3px solid #262421; outline-offset: 2px; }
.kr-sec { font-size: 14px; font-weight: bold; color: #5f5d57; }
.kr-sec.lab { display: flex; align-items: baseline; gap: 8px; }
.kr-cnt { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.kr-time { text-align: center; font-size: 14px; color: #5f5d57; }
.kr-time b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.kr a.qz-big { color: #fff; }
.kr .qz-big.ink { color: var(--st, #fff); }
.kr .qz-big.ref { background: #7a4fb5; }
.kr .qz-big.refline { color: #7a4fb5; background: #fff; border: 2px solid #7a4fb5; }
.kr .qz-big.plain { color: var(--text); }
.kr-link { align-self: center; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: bold; color: #1f5fa8 !important; background: none; border: 0; text-decoration: underline !important; cursor: pointer; }

/* 入口：科目 → 大きな円。科目のボタンは、ラジオボタンを隠して、その隣の枠を見せる */
.kr-subjs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kr-sb, .kr-cp { position: relative; display: block; }
.kr-sb input, .kr-cp input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; }
.kr-sb span { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 56px; font-size: 17px; font-weight: bold; color: var(--text); background: #fff; border: 3px solid var(--sc); border-radius: 14px; cursor: pointer; }
.kr-sb input:checked + span { color: var(--st); background: var(--sc); }
.kr-subjs2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: -6px !important; }
.kr-sb.small span { min-height: 40px; padding: 0 16px; font-size: 14px; border-width: 2px; border-radius: 999px; }
.kr-circle { align-self: center; flex: 0 0 auto; width: 196px; height: 196px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; font-size: 26px; font-weight: bold; line-height: 1.35; color: var(--st); background: var(--sc); border: 0; border-radius: 50%; cursor: pointer; touch-action: manipulation; }
.kr-circle small { font-size: 15px; font-weight: bold; }
.kr-card { box-sizing: border-box; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 6px 14px; color: #fff !important; background: #7a4fb5; border: 2px solid #7a4fb5; border-radius: 16px; }
.kr-card .t { flex: 1 1 auto; min-width: 0; font-weight: bold; }
.kr-card .go { flex: 0 0 auto; min-height: 44px; display: grid; place-items: center; padding: 0 16px; font-weight: bold; color: #7a4fb5; background: #fff; border-radius: 12px; }
.kr-card.line { color: #7a4fb5 !important; background: #fff; }
.kr-card.line .go { padding: 0 4px; background: none; }
.kr-card.check { background: #262421; border-color: #262421; }
@media (max-width: 379.98px) { .kr-card { padding: 6px 12px; font-size: 15px; } }   /* 幅360：「先生から返事が届いています」が、1行に入るように */
.kr-card.check .go { color: #262421; }

/* 計っているあいだ。輪は、科目の色の丸の上に、白い丸を重ねて作る */
.kr-run { align-items: center; justify-content: center; gap: 20px; min-height: calc(100vh - 220px); min-height: calc(100dvh - 220px); padding: 8px 0; }
.kr-what { font-size: 20px; font-weight: bold; }
.kr-clock { position: relative; box-sizing: border-box; width: 250px; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--sc); border-radius: 50%; }
.kr-clock::before { content: ""; position: absolute; top: 16px; right: 16px; bottom: 16px; left: 16px; background: #fff; border-radius: 50%; }
.kr-clock .t, .kr-clock .p { position: relative; }
.kr-clock .t { font-size: 42px; font-weight: bold; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kr-clock .p { min-height: 24px; font-size: 15px; font-weight: bold; color: #5f5d57; }
.kr-clock.paused { background: #b5b2a8; }
.kr-clock.paused .t { color: #5f5d57; }
.kr-autonote { max-width: 100%; padding: 6px 14px; font-size: 15px; font-weight: bold; text-align: center; color: #7a5a12; background: #fff7e6; border: 1px solid #d4a340; border-radius: 12px; }
.kr-btns { display: flex; gap: 10px; width: 100%; }
.kr-btns form { flex: 1 1 0; min-width: 0; }

/* 終えたあと */
.kr-saved { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 12px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.kr-saved::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 8px; background: var(--sc); }
.kr-saved .s { font-size: 17px; font-weight: bold; }
.kr-saved .m { font-size: 40px; font-weight: bold; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kr-cp span, .kr a.kr-cp { box-sizing: border-box; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: bold; color: var(--text); background: #fff; border: 2px solid #b5b2a8; border-radius: 999px; cursor: pointer; }
.kr-cp input:checked + span, .kr a.kr-cp.on { color: #fff; background: #262421; border-color: #262421; }
.kr .kr-field { display: block; box-sizing: border-box; width: 100%; min-height: 50px; margin: 0; padding: 10px 12px; font: inherit; color: var(--text); background: #fff; border: 2px solid #b5b2a8; border-radius: 12px; }
.kr textarea.kr-field { min-height: 132px; resize: vertical; line-height: 1.7; }
.kr textarea.kr-field.kr-big { min-height: calc(5 * 1.7em + 24px); }   /* 気づき・振り返りの書く欄（5行ほど。2026-11-21＝追補20-1） */
.kr-two { display: flex; gap: 10px; } .kr-two > * { flex: 1 1 0; min-width: 0; }
.kr .kr-lab { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: bold; color: #5f5d57; }
/* 「OK」：スマホの幅では、下に固定（戻るボタンの場所。この画面には、戻るボタンを出さない） */
@media (max-width: 599.98px) {
  .kr-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #b5b2a8; }
  body.sn-typing .kr-foot { position: static; padding: 0; border: 0; background: none; }
}

/* 気づき・振り返り */
.kr-day { display: flex; align-items: baseline; gap: 8px; font-weight: bold; }
.kr-day .tot { margin-left: auto; font-variant-numeric: tabular-nums; }
.kr-rows { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kr-rw { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 14px; text-align: left; border-top: 1px solid var(--line); }
.kr-rw:first-child { border-top: 0; }
.kr-rw .dot { flex: 0 0 14px; width: 14px; height: 14px; background: var(--sc); border-radius: 50%; }
.kr-rw .n { flex: 1 1 auto; min-width: 0; font-weight: bold; font-size: 16px; }
.kr-rw .n small { display: block; font-size: 13px; font-weight: normal; color: #5f5d57; overflow-wrap: anywhere; }
.kr-rw.none .n { color: #5f5d57; }
.kr .tg { flex: 0 0 auto; padding: 1px 8px; font-size: 12px; font-weight: bold; color: #5f5d57; background: #ebe9e3; border-radius: 999px; white-space: nowrap; }
.kr-rw .mi { flex: 0 0 auto; font-weight: bold; font-variant-numeric: tabular-nums; }
.kr-rw .ar { flex: 0 0 auto; color: #b5b2a8; font-weight: bold; }
.kr-mine { padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.kr-mine .tg { display: inline-block; margin-right: 6px; white-space: normal; }
.kr-mine.none { color: #5f5d57; font-size: 15px; }
.kr-reply { display: flex; gap: 10px; padding: 12px 14px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 14px; }
.kr-stamp { flex: 0 0 40px; box-sizing: border-box; width: 40px; height: 40px; display: grid; place-items: center; font-size: 15px; font-weight: bold; line-height: 1; color: #d3381c; background: #fff; border: 3px solid #d3381c; border-radius: 50%; }
.kr-stamp.len3 { font-size: 11px; letter-spacing: -1px; } .kr-stamp.len4 { font-size: 9px; letter-spacing: -1px; }
.kr-reply .b { flex: 1 1 auto; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.kr-reply .who { display: block; font-size: 13px; font-weight: bold; white-space: normal; }
/* やりとりを時刻順に1本で（2026-11-11＝決定メモ〈学習アプリへの組み込み〉37）。1つ1つに日時を小さく */
.kr-flow { display: flex; flex-direction: column; gap: 14px; }
.kr-mine .kr-at { display: block; margin-top: 4px; text-align: right; font-size: 12px; font-weight: normal; color: #5f5d57; white-space: normal; }
.kr-reply .who .kr-at { margin-left: 6px; font-size: 12px; font-weight: normal; color: #5f5d57; }
.kr-seen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: #5f5d57; }
.kr-seen span:first-child { margin-right: 4px; }
.kr-sent { text-align: center; font-size: 15px; font-weight: bold; color: #7a4fb5; }
details.kr-more > summary { display: flex; list-style: none; width: fit-content; margin: 0 auto; }
details.kr-more > summary::-webkit-details-marker { display: none; }
details.kr-more[open] > form { margin-top: 6px; gap: 10px; }

/* 記録（日ごと・科目ごと・時間帯） */
.kr-seg { display: flex; gap: 6px; padding: 4px; background: #ebe9e3; border-radius: 12px; }
.kr a.kr-sg { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; font-weight: bold; color: #5f5d57; border-radius: 9px; }
.kr a.kr-sg.on { color: var(--text); background: #fff; }
.kr-wk { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: bold; }
.kr-wk .lb { min-width: 0; white-space: nowrap; }
.kr-wk .tots { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kr-wk .tot { font-size: 16px; }
.kr-wk .tots small { font-size: 12px; font-weight: 500; color: #5f5d57; }
.kr-wkb { flex: 0 0 auto; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; font-size: 20px; font-weight: bold; background: #fff; border: 1px solid #b5b2a8; border-radius: 999px; }
@media (max-width: 379.98px) { .kr-wk { font-size: 14px; gap: 4px; } .kr-wkb { min-width: 34px; min-height: 34px; } }
.kr-rw.drow .dd { flex: 0 0 34px; width: 34px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: bold; font-size: 15px; line-height: 1.2; border-radius: 8px; }
.kr-rw.drow .dd small { font-size: 11px; font-weight: 500; color: #5f5d57; }
.kr-rw.drow .dd.today { color: #fff; background: #262421; } .kr-rw.drow .dd.today small { color: #fff; }
.kr-rw.drow .dbar { flex: 1 1 auto; min-width: 0; display: flex; }
.kr-rw.drow .mi { flex: 0 0 5.4em; text-align: right; }
/* 日の目通しの印（2026-11-03）：小さな赤丸を押した順に。2つで下の段へ折り返す（3つめから2段） */
.kr-rw.drow .kr-dss { flex: 0 0 48px; width: 48px; display: flex; flex-wrap: wrap; align-content: center; gap: 4px; }
.kr-dss .kr-stamp { flex: 0 0 22px; width: 22px; height: 22px; font-size: 9px; border-width: 1.5px; letter-spacing: -1px; }
.kr-dss .kr-stamp.len3, .kr-dss .kr-stamp.len4 { font-size: 6px; }
svg.kr-band { display: block; width: 100%; height: 18px; border-radius: 5px; }
svg.kr-bar { display: block; width: 100%; height: 16px; border-radius: 999px; }
.kr svg .track { fill: #ebe9e3; }
.kr svg .kk-en, .kr svg .kk-ma, .kr svg .kk-ja, .kr svg .kk-sc, .kr svg .kk-so, .kr svg .kk-ot, .kr svg .kk-x { fill: var(--sc); }   /* 科目なし（kk-none）は、SVG の中の模様を、属性で指す */
.kr-span { display: flex; align-items: center; gap: 8px; }
.kr-span .tot { margin-left: auto; font-weight: bold; font-variant-numeric: tabular-nums; }
.kr-sd { border-top: 1px solid var(--line); } .kr-sd:first-child { border-top: 0; }
.kr-sd summary, .kr-sd.flat { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 14px; font-weight: bold; font-size: 16px; list-style: none; }
.kr-sd summary { cursor: pointer; }
.kr-sd summary::-webkit-details-marker { display: none; }
.kr-sd .n { flex: 0 0 4.2em; overflow-wrap: anywhere; } .kr-sd.flat .n { color: #5f5d57; }
.kr-sd .bw { flex: 1 1 auto; min-width: 0; }
.kr-sd .v { flex: 0 0 auto; min-width: 4.6em; text-align: right; font-variant-numeric: tabular-nums; }
.kr-sd .ar { flex: 0 0 1em; color: #b5b2a8; } .kr-sd[open] .ar { transform: rotate(180deg); }
.kr ul.kr-fl { display: flex; flex-direction: column; padding: 0 14px 10px 14px; }
.kr-fl li { display: flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 4px 0 4px 4.7em; font-size: 15px; border-top: 1px dashed var(--line); }
.kr-fl li span:first-child { flex: 1 1 auto; } .kr-fl li .v { font-weight: bold; }
/* 時間帯：上に曜日のボタン、下に SVG（左＝時刻、右＝7日分の列） */
.kr-tl { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 6px 10px; }
.kr-tl .heads, .kr-tl .body { display: grid; grid-template-columns: 26px 1fr; }
.kr-tl .dhs { display: grid; grid-template-columns: repeat(7, 1fr); }
.kr-tl .dh { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; margin: 0 1px; font-size: 14px; font-weight: bold; line-height: 1.2; border-radius: 8px; }
.kr-tl .dh small { display: block; font-size: 11px; font-weight: 500; color: #5f5d57; }
.kr-tl .dh.today { color: #fff; background: #262421; } .kr-tl .dh.today small { color: #fff; }
.kr-tl svg { display: block; width: 100%; }
.kr-tl svg.hrs text { font-size: 11px; fill: #5f5d57; text-anchor: end; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.kr-tl svg .cbg { fill: #f1f0ec; } .kr-tl svg .hl { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* 下から出る小さな画面（使い方・時間を足す・時間を直す・その日の記録）。帯（z-index 40・41）より上 */
.kr-sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(30, 28, 24, .45); }
.kr.kr-sheet-in { box-sizing: border-box; width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; gap: 10px; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); background: #fff; border-radius: 18px 18px 0 0; }
.kr-sheet-in > * { flex-shrink: 0; }
.kr-sheet-in form { gap: 10px; }
.kr-sh-h { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.kr-sh-h .sn-b { margin-left: auto; color: var(--text); }
.kr-sheet-in p { font-size: 15px; color: #5f5d57; }
.kr-sheet-in .st-rl { margin: 0 0 8px; }
.kr-sheet-in .st-fine { list-style: disc; padding-left: 1.2em; }
.kr-cut { height: 1px; background: var(--line); }
.kr-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kr-grid4 .kr-cp span { padding: 0; }
.kr-adj { display: flex; align-items: center; gap: 10px; }
.kr-adj .qz-big { flex: 1 1 0; min-height: 54px; padding: 8px 4px; font-size: 15px; white-space: nowrap; }
.kr-adj .now { flex: 0 0 auto; min-width: 4.4em; text-align: center; font-size: 26px; font-weight: bold; font-variant-numeric: tabular-nums; }
.kr-catbox { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
/* 時間を足す（2026-12-03 決定メモ424・425。見本 CiPmuKVmSj34r46mWDHezk）：日付3つ・時刻の箱2つと一覧・勉強した時間・項目・メモの1行 */
.kr-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kr-dy { position: relative; display: block; }
.kr-dy input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.kr-dy span { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 4px; font-size: 16px; font-weight: bold; line-height: 1.3; background: #fff; border: 2px solid #b5b2a8; border-radius: 12px; cursor: pointer; }
.kr-dy small { font-size: 13px; font-weight: 500; color: #5f5d57; }
.kr-dy input:checked + span { color: #fff; background: #262421; border-color: #262421; }
.kr-dy input:checked + span small { color: #fff; }
.kr-tpair { display: flex; align-items: center; gap: 8px; }
.kr-tsep { flex: 0 0 auto; font-size: 20px; font-weight: bold; }
.kr-tb { flex: 1 1 0; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; min-height: 76px; padding: 6px; font: inherit; color: #5f5d57; background: #fff; border: 2px dashed #8a8f96; border-radius: 14px; cursor: pointer; }
.kr-tb small { font-size: 13px; font-weight: bold; }
.kr-tb b { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kr-tb.set { color: var(--text); border: 2px solid #262421; }
.kr-tb.on { color: var(--text); background: #eef4fb; border: 3px solid #1f5fa8; }
.kr-tpick { border: 2px solid #1f5fa8; border-radius: 14px; background: #fff; }
.kr-tph { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 14px; font-size: 14px; font-weight: bold; color: #5f5d57; border-bottom: 1px solid var(--line); }
.kr-tl { height: 288px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.kr-to { flex: 0 0 auto; display: block; width: 100%; min-height: 44px; padding: 0 16px; font: inherit; font-size: 17px; text-align: left; font-variant-numeric: tabular-nums; color: var(--text); background: #fff; border: 0; border-bottom: 1px solid #eceae4; cursor: pointer; }
.kr-to.on { color: #fff; font-weight: bold; background: #1f5fa8; }
.kr-tsel select { width: 100%; }
.kr-dur { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 8px 12px; text-align: center; font-size: 15px; color: #5f5d57; background: #f1f0ec; border-radius: 14px; }
.kr-dur b { font-size: 30px; color: var(--text); font-variant-numeric: tabular-nums; }
.kr-dur-ng { font-size: 15px; font-weight: bold; color: #c0392b; }
details.kr-fm > summary.kr-fmh { display: flex; width: auto; margin: 0; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; font-size: 15px; font-weight: bold; background: #fff; border: 2px solid #b5b2a8; border-radius: 12px; cursor: pointer; }
details.kr-fm .kr-fmo { color: #1f5fa8; }
details.kr-fm .kr-fmo .o, details.kr-fm[open] .kr-fmo .c { display: none; }
details.kr-fm[open] .kr-fmo .o { display: inline; }
.kr #kr-add-save.off, .kr #kr-add-save:disabled { color: #fff; background: #b5b2a8; cursor: default; }
.kr-add-hint { min-height: 1.4em; text-align: center; font-size: 14px; color: #5f5d57; }
.kr-sheet-in .kr-subjs2 { margin-top: -2px !important; }
.kr ul.kr-how { display: flex; flex-direction: column; gap: 10px; padding: 2px 0 6px; }
.kr-how li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: bold; line-height: 1.4; }
.kr-how .n { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; color: #fff; background: #1f5fa8; border-radius: 50%; }
/* 講師の生徒の詳細：勉強時間の記録の、行ごとの印（アプリ／時計／手で足した） */
.tag.st-how { color: #5f5d57; background: #ebe9e3; }

/* ==================== 学習記録（講師の画面。2026-10-12 学習記録の組み込み 3便） ====================
   形と言葉の正は、学習記録の仕様書 追補9 と「見本_学習記録_講師の画面_2026-10-06.html」。部品は src/kiroku_staff_view.php。
   表・枠・アイコン・小さなボタンは、管理画面の部品（stt-tb・card・ib・small-btn）。ここは、学習記録だけの見た目。
   科目の色（kk-＜記号＞）・先生の印（kr-stamp）・帯（kr-band・kr-bar）・時間帯（kr-tl）は、生徒の画面と同じ部品。PCとタブレットが主（スマホの幅は、崩れない所まで） */
html:not(.js) .js-only { display: none; }
.kt-cnt { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; font-size: 12px; font-weight: bold; line-height: 20px; text-align: center; color: #fff; background: var(--accent); border-radius: 999px; font-variant-numeric: tabular-nums; }
.subnav a.on .kt-cnt { color: var(--text); background: #fff; }
.tag.kt-add { color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent); }
.tag.kt-late { color: #8a5a00; background: #fff3d6; border: 1px solid #d4a340; }
.tag.kt-plain { color: var(--text); background: #ebe9e3; border: 1px solid #b5b2a8; }
.kt-tb .tag { margin-left: 6px; white-space: nowrap; }
.kt-tb .c-tags .tag:first-child { margin-left: 0; }
.kt-tb td { vertical-align: middle; }
.kt-tb .nm { font-weight: bold; }
.kt-tb tbody tr:nth-child(even) { background: #faf9f6; }
.kt-tb tr.kt-off .nm { font-weight: normal; color: var(--sub); }
.kt-tb .ops .inline { display: inline-block; margin: 2px 0 2px 4px; }
.kt-tb .ops .small-btn { min-height: 34px; margin-left: 4px; }
a.small-btn.kt-go { min-height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; }
.kt-note { margin: 8px 0 0; }
.kt-narrow { max-width: 420px; }
.kt-hk { display: inline-flex; gap: 4px; vertical-align: middle; }
.kt-hk .kr-stamp { flex: 0 0 30px; width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
.kt-hk .kr-stamp.len3 { font-size: 9px; } .kt-hk .kr-stamp.len4 { font-size: 7px; }
.kt-seg { display: inline-flex; gap: 4px; padding: 4px; background: #ebe9e3; border-radius: 10px; }
a.kt-sg { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: bold; color: #5f5d57; text-decoration: none; border-radius: 7px; }
a.kt-sg.on { color: var(--text); background: #fff; }
a.small-btn.kt-toggle { display: inline-flex; align-items: center; border-color: #b5b2a8; color: var(--text); border-radius: 999px; }
a.small-btn.kt-toggle.on { color: #fff; background: var(--accent); border-color: var(--accent); font-weight: bold; }
.kt-stats { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 10px; font-size: 14px; color: var(--sub); }
.kt-stats b { margin-left: 6px; font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.kt-tools form.kt-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.kt-tools input[type="search"] { display: inline-block; width: 11em; min-height: 38px; margin: 0; padding: 0 8px; font-size: 15px; border: 1px solid #b5b2a8; border-radius: 8px; }
.kt-aud { position: relative; }
.kt-aud > summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; border-color: #b5b2a8; color: var(--text); }
.kt-aud > summary::-webkit-details-marker { display: none; }
.kt-aud[open] { flex: 1 1 100%; order: 9; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.kt-aud[open] > summary { margin-bottom: 8px; }
.kt-aud .aud { margin: 0; }
.kt-aud .aud-all, .kt-aud .aud-all + .dim { display: none; }   /* 一覧をしぼる所では、「全員」は出さない（何も選ばなければ、全員） */

.kt { display: flex; flex-direction: column; gap: 12px; }
.kt h2, .kt p { margin: 0; }
.kt svg .track { fill: #ebe9e3; }
.kt svg .kk-en, .kt svg .kk-ma, .kt svg .kk-ja, .kt svg .kk-sc, .kt svg .kk-so, .kt svg .kk-ot, .kt svg .kk-x { fill: var(--sc); }
.kt .kr-tl a.dh { color: var(--text); text-decoration: none; }
.kt .kr-tl a.dh.today { color: #fff; }
.kt-dot { flex: 0 0 12px; display: inline-block; width: 12px; height: 12px; background: var(--sc); border-radius: 50%; }
.kt-tb .kt-dot { margin-right: 8px; vertical-align: middle; }
.kt-dist { max-width: 1060px; margin: 0 0 10px; }
.kt-dist svg.kr-band { height: 28px; border-radius: 8px; }
.kt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.kt-head .nm { font-size: 20px; font-weight: bold; }
.kt-head .yr { font-size: 14px; color: var(--sub); }
.kt-head .sp { flex: 1 1 auto; }
.kt-head .small-btn { display: inline-flex; align-items: center; min-height: 36px; border-color: #b5b2a8; color: var(--text); border-radius: 999px; }
.kt-nav { display: inline-flex; align-items: center; gap: 6px; }
.kt-nav b { min-width: 6.6em; text-align: center; font-variant-numeric: tabular-nums; }
.kt-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-weight: bold; }
.kt-next a.small-btn { min-height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; }
.kt-cols { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: flex-start; }
.kt-col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.kt-col.wide { flex-grow: 1.25; }
.kt-flow { display: flex; flex-direction: column; gap: 10px; }
.kt-at { font-size: 12px; color: var(--sub); white-space: nowrap; }
.kt-sech { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: bold; color: var(--sub); }
.kt-sech.ref { color: #7a4fb5; }
.kt-sech .r { margin-left: auto; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.kt-box { padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kt-box.none { color: var(--sub); }
.kt-box .tag { margin: 0 0 4px; }
.kt-mine { font-size: 16px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.kt-box .meta { margin-top: 6px; font-size: 13px; color: var(--sub); }
.kt-state { display: flex; gap: 6px; }
.kt-rp { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kt-rp .b { flex: 1 1 auto; min-width: 0; }
.kt-rp .who { font-size: 13px; font-weight: bold; }
.kt-rp .who span { margin-left: 6px; font-weight: normal; color: var(--sub); }
.kt-rp p { white-space: pre-wrap; overflow-wrap: anywhere; }
.kt-rp .ops { flex: 0 0 auto; display: flex; }
.kt-rp.s { padding: 6px 10px; background: #f1f0ec; border: 0; }
.kt-rp.s .kr-stamp { flex: 0 0 30px; width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
.kt-compose { display: flex; flex-direction: column; gap: 8px; }
.kt-compose form.kt-form { margin: 0; }
.kt-compose .small .kr-stamp { display: inline-grid; vertical-align: middle; margin: 0 4px; width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
/* 返事のスタンプと、文の中の絵文字（2026-11-10＝決定メモ〈学習アプリへの組み込み〉28・29。前の「軽い返し」のボタン kt-lr は外した）。
   どちらも「印刷 ▾」と同じ、押すと下に開く形（details）。絵文字は端末のふつうの絵文字で出る */
.kt-cmp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.kt-cmp-h .kt-sech { margin: 0; }
.kt-rsm, .kt-emo { position: relative; }
.kt-rsm > summary, .kt-emo > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.kt-rsm > summary::-webkit-details-marker, .kt-emo > summary::-webkit-details-marker { display: none; }
.kt-emo > summary { min-width: 44px; font-size: 20px; line-height: 1; }
.kt-emo[open] > summary { background: var(--accent-bg); }
.kt-rs-drop, .kt-emo-drop { position: absolute; z-index: 20; margin-top: 6px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.kt-rs-drop { right: 0; width: min(400px, calc(100vw - 32px)); }
.kt-rs-drop .small { margin: 0 0 6px; }
.kt-rs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kt-rs-grid form { margin: 0; }
.kt-rs-b { display: grid; justify-items: center; align-content: start; gap: 2px; width: 100%; min-height: 64px; padding: 6px 2px; font: inherit; font-size: 12px; line-height: 1.3; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.kt-rs-b b { font-size: 24px; font-weight: normal; line-height: 1.2; }
.kt-rs-b:hover { background: var(--accent-bg); border-color: var(--accent); }
.kt-rs-b.on { background: var(--accent-bg); border: 2px solid var(--accent); font-weight: bold; }
.kt-rp .kt-rs-t { font-size: 17px; font-weight: bold; }
.kt-rp form.ops { margin: 0; }
.kt-emo-drop { left: 0; width: min(360px, calc(100vw - 32px)); }
.kt-emo-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.kt-emo-tab { min-height: 32px; padding: 0 12px; font: inherit; font-size: 13px; color: var(--sub); background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.kt-emo-tab[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.kt-emo-g { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.kt-emo-g[hidden] { display: none; }
.kt-emo-b { min-height: 40px; padding: 0; font-size: 22px; line-height: 1; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.kt-emo-b:hover { background: var(--accent-bg); }
.kt .tg-ask-acts .kt-emo { margin-right: auto; }
.kt textarea, .kt-panel textarea { display: block; box-sizing: border-box; width: 100%; min-height: 110px; margin: 0; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; resize: vertical; }
.kt .btn.kt-send { width: auto; min-height: 44px; margin: 0; padding: 0 22px; }
.kt-care { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px; background: #fff3d6; border: 1px solid #d4a340; border-radius: 10px; }
.kt-care .k { font-weight: bold; color: #8a5a00; }
.kt-care .m { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.kt-care .m small { display: block; font-size: 12px; color: var(--sub); }
.kt-care form { margin: 0; }
.kt-recs { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kt-rec { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-top: 1px solid var(--line); }
.kt-rec:first-child { border-top: 0; }
.kt-rec .n { flex: 1 1 auto; min-width: 0; }
.kt-rec .n .dim { color: var(--sub); font-size: 13px; }
.kt-rec .n small { display: block; font-size: 13px; color: var(--sub); overflow-wrap: anywhere; }
.kt-rec .n small.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.kt-rec .n .tag { white-space: normal; }
.kt-rec .dur { flex: 0 0 auto; min-width: 4.8em; text-align: right; font-weight: bold; font-variant-numeric: tabular-nums; }
.kt-rec .gap { flex: 0 0 38px; }
.kt-rec.del .n b, .kt-rec.del .dur { color: var(--sub); text-decoration: line-through; }
.kt-days { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kt-dayb { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.kt-dayb:first-child { border-top: 0; }
.kt-dayb.future { color: #b5b2a8; }
.kt-dayb .dh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kt-dayb .dt { flex: 0 0 6.2em; font-weight: bold; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kt-dayb .bandw { flex: 1 1 120px; min-width: 0; }
.kt-dayb .dur { flex: 0 0 6.2em; text-align: right; font-weight: bold; font-variant-numeric: tabular-nums; }
.kt-dayb .dh .small-btn { min-height: 34px; display: inline-flex; align-items: center; border-color: #b5b2a8; color: var(--text); border-radius: 999px; }
.kt-dayb .body { display: flex; flex-direction: column; gap: 6px; padding-left: calc(6.2em + 10px); }
.kt-dayb .txt { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.kt-dayb .none { font-size: 14px; color: var(--sub); }
/* 日の目通しの印（2026-11-03）：日ごとの欄のいちばん下の行。印は押した順に横に並べ、入らなければ下の段へ（スマホの幅は2つで折り返す） */
.kt-dayb .kt-dst { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 34px; padding-left: calc(6.2em + 10px); }
.kt-dst .t { flex: 0 0 auto; font-size: 13px; font-weight: bold; color: var(--sub); }
.kt-dst .ss { display: flex; flex-wrap: wrap; gap: 4px; max-width: 132px; }
.kt-dst .kr-stamp { flex: 0 0 30px; width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
.kt-dst .kr-stamp.len3 { font-size: 9px; } .kt-dst .kr-stamp.len4 { font-size: 7px; }
.kt-dst form { margin: 0; }
.kt-dst .kt-push { min-height: 34px; padding: 0 16px; font: inherit; font-weight: bold; color: #d3381c; background: #fff; border: 2px dashed #d3381c; border-radius: 999px; cursor: pointer; }
.kt-dst .kt-undo { min-height: 34px; padding: 0 4px; font: inherit; font-size: 14px; color: var(--sub); text-decoration: underline; background: none; border: 0; cursor: pointer; }
.kt-dst .kt-push:focus-visible, .kt-dst .kt-undo:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.kt-srow { display: flex; align-items: center; gap: 10px; padding: 9px 14px 2px; border-top: 1px solid var(--line); }
.kt-srow:first-child { border-top: 0; }
.kt-srow .n { flex: 0 0 4.6em; font-weight: bold; }
.kt-srow .bw { flex: 1 1 auto; min-width: 0; }
.kt-srow .v { flex: 0 0 6.6em; text-align: right; font-weight: bold; font-variant-numeric: tabular-nums; }
.kt-sitems { padding: 0 14px 9px calc(4.6em + 46px); font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.kt-srow:last-child { padding-bottom: 9px; }
.kt-seenbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kt-seenbox .hs { flex: 1 1 220px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kt-seenbox .hs .t { font-size: 14px; font-weight: bold; color: var(--sub); }
.kt-seenbox .done { font-weight: bold; color: #d3381c; }
.kt-seenbox form { margin: 0; }
.kt .btn.kt-shu { width: auto; min-height: 48px; margin: 0; padding: 0 22px; background: #d3381c; }
.kt-panel { border-top: 6px solid var(--accent); max-width: 560px; margin: 0; }
.kt-panel.nt-ask { border-top-color: #8a5a00; }
.kt-panel .kt-who { padding: 8px 12px; font-weight: bold; background: #f1f0ec; border-radius: 8px; }
.kt-panel .kt-quote { padding: 8px 12px; white-space: pre-wrap; overflow-wrap: anywhere; border-left: 4px solid var(--line); }
.kt-panel form.kt-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.kt-panel form.kt-form > * { margin: 0; }
.kt-panel label { font-weight: bold; color: var(--text); }
.kt-step { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.kt-step input { flex: 1 1 auto; min-width: 0; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.kt-step .small-btn { flex: 0 0 auto; min-height: 44px; border-color: #b5b2a8; color: var(--text); white-space: nowrap; }
.kt-words { max-width: 640px; }
.kt-words .tscroll, .kt-master .tscroll { margin: 10px 0; }
.kt-master { max-width: 760px; }
.kt-master h2 .tag { margin-left: 8px; }
a.small-btn.kt-entry { margin-left: auto; }
@media (max-width: 599.98px) {
  .kt-dayb .body, .kt-sitems, .kt-dayb .kt-dst { padding-left: 0; }
  .kt-dst .ss { max-width: 64px; }
  .kt-sitems { padding: 0 14px 9px; }
  .kt-head .nm { font-size: 18px; }
  .kt-nav b { min-width: 0; }
}

/* 教科書ガイドの科目のページ（?p=gd。教科書ガイドの入口 便2・2026-10-14。見本_教科書ガイド_科目のページ_2026-10-14.html）。色は、前回の続きと棒＝青、全部開いた章＝緑 */
.sj.subj-tg, .subj-tg { --sc: #1f5fa8; }
.tg-list { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tg-row { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 14px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.tg-row:first-child { border-top: 0; }
.tg-row:focus-visible { outline: 3px solid #262421; outline-offset: -3px; }
.tg-ln { flex: 1 1 auto; min-width: 0; font-weight: bold; line-height: 1.4; overflow-wrap: anywhere; }
.tg-row.mat .tg-ln { font-weight: 500; }
/* デジタルガイドの一覧（2026-11-29）：本の名前の下に小さな字「前回：…」・上の1行の説明 */
.tg-ls { display: block; font-size: 12px; font-weight: normal; color: var(--sub); margin-top: 1px; }
.tg-lead { margin: 0 0 4px; font-size: 13px; line-height: 1.7; color: var(--sub); }
/* 教材の設定の「1人ずつ」の札（2026-11-29。本ごとの single） */
.sh-one { display: inline-block; margin-left: 6px; padding: 0 8px; font-size: 11px; font-weight: bold; line-height: 1.6; color: #8a4b00; border: 1px solid #d9b27a; border-radius: 999px; vertical-align: 1px; }
.tg-lc { flex: 0 0 auto; font-size: 13px; font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--sub); }
.tg-ar { flex: 0 0 auto; font-weight: bold; color: #1f5fa8; }
.tg-row.now { background: #eaf1fa; }
.tg-row.now .tg-lc { color: #1f5fa8; }
.tg-row.done .tg-lc { color: #1a7a3c; }
/* 見せていない科目のページ（src/tguide.php の tg_closed） */
.tg-closed { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 18px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.tg-closed p { margin: 0; }
.tg-closed-1 { font-size: 19px; font-weight: bold; }
.tg-closed-2 { font-size: 16px; }
.tg-closed-bk { box-sizing: border-box; margin-top: 6px; min-width: 160px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 17px; font-weight: bold; text-decoration: none; color: #fff; background: #1f5fa8; border-radius: 12px; }
.tg-closed-bk:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
/* 先生の画面のカード（進み具合・教材） */
.tg-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tg-tbl th, .tg-tbl td { padding: 8px 6px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.tg-tbl th { font-size: 12px; color: var(--sub); border-top: 0; }
.tg-tblw { overflow-x: auto; }
.tg-krow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tg-krow:first-of-type { border-top: 0; }
.tg-krow .tg-kn { flex: 1 1 auto; min-width: 0; font-weight: bold; }
.tg-krow .tg-kn small { display: block; font-weight: normal; color: var(--sub); }
.tg-krow a { flex: 0 0 auto; white-space: nowrap; }


/* ---------- チャット（2026-10-15 チャット 1便。見本_チャット_2026-10-15.html。決まりは src/chat.php） ---------- */
/* 先生の画面：しぼり込み・一覧・やりとり */
.ch-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ch-f { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: bold; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 999px; text-decoration: none; }
.ch-f.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.ch-fn { display: inline-block; min-width: 20px; padding: 0 6px; font-size: 12px; line-height: 20px; text-align: center; color: #fff; background: var(--accent); border-radius: 999px; font-variant-numeric: tabular-nums; }
.ch-f.on .ch-fn { color: var(--accent); background: #fff; }
.ch-two { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.ch-list { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ch-main { flex: 2 1 380px; min-width: 0; }
.ch-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; color: var(--text); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ch-row.on { padding: 9px 11px; background: var(--accent-bg); border: 2px solid var(--accent); }
.ch-row.pinned { border-left: 6px solid #262421; }
.ch-r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ch-nm { font-weight: bold; }
.ch-nm small { font-size: 12px; font-weight: normal; color: var(--sub); }
.ch-at { margin-left: auto; font-size: 12px; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-tx { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tag.ch-pin, .tag.ch-wait, .tag.ch-done { font-weight: bold; white-space: nowrap; }
.tag.ch-pin { color: #fff; background: #262421; border: 1px solid #262421; }
.tag.ch-wait { color: #8a5a00; background: #fff3d6; border: 1px solid #d4a340; }
.tag.ch-wait.late { color: #b3261e; background: #fbe9e7; border-color: #b3261e; }
.tag.ch-done { color: #145a2e; background: #e4f3e8; border: 1px solid #1a7a3c; }
.ch-empty { margin: 0; padding: 14px; font-size: 14px; color: var(--sub); background: #fff; border: 1px dashed #b5b2a8; border-radius: 10px; }
.ch-pgs { margin-top: 4px; }
.ch-chat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ch-cn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; font-size: 15px; }
.ch-cn .tag { align-self: center; }
.ch-sp { flex: 1 1 auto; }
.ch-head form.inline { display: inline; margin: 0; }
.stt-mini.ch-mini { min-height: 34px; padding: 0 12px; font-size: 13px; cursor: pointer; font-family: inherit; }
.ch-back { display: none; align-items: center; min-height: 34px; padding: 0 10px; font-size: 14px; font-weight: bold; color: var(--accent); background: #fff; border: 1px solid var(--accent); border-radius: 999px; text-decoration: none; }
.ch-state { margin: 0; padding: 4px 12px; font-size: 12px; line-height: 1.6; color: var(--sub); background: #f1f0ec; overflow-wrap: anywhere; }
.ch-st.late { font-weight: bold; color: #b3261e; }
.ch-body { display: flex; flex-direction: column-reverse; min-height: 240px; max-height: 460px; overflow-y: auto; padding: 14px 12px; background: var(--bg); }   /* column-reverse＝開いたとき、いちばん下（新しいメッセージ）が見える */
.ch-more { margin: 0; text-align: center; }
/* 吹き出し（先生の画面・生徒の画面で共通） */
.ch-thread { display: flex; flex-direction: column; gap: 8px; }
.ch-mb { box-sizing: border-box; max-width: 86%; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; font-size: 15px; line-height: 1.6; border-radius: 12px; overflow-wrap: anywhere; }
.ch-mb small { font-size: 12px; font-weight: bold; color: var(--sub); font-variant-numeric: tabular-nums; }
.ch-mb.s { align-self: flex-start; background: #fff; border: 1px solid #b5b2a8; }
.ch-mb.t { align-self: flex-end; background: var(--accent-bg); border: 1px solid #cddcef; }
.ch-b a { color: var(--accent); }
.ch-seen { align-self: flex-end; margin-top: -4px; font-size: 12px; font-weight: bold; color: #1a7a3c; }
.ch-seen.no { font-weight: normal; color: var(--sub); }
.ch-sys { align-self: center; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 4px 14px; font-size: 12px; line-height: 1.5; text-align: center; color: var(--sub); background: #ebe9e3; border-radius: 12px; }
/* いちばん下の書く所（1行：書く欄と、丸い送るボタン。クリップは2便で足す） */
.ch-cmp { display: flex; align-items: flex-end; gap: 6px; margin: 0; padding: 8px 10px; background: #fff; border-top: 1px solid #b5b2a8; }
.ch-cmp textarea { display: block; flex: 1 1 auto; box-sizing: border-box; width: auto; min-width: 0; min-height: 44px; max-height: 120px; margin: 0; padding: 10px 14px; font: inherit; font-size: 16px; line-height: 1.4; color: var(--text); background: #f1f0ec; border: 1px solid var(--line); border-radius: 22px; resize: none; }
.ch-send { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #fff; background: var(--accent); border: 0; border-radius: 50%; cursor: pointer; touch-action: manipulation; }
.ch-send:disabled { opacity: .5; }
.ch-cmp textarea:focus-visible, .ch-send:focus-visible, .ch-row:focus-visible, .ch-f:focus-visible { outline: 3px solid #262421; outline-offset: 1px; }
/* 一覧とやりとりが横に並ばない幅（タブレットの縦・スマホ）：生徒を選んだら、一覧を隠して、やりとりだけ（上に「‹ 一覧へ」）。選ぶ前は、一覧だけ */
@media (max-width: 1023px) {
  .ch-two.has-sel .ch-list, .ch-two:not(.has-sel) .ch-main { display: none; }
  .ch-back { display: inline-flex; }
  .ch-body { max-height: 60vh; }
}
/* 生徒の画面：お知らせ・チャット */
.nc-seg { display: flex; gap: 8px; }
.nc-seg a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 16px; font-weight: bold; color: var(--accent); background: #fff; border: 2px solid var(--accent); border-radius: 12px; text-decoration: none; }
.nc-seg a.on { color: #fff; background: var(--accent); }
.nc-seg a:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.ch-stu .ch-mb { font-size: 16px; }
.ch-stu .ch-cmp { border: 1px solid #b5b2a8; border-radius: 14px; }
.ch-stu .ch-more { margin: 0; }
.inbox-tx small.ch-in-head { display: block; margin: 2px 0 0; font-size: 13px; font-weight: normal; white-space: normal; overflow-wrap: anywhere; }

/* ---------- 歴史総合の演習（2026-10-18 歴史総合の便。src/hs.php・src/pages/hs.php・hstest.php・hstoday.php・hsdrill.php） ---------- */
.subj-hs, .sj.subj-hs, .bx-list li.subj-hs, .today-list li.subj-hs { --sc: #1f6b40; --sc-bg: #dcefe3; --sc-fg: #17502f; }
.bx1-i.subj-hs { color: #17502f; }
.hs-form { display: inline-block; padding: 1px 8px; font-size: 12px; font-weight: bold; color: #17502f; background: #dcefe3; border-radius: 10px; }
.qz-ja.hs-q { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.hs-ch .choice span { overflow-wrap: anywhere; }
.hs-ch .ck.hs-ck { min-height: 64px; }
.qz-okline { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; font-weight: bold; color: #17502f; background: #e4f3e8; border-radius: 12px; }
.qz-okline .qz-o { font-size: 30px; line-height: 1; }
.qz-okline small.qz-ngs { display: block; margin-top: 2px; font-size: 14px; font-weight: normal; }
.hs-fb .qz-exp { white-space: normal; }
.hs-fb .qz-exp p { margin: 6px 0 10px; line-height: 1.7; }
a.hs-guide { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: bold; color: #17502f; background: #dcefe3; border: 1px solid #1f6b40; border-radius: 22px; text-decoration: none; }
a.hs-guide:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.qz-body a.hs-guide { margin-top: 6px; min-height: 38px; font-size: 14px; }
.hs-uh { margin: 6px 0 -4px; font-size: 15px; font-weight: bold; color: var(--text); overflow-wrap: anywhere; }
.hs-list .tg-row.done .tg-lc { color: #1a7a3c; }
.hs-list .tg-row.now { background: #eaf1fa; }
.hs-list .tg-row.hs-go .tg-lc { color: #fff; background: #1f6b40; padding: 2px 10px; border-radius: 12px; }
.hs-list .tg-row.hs-wait .tg-lc, .hs-list .tg-row.hs-lock .tg-lc { font-weight: normal; white-space: normal; text-align: right; max-width: 55%; }
.hs-list div.tg-row { color: var(--sub); }
.hs-mixl .tg-ln { font-weight: bold; }
.hs-gate { margin: 4px 0; }
.hs-sum th[scope="row"] { text-align: left; font-weight: normal; }
.hs-open .row-main { flex-wrap: wrap; }
.hs-need { color: #b3261e; font-weight: bold; }
.hs-sum th[scope="row"] { min-width: 9.5em; }
.hs-sum td { white-space: nowrap; }

/* ---------- 歴史総合の流れの作り直し（2026-10-20。見本 第3版。src/hs.php の hs_gd_*・hs_item_html・hs_howto_html） ---------- */
.hs-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: normal; line-height: 1.5; color: var(--sub); overflow-wrap: anywhere; }
.hs-list .tg-ln { min-width: 0; flex: 1 1 auto; }
.hs-list .tg-lc { flex: 0 0 auto; }
.hs-list .tg-row.hs-boxwait .tg-lc { color: #7a5a12; background: #fff7e6; padding: 2px 10px; border-radius: 12px; font-weight: bold; }
.hs-why { margin: 0 12px 10px; padding: 6px 10px; font-size: 13px; line-height: 1.6; color: #7a5a12; background: #fff7e6; border-radius: 8px; overflow-wrap: anywhere; }
.hs-noside { margin: 0; }
.hs-notest { margin: 0 0 -4px; font-size: 13px; line-height: 1.5; color: var(--sub); overflow-wrap: anywhere; }   /* テストを置かない単元の1行（hs_no_test_line。2026-10-23） */
a.hs-prac { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; font-size: 13px; font-weight: bold; color: #1f5fa8; white-space: nowrap; }
a.hs-help { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; font-weight: bold; color: #1f5fa8; text-decoration: none; background: #fff; border: 2px solid #1f5fa8; border-radius: 12px; }
a.hs-help:focus-visible, a.hs-prac:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.hs-revl .tg-row.hs-rev .tg-ln { font-weight: bold; }
/* 結果の一覧（見本③④） */
.hs-endnote { margin: 4px 0 0; }
.hs-rl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hs-it { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.hs-it-top { display: flex; gap: 8px; align-items: flex-start; }
.hs-mk { flex: 0 0 22px; font-size: 20px; font-weight: bold; line-height: 1.3; }
.hs-mk.o { color: #1a7a3c; }
.hs-mk.x { color: #b3261e; }
.hs-it-q { min-width: 0; flex: 1 1 auto; }
.hs-it-p { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.hs-it-a { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--sub); overflow-wrap: anywhere; }
.hs-it-a b { color: var(--text); }
.hs-it-exp summary { cursor: pointer; font-size: 13px; font-weight: bold; color: #17502f; min-height: 32px; display: flex; align-items: center; }
.hs-it-exp p { margin: 4px 0 8px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
/* 解き終わったあとの一覧の、問題ごとのボタン（特訓BOX・解き直す）と「完了」（2026-10-20 歴史総合／2026-10-21 便2 で英語の4教材と共通。部品は src/quiz.php の qz_act_html） */
.qz-act { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.qz-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-tb { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: bold; color: #7a5a12; background: #fff; border: 1.5px solid #d4a340; border-radius: 20px; cursor: pointer; touch-action: manipulation; }
.qz-tb[aria-pressed="true"] { background: #fff7e6; }
span.qz-tb.fixed { cursor: default; border-style: dashed; }
.qz-redo summary { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-size: 13px; font-weight: bold; color: #1f5fa8; border: 1.5px solid #1f5fa8; border-radius: 20px; cursor: pointer; list-style: none; }
.qz-redo summary::-webkit-details-marker { display: none; }
.qz-redo-ch { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.qz-redo-ch button { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 14px; text-align: left; color: var(--text); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.qz-redo-ch button b { color: #1f5fa8; }
.qz-redo-res { margin: 8px 0 0; font-size: 13px; font-weight: bold; }
.qz-redo-res.o { color: #1a7a3c; }
.qz-redo-res.x { color: #b3261e; }
.qz-tb:focus-visible, .qz-redo summary:focus-visible, .qz-redo-ch button:focus-visible, .hs-it-exp summary:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.qz-done { margin-top: 14px; }
/* 英語の一覧（qz_list_html）：ボタンは、行の右ではなく、行の下に置く（行の右の空きは要らない） */
.qz-rv.qa summary { padding-right: 10px; }
.qz-rv.qa > .qz-act { padding: 0 12px 12px 44px; }
/* 歴史総合の進め方（見本⑦）。英語の教材と全体の「？」（hw-*。2026-10-25 ヘルプの充実＝見本_ヘルプの充実_2026-10-25.html）も同じ形 */
.hs-steps, .hw-steps { list-style: none; margin: 0; padding: 0; }
.hs-steps li, .hw-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding-bottom: 14px; }
.hs-steps li:not(:last-child)::before, .hw-steps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.hs-num, .hw-num { display: grid; place-items: center; width: 34px; height: 34px; font-size: 16px; font-weight: bold; color: #fff; background: #1f6b40; border-radius: 50%; }
.hs-num.t, .hw-num.t { background: #1f5fa8; }
.hs-steps b, .hw-steps b { display: block; font-size: 16px; line-height: 1.4; }
.hs-steps small, .hw-steps small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--sub); }
.hs-mt { margin: 0 0 12px; padding: 9px 12px; font-size: 14px; font-weight: bold; color: #1f5fa8; background: #eaf1fa; border-radius: 12px; }
.hs-boxrule, .hw-boxrule { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #fff7e6; border: 2px solid #d4a340; border-radius: 14px; }
.hs-boxrule .in, .hw-boxrule .in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; font-weight: bold; }
.hs-boxrule .in.end, .hw-boxrule .in.end { font-weight: normal; }
.hs-boxrule .pill, .hw-boxrule .pill { padding: 3px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.hs-boxrule .pill.x, .hw-boxrule .pill.x { color: #b3261e; border-color: #b3261e; }
.hs-boxrule .pill.q { color: #7a5a12; border-color: #d4a340; }
.hs-boxrule .arrow, .hw-boxrule .arrow { color: var(--sub); font-weight: normal; }
.hs-boxrule .days, .hw-boxrule .days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hs-boxrule .days div, .hw-boxrule .days div { padding: 6px 2px; font-size: 13px; font-weight: bold; text-align: center; background: #fff; border-radius: 10px; }
.hs-boxrule .days span, .hw-boxrule .days span { display: block; font-size: 17px; line-height: 1.2; color: #1a7a3c; }
.hs-tip, .hw-tip { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; padding: 10px 12px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.hs-tip .hs-tipck { flex: 0 0 22px; display: grid; place-items: center; width: 22px; height: 22px; font-weight: bold; color: #7a5a12; border: 2px solid #7a5a12; border-radius: 5px; }
.hw { margin-bottom: 14px; }   /* 下の「閉じる」とのすき間 */
.hw-boxrule .pill.p { color: #1f5fa8; border-color: #1f5fa8; }
.hw-boxrule .pill.s { color: #7a5a12; border-color: #d4a340; }
.hw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 14px; padding: 4px; background: var(--bg); border-radius: 12px; }
.hw-tabs[hidden] { display: none; }
.hw-tabs button { font: inherit; font-size: 15px; font-weight: bold; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--sub); cursor: pointer; }
.hw-tabs button[aria-selected="true"] { background: #fff; color: #1f5fa8; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.hw-tabs button:focus-visible, .hw-all:focus-visible, .hw-faq summary:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.hw-pane[hidden] { display: none; }
.hw-pane + .hw-pane { margin-top: 16px; }
.hw-on .hw-pane + .hw-pane { margin-top: 0; }
.hw-faqh { margin: 0 0 8px; font-size: 16px; }
.hw-on .hw-faqh { display: none; }
.hw-map { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 10px 12px; font-size: 13.5px; background: #eaf1fa; border-radius: 12px; }
.hw-map b { color: #1f5fa8; }
.hw-g { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; font-size: 12.5px; font-weight: bold; color: #1f5fa8; background: #fff; border: 1.5px solid #1f5fa8; border-radius: 7px; }
.hw-g.now { color: #fff; background: #1f5fa8; }
.hw-map small { flex-basis: 100%; font-size: 12.5px; line-height: 1.4; color: var(--sub); }
.hw-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.hw-fork span { padding: 4px 8px; font-size: 12.5px; line-height: 1.4; background: var(--bg); border-radius: 8px; }
.hw-fork .y { color: #1a7a3c; font-weight: bold; }
.hw-fork .n { color: #7a5a12; font-weight: bold; }
.hw-loop { margin: -4px 0 12px 44px; font-size: 12.5px; font-weight: bold; color: #1f6b40; }
.hw-band { margin: 0 0 12px; padding: 9px 12px; font-size: 14px; font-weight: bold; line-height: 1.6; color: #1f5fa8; background: #eaf1fa; border-radius: 12px; }
.hw-band span { font-weight: normal; color: var(--sub); }
.hw-band-sp { margin-top: 12px; }
.hw-tip i { flex: 0 0 auto; padding: 1px 7px; font-style: normal; font-size: 12.5px; font-weight: bold; color: var(--sub); background: var(--bg); border: 1.5px solid var(--line); border-radius: 7px; }
.hw-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 4px; }
.hw-bar div { padding: 8px 6px; font-size: 12.5px; line-height: 1.4; text-align: center; background: var(--bg); border-radius: 10px; }
.hw-bar b { display: block; font-size: 14px; color: var(--text); }
.hw-faq { display: flex; flex-direction: column; gap: 8px; }
.hw-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.hw-faq summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; font-size: 15px; font-weight: bold; line-height: 1.4; cursor: pointer; }
.hw-faq summary::-webkit-details-marker { display: none; }
.hw-faq summary::after { content: "＋"; margin-left: auto; font-size: 18px; color: #1f5fa8; }
.hw-faq details[open] summary::after { content: "－"; }
.hw-faq .q { flex: 0 0 26px; display: grid; place-items: center; width: 26px; height: 26px; font-size: 13px; color: #1f5fa8; background: #eaf1fa; border-radius: 50%; }
.hw-faq .a { padding: 0 14px 12px 48px; font-size: 14px; line-height: 1.7; }
.hw-faq .a p { margin: 0 0 6px; }
.hw-go { display: inline-block; margin-top: 2px; padding: 2px 10px; font-size: 12.5px; font-weight: bold; color: #1f5fa8; border: 1.5px solid #1f5fa8; border-radius: 999px; }
.hw-all { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 14px 0 0; padding: 0 14px; font-weight: bold; color: #1f5fa8; text-decoration: none; background: #fff; border: 1.5px solid #1f5fa8; border-radius: 12px; }
.hw-all span { font-size: 20px; }
.stt-res.hs-tag { margin-left: 4px; }
/* 生徒の詳細の「最近の答え」（2026-10-21 便2の直し。src/recent.php）：いまの講師画面の部品（st-sub・pg-sum）に、少しだけ足す */
.rc-lead { margin: 0 0 10px; }
.rc-f { margin-bottom: 8px; }
.rc-f a { min-height: 38px; padding: 0 12px; font-size: 14px; }
table.rc-t td, table.rc-t th { white-space: normal; text-align: left; vertical-align: top; }
table.rc-t td:first-child, table.rc-t td.rc-res { white-space: nowrap; text-align: center; }
table.rc-t tr.rc-day th { padding-top: 12px; font-weight: bold; background: #f6f6f3; }
.rc-where small, .rc-q small { display: block; font-size: 12.5px; color: var(--sub); }
.rc-q small { color: #b3261e; }
.rc-res.o { color: #1a7a3c; font-weight: bold; }
.rc-res.x { color: #b3261e; font-weight: bold; }
.rc-in, .rc-mine { display: block; font-size: 13px; font-weight: bold; color: #7a5a12; }
.rc-box form.inline { display: inline; }
.bp-late { padding: 8px 10px; color: #7a5a12; background: #fff7e6; border-radius: 10px; }
span.qz-tb.lated { background: #fff7e6; border-style: solid; }
/* 細い幅（スマホ）：表の行を、縦に組む（1行め＝時刻・教材と場所・結果／2行め＝問題と答え／3行め＝特訓BOX） */
@media (max-width: 640px) {
  table.rc-t, table.rc-t tbody, table.rc-t tr, table.rc-t th, table.rc-t td { display: block; }
  table.rc-t thead { display: none; }
  table.rc-t tr:not(.rc-day) { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 4px 8px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  table.rc-t tr:not(.rc-day) td { padding: 0; border: 0; }
  table.rc-t td.rc-where { grid-column: 2; }
  table.rc-t td.rc-res { grid-column: 3; grid-row: 1; }
  table.rc-t td.rc-q { grid-column: 2 / 4; }
  table.rc-t td.rc-box { grid-column: 2 / 4; }
  table.rc-t .rc-where small { display: inline; margin-left: 6px; }
}

/* 単元の確認テスト（2026-10-21＝決定メモ〈管理の仕組みの見直し〉169・171。見本⑦⑧ https://claude.ai/artifact/8A5SgjHJEoro2QjPHvZCiw） */
/* 講師：上のカード2つ（始める級・開始レベル判定テスト） */
.wh-top { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.wh-tc { flex: 1 1 220px; box-sizing: border-box; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.wh-tc.trial { flex: 2 1 360px; background: #e8f0fa; border-color: #bfd3ea; }
.wh-tl { font-size: 13px; color: var(--sub); }
.wh-tv { margin-top: 2px; font-size: 22px; font-weight: bold; }
.wh-tv.none { font-size: 16px; color: var(--sub); }
.wh-hint { margin: 4px 0 0; font-size: 14px; font-weight: bold; color: #123b66; }
strong.wh-hint-row { display: block; margin-top: 2px; color: #123b66; }
/* 講師：級のチップと単元の表 */
.wh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 10px; }
.wh-head h2 { margin: 0; }
.wh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-chip { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 0 16px; font-size: 14px; color: var(--text); text-decoration: none; background: #fff; border: 1px solid #c9d2dc; border-radius: 999px; }
.wh-chip.on { font-weight: bold; color: #fff; background: #1d5fa7; border-color: #1d5fa7; }
.wh-chip.off { color: #6b737c; background: #f4f5f7; cursor: not-allowed; }
.wh-scroll { overflow-x: auto; margin: 0 -16px; }
table.wh-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
table.wh-table th, table.wh-table td { padding: 12px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef0f2; }
table.wh-table thead th { padding-top: 10px; padding-bottom: 10px; font-size: 12px; font-weight: normal; color: var(--sub); border-top: 1px solid #eef0f2; }
table.wh-table th:first-child, table.wh-table td:first-child { padding-left: 16px; }
table.wh-table th:last-child, table.wh-table td:last-child { padding-right: 16px; }
table.wh-table tbody th { font-weight: normal; }
table.wh-table .wh-sel { width: 3.5em; white-space: nowrap; }
table.wh-table .wh-sel input { width: 22px; height: 22px; margin: 0; accent-color: #1f5fa8; }
table.wh-table tr.on { background: #eaf1fa; }
.wh-sub { display: block; margin-top: 4px; font-size: 12px; color: var(--sub); }
.wh-res { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: bold; white-space: nowrap; border-radius: 999px; }
.wh-res.pass { color: #fff; background: #1d5fa7; }
.wh-res.study { color: #9a3412; background: #fff; border: 2px solid #c2410c; }
.wh-res.wait { color: #8a4204; background: #fff1de; border: 1px solid #f3c98b; }
.wh-res.none { color: #3d4650; background: #eef0f2; }
.wh-cancel { margin-left: 8px; }
.wh-next { font-weight: bold; color: var(--sub); }
.wh-next.pass { color: #123b66; }
.wh-next.study { color: #9a3412; }
.wh-card .wh-acts .wh-all { min-height: 46px; padding: 0 18px; font-weight: bold; color: #1d5fa7; background: #fff; border: 1.5px solid #1d5fa7; border-radius: 10px; }
.wh-card .wh-acts .wh-all:disabled { color: var(--sub); border-color: var(--line); cursor: default; }
.wh-rules { margin: 4px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.8; color: #3d4650; }
/* 生徒：結果（kind = unit） */
.wh-unit .wh-ttl { margin: 0 0 10px; font-size: 14px; color: var(--sub); text-align: center; }
.wh-unit .wh-msg { margin: 12px 0; padding: 12px 14px; font-size: 14px; line-height: 1.7; background: #eaf1fa; border-radius: 12px; }
.wh-unit .wh-msg.pass { background: #e9f6ee; }
.wh-unit .qz-rv span.qz-chip.in { position: static; display: inline-block; margin: 0 0 10px 36px; white-space: normal; }
.wh-unit .qz-rv:has(span.qz-chip.in) summary { padding-right: 12px; }

/* 「対応した」の取り消し（2026-10-22 便A＝決定メモ165の①〜④。src/guide.php） */
.gd-recnav { margin: 0 0 8px; }
.gd-row.gd-done { background: #f3f3ef; }
.gd-row.gd-done .gd-who, .gd-row.gd-done .gd-b { color: var(--sub); }
.gd-donemark { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; font-weight: bold; font-size: 14px; color: var(--ok); background: #e4f3e8; border-radius: 8px; }
.flash form.gd-flash-undo { display: inline-block; margin: 0 0 0 10px; vertical-align: middle; }
.gd-stu .stt-tb td.ops form.inline { margin: 0; }
/* 生徒の詳細の対応の記録：せまい幅では、「気になる生徒」の対応の記録と同じく、1件を2段に組む（「取り消す」が表の右に隠れないように） */
@media (max-width: 900px) {
  .gd-stu .stt-tb, .gd-stu .stt-tb tbody { display: block; width: 100%; }
  .gd-stu .stt-tb thead { display: none; }
  .gd-stu .stt-tb tr { box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .gd-stu .stt-tb tbody tr:last-child { border-bottom: 0; }
  .gd-stu .stt-tb td { display: block; padding: 0; border: 0; white-space: normal; }
  .gd-stu .stt-tb td.wrapc { flex: 1 1 60%; min-width: 0; }
  .gd-stu .stt-tb td.ops { flex: 0 0 auto; margin-left: auto; }
  .gd-stu .stt-tb td.ops:empty { display: none; }
}

/* 生徒の詳細「単元ごとの成績」（2026-10-22 便A＝見本④。src/unitstats.php）。7割未満は橙（見本の色） */
.us .us-lead { margin: 0 0 6px; }
.us .us-chips { margin-bottom: 14px; }
.us-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.us-box { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.us-box .us-k { font-size: 13px; color: var(--sub); }
.us-box .us-v { font-size: 26px; font-weight: bold; font-variant-numeric: tabular-nums; }
.us-box .us-s { font-size: 12px; color: var(--sub); }
.us-box.us-weak { border: 2px solid #c2410c; }
.us-weak ol { margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: bold; line-height: 1.6; }
.us-weak ol b { color: #9a3412; }
.us-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 8px; }
.us-head h2 { margin: 0; font-size: 17px; }
.us-sort { display: flex; }
.us-sort a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-size: 13px; color: #3d4650; text-decoration: none; background: #fff; border: 1px solid #c9d2dc; }
.us-sort a:first-child { border-radius: 8px 0 0 8px; }
.us-sort a + a { margin-left: -1px; border-radius: 0 8px 8px 0; }
.us-sort a.on { color: #123b66; font-weight: bold; background: #e8f0fa; border-color: var(--accent); position: relative; }
.us-hide { margin: 0 0 0 auto; }
.us-hide label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; }
.us-hide input[type=checkbox] { width: 18px; height: 18px; }
table.us-tb, table.us-ngtb { width: 100%; border-collapse: collapse; font-size: 14px; }
table.us-tb { min-width: 900px; }
.us-tb th, .us-tb td, .us-ngtb th, .us-ngtb td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #eef0f2; }
.us-tb thead th, .us-ngtb thead th { font-size: 12px; font-weight: normal; color: var(--sub); white-space: nowrap; }
.us-tb tbody th { font-weight: normal; }
.us-tb td { white-space: nowrap; }
.us-tb tr.us-low { background: #fff8f1; }
.us-rate { display: flex; align-items: center; gap: 10px; min-width: 200px; }
svg.us-bar { flex: 1 1 auto; min-width: 80px; height: 10px; border-radius: 5px; overflow: hidden; }
.us-bar-bg { fill: #e6ebf1; }
.us-bar-ok { fill: #1d5fa7; }
.us-bar-low { fill: #c2410c; }
.us-pct { min-width: 44px; text-align: right; font-weight: bold; font-variant-numeric: tabular-nums; }
.us-low .us-pct { color: #9a3412; }
.us-st { font-size: 12px; }
.us-st-pass, .us-st-clear { color: var(--accent); font-weight: bold; }
.us-st-doing { color: #123b66; }
.us-st-none { color: #6b7480; }
.us-t { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: bold; border-radius: 999px; white-space: nowrap; }
.us-t-pass { color: #fff; background: #1d5fa7; }
.us-t-fail { color: #9a3412; background: #fff; border: 2px solid #c2410c; }
.us-t-none { color: #3d4650; background: #eef0f2; }
.us-ngtb td { vertical-align: top; }
.us-ngtb td.us-q { min-width: 14em; }
.us-ngtb td.us-x { color: var(--ng); }
.us-ngtb td.us-o { color: var(--ok); font-weight: bold; }
.us-ngtb td:last-child { white-space: nowrap; }
.us-none { margin: 0; }
@media (max-width: 900px) { .us-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 419.98px) { .us-sum { grid-template-columns: minmax(0, 1fr); } .us-hide { margin-left: 0; } }

/* 生徒一覧「学習の様子」「教材の設定」と、生徒の詳細「進み具合」のいちばん上（2026-10-23 進み具合の見直し 便B＝見本①②③。src/stulist.php）。橙＝気になる・赤＝設定し忘れ */
.sl-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; margin: -6px 0 10px; font-size: 14px; }
.sl-sep { color: #9aa4af; }
.sl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.sl-card { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 44px; padding: 12px 14px; color: var(--text); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sl-card:hover { border-color: #b5b2a8; }
.sl-card-main { border: 2px solid #b45309; }
.sl-card-main .sl-card-v { color: #b45309; }
.sl-card.on { background: #fff7ec; border-color: #b45309; box-shadow: inset 0 0 0 1px #b45309; }
.sl-card-k { font-size: 13px; color: var(--sub); }
.sl-card-v { font-size: 26px; font-weight: bold; font-variant-numeric: tabular-nums; }
.sl-card-v small { margin-left: 4px; font-size: 14px; }
.sl-tools { margin: 0 0 12px; }
.sl-tools .sl-ck input { width: 18px; height: 18px; margin: 0; }
.sl-missn b { color: #9b1c1c; }
.sl-card-tb { padding: 0; overflow: hidden; }
.sl-card-tb .sl-count { margin: 0; padding: 10px 16px; font-size: 13px; color: var(--sub); border-top: 1px solid #eef0f2; }
table.sl-tb { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; }
table.sl-tb.sl-set { min-width: 900px; font-size: 13px; }
.sl-tb th, .sl-tb td { padding: 11px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid #eef0f2; }
.sl-tb th:first-child, .sl-tb td:first-child { padding-left: 16px; }
.sl-tb thead th { font-size: 12px; font-weight: normal; color: var(--sub); }
.sl-tb tbody tr:hover { background: #f7f9fc; }
.sl-nm { font-weight: bold; color: var(--text); text-decoration: none; }
.sl-nm:hover { text-decoration: underline; }
.sl-sub { font-size: 12px; color: var(--sub); }
.sl-last { white-space: nowrap; }
.sl-last.sl-old { font-weight: bold; color: #b45309; }
.sl-weekin { display: inline-flex; align-items: flex-end; gap: 10px; }
svg.sl-bars { display: block; overflow: visible; }
.sl-bar { fill: #1d5fa7; }
.sl-bar0 { fill: #c9d2dc; }
.sl-sum { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sl-now { min-width: 210px; }
.sl-mat { font-size: 13px; }
.sl-posrow { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
svg.sl-prog { flex: 1 1 auto; min-width: 60px; height: 8px; }
.sl-prog-bg { fill: #e6ebf1; }
.sl-prog-fg { fill: #1d5fa7; }
.sl-pos { font-size: 12px; color: var(--sub); white-space: nowrap; }
.sl-flag { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; font-size: 12px; white-space: nowrap; color: #8a4204; background: #fff1de; border: 1px solid #f3c98b; border-radius: 999px; }
.sl-flag.sl-flag-set { color: #9b1c1c; background: #fdecec; border-color: #f2b8b8; }
.sl-go { width: 1%; text-align: right; }
.sl-go a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-size: 20px; text-decoration: none; }
.sl-on { color: var(--text); }
.sl-off { color: #9aa4af; }
.sl-miss, .sl-stop { display: inline-block; padding: 2px 8px; font-size: 12px; white-space: nowrap; border-radius: 999px; }
.sl-miss { color: #9b1c1c; background: #fdecec; border: 1px solid #f2b8b8; }
.sl-stop { color: #8a4204; background: #fff1de; border: 1px solid #f3c98b; }
.sl-legend { margin: 8px 0 0; }
/* 生徒の詳細のいちばん上 */
.sl-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.sl-gl { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.sl-gl.sl-gl-warn { border: 2px solid #b45309; }
.sl-gl-k { font-size: 13px; color: var(--sub); }
.sl-gl-v { font-size: 24px; font-weight: bold; font-variant-numeric: tabular-nums; }
.sl-gl-s { font-size: 13px; color: var(--sub); }
.sl-gl-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; }
.sl-gl-bars { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.sl-wk { display: flex; gap: 6px; font-size: 11px; color: var(--sub); }
.sl-wk span { width: 14px; text-align: center; }
.sl-flags .sl-flag { font-size: 13px; padding: 3px 10px; }
.sl-hrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; }
.sl-hrow h2 { margin: 0; font-size: 17px; }
.card.sl-next { border: 1px solid var(--accent); }
.sl-adv { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sl-adv li { display: flex; align-items: flex-start; gap: 12px; }
.sl-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 14px; font-weight: bold; color: #fff; background: var(--accent); border-radius: 50%; }
.sl-say { font-size: 15px; font-weight: bold; }
.sl-why { margin-top: 2px; font-size: 13px; color: var(--sub); }
.sl-none { margin: 0; color: var(--sub); }
.sl-tn b.sl-ok { color: var(--accent); }
.sl-tn b.sl-ng { color: #b45309; }
.sl-tf { margin: 0 0 0 auto; }
.sl-tf label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13px; }
.sl-tf input[type=checkbox] { width: 18px; height: 18px; }
table.sl-ttb { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.sl-ttb th, .sl-ttb td { padding: 9px 8px; text-align: left; border-bottom: 1px solid #eef0f2; }
.sl-ttb thead th { font-size: 12px; font-weight: normal; color: var(--sub); }
.sl-ttb td.sl-d { white-space: nowrap; }
.sl-tname { font-weight: 500; }
.sl-tmat { font-size: 12px; color: var(--sub); }
.sl-line { font-size: 12px; color: var(--sub); }
.sl-ttb td.sl-ngl { text-align: right; white-space: nowrap; }
.sl-ttb td.sl-ngl a { display: inline-block; padding: 10px 4px; font-size: 13px; }
.sl-res { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: bold; white-space: nowrap; border-radius: 999px; }
.sl-res-pass { color: #fff; background: #1d5fa7; }
.sl-res-fail { color: #9a3412; background: #fff; border: 2px solid #c2410c; }
.sl-res-other { color: #3d4650; background: #eef0f2; }
.sl-res-quit { color: #6b4f12; background: #fff; border: 2px dashed #a8822a; }   /* 期限切れ・途中でやめた（2026-10-24） */
.sl-ttb td.sl-ngl a + a { margin-left: 10px; }
.sl-more { margin: 10px 0 0; font-size: 13px; }
.sl-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); }
/* 前の「教材ごとの道のり」の行（.sl-mrow・.sl-mhead・.sl-mlast・.sl-lt・.sl-mfoot・.sl-ubtn・.sl-yet の details）は、2026-11-20 便2 で表に変えたので外した */
/* 道のりの英単語の行：まだ済みでない語の単元ごとの一覧（たたんだ形。2026-10-24） */
.sl-nd { font-size: 13px; }
.sl-nd summary { cursor: pointer; color: var(--sub); padding: 6px 0; }
.sl-nd-list { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; padding: 0; list-style: none; }
.sl-nd-list li { display: inline-flex; align-items: baseline; gap: 6px; }
.sl-nd-list a { display: inline-block; padding: 8px 0; }
.sl-mname { min-width: 150px; font-size: 15px; }
.sl-sqs { display: flex; flex-wrap: wrap; gap: 4px; }
.sl-sq { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 26px; height: 26px; padding: 0 3px; font-size: 11px; border-radius: 6px; }
.sl-key .sl-sq { min-width: 18px; height: 18px; }
.sl-sq.done { color: #fff; background: #1d5fa7; }
.sl-sq.doing { color: #123b66; background: #cfe0f3; border: 2px solid #1d5fa7; }
.sl-sq.todo { color: #6b7480; background: #fff; border: 1px solid #d4dae1; }
.sl-step { font-size: 14px; }
.sl-mdone, .sl-mmix { color: #3d4650; }
/* 日ごとの記録（2026-10-23 進み具合の作り直し。src/daylog.php。広い画面は表の形、640px以下は1日1枚のカード） */
.dl-week { margin: 0 0 10px; font-size: 13px; color: var(--sub); }
.dl-week b { color: var(--text); font-variant-numeric: tabular-nums; }
.dl-list { border-top: 1px solid #eef0f2; }
.dl-head, .dl-row { display: grid; grid-template-columns: 84px 92px minmax(0, 1fr) minmax(0, 250px); gap: 10px; align-items: start; }
.dl-head { padding: 8px 4px; font-size: 12px; color: var(--sub); background: #fafbfc; border-bottom: 1px solid #eef0f2; }
.dl-row { padding: 10px 4px; border-bottom: 1px solid #eef0f2; font-size: 14px; }
details.dl-day > summary.dl-row { cursor: pointer; list-style: none; }
details.dl-day > summary.dl-row::-webkit-details-marker { display: none; }
details.dl-day > summary.dl-row:hover { background: #f7f9fc; }
details.dl-day[open] > summary.dl-row { background: #f7f9fc; border-bottom: 0; }
details.dl-day > summary.dl-row:focus-visible { outline: 3px solid #262421; outline-offset: -3px; }
.dl-d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-d b { display: block; }
.dl-d small { color: var(--sub); }
.dl-tm { white-space: nowrap; font-weight: bold; font-variant-numeric: tabular-nums; }
.dl-tm.z { font-weight: normal; color: #8a949e; }
.dl-did { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-x { font-size: 13.5px; }
.dl-x em { font-style: normal; font-size: 12.5px; color: var(--sub); }
.dl-m { font-size: 13px; font-weight: bold; color: var(--accent); }
.dl-none { color: #8a949e; }
.dl-tst { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dl-t { font-size: 13px; }
.dl-t b { font-variant-numeric: tabular-nums; }
.dl-t small { display: block; font-size: 12px; color: var(--sub); }
.dl-tog { font-size: 12.5px; color: var(--accent); text-decoration: underline; }
.dl-tog::before { content: "内訳を見る"; }
details.dl-day[open] .dl-tog::before { content: "内訳を閉じる"; }
.dl-detail { padding: 0 4px 12px; background: #f7f9fc; border-bottom: 1px solid #eef0f2; }
.dl-detail .tscroll { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table.dl-dtb { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13px; }
.dl-dtb th, .dl-dtb td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eef0f2; }
.dl-dtb thead th { font-size: 12px; font-weight: normal; color: var(--sub); background: #fafbfc; }
.dl-dtb td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-foot { margin: 8px 0 0; font-size: 13px; }
.dl-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 12px 0 8px; font-size: 13px; }
.dl-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.dl-pick input[type=date] { min-height: 40px; font: inherit; font-size: 14px; }
/* 先生が操作すること */
.sl-op { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; border-top: 1px solid #eef0f2; }
.sl-op-what { flex: 1 1 280px; min-width: 0; }
.sl-op-what > b { display: block; font-size: 14px; }
.sl-op-what > span { display: block; font-size: 13px; color: var(--sub); }
.sl-op-subj { font-weight: normal; color: var(--sub); }
.sl-op-entry { display: block; margin-top: 4px; }
.sl-op-act { flex: 0 1 auto; min-width: 0; }
.sl-op .bx-rel { margin: 0; }
.sl-op-sel select { min-height: 40px; font: inherit; font-size: 14px; }
/* 英単語の始め方（覚えるから／テストから。2026-10-26） */
.sl-mode .sl-op-what { flex-basis: 100%; }
.sl-mode-hint { margin: 6px 0 0; padding: 6px 10px; font-size: 13px; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 8px; }
.sl-mode-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 8px 0 6px; }
.sl-mode-pick { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 320px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sl-mode-opt { display: flex; align-items: flex-start; gap: 8px; flex: 1 1 240px; min-width: 0; margin: 0; padding: 8px 10px; color: var(--text); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.sl-mode-opt:has(input:checked) { border-color: #1f5fa8; background: #f2f7fd; }
.sl-mode-opt input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; }
.sl-mode-txt { min-width: 0; }
.sl-mode-txt b { font-size: 14px; }
.sl-mode-rec { margin-left: 6px; }
.sl-mode-desc { display: block; font-size: 13px; color: var(--sub); }
/* 生徒の英単語の画面：「テストから」の級の単元の行（その単元の一歩。2026-10-26） */
.sj-tf-note { margin: 0; padding: 10px 12px; font-size: 14px; line-height: 1.6; background: var(--sc-bg); border-radius: 10px; }
.sj-wrow.tf { flex-wrap: wrap; gap: 6px 10px; }
.sj-wrow.tf .sj-wn { flex: 1 1 6em; }
.sj-tf-step { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; }
.sj-tf-go { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; font-size: 14px; font-weight: bold; color: #fff; background: var(--sc); border-radius: 20px; text-decoration: none; }
.sj-tf-wait { font-size: 13px; color: var(--sub); }
.sj-tf-ok { font-weight: bold; color: var(--sc); }
.sj-tf-sc { display: block; font-size: 12px; font-weight: normal; color: var(--sub); }
.st-back { margin: 0 0 10px; }
@media (max-width: 640px) {
  .dl-head { display: none; }
  .dl-list { border-top: 0; display: flex; flex-direction: column; gap: 10px; }
  .dl-row { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
  .dl-day { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .dl-day > summary.dl-row { border: 0; border-radius: 0; }
  .dl-d { display: flex; gap: 6px; align-items: baseline; }
  .dl-d b { display: inline; font-size: 15px; }
  .dl-tm { margin-left: auto; }
  .dl-did, .dl-tst { flex: 1 1 100%; }
  .dl-tst { padding-top: 8px; border-top: 1px solid #eef0f2; }
  .dl-empty .dl-tst { display: none; }
  .dl-detail { padding: 0 10px 12px; border-bottom: 0; }
}
@media (max-width: 900px) {
  .sl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-glance { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 419.98px) {
  .sl-links { justify-content: flex-start; margin-top: 0; }
  .sl-tf { margin-left: 0; }
  .sl-ubtn { margin-left: 0; }
  .sl-mlast { margin-left: 0; }
}

/* ---- 学習記録の印刷（PDF）「勉強時間と振り返り」（学習記録の組み込み 4便。2026-10-25。src/kprint.php・public/kprint.js）----
   選ぶ画面（.krp-pick）と、印刷用のページ（.kp）。紙は A4（210×297mm）。見本＝学習記録帳デジタル化/見本_学習記録_PDF_1週間_2026-10-06.html・…_1か月_2026-10-21.html。
   紙の中の色は、科目の色（kk-＊ の --sc）・気づき・振り返りの紫・先生の印の朱色だけ。背景のグラフィックを入れて刷る前提（print-color-adjust）。 */
a.small-btn.krp-entry { white-space: nowrap; }
.krp-pick { max-width: 760px; }
.krp-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; }
.krp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.krp-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.krp-sg { min-height: 40px; padding: 6px 18px; font: inherit; font-weight: bold; color: var(--text, #2b2a26); background: #fff; border: 0; cursor: pointer; }
.krp-sg.on { color: #fff; background: #262421; }
.krp-nav { display: inline-flex; align-items: center; gap: 8px; }
.krp-nav b { min-width: 11em; text-align: center; font-size: 16px; }
.krp-nav button.stt-pg { font: inherit; cursor: pointer; }
.tag.krp-now, .tag.krp-soon { font-weight: bold; }
.krp-cks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 18px; }
.krp-ck { display: flex; align-items: center; gap: 8px; min-height: 40px; font-weight: bold; cursor: pointer; }
.krp-ck input { width: 20px; height: 20px; margin: 0; }
.krp-what.off { color: #8a877f; background: #f3f2ee; }
.krp-what.off h2 { margin: 0; color: #8a877f; }
.krp-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; }

/* 印刷用のページ：上の帯（紙には出ない）と、机の上に並べた紙 */
.krp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; max-width: 794px; margin: 0 0 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.krp-count b { font-size: 16px; }
.krp-how { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--sub); }
.krp-sheets { overflow-x: auto; padding: 4px 0 20px; }
.krp-stack { display: flex; flex-direction: column; gap: 18px; width: 210mm; }
.krp-page, .krp-flow { --ink: #222; --sub: #5f5d57; --line: #dcdcd6; --frame: #b5b2a8; --wash: #f4f3ef; --track: #ebe9e3; --violet: #7a4fb5; --violet-bg: #f1eaf9; --shu: #d3381c;
  box-sizing: border-box; width: 210mm; padding: 12mm 14mm 10mm; color: var(--ink); background: #fff; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-size: 9.2pt; line-height: 1.55; font-weight: 400; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.krp-page { height: 297mm; display: flex; flex-direction: column; gap: 4mm; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.krp-page *, .krp-flow * { box-sizing: border-box; }
.krp-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 4mm; overflow: hidden; }
.krp-flow { display: flex; flex-direction: column; gap: 4mm; border: 1px solid var(--line); }   /* 動きのファイルが働かないときの、長い1枚 */
.krp-flow .krp-head2 { display: none; }
.krp-flow > .krp-run { display: flex; flex-direction: column; gap: 1.6mm; }
.krp-head { display: flex; align-items: flex-end; gap: 6mm; padding-bottom: 3mm; border-bottom: .6mm solid #262421; }
.krp-head h2 { margin: 0; font-size: 19pt; line-height: 1.2; }
.krp-head h2 small { margin-left: 2mm; font-size: 11pt; }
.krp-head .per { font-size: 11pt; font-weight: 700; }
.krp-head .who { margin-left: auto; text-align: right; font-size: 9pt; line-height: 1.5; }
.krp-head .who b { font-size: 12pt; }
.krp-head2 { display: flex; align-items: baseline; gap: 2mm; padding-bottom: 1.6mm; border-bottom: .5mm solid #262421; font-size: 9.6pt; }
.krp-head2 b { font-size: 12pt; }
.krp-head2 span { margin-left: auto; font-weight: 700; }
.krp-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 4mm; padding-top: 1.6mm; font-size: 7.6pt; color: var(--sub); border-top: .25mm solid var(--line); }
.krp-pn { white-space: nowrap; }
.krp-page h3, .krp-flow h3 { margin: 0 0 1.6mm; font-size: 10.5pt; }
.krp-kpi { display: grid; grid-template-columns: 1fr .8fr 1fr 1.5fr; gap: 3mm; }
.krp-kpi > div { padding: 2.4mm 3mm; border: .3mm solid var(--frame); border-radius: 2.4mm; }
.krp-kpi small { display: block; font-size: 8pt; font-weight: 700; color: var(--sub); }
.krp-kpi b { font-size: 15pt; line-height: 1.3; font-variant-numeric: tabular-nums; }
.krp-kpi b.sm { font-size: 11pt; line-height: 1.8; white-space: nowrap; }
.krp-kpi span { font-size: 8pt; color: var(--sub); }
.krp-two { display: grid; grid-template-columns: 1.12fr 1fr; gap: 6mm; }
.krp-two.m { grid-template-columns: 1.15fr 1fr; }
.krp-two.one { grid-template-columns: 1fr; }
.krp-page table, .krp-flow table { width: 100%; border-collapse: collapse; }
.krp-page td, .krp-flow td { padding: .8mm 1.2mm; vertical-align: middle; }
.krp-page .num, .krp-flow .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.krp-chip { display: inline-block; min-width: 11mm; padding: 0 1.8mm; font-size: 8pt; font-weight: 700; line-height: 1.7; text-align: center; white-space: nowrap; color: var(--st); background: var(--sc); border-radius: 10mm; }
.krp-tag { padding: 0 1.2mm; font-size: 6.6pt; font-weight: 700; color: var(--sub); white-space: nowrap; background: var(--track); border-radius: 5mm; }
.krp-tag.wait { color: #7a5a12; background: #fff1cf; }
.krp-dim, .krp-none { color: var(--sub); }
.krp-note { margin: 1mm 0 0; font-size: 7.6pt; color: var(--sub); }
.krp-w { width: 100%; }
.krp-page svg, .krp-flow svg { display: block; }
.krp-page svg .kk-en, .krp-page svg .kk-ma, .krp-page svg .kk-ja, .krp-page svg .kk-sc, .krp-page svg .kk-so, .krp-page svg .kk-ot, .krp-page svg .kk-x,
.krp-flow svg .kk-en, .krp-flow svg .kk-ma, .krp-flow svg .kk-ja, .krp-flow svg .kk-sc, .krp-flow svg .kk-so, .krp-flow svg .kk-ot, .krp-flow svg .kk-x { fill: var(--sc); }
.krp-page .kr-bar, .krp-flow .kr-bar { width: 100%; height: 3mm; border-radius: 2mm; }
.krp-page .kr-bar .track, .krp-flow .kr-bar .track { fill: var(--track); }
.krp-page .kr-band, .krp-flow .kr-band { width: 100%; height: 4mm; border-radius: 1mm; }
.krp-sub tr.s td { padding-top: 1.2mm; border-top: .25mm solid var(--line); }
.krp-sub tr.s:first-child td { border-top: 0; }
.krp-sub tr.f td { padding-top: 0; padding-bottom: .2mm; font-size: 8.3pt; color: #444; }
.krp-sub tr.f .num { font-weight: 500; }
.krp-sub .pct { width: 10mm; color: var(--sub); font-weight: 500; }
.krp-dayt td { height: 8.3mm; border-top: .25mm solid var(--line); }
.krp-dayt tr:first-child td { border-top: 0; }
.krp-dayt .dn { width: 13mm; font-weight: 700; white-space: nowrap; }
.krp-dayt .dn small, .krp-tl .dh small { margin-left: 1mm; font-size: 7.4pt; font-weight: 400; color: var(--sub); }
.krp-wkt td { height: 9.4mm; border-top: .25mm solid var(--line); }
.krp-wkt tr:first-child td { border-top: 0; }
.krp-wkt .wn { font-size: 8.6pt; font-weight: 700; line-height: 1.25; white-space: nowrap; }
.krp-wkt .wn small { display: block; font-size: 7.2pt; font-weight: 400; color: var(--sub); }
.krp-wkt .sp { white-space: nowrap; }
.krp-wkt .sp .kr-stamp { display: inline-grid; margin-left: .6mm; }
/* カレンダー */
.krp-cal { display: grid; grid-template-columns: repeat(7, 1fr) 21mm 27mm; border-top: .3mm solid var(--frame); border-left: .3mm solid var(--frame); }
.krp-cal.nost { grid-template-columns: repeat(7, 1fr) 24mm; }
.krp-cal > div { min-width: 0; border-right: .3mm solid var(--frame); border-bottom: .3mm solid var(--frame); }
.krp-cal .ch { padding: .6mm 0; font-size: 8pt; font-weight: 700; text-align: center; color: var(--sub); background: var(--wash); }
.krp-cal .c { height: 14.6mm; padding: .8mm 1.4mm; display: flex; flex-direction: column; gap: .8mm; }
.krp-cal .c.out { background: repeating-linear-gradient(135deg, #f6f5f1 0 1.4mm, #fff 1.4mm 2.8mm); }
.krp-cal .dt { display: flex; justify-content: space-between; font-size: 8pt; font-weight: 700; line-height: 1.2; }
.krp-cal .dt i { font-style: normal; font-weight: 500; color: var(--sub); }
.krp-cal .t { font-size: 8.4pt; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.krp-cal .t.z { font-weight: 400; color: var(--sub); }
.krp-cal .bd { margin-top: auto; height: 2.6mm; overflow: hidden; background: var(--track); border-radius: .7mm; }
.krp-cal .bd .kr-band { height: 2.6mm; border-radius: 0; }
.krp-cal .wk { padding: .8mm 1.6mm; display: flex; flex-direction: column; justify-content: center; background: var(--wash); }
.krp-cal .wk b { font-size: 9pt; white-space: nowrap; font-variant-numeric: tabular-nums; }
.krp-cal .wk small { font-size: 7pt; line-height: 1.3; color: var(--sub); }
.krp-cal .sp { padding: .8mm 1mm; display: flex; flex-wrap: wrap; align-content: center; gap: .8mm; }
/* 時間帯の表 */
.krp-tl { display: grid; grid-template-columns: 7mm repeat(7, 1fr); column-gap: 1.4mm; row-gap: 1mm; }
.krp-tl.m { column-gap: .6mm; row-gap: .6mm; }
.krp-tl.n28 { grid-template-columns: 6mm repeat(28, 1fr); } .krp-tl.n29 { grid-template-columns: 6mm repeat(29, 1fr); }
.krp-tl.n30 { grid-template-columns: 6mm repeat(30, 1fr); } .krp-tl.n31 { grid-template-columns: 6mm repeat(31, 1fr); }
.krp-tl .dh { font-size: 9pt; font-weight: 700; line-height: 1.3; text-align: center; }
.krp-tl.m .dh { font-size: 6.4pt; line-height: 1.2; }
.krp-tl .dh.we { font-weight: 400; color: var(--sub); }
.krp-tl .hrs { display: flex; flex-direction: column; justify-content: space-between; height: 62mm; padding: 0 .6mm 0 0; font-size: 7pt; line-height: 1; color: var(--sub); text-align: right; }
.krp-tl .col { height: 62mm; overflow: hidden; border-radius: .8mm; }
.krp-tl.m .hrs, .krp-tl.m .col { height: 82mm; }
.krp-tl.m .hrs { font-size: 6.4pt; }
.krp-tl .col svg { width: 100%; height: 100%; }
.krp-tlbg { fill: #f4f3ef; }
.krp-tlln { fill: #dcdcd6; }
.krp-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6mm; font-size: 8pt; color: var(--sub); }
.krp-leg .app { margin-left: 2mm; }
.krp-leg .app b { color: var(--ink); }
.krp-stamps { display: flex; flex-wrap: wrap; align-items: center; gap: 2.4mm; font-size: 8.6pt; font-weight: 700; }
.krp-wst { display: inline-flex; align-items: center; gap: .8mm; margin-right: 2mm; font-weight: 400; }
.krp-wst small { font-size: 7.4pt; color: var(--sub); }
/* 先生の印（朱色。印の中の字は、名前の2文字＝kr_stamp_html） */
.krp-page .kr-stamp, .krp-flow .kr-stamp { flex: 0 0 6.6mm; width: 6.6mm; height: 6.6mm; font-size: 5.8pt; border-width: .4mm; transform: rotate(-5deg); }
.krp-page .kr-stamp.len3, .krp-flow .kr-stamp.len3 { font-size: 4.6pt; } .krp-page .kr-stamp.len4, .krp-flow .kr-stamp.len4 { font-size: 3.8pt; }
.krp-stamps .kr-stamp { flex-basis: 9.4mm; width: 9.4mm; height: 9.4mm; font-size: 8pt; }
.krp-stamps .kr-stamp.len3 { font-size: 6.4pt; } .krp-stamps .kr-stamp.len4 { font-size: 5.2pt; }
/* 日の目通しの印（2026-11-03）：1週間＝日ごとの表の右の列／1か月＝カレンダーのマスの日付の行（時間の字は詰めない）。押した順に並べ、2つで下の段へ（マスは、そのときだけ少し伸びる） */
.krp-ds { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: center; gap: .6mm; }
.krp-dayt .ds { width: 11.4mm; padding-left: .4mm; padding-right: 0; }
.krp-dayt .ds .krp-ds { width: 11.4mm; }
.krp-ds .kr-stamp { flex: 0 0 5.4mm; width: 5.4mm; height: 5.4mm; font-size: 4.8pt; border-width: .35mm; }
.krp-ds .kr-stamp.len3 { font-size: 3.8pt; } .krp-ds .kr-stamp.len4 { font-size: 3.2pt; }
.krp-cal .c { height: auto; min-height: 14.6mm; }
.krp-cal .dt .krp-ds { flex: 0 0 auto; max-width: 8.9mm; margin-left: auto; margin-right: .6mm; gap: .5mm; }
.krp-cal .dt .krp-ds + i { margin-left: 0; }
.krp-cal .krp-ds .kr-stamp { flex-basis: 4.2mm; width: 4.2mm; height: 4.2mm; font-size: 3.8pt; border-width: .3mm; }
.krp-cal .krp-ds .kr-stamp.len3 { font-size: 3pt; } .krp-cal .krp-ds .kr-stamp.len4 { font-size: 2.6pt; }
/* 2枚め以降：箱の列 */
.krp-run-h h3 { margin: 0; }
.krp-lede { margin: 0; font-size: 8pt; color: var(--sub); }
.krp-cols { flex: 1 1 0; min-height: 0; display: grid; gap: 3.4mm; }
.krp-cols.c2 { grid-template-columns: 1fr 1fr; }
.krp-cols.done { flex: 0 0 auto; }
.krp-cl { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 1.6mm; }
.krp-box { break-inside: avoid; page-break-inside: avoid; }
.krp-rb { display: flex; flex-direction: column; gap: 1mm; padding: 1.3mm 2.4mm 1.6mm; border: .3mm solid var(--frame); border-radius: 2.2mm; }
.krp-rb h4, .krp-dayb h4 { margin: 0; display: flex; justify-content: space-between; align-items: center; font-size: 9pt; }
.krp-rb h4 .bd { flex: 1; margin: 0 2.4mm; height: 2.2mm; overflow: hidden; border-radius: .6mm; }
.krp-rb h4 .bd .kr-band { height: 2.2mm; border-radius: 0; }
.krp-dayb { display: grid; grid-template-columns: 1.32fr 1fr; gap: 0 4mm; padding: 1.2mm 2.8mm 1.4mm; border: .3mm solid var(--frame); border-radius: 2.4mm; }
.krp-dayb.one { grid-template-columns: 1fr; }
.krp-dayb h4 { grid-column: 1 / -1; margin: 0 0 .6mm; font-size: 9.6pt; }
.krp-dayb .r { display: flex; flex-direction: column; gap: 1mm; }
.krp-lst td { padding: .25mm .8mm; font-size: 7.6pt; line-height: 1.38; border-top: .2mm dotted var(--line); }
.krp-lst tr:first-child td { border-top: 0; }
.krp-lst .tm { width: 17mm; color: var(--sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.krp-lst .fd { white-space: nowrap; }
.krp-lst .nt { color: #444; overflow-wrap: anywhere; }
.krp-lst .none { color: var(--sub); }
.krp-lst .krp-chip { min-width: 9mm; font-size: 7.2pt; line-height: 1.6; }
.krp-lst tr.pend .num { color: var(--sub); font-weight: 500; }
.krp-ref { padding: .9mm 2mm; font-size: 8.1pt; line-height: 1.5; background: var(--violet-bg); border-radius: 1.4mm; }
.krp-ref b { display: block; font-size: 7pt; color: var(--violet); }
.krp-ref p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.krp-rep { display: flex; align-items: flex-start; gap: 1.8mm; padding: .9mm 2mm; font-size: 8.1pt; line-height: 1.5; color: #222; background: var(--wash); border-radius: 1.4mm; overflow-wrap: anywhere; }
.krp-rep > div { white-space: pre-wrap; }
.krp-rep.krp-rs { color: var(--shu); font-weight: 700; }   /* 返事のスタンプ（2026-11-10）：朱色で「絵文字 ことば（名字）」 */
.krp-empty { padding: 40mm 0; font-size: 14pt; font-weight: 700; text-align: center; color: var(--sub); }
/* 選ぶ画面：教材の進み具合（2026-10-28 決定メモ240） */
.krp-sg:disabled { color: #b1aea6; cursor: default; }
.krp-norec { display: block; font-size: 12.5px; font-weight: 400; line-height: 1.3; }
/* 教材の進み具合の紙（2026-10-28 決定メモ240。src/mprint.php。見本 HZvL63t5dX8JR5RGMqrNsJ 第2版＝紙の「達成度確認表」の形）。
   白黒で刷っても分かるように：この期間の欄＝灰色の地＋太字／届かない点数＝橙色＋下線 */
.mp-head { display: flex; flex-direction: column; gap: 2.4mm; padding-bottom: 0; border-bottom: 0; align-items: stretch; }
.mp-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4mm; }
.mp-title { padding: 1.6mm 4mm; font-size: 15pt; font-weight: 700; letter-spacing: .06em; color: #fff; background: #2a2f35; }
.mp-logo { font-size: 13pt; font-weight: 800; }
.krp-page table.mp-info, .krp-flow table.mp-info { border-collapse: collapse; }
.mp-info th, .mp-info td { padding: 1mm 1.6mm; border: .25mm solid #555; font-size: 8.8pt; text-align: left; white-space: nowrap; }
.mp-info th { width: 17mm; font-weight: 700; white-space: nowrap; background: #e4e6e9; }
.mp-info td.mp-who { width: 34%; font-weight: 700; white-space: normal; }
.mp-sum { display: grid; grid-template-columns: repeat(4, 1fr); border: .3mm solid #555; }
.mp-sum > div { padding: 1.8mm 2.6mm; border-right: .25mm solid #555; }
.mp-sum > div:last-child { border-right: 0; }
.mp-sum small { display: block; font-size: 7.8pt; font-weight: 700; color: var(--sub); }
.mp-sum b { font-size: 14pt; line-height: 1.3; font-variant-numeric: tabular-nums; }
.mp-sum span { margin-left: 1mm; font-size: 8pt; color: var(--sub); }
.mp-flow h3, .krp-page[data-flow^="mp-flow"] h3 { border-left: 1.4mm solid #2a2f35; padding-left: 1.8mm; }
.krp-page table.mp-grid, .krp-flow table.mp-grid { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mp-grid th, .mp-grid td { padding: .6mm 1.2mm; border: .25mm solid #555; text-align: center; font-size: 8.4pt; line-height: 1.35; }
.mp-grid th { font-size: 7.8pt; font-weight: 700; color: #fff; background: #2a2f35; }
.mp-grid th.s { background: #4a5058; }
.mp-grid td.l { text-align: left; }
.mp-grid td.sc { white-space: nowrap; }
.mp-grid td.mk { width: 9mm; font-size: 11pt; font-weight: 700; }
.mp-grid tr.mp-grp td { padding: .5mm 2mm; text-align: left; font-size: 8pt; font-weight: 700; background: #e4e6e9; border-top: .5mm solid #111; }
.mp-grid td.in { font-weight: 800; background: #dfe3e8; }
.mp-grid td.low, .mp-low-s { color: #b4541a; font-weight: 700; text-decoration: underline; text-underline-offset: .5mm; }
.mp-grid tr.tot td { font-weight: 700; background: #f1f2f4; }
.mp-tb th.un { width: 26%; }
.mp-hole { margin-left: .8mm; font-size: 6.4pt; font-style: normal; font-weight: 700; color: var(--sub); }
.mp-more { display: block; font-size: 6.8pt; font-weight: 700; color: var(--sub); }
.mp-legend { font-size: 7.6pt; line-height: 1.5; color: #444; }
.mp-in-s { padding: 0 1mm; font-weight: 800; background: #dfe3e8; }
.mp-memo { height: 34mm; border: .25mm solid #555; background: repeating-linear-gradient(#fff 0 6.6mm, #bbb 6.6mm 6.9mm); }
@page krp-a4 { size: A4 portrait; margin: 0; }
@media print {
  .krp-on .topbar, .krp-on .menu, .krp-on .subnav, .krp-on .st-sub, .krp-on .envbar, .krp-on .shiftbar, .krp-on .main > h1, .krp-on .flash, .krp-on .fonttry, .krp-on .krp-bar, .krp-on .mt-bar { display: none !important; }
  body.krp-on { margin: 0; background: #fff; }
  .krp-on .shell { display: block; }
  .krp-on .main { max-width: none; margin: 0; padding: 0; }
  .krp-on .krp-sheets { overflow: visible; padding: 0; }
  .krp-on .krp-stack { display: block; gap: 0; page: krp-a4; }
  .krp-on .krp-page { box-shadow: none; break-after: page; page-break-after: always; }
  .krp-on .krp-page:last-child { break-after: auto; page-break-after: auto; }
  .krp-on .krp-flow { page: krp-a4; border: 0; }
}
/* 学習記録の「？」：タブ「使い方」「こんなときは？」（学習記録の組み込み 4便。2026-10-25。src/kiroku_view.php の kr_sheet_how。部品はヘルプと同じ hw-*） */
.kr-sheet .kr-how-x { position: relative; z-index: 1; align-self: flex-end; margin: 0 0 -48px; color: var(--text); }   /* 題の行の右はしに重ねる */
.kr-sheet .hw > h2 { display: flex; align-items: center; min-height: 48px; margin: 0 0 12px; padding-right: 90px; font-size: 18px; }
.kr-sheet .hw-pane .kr-sh-h:first-child { margin-top: 0; }
/* 講師の画面の「？」（2026-10-27 講師向けのヘルプ。src/howto.php の howto_staff_*。見本＝決定メモ〈管理の仕組みの見直し〉225 の見本 第1版） */
.hw-row { display: flex; align-items: flex-start; gap: 8px; }
.hw-row > :first-child { flex: 1 1 auto; min-width: 0; }
.hw-h1row { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.hw-h1row h1 { margin: 0; }
.hw-sq { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; box-sizing: border-box; font-size: 18px; font-weight: bold; color: #1f5fa8; text-decoration: none; background: #fff; border: 2px solid #1f5fa8; border-radius: 50%; }
.hw-row .hw-sq { margin-left: auto; }
.menu-help { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; box-sizing: border-box; font-size: 14px; font-weight: bold; color: #1f5fa8; text-decoration: none; background: #fff; border: 1.5px solid #1f5fa8; border-radius: 999px; }
@media (min-width: 701px) { .menu-help { margin-top: 10px; } }
@media (max-width: 700px) { .menu-help { flex: 1 1 auto; } }
.hw-sq:focus-visible, .menu-help:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.hw-sec { margin: 0 0 14px; }
.hw-sec h3 { margin: 0 0 6px; font-size: 14.5px; color: #1f5fa8; }
.hw-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.hw-parts.one { grid-template-columns: minmax(0, 1fr); }
.hw-parts div { min-width: 0; padding: 7px 10px; font-size: 13px; line-height: 1.5; background: var(--bg); border-radius: 10px; }
.hw-parts b { display: block; font-size: 14px; }
.hw-parts .only { display: block; margin-top: 2px; font-size: 11.5px; font-weight: bold; color: #7a5a12; }
.hw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; font-size: 12.5px; }
.hw-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; border-radius: 3px; background: #b3261e; }
.hw-legend .warn::before { background: #b8641a; }
.hw-legend .cnt::before { background: #fff3d6; border: 1px solid #d4a340; }
.hw-mode { margin: 0 0 4px; padding: 12px; background: #fff7e6; border: 2px solid #d4a340; border-radius: 14px; }
.hw-mode h3 { margin: 0 0 8px; font-size: 14.5px; color: #7a5a12; }
.hw-mode-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px 0; font-size: 13.5px; line-height: 1.55; border-top: 1px dashed #d4a340; }
.hw-mode h3 + .hw-mode-row { border-top: 0; }
.hw-mode-row b { font-size: 14px; }
.hw-mode p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.hw-rec { display: inline-block; padding: 0 7px; font-size: 11.5px; font-weight: bold; color: #1a7a3c; background: #fff; border: 1.5px solid #1a7a3c; border-radius: 999px; }
.hw-faq .a ol { margin: 0 0 6px; padding-left: 18px; }
@media (max-width: 420px) { .staff .hw-tabs button { font-size: 14px; white-space: nowrap; } }   /* 1つめのタブ「この画面でできること」を1行に */
@media print { .hw-sq, .menu-help { display: none; } }

/* ---------- 導線をシンプルに（2026-10-28＝決定メモ232〜235。見本 BP986YVYT87AmJssNwoPkK） ---------- */
/* C1 教材の設定：学習の教材のカード（見出しの右に 見せる／見せない、カードの中にその教材の設定）・画面の下に貼りつく保存 */
.sh-mats { display: flex; flex-direction: column; gap: 0; }
.card.sh-mat { display: block; padding: 14px 18px; border-bottom: 0; }
.card.sh-mat.changed { background: #fffbef; border-color: #e7c766; }
.sh-mhead { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sh-mhead .sh-nm { flex: 1 1 12em; min-width: 0; margin: 0; font-size: 16px; }
.sh-mhead .sh-state { width: auto; }
.sh-mat .sh-meta { margin: 2px 0 0; }
.sh-set { margin-top: 6px; }
.sh-srow { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--line); }
.sh-sk { padding-top: 8px; font-size: 14px; }
.sh-sv { min-width: 0; }
.sh-sv .small { display: block; margin: 4px 0 0; }
.sh-sv .sh-grade { margin: 0; }
.sh-grade.dim select { opacity: .6; }
.sh-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 4px; }
.sh-inline form.inline { margin: 0; }
.sh-more { margin-top: 8px; }
.sh-more > summary { min-height: 36px; display: flex; align-items: center; font-size: 14px; font-weight: bold; color: var(--accent); cursor: pointer; }
.sh-more[open] > summary { margin-bottom: 6px; }
.sh-inner { min-width: 0; }
.sh-inner h4 { margin: 12px 0 4px; font-size: 15px; }
.sh-inner .wh-scroll { margin: 0; }
.sh-sv .kp-tools { margin: 6px 0; }
.sh-sv .kp-tools[hidden], .kp-stg button[hidden] { display: none; }
.sh-sv .kp { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.sh-sv .kp-legend { margin-top: 6px; }
.sh-sv .uo-pick { margin: 0 0 4px; }
.uo-pick .uo-upto { min-height: 46px; }
.sh-sv .sl-mode-pick { flex-basis: auto; }
.sh-pick { margin-top: 12px; }
.sh-savebar { position: sticky; bottom: 0; z-index: 5; flex-wrap: wrap; justify-content: space-between; margin: 12px 0; background: #fff; border: 2px solid var(--accent); border-radius: 12px; box-shadow: 0 -4px 12px rgba(0, 0, 0, .06); }
.sh-savenote { flex: 1 1 14em; min-width: 0; margin: 0; font-size: 13px; color: var(--sub); }
.card.sh-foot-copy { padding: 12px 18px; }
@media (max-width: 560px) {
  .sh-srow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sh-sk { padding-top: 0; }
  .card.sh-mat { padding: 12px 14px; }
  .sh-savebar { padding: 10px 12px; }
  .btn.sh-save { min-height: 46px; padding: 0 18px; }
}
/* C4 印刷 ▾（名前の横に1つ） */
.pr-menu { position: relative; }
.pr-menu > summary { list-style: none; cursor: pointer; white-space: nowrap; }
.pr-menu > summary::-webkit-details-marker { display: none; }
.pr-menu[open] > summary { color: #fff; background: var(--accent); }
.pr-drop { position: absolute; right: 0; z-index: 20; width: min(340px, calc(100vw - 32px)); margin-top: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.pr-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px; border-radius: 8px; color: var(--text); font-size: 15px; font-weight: bold; text-decoration: none; }
a.pr-item:hover, a.pr-item:focus-visible { background: #eaf1fa; }
.pr-item small { display: block; font-size: 12.5px; font-weight: normal; color: var(--sub); }
.pr-soon { color: var(--sub); cursor: default; }
@media (max-width: 560px) { .pr-drop { position: fixed; left: 16px; right: 16px; width: auto; } }
/* C2 テスト：その生徒の受けたテストの結果すべて */
.stu-tfs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
.stu-tf { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; font-size: 13.5px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 999px; text-decoration: none; }
.stu-tf.on { color: var(--accent); border-color: var(--accent); font-weight: bold; background: #eaf1fa; }
.stu-tf-sp { flex: 0 0 8px; }
.stu-tests .stt-tb { margin-top: 10px; }
.stu-tests td.ops { display: flex; gap: 6px; }
/* C5 単元ごとの成績・日ごとの記録のテストの行から、テストのタブのその回へ */
a.us-tlink { text-decoration: none; }
a.us-tlink::after, a.dl-tlink::after { content: " ›"; }
/* D2 教材の公開（全員）の上の1行 */
.mt-hint { margin: 0 0 12px; padding: 8px 12px; font-size: 14px; background: #eaf1fa; border-radius: 10px; }
@media (max-width: 560px) {
  /* C2 テスト：細い画面では、1回を小さなまとまりに（開く・印刷が、横に送らなくても見える） */
  .stu-tests table.stt-tb, .stu-tests .stt-tb tbody { display: block; min-width: 0; width: 100%; }
  .stu-tests .stt-tb thead { display: none; }
  .stu-tests .stt-tb tr.stt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d r" "n n" "s o"; gap: 4px 8px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .stu-tests .stt-tb tr.stt-row > td { display: block; padding: 0; border: 0; white-space: normal; }
  .stu-tests .stt-tb tr.stt-row > td:nth-child(1) { grid-area: d; }
  .stu-tests .stt-tb tr.stt-row > td:nth-child(2) { grid-area: n; }
  .stu-tests .stt-tb tr.stt-row > td:nth-child(3) { grid-area: r; justify-self: end; }
  .stu-tests .stt-tb tr.stt-row > td:nth-child(4) { grid-area: s; align-self: center; }
  .stu-tests .stt-tb tr.stt-row > td:nth-child(5) { grid-area: o; justify-self: end; }
  .stu-tests .stt-tb tr.stt-detail, .stu-tests .stt-tb tr.stt-detail > td { display: block; padding: 0; }
}

/* ---------- ことばの教材（2026-11-07 ことばの教材の器の便。src/kotoba.php・src/pages/kotoba.php・kgmem・kgex・kgtest・kgrev）。色は国語＝淡い黄土の地に、こげ茶の字 ---------- */
.subj-kg, .sj.subj-kg, .bx-list li.subj-kg, .today-list li.subj-kg { --sc: #8a5a00; --sc-bg: #f6edd5; --sc-fg: #5e3d00; }
.bx1-i.subj-kg { color: #5e3d00; }
.dst-ic.soft.dst-kokugo { color: #7a4f00; background: #f6edd5; border-color: #f6edd5; }
.kg-rev { display: flex; flex-direction: column; gap: 8px; }
.kg-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.kg-meter div { display: flex; flex-direction: column; padding: 8px 4px; background: #f6edd5; border-radius: 10px; }
.kg-meter b { font-size: 22px; font-variant-numeric: tabular-nums; color: #5e3d00; }
.kg-meter small { font-size: 12px; color: var(--sub); }
.kg-stop { margin: 0; padding: 10px 12px; font-size: 14px; font-weight: bold; color: #7a3d00; background: #fdf1e1; border: 1px solid #ecc48a; border-radius: 10px; }
div.kg-stop { display: flex; flex-direction: column; gap: 8px; }
div.kg-stop p { margin: 0; }
.kg-none { margin: 0; font-size: 14px; color: var(--sub); }
.kg-lv { margin-top: 8px; font-size: 16px; color: var(--text); }
details.kg-ch { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 2px 12px 10px; }
details.kg-ch > summary { cursor: pointer; padding: 10px 2px 6px; font-weight: bold; overflow-wrap: anywhere; }
details.kg-ch > summary:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
details.kg-ch .hs-uh { margin-top: 10px; }
details.kg-ch .tg-list { margin-top: 8px; }
.kg-list .tg-row.now .tg-lc { color: #fff; background: #8a5a00; padding: 2px 10px; border-radius: 12px; }
.kg-list .tg-row.kg-test.hs-go .tg-lc { background: #8a5a00; }
.kg-round { gap: 10px; }
.kg-where { margin: 0; font-size: 13px; color: var(--sub); }
.kg-rt { margin: 0; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.kg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: kgs; }
.kg-st { counter-increment: kgs; display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.kg-st::before { content: counter(kgs); flex: 0 0 auto; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; font-weight: bold; font-size: 14px; color: #5e3d00; background: #f6edd5; }
.kg-st.now { border-color: #8a5a00; box-shadow: inset 0 0 0 1px #8a5a00; }
.kg-st.done::before { content: "✓"; color: #fff; background: #1a7a3c; }
.kg-stt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.kg-stt b { font-size: 16px; }
.kg-stt span { font-size: 13px; line-height: 1.6; color: var(--sub); }
.kg-ok { margin-left: 8px; padding: 0 6px; font-size: 11px; font-weight: normal; color: #1a7a3c; border: 1px solid #1a7a3c; border-radius: 4px; }
.kg-go { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; font-weight: bold; font-size: 14px; color: #fff; background: #8a5a00; border-radius: 8px; text-decoration: none; }
.kg-go.off { color: var(--sub); background: #efede6; font-weight: normal; font-size: 12px; }
.kg-go:focus-visible, .kg-cb:focus-visible, .kg-face.front:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.kg-rec { margin: 0; font-size: 13px; color: var(--sub); }
.kg-rec.center { text-align: center; }
.kg-wlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kg-wlist > li > details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.kg-wlist summary { cursor: pointer; font-size: 17px; font-weight: bold; }
.kg-wlist details[open] summary { margin-bottom: 8px; }
.kg-cards { display: flex; flex-direction: column; gap: 12px; }
.kg-cnt { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.kg-skip { color: #8a5a00; }
.kg-face { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; min-height: 16rem; padding: 22px 16px; color: var(--text); background: #fffdf7; border: 1px solid #e5d9bd; border-radius: 14px; text-decoration: none; }
.kg-face.front { align-items: center; justify-content: center; text-align: center; }
.kg-word { font-size: 30px; font-weight: bold; line-height: 1.9; overflow-wrap: anywhere; }
.kg-word rt, .kg-bword rt, .kg-wlist rt { font-size: 0.45em; font-weight: normal; color: var(--sub); }
.kg-fex { font-size: 16px; line-height: 1.9; }
.kg-fex b, .kg-ex b { color: #8a5a00; }
.kg-hint { font-size: 12px; color: var(--sub); }
.kg-bword { margin: 0; padding-bottom: 6px; font-size: 22px; font-weight: bold; line-height: 1.9; border-bottom: 1px solid var(--line); }
.kg-cnav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.kg-cb { display: grid; place-items: center; min-height: 44px; padding: 0 4px; font-size: 14px; text-align: center; color: #8a5a00; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.kg-cb.go { color: #fff; background: #8a5a00; border-color: #8a5a00; font-weight: bold; }
.kg-cb.off { color: #b5b2a8; }
.kg-endbox { display: flex; flex-direction: column; gap: 14px; padding: 18px 0; }
.kg-big { margin: 0; font-size: 19px; font-weight: bold; text-align: center; }
.kg-mean { margin: 0; font-size: 17px; font-weight: bold; line-height: 1.7; }
.kg-sub { margin: 0; font-size: 12px; letter-spacing: 0.08em; color: var(--sub); }
.kg-ex { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.kg-ex li { padding-left: 1em; text-indent: -1em; line-height: 1.8; }
.kg-ex li::before { content: "・"; color: var(--sub); }
.kg-rel { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.kg-rel b { margin-right: 0.5em; font-size: 12px; font-weight: normal; color: var(--sub); }
details.kg-q { padding-top: 8px; border-top: 1px dashed var(--line); }
details.kg-q > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #8a5a00; }
details.kg-q > summary i { font-style: normal; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border: 1.5px solid #8a5a00; border-radius: 50%; font-weight: bold; }
.kg-qbody p { margin: 8px 0 0; font-size: 14px; line-height: 1.8; }
.kg-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fffdf7; border: 1px solid #e5d9bd; border-radius: 12px; }
.kg-ctop { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.kg-card .kg-word { font-size: 24px; }
.kg-star { margin-left: auto; font-size: 12px; color: #b07a00; }
details.kg-cardmore { margin: 4px 0; }
details.kg-cardmore > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; font-size: 13px; color: #8a5a00; border: 1px solid #d4a340; border-radius: 18px; }
details.kg-cardmore[open] > summary { margin-bottom: 8px; }
.kg-qt { font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.kg-w { font-size: 24px; margin-right: 0.2em; }
.kg-scene { margin: 0; padding: 10px 12px; font-size: 16px; line-height: 1.85; background: #fff; border-left: 4px solid #e5d9bd; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.choice.kg-dk { justify-content: center; color: var(--sub); font-size: 15px; border-style: dashed; }
.kg-fb { display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.kg-exl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kg-exl li { display: flex; gap: 8px; padding: 10px 12px; font-size: 15px; line-height: 1.7; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.kg-exl li.right { border-color: #1a7a3c; background: #eaf6ee; }
.kg-exl li.wrong { border-color: #b3261e; background: #fbeceb; }
.kg-exl li > div { min-width: 0; overflow-wrap: anywhere; }
.kg-m { flex: 0 0 auto; width: 1.2em; font-weight: bold; }
.kg-exl li.right .kg-m { color: #1a7a3c; }
.kg-exl li:not(.right) .kg-m { color: #b3261e; }
.kg-exl small { color: var(--sub); }
.kg-exp { color: #3b3a36; }
.kg-picked { margin: 0; font-size: 13px; font-weight: bold; color: #7a5a12; }
.kg-pickf { margin: 0; }
.kg-acts { padding: 0 12px 10px; }
.kg-again { text-align: center; }
.kg-endnote { margin: -4px 0 4px; }
.kg-ssum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-size: 14px; }
.kg-ssum b { font-variant-numeric: tabular-nums; }
.kg-staff { margin-bottom: 14px; }
.kg-stb { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.kg-stb th, .kg-stb td { padding: 6px 8px; text-align: center; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.kg-stb thead th { font-size: 12px; font-weight: normal; color: var(--sub); }
.kg-stb td.l { text-align: left; white-space: nowrap; }
.kg-stb .kg-rn { display: block; font-size: 11px; color: var(--sub); white-space: normal; }
.kg-stb td.kg-btc { text-align: left; background: #fbf7ec; border-left: 1px solid var(--line); }
.kg-stb td.kg-btc small { display: block; color: var(--sub); }
.kg-stb td.low { color: #b3261e; text-decoration: underline; }
.kg-stb tr.kg-trch th { padding-top: 12px; text-align: left; font-size: 13px; font-weight: bold; color: var(--text); background: #f6edd5; }
.kg-stb tr.kg-trct td { font-weight: bold; background: #fbf7ec; }
.kg-daily input { display: inline-block; width: 6em; }
.kg-mp .kg-stb { min-width: 0; font-size: 9pt; }
.kg-mp .kg-stb thead th { color: #fff; font-weight: 700; }
.kg-mp .kg-stb tr.kg-trch th { color: var(--text); }
.kg-mp .kg-ssum { font-size: 9pt; }
@media print { .kg-mp .kg-stb td.kg-btc, .kg-mp .kg-stb tr.kg-trch th, .kg-mp .kg-stb tr.kg-trct td { background: none; } }

/* 英単語：思い出してから選ぶ・頭文字と文字数・短文の空所の訳（2026-11-07 英単語 第1便。src/wrecall.php・public/wrecall.js・public/memorize.js） */
.wrc-off { display: none !important; }
.wrc-gate[hidden], .wrc-pick[hidden] { display: none; }
.wrc-gate { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.wrc-btns { display: flex; flex-direction: column; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.wrc-no { box-sizing: border-box; width: 100%; min-height: 52px; padding: 8px 14px; font: inherit; font-size: 17px; color: var(--text); background: #fff; border: 1px solid #b5b2a8; border-radius: 14px; cursor: pointer; touch-action: manipulation; }
.wrc-no:focus-visible, .wrc-yes:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.wrc-note { font-size: 13px; }
.wrc-pick { margin: 2px 0 6px; font-size: 14px; }
.wq-ini { margin: 4px 0 8px; font-size: 20px; letter-spacing: .06em; text-align: center; color: var(--text); font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; word-break: break-word; }
.wq-cja { margin: 4px 0 8px; font-size: 15px; line-height: 1.6; color: var(--sub); text-align: center; }
.wi-box { display: flex; flex-direction: column; gap: 12px; }
.wi-steps { margin: 0; padding-left: 1.4em; line-height: 1.8; }
.wi-try { padding: 12px; border: 1px dashed #b5b2a8; border-radius: 12px; background: #fafaf8; }
.wi-box [hidden] { display: none !important; }

/* 英単語の今日の復習（2026-11-07 英単語 第2便-1）：終わりの画面の数の表・覚えたあとの1行・切りかえの日の説明 */
.wsr-sum { width: 100%; max-width: 420px; margin: 0 auto; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wsr-sum th, .wsr-sum td { padding: 8px 12px; border-top: 1px solid var(--line); font-size: 15px; text-align: left; }
.wsr-sum tr:first-child th, .wsr-sum tr:first-child td { border-top: 0; }
.wsr-sum th { font-weight: normal; color: var(--sub); }
.wsr-sum td { text-align: right; font-weight: bold; white-space: nowrap; }
.wsr-tomorrow { margin: 4px 0 0; }
.wsw-ok { margin: 0; padding: 10px 12px; background: #eef7ee; border-radius: 10px; line-height: 1.7; }

/* 英単語の今日の復習：1問の形（2026-11-08 英単語 第2便-2。src/wreview.php・public/wrecall.js・public/wcard.js） */
mark.wsr-hit { background: #fff1b8; color: inherit; padding: 0 2px; border-radius: 3px; }
.wsr-sent { font-size: 20px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; }
.wsr-ear { font-size: 40px; color: var(--sub); }
form.wsr-quick { margin: 14px 0 0; }
form.wsr-noaudio { margin: 12px 0 0; text-align: center; }
.linklike { background: none; border: 0; padding: 6px 4px; font: inherit; font-size: 14px; color: var(--sub); text-decoration: underline; cursor: pointer; touch-action: manipulation; }
.qz-ok .wsr-after { display: block; width: 100%; max-width: 560px; padding: 0 16px; color: var(--text); }
.qz-ok .wsr-after > span { display: block; }
.qz-ok .wsr-after .qz-inst { display: none; }
.qz-ok .wsr-after .qz-en { font-size: 22px; margin: 0; }
.wsr-ans { display: block; margin: 6px 0 0; text-align: center; font-size: 16px; color: var(--text); }
.wsr-others { display: block; margin: 4px 16px 0; max-width: 528px; padding: 10px 14px; background: #fff; border-radius: 10px; font-size: 15px; line-height: 1.6; text-align: center; color: var(--text); }
.wsr-others b { display: block; color: var(--text); overflow-wrap: anywhere; }
.wsr-others span { display: block; font-size: 13px; color: var(--sub); }
.wsr-gap { color: var(--ng); }

/* 英単語のホームの枠（2026-11-09 英単語 第2便-3。src/wsr.php の wsr_home_html）：「○級クリアまで あと○語」＋覚えた語・長く覚えている語・数え方・おかえり・もう10語・今は音が出せない */
.hm-total { margin: 0; text-align: center; font-size: 15px; }
.hm-total b { font-size: 17px; }
.hm-total .small { display: block; }
.wsr-home { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--sc-bg); border: 1px solid var(--line); border-radius: 16px; }
.wsr-clear { margin: 0; padding: 8px 10px; text-align: center; background: #fff; border: 2px solid var(--sc); border-radius: 10px; }
.wsr-clear b { display: block; color: var(--sc-fg); font-size: 17px; }
.wsr-clear span { font-size: 13px; color: var(--sub); }
.wsr-goal { margin: 0; text-align: center; }
.wsr-goal b { display: block; font-size: 18px; color: var(--sc-fg); }
.wsr-goal-s { display: block; font-size: 13px; color: var(--sub); }
.wsr-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; text-align: center; }
.wsr-meter div { background: #fff; border-radius: 10px; padding: 6px 4px; }
.wsr-meter b { display: block; font-size: 20px; color: var(--sc-fg); font-variant-numeric: tabular-nums; }
.wsr-meter b small { font-size: 12px; color: var(--sub); font-weight: normal; }
.wsr-meter > div > small { font-size: 12px; color: var(--sub); }
.wsr-why { font-size: 14px; }
.wsr-why summary { cursor: pointer; color: var(--accent); }
.wsr-why p { margin: 4px 0 0; font-size: 13px; }
.wsr-back { margin: 0; padding: 8px 10px; background: #fff; border-radius: 10px; font-size: 14px; }
.wsr-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 0; font-size: 14px; }
.wsr-more-go { border: 0; border-radius: 10px; padding: 9px 16px; background: var(--sc); color: #fff; font: inherit; font-weight: bold; white-space: nowrap; cursor: pointer; }
.wsr-mute { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; font-size: 14px; }
.wsr-staff-n { margin-top: 4px; }

/* 英単語の「先生と確かめ」（口頭チェック。2026-11-09 英単語 第3便。src/woral.php・src/pages/woral.php）：講師の端末に英語を大きく・○×のボタン・生徒のホームの結果1回 */
.wo-staff { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wo-staff-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wo-staff p { margin: 6px 0 0; }
.wo-results { list-style: none; margin: 6px 0 0; padding: 0; }
.wo-res { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wo-res-d { font-variant-numeric: tabular-nums; min-width: 4.5em; }
.wo-res-ng { flex-basis: 100%; overflow-wrap: anywhere; }
.wo-gap { color: var(--ng); }
.wo-how { margin: 8px 0; padding-left: 1.4em; }
.wo-begin { border: 0; border-radius: 12px; padding: 12px 22px; background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: bold; cursor: pointer; }
.wo-card { text-align: center; }
.wo-pos { margin: 0; }
.wo-word { margin: 18px 0 10px; font-size: 44px; font-weight: bold; line-height: 1.2; overflow-wrap: anywhere; }
.wo-audio { margin: 0 0 10px; }
.wo-ans { max-width: 560px; margin: 0 auto 14px; text-align: left; font-size: 16px; }
.wo-ans summary { cursor: pointer; color: var(--accent); text-align: center; }
.wo-ans p { margin: 6px 0 0; }
.wo-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 10px; }
.wo-btns button { flex: 1 1 140px; max-width: 240px; border: 0; border-radius: 12px; padding: 16px 10px; color: #fff; font: inherit; font-size: 19px; font-weight: bold; cursor: pointer; }
.wo-ok { background: var(--ok); }
.wo-ng { background: var(--ng); }
.wo-tally { margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.wo-end { margin: 0; }
.wo-home { margin: 0; padding: 8px 10px; background: #fff; border: 2px solid var(--sc); border-radius: 10px; text-align: center; font-size: 14px; }
.wo-home > b { display: block; color: var(--sc-fg); font-size: 16px; }
.wsr-pile b { font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .wo-word { font-size: 34px; } }

/* 問題と解説の印刷をテスト以外にも広げる（2026-11-09 決定メモ299。src/qprint.php）
   配る用の白紙（.qp）：1セットごとにページを改める（.qp-sheet）。「問題＋解答と解説」は、解答のはじめ（.qp-cut）でページを改める。字の大きさ・行の間は、テストの印刷（.tp-*）にそろえる */
.qp-pick select { max-width: 100%; }
.qp-range-form fieldset { min-width: 0; margin: 0 0 10px; padding: 6px 10px 8px; border: 1px solid var(--line); border-radius: 8px; }
.qp-range-form legend { padding: 0 4px; font-weight: bold; }
.qp-g { margin: 0 0 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
.qp-g > summary { min-height: 36px; padding: 6px 0; font-weight: bold; cursor: pointer; overflow-wrap: anywhere; }
.qp-ck { display: flex; align-items: flex-start; gap: 6px; min-height: 32px; margin: 2px 0; overflow-wrap: anywhere; }
.qp-ck input { flex: 0 0 auto; margin-top: 4px; }
.qp-lt { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.qp-lt .small { white-space: normal; }
.qp-ck.all { color: var(--accent); }
.qp-stage { margin: 14px 0 4px; padding: 4px 8px; background: #f3f2ee; border-radius: 6px; }
.qp-go { min-height: 44px; padding: 0 20px; font-weight: bold; }
.qp-sum { font-weight: bold; }
.qp-sheet + .qp-sheet { margin-top: 28px; padding-top: 18px; border-top: 3px double #8a877f; }
.qp-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; margin: 8px 0 12px; font-size: 13px; }
.qp-range { flex: 1 1 100%; font-weight: bold; }
.qp-line { display: inline-block; width: 14em; margin-left: 6px; border-bottom: 1px solid #1a1a1a; }
.qp-line.short { width: 8em; }
.qp-inst { margin: 0 0 6px; font-size: 13px; }
.qp-passage { margin: 0 0 10px; padding: 8px 10px; line-height: 1.9; border: 1px solid #8a877f; border-radius: 4px; overflow-wrap: anywhere; }
.qp-passage .shk-ul, .qp-q .shk-ul { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: inherit; background: none; }
.qp-ulno { font-size: 10px; font-weight: bold; }
.qp-ans { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; }
.qp-box { display: inline-block; width: 3.2em; height: 1.6em; border: 1px solid #1a1a1a; border-radius: 3px; }
.qp-atb { width: 100%; border-collapse: collapse; font-size: 13px; }
.qp-atb th, .qp-atb td { padding: 4px 6px; text-align: left; vertical-align: top; border: 1px solid #b9b6ad; }
.qp-atb td.qp-no, .qp-atb td.qp-rt { width: 3em; text-align: center; white-space: nowrap; }
.qp-atb td.qp-ss { width: 9em; font-size: 12px; }
.qp-atb td.qp-ex { margin: 0; border-radius: 0; }
.qp-ex > span { display: block; }
.qp-list .sl-tmat { display: block; }
@media print {
  .tp-page .qp-sheet + .qp-sheet { margin-top: 0; padding-top: 0; border-top: 0; break-before: page; page-break-before: always; }
  .tp-page .qp-cut { break-before: page; page-break-before: always; }
  .tp-page .qp-meta, .tp-page .qp-atb, .tp-page .qp-inst, .tp-page .qp-ans { font-size: 8.5pt; }
  .tp-page .qp-atb tr { break-inside: avoid; page-break-inside: avoid; }
  .tp-page .qp-atb td.qp-ex { background: none; border: 1px solid #b9b6ad; padding: 3pt 5pt; }
}
/* 英単語の「今日のぶん」（2026-11-11 便A＝見本 生徒のホーム・今日の復習のとちゅう・今日のぶんが終わったとき。src/wsr.php の wsr_today_card_html・wsr_review_head_html） */
.wsr-today { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.wsr-today-h { margin: 0; font-size: 15px; font-weight: bold; }
.wsr-today-big { margin: 0; font-size: 30px; font-weight: bold; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wsr-bar { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; }
.wsr-bar-bg { fill: #e6eaf0; } .wsr-bar-done { fill: #1f2a44; } .wsr-bar-rev { fill: #2f6fb0; } .wsr-bar-new { fill: #f2a65a; }
.wsr-today-row { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: 14px; }
.wsr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 6px; vertical-align: baseline; }
.wsr-dot-rev { background: #2f6fb0; } .wsr-dot-new { background: #f2a65a; }
.wsr-today-go { display: block; text-align: center; background: #1f2a44; color: #fff; text-decoration: none; font-size: 17px; font-weight: bold; padding: 13px; border-radius: 12px; }
.wsr-today-note { margin: 0; line-height: 1.6; }
.wsr-today-done { background: #1f2a44; color: #f7f6f1; border-color: #1f2a44; }
.wsr-today-done .wsr-today-h { font-size: 24px; }
.wsr-today-s { margin: 0; font-size: 14px; line-height: 1.7; }
.wsr-links { margin: 0; display: flex; gap: 8px; }
.wsr-link { flex: 1; text-align: center; font-size: 14px; padding: 10px 8px; border: 1px solid #c9d3e3; border-radius: 10px; text-decoration: none; background: #fff; }
.wsr-out { margin: 0; line-height: 1.6; }
.wsr-rhead { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.wsr-rhead-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-size: 14px; }
.wsr-rhead-top span { font-size: 13px; color: var(--sub); }
.wsr-rhead-s { margin: 0; }
/* 英単語の1日の枠（講師の教材の設定。2026-11-11 便A＝見本「先生の枠を選ぶ」）・生徒の詳細の英単語（見本「先生の生徒の詳細」） */
.sh-frames { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 6px 0; padding: 0; border: 0; }
.sh-fr { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px; border: 1px solid #c9d3e3; border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; }
.sh-fr input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sh-fr:has(input:checked), .sh-fr-on { background: #e3edf8; border: 3px solid #2f6fb0; padding: 10px; }
.sh-fr:has(input:focus-visible) { outline: 2px solid #1f2a44; outline-offset: 2px; }
.sh-fr-min { font-size: 24px; font-weight: bold; }
.sh-fr-s { font-size: 12px; color: var(--sub); }
.sh-fr-n { font-size: 18px; font-weight: bold; }
.sh-fr-act { margin: 6px 0; }
.sh-fr-go { border: 0; border-radius: 10px; padding: 11px 22px; background: #1f2a44; color: #fff; font: inherit; font-weight: bold; cursor: pointer; }
.wsr-sd { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.wsr-sd-top { margin: 0; font-size: 15px; }
.wsr-sd-row { display: flex; flex-wrap: wrap; gap: 16px; }
.wsr-sd-wk { flex: 2 1 320px; }
.wsr-sd-n { flex: 1 1 220px; }
.wsr-sd-n p, .wsr-sd-wk p { margin: 2px 0; }
.wsr-sd-big { font-size: 20px; font-weight: bold; }
.wsr-wk { display: block; width: 100%; max-width: 520px; height: auto; }
.wsr-wk-base { stroke: #c9d3e3; stroke-width: 1; }
.wsr-wk-n { font-size: 11px; text-anchor: middle; fill: var(--text); }
.wsr-wk-d { font-size: 10px; text-anchor: middle; fill: var(--sub); }
.wsr-sd-flags { margin: 0; padding: 8px 12px 8px 28px; background: #fff4ea; border-radius: 10px; font-size: 14px; line-height: 1.7; }
.wsr-sd-none { margin: 0; }
/* 2026-11-14 便C-1：先生が「合格と同じ扱い」にする（ボタン・確かめ）・印ではない1行・受けられる単元テストの1行 */
a.small-btn { display: inline-block; text-decoration: none; margin-top: 4px; }
.wsr-waive-ask { margin: 8px 0 4px; padding: 10px 12px; background: #fff; border: 1px solid var(--accent); border-radius: 10px; }
.wsr-waive-ask p { margin: 0 0 6px; }
.wsr-sd-info { margin: 0 0 8px; padding: 6px 12px 6px 28px; background: #f3f5f9; border-radius: 10px; line-height: 1.7; }
.wsr-unit-now { display: block; margin: 0; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; font-size: 15px; }
.wsr-unit-now b { color: var(--accent); }
/* ==================== 学習記録の「時間割」（2026-11-12 時間割の前半の便＝学習記録帳の仕様書 追補15・見本 第6版。部品は src/jikanwari_view.php） ====================
   色は学習記録の科目の色（kk-＊）。セットは紫（kk-st）。予定は同じ色を薄く、予定のほかにやった勉強は灰色（jw-out）。赤字・警告の色は使わない。グラフは SVG（属性だけで形を決める） */
.kk-st { --sc: #6b55a8; --st: #fff; }
.kr svg .kk-st, .kt svg .kk-st, .krp-page svg .kk-st, .krp-flow svg .kk-st { fill: var(--sc); }
.jw-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.jw-svg [class^="kk-"], .jw-svg [class*=" kk-"] { fill: var(--sc); }
.jw-svg .jw-out { fill: #a9a69d; }
.jw-svg .tk { fill: #ebe9e3; }
.jw-svg .gl { stroke: #dcdcd6; stroke-width: .6; }
.jw-svg .gl.base { stroke: #9a978e; stroke-width: 1; }
.jw-svg .hr, .jw-svg .vl { stroke: #dcdcd6; stroke-width: 1; }
.jw-svg .pl { fill: none; stroke: #262421; stroke-width: 1; stroke-dasharray: 3 2; }
.jw-svg .nw { stroke: #262421; stroke-width: 1.5; opacity: .6; }
.jw-svg text { font-size: 9px; fill: #5f5d57; }
.jw-svg .ax { text-anchor: end; }
.jw-svg .tc, .jw-svg .vv, .jw-svg .dd, .jw-svg .dh, .jw-svg .dm { text-anchor: middle; }
.jw-svg .dd, .jw-svg .rw, .jw-svg .dh { font-size: 10px; fill: #222; }
.jw-svg .dh { font-size: 12px; font-weight: 700; }
.jw-svg .rw { text-anchor: end; }
.jw-svg text.lb { font-size: 11px; fill: #222; }
.jw-svg rect.lb { fill: #2e6f62; opacity: .72; }
.jw-svg rect.lb.last { opacity: 1; }
.jw-svg .kn { font-size: 11px; font-weight: 700; fill: #fff; }
.jw-svg .kt { font-size: 10px; fill: #fff; }
.jw-svg .kn.lt, .jw-svg .kt.lt { fill: #2b2a26; }
.jw-svg .ho { fill: #5f5d57; }
.jw-pbar { display: inline-block; width: 56px; height: 6px; margin-left: 6px; vertical-align: middle; }
.jw-pbar .tr { fill: #e3e1da; }
.jw-pbar .on { fill: #2e6f62; }
.jw-chip { display: inline-block; padding: 0 7px; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--st); background: var(--sc); border-radius: 5px; white-space: nowrap; }
.jw-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; background: var(--sc); border-radius: 2px; }
/* 講師・生徒の時間割を作る画面 */
.jw-ed { display: flex; flex-direction: column; gap: 12px; }
.jw-since { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.jw-since .small-btn { margin-left: auto; }
.jw-sum { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 15px; }
.jw-sum b { font-variant-numeric: tabular-nums; }
.jw-tt-scroll { overflow-x: auto; }
.jw-tt { display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); gap: 8px; min-width: 840px; }
.jw-day { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: #efede7; border-radius: 10px; }
.jw-day h3 { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 6px; min-height: 2.8em; margin: 0; font-size: 16px; }
.jw-day h3 small { font-size: 12px; font-weight: 400; line-height: 1.4; text-align: right; color: var(--sub); }
.jw-koma { display: grid; gap: 2px; padding: 6px 8px; font-size: 14px; line-height: 1.45; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.jw-koma .t { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jw-koma .nm { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jw-koma .ft { display: flex; justify-content: space-between; align-items: center; }
.jw-koma form { margin: 0; }
.jw-x { padding: 0; font: inherit; font-size: 12px; color: var(--sub); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.jw-add, .jw-copy { display: block; padding: 4px; font-size: 13px; text-align: center; color: var(--accent); text-decoration: none; border: 1px dashed #b5b2a8; border-radius: 8px; }
.jw-copy { color: var(--sub); border-style: solid; }
.jw-add.off { color: var(--sub); }
.jw-panel h3 { margin: 0 0 8px; font-size: 16px; }
.jw-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0; }
.jw-form label { display: grid; gap: 2px; font-size: 13px; color: var(--sub); }
.jw-form select, .jw-form input[type=text] { font: inherit; font-size: 15px; color: var(--text); padding: 6px 8px; border: 1px solid #b5b2a8; border-radius: 6px; background: #fff; }
.jw-form .btn { width: auto; margin: 0; padding: 9px 18px; }
.jw-days { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.jw-dc { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 15px; color: var(--text); background: #efede7; border-radius: 8px; cursor: pointer; }
.jw-btns { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.jw-btns form { margin: 0; }
.jw-sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 10px; }
.jw-setcard { padding: 8px 10px; font-size: 15px; background: #efede7; border-radius: 8px; }
.jw-setcard ul { margin: 4px 0 6px; padding-left: 1.2em; }
.jw-setcard.edit { grid-column: 1 / -1; }
/* 講師の画面（時間割・週のまとめ・これまでの記録の切りかえ） */
.jw-entry { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.jw-segs { margin-bottom: 12px; }
.jw-staff .kt-head .small-btn.solid { margin-left: 6px; }
.jw-range { display: inline-flex; gap: 4px; }
.jw-range .small-btn { text-decoration: none; }
.jw-paper-scroll { overflow-x: auto; padding: 4px 0 16px; }
.jw-paper-scroll .jwp { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.jw-ltk { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 0 0 12px; }
.jw-ltk > div { display: grid; gap: 2px; align-content: start; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.jw-ltk .lb, .jw-ltk .s { font-size: 13px; color: var(--sub); }
.jw-ltk .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.jw-ltk .v small { font-size: 14px; font-weight: 400; }
.jw-h3 { margin: 4px 0; font-size: 14px; font-weight: 400; color: var(--sub); }
.jw-share { height: 12px; border-radius: 6px; overflow: hidden; }
/* 生徒：ホームの「今日の予定」 */
.jw-home { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.jw-home h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-size: 18px; }
.jw-link { font-size: 14px; font-weight: 400; color: var(--accent); text-decoration: none; }
.jw-mini { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; font-size: 15px; }
.jw-mini .t { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.jw-ck { font-size: 18px; font-weight: 700; line-height: 1; text-align: right; color: #2e6f62; }
.jw-ck.no { font-size: 13px; font-weight: 400; color: var(--sub); }
.jw-now { margin-left: 6px; padding: 0 6px; font-size: 12px; color: #fff; background: #2e6f62; border-radius: 4px; }
.jw-next { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: #e4efec; border-radius: 10px; }
.jw-next form { margin: 0; }
.jw-go { display: inline-block; min-width: 5.5em; padding: 10px 18px; font: inherit; font-size: 16px; font-weight: 700; text-align: center; color: #fff; text-decoration: none; background: #2e6f62; border: 0; border-radius: 999px; cursor: pointer; }
/* 生徒：今日の予定の画面 */
.jw-band { max-width: 560px; }
.jw-note { margin: -8px 0 0; }
.jw-plans { display: flex; flex-direction: column; gap: 8px; }
.jw-plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.jw-plan.off { opacity: .6; }
.jw-plan.wide { grid-template-columns: 1fr; }
.jw-plan .t { font-size: 14px; color: var(--sub); font-variant-numeric: tabular-nums; }
.jw-plan .st { font-size: 14px; color: var(--sub); }
.jw-plan .bt { grid-row: 1 / span 3; grid-column: 2; }
.jw-plan .bt form { margin: 0; }
/* 今日の予定：コマは1行ずつ・押すと開く（2026-11-21＝学習記録の仕様書 追補20-2） */
.jw-row > .jw-open, .jw-row > .jw-line { grid-column: 1; min-width: 0; }
.jw-row > .bt { grid-row: 1; align-self: start; }
.jw-line { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.jw-line .nm { min-width: 0; }
summary.jw-line { cursor: pointer; list-style: none; }
summary.jw-line::-webkit-details-marker { display: none; }
summary.jw-line::after { content: '▾'; margin-left: 4px; font-size: 12px; color: var(--sub); }
.jw-open[open] > summary.jw-line::after { content: '▴'; }
.jw-mn { margin-left: auto; }
.jw-mn { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jw-mn.ok { color: #2e6f62; }
.jw-mn.ok > span { font-size: 20px; line-height: 1; }
.jw-mn.dim { font-weight: 400; color: var(--sub); }
summary.jw-line:not(:has(.jw-mn))::after { margin-left: auto; }
.jw-body { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.jw-in { margin: 0; color: var(--sub); }
.jw-in-h { margin: 0; font-size: 14px; color: var(--sub); }
.jw-st { display: inline-block; min-width: 3em; text-align: center; font-size: 14px; color: var(--sub); }
.jw-st.ok { font-size: 28px; font-weight: 700; color: #2e6f62; }
.jw-recs, .jw-more { grid-column: 1 / -1; font-size: 14px; }
.jw-recs summary { cursor: pointer; color: var(--accent); }
.jw-reclist { display: grid; gap: 4px; margin-top: 4px; }
.jw-rec { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; padding: 6px 8px; font-size: 14px; background: #f4f3ef; border-radius: 6px; }
.jw-k { padding: 0 5px; font-size: 12px; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.jw-fx { font-size: 12px; color: var(--sub); }
.jw-ops { display: inline-flex; gap: 14px; }
.jw-ops form { margin: 0; }
.jw-lk { padding: 0; font: inherit; font-size: 14px; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.jw-lk.dim { color: var(--sub); }
.jw-more form { display: inline; margin: 0; }
.jw-ask { margin: 0 8px; }
.jw-foot { display: grid; gap: 8px; }
.jw-foot form { margin: 0; }
.kr-ask { margin: 0; font-size: 15px; }
/* 紙（A4。週のまとめ・これまでのポイント＝たて、時間割＝よこ）。画面でも同じ紙のまま出す */
.jwp { --ink: #222; --sub: #5f5d57; --rule: #dcdcd6; --tint: #f4f3ef; box-sizing: border-box; display: flex; flex-direction: column; gap: 4mm; width: 210mm; height: 297mm; overflow: hidden; margin: 0 auto;
  padding: 12mm 13mm 9mm; color: var(--ink); background: #fff; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 9.2pt; line-height: 1.55;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.jwp.land { width: 297mm; height: 210mm; padding: 9mm 11mm 7mm; gap: 3mm; }
.jwp * { box-sizing: border-box; }
.jwp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 6mm; padding-bottom: 2.6mm; border-bottom: .6mm solid #262421; }
.jwp-head .ttl { font-size: 17pt; font-weight: 700; letter-spacing: .04em; }
.jwp-head .per { font-size: 10pt; color: var(--sub); }
.jwp-head .who { font-size: 8.6pt; line-height: 1.5; text-align: right; color: var(--sub); }
.jwp-head .who b { display: block; font-size: 12pt; color: var(--ink); }
.jwp-head .brand { margin: 0; font-size: 8pt; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.jwp-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3mm; }
.jwp-kpi > div { display: grid; gap: .6mm; align-content: start; padding: 2.4mm 3mm; background: var(--tint); border-radius: 2mm; }
.jwp-kpi .lb { font-size: 8pt; color: var(--sub); }
.jwp-kpi .v { font-size: 16pt; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.jwp-kpi .v small { font-size: 9pt; font-weight: 400; color: var(--sub); }
.jwp-kpi .s { font-size: 7.8pt; color: var(--sub); }
.jwp-kpi .jw-pbar { width: 100%; margin: 1mm 0 0; }
.jwp-sec { display: grid; gap: 1.6mm; align-content: start; }
.jwp-sec h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 3mm; margin: 0; font-size: 10pt; }
.jwp-sec h4 span { font-size: 7.6pt; font-weight: 400; color: var(--sub); }
.jwp-legend { display: flex; flex-wrap: wrap; gap: 1mm 4mm; font-size: 8pt; color: var(--sub); }
.jwp-tb { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.jwp-tb th { padding: 1mm 1.4mm; font-size: 7.8pt; font-weight: 400; text-align: left; color: var(--sub); border-bottom: .3mm solid var(--ink); }
.jwp-tb td { padding: 1mm 1.4mm; vertical-align: top; border-bottom: .2mm solid var(--rule); }
.jwp-tb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jwp-tb .it { font-size: 7.8pt; color: var(--sub); }
.jwp-tb .dim { color: var(--sub); }
.jwp-tb tfoot td { font-weight: 700; border-top: .3mm solid var(--ink); border-bottom: 0; }
.jwp-two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6mm; }
.jwp-note { margin: 1mm 0 0; font-size: 7.8pt; color: var(--sub); }
.jwp-pts div p { margin: 0 0 .8mm; }
.jwp-pts > div { padding: 2.4mm 3.4mm; background: var(--tint); border-left: .8mm solid #2e6f62; border-radius: 0 2mm 2mm 0; }
.jwp-foot { display: flex; justify-content: space-between; gap: 5mm; margin-top: auto; padding-top: 1.6mm; font-size: 7.4pt; color: var(--sub); border-top: .25mm solid var(--rule); }
.jwp-foot p { max-width: 74%; margin: 0; }
.jwp-foot span { text-align: right; white-space: nowrap; }
.jw-ttg { flex: 1 1 auto; min-height: 0; }
.jwpr .krp-sheets { padding: 4px 0 20px; }
@page jwp-a4 { size: A4 portrait; margin: 0; }
@page jwp-a4l { size: A4 landscape; margin: 0; }
@media print {
  .krp-on .hw-h1row { display: none !important; }   /* 見出しの行（講師の「？」つき）も紙に出さない */
  .krp-on .jwpr .krp-sheets { padding: 0; overflow: visible; }
  .krp-on .jwp { page: jwp-a4; box-shadow: none; margin: 0; height: 296mm; break-inside: avoid; page-break-inside: avoid; }
  .krp-on .jwp.land { page: jwp-a4l; height: 209mm; }
}
@media (max-width: 700px) {
  .jw-ltk { grid-template-columns: 1fr 1fr; }
}
/* ---------- 時間割の後半の便（2026-11-12＝追補15-7）：その週だけ・移す・見直しどき・ひな形・ひとこと・時間割が無い生徒の印（講評は 2026-11-13 にやめた） ---------- */
.jw-spbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 10px 12px; background: #f1edf8; border: 1px solid #d9d0ea; border-radius: 10px; }
.jw-spbar form { margin: 0; }
.jw-splist, .jw-tpls { margin: 0 0 10px; padding-left: 1.2em; }
.jw-tpls li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.jw-tpls form { margin: 0; }
.jw-koma.jw-streak { border-color: #b5b2a8; background: #f6f5f1; }
.jw-sk { justify-self: start; padding: 0 6px; font-size: 11px; color: #5f5d57; background: #ebe9e3; border-radius: 4px; }
.jw-skt { font-size: 12px; line-height: 1.5; color: #5f5d57; }
.jw-mvp { grid-column: 1 / -1; display: grid; gap: 6px; padding: 8px 10px; background: #f4f3ef; border-radius: 8px; }
.jw-mvp form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.jw-mvp label { display: grid; gap: 2px; font-size: 13px; color: var(--sub); }
.jw-mvp select { font: inherit; font-size: 15px; padding: 4px 6px; border: 1px solid #b5b2a8; border-radius: 6px; background: #fff; }
.jw-mvp p { margin: 0; }
.jw-more a.jw-lk { margin-left: 14px; }
.jw-note-box { display: grid; gap: 6px; }
.jw-note-box form { display: grid; gap: 8px; margin: 0; }
.jw-note-box p { margin: 0; }
.jw-none, .jw-none-s { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; color: var(--sub); }
.jw-none-s { display: inline-flex; margin: 0 0 0 8px; }
.jw-spm { display: block; font-size: 11px; color: var(--sub); }
.jwp-quote { margin: 0; padding: 1.6mm 3mm; background: var(--tint); border-radius: 2mm; }
.jwpr .krp-sheets .jwp + .jwp { margin-top: 18px; }
@media print {
  .krp-on .jwp { break-after: page; page-break-after: always; }
  .krp-on .jwp:last-child { break-after: auto; page-break-after: auto; }
  .krp-on .jwpr .krp-sheets .jwp + .jwp { margin-top: 0; }
}
.jwp-cp { gap: 3mm; }
.jwp-cp .jwp-tb td { padding: .7mm 1.4mm; }
.jwp-cp .jwp-tb .it { font-size: 7.4pt; }
.jwp-cp .jwp-kpi > div { padding: 1.8mm 3mm; }
/* 週のまとめの「面談のための数字」と、A4たて1枚に収める詰め方（2026-11-13＝追補17-5）。よい・わるいの色は付けない */
.jwp-cp .jw-gt .it { margin-left: 2.4mm; }
.jwp.jwp-cp { padding: 9mm 12mm 7mm; gap: 2mm; }
.jwp-cp .jwp-head { padding-bottom: 2mm; }
.jwp-cp .jwp-head .ttl { font-size: 15pt; }
.jwp-cp .jwp-kpi > div { padding: 1.6mm 3mm; gap: .3mm; }
.jwp-cp .jwp-kpi .v { font-size: 14pt; }
.jwp-cp .jwp-sec { gap: 1.2mm; }
.jwp-cp .jwp-legend { font-size: 7.6pt; }
.jwp-mdk #jw-md-trend .v { font-size: 10.5pt; white-space: nowrap; }
.jwp-cp .jw-gt-s { font-size: 8pt; }
.jwp-cp .jw-gt-s td { padding: .5mm 1.4mm; line-height: 1.3; }
.jwp-cp .jw-gt-s .it, .jwp-cp .jw-gt-s th { font-size: 7pt; }
.jwp-cp .jwp-quote { padding: 1.2mm 3mm; }
.jw-svg .dr { font-size: 10px; font-weight: 700; fill: #2b2a26; text-anchor: middle; }
.jwp-cp .jw-svg .rw { font-size: 9px; }
.jwp-md { gap: 1.2mm; }
.jwp-mdk { display: grid; grid-template-columns: 1fr 1.15fr .95fr 1.15fr; gap: 3mm; }
.jwp-mdk > div { display: grid; gap: .3mm; align-content: start; padding: 1.6mm 2.6mm; background: var(--tint); border-radius: 2mm; }
.jwp-mdk .lb { font-size: 7.8pt; color: var(--sub); }
.jwp-mdk .v { font-size: 12pt; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.jwp-mdk .v small { font-size: 8.4pt; font-weight: 400; color: var(--sub); }
.jwp-mdk .s { font-size: 7.4pt; line-height: 1.4; color: var(--sub); }

/* ---------- チャット・お知らせの添付（写真・PDF。2026-11-15 チャット 2便＝決定メモ134・137。決まりは src/attach.php、動きは public/attach.js） ---------- */
.ch-cmp { flex-wrap: wrap; }
.at-tray, .at-msg { flex: 1 0 100%; }
.at-tray[hidden], .at-msg[hidden] { display: none; }
.at-clip { position: relative; flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; color: #4a4843; background: #f1f0ec; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; touch-action: manipulation; }
.at-clip:focus-within { outline: 3px solid #262421; outline-offset: 1px; }
.at-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.at-clip-t { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.at-tray { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; }
.at-it { position: relative; display: inline-flex; align-items: center; gap: 6px; box-sizing: border-box; min-height: 64px; background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; }
.at-it.ph { width: 64px; height: 64px; padding: 0; overflow: hidden; }
.at-it.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at-it.pdf { max-width: 260px; padding: 6px 34px 6px 8px; }
.at-x { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; padding: 0; font-size: 16px; line-height: 24px; color: #fff; background: rgba(38, 36, 33, .78); border: 0; border-radius: 50%; cursor: pointer; }
.at-msg { margin: 0; padding: 6px 10px; font-size: 14px; line-height: 1.5; color: var(--ng); background: #fdf1ef; border-radius: 8px; }
.at-sending .at-msg { color: var(--sub); background: #f4f3ef; }
.at-list { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ch-b .at-list + .ch-btx { display: block; margin-top: 6px; }
.at-ph { display: block; width: 240px; max-width: 100%; }
/* 写真は切らない：幅240px・高さ320px の中に、縦横の比のまま全体を縮める（余白が出てよい。2026-11-16 直し①） */
.at-ph img { display: block; box-sizing: border-box; width: auto; height: auto; max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid var(--line); background: #f4f3ef; }
.at-pdf, .at-it.pdf { text-decoration: none; color: var(--text); }
.at-pdf { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; box-sizing: border-box; padding: 8px 12px; background: #fff; border: 1px solid #b5b2a8; border-radius: 10px; }
.at-pdf-k { flex: 0 0 auto; padding: 2px 6px; font-size: 12px; font-weight: bold; letter-spacing: .04em; color: #fff; background: #b3261e; border-radius: 4px; }
.at-pdf-n { min-width: 0; font-size: 14px; font-weight: bold; overflow-wrap: anywhere; }
.at-pdf small, .at-it.pdf small { flex: 0 0 auto; font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.at-pdf:focus-visible, .at-ph:focus-visible { outline: 3px solid #262421; outline-offset: 2px; }
.nb-at { margin: 10px 0 0; }
.nt-att { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 12px; }
.nt-att .at-tray, .nt-att .at-msg { order: 3; }
.nt-att .at-clip { flex: 0 0 auto; width: auto; height: 40px; padding: 0 14px 0 10px; grid-auto-flow: column; gap: 6px; border-radius: 999px; font-size: 14px; font-weight: bold; }
.nt-att .at-clip-t { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
.nt-atn { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 12px; color: var(--sub); border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.ch-ntf { margin-left: auto; }
.ch-tools .ch-sp { display: none; }

/* 講師へのガイド：長く記録がない生徒（31日以上）の1行と名前の並び（2026-11-20 決定メモ383） */
.gd-row.gd-long { padding: 0; }
.gd-long-go { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 14px; box-sizing: border-box; color: var(--text, #222); text-decoration: none; font-weight: bold; }
.gd-long-go:hover { background: #f3f3ef; }
.gd-long-go b { font-variant-numeric: tabular-nums; }
.gd-long-go span { margin-left: auto; color: var(--sub); font-size: 18px; }
.gd-names { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0; }
.gd-long-nm a { display: inline-flex; align-items: center; min-height: 36px; }

/* 生徒の詳細の「教材の設定」：塾システムに近い形（2026-11-20 決定メモ384・見本 F83smUPbtYvMMinoLnLBZ1）
   上の「見せているもの」の数の1行／種類ごとの枠／科目ごとの枠と「（まとめて）」／名前とチェックだけの2〜3列（スマホは1列） */
.sh-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 20px; font-size: 15px; }
.sh-sum-h { font-size: 16px; }
.sh-sum-n { font-variant-numeric: tabular-nums; }
.card.sh-kind { padding: 16px 20px; }
.sh-kind > .sh-h { margin: 0 0 10px; font-size: 18px; }
.sh-sbox { margin-top: 10px; padding: 10px 16px 12px; background: #f4f3ef; border-radius: 10px; }
.sh-allck-l { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-weight: bold; cursor: pointer; }
.sh-sm { font-size: 13px; font-weight: normal; color: var(--sub); }
.sh-sbhd { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.sh-snote { font-size: 13px; color: var(--sub); line-height: 1.4; }
.sh-grid { display: grid; gap: 0 24px; margin-top: 2px; }
.sh-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sh-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label.sh-row.sh-item { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; font-size: 16px; color: var(--text); cursor: pointer; }
.sh-item .sh-nm, .sh-ckl .sh-nm { font-weight: normal; display: inline; min-width: 0; overflow-wrap: anywhere; }
.sh-item .tag, .sh-ckl .tag { margin-left: 6px; font-size: 12px; vertical-align: middle; }
input.sh-sw.sh-ck, input.sh-allck { appearance: auto; -webkit-appearance: checkbox; display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; margin: 0; padding: 0; border-radius: 0; background: none; accent-color: var(--accent); cursor: pointer; }
input.sh-sw.sh-ck::after { content: none; }
.sh-item .sh-state, .sh-ckl .sh-state { flex: 0 0 auto; width: auto; min-width: 3.5em; text-align: left; }
label.sh-row.sh-item.changed { background: #fff3cc; }
/* 学習の教材の行 */
.sh-kind .sh-mats { display: block; background: #f4f3ef; border-radius: 10px; padding: 0 16px; }
.sh-row.sh-mat { display: block; padding: 6px 0; border-bottom: 0; border-top: 1px solid var(--line); background: transparent; }
.sh-row.sh-mat:first-child { border-top: 0; }
.sh-row.sh-mat.changed { background: #fff3cc; }
.sh-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.sh-ckl { display: flex; align-items: center; gap: 10px; flex: 0 0 300px; min-width: 0; min-height: 44px; margin: 0; font-size: 16px; cursor: pointer; }
.sh-inl { flex: 1 1 280px; min-width: 0; }
.sh-inl .sh-srow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0; border-top: 0; }
.sh-inl .sh-sk { padding-top: 0; font-weight: normal; color: var(--sub); }
.sh-inl .sh-sv .small { display: inline; margin: 0 0 0 4px; }
.sh-inl .sh-more { margin-top: 0; }
.sh-setd { margin: 0 0 4px; }
.sh-setd > summary { min-height: 36px; }
.sh-setd .sh-set { padding: 0 0 6px; }
@media (max-width: 760px) {
  .sh-grid.c3, .sh-grid.c2 { grid-template-columns: 1fr; }
  .sh-ckl { flex-basis: 100%; }
  .card.sh-kind { padding: 14px 14px; }
  .sh-sbox, .sh-kind .sh-mats { padding-left: 12px; padding-right: 12px; }
}

/* ---------- 生徒の詳細「進み具合」（2026-11-20 便2＝決定メモ387。src/stulist.php の sl_detail_html・public/prog.js） ---------- */
.sl-gl-more { margin-top: 4px; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.sl-tn { display: flex; flex-direction: column; gap: 2px; }
.sl-talk { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 12px 16px; background: #fff6e0; border: 1px solid #e0b44c; border-radius: 12px; }
.sl-tk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 15px; }
.sl-tk + .sl-tk { padding-top: 8px; border-top: 1px solid #ecd59a; }
.sl-tk-w { color: #7a4f00; white-space: nowrap; }
.sl-tk-b { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; }
.sl-tk-why { font-size: 13px; color: #5c4a1e; }
.sl-tk-a .stt-mini { min-height: 44px; }
table.sl-mtb { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
.sl-mtb th, .sl-mtb td { padding: 12px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef0f2; }
.sl-mtb thead th { font-size: 12px; font-weight: normal; color: var(--sub); border-bottom: 1px solid var(--line); }
.sl-mtb td.sl-pass .sl-prog { display: block; width: 120px; height: 8px; margin-top: 6px; }
.sl-mtb td.sl-dcell { text-align: right; white-space: nowrap; }
.sl-mtb thead th, .sl-mtb td.sl-mlast, .sl-mtb td.sl-wait { white-space: nowrap; }
.sl-mtb .sl-det { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; }
.sl-mtb tr.sl-drow > td { padding: 0; background: #f4f3ef; }
.sl-dbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; padding: 14px 18px; }
.sl-dsec h3 { margin: 0 0 6px; font-size: 15px; }
.sl-dsec p { margin: 4px 0; }
.sl-dsec.sl-dwords, .sl-dsec.sl-dops { grid-column: 1 / -1; }
.sl-dday { display: grid; grid-template-columns: 96px 60px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid #e3e1da; font-size: 14px; }
.sl-dday em { font-style: normal; color: var(--sub); }
.sl-dmore { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; }
.sl-dmore a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.sl-keys { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sl-yet { margin: 10px 0 0; }
details.dl > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; cursor: pointer; }
details.dl > summary h2 { margin: 0; font-size: 17px; }
.dl-gap { padding: 8px 4px; border-bottom: 1px solid #eef0f2; font-size: 14px; color: var(--sub); }
details.sl-cl > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; font-size: 16px; font-weight: bold; cursor: pointer; }
details.sl-cl > summary .small { font-weight: normal; }
details.sl-cl[open] > summary { margin-bottom: 8px; }
@media (max-width: 760px) {
  .sl-dbox { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .sl-dday { grid-template-columns: 80px 50px minmax(0, 1fr); }
}
/* 生徒一覧の名前の検索（2026-12-03）：外れた行・「検索をやめる」を hidden で隠す */
.sl-tb tr[hidden], #sl-qclear[hidden] { display: none; }
/* 学習記録が届いた知らせ（2026-12-03＝決定メモ428のD。public/staff.js が画面の上に置く。ひとりでには消えない） */
.kr-ntf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 8px 8px 14px; border: 1px solid #9cc0e6; border-left: 5px solid #1f5fa8; border-radius: 8px; background: #eef5fc; color: #173a63; }
.kr-ntf[hidden] { display: none; }
.kr-ntf-t { flex: 1 1 14em; font-weight: 700; }
.kr-ntf-go { min-height: 44px; display: inline-flex; align-items: center; }
.kr-ntf-x { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.2rem; color: #173a63; cursor: pointer; border-radius: 6px; }
.kr-ntf-x:hover, .kr-ntf-x:focus-visible { background: #d9e8f7; }
