/* 穴埋めプリントメーカー */
/* ---- 編集（クリックで空欄に） ---- */
.au-ed { line-height: 2.5; font-size: 17px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--card); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 62vh; overflow: auto; }
.au-t { cursor: pointer; border-radius: 4px; padding: 2px 0; }
.au-t:hover { background: color-mix(in srgb, var(--yellow) 55%, transparent); }
.au-t.anchor { background: var(--yellow); color: #111; }
.au-bk { cursor: pointer; padding: 3px 6px; margin: 0 1px; border-radius: 7px; font-weight: 700; border: 1px solid transparent; }
.au-bk.lv1 { background: color-mix(in srgb, var(--coral) 24%, var(--card)); border-color: color-mix(in srgb, var(--coral) 60%, var(--card)); }
.au-bk.lv2 { background: color-mix(in srgb, var(--blue) 20%, var(--card)); border-color: color-mix(in srgb, var(--blue) 55%, var(--card)); }
.au-bk.lv3 { background: color-mix(in srgb, var(--purple) 20%, var(--card)); border-color: color-mix(in srgb, var(--purple) 55%, var(--card)); }
.au-dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.au-dot.lv1 { background: var(--coral); } .au-dot.lv2 { background: var(--blue); } .au-dot.lv3 { background: var(--purple); }
.au-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1100px) { .au-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.au-check { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; cursor: pointer; }
.au-check input { width: 18px; height: 18px; }
.au-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }

/* ---- プレビューの枠 ---- */
.au-prev { overflow: auto; max-height: 86vh; background: var(--bg2); padding: 12px; border-radius: 12px; border: 1px solid var(--line-soft); }
.au-prev .au-sheet { padding: 9mm 10mm; margin: 0 auto 12px; max-width: 190mm; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 20px rgba(0, 0, 0, .08); border-radius: 3px; }
.au-prev .au-sheet.au-vpage { max-width: none; flex: none; }
@media (max-width: 600px) { .au-prev { padding: 6px; } .au-prev .au-sheet:not(.au-vpage) { padding: 5mm 4mm; } }

/* ---- 紙（プレビューと印刷で同じ） ---- */
.au-sheet { background: #fff; color: #000; font-size: var(--fs, 11pt); line-height: 2.3; font-family: var(--ff, 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif); letter-spacing: 0; box-sizing: border-box; text-align: left; }
.au-sheet * { box-sizing: border-box; }
.au-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1mm 5mm; border-bottom: .4mm solid #000; padding-bottom: 1.5mm; margin-bottom: 4mm; line-height: 1.45; }
.au-title { font-size: 1.28em; font-weight: 700; }
.au-tag { display: inline-block; font-size: .58em; font-weight: 700; border: .25mm solid #000; border-radius: 1mm; padding: 0 1.6mm; margin-left: 2mm; vertical-align: middle; white-space: nowrap; }
.au-name { font-size: .9em; white-space: nowrap; margin-left: auto; }
.au-nameline { display: inline-block; width: 36mm; border-bottom: .25mm solid #000; }
.au-p { margin: 0; text-align: start; line-break: strict; }
.au-b { white-space: nowrap; }
.au-n { font-size: .82em; }
.au-sp { display: inline-block; min-inline-size: var(--w, 3em); text-align: center; line-height: 1.35; white-space: nowrap; }
.au-line { border-block-end: .3mm solid #000; margin: 0 .15em; }
.au-box { border: .3mm solid #000; border-radius: .7mm; margin: 0 .15em; padding: 0 .25em; }
.au-masu { display: inline-block; inline-size: 1.55em; block-size: 1.55em; line-height: 1.5em; border: .3mm solid #000; margin-inline-end: -.3mm; text-align: center; vertical-align: middle; }
.au-masus { margin: 0 .2em; white-space: nowrap; }
.au-ans { color: var(--ac, #d32020); font-weight: 700; }
.au-hint { font-size: .62em; color: #333; }
.au-headc { font-weight: 700; }
.au-bank { margin-top: 5mm; border: .3mm solid #000; border-radius: 1.5mm; padding: 1.5mm 3mm; line-height: 1.9; break-inside: avoid; }
.au-bank b { margin-right: 1.2em; }
.au-bank span { display: inline-block; margin-right: 1.5em; }
.au-ansarea { margin-top: 5mm; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); padding: 0 .3mm .3mm 0; }
.au-ansarea div { border: .3mm solid #000; margin: 0 -.3mm -.3mm 0; padding: 1.2mm 2mm; min-height: 10.5mm; line-height: 1.4; break-inside: avoid; overflow-wrap: anywhere; }
.au-list { width: 100%; border-collapse: collapse; line-height: 1.6; font-size: .92em; }
.au-list th, .au-list td { border: .25mm solid #000; padding: 1.2mm 2mm; text-align: left; vertical-align: top; }
.au-list th { white-space: nowrap; background: #f1f1f1; width: 22mm; }
.au-list td span { display: inline-block; margin-right: 1.2em; }

/* 縦書き */
.au-vpage { display: flex; flex-direction: column; overflow: hidden; }
.au-vpage .au-head { flex: none; margin-bottom: 3mm; }
.au-vbody { writing-mode: vertical-rl; text-orientation: mixed; overflow: hidden; }
.au-v .au-tcy { text-combine-upright: all; -webkit-text-combine: horizontal; }
.au-v .au-up { text-orientation: upright; }
.au-v .au-bankv { font-weight: 700; margin-block-start: 1em; }
.au-v .au-acell { display: inline-block; margin-inline-end: 1em; white-space: nowrap; }
.au-meas { position: absolute; left: -99999px; top: 0; visibility: hidden; }
.au-meas .au-vbody { overflow: visible; width: auto; }
#sp-print .au-sheet { break-after: page; }
#sp-print .au-sheet:last-child { break-after: auto; }

/* ---- 電子黒板 ---- */
.au-board { position: fixed; inset: 0; z-index: 1000; background: #123c2f; color: #fff; display: flex; flex-direction: column; }
.au-board-body { flex: 1; overflow: auto; padding: 4vh 5vw; font-size: var(--bfs, 34px); line-height: 2.4; }
.au-board-body.v { writing-mode: vertical-rl; }
.au-board-body h2 { font-size: 1.1em; margin: 0 0 .4em; color: #ffe98a; }
.au-board-body p { margin: 0; }
.au-board rt { font-size: .42em; }
.au-bb { display: inline-block; min-inline-size: 3.2em; border: 2px solid #ffd84d; border-radius: 10px; padding: 0 .35em; margin: 0 .12em; background: rgba(255, 216, 77, .16); color: #ffd84d; cursor: pointer; font: inherit; line-height: 1.5; text-align: center; }
.au-bb.open { background: transparent; border-color: transparent; border-block-end-color: #ffd84d; border-radius: 0; color: #ffe98a; font-weight: 700; }
.au-board-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: rgba(0, 0, 0, .35); }
.au-board-bar .sp { flex: 1; }
