/* ── decimal_mixed_operations3_4（小数をふくむ式をじゅんじょどおり計算しよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に式、答えの欄、回答案内、案内文、テンキー、とちゅうの式の欄、こたえるボタン（§5-3・§7 画面表示）。 */
.dmo-sentence{display:inline-block}
.dmo-expr{display:inline-block;margin-top:6px;font-size:1.45rem;font-weight:700;letter-spacing:.02em;white-space:normal;overflow-wrap:anywhere}
.dmo-op{display:inline}
.dmo-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.dmo-fields{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px auto 2px;max-width:100%}
.dmo-input{width:7em;max-width:56vw;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}
.dmo-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.dmo-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.dmo-input.dmo-input-ok{border:3px solid #15803d;background:#dcfce7}
.dmo-input.dmo-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.dmo-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:1rem;text-align:center;max-width:32em}
.dmo-msg:empty{display:none}
.dmo-work{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:6px auto 2px;width:min(30em,100%);box-sizing:border-box}
.dmo-work-label{font-size:.9rem;font-weight:700;color:#475569}
.dmo-work-area{width:100%;box-sizing:border-box;min-height:44px;font-size:1rem;padding:4px 8px;border:2px solid #cbd5e1;border-radius:8px;font-family:inherit;resize:vertical}
.dmo-work-area:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.feedback.has-text.dmo-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.dmo-correct{margin:2px 0 6px;font-weight:700;font-size:1rem}
.dmo-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;font-size:1rem}
#page-quiz.active:has(.dmo-fields) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dmo-fields) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dmo-fields) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dmo-fields) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}
@media (max-width:360px){
  .dmo-expr{font-size:1.25rem}
}

/* 印刷：A4縦・2列・1ページ（§7。用紙の余白10mm、本文190×277mm、列94mm・列の間2mm。各問の領域は高さ36mm：
   番号と式（12.6pt・1行6mm）、計算欄（高さ17mm）、答え行9mm）。下に答えと考え方を2列×5件（10pt、1件2行まで）。 */
.dmo-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}
.dmo-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm}
.dmo-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}
.dmo-pr-instruction{margin:0 0 1mm;font-size:12.6pt;line-height:6mm;white-space:nowrap}
.dmo-pr-problems{display:grid;grid-template-columns:94mm 94mm;column-gap:2mm;flex:none}
.dmo-pr-col{display:grid;grid-template-rows:repeat(5,36mm)}
.dmo-pr-cell{position:relative;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;height:36mm;padding:1.5mm 2mm 0}
.dmo-pr-cell+.dmo-pr-cell::before{content:'';position:absolute;top:0;left:0;right:0;border-top:0.3mm dotted #888}
.dmo-pr-q{margin:0;font-size:12.6pt;line-height:6mm;height:6mm;white-space:nowrap;font-weight:700}
.dmo-pr-work{position:relative;box-sizing:border-box;height:17mm;margin:0.5mm 0 0;border:0.3mm solid #999;border-radius:1mm}
.dmo-pr-work-label{position:absolute;top:0.5mm;left:1.5mm;font-size:10pt;line-height:4mm;color:#555}
.dmo-pr-ansline{margin:1mm 0 0;display:flex;align-items:center;justify-content:flex-end;font-size:12.6pt;white-space:pre;height:9mm}
.dmo-pr-box{display:inline-block;box-sizing:border-box;width:30mm;height:9mm}
.dmo-pr-answers{flex:none;box-sizing:border-box;margin-top:2mm}
.dmo-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dmo-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.dmo-pr-answer-grid{display:grid;grid-template-columns:94mm 94mm;column-gap:2mm}
.dmo-pr-ans-col{display:grid;grid-template-rows:repeat(5,9mm)}
.dmo-pr-ans{margin:0;font-size:10pt;line-height:4.5mm;height:9mm;overflow:hidden;overflow-wrap:anywhere}
.dmo-app-pdf-page .dmo-pr-page{box-shadow:none;margin:0}

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