/* ── container_opening_overflow3_5（開口とあふれの境界から水位を求めよう、単元仕様書 v1.2）── */
/* 画面：群ごとの説明の文、問題文、図（SVG。図の説明の文はARIA名）、答えの欄（単位を欄の外）と共通のテンキー、案内。回答後は正しい答えと解説（§5-3・§7）。 */
#question-text .coo-q{display:block;overflow-wrap:anywhere}
.coo-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.coo-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem}
.coo-input{width:6em;min-height:48px;font-size:1.4rem;padding:0 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.coo-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.coo-input.coo-ok,.coo-input.coo-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.coo-input.coo-ng,.coo-input.coo-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.coo-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.coo-guide[hidden]{display:none}
.coo-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.coo-msg:empty{min-height:0;margin:0}
.coo-main .ufk-keypad{margin-top:4px}
.feedback.has-text.coo-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.coo-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.coo-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.coo-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.coo-example .coo-ex-q{margin:6px 0 2px;font-weight:700}
.coo-example .coo-ex-a{margin:0 0 8px}
#page-quiz.active:has(.coo-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.coo-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.coo-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.coo-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.coo-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.coo-main) #tts-btn{min-width:44px;min-height:44px}
#page-quiz:has(#question-text[data-unit="container_opening_overflow3_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="container_opening_overflow3_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

.coo-unit{font-weight:800;font-size:1.15rem;white-space:nowrap}
.coo-expl-text{line-height:1.8;overflow-wrap:anywhere}
.coo-note{display:block;font-size:14px;color:#334155;margin:0 0 4px;overflow-wrap:anywhere}
.coo-figwrap{max-width:100%;width:min(100%,380px)}
.coo-fig{display:block;width:100%;height:auto}
.coo-figwrap{width:min(100%,440px)}
.coo-hatch-line{stroke:#64748b;stroke-width:1.4}
.coo-tank{fill:none;stroke:#111827;stroke-width:3;stroke-linejoin:miter}
.coo-open{stroke:#111827;stroke-width:2.4}
.coo-block{fill:#e2e8f0;stroke:#111827;stroke-width:2}
.coo-water{stroke:none}
.coo-surface{stroke:#1d4ed8;stroke-width:3}
.coo-step{stroke:#111827;stroke-width:1.5;stroke-dasharray:3 3}
.coo-arrow{stroke:#111827;stroke-width:1.2}
.coo-ah{fill:#111827}
.coo-fig-mark{font-size:18px;font-weight:800;fill:#b45309;paint-order:stroke;stroke:#fff;stroke-width:2px}
.coo-fig g *{vector-effect:non-scaling-stroke}
.coo-fig-lbl{font-size:18px;font-weight:700;fill:#0f172a}
.coo-fig-cap{font-size:18px;font-weight:800;fill:#1e3a8a}
.coo-fig-tag{font-size:18px;font-weight:800;fill:#0f172a}
.coo-field-name{font-weight:800;font-size:1.05rem;white-space:nowrap}
#coo-main .coo-field{flex-wrap:wrap;justify-content:center;row-gap:4px}
/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（番号と問題文、その下に答えの行）、破線、答え（2行）。 */
.coo-pr-page{width:190mm;height:277mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.coo-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.coo-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.coo-pr-headrow .pp-field-line{height:6mm}
.coo-pr-headrow hr.pp-fields-solid{margin:1mm 0 2mm!important;border:0;border-top:1.5pt solid #333}
.coo-pr-title{box-sizing:border-box;margin:0;height:8mm;width:100%;padding:0 2mm;font-size:14pt;font-weight:700;line-height:7.4mm;white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact;flex:none;overflow:hidden}
.coo-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.coo-pr-col{display:flex;flex-direction:column}
.coo-pr-cell{box-sizing:border-box;height:38mm;border-top:2px solid transparent;padding:0.3mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:0.3mm}
.coo-pr-col .coo-pr-cell:last-child{border-bottom:2px solid transparent}
.coo-pr-q{font-size:12.5pt;line-height:5mm;overflow-wrap:anywhere;padding-right:3mm}
.coo-pr-inst{margin:0 0 2mm;font-size:12.5pt;line-height:5mm;flex:none}
.coo-pr-num{font-weight:700;white-space:nowrap}
.coo-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.coo-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.coo-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.coo-pr-ansrow{display:grid;grid-template-columns:repeat(5,37.2mm);column-gap:0}
.coo-pr-answer{font-size:10pt;line-height:4.5mm;white-space:nowrap}
.coo-app-pdf-page .coo-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="container_opening_overflow3_5"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="container_opening_overflow3_5"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="container_opening_overflow3_5"]>#pr-problems{display:block}
#pr-sheet[data-unit="container_opening_overflow3_5"] .coo-pr-page{box-shadow:0 0 0 10mm #fff,0 0 4px 10mm rgba(0,0,0,.12);margin-bottom:calc(8mm + 10mm)}

@media print{
  #page-print #pr-sheet[data-unit="container_opening_overflow3_5"]{width:auto!important;max-width:none!important;margin:0!important;padding:0!important;transform:none!important;box-shadow:none!important}
  #page-print #pr-sheet[data-unit="container_opening_overflow3_5"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="container_opening_overflow3_5"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="container_opening_overflow3_5"] .coo-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}


.coo-pr-head{font-size:12.5pt;line-height:5mm;font-weight:700;white-space:nowrap}
.coo-pr-body{display:flex;align-items:flex-end;padding-left:0}
.coo-pr-fig{width:66mm;height:27mm;flex:none}
.coo-pr-fig .coo-fig{width:66mm;height:27mm}
.coo-pr-box{display:inline-block;width:11mm;height:7mm;border:0.4mm solid #111;box-sizing:border-box;margin-left:1mm;flex:none}
.coo-pr-unit{font-size:10pt;margin-left:1mm;line-height:7mm}
/* 幅の狭い画面でも図の文字を14px以上にする（§7）。図をカードの内側の余白まで広げる（文字は図に合わせて大きくなる） */
@media (max-width:359px){#coo-main .coo-figwrap{width:calc(100% + 28px);max-width:none;margin:0 -14px}}
