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

.hag-unit{font-weight:800;font-size:1.15rem;white-space:nowrap}
.hag-expl-text{line-height:1.8;overflow-wrap:anywhere}
.hag-note{display:block;font-size:14px;color:#334155;margin:0 0 4px;overflow-wrap:anywhere}
.hag-figwrap{max-width:100%;width:min(100%,380px)}
.hag-fig{display:block;width:100%;height:auto}
.hag-frame{stroke:#334155;stroke-width:2}
.hag-inside{fill:#fff;stroke:#334155;stroke-width:2}
.hag-first{fill:#fff;stroke:#334155;stroke-width:2}
.hag-band{stroke:#334155;stroke-width:2}
.hag-pat-line{stroke:#64748b;stroke-width:1.6}
.hag-dim{stroke:#334155;stroke-width:1.5}
.hag-loop{fill:none;stroke:#334155;stroke-width:2}
.hag-stone-w{fill:#fff;stroke:#111827;stroke-width:2.2}
.hag-stone-b{fill:#111827;stroke:#111827;stroke-width:2}
.hag-arrow{fill:none;stroke:#334155;stroke-width:2}
.hag-fig-lbl{font-size:16px;font-weight:700;fill:#0f172a}
.hag-fig-note{font-size:16px;font-weight:700;fill:#334155}
.hag-fig-star{font-size:18px;font-weight:700;fill:#b45309}
.hag-fig-dots{font-size:22px}
.hag-alt{margin:0;font-size:13px;color:#475569;text-align:left;max-width:560px;overflow-wrap:anywhere}
.hag-choices{display:grid;grid-template-columns:1fr;gap:8px;width:min(100%,420px)}
.hag-choice-wrap{display:flex;align-items:stretch;gap:6px}
.hag-choice{flex:1;min-height:48px;padding:6px 12px;font-size:1.05rem;font-weight:700;text-align:left;border:2px solid #94a3b8;border-radius:10px;background:#fff;color:#111827;font-family:inherit;cursor:pointer}
.hag-choice.hag-selected{border:3px solid #1d4ed8;background:#eff6ff}
.hag-choice.hag-right{border:3px solid #15803d;background:#dcfce7}
.hag-choice.hag-wrongpick{border:3px dashed #b91c1c;background:#fff1f2}
.hag-choice:disabled{opacity:1;cursor:default}
.hag-speak{min-width:48px;min-height:48px;border:2px solid #94a3b8;border-radius:10px;background:#fff;font-size:1.1rem;cursor:pointer}
.hag-pr-choices{display:grid;grid-template-columns:44mm 44mm;font-size:12.5pt;line-height:5mm}
.hag-pr-choice{white-space:nowrap}
/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（番号と問題文、その下に答えの行）、破線、答え（2行）。 */
.hag-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}
.hag-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.hag-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.hag-pr-headrow .pp-field-line{height:6mm}
.hag-pr-headrow hr.pp-fields-solid{margin:1mm 0 2mm!important;border:0;border-top:1.5pt solid #333}
.hag-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}
.hag-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.hag-pr-col{display:flex;flex-direction:column}
.hag-pr-cell{box-sizing:border-box;height:40mm;border-top:2px solid transparent;padding:0.8mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:0.8mm}
.hag-pr-col .hag-pr-cell:last-child{border-bottom:2px solid transparent}
.hag-pr-q{font-size:12.5pt;line-height:5mm;overflow-wrap:anywhere;padding-right:3mm}
.hag-pr-inst{margin:0 0 2mm;font-size:12.5pt;line-height:5mm;flex:none}
.hag-pr-blank{font-size:12.5pt;line-height:6mm;white-space:pre}
.hag-pr-gap{display:inline-block;width:20mm;white-space:pre;overflow:hidden;vertical-align:bottom}
.hag-pr-num{font-weight:700;white-space:nowrap}
.hag-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.hag-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.hag-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.hag-pr-ansrow{display:grid;grid-template-columns:repeat(5,36mm);column-gap:1mm}
.hag-pr-answer{font-size:10pt;line-height:4.5mm;white-space:nowrap}
.hag-app-pdf-page .hag-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="hollow_array_growth3_5"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="hollow_array_growth3_5"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="hollow_array_growth3_5"]>#pr-problems{display:block}
#pr-sheet[data-unit="hollow_array_growth3_5"] .hag-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="hollow_array_growth3_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="hollow_array_growth3_5"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="hollow_array_growth3_5"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="hollow_array_growth3_5"] .hag-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}


