/* ── add_sub_inverse_blank2_3（たし算とひき算の式をぎゃくにたどって空らんをうめよう、単元仕様書 v1.5）── */
/* 画面：問題文と式（□をふくむ一行）、答えの欄と案内と共通のテンキー。回答後は正誤・正しい答え・解説・三量図（§5-3・§7・確定表 IBK-10）。 */
#question-text .asb-q{display:block;overflow-wrap:normal}
.asb-nb{white-space:nowrap}
.asb-phrase-group{display:inline;min-width:0}
.asb-q-text{display:block}
.asb-q-eq{display:block;margin-top:6px;text-align:center}
.asb-eq{display:inline;font-weight:800;font-size:1.35em;line-height:1.6}
.asb-eq-g{display:inline-block;white-space:nowrap}
.asb-box{display:inline-block;color:#1d4ed8}
/* 確定表 IBK-12：式は意味のまとまり（□＋a、－b、＝c）ごとにだけ折り返す */
.asb-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.asb-field-row{display:flex;align-items:center;gap:8px}
.asb-input{width:7em;min-height:48px;font-size:1.35rem;padding:0 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box;white-space:pre}
.asb-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.asb-input.asb-ok,.asb-input.asb-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.asb-input.asb-ng,.asb-input.asb-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.asb-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.asb-guide[hidden]{display:none}
.asb-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.asb-msg:empty{min-height:0;margin:0}
.asb-main .ufk-keypad{margin-top:4px}
.feedback.has-text.asb-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.asb-correct{margin:2px 0 6px;font-weight:800;font-size:17px}
.asb-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:normal;word-break:normal;line-break:strict}
.asb-figs{margin:6px 0 4px;display:flex;flex-direction:column;align-items:center;gap:4px;max-width:100%}
.asb-fig-title{margin:0;font-weight:800;font-size:15px}
.asb-fig{margin:0;max-width:100%}
.asb-fig-svg{display:block;max-width:100%;height:auto}
.asb-example .asb-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.asb-example .asb-ex-text{display:block}
.asb-example .asb-ex-a{margin:4px 0 14px;line-height:2.1}
.asb-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.asb-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.asb-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.asb-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.asb-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.asb-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="add_sub_inverse_blank2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="add_sub_inverse_blank2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){#page-lesson .lesson-point:has(.asb-nb),#page-lesson .lesson-point:has(.asb-nb) *{font-size:15px}#page-lesson .lesson-example:has(.asb-example){padding-left:12px;padding-right:12px}#page-lesson .lesson-example div:has(>.asb-example){padding-left:8px;padding-right:8px}.asb-example .asb-ex-q,.asb-example .asb-ex-a{font-size:15px}.asb-eq{font-size:1.2em}}

/* 印刷（A4縦・2列・1ページ。§7・確定表 IBK-07） */
.asb-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}
.asb-pr-headrow{display:flex;flex-direction:column;gap:0}
.asb-pr-title{font-size:14pt;margin:0;height:7mm;line-height:7mm;text-align:center;font-weight:700}
.asb-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.asb-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.5mm 0 1mm!important;border:0;border-top:2px solid #333}
.asb-pr-inst{font-size:12.5pt;line-height:5.6mm;margin:0 0 3mm;padding:0 1mm}
.asb-pr-problems{display:flex;gap:6mm;justify-content:center}
.asb-pr-col{width:92mm;display:flex;flex-direction:column;gap:3mm}
.asb-pr-cell{box-sizing:border-box;width:92mm;height:34mm;border:1.5px solid #999;border-radius:1.5mm;padding:0.6mm 1mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column;gap:0.6mm}
.asb-pr-q{font-size:12.5pt;height:9mm;line-height:9mm;flex:none;white-space:nowrap;font-weight:700}
.asb-pr-q .asb-eq{font-size:12.5pt;font-weight:700;line-height:9mm}
.asb-pr-q .asb-box{color:#000}
.asb-pr-num{margin-right:2mm}
.asb-pr-box{font-size:12.5pt;height:9mm;line-height:9mm;flex:none;white-space:nowrap}
.asb-pr-blank{display:inline-block;min-width:26mm;height:8mm;vertical-align:middle;white-space:pre;border-bottom:0.6mm solid #333}
.asb-pr-work{box-sizing:border-box;width:100%;height:12.5mm;flex:none;border:0.6mm dashed #666;border-radius:1mm;padding:0.4mm 1mm}
.asb-pr-worklabel{font-size:9pt;color:#333}
.asb-pr-answers{margin-top:4mm;border-top:2px dashed #666;padding-top:0.5mm}
.asb-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.asb-pr-acols{display:flex;gap:6mm}
.asb-pr-acol{width:92mm}
.asb-pr-answer{margin:0 0 1.4mm;font-size:10pt;line-height:4.6mm}
#pr-sheet[data-unit="add_sub_inverse_blank2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="add_sub_inverse_blank2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="add_sub_inverse_blank2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="add_sub_inverse_blank2_3"] .asb-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="add_sub_inverse_blank2_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="add_sub_inverse_blank2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="add_sub_inverse_blank2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="add_sub_inverse_blank2_3"] .asb-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.asb-app-pdf-page .asb-pr-page{box-shadow:none;margin:0}
