/* ── mixed_operation_order3_4（まじった計算のじゅんじょをたしかめよう、単元仕様書 v1.3）── */
/* 画面：問題文、式（A群は記号の真上に選択肢の記号）、計算の行、4択、回答案内。回答後は記号の真上に計算の順の番号と正しい計算の行（§5-3・§7）。 */
#question-text .moo-q{display:block}
.moo-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.moo-figs{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;column-gap:12px;max-width:100%}
.moo-fig{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:100%;margin:2px auto 8px;padding:6px 12px;border:2px solid #64748b;border-radius:10px;background:#fff}
.moo-fig-order-head{font-size:12px;font-weight:700;color:#475569}
.moo-expr,.moo-line{display:flex;flex-wrap:wrap;align-items:flex-end;row-gap:6px;font-size:20px;font-weight:800;color:#0f172a;font-variant-numeric:tabular-nums;line-height:1.2}
.moo-expr{padding-top:2px}
.moo-tok{display:inline-flex;flex-direction:column;align-items:center;white-space:nowrap}
.moo-o{min-width:1.15em;margin:0 1px}
.moo-o-marked{min-width:1.6em}
.moo-mark{font-size:14px;font-weight:800;color:#1d4ed8;line-height:1.1;border:1.5px solid #1d4ed8;border-radius:6px;padding:0 3px;margin-bottom:1px}
.moo-order{font-size:13px;font-weight:800;color:#fff;background:#b45309;border-radius:999px;min-width:1.3em;text-align:center;line-height:1.3;margin-bottom:1px}
.moo-line-mark{display:inline-block;min-width:1.4em;margin-right:4px;font-size:16px;color:#1d4ed8;align-self:center}
.moo-eq{margin-right:2px;color:#334155;align-self:flex-end}
.moo-first{margin-left:8px;font-size:13px;font-weight:800;color:#b91c1c;align-self:center;white-space:nowrap}
.moo-table{margin:2px auto 8px;padding:6px 12px;border:1px dashed #94a3b8;border-radius:8px;background:#f8fafc;max-width:100%}
.moo-table-head{font-size:12px;font-weight:700;color:#475569;margin-bottom:2px}
.moo-table .moo-line{font-size:17px;color:#1e3a8a;overflow-wrap:anywhere}
.moo-guide{margin:4px 0 2px;font-size:15px;font-weight:700;text-align:center;line-height:1.4}
.moo-guide[hidden]{display:none}
.moo-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,640px);margin:2px auto}
.moo-choices-C2{grid-template-columns:minmax(0,1fr)}
.moo-choice{position:relative;box-sizing:border-box;min-height:52px;padding:6px 8px 6px 26px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.05rem;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer;touch-action:manipulation;text-align:left;word-break:keep-all;overflow-wrap:normal}
.moo-check{position:absolute;top:1px;left:6px;font-size:18px;font-weight:900;color:#1d4ed8}
.moo-choice.moo-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.moo-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.moo-choice:disabled{cursor:default;opacity:1}
.moo-choice.moo-ok,.moo-choice.moo-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.moo-choice.moo-ng,.moo-choice.moo-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.moo-choice.moo-right,.moo-choice.moo-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.moo-ok .moo-check,.moo-right .moo-check{color:#15803d}
.moo-ng .moo-check{color:#b91c1c}
.moo-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.moo-msg:empty{min-height:0;margin:0}
.feedback.has-text.moo-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.moo-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.moo-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.moo-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
@media (max-width:480px){.moo-expr,.moo-line{font-size:18px}.moo-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.moo-choices-C2{grid-template-columns:minmax(0,1fr)}.moo-fig{padding:6px 8px}}
@media (max-width:360px){.moo-expr,.moo-line{font-size:16.5px}.moo-choice{font-size:.98rem;padding-left:24px}}

.moo-example .moo-ex-q{font-weight:700;margin:6px 0 2px}
.moo-example .moo-ex-a{margin:2px 0 8px;overflow-wrap:anywhere}
#page-quiz.active:has(.moo-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.moo-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.moo-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.moo-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.moo-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4縦・2列・1ページ（§7）。題名の枠（幅いっぱい・中央）とその下の記入欄、共通の案内、2列（各5問、各問の高さ 46.5mm）、破線、答え1行。 */
.moo-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}
.moo-pr-headrow{display:flex;flex-direction:column;gap:1.5mm;flex:none}
.moo-pr-title{box-sizing:border-box;margin:0;height:8mm;width:100%;padding:0 2mm;font-size:14pt;font-weight:700;line-height:7.4mm;white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact;flex:none}
.moo-pr-hfields{display:flex;gap:2mm;align-items:flex-end;min-width:0;height:6mm;font-size:12pt;line-height:6mm;white-space:nowrap}
.moo-pr-hfield{display:inline-flex;align-items:flex-end;gap:1mm;flex:none}
.moo-pr-hfield-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:2px solid #555}
.moo-hfield-name{flex:1;min-width:0}
.moo-hfield-name .moo-pr-hfield-line{flex:1;width:auto;min-width:30mm}
.moo-pr-headline{display:block;height:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.moo-pr-inst{flex:none;margin:1.2mm 0 0;font-size:12.5pt;line-height:5.5mm}
.moo-pr-problems{flex:none;display:grid;grid-template-columns:repeat(2,91mm);column-gap:4mm;margin:5.2mm 0 0}
.moo-pr-col{display:flex;flex-direction:column}
.moo-pr-cell{box-sizing:border-box;height:46.5mm;overflow:hidden;padding:0.6mm 0 0;background:linear-gradient(#bbb,#bbb) top left/100% 2px no-repeat;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.moo-pr-q{height:5.5mm;line-height:5.5mm;font-size:12.5pt;white-space:pre;font-weight:700}
.moo-pr-expr,.moo-pr-line{display:flex;flex-wrap:nowrap;align-items:flex-end;font-size:12.5pt;line-height:5.5mm;white-space:nowrap;font-weight:400}
.moo-pr-expr .moo-tok,.moo-pr-line .moo-tok{line-height:5.5mm}
.moo-pr-page .moo-o{min-width:0;margin:0}
.moo-pr-page[lang="en"] .moo-o{margin:0 1.2mm}
.moo-pr-page .moo-o-marked,.moo-pr-has-marks .moo-o{min-width:5mm}
.moo-pr-page .moo-mark{font-size:12.5pt;line-height:5mm;border-width:1px;padding:0 0.8mm;margin-bottom:0.3mm;color:#000;border-color:#000}
.moo-pr-page .moo-eq{color:#000}
.moo-pr-page[lang="en"] .moo-eq{margin-right:1.5mm}
.moo-pr-line-mark{display:inline-block;min-width:5mm;font-size:12.5pt}
.moo-pr-choices{font-size:12.5pt;line-height:5.5mm;white-space:nowrap}
.moo-pr-choices-B{display:flex;gap:6mm}
.moo-pr-choices-C2{display:grid;grid-template-columns:max-content}
.moo-pr-choices-C2.moo-pr-two{grid-template-columns:repeat(2,max-content);column-gap:6mm}
.moo-pr-choice{height:5.5mm}
.moo-pr-work{box-sizing:border-box;width:88mm;height:23mm;margin-top:1mm;border:1px dashed #999;border-radius:1.5mm;padding:0.5mm 1.5mm}
.moo-pr-work-label{font-size:9pt;line-height:4mm;color:#333}
.moo-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5.2mm}
.moo-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.moo-pr-ansrow{display:grid;grid-template-columns:22mm repeat(10,16.8mm);align-items:baseline;height:5.5mm;line-height:5.5mm;font-size:10pt;white-space:nowrap}
.moo-pr-answers-title{font-weight:700;font-size:12.5pt}
.moo-app-pdf-page .moo-pr-page{box-shadow:none;margin:0}

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