/* ── mass_container_unknown2_3（入れものを引いて重さとこ数をもとめよう、単元仕様書 v1.2）── */
/* 画面：共通の問い・問題文の下に、段階ごとの 式 の欄・＝・答え の欄と単位、画面のキー（§7 画面表示）。表と図は置かない。 */
.mcu-common{margin:0 0 4px;font-weight:700;font-size:15px;color:#1e3a8a;line-height:1.45}
.mcu-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.mcu-fields{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.mcu-step{display:flex;flex-direction:column;gap:2px}
.mcu-step-label{margin:0;font-weight:700;font-size:15px;line-height:1.35}
.mcu-row{display:flex;align-items:flex-end;gap:6px;flex-wrap:nowrap}
.mcu-field{display:flex;flex-direction:column;align-items:center;gap:1px}
.mcu-label{font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap}
.mcu-eq{flex:none;font-size:1.3rem;font-weight:700;padding-bottom:8px}
.mcu-input{min-height:44px;font-size:1.3rem;padding:2px 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;box-sizing:border-box}
.mcu-input-expr{width:8.5em}
.mcu-input-answer{width:4.2em}
.mcu-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.mcu-input.mcu-active{outline:3px solid #f59e0b;outline-offset:1px}
.mcu-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
/* 採点後：正しい欄は緑の実線、まちがえた欄は赤の点線の太い枠（色だけにせず線の形でも区別する）。 */
.mcu-input.mcu-ok,.mcu-input.mcu-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.mcu-input.mcu-ng,.mcu-input.mcu-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.mcu-unit{font-weight:700;font-size:1.1rem;padding-bottom:10px;white-space:nowrap}
.mcu-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center}
.mcu-msg:empty{min-height:0;margin:0}
.mcu-keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:100%;max-width:300px;margin:12px auto 0}
.mcu-key{font-family:var(--font-ui)}
.mcu-keypad[hidden]{display:none}
.mcu-key{min-height:44px;min-width:44px;font-size:1.3rem}
.mcu-key-op{background:#e0e7ff}
.mcu-key-clear{font-size:1rem}
.feedback.has-text.mcu-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.mcu-correct{margin:4px 0;font-weight:700;overflow-wrap:anywhere}
.mcu-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
#page-quiz.active:has(.mcu-main) #question-text,#page-quiz.active:has(.mcu-main) #hint-area .kp-body,#page-quiz.active:has(.mcu-main) #feedback,.mcu-expl-text,.mcu-correct,.mcu-common,.mcu-step-label{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.mcu-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.mcu-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.mcu-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.mcu-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
@media (max-width:380px){
  .mcu-input-expr{width:7.2em}
  .mcu-input-answer{width:3.8em}
  .mcu-input{font-size:1.15rem;padding:2px 3px}
  .mcu-row{gap:4px}
}

/* 幅340px以下：英語の長い単位（marbles）が問題の枠の右へ切れないように、欄の幅と単位の字を少し小さくする（再検査_255） */
@media (max-width:340px){
  .mcu-input-expr{width:6.7em}
  .mcu-input-answer{width:3.3em}
  .mcu-unit{font-size:1rem}
}

/* 印刷：A4縦・1ページ（§7。用紙の余白 上下5mm・左右6mm、本文198×287mm。題名と記入欄19mm、共通の問い7mm、2列×5段で1段46mm、解答31mm。記入枠の高さ10.3mm）。 */
.mcu-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}
.mcu-pr-headblock{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;height:19mm}
.mcu-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:15pt;font-weight:700;line-height: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}
.mcu-pr-page[lang="en"] .mcu-pr-title{font-size:13pt}
.mcu-pr-fields{display:flex;gap:6mm;align-items:flex-end;height:7mm;margin-top:1mm;font-size:12pt;line-height:6mm;white-space:nowrap}
.mcu-pr-group{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.mcu-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.mcu-pr-field-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:1pt solid #555}
.mcu-field-name{flex:1;min-width:0}
.mcu-field-name .mcu-pr-field-line{flex:1;width:auto;min-width:40mm}
.mcu-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.mcu-pr-common{flex:none;margin:0;height:7mm;line-height:7mm;font-size:16.7px;font-weight:700;white-space:nowrap;overflow:hidden}
.mcu-pr-page[lang="en"] .mcu-pr-common{font-size:11pt}
.mcu-pr-problems{display:flex;gap:4mm;flex:none;height:220mm}
.mcu-pr-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column}
.mcu-pr-cell{box-sizing:border-box;height:44mm;display:flex;flex-direction:column;padding:0.3mm 0 0.3mm;border-bottom:0.2mm solid transparent;overflow:hidden}
.mcu-pr-q{flex:none;height:21.2mm;font-size:16.7px;line-height:5.3mm;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
.mcu-pr-num{font-weight:700;margin-right:1.5mm}
.mcu-pr-writes{flex:none;display:flex;flex-direction:column;gap:1mm;margin-top:0}
.mcu-pr-wrow{display:flex;align-items:center;gap:1.2mm;height:10.3mm}
.mcu-pr-wlabel{flex:none;width:25mm;font-size:10pt;font-weight:700;line-height:1.1;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
.mcu-pr-cell[data-mcu-type="A"] .mcu-pr-wlabel{width:8mm}
.mcu-pr-page[lang="en"] .mcu-pr-cell[data-mcu-type="A"] .mcu-pr-wlabel{width:25mm}
.mcu-pr-page[lang="en"] .mcu-pr-cell[data-mcu-type="A"] .mcu-pr-box-expr{max-width:38mm}
.mcu-pr-box{display:inline-block;box-sizing:border-box;height:10.3mm;border:0.35mm solid #333;background:#fff}
.mcu-pr-box-expr{flex:1;min-width:30mm;max-width:38mm}
.mcu-pr-cell[data-mcu-type="A"] .mcu-pr-box-expr{max-width:48mm}
.mcu-pr-box-answer{width:17mm;flex:none}
.mcu-pr-eq{flex:none;font-size:11pt}
.mcu-pr-unit{flex:none;font-size:10.5pt;white-space:nowrap}
.mcu-pr-answers{flex:none;box-sizing:border-box;height:30.5mm}
.mcu-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.2mm 0 1.3mm;padding:0;border:0;border-top:2pt dashed #aaa}
.mcu-pr-answers-title{font-weight:700;font-size:11pt;line-height:5mm;height:5mm}
.mcu-pr-answers-grid{display:flex;gap:4mm}
.mcu-pr-ans-col{flex:1 1 0;min-width:0}
.mcu-pr-ans{height:4.6mm;line-height:4.6mm;font-size:10pt;white-space:nowrap;overflow:hidden}
.mcu-pr-page[lang="en"] .mcu-pr-ans{font-size:9pt}
.mcu-app-pdf-page .mcu-pr-page{box-shadow:none;margin:0}

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