/* ── divisor_count_inverse2_5（倍数の個数からわる数を見つけよう、単元仕様書 v1.2）── */
/* 画面：問題文、答えの欄（わる数を小さい順にカンマで区切る。32文字まで全部見える折り返しの欄）と共通のテンキー（カンマのキーつき）、案内。回答後は解説（§5-3・§7）。 */
#question-text .dci-q{display:block;overflow-wrap:anywhere}
.dci-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.dci-field{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:1.2rem}
.dci-input{display:block;width:min(86vw,24em);min-height:3.4em;height:auto;line-height:1.4;resize:none;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;padding:6px 8px;min-height:48px;font-size:1.4rem;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.dci-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.dci-input.dci-ok,.dci-input.dci-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.dci-input.dci-ng,.dci-input.dci-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.dci-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.dci-guide[hidden]{display:none}
.dci-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4;max-width:560px}
.dci-msg:empty{min-height:0;margin:0}
.dci-main .ufk-keypad{margin-top:4px}
.feedback.has-text.dci-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.dci-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.dci-example .dci-ex-q{margin:6px 0 2px;font-weight:700}
.dci-example .dci-ex-a{margin:0 0 8px}
#page-quiz.active:has(.dci-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.dci-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dci-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dci-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dci-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz.active:has(.dci-main) #tts-btn{min-width:44px;min-height:44px}
#page-quiz:has(#question-text[data-unit="divisor_count_inverse2_5"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="divisor_count_inverse2_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

.dci-expl-text{line-height:1.8;overflow-wrap:anywhere}
/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（番号と問題文、答えのらん）、破線、答え（左右2列に1問1行）。 */
.dci-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}
.dci-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.dci-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.dci-pr-headrow .pp-field-line{height:6mm}
.dci-pr-headrow hr.pp-fields-solid{margin:1mm 0 2mm!important;border:0;border-top:1.5pt solid #333}
.dci-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}
.dci-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.dci-pr-col{display:flex;flex-direction:column}
.dci-pr-cell{box-sizing:border-box;height:41.6mm;border-top:2px solid transparent;padding:1mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:1mm}
.dci-pr-col .dci-pr-cell:last-child{border-bottom:2px solid transparent}
.dci-pr-q{font-size:12.5pt;line-height:5.1mm;overflow-wrap:anywhere}
.dci-pr-common{margin:0 0 2mm;font-size:12.5pt;line-height:5.3mm;flex:none}
.dci-pr-ans{display:flex;align-items:center;gap:1mm;font-size:12.5pt;margin-top:auto;margin-bottom:5mm}
.dci-pr-anslabel{font-weight:700}
.dci-pbox{display:inline-block;box-sizing:border-box;width:70mm;height:8mm;border:2px solid #000}
.dci-pr-ansgrid{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.dci-pr-anscol{display:flex;flex-direction:column}
.dci-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.dci-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dci-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.dci-pr-answer{font-size:10pt;line-height:4.5mm;white-space:nowrap}
.dci-app-pdf-page .dci-pr-page{box-shadow:none;margin:0}

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