/* ── quotient_estimate_revision3_4（二けたのわり算でかりの商を直そう、単元仕様書 v1.3）── */
/* 画面：問題文、4択（記号と、かりの商を直す流れのカード。1回ごとに たてる数・積・くらべる・直す の4つのカードを1行にならべ、最後に商とあまりの行）、回答案内（§5-3・§7）。
   PC幅では4つのカードを横にならべ、選択肢は上から順にならべる。狭い幅（420px以下）ではカードを上下に積む。 */
#question-text .qer-q{display:block;line-height:1.9}
.qer-nb{white-space:nowrap}
#qer-main,.qer-expl-text,.qer-correct,.qer-fb-text,.qer-q,#hint-area .kp-body,.qer-guide-p{line-break:strict}
.qer-main{margin:4px 0 6px;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.qer-choices{display:grid;grid-template-columns:1fr;gap:10px;width:100%}
.qer-choice{position:relative;min-height:48px;padding:8px 26px 8px 10px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;font-size:1rem;font-weight:600;color:#111827;cursor:pointer;text-align:left;font-family:inherit;line-height:1.45;display:flex;flex-direction:column;gap:4px;min-width:0}
.qer-choice.qer-sel{border:5px double #b45309;background:#fff7ed}
.qer-choice:disabled{cursor:default;opacity:1;color:#111827;border-color:#94a3b8;background:#f8fafc}
.qer-choice.qer-sel:disabled{border:5px double #b45309;background:#fff7ed}
.qer-choice.qer-right:disabled{border:3px solid #15803d;background:#dcfce7}
.qer-choice.qer-wrong:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.qer-check{position:absolute;top:2px;right:6px;font-size:.9rem;font-weight:900;color:#b45309}
.qer-mark{font-size:1.15rem;font-weight:800}
.qer-flow{display:flex;flex-direction:column;gap:4px;min-width:0}
.qer-step{display:flex;flex-wrap:wrap;align-items:stretch;gap:4px}
.qer-card{display:inline-block;padding:2px 6px;border:1.5px solid #64748b;border-radius:6px;background:#fff;white-space:nowrap}
.qer-card-c,.qer-card-m{white-space:normal}
.qer-card-m.qer-dir-stop{border-style:double;border-width:3px}
.qer-card-m.qer-dir-down,.qer-card-m.qer-dir-up{border-style:dashed}
.qer-sep{display:inline-block;width:0;overflow:hidden;white-space:pre;font-size:0}
.qer-sep-line{display:block;height:0}
.qer-final{display:inline-block;padding:2px 6px;border-top:2px solid #334155;font-weight:800}
@media (max-width:420px){.qer-step{flex-direction:column;align-items:flex-start}.qer-card{white-space:normal}}
.qer-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.45}
.qer-guide[hidden]{display:none}
.qer-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.45;max-width:560px}
.qer-msg:empty{min-height:0;margin:0}
.feedback.has-text.qer-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.qer-correct{margin:4px 0;font-weight:800}
.qer-expl-text p{margin:4px 0 6px;overflow-wrap:anywhere;line-height:1.8}
.qer-example p{margin:6px 0 8px;line-height:1.7}
.qer-example .qer-ex-opt{padding-left:.5em;border-left:3px solid #cbd5e1}
#page-quiz.active:has(.qer-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.qer-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.qer-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.qer-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.qer-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・2列×5段・1ページ（§7、v1.3）。題名の枠と記入らん（共通仕様 CP-08a・CP-08b）18mm、共通の案内（12.5pt・2行）と余り5mm、
   問題の2列×5段（1問91×40mm：番号と問題の行6mm、書きこみの行8mm（わく高さ7mm）、計算のあき21mm、余り5mm。問の間2mm）、下に答え（5件×2行）。 */
.qer-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:'BIZ UDPGothic','Atkinson Hyperlegible','Yu Gothic','Meiryo',sans-serif}
.qer-pr-headblock{display:block;flex:none}
.qer-pr-title{box-sizing:border-box;margin:0;height:7.5mm;font-size:14pt;font-weight:700;line-height:calc(7.5mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;-webkit-print-color-adjust:exact;print-color-adjust:exact;overflow:hidden}
.qer-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.qer-pr-headblock hr.pp-fields-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm!important;padding:0;border:0!important;border-top:1.5pt solid #333!important}
.qer-pr-inst{flex:none;margin:0 0 5mm;width:186mm;height:12mm;font-size:12.5pt;line-height:6mm;word-break:normal;overflow-wrap:anywhere;line-break:strict;overflow:hidden}
.qer-pr-grid{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;margin-top:3mm}
.qer-pr-col{display:grid;grid-template-rows:repeat(5,40mm);row-gap:2mm}
.qer-pr-cell{box-sizing:border-box;width:91mm;height:40mm;overflow:hidden}
.qer-pr-num{margin:0;height:6mm;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.qer-pr-write{margin:0;height:8mm;display:flex;align-items:center;gap:1mm;font-size:12.5pt;white-space:nowrap}
.qer-pr-box{display:inline-block;box-sizing:border-box;width:8mm;height:7mm;border:0.6mm solid #333;vertical-align:middle}
.qer-pr-box-r{width:11mm}
.qer-pr-space{height:21mm}
.qer-pr-answers{flex:none;margin-top:3mm;margin-bottom:5mm;border-top:2pt dashed #aaa;padding-top:1mm}
.qer-pr-anshead{margin:0;font-size:12.5pt;font-weight:700;line-height:6mm}
.qer-pr-arow{display:flex}
.qer-pr-ans{display:inline-block;width:37mm;height:4.5mm;font-size:10pt;line-height:4.5mm;white-space:nowrap}
.qer-pr-page[lang=en] .qer-pr-inst,.qer-pr-page[lang=en] .qer-pr-num,.qer-pr-page[lang=en] .qer-pr-write,.qer-pr-page[lang=en] .qer-pr-ans{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.qer-app-pdf-page .qer-pr-page{box-shadow:none;margin:0}

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