/* ── trailing_zero_factor_count2_5（積の素因数からまつびの0を数えよう、単元仕様書 v1.2）── */
/* 画面：問題文、答えの欄と共通のテンキー（A群・B群）又はア〜エ（C群）、案内。問1の前にはじめの復習。回答後は正しい答え、2と5の個数の表、解説（§5-3・§7）。 */
#question-text .tzf-q{display:block;overflow-wrap:anywhere}
.tzf-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.tzf-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem}
.tzf-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}
.tzf-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.tzf-input.tzf-ok,.tzf-input.tzf-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.tzf-input.tzf-ng,.tzf-input.tzf-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.tzf-choices{display:flex;flex-direction:column;gap:8px;width:min(100%,480px);margin:2px auto}
.tzf-choice{position:relative;box-sizing:border-box;min-height:48px;padding:6px 10px 6px 34px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.05rem;font-weight:800;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.tzf-check{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.tzf-choice.tzf-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.tzf-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.tzf-choice:disabled{cursor:default;opacity:1}
.tzf-choice.tzf-ok,.tzf-choice.tzf-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.tzf-choice.tzf-ng,.tzf-choice.tzf-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.tzf-choice.tzf-right,.tzf-choice.tzf-right:disabled{border:3px dashed #15803d;background:#fff;color:#14532d}
.tzf-ok .tzf-check,.tzf-right .tzf-check{color:#15803d}
.tzf-ng .tzf-check{color:#b91c1c}
.tzf-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.tzf-guide[hidden]{display:none}
.tzf-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.tzf-msg:empty{min-height:0;margin:0}
.tzf-main .ufk-keypad{margin-top:4px}
.feedback.has-text.tzf-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.tzf-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.tzf-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.tzf-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.tzf-example .tzf-ex-q{margin:6px 0 2px;font-weight:700}
.tzf-example .tzf-ex-a{margin:0 0 8px}
#page-quiz.active:has(.tzf-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.tzf-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.tzf-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.tzf-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.tzf-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.tzf-main) #tts-btn{min-width:44px;min-height:44px}
#page-quiz:has(#question-text[data-unit="trailing_zero_factor_count2_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="trailing_zero_factor_count2_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

.tzf-review-intro{display:block;margin:0 0 6px;font-weight:400;line-height:1.7;overflow-wrap:anywhere}
.tzf-review-expl{margin:6px 0;font-weight:700;line-height:1.7;max-width:560px}
.tzf-review-start{min-height:48px;min-width:44px;padding:8px 20px;border-radius:999px;border:0;background:linear-gradient(90deg,#1d4ed8,#7c3aed);color:#fff;font-weight:800;font-size:1.05rem;cursor:pointer}
.tzf-countwrap{max-width:100%;margin:4px 0;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.tzf-count{border-collapse:collapse;font-size:15px;background:#fff}
.tzf-count th,.tzf-count td{border:1.5px solid #64748b;padding:3px 6px;text-align:center;white-space:nowrap}
.tzf-count th{background:#f1f5f9;text-align:left;white-space:normal;max-width:5.5em;line-height:1.25}
.tzf-count td.tzf-total{font-weight:800;background:#fef9c3}
.tzf-expl-text{line-height:1.8;overflow-wrap:anywhere}
#question-text .tzf-q{overflow-wrap:anywhere}
/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、2列×5段（問いの文、答えの枠又はア〜エ）、破線、答え（1行）。2と5の個数の表は置かない。 */
.tzf-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}
.tzf-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.tzf-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.tzf-pr-headrow .pp-field-line{height:6mm}
.tzf-pr-headrow hr.pp-fields-solid{margin:1mm 0 2mm!important;border:0;border-top:1.5pt solid #333}
.tzf-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}
.tzf-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.tzf-pr-col{display:flex;flex-direction:column}
.tzf-pr-cell{box-sizing:border-box;height:48.2mm;border-top:2px solid transparent;padding:1.5mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:1.5mm}
.tzf-pr-col .tzf-pr-cell:last-child{border-bottom:2px solid transparent}
/* 右の列は、文と選択肢の多いC群（問8〜10）の段を高くし、B群（問6・7）の段を低くする（列の高さは左と同じ241mm） */
.tzf-pr-col .tzf-pr-cell[data-tzf-group="C"]{height:53.6mm}
.tzf-pr-col:last-child .tzf-pr-cell[data-tzf-group="B"]{height:40.1mm}
.tzf-pr-q{font-size:12.5pt;line-height:5.6mm;overflow-wrap:anywhere}
.tzf-pr-ans{display:flex;align-items:center;gap:2mm;font-size:12.5pt}
.tzf-pr-ans-c{float:right;margin:0 0 1mm 2mm;line-height:8mm}
.tzf-pr-crow{display:flex;align-items:center;justify-content:space-between;gap:2mm}
.tzf-pr-crow .tzf-pr-choices{column-gap:4mm}
.tzf-pr-anslabel{font-weight:700}
.tzf-pbox{display:inline-block;box-sizing:border-box;width:16mm;height:8mm;border:2px solid #000}
.tzf-pr-choices{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;column-gap:5mm;font-size:12.5pt;line-height:6mm}
.tzf-pr-choices.tzf-pr-two{grid-template-columns:repeat(2,auto);column-gap:4mm}
.tzf-pr-choices.tzf-pr-one{grid-template-columns:1fr}
.tzf-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.tzf-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.tzf-pr-ansbody{display:flex;align-items:baseline;gap:3mm}
.tzf-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.tzf-pr-ansrow{display:grid;grid-template-columns:repeat(10,1fr);column-gap:1mm;flex:1}
.tzf-pr-answer{font-size:10pt;line-height:5mm;white-space:nowrap}
.tzf-app-pdf-page .tzf-pr-page{box-shadow:none;margin:0}

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