/* ── divisor_property_classification3_5（約数個数で数の性質を分類しよう、単元仕様書 v1.2）── */
/* 画面：求めるものの見出し、問題文、答えの欄、回答案内、テンキー、こたえるボタン（§5-3・§7 画面表示）。 */
.dpc-head{display:block;margin:0 auto 6px;width:fit-content;max-width:100%;padding:2px 12px;border-radius:999px;background:#eef2ff;color:#1e3a8a;font-size:1rem;font-weight:800;overflow-wrap:anywhere}
.dpc-q{display:block;overflow-wrap:anywhere}
.dpc-fields{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;gap:8px;margin:8px auto 2px;max-width:100%}
.dpc-input{width:6em;max-width:45vw;min-height:44px;font-size:1.4rem;padding:4px 8px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;box-sizing:border-box}
.dpc-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.dpc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.dpc-input.dpc-input-ok{border:3px solid #15803d;background:#dcfce7}
.dpc-input.dpc-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.dpc-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.dpc-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:1rem;text-align:center;max-width:32em}
.dpc-msg:empty{display:none}
.feedback.has-text.dpc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.dpc-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;font-size:1rem;line-height:1.6}
#page-quiz.active:has(.dpc-fields) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dpc-fields) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dpc-fields) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dpc-fields) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}

/* 印刷：A4縦・2列・1ページ（§7。用紙の余白10mm、本文190×277mm、列91mm・列の間4mm。各問の領域は高さ45.2mm：
   見出し5.3mm、問題文3行15.9mm、1mm、こたえのらんの行8mm、整理の余白10mm、余り5mm）。 */
.dpc-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}
.dpc-pr-head-area{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;margin-bottom:2mm}
.dpc-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:14.3pt;font-weight:700;line-height:7.8mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.dpc-pr-problems{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;flex:none;margin-left:2mm}
.dpc-pr-col{display:grid;grid-template-rows:repeat(5,45.2mm)}
.dpc-pr-cell{position:relative;box-sizing:border-box;overflow:hidden;height:45.2mm;width:91mm;padding:0.5mm 3mm 0 0}
.dpc-pr-cell+.dpc-pr-cell::before{content:'';position:absolute;top:0;left:0;right:0;border-top:0.3mm dotted #888}
.dpc-pr-head{margin:0;height:5.3mm;font-size:12.6pt;line-height:5.3mm;font-weight:700;white-space:nowrap}
.dpc-pr-question{margin:0;height:15.9mm;font-size:12.6pt;line-height:5.3mm;overflow-wrap:anywhere}
.dpc-pr-ansline{margin:1mm 0 0;height:8mm;display:flex;align-items:center;gap:1mm;font-size:12.6pt;font-weight:700;white-space:nowrap}
.dpc-pr-box{display:inline-block;box-sizing:border-box;width:22mm;height:8mm;border:0.35mm solid #000}
.dpc-pr-answers{flex:none;box-sizing:border-box;margin-top:2mm}
.dpc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dpc-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.dpc-pr-answer-grid{display:grid;grid-template-columns:repeat(5,36mm);row-gap:0;column-gap:1.5mm;margin-left:2mm}
.dpc-pr-ans{margin:0;font-size:10.2pt;line-height:4.5mm;height:4.5mm;white-space:nowrap}
.dpc-app-pdf-page .dpc-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="divisor_property_classification3_5"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="divisor_property_classification3_5"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="divisor_property_classification3_5"]>#pr-problems{display:block}
/* 画面のプレビューでは、用紙の余白10mmを白い縁で見せる（印刷の寸法は変えない）。 */
#pr-sheet[data-unit="divisor_property_classification3_5"] .dpc-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_property_classification3_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_property_classification3_5"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="divisor_property_classification3_5"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="divisor_property_classification3_5"] .dpc-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
