/* ── add_sub_cryptarithm2_3（たし算ひき算のふくめん数字を列ごとにとこう、単元仕様書 v1.2）── */
/* 画面：問題文、等幅の桁枠の筆算（位名・メモ欄・行ラベル・記号）、記号ごとの数字欄、案内と共通のテンキー（§5-3・§7・ACK-09・10）。 */
#question-text .acy-q{display:block;overflow-wrap:normal}
.acy-nb{white-space:nowrap}
.acy-phrase-group{display:inline;min-width:0}
.acy-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.acy-grid-wrap{max-width:100%;overflow:visible}
.acy-grid{display:grid;grid-template-columns:auto repeat(var(--acy-n),2.2em);column-gap:0;row-gap:2px;align-items:center;font-weight:800;font-size:1.35rem;line-height:1.5}
.acy-g-place{font-size:.6em;font-weight:700;color:#475569;text-align:center;line-height:1.2}
.acy-g-label{font-size:.6em;font-weight:700;color:#334155;text-align:right;padding-right:6px;white-space:nowrap;line-height:1.2}
.acy-g-op{font-size:1em;text-align:right;padding-right:6px}
.acy-g-d{display:block;text-align:center;border:1px dashed #cbd5e1;box-sizing:border-box;height:1.6em;line-height:1.55em}
.acy-g-d.acy-sym{border:2px solid #1d4ed8;background:#eff6ff;color:#1d4ed8;border-radius:4px}
.acy-sym-1{color:#7c3aed}.acy-g-d.acy-sym-1{border-color:#7c3aed;background:#f5f3ff;color:#7c3aed}
.acy-sym-2{color:#b45309}.acy-g-d.acy-sym-2{border-color:#b45309;background:#fff7ed;color:#b45309}
.acy-g-line{align-self:end;height:0;border-bottom:3px solid #0f172a;margin-bottom:-2px;pointer-events:none}
.acy-g-line-row{align-self:center;margin:0;position:relative;z-index:2}
.acy-g-memowrap{display:flex;justify-content:center}
.acy-g-memobox{display:block;justify-self:center;width:1.2em;height:1.2em;border:1px dotted #94a3b8;border-radius:3px;box-sizing:border-box}
.acy-memo{width:44px;height:44px;font-size:16px;text-align:center;border:1px dotted #94a3b8;border-radius:4px;background:#fff;color:#b45309;font-family:inherit;font-weight:700;padding:0;box-sizing:border-box}
.acy-memo:disabled{background:#f8fafc}
.acy-fields{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px}
.acy-field{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:104px}
.acy-field-label{display:flex;align-items:center;gap:4px;font-weight:800;font-size:16px}
.acy-field-sym{font-size:22px;line-height:1}
.acy-sym-0{color:#1d4ed8}
.acy-input{width:64px;min-height:48px;font-size:1.4rem;padding:0;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.acy-input.ufk-input-active{border-color:#b45309;background:#fff7ed;box-shadow:0 0 0 3px #fdba74}
.acy-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.acy-input.acy-ok,.acy-input.acy-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.acy-input.acy-ng,.acy-input.acy-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.acy-field-msg{margin:0;max-width:220px;min-height:0;color:#b45309;font-weight:700;font-size:14px;text-align:center;line-height:1.5}
.acy-field-msg:empty{display:none}
.acy-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.acy-guide[hidden]{display:none}
.acy-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.acy-msg:empty{min-height:0;margin:0}
.acy-msg-line{display:block}
.acy-main .ufk-keypad{margin-top:4px}
.feedback.has-text.acy-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.acy-field-result{margin:2px 0;font-weight:800;font-size:16px}
.acy-correct{margin:2px 0 6px;font-weight:800;font-size:17px}
.acy-expl-text{margin:4px 0 6px;line-height:2;overflow-wrap:normal;word-break:normal;line-break:strict}
.acy-expl-s{margin:0 0 2px}
.acy-example .acy-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.acy-example .acy-ex-grid{display:flex;justify-content:center;margin:4px 0}
.acy-example .acy-ex-grid .acy-grid{font-size:1.1rem}
.acy-example .acy-ex-a{margin:4px 0 14px;line-height:2.1}
.acy-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.acy-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.acy-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.acy-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.acy-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.acy-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="add_sub_cryptarithm2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="add_sub_cryptarithm2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){.acy-grid{font-size:1.15rem;grid-template-columns:28px repeat(var(--acy-n),40px)}.acy-g-label,.acy-g-place{font-size:11.5px}.acy-g-label{white-space:normal;line-height:1.25}.acy-g-label,.acy-g-op{padding-right:5px}.acy-memo{width:44px;height:44px;font-size:15px}.acy-example .acy-ex-grid .acy-grid{grid-template-columns:40px repeat(var(--acy-n),1.6em)}#page-lesson .lesson-point:has(.acy-nb),#page-lesson .lesson-point:has(.acy-nb) *{font-size:15px}#page-lesson .lesson-example:has(.acy-example){padding-left:10px;padding-right:10px}.acy-example .acy-ex-q,.acy-example .acy-ex-a{font-size:15px}.acy-example .acy-ex-grid .acy-grid{font-size:1rem}}

/* 印刷（A4縦・2列・1ページ。§7・確定表 ACK-11） */
.acy-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}
.acy-pr-headrow{display:flex;flex-direction:column;gap:0}
.acy-pr-title{font-size:14.5pt;margin:0;height:7mm;line-height:7mm;text-align:center;font-weight:700}
.acy-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.acy-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.5mm 0 1mm!important;border:0;border-top:2px solid #333}
.acy-pr-inst{font-size:13pt;line-height:5.6mm;margin:0 0 2mm;padding:0 1mm}
.acy-pr-problems{display:flex;gap:6mm;justify-content:center}
.acy-pr-col{width:92mm;display:flex;flex-direction:column;gap:2mm}
.acy-pr-cell{box-sizing:border-box;width:92mm;height:38mm;border:1.5px solid #999;border-radius:1.5mm;padding:0.6mm 2mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.acy-pr-num{font-size:13pt;font-weight:700;line-height:5.5mm;height:5.5mm;flex:none}
.acy-pr-band{display:flex;align-items:flex-start;gap:2mm}
.acy-pr-cell .acy-grid{font-size:16pt;grid-template-columns:6mm repeat(var(--acy-n),10mm);grid-template-rows:4.5mm!important;grid-auto-rows:7mm;row-gap:0;line-height:6mm}
.acy-pr-cell .acy-g-place{font-size:9pt;color:#000}
.acy-pr-cell .acy-g-op{padding-right:1mm}
.acy-pr-cell .acy-g-d{height:6mm;line-height:5.4mm;align-self:center;border:0.3mm dotted #888}
.acy-pr-cell .acy-g-d.acy-sym{border:0.4mm solid #000;background:#fff;color:#000}
.acy-pr-cell .acy-g-line{border-bottom:2px solid #000;margin-bottom:-1px}
.acy-pr-slots{flex:none;display:flex;flex-direction:column;gap:1mm;margin-top:4.5mm}
.acy-pr-slot{display:block;font-size:12.5pt;font-weight:700;line-height:6mm;white-space:nowrap}
.acy-pr-slotsym{color:#000!important}
.acy-pr-slotin{display:inline-block;min-width:10mm;white-space:pre;text-align:center}
.acy-pr-answers{margin-top:1.5mm;border-top:2px dashed #666;padding-top:0.5mm}
.acy-pr-anshead{font-size:13pt;font-weight:700;line-height:6mm}
.acy-pr-acols{display:flex;gap:6mm}
.acy-pr-acol{width:92mm}
.acy-pr-answer{margin:0 0 0.3mm;font-size:10.5pt;line-height:5mm}
#pr-sheet[data-unit="add_sub_cryptarithm2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="add_sub_cryptarithm2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="add_sub_cryptarithm2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="add_sub_cryptarithm2_3"] .acy-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_cryptarithm2_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_cryptarithm2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="add_sub_cryptarithm2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="add_sub_cryptarithm2_3"] .acy-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.acy-app-pdf-page .acy-pr-page{box-shadow:none;margin:0}
