/* ── periodic_outcome_count3_3（二つのくり返しからけっかの回数を数えよう、単元仕様書 v1.2）── */
/* 画面：問題文、上・下の1組の図ときまりの表、回答後のまとまりの帯、数を入れる1欄と単位、共通のテンキー（§5-3・§7）。 */
#question-text .poc-q{display:block}
.poc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.poc-figwrap{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:center;margin:2px auto 6px;max-width:100%}
.poc-figure{display:flex;flex-direction:column;gap:4px}
.poc-frow{display:flex;align-items:center;gap:3px}
.poc-flabel{width:4.6em;flex:none;text-align:right;padding-right:4px;font-weight:800;font-size:14px;box-sizing:border-box}
.poc-shape{font-family:'Segoe UI Symbol','Noto Sans Symbols 2','Arial Unicode MS',sans-serif;font-weight:400;font-size:1.1em;margin-right:1px}
.poc-fcell{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:34px;padding:0 3px;border:2px solid #64748b;border-radius:6px;background:#fff;font-size:15px;font-weight:700;box-sizing:border-box}
.poc-table{border-collapse:collapse;font-size:14px;font-weight:700}
.poc-table th,.poc-table td{border:2px solid #64748b;padding:4px 8px;text-align:center;min-width:44px;height:30px;box-sizing:border-box}
.poc-table td{background:#fff}
.poc-corner{position:relative;width:60px;height:40px;padding:0!important}
.poc-diag{position:absolute;inset:0;width:100%;height:100%}
.poc-diag line{stroke:#64748b;stroke-width:2px}
.poc-c-top{position:absolute;top:1px;right:3px;font-size:12px;line-height:1.1}
.poc-c-left{position:absolute;bottom:1px;left:3px;font-size:12px;line-height:1.1}
.poc-band{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;margin:4px auto 8px;max-width:100%;font-size:13px}
/* PC幅では帯を一続きにし、入りきらないときは帯の中だけ横にスクロールする（列は中身より細くしない。独立検査 POC-IR2-01）。 */
@media (min-width:900px){.poc-main .poc-band{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;max-width:100%;padding-bottom:4px}.poc-main .poc-band .poc-bcol{flex:none}}
.poc-bcol > span{white-space:nowrap;padding:0 3px}
.poc-bcol{display:grid;grid-template-rows:repeat(4,22px);border:1px solid #94a3b8;border-radius:4px;background:#fff;min-width:38px;text-align:center;align-items:center}
.poc-bhead{background:#f1f5f9;font-weight:800;min-width:3.8em}
.poc-bcol.poc-bhit{background:#fef9c3;border-color:#ca8a04}
.poc-bres{font-size:11px;font-weight:700}
.poc-row-input{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:4px}
.poc-input{width:5em;min-height:44px;font-size:1.3rem;padding:2px 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;box-sizing:border-box}
.poc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.poc-input.poc-ok,.poc-input.poc-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.poc-input.poc-ng,.poc-input.poc-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.poc-unit{font-weight:800}
.poc-guide{margin:6px 0 0;font-size:16px;font-weight:700;text-align:center}
.poc-guide[hidden]{display:none}
.poc-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.poc-msg:empty{min-height:0;margin:0}
.poc-main .ufk-keypad{margin-top:6px}
.feedback.has-text.poc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.poc-correct{margin:2px 0 4px;font-weight:800;color:#14532d}
.poc-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.poc-ex-q{font-weight:700;margin:6px 0 2px}.poc-ex-a{margin:2px 0 6px}.poc-ex-fig{margin:2px 0}
@media (max-width:400px){.poc-fcell{min-width:34px;font-size:13px}.poc-flabel{width:4.2em;font-size:12px}}
#page-quiz.active:has(.poc-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.poc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.poc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.poc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.poc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="periodic_outcome_count3_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="periodic_outcome_count3_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

/* 印刷：A4縦・1ページ（§7）。題名の枠と記入欄、共通の案内、2列×5段で1問92×33mm、破線、答え2列×5行。 */
.poc-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}
.poc-pr-headblock{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:190mm;height:19.5mm}
.poc-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:15pt;font-weight:700;line-height: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}
.poc-pr-page[lang="en"] .poc-pr-title{font-size:14pt}
.poc-pr-hfields{display:flex;gap:5mm;align-items:flex-end;height:7mm;margin-top:1mm;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.poc-pr-hgroup{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.poc-pr-hfield{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.poc-pr-hfield-line{display:inline-block;box-sizing:border-box;width:14mm;height:6mm;border-bottom:2px solid #555}
.poc-hfield-name{flex:1;min-width:0}
.poc-hfield-name .poc-pr-hfield-line{flex:1;width:auto;min-width:30mm}
.poc-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.poc-pr-rule{flex:none;box-sizing:border-box;width:190mm;margin:1.2mm 0 0;padding:0 2mm;font-size:12.5pt;line-height:5.3mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.poc-pr-line{margin:0;font-size:12.5pt;line-height:6mm;height:6mm;white-space:nowrap;font-weight:700}
.poc-pr-body{display:flex;gap:1.5mm;margin-top:1mm;align-items:flex-start}
.poc-pr-left{flex:none}
.poc-pr-figure{gap:0.8mm}
.poc-pr-figure .poc-frow{gap:0}
.poc-pr-figure .poc-flabel{width:4mm;font-size:9pt;padding-right:0.5mm}
.poc-pr-page[lang="en"] .poc-pr-figure .poc-flabel{width:11.5mm}
.poc-pr-figure .poc-fcell{min-width:6mm;height:5mm;font-size:9pt;border:2px solid #444;border-radius:1mm;padding:0 0.1mm;margin-right:-2px}
.poc-pr-table{font-size:9pt}
.poc-pr-table th,.poc-pr-table td{border:2px solid #444;padding:0 0.4mm;min-width:0;height:4mm;line-height:3.6mm}
.poc-pr-table .poc-corner{width:7.5mm;height:8mm}
.poc-pr-page[lang="en"] .poc-pr-table .poc-corner{width:13mm;height:8mm}
.poc-pr-table .poc-diag line{stroke:#444}
.poc-pr-table .poc-c-top,.poc-pr-table .poc-c-left{font-size:9pt;line-height:3.2mm}

.poc-pr-problems{flex:none;display:grid;grid-template-columns:92mm 92mm;column-gap:6mm;width:190mm;margin:1mm 0 0}
.poc-pr-col{display:grid;grid-template-rows:repeat(5,36mm)}
.poc-pr-cell{box-sizing:border-box;width:92mm;height:36mm;overflow:hidden;padding:0.8mm 0 0;border-top:2px solid transparent}
.poc-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.poc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.8mm 0 0.6mm;padding:0;border:0;border-top:2pt dashed #aaa}
.poc-pr-answers-title{font-weight:700;font-size:12.5pt;line-height:5.5mm;height:5.5mm}
.poc-pr-anscols{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.poc-pr-ans{min-height:4.5mm;line-height:4.5mm;font-size:10pt}
.poc-app-pdf-page .poc-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="periodic_outcome_count3_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="periodic_outcome_count3_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="periodic_outcome_count3_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="periodic_outcome_count3_3"] .poc-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="periodic_outcome_count3_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="periodic_outcome_count3_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="periodic_outcome_count3_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="periodic_outcome_count3_3"] .poc-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.poc-pr-row{margin:1mm 0 0;font-size:12.5pt;line-height:7mm;height:7mm;white-space:pre}
.poc-pr-table th,.poc-pr-table td{white-space:nowrap}
.poc-pr-page .poc-shape{font-size:1.17em;margin-right:0;line-height:1}
.poc-pr-page[lang="en"] .poc-pr-table th,.poc-pr-page[lang="en"] .poc-pr-table td{padding:0 0.25mm}
