/* ── change_story_unknown_role2_1（かわるまえやかわったかずをもとめよう、単元仕様書 v1.4）── */
/* 画面：問題文の下に、三枠図、答えの欄とテンキー（§5-3・§7 画面表示）。 */
.csu-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.csu-model{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%;max-width:440px;box-sizing:border-box;margin:0 auto}
.csu-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.csu-lab{font-size:15px;font-weight:700;color:#1f2937;text-align:center;line-height:1.25;word-break:keep-all;overflow-wrap:anywhere;min-height:2.5em;display:flex;align-items:flex-end;justify-content:center}
.csu-box{box-sizing:border-box;width:100%;max-width:110px;min-height:56px;border:3px solid #1d4ed8;border-radius:10px;background:#eff6ff;display:flex;align-items:center;justify-content:center;gap:4px;font-size:1.6rem;font-weight:700;color:#111827}
.csu-col-change .csu-box{border-color:#475569;background:#f8fafc}
.csu-model[data-csu-dir="plus"] .csu-col-change .csu-box{color:#166534}
.csu-model[data-csu-dir="minus"] .csu-col-change .csu-box{color:#b91c1c}
.csu-box.csu-unknown{border:3px dashed #b45309;background:#fffbeb}
.csu-blank{display:inline-block;box-sizing:border-box;width:30px;height:34px;border:3px dashed #b45309;border-radius:6px;background:#fffbeb}
.csu-arrow{flex:none;font-size:1.5rem;font-weight:700;color:#334155;line-height:56px;height:56px}
.csu-example{margin:6px 0 10px}
.csu-example-answer{margin:6px 0 0;font-weight:700}
.csu-fields{display:flex;justify-content:center;align-items:center;gap:8px;margin:8px auto 2px;flex-wrap:wrap}
.csu-input-label{font-weight:700;font-size:1.05rem}
.csu-input{width:4em;min-height:44px;font-size:1.4rem;padding:4px 8px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;box-sizing:border-box}
.csu-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.csu-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.csu-input.csu-input-ok{border:3px solid #15803d;background:#dcfce7}
.csu-input.csu-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.feedback.has-text.csu-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.feedback.has-text.csu-error{color:#b45309}
.csu-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
#page-quiz.active:has(.csu-main) #question-text{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.csu-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.csu-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.csu-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.csu-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
.lesson-card .csu-model{margin:4px 0}

/* 印刷：A4横・1ページ（§7。用紙の余白 上下5mm・左右6mm、本文285×200mm、2列×5段）。 */
.csu-pr-page{width:285mm;height:200mm;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}
.csu-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:285mm;height:16mm}
.csu-pr-title{box-sizing:border-box;margin:0;height:8mm;font-size:15pt;font-weight:700;line-height:7mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.csu-pr-fields{display:flex;gap:8mm;align-items:flex-end;height:6.3mm;margin-top:0.3mm;font-size:12pt;line-height:6mm;white-space:nowrap}
.csu-pr-group{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.csu-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.csu-pr-field-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:1pt solid #555}
.csu-field-name{flex:1;min-width:0}
.csu-field-name .csu-pr-field-line{flex:1;width:auto;min-width:60mm}
.csu-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:0.8mm 0 0}
.csu-pr-common{flex:none;margin:0;height:6.5mm;line-height:6.5mm;font-size:12.5pt;font-weight:700}
.csu-pr-problems{display:grid;grid-template-columns:139.5mm 139.5mm;column-gap:6mm;flex:none;height:150mm}
.csu-pr-col{display:flex;flex-direction:column}
.csu-pr-cell{box-sizing:border-box;height:29.2mm;margin-bottom:0.8mm;padding:0.8mm 1.5mm 0.8mm;border:0.3mm solid transparent;border-radius:1mm;overflow:hidden;display:flex;flex-direction:column}
.csu-pr-q{margin:0;height:12.4mm;font-size:12.5pt;line-height:6.2mm;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere}
.csu-pr-no{font-weight:700}
.csu-pr-band{display:flex;align-items:flex-end;gap:2mm;height:13.8mm;margin-top:0.6mm;flex:none}
.csu-pr-model{flex:none;width:80mm;display:flex;align-items:flex-end;gap:0}
.csu-pr-col-start,.csu-pr-col-change,.csu-pr-col-end{flex:none;width:24mm;display:flex;flex-direction:column;align-items:center}
.csu-pr-lab{font-size:9pt;line-height:3.6mm;height:3.6mm;white-space:nowrap;font-weight:700}
.csu-pr-box{box-sizing:border-box;width:24mm;height:10mm;border:0.35mm solid #000;display:flex;align-items:center;justify-content:center;gap:1mm;font-size:13pt;font-weight:700}
.csu-pr-box.csu-pr-unknown{border:0.45mm dashed #000}
.csu-pr-blank{display:inline-block;box-sizing:border-box;width:7mm;height:7mm;border:0.35mm dashed #000}
.csu-pr-arrow{flex:none;width:4mm;text-align:center;font-size:11pt;line-height:10mm;height:10mm}
.csu-pr-write{position:relative;box-sizing:border-box;height:13.6mm;border:0.35mm solid #333}
.csu-pr-eq{width:29mm}
.csu-pr-ans-box{width:22mm}
.csu-pr-write-cap{position:absolute;left:0.8mm;top:0.3mm;font-size:9pt;line-height:3.6mm;color:#333}
.csu-pr-answers{flex:none;box-sizing:border-box;height:19mm}
.csu-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.6mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.csu-pr-ans-wrap{display:grid;grid-template-columns:22mm 1fr;column-gap:2mm}
.csu-pr-answers-title{font-weight:700;font-size:12.5pt;line-height:6mm}
.csu-pr-ans-rows{display:flex;flex-direction:column}
.csu-pr-ans-row{display:grid;grid-template-columns:repeat(5,1fr);height:6mm}
.csu-pr-ans{font-size:12.5pt;line-height:6mm;white-space:nowrap}
.csu-app-pdf-page .csu-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="change_story_unknown_role2_1"]{width:285mm;max-width:none;padding:0;margin:calc(12px + 6mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="change_story_unknown_role2_1"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="change_story_unknown_role2_1"]>#pr-problems{display:block}
/* 画面のプレビューでは、用紙の余白を白い縁で見せる（印刷の寸法は変えない）。 */
#pr-sheet[data-unit="change_story_unknown_role2_1"] .csu-pr-page{box-shadow:0 0 0 5mm #fff,0 0 0 6mm #fff,0 0 4px 6mm rgba(0,0,0,.12);margin-bottom:calc(8mm + 6mm)}
@media print{
  #page-print #pr-sheet[data-unit="change_story_unknown_role2_1"]{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="change_story_unknown_role2_1"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="change_story_unknown_role2_1"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="change_story_unknown_role2_1"] .csu-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
