/* ── decimal_quotient_rounding3_4（小数の商を四しゃ五入しよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に商のとちゅうまでの数字の行、位の名前の行、四しゃ五入した商の欄、回答案内、テンキー、こたえるボタン（§5-3・§7 画面表示）。 */
.dqro-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 8px;max-width:100%}
.dqro-digits{margin:2px 0 4px;font-size:1.6rem;font-weight:700;line-height:1.6;white-space:nowrap;font-family:'Atkinson Hyperlegible','BIZ UDPGothic',ui-monospace,monospace;font-variant-numeric:tabular-nums;color:#0f172a;background:#fff;padding:2px 14px 6px;border-radius:10px;border:2px solid #cbd5e1}
.dqro-digits-label{font-size:1.15rem;margin-right:2px}
/* 残す位までの数字は下線、はんだんする位の数字は二重の下線（色だけで区別しない。§5-3・AC-06）。 */
.dqro-kept{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.dqro-guard{text-decoration:underline double;text-decoration-thickness:2px;text-underline-offset:5px;color:#b91c1c}
.dqro-places{margin:0 auto 2px;font-weight:700;font-size:1.05rem;text-align:center;max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
.dqro-fields{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:6px auto 2px}
.dqro-field-label{font-weight:700;font-size:1.15rem}
.dqro-input{width:6.5em;max-width:50vw;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}
.dqro-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.dqro-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.dqro-input.dqro-input-ok{border:3px solid #15803d;background:#dcfce7}
.dqro-input.dqro-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.dqro-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.dqro-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:1rem;text-align:center;max-width:32em}
.dqro-msg:empty{display:none}
.feedback.has-text.dqro-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.dqro-correct{margin:2px 0 6px;font-weight:700;font-size:1rem}
.dqro-lesson-ref{margin:4px 0 0;font-size:.92rem;color:#475569;line-height:1.5;overflow-wrap:anywhere}
.dqro-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;font-size:1rem}
#page-quiz.active:has(.dqro-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dqro-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dqro-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dqro-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}
@media (max-width:420px){
  .dqro-digits{font-size:1.35rem;padding:2px 10px 5px}
  .dqro-places{font-size:.95rem}
}

/* 印刷：A4縦・2列×5段・1ページ（§7。用紙の余白10mm、本文190×277mm、列91mm・列の間4mm。各問は番号と式、しめす位と数字、計算を書く空き12mm以上、こたえらん）。 */
.dqro-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}
.dqro-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm}
.dqro-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}
.dqro-pr-instruction{margin:0 0 1.5mm;font-size:12.6pt;line-height:6mm;white-space:nowrap}
.dqro-pr-problems{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;flex:1 1 auto;min-height:0;margin-top:1mm}
.dqro-pr-col{display:grid;grid-template-rows:repeat(5,minmax(0,1fr));min-height:0}
.dqro-pr-cell{box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;padding-bottom:1mm;min-height:0}
/* 問と問のさかいめに点線（次の問の番号と前の問のこたえらんを見分ける）。 */
.dqro-pr-cell+.dqro-pr-cell{border-top:0.3mm dotted #888;padding-top:0.7mm}
.dqro-pr-q{margin:0;height:6mm;font-size:12.6pt;line-height:6mm;white-space:pre;font-weight:700}
.dqro-pr-digits{margin:1mm 0 0;height:6.5mm;font-size:12.6pt;line-height:6mm;white-space:pre}
.dqro-pr-digits .dqro-kept{text-decoration:underline;text-decoration-thickness:0.3mm;text-underline-offset:1mm}
.dqro-pr-digits .dqro-guard{text-decoration:underline double;text-decoration-thickness:0.3mm;text-underline-offset:1mm;color:#000}
.dqro-pr-space{flex:1 1 auto;min-height:12mm;margin:1mm 0}
.dqro-pr-ansline{margin:0;display:flex;align-items:center;gap:2mm;font-size:12.6pt;white-space:nowrap;height:8mm}
.dqro-pr-field{font-weight:700}
.dqro-pr-box{display:inline-block;box-sizing:border-box;width:30mm;height:8mm;border:0.35mm solid #333}
.dqro-pr-answers{flex:none;box-sizing:border-box}
.dqro-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dqro-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
/* 答えは2列：左列に1〜5、右列に6〜10（§7 解答の配置）。 */
.dqro-pr-answer-grid{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;grid-template-rows:repeat(5,4.6mm);grid-auto-flow:column}
.dqro-pr-ans{margin:0;font-size:10.2pt;line-height:4.6mm;height:4.6mm;white-space:nowrap}
.dqro-app-pdf-page .dqro-pr-page{box-shadow:none;margin:0}

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