/* ── decimal_place_line_conversion2_3（小数のくらい・数直線・りょうをつなごう、単元仕様書 v1.4）── */
/* 画面：問題文、図（A群は数直線とその下の文、B群は位取りの表）、答えの欄と案内、共通のテンキー（§5-3・§7・PLK-06〜09）。 */
#question-text .plc-q{display:block;overflow-wrap:normal}
.plc-nb{white-space:nowrap}
.plc-nb.plc-nb-pre{white-space:pre}
.plc-phrase-group{display:inline;min-width:0}
.plc-main{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px auto 2px;max-width:600px;width:100%;box-sizing:border-box}
.plc-fig{width:100%;display:flex;flex-direction:column;align-items:center}
.plc-fig:empty{display:none}
.plc-nl{width:100%;max-width:520px;box-sizing:border-box;padding:0 18px}
.plc-nl-draw{position:relative;width:100%;padding-top:30px;padding-bottom:26px}
.plc-nl-svg{display:block;width:100%;height:46px}
.plc-nl-axis{stroke:#0f172a;stroke-width:3;vector-effect:non-scaling-stroke}
.plc-nl-major{stroke:#0f172a;stroke-width:3;vector-effect:non-scaling-stroke}
.plc-nl-mid{stroke:#1e293b;stroke-width:2;vector-effect:non-scaling-stroke}
.plc-nl-minor{stroke:#334155;stroke-width:1.2;vector-effect:non-scaling-stroke}
.plc-nl-point{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;line-height:1;font-weight:800;color:#b91c1c}
.plc-nl-point-name{font-size:15px}
.plc-nl-tri{font-size:14px;margin-top:1px}
.plc-nl-ends{position:absolute;left:0;right:0;bottom:0;height:22px}
.plc-nl-end{position:absolute;bottom:0;transform:translateX(-50%);font-weight:800;font-size:16px;white-space:nowrap}
.plc-nl-caption{margin:2px 0 0;font-size:15px;text-align:center}
.plc-tbl{border-collapse:collapse;margin:4px auto;table-layout:fixed}
.plc-tbl th,.plc-tbl td{border:2px solid #475569;padding:4px 6px;text-align:center;width:6.2em}
.plc-tbl th{font-weight:700;font-size:14px;background:#f8fafc;line-height:1.3}
.plc-tbl td{height:34px}
.plc-hint-table:empty{display:none}
.plc-guide{margin:2px auto;font-weight:700;text-align:center;max-width:32em}
.plc-guide[hidden]{display:none}
.plc-answer-row{display:flex;align-items:center;justify-content:center;gap:6px}
.plc-input{width:6em;min-width:44px;min-height:46px;font-size:1.35rem;font-weight:800;padding:2px 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;text-align:center;font-family:inherit;box-sizing:border-box}
.plc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.plc-input.plc-input-ok{border:3px solid #15803d;background:#dcfce7}
.plc-input.plc-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.plc-msgs{display:flex;flex-direction:column;align-items:center}
.plc-msg{margin:0;color:#b45309;font-weight:700;text-align:center;max-width:32em;line-height:1.6}
.feedback.has-text.plc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.plc-correct{margin:2px 0 6px;font-weight:800}
.plc-expl-text{margin:4px 0 6px;line-height:2.1;overflow-wrap:normal;word-break:normal;line-break:strict}
.plc-example .plc-ex-q{margin:6px 0 4px;font-weight:700;line-height:2}
.plc-example .plc-ex-a{margin:4px 0 14px;line-height:2.1}
.plc-example .plc-ex-fig{display:flex;justify-content:center;margin:2px 0}
.plc-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.plc-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.plc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.plc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.plc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.plc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="decimal_place_line_conversion2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="decimal_place_line_conversion2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
@media (max-width:400px){
  .plc-nl{padding:0 14px}
  .plc-tbl th,.plc-tbl td{width:5em;padding:3px 3px}
  .plc-tbl th{font-size:12.5px}
  #page-quiz.active:has(.plc-main) #question-text{font-size:16px}
  #page-lesson .lesson-point:has(.plc-nb),#page-lesson .lesson-point:has(.plc-nb) *{font-size:15px}
  .plc-example .plc-ex-q{font-size:15px}
  .plc-example .plc-ex-a{font-size:14px}
  #page-lesson .lesson-example:has(.plc-example){padding-left:8px;padding-right:8px}
  #page-lesson .lesson-example:has(.plc-example) div:has(> .plc-example){padding-left:6px!important;padding-right:4px!important}
  #lesson-card-content h3:has(.plc-nb){font-size:23px!important}
}

/* 印刷（A4縦・不均等な2列：左118mm・右66mm、列の間6mm・1ページ。§7・確定表 PLK-10・11）。
   領域の高さ：A群31mm、B群39mm、C群28mm、間隔3mm。数直線は軸の長さ104mm（図の幅113mmの92%）・主めもり6mm（高さ9.2mmの52/80）。位取りの表は1列22mm（見出しは「の」の後ろで折り返す）。 */
.plc-pr-page{width:190mm;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.plc-pr-headrow{display:flex;flex-direction:column;gap:0}
.plc-pr-title{font-size:14.5pt;margin:0;height:7mm;line-height:7mm;text-align:center;font-weight:700}
.plc-pr-headrow .pp-fields{height:6mm;margin:0.5mm 0 0}
.plc-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.5mm 0 1mm!important;border:0;border-top:2px solid #333}
.plc-pr-inst{font-size:12.5pt;line-height:5.4mm;margin:0 0 2mm;padding:0 1mm}
.plc-pr-problems{display:grid;grid-template-columns:118mm 66mm;column-gap:6mm}
.plc-pr-col{display:flex;flex-direction:column;gap:3mm}
.plc-pr-cell{box-sizing:border-box;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.plc-pr-cell-A{height:31mm}
.plc-pr-cell-B{height:39mm}
.plc-pr-cell-C{height:28mm}
.plc-pr-line{font-size:12.5pt;line-height:6.2mm;word-break:normal;overflow-wrap:normal;line-break:strict}
.plc-pr-num{font-weight:700}
.plc-pr-q{font-weight:700;white-space:pre-wrap}
.plc-pr-fig{margin-top:1mm}
.plc-pr-fig .plc-nl{width:117mm;max-width:none;padding:0 2mm}
.plc-pr-fig .plc-nl-draw{padding-top:4.5mm;padding-bottom:4.5mm}
.plc-pr-fig .plc-nl-svg{height:9.2mm}
.plc-pr-fig .plc-nl-axis,.plc-pr-fig .plc-nl-major{stroke:#000;stroke-width:2.2}
.plc-pr-fig .plc-nl-mid{stroke:#000;stroke-width:1.6}
.plc-pr-fig .plc-nl-minor{stroke:#000;stroke-width:1.2}
.plc-pr-fig .plc-nl-point{color:#000}
.plc-pr-fig .plc-nl-point-name{font-size:10pt}
.plc-pr-fig .plc-nl-tri{font-size:9pt}
.plc-pr-fig .plc-nl-ends{height:4.2mm}
.plc-pr-fig .plc-nl-end{font-size:10pt}
.plc-pr-tbl{margin:0}
.plc-pr-tbl th,.plc-pr-tbl td{width:22mm;border:0.35mm solid #000;padding:0.5mm;box-sizing:border-box}
.plc-pr-tbl th{font-size:9.5pt;height:8mm;background:#fff}
.plc-pr-tbl td{height:7mm}
.plc-pr-work{margin-top:1mm;height:8mm;border:0.35mm solid #000;border-radius:1mm;position:relative}
.plc-pr-work-label{position:absolute;left:1mm;top:0.3mm;font-size:9pt}
.plc-pr-answers{margin-top:3mm;border-top:2px dashed #666;padding-top:0.5mm}
.plc-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.plc-pr-acols{display:grid;grid-template-columns:1fr 1fr;column-gap:6mm}
.plc-pr-ans{margin:0;font-size:10pt;line-height:4.6mm;padding-bottom:0.6mm}
#pr-sheet[data-unit="decimal_place_line_conversion2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="decimal_place_line_conversion2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="decimal_place_line_conversion2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="decimal_place_line_conversion2_3"] .plc-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_place_line_conversion2_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="decimal_place_line_conversion2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="decimal_place_line_conversion2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="decimal_place_line_conversion2_3"] .plc-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.plc-app-pdf-page .plc-pr-page{box-shadow:none;margin:0}
