/* ── decimal_threshold_ceiling3_5（条件を満たす最小量を切り上げて求めよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に式、数直線の図、答えの欄（名前・欄・単位）、回答案内、テンキー、こたえるボタン（§5-3・§7 画面表示）。 */
.dtc-nw{white-space:nowrap}
.question-text .dtc-em,.dtc-pr-q .dtc-em{font-weight:800;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.dtc-main{display:flex;flex-direction:column;align-items:center;margin:4px 0 6px;max-width:100%}
.dtc-expr{margin:2px 0 6px;font-size:1.3rem;font-weight:700;text-align:center;overflow-wrap:anywhere}
.dtc-expr-box{display:inline-block;width:1.1em;height:1.1em;line-height:1.1em;border:2px solid #0f172a;border-radius:3px;color:transparent;vertical-align:-0.15em;margin:0 2px;box-sizing:border-box}
.dtc-figure{width:100%;max-width:420px;margin:0 auto}
.dtc-nl{display:block;width:100%;height:auto;background:#fff;border:2px solid #cbd5e1;border-radius:10px}
.dtc-nl-line{stroke:#0f172a;stroke-width:2.5}
.dtc-nl-tick{stroke:#0f172a;stroke-width:2}
.dtc-nl-minor{stroke:#475569;stroke-width:1.2}
.dtc-nl-guide{stroke:#94a3b8;stroke-width:1.2;stroke-dasharray:3 3}
.dtc-nl-bound{stroke:#b91c1c;stroke-width:2.5;stroke-dasharray:6 4}
.dtc-nl-break{stroke:#0f172a;stroke-width:2;fill:none}
.dtc-nl-box{fill:#fff;stroke:#0f172a;stroke-width:2}
.dtc-nl-name{font-size:12px;font-weight:700;fill:#0f172a}
.dtc-nl-num{font-size:14px;font-weight:700;fill:#0f172a}
.dtc-nl-boundtext{fill:#7f1d1d}
.dtc-nl-step{font-size:12px;fill:#334155}
.dtc-fields{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:6px auto 2px}
.dtc-field-label,.dtc-field-unit{font-weight:700;font-size:1.2rem}
.dtc-input{width:6em;max-width:45vw;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}
.dtc-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.dtc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.dtc-input.dtc-input-ok{border:3px solid #15803d;background:#dcfce7}
.dtc-input.dtc-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.dtc-guide{margin:6px auto 4px;font-weight:700;text-align:center;max-width:32em}
.dtc-msg{margin:2px auto 0;color:#b91c1c;font-weight:700;font-size:1rem;text-align:center;max-width:32em}
.dtc-msg:empty{display:none}
.feedback.has-text.dtc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.dtc-correct{margin:2px 0 6px;font-weight:700;font-size:1rem}
.dtc-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;font-size:1rem}
#page-quiz.active:has(.dtc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.dtc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.dtc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.dtc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}
@media (max-width:420px){
  .dtc-expr{font-size:1.15rem}
}

/* 印刷：A4縦・2列・1ページ（§7。用紙の余白10mm、本文190×277mm、列91mm・列の間4mm。各問の領域は高さ43mm：問題文最大6行30mm、答えの欄の行7mm、余り6mm）。 */
.dtc-pr-page{width:190mm;height:277mm;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}
.dtc-pr-head{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm}
.dtc-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:14.3pt;font-weight:700;line-height:7.8mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.dtc-pr-instruction{margin:0 0 2mm;font-size:12.6pt;line-height:5.3mm;white-space:nowrap}
.dtc-pr-problems{display:grid;grid-template-columns:91mm 91mm;column-gap:4mm;flex:none;margin-left:2mm}
.dtc-pr-col{display:grid;grid-template-rows:repeat(5,43mm)}
.dtc-pr-cell{box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;height:43mm;padding:0.8mm 0 0}
/* 問と問のさかいめに点線（次の問の番号と前の問の答えの欄を見分ける）。 */
.dtc-pr-cell+.dtc-pr-cell{border-top:0.3mm dotted #888}
.dtc-pr-q{margin:0;font-size:12.6pt;line-height:5mm;max-height:30mm;width:86mm;overflow:hidden;overflow-wrap:normal;word-break:normal;line-break:strict}
.dtc-pr-ansline{margin:1mm 0 0;display:flex;align-items:center;gap:1mm;font-size:12.6pt;white-space:nowrap;height:7mm}
.dtc-pr-box{display:inline-block;box-sizing:border-box;width:20mm;height:7mm;border:0.35mm solid #333}
.dtc-pr-unit{font-weight:700}
.dtc-pr-answers{flex:none;box-sizing:border-box;margin-top:2mm}
.dtc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.dtc-pr-answers-title{font-weight:700;font-size:12.6pt;height:6mm;line-height:6mm}
.dtc-pr-answer-grid{display:grid;grid-template-columns:repeat(5,36.4mm);column-gap:1mm}
.dtc-pr-ans{margin:0;font-size:10.2pt;line-height:5mm;height:5mm;white-space:nowrap}
.dtc-app-pdf-page .dtc-pr-page{box-shadow:none;margin:0}

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