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

.tac-unit{font-weight:800;font-size:1.15rem;white-space:nowrap}
.tac-expl-text{line-height:1.8;overflow-wrap:anywhere}
.tac-note{display:block;font-size:14px;color:#334155;margin:0 0 4px;overflow-wrap:anywhere}
.tac-figwrap{max-width:100%;width:min(100%,380px)}
.tac-fig{display:block;width:100%;height:auto}
.tac-tile{fill:#fef3c7;stroke:#92400e;stroke-width:2}
.tac-band{stroke:#334155;stroke-width:2}
.tac-hatch-line{stroke:#64748b;stroke-width:2}
.tac-inside{fill:#fff;stroke:#334155;stroke-width:1.5}
.tac-block{fill:#dbeafe;stroke:#1e3a8a;stroke-width:1.6}
.tac-cube{fill:none;stroke:#334155;stroke-width:1.6;stroke-dasharray:5 3}
.tac-fig-lbl{font-size:14px;font-weight:700;fill:#0f172a}
.tac-fig-note{font-size:13px;font-weight:700;fill:#334155}
/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（番号と問題文、その下に答えの行）、破線、答え（2行）。 */
.tac-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}
.tac-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.tac-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.tac-pr-headrow .pp-field-line{height:6mm}
.tac-pr-headrow hr.pp-fields-solid{margin:1mm 0 2mm!important;border:0;border-top:1.5pt solid #333}
.tac-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}
.tac-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.tac-pr-col{display:flex;flex-direction:column}
.tac-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}
.tac-pr-col .tac-pr-cell:last-child{border-bottom:2px solid transparent}
.tac-pr-q{font-size:12.5pt;line-height:5mm;overflow-wrap:anywhere;padding-right:3mm}
.tac-pr-inst{margin:0 0 2mm;font-size:12.5pt;line-height:5mm;flex:none}
.tac-pr-blank{font-size:12.5pt;line-height:6mm;white-space:pre}
.tac-pr-gap{display:inline-block;width:20mm;white-space:pre;overflow:hidden;vertical-align:bottom}
.tac-pr-num{font-weight:700;white-space:nowrap}
.tac-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.tac-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.tac-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.tac-pr-ansrow{display:grid;grid-template-columns:repeat(5,36mm);column-gap:1mm}
.tac-pr-answer{font-size:10pt;line-height:4.5mm;white-space:nowrap}
.tac-app-pdf-page .tac-pr-page{box-shadow:none;margin:0}

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


