/* ── multiplication_partial_product_check2_3（かけ算の部分の答えとくらいをたしかめよう、単元仕様書 v1.2）── */
/* 画面：問題文、位取りの枠の筆算（位名・行ラベル・空らんの入力らん）、C群は選択肢と正しいかけ算の答えの欄、案内と共通のテンキー（§5-3・§7・MPK-07・08）。 */
#question-text .mpc-q{display:block;overflow-wrap:normal}
.mpc-nb{white-space:nowrap}
.mpc-phrase-group{display:inline;min-width:0}
.mpc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.mpc-grid-wrap{max-width:100%;overflow:visible}
.mpc-grid{display:grid;grid-template-columns:auto repeat(var(--mpc-n),2.1em);column-gap:0;row-gap:3px;align-items:center;font-weight:800;font-size:1.3rem;line-height:1.5}
.mpc-grid-4{--mpc-n:4}
.mpc-grid-5{--mpc-n:5}
.mpc-g-place{font-size:.62em;font-weight:700;color:#475569;text-align:center;line-height:1.2}
.mpc-g-label{font-size:.62em;font-weight:700;color:#334155;text-align:right;padding-right:6px;white-space:nowrap;line-height:1.2}
.mpc-g-op{font-size:1em;text-align:right;padding-right:6px}
.mpc-g-d{display:block;text-align:center;border:1px dashed #cbd5e1;box-sizing:border-box;height:1.6em;line-height:1.55em}
.mpc-g-carry{display:block;text-align:center;font-size:.72em;color:#b45309;line-height:1.4}
.mpc-g-line{align-self:end;height:0;border-bottom:3px solid #0f172a;margin-bottom:-2px;pointer-events:none}
.mpc-g-line-row{align-self:center;margin:0;position:relative;z-index:2}
.mpc-g-inwrap{position:relative;display:block}
.mpc-g-no{position:absolute;top:-.35em;left:-.2em;font-size:.6em;font-weight:800;color:#1d4ed8;background:#fff;line-height:1;padding:0 1px;z-index:1}
.mpc-input{width:100%;min-height:44px;font-size:1.15rem;padding:0 2px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:6px;text-align:right;font-family:inherit;font-weight:800;box-sizing:border-box;letter-spacing:.35em}
.mpc-input-carry{text-align:center;letter-spacing:0;min-width:44px}
.mpc-input:not(.mpc-input-carry):not(.mpc-input-fix){text-align:center;letter-spacing:0}
.mpc-g-inwrap{--ufk-col-fs:1.15rem}
.mpc-g-carrywrap{justify-self:center;min-width:44px}
.mpc-input.ufk-input-active{border-color:#b45309;background:#fff7ed;box-shadow:0 0 0 3px #fdba74}
.mpc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.mpc-input.mpc-ok,.mpc-input.mpc-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.mpc-input.mpc-ng,.mpc-input.mpc-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.mpc-choices{display:flex;flex-direction:column;gap:8px;width:100%;max-width:520px}
.mpc-choice{min-height:44px;padding:6px 10px;border:2px solid #475569;border-radius:10px;background:#fff;text-align:left;font-size:16px;font-weight:700;font-family:inherit;cursor:pointer;line-height:1.5}
.mpc-choice.mpc-chosen{border:3px solid #1d4ed8;background:#dbeafe}
.mpc-choice.mpc-choice-right{border:3px solid #15803d;background:#dcfce7}
.mpc-choice.mpc-choice-wrong{border:3px dashed #b91c1c;background:#fff1f2}
.mpc-choice:disabled{opacity:1;color:#111827;cursor:default}
.mpc-fix-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.mpc-fix-label{font-weight:800;font-size:16px}
.mpc-input-fix{width:7em;letter-spacing:.1em;text-align:center}
.mpc-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.mpc-guide[hidden]{display:none}
.mpc-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.mpc-msg:empty{min-height:0;margin:0}
.mpc-msg-line{display:block}
.mpc-main .ufk-keypad{margin-top:4px}
.feedback.has-text.mpc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.mpc-field-result{margin:2px 0;font-weight:800;font-size:16px}
.mpc-correct{margin:2px 0 6px;font-weight:800;font-size:17px}
.mpc-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:normal;word-break:normal;line-break:strict}
.mpc-example .mpc-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.mpc-example .mpc-ex-grid{display:flex;justify-content:center;margin:4px 0}
.mpc-example .mpc-ex-grid .mpc-grid{font-size:1.1rem}
.mpc-example .mpc-ex-a{margin:4px 0 14px;line-height:2.1}
.mpc-g-blank{position:relative;display:block;border:2px solid #1d4ed8;border-radius:4px;height:1.6em;box-sizing:border-box;background:#fff}
.mpc-g-blank-carry{width:1.6em;justify-self:center}
.mpc-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.mpc-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.mpc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.mpc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.mpc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.mpc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="multiplication_partial_product_check2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="multiplication_partial_product_check2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){.mpc-grid{font-size:1.1rem;grid-template-columns:64px repeat(var(--mpc-n),40px)}.mpc-grid-4{grid-template-columns:64px repeat(4,44px)}.mpc-g-label,.mpc-g-place{font-size:12px}.mpc-g-label{white-space:normal;line-height:1.25;font-size:11.5px}.mpc-g-label,.mpc-g-op{padding-right:5px}.mpc-example .mpc-ex-grid .mpc-grid{grid-template-columns:58px repeat(var(--mpc-n),1.5em)}.mpc-example .mpc-ex-grid .mpc-g-label,.mpc-example .mpc-ex-grid .mpc-g-place{font-size:11px}#page-lesson .lesson-point:has(.mpc-nb),#page-lesson .lesson-point:has(.mpc-nb) *{font-size:15px}#page-lesson .lesson-example:has(.mpc-example){padding-left:10px;padding-right:10px}#page-lesson .lesson-example div:has(>.mpc-example){padding-left:6px;padding-right:6px}.mpc-example .mpc-ex-q,.mpc-example .mpc-ex-a{font-size:15px}.mpc-example .mpc-ex-grid .mpc-grid{font-size:1rem}}

/* 印刷（A4縦・2列・1ページ。§7・確定表 MPK-09） */
.mpc-pr-page{width:190mm;box-sizing:border-box;color:#000;background:#fff;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;display:flex;flex-direction:column}
.mpc-pr-headrow{display:flex;flex-direction:column;gap:0}
.mpc-pr-title{font-size:14.5pt;margin:0;height:7mm;line-height:7mm;text-align:center;font-weight:700}
.mpc-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.mpc-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.5mm 0 1mm!important;border:0;border-top:2px solid #333}
.mpc-pr-inst{font-size:13pt;line-height:5.4mm;margin:0;padding:0 1mm}
.mpc-pr-legend{margin:0.5mm 0 1mm;padding:0 1mm}
.mpc-pr-legend-line{margin:0;font-size:13pt;line-height:5.4mm}
.mpc-pr-problems{display:flex;gap:6mm;justify-content:center}
.mpc-pr-col{width:92mm;display:flex;flex-direction:column;gap:0.8mm}
.mpc-pr-cell{box-sizing:border-box;width:92mm;height:38mm;border:1.5px solid #999;border-radius:1.5mm;padding:0.3mm 1.5mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.mpc-pr-cell .mpc-pr-num{font-size:13pt;font-weight:700;line-height:5mm;text-align:left;white-space:nowrap;align-self:start}
.mpc-pr-band{display:flex;align-items:flex-start;gap:3mm}
.mpc-pr-cell .mpc-grid{font-size:13pt;grid-template-columns:auto repeat(var(--mpc-n),6.5mm);grid-template-rows:4.8mm!important;grid-auto-rows:5.4mm;row-gap:0;line-height:5mm;align-items:center}
.mpc-pr-cell .mpc-g-place,.mpc-pr-cell .mpc-g-label{font-size:9pt;color:#000}
.mpc-pr-cell .mpc-g-carry{font-size:9pt;color:#000}
.mpc-pr-cell .mpc-g-d{height:4.2mm;line-height:4mm;align-self:center;border:0.3mm dotted #888}
.mpc-pr-cell .mpc-g-blank{height:4mm;align-self:center;border:0.4mm solid #000}
.mpc-pr-cell .mpc-g-blank-carry{width:5.2mm}
.mpc-pr-cell .mpc-g-no{font-size:9pt;top:-0.35mm;left:-0.8mm;color:#000}
.mpc-pr-cell .mpc-g-line{border-bottom:2px solid #000;margin-bottom:-1px}
.mpc-pr-right{width:23mm;flex:none;display:flex;flex-direction:column;gap:0.6mm;margin-top:4.8mm}
.mpc-pr-boxlabel{font-size:13pt;font-weight:700;line-height:5mm}
.mpc-pr-box{box-sizing:border-box;height:7mm;border:0.4mm solid #000;border-radius:1mm}
.mpc-pr-box-k{width:10mm}
.mpc-pr-box-p{width:23mm}
.mpc-pr-answers{margin-top:1.5mm;border-top:2px dashed #666;padding-top:0.5mm}
.mpc-pr-anshead{font-size:13pt;font-weight:700;line-height:6mm}
.mpc-pr-acols{display:flex;gap:6mm}
.mpc-pr-acol{width:92mm}
.mpc-pr-answer{margin:0 0 0.3mm;font-size:10.5pt;line-height:4.6mm}
#pr-sheet[data-unit="multiplication_partial_product_check2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="multiplication_partial_product_check2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="multiplication_partial_product_check2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="multiplication_partial_product_check2_3"] .mpc-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="multiplication_partial_product_check2_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="multiplication_partial_product_check2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="multiplication_partial_product_check2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="multiplication_partial_product_check2_3"] .mpc-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.mpc-app-pdf-page .mpc-pr-page{box-shadow:none;margin:0}
