/* ── large_number_threshold_day2_3（大きな数がもくひょうにとどく日をもとめよう、単元仕様書 v1.3）── */
/* 画面：問題文、回答欄（日目）、案内と共通のテンキー。回答後は正誤・正しい答え・解説・日別表（§5-3・§7）。 */
#question-text .lnt-q{display:block;overflow-wrap:anywhere}
.lnt-nb{white-space:nowrap}
.lnt-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.lnt-field-row{display:flex;align-items:center;gap:8px}
.lnt-input{width:4.5em;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}
.lnt-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.lnt-input.lnt-ok,.lnt-input.lnt-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.lnt-input.lnt-ng,.lnt-input.lnt-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.lnt-unit{font-size:17px;font-weight:800}
.lnt-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px}
.lnt-guide[hidden]{display:none}
.lnt-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.5;max-width:560px}
.lnt-msg:empty{min-height:0;margin:0}
.lnt-main .ufk-keypad{margin-top:4px}
.feedback.has-text.lnt-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.lnt-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.lnt-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.lnt-table-wrap{max-width:100%;overflow-x:visible}
.lnt-table{border-collapse:collapse;font-size:14px;margin:6px auto;max-width:100%}
.lnt-table caption{font-weight:700;font-size:14px;margin-bottom:4px}
.lnt-table th,.lnt-table td{border:2px solid #334155;padding:3px 6px;text-align:right;font-variant-numeric:tabular-nums}
.lnt-table thead th{background:#f1f5f9;text-align:center;font-size:13px}
.lnt-table th[scope=row]{background:#f8fafc;text-align:center;white-space:nowrap;min-width:52px}
.lnt-table td:nth-child(2){min-width:84px}
.lnt-table td:nth-child(3){min-width:110px}
.lnt-table tr.lnt-reach td,.lnt-table tr.lnt-reach th{font-weight:800}
.lnt-mark{display:block;font-size:12px;font-weight:700;text-align:right;white-space:normal}
.lnt-example .lnt-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.lnt-example .lnt-ex-a{margin:4px 0 6px;line-height:2.1}
.lnt-example .lnt-table{margin-bottom:14px}
#page-quiz.active:has(.lnt-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.lnt-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.lnt-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.lnt-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.lnt-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="large_number_threshold_day2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="large_number_threshold_day2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){.lnt-table{font-size:13px}.lnt-table th,.lnt-table td{padding:3px 3px}.lnt-example .lnt-table{font-size:12px}.lnt-example .lnt-table th[scope=row]{min-width:40px}.lnt-example .lnt-table td:nth-child(2){min-width:64px}.lnt-example .lnt-table td:nth-child(3){min-width:84px}.lnt-example .lnt-table thead th{font-size:12px}#page-lesson .lesson-example:has(.lnt-example){padding-left:12px;padding-right:12px}#page-lesson .lesson-example div:has(>.lnt-example){padding-left:6px;padding-right:6px}}

/* 幅360px以下の説明の例題の表：枠の内側の余白をつめ、見出しと「もくひょうより…」の注を折り返して、右の列が切れないようにする */
@media (max-width:360px){#page-lesson .lesson-example div:has(>.lnt-example){padding-left:4px!important;padding-right:4px!important;border-left-width:0}#page-lesson .lnt-example .lnt-table-wrap{margin:0 -4px;max-width:none}.lnt-example .lnt-table{width:100%;table-layout:fixed;font-size:11.5px}.lnt-example .lnt-table th,.lnt-example .lnt-table td{padding:2px 2px;overflow-wrap:anywhere;word-break:break-all;line-break:strict}.lnt-example .lnt-table thead th{font-size:11px;width:auto}.lnt-example .lnt-table th[scope=row],.lnt-example .lnt-table td:nth-child(2),.lnt-example .lnt-table td:nth-child(3){min-width:0;white-space:normal}.lnt-example .lnt-mark{font-size:10.5px;letter-spacing:-0.02em}.lnt-example .lnt-table .lnt-nb{white-space:normal}.lnt-example .lnt-table thead th:nth-child(1){width:24%}.lnt-example .lnt-table thead th:nth-child(2){width:28%}.lnt-example .lnt-table thead th:nth-child(3){width:48%}body.lang-en .lnt-example .lnt-table th,body.lang-en .lnt-example .lnt-table td{word-break:normal;overflow-wrap:break-word}}

/* 印刷（A4縦・2列・1ページ。§7） */
.lnt-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}
.lnt-pr-headrow{display:flex;flex-direction:column;gap:0}
.lnt-pr-title{box-sizing:border-box;font-size:14pt;margin:0;height:7mm;line-height:6mm;text-align:center;font-weight:700;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.lnt-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.lnt-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.8mm 0 1.5mm!important;border:0;border-top:2px solid #333}
.lnt-pr-ask{font-size:12.5pt;line-height:6mm;margin:0 0 2mm;padding:0 1mm;font-weight:700}
.lnt-pr-problems{display:flex;gap:6mm;justify-content:center}
.lnt-pr-col{width:92mm;display:flex;flex-direction:column;gap:1.5mm}
.lnt-pr-cell{box-sizing:border-box;width:92mm;height:40mm;border:2px solid transparent;border-radius:1.5mm;padding:1mm 2mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column;justify-content:space-between}
.lnt-pr-cond{font-size:12.5pt;line-height:6mm;max-height:30mm;overflow:hidden}
.lnt-pr-ansbox{font-size:12.5pt;line-height:8mm;height:8mm;text-align:right;white-space:nowrap;flex:none}
.lnt-pr-blank{display:inline-block;width:14mm;height:7mm;vertical-align:middle}
.lnt-pr-answers{margin-top:2.5mm;border-top:2px dashed #666;padding-top:1mm}
.lnt-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.lnt-pr-ansnote{font-size:10pt;line-height:4.6mm;margin:0 0 0.5mm}
.lnt-pr-acols{display:flex;gap:6mm}
.lnt-pr-acol{width:92mm}
.lnt-pr-answer{margin:0;font-size:10pt;line-height:4.6mm;white-space:nowrap}
#pr-sheet[data-unit="large_number_threshold_day2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="large_number_threshold_day2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="large_number_threshold_day2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="large_number_threshold_day2_3"] .lnt-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="large_number_threshold_day2_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="large_number_threshold_day2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="large_number_threshold_day2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="large_number_threshold_day2_3"] .lnt-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.lnt-app-pdf-page .lnt-pr-page{box-shadow:none;margin:0}
/* 英語の印刷：条件文が5行になるため、行の送りを5.6mm、各問の領域を高さ38.5mmにする（v1.2 確定表 LTK-15） */
.lnt-pr-page[lang=en] .lnt-pr-cond{line-height:5.6mm;max-height:28mm}
.lnt-pr-page[lang=en] .lnt-pr-cell{height:38.5mm}
.lnt-pr-page[lang=en] .lnt-pr-answer{line-height:4.4mm}
/* 問番号と条件文の間を空ける（v1.3 確定表 LTK-17） */
.lnt-pr-num{font-weight:700}
.lnt-pr-sp{display:inline-block;width:3mm}
