/* 教室ボード */
.bd-tools .seg button { padding: 6px 10px; font-size: 13px; min-height: 34px; }
.bd-fs { display: inline-flex; gap: 4px; }
.bd-board {
  --bg: #183a33; --fg: #f6f2e7; --acc: #ffd23f; --sub: #9fc9b9; --cardc: #21483f; --s: 1;
  container-type: inline-size; position: relative; border: 2px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--bg); color: var(--fg); box-shadow: var(--sh); padding: clamp(10px, 2cqw, 26px); display: flex; flex-direction: column; gap: clamp(8px, 1.4cqw, 18px);
  min-height: min(56.25cqw, 760px); outline: none; transition: background .3s;
}
.bd-board[data-theme='board'] { background-image: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .06), transparent 60%); }
.bd-board[data-theme='white'] { --bg: #ffffff; --fg: #1d2433; --acc: #e8453c; --sub: #5a6478; --cardc: #f3f0e8; }
.bd-board[data-theme='contrast'] { --bg: #000000; --fg: #ffffff; --acc: #ffe600; --sub: #cfcfcf; --cardc: #1a1a1a; }
.bd-board:fullscreen { border: 0; border-radius: 0; width: 100vw; height: 100vh; min-height: 0; padding: 2.2cqw 2.6cqw; }
.bd-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: clamp(13px, calc(1.4cqw * var(--s)), 28px); color: var(--sub); }
.bd-strip .sp { flex: 1; }
.bd-clock { font-weight: 900; font-size: 1.5em; color: var(--fg); font-variant-numeric: tabular-nums; }
.bd-mini { font: inherit; font-size: clamp(12px, calc(1.15cqw * var(--s)), 24px); font-weight: 800; color: var(--fg); background: transparent; border: 2px solid color-mix(in srgb, var(--fg) 45%, transparent); border-radius: 10px; padding: .2em .7em; min-height: 34px; cursor: pointer; }
.bd-mini:hover { border-color: var(--acc); color: var(--acc); }
.bd-lesson { flex: 1; display: grid; gap: clamp(8px, 1.4cqw, 20px); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-areas: 'goal goal' 'flow timer' 'cards cards'; grid-template-rows: auto 1fr auto; }
@container (max-width: 640px) { .bd-lesson { grid-template-columns: 1fr; grid-template-areas: 'goal' 'timer' 'flow' 'cards'; } }
.bd-tag { display: inline-block; background: var(--acc); color: var(--bg); font-weight: 900; border-radius: 99px; padding: .1em .8em; font-size: clamp(13px, calc(1.5cqw * var(--s)), 34px); white-space: nowrap; }
.bd-goal { grid-area: goal; display: flex; align-items: flex-start; gap: .6em; font-size: clamp(20px, calc(3.6cqw * var(--s)), 96px); border-bottom: 3px dashed color-mix(in srgb, var(--sub) 60%, transparent); padding-bottom: .35em; }
.bd-goal .bd-tag { margin-top: .35em; font-size: .42em; }
.bd-goal-t { font-family: var(--head); font-weight: 900; line-height: 1.35; flex: 1; min-width: 0; outline: none; border-radius: 8px; overflow-wrap: anywhere; }
.bd-goal-t:focus { box-shadow: 0 0 0 3px var(--acc); }
.bd-flow { grid-area: flow; min-width: 0; font-size: clamp(15px, calc(2.1cqw * var(--s)), 56px); }
.bd-flow-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: .3em; }
.bd-flow-h .bd-tag { font-size: .62em; }
.bd-nav { display: flex; gap: 6px; }
.bd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .22em; }
.bd-steps button { width: 100%; display: flex; align-items: center; gap: .5em; background: transparent; border: 3px solid transparent; border-radius: .5em; padding: .18em .4em; color: var(--fg); font: inherit; font-weight: 700; text-align: left; cursor: pointer; line-height: 1.3; }
.bd-steps button:hover { border-color: color-mix(in srgb, var(--fg) 25%, transparent); }
.bd-sn { flex-shrink: 0; width: 1.5em; height: 1.5em; border-radius: 50%; border: 2px solid var(--sub); display: grid; place-items: center; font-size: .75em; font-weight: 900; }
.bd-st { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bd-sm { font-size: .62em; color: var(--sub); white-space: nowrap; }
.bd-steps .done button { color: var(--sub); }
.bd-steps .done .bd-sn { background: var(--sub); color: var(--bg); }
.bd-steps .now button { border-color: var(--acc); background: var(--cardc); font-weight: 900; }
.bd-steps .now .bd-sn { background: var(--acc); border-color: var(--acc); color: var(--bg); }
.bd-timer { grid-area: timer; display: grid; justify-items: center; align-content: center; gap: clamp(6px, 1cqw, 16px); min-width: 0; }
.bd-ring { position: relative; width: min(100%, calc(30cqw * var(--s)), 560px); min-width: 180px; aspect-ratio: 1; cursor: pointer; }
.bd-ring svg { width: 100%; height: 100%; display: block; }
.bd-rbg { fill: none; stroke: var(--cardc); stroke-width: 12; }
.bd-rfg { fill: none; stroke: var(--acc); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1000; transition: stroke-dashoffset .3s linear, stroke .3s; }
.bd-dig { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: clamp(40px, calc(7.4cqw * var(--s)), 190px); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bd-tbtns, .bd-pre { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bd-play { font: inherit; font-weight: 900; font-size: clamp(14px, calc(1.4cqw * var(--s)), 30px); background: var(--acc); color: var(--bg); border: 0; border-radius: 12px; padding: .3em 1.1em; min-height: 38px; cursor: pointer; min-width: 6.5em; }
.bd-cards { grid-area: cards; display: flex; flex-wrap: wrap; gap: 6px; }
.bd-card { display: inline-flex; align-items: center; gap: .4em; font: inherit; font-size: clamp(12px, calc(1.2cqw * var(--s)), 26px); font-weight: 800; color: var(--fg); background: var(--cardc); border: 2px solid color-mix(in srgb, var(--fg) 25%, transparent); border-radius: 12px; padding: .3em .7em; cursor: pointer; min-height: 36px; }
.bd-card:hover { border-color: var(--acc); }
.bd-cic { width: 1.5em; height: 1.5em; flex-shrink: 0; }
.bd-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 94%, transparent); cursor: pointer; animation: bd-in .25s ease-out; }
@keyframes bd-in { from { opacity: 0; transform: scale(.96); } }
.bd-ovc { display: grid; justify-items: center; gap: .1em; text-align: center; color: var(--fg); }
.bd-ovic { width: min(38cqw, 60vh); height: auto; color: var(--acc); stroke-width: 3.4; }
.bd-ovc b { font-family: var(--head); font-size: clamp(36px, 9cqw, 220px); line-height: 1.15; }
.bd-ovc small { font-size: clamp(12px, 1.2cqw, 22px); color: var(--sub); }
.bd-board.warn .bd-rfg { stroke: #ff9f1c; }
.bd-board.flash { animation: bd-flash 1s ease-in-out 6; }
@keyframes bd-flash { 50% { background-color: var(--acc); } }
@media (prefers-reduced-motion: reduce) { .bd-board.flash { animation: none; box-shadow: inset 0 0 0 14px var(--acc); } }
/* テスト監督 */
.bd-test { flex: 1; display: grid; align-content: center; justify-items: center; gap: clamp(6px, 1.2cqw, 18px); text-align: center; font-size: calc(1cqw * var(--s)); }
.bd-tsub { font-family: var(--head); font-weight: 900; font-size: clamp(22px, calc(4.4cqw * var(--s)), 120px); outline: none; border-radius: 8px; }
.bd-tsub:focus { box-shadow: 0 0 0 3px var(--acc); }
.bd-ttimes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4em 1.2em; font-size: clamp(16px, calc(2.6cqw * var(--s)), 66px); color: var(--sub); }
.bd-ttimes b { color: var(--fg); }
.bd-tstat { font-size: clamp(18px, calc(2.8cqw * var(--s)), 70px); font-weight: 900; color: var(--acc); }
.bd-tbig { font-family: var(--head); font-weight: 900; font-size: clamp(56px, calc(12cqw * var(--s)), 320px); line-height: 1; font-variant-numeric: tabular-nums; }
.bd-tbig.long { font-size: clamp(26px, calc(5cqw * var(--s)), 130px); }
.bd-tbar { width: min(90%, 1200px); height: clamp(12px, 1.6cqw, 36px); border-radius: 99px; background: var(--cardc); overflow: hidden; border: 2px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.bd-tbar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .5s linear; }
.bd-tnow { font-size: clamp(14px, calc(1.8cqw * var(--s)), 44px); color: var(--sub); font-variant-numeric: tabular-nums; }
.bd-tnotes { margin: .4em 0 0; padding: 0; list-style: none; font-size: clamp(14px, calc(2cqw * var(--s)), 50px); display: grid; gap: .2em; text-align: left; }
.bd-tnotes li::before { content: '・'; color: var(--acc); }
.bd-board.warn[data-mode='test'] { --acc: #ff9f1c; }
.bd-board.bad[data-mode='test'] { --acc: #ff4d4d; }
.bd-board.bad[data-mode='test'] .bd-tbig { color: #ff4d4d; }
.bd-chk { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.bd-chk input { width: 18px; height: 18px; }
