/* ── factor_pair_planning2_3（かけ算の数を組にして答えをもとめよう、単元仕様書 v1.2）── */
/* 画面：問題文の下に答えの欄、回答案内、テンキー、答えるボタン（§5-1・§7 画面表示）。図は使わない。 */
.fpp-main{display:none}
.fpp-fields{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px auto 2px}
.fpp-input{width:7.5em;max-width:70vw;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}
.fpp-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.fpp-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.fpp-input.fpp-input-ok{border:3px solid #15803d;background:#dcfce7}
.fpp-input.fpp-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.fpp-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.fpp-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em}
.fpp-msg:empty{display:none}
.feedback.has-text.fpp-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.fpp-correct{margin:2px 0 6px;font-weight:700}
.fpp-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.fpp-lesson-ex{display:inline-block;margin-top:4px;font-weight:700}
.fpp-lesson-ref{margin:4px 0 0;font-size:.9em;color:#475569}
/* 式の数と×の間で改行しない（§7 画面表示）。問題文は数と×の並びの語で折り返さない。 */
#page-quiz.active:has(.fpp-main) #question-text{word-break:keep-all;overflow-wrap:normal;line-break:strict}
#page-quiz.active:has(.fpp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.fpp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.fpp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.fpp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;white-space:pre-line;overflow-wrap:anywhere}

/* 印刷：A4縦・2列×5段・1ページ（§7。用紙の余白10mm、本文190×277mm、列92mm・列の間6mm、各問の領域31mm）。 */
.fpp-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}
.fpp-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;height:23.5mm}
.fpp-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}
.fpp-pr-inst{flex:none;box-sizing:border-box;margin:0;height:13mm;padding-bottom:2mm;font-size:12.5pt;line-height:5.5mm;overflow:hidden}
.fpp-pr-problems{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm;flex:none;height:155mm;margin-top:3mm}
.fpp-pr-col{display:flex;flex-direction:column}
.fpp-pr-cell{box-sizing:border-box;height:31mm;overflow:hidden;display:flex;flex-direction:column;padding-bottom:5mm}
.fpp-pr-num{margin:0;height:6mm;font-size:12.5pt;line-height:6mm;font-weight:700}
.fpp-pr-q{margin:0;height:8mm;font-size:12.5pt;line-height:8mm;white-space:nowrap;display:flex;align-items:center}
.fpp-pr-eq{display:inline-flex;align-items:center;white-space:pre}
.fpp-pr-box{display:inline-block;box-sizing:border-box;width:30mm;height:8mm;}
.fpp-pr-work{box-sizing:border-box;height:12mm;width:92mm;border:0.35mm solid #888;border-radius:1mm;padding:0.5mm 1mm}
.fpp-pr-work-label{font-size:9.5pt;line-height:4mm;color:#333}
.fpp-pr-answers{flex:none;box-sizing:border-box;margin-top:3mm}
.fpp-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.5mm;padding:0;border:0;border-top:2pt dashed #aaa}
.fpp-pr-answers-title{font-weight:700;font-size:12.5pt;height:6mm;line-height:6mm}
.fpp-pr-ans-grid{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.fpp-pr-ans{box-sizing:border-box;margin:0;height:14mm;padding-right:3mm;padding-bottom:5mm;font-size:10.2pt;line-height:4.5mm;overflow:hidden;overflow-wrap:anywhere}
.fpp-app-pdf-page .fpp-pr-page{box-shadow:none;margin:0}

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