/* ── large_number_place_read3_4（大きな数を位取りで読み書きしよう、単元仕様書 v1.3）── */
/* 画面：問題文、位取り表の代替文（文字で示す）、位取り表（兆・億・万・一のまとまり×千・百・十・一の位）、選択肢①〜④（1行に1つ）、案内（§5-3・§7）。 */
#question-text .lnp-q{display:block;overflow-wrap:anywhere}
.lnp-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.lnp-alt{margin:0;max-width:560px;font-size:14px;color:#334155;text-align:center;line-height:1.5;overflow-wrap:anywhere}
.lnp-table{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:100%}
.lnp-group{border-collapse:collapse;table-layout:fixed;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.lnp-group th,.lnp-group td{border:1.5px solid #64748b;text-align:center;padding:0}
.lnp-gname{background:#e0e7ff;color:#1e3a8a;font-size:14px;font-weight:800;height:24px}
.lnp-pname{background:#f8fafc;color:#334155;font-size:13px;font-weight:700;width:32px;height:22px}
/* 英語の位の名前（thousands など）は12pxのまま、列の幅を62pxにそろえる（表は幅に応じて1行に1〜2まとまりで折り返す） */
.lnp-table:lang(en){max-width:504px}
.lnp-table:lang(en) .lnp-group{width:248px}
.lnp-table:lang(en) .lnp-pname,.lnp-table:lang(en) .lnp-cell{width:62px}
.lnp-table:lang(en) .lnp-pname{font-size:12px}
.lnp-cell{width:32px;height:36px;font-size:20px;font-weight:800;color:#111827;background:#fff}
.lnp-cell.lnp-hl{background:#fef3c7;outline:3px solid #b45309;outline-offset:-3px}
.lnp-group.lnp-mark .lnp-gname{background:#fde68a;color:#78350f}
.lnp-box{display:inline-block;color:#b91c1c;font-weight:900}
.lnp-choices{display:flex;flex-direction:column;gap:8px;width:min(100%,460px);margin:2px auto}
.lnp-choice{position:relative;box-sizing:border-box;min-height:48px;padding:6px 10px 6px 34px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.1rem;font-weight:800;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.lnp-check{position:absolute;top:50%;left:10px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.lnp-choice.lnp-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.lnp-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.lnp-choice:disabled{cursor:default;opacity:1}
.lnp-choice.lnp-ok,.lnp-choice.lnp-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.lnp-choice.lnp-ng,.lnp-choice.lnp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.lnp-choice.lnp-right,.lnp-choice.lnp-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.lnp-ok .lnp-check,.lnp-right .lnp-check{color:#15803d}
.lnp-ng .lnp-check{color:#b91c1c}
.lnp-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.lnp-guide[hidden]{display:none}
.lnp-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.lnp-msg:empty{min-height:0;margin:0}
.feedback.has-text.lnp-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.lnp-correct{margin:2px 0 6px;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.lnp-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.lnp-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.lnp-example .lnp-ex-q{margin:6px 0 2px;font-weight:700}
.lnp-example .lnp-ex-a{margin:0 0 8px}
#page-quiz.active:has(.lnp-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.lnp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.lnp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.lnp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.lnp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
@media (max-width:360px){.lnp-table:not(:lang(en)) .lnp-pname,.lnp-table:not(:lang(en)) .lnp-cell{width:28px}.lnp-cell{font-size:18px}}

/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（左の列に番号と答えの枠、右に問いと選択肢）、破線、答え。 */
.lnp-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}
.lnp-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.lnp-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.lnp-pr-headrow .pp-field-line{height:6mm}
.lnp-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.lnp-pr-title{box-sizing:border-box;margin:0;height:8mm;width:100%;padding:0 2mm;font-size:14pt;font-weight:700;line-height:7.4mm;white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact;flex:none}
.lnp-pr-inst{flex:none;box-sizing:border-box;width:186mm;margin:1.5mm 0 2mm;font-size:12.5pt;line-height:6mm}
.lnp-pr-problems{flex:none;display:grid;grid-template-columns:91mm 91mm;column-gap:4mm}
.lnp-pr-col{display:flex;flex-direction:column}
.lnp-pr-cell{box-sizing:border-box;display:grid;grid-template-columns:12mm 79mm;height:47mm;border-top:2px solid transparent;overflow:hidden}
.lnp-pr-col .lnp-pr-cell:last-child{border-bottom:2px solid transparent}
.lnp-pr-left{display:flex;flex-direction:column;align-items:flex-start;gap:1mm;padding-top:1.5mm}
.lnp-pr-num{font-size:12.5pt;font-weight:700;line-height:5.5mm}
.lnp-pbox{position:relative;display:block;width:12mm;height:8mm;font-size:12.5pt;line-height:8mm;white-space:pre}
.lnp-pbox-in{position:absolute;left:1.5mm;top:0;width:9mm;height:8mm;overflow:hidden;color:transparent}
.lnp-pp{position:absolute;top:0;white-space:nowrap;transform:scaleY(1.45);transform-origin:center}
.lnp-pr-page[lang="ja"] .lnp-pp-l{right:calc(100% - 1.7mm)}
.lnp-pr-page[lang="ja"] .lnp-pp-r{left:10.3mm}
.lnp-pr-page[lang="en"] .lnp-pp-l{left:0}
.lnp-pr-page[lang="en"] .lnp-pp-r{left:10.6mm}
.lnp-pr-gtable .lnp-box{color:#000}
.lnp-pr-body{min-width:0;padding:1.5mm 1mm 0 2mm;display:flex;flex-direction:column;gap:0.8mm}
.lnp-pr-q{font-size:12.5pt;line-height:5.4mm;overflow-wrap:anywhere}
.lnp-pr-choice{font-size:12.5pt;line-height:5.4mm;overflow-wrap:anywhere}
.lnp-pr-inline{display:flex;flex-wrap:wrap;column-gap:3mm}
.lnp-pr-inline span{white-space:nowrap}
.lnp-pr-ctable,.lnp-pr-gtable{border-collapse:collapse;table-layout:fixed;width:100%}
.lnp-pr-ctable th,.lnp-pr-ctable td,.lnp-pr-gtable th,.lnp-pr-gtable td{border:1px solid #000;text-align:center;font-size:12.5pt;line-height:4.6mm;padding:0;white-space:nowrap}
.lnp-pr-ctable thead th:first-child{width:8mm}
.lnp-pr-ctable thead th,.lnp-pr-gtable thead th{font-weight:700;background:#f1f5f9;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.lnp-pr-ctable tbody th{font-weight:700}
.lnp-pr-gtable td{line-height:6mm}
.lnp-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:3mm}
.lnp-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.lnp-pr-ansrow{display:flex;flex-wrap:nowrap;align-items:baseline;column-gap:0}
.lnp-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm;padding-right:3mm;flex:none;white-space:nowrap}
.lnp-pr-ans{font-size:12.5pt;line-height:6mm;width:16mm;flex:none;white-space:nowrap}
.lnp-app-pdf-page .lnp-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="large_number_place_read3_4"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="large_number_place_read3_4"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="large_number_place_read3_4"]>#pr-problems{display:block}
#pr-sheet[data-unit="large_number_place_read3_4"] .lnp-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_place_read3_4"]{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_place_read3_4"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="large_number_place_read3_4"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="large_number_place_read3_4"] .lnp-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
/* 英語の見出し（hundred million など）は2行まで折り返す（§7：表の見出しは12mm・2行） */
.lnp-pr-page[lang="en"] .lnp-pr-ctable thead th,.lnp-pr-page[lang="en"] .lnp-pr-gtable thead th{white-space:normal;font-size:10.5pt;line-height:4.4mm;padding:0 0.5mm;height:9.4mm;vertical-align:middle}
.lnp-pr-page[lang="en"] .lnp-pr-ctable thead th:first-child{width:8mm}
