/* ── difference_chain_unknown_1（ちがいをつないでかずをもとめよう、単元仕様書 v1.2）── */
/* 画面：問題文の下に、平行テープの図、答えの欄とテンキー（§5-3・§7 画面表示）。 */
.dcu-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.dcu-fig{width:100%;max-width:440px;box-sizing:border-box;display:flex;justify-content:center}
.dcu-svg{display:block;height:auto;overflow:visible}
.dcu-label{font-size:17px;font-weight:700;fill:#1f2937}
.dcu-start{font-size:16px;font-weight:700;fill:#1d4ed8}
.dcu-tape{fill:#e0f2fe;stroke:#0369a1;stroke-width:1.6}
.dcu-tape-known{fill:#bfdbfe;stroke:#1d4ed8;stroke-width:2}
.dcu-arrow{stroke:#334155;stroke-width:2}
.dcu-arrow-head{fill:#334155}
.dcu-rel-label{font-size:15px;font-weight:700}
.dcu-rel-plus .dcu-rel-label{fill:#166534}
.dcu-rel-minus .dcu-rel-label{fill:#b91c1c}
.dcu-example-answer{margin:6px 0 0;font-weight:700}
.dcu-fields{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px auto 2px;flex-wrap:wrap}
.dcu-input-label{font-weight:700;font-size:1.05rem}
.dcu-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}
.dcu-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.dcu-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.dcu-input.dcu-input-ok{border:3px solid #15803d;background:#dcfce7}
.dcu-input.dcu-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.feedback.has-text.dcu-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.feedback.has-text.dcu-error{color:#b45309}
.dcu-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
#page-quiz.active:has(.dcu-main) #question-text{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.dcu-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dcu-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dcu-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dcu-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
.lesson-card .dcu-fig{margin:4px 0}

/* 印刷：A4横・1ページ（§7。用紙の余白 上下5mm・左右6mm、本文285×200mm、2列×5段）。 */
.dcu-pr-page{width:277mm;height:190mm;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}
.dcu-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:277mm;height:16mm}
.dcu-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}
.dcu-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}
.dcu-pr-group{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.dcu-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.dcu-pr-field-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:1pt solid #555}
.dcu-field-name{flex:1;min-width:0}
.dcu-field-name .dcu-pr-field-line{flex:1;width:auto;min-width:60mm}
.dcu-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}
.dcu-pr-common{flex:none;margin:0;height:6mm;line-height:6mm;font-size:12.5pt;font-weight:700}
.dcu-pr-problems{display:grid;grid-template-columns:137mm 137mm;column-gap:3mm;flex:none;height:146mm}
.dcu-pr-col{display:flex;flex-direction:column}
.dcu-pr-cell{box-sizing:border-box;height:29mm;margin-bottom:0.2mm;padding:0.3mm 1.5mm 0.3mm;border:0.3mm solid transparent;border-radius:1mm;overflow:hidden;display:flex;flex-direction:column}
.dcu-pr-q{margin:0;flex:none;height:10.6mm;font-size:12.5pt;line-height:5.3mm;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere}
.dcu-pr-no{font-weight:700}
.dcu-pr-band{display:flex;align-items:center;justify-content:space-between;height:17.2mm;flex:none}
.dcu-pr-fig{flex:none;width:70mm;height:17.2mm;display:flex;align-items:center}
.dcu-pr-svg{display:block;overflow:visible}
.dcu-pr-label{font-size:3.53px;font-weight:700;fill:#000;font-family:inherit}
.dcu-pr-start{font-size:3.53px;font-weight:700;fill:#000;font-family:inherit}
.dcu-pr-rel-label{font-size:3.88px;font-weight:700;fill:#000;font-family:inherit}
.dcu-pr-tape{fill:#fff;stroke:#000;stroke-width:0.25}
.dcu-pr-tape-known{fill:#ccc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.dcu-pr-arrow{stroke:#000;stroke-width:0.3}
.dcu-pr-arrow-head{fill:#000}
.dcu-pr-boxes{flex:none;display:flex;align-items:flex-end;gap:3mm;height:16.5mm}
.dcu-pr-box-group{display:flex;flex-direction:column;align-items:flex-start;gap:0.8mm}
.dcu-pr-box-label{font-size:11pt;line-height:4.6mm;height:4.6mm;white-space:nowrap}
.dcu-pr-box-row{display:flex;gap:1.5mm}
.dcu-pr-box-item{display:inline-flex;align-items:center;gap:0.8mm}
.dcu-pr-box-name{font-size:10pt;font-weight:700;line-height:1}
.dcu-pr-box{display:inline-block;box-sizing:border-box;width:13mm;height:10.5mm;border:1pt solid #333}
.dcu-pr-answers{flex:none;box-sizing:border-box;height:21.5mm}
.dcu-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.6mm 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dcu-pr-ans-wrap{display:grid;grid-template-columns:20mm 1fr 1fr 1fr;column-gap:2mm}
.dcu-pr-answers-title{font-weight:700;font-size:12pt;line-height:4.8mm}
.dcu-pr-ans-col{display:flex;flex-direction:column}
.dcu-pr-ans{margin:0;font-size:11pt;line-height:4.8mm;height:4.8mm;white-space:nowrap;overflow:hidden}
.dcu-app-pdf-page .dcu-pr-page{box-shadow:none;margin:0}

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