/* ── multiply_divide_error_correction3_4（かけ算とわり算の取りちがえを直そう、単元仕様書 v1.4）── */
/* 画面：問題文、関係図（左に元の数、右の上の行にまちがえた計算（点線のやじるし）とまちがえた答え、右の下の行に本来の計算（実線）と正しい答え、
   回答後はまん中の行にもどすやじるし（太線）とぎゃくの計算）、4択、回答案内（§5-3・§7）。線の形と見出しのことばで区別し、色だけにたよらない。 */
#question-text .mec-q{display:block;line-height:1.9}
.mec-nw{white-space:nowrap}
#mec-main,.mec-expl-text,.mec-correct,.mec-q,.mec-guide-p{line-break:strict}
.mec-main{margin:4px 0 6px;width:100%;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:10px}
.mec-fig{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:8px;width:100%;max-width:560px;box-sizing:border-box;padding:8px;border:1.5px solid #cbd5e1;border-radius:10px;background:#f8fafc}
.mec-fig-left{display:flex;flex-direction:column;align-items:center;gap:2px}
.mec-fig-right{display:flex;flex-direction:column;gap:4px;min-width:0}
.mec-row{display:flex;flex-direction:column;gap:2px;min-width:0}
.mec-row-head{font-size:13px;font-weight:700;color:#334155;line-height:1.3}
.mec-fig-left .mec-row-head{display:none}
.mec-row-body{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.mec-box{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:76px;padding:4px 8px;border:2px solid #334155;border-radius:8px;background:#fff;line-height:1.25}
.mec-box-label{font-size:13px;font-weight:700;color:#334155;white-space:nowrap}
.mec-box-val{font-size:20px;font-weight:800;color:#111827;white-space:nowrap}
.mec-box-orig{border-width:3px;min-width:84px}
.mec-arrow{position:relative;display:flex;flex-direction:column;align-items:stretch;min-width:64px;flex:1 1 64px;max-width:150px}
.mec-arrow-label{font-size:15px;font-weight:800;text-align:center;line-height:1.3;white-space:nowrap}
.mec-arrow-line{position:relative;display:block;height:0;margin-right:9px;border-top:3px solid #1f2937}
.mec-arrow-line::after{content:'';position:absolute;right:-11px;top:-8px;border:6.5px solid transparent;border-left:11px solid #1f2937;border-right:0}
.mec-arrow-mistake .mec-arrow-line{border-top-style:dotted;border-top-width:4px}
.mec-arrow-undo{flex:1 1 64px;max-width:150px}
.mec-box-ghost{visibility:hidden;height:0;min-height:0;padding-top:0;padding-bottom:0;border-top-width:0;border-bottom-width:0;overflow:hidden}
.mec-arrow-undo .mec-arrow-label{font-size:14px;white-space:normal}
.mec-arrow-undo .mec-arrow-line{border-top-width:6px;margin-right:0;margin-left:12px}
.mec-arrow-undo .mec-arrow-line::after{right:auto;left:-13px;top:-10px;border:8px solid transparent;border-right:13px solid #1f2937;border-left:0}
.mec-row-empty{min-height:0}
.mec-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:560px}
@media (max-width:520px){.mec-choices{grid-template-columns:1fr}}
.mec-choice{position:relative;min-height:48px;padding:8px 26px 8px 12px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;font-size:1.05rem;font-weight:700;color:#111827;cursor:pointer;text-align:left;font-family:inherit;line-height:1.45;min-width:0}
.mec-choice.mec-sel{border:5px double #b45309;background:#fff7ed}
.mec-choice:disabled{cursor:default;opacity:1;color:#111827;border-color:#94a3b8;background:#f8fafc}
.mec-choice.mec-sel:disabled{border:5px double #b45309;background:#fff7ed}
.mec-choice.mec-right:disabled{border:3px solid #15803d;background:#dcfce7}
.mec-choice.mec-wrong:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.mec-check{position:absolute;top:2px;right:6px;font-size:.9rem;font-weight:900;color:#b45309}
.mec-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.45}
.mec-guide[hidden]{display:none}
.mec-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.45;max-width:560px}
.mec-msg:empty{min-height:0;margin:0}
.feedback.has-text.mec-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.mec-correct{margin:4px 0;font-weight:800}
.mec-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;line-height:1.8}
.mec-example p{margin:6px 0 8px;line-height:1.7}
.mec-example .mec-ex-a{padding-left:.5em;border-left:3px solid #cbd5e1}
#page-quiz.active:has(.mec-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}

/* 印刷：A4縦・2列×5段・1ページ（§7、v1.4）。題名の枠と記入らん（共通仕様 CP-08a・CP-08b）、共通の案内2行、
   問題の2列×5段（1問91×42mm：番号と文3行16.5mm、4択2行11mm、計算らん6mm、余り5mm以上）、下に答え（4件×3行）。 */
.mec-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}
.mec-pr-headrow{display:flex;flex-direction:column;flex:none}
.mec-pr-title{box-sizing:border-box;margin:0;height:8mm;width:100%;padding:0 2mm;font-size:14pt;font-weight:700;line-height:calc(8mm - 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}
.mec-pr-headrow .pp-fields.pp-fields-compact{height:7mm;margin:1mm 0 0}
.mec-pr-headrow 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}
.mec-pr-inst{flex:none;margin:0;font-size:12.5pt;line-height:5.5mm;white-space:nowrap}
.mec-pr-legend{margin-bottom:2mm}
.mec-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.mec-pr-col{display:flex;flex-direction:column}
.mec-pr-cell{box-sizing:border-box;width:91mm;height:42mm;border-top:2px solid transparent;padding:1mm 0 0;overflow:hidden;display:flex;flex-direction:column;gap:1mm}
.mec-pr-col .mec-pr-cell:last-child{border-bottom:2px solid transparent}
.mec-pr-q{margin:0;box-sizing:border-box;width:88mm;height:16.5mm;font-size:12.5pt;line-height:5.5mm;overflow-wrap:anywhere;word-break:normal;line-break:strict;overflow:hidden}
.mec-pr-choices{display:grid;grid-template-columns:43mm 43mm;column-gap:2mm;row-gap:0;height:11mm}
.mec-pr-choice{display:flex;align-items:baseline;box-sizing:border-box;width:43mm;font-size:12.5pt;line-height:5.5mm;white-space:nowrap}
.mec-pr-mark{display:inline-block;font-weight:700}
.mec-pr-sp{white-space:pre}
.mec-pr-a,.mec-pr-b{display:inline-block}
.mec-pr-a,.mec-pr-b,.mec-pr-sp{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.mec-pr-work{box-sizing:border-box;width:88mm;height:6mm;border-bottom:1px dashed #666;display:flex;align-items:flex-start}
.mec-pr-work-label{font-size:9pt;line-height:4mm;color:#333}
.mec-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.mec-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.mec-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.mec-pr-arow{display:flex}
.mec-pr-answer{display:inline-block;width:46mm;height:4.5mm;font-size:10pt;line-height:4.5mm;white-space:nowrap}
.mec-pr-page[lang=en] .mec-pr-inst,.mec-pr-page[lang=en] .mec-pr-q,.mec-pr-page[lang=en] .mec-pr-choice,.mec-pr-page[lang=en] .mec-pr-answer{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.mec-app-pdf-page .mec-pr-page{box-shadow:none;margin:0}

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