/* ── compare_by_pairing2_1（ならべて どちらが おおいか くらべよう、単元仕様書 v1.4）── */
/* 画面（§7）：上下二列の点（行ラベル「上」「下」）、C群は縦の対応枠、ヒントで組を線で結ぶ。3つの選択肢（44px以上）。個数の数字は出さない。 */
.cbp-q{display:block;font-weight:700;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
.cbp-main{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:600px;margin:0 auto;box-sizing:border-box}
.cbp-figwrap{width:100%}
.cbp-fig{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:stretch;column-gap:6px;width:100%;box-sizing:border-box;padding:6px 6px;border:2px solid #cbd5e1;border-radius:10px;background:#fff}
.cbp-labels{display:flex;flex-direction:column;justify-content:space-around}
.cbp-lab{font-size:13px;font-weight:800;line-height:1.1;color:#334155;white-space:nowrap}
.cbp-svgwrap{min-width:0}
.cbp-svg,.cbp-pr-svg{display:block;width:100%;height:auto;overflow:visible}
.cbp-dot{stroke-width:0.4}
.cbp-dot-top{fill:#2563eb;stroke:#1e3a8a}
.cbp-dot-bottom{fill:#f59e0b;stroke:#92400e}
.cbp-slot{fill:none;stroke:#64748b;stroke-width:0.35;stroke-dasharray:1 0.8}
.cbp-slot-hl{fill:#fef9c3;stroke:#ca8a04;stroke-width:0.6;stroke-dasharray:none}
.cbp-pairline{stroke:#16a34a;stroke-width:0.7;stroke-linecap:round}
.cbp-choices{display:flex;flex-direction:column;gap:8px;width:100%;max-width:420px}
.cbp-choice{min-height:48px;padding:8px 12px;border:2px solid #94a3b8;border-radius:12px;background:#fff;color:#1e293b;font-size:1rem;font-weight:700;text-align:left;cursor:pointer;word-break:keep-all;overflow-wrap:anywhere;line-height:1.4}
.cbp-choice:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.cbp-choice.cbp-selected{border:3px solid #2563eb;background:#eff6ff}
.cbp-choice.cbp-choice-hint{box-shadow:0 0 0 3px #facc15}
.cbp-choice.cbp-correct{border:3px solid #16a34a;background:#f0fdf4}
.cbp-choice.cbp-wrong{border:3px solid #dc2626;background:#fef2f2}
.cbp-choice:disabled{cursor:default;color:#1e293b;opacity:1}
.cbp-msg{min-height:1.4em;margin:0;color:#b91c1c;font-weight:700;text-align:center;word-break:keep-all;overflow-wrap:anywhere}
.feedback.has-text.cbp-feedback{display:flex;flex-direction:column;align-items:center;height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.cbp-fb-ans{font-size:.95em}
.cbp-fb-anshead{display:inline-block;margin-right:4px;padding:0 6px;border-radius:6px;background:#e2e8f0;font-weight:800}
.cbp-expl-text{margin:4px 0 6px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}
.cbp-ex{margin:4px 0;word-break:keep-all;overflow-wrap:anywhere}
.cbp-ex-fig{max-width:300px;margin:6px auto}
/* 例題の図は、狭い画面でも点の間隔が20px以上になるよう、例題の枠の内側の余白まで広げ、行ラベルの列を詰める（独立検査r1）。 */
@media (max-width:480px){.cbp-ex-fig{margin:6px -12px}.cbp-ex-fig .cbp-fig{padding:3px 4px;column-gap:3px}.cbp-ex-fig .cbp-lab{font-size:12px}}
#page-quiz.active:has(.cbp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.cbp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.cbp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.cbp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;text-align:left;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
#page-lesson:has(.cbp-ex-fig){word-break:keep-all;overflow-wrap:anywhere}
#page-lesson:has(.cbp-ex-fig) p{text-wrap:pretty}
@media (max-width:360px){.cbp-fig{padding:3px 2px;column-gap:3px}.cbp-lab{font-size:12px}}

/* 印刷：A4横・1ページ（§7。v1.4）。使える領域287×200mm。題名の枠（紙面の幅いっぱい）と、その下の記入らん・実線（共通仕様 CP-08a・CP-08b）、
   操作文、選択肢の凡例、2列×5段（1問22.5mm＝群の問い6＋図16＋余り0.5、段の間隔1.5mm、列142mm×2＋列間3mm）、境界線、こたえ、解答（2列×5行）。 */
.cbp-pr-page{width:277mm;height:190mm;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}
.cbp-pr-top{flex:none}
.cbp-pr-title{box-sizing:border-box;width:100%;margin:0;height:8mm;padding:0 2mm;font-size:13pt;font-weight:700;line-height:calc(8mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.cbp-pr-top .pp-fields{height:8mm;margin:1mm 0 0;gap:6mm;font-size:12.5pt!important}
.cbp-pr-top .pp-fields-group{gap:4mm}
.cbp-pr-top .pp-field{gap:1mm}
.cbp-pr-top .pp-field-line{width:16mm;height:6.5mm}
.cbp-pr-top .pp-field-name .pp-field-line{min-width:40mm}
.cbp-pr-top hr.pp-fields-solid{display:none}
.cbp-pr-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm;padding:0;border:0;border-top:1.5pt solid #333}
.cbp-pr-inst{flex:none;margin:0;height:6.5mm;font-size:13pt;font-weight:700;line-height:6.5mm;white-space:nowrap}
.cbp-pr-legend{flex:none;margin:0 0 1mm;height:6.5mm;font-size:12.5pt;line-height:6.5mm;white-space:nowrap;display:flex;gap:6mm}
.cbp-pr-problems{flex:none;display:grid;grid-template-columns:137mm 137mm;column-gap:3mm}
.cbp-pr-col{display:flex;flex-direction:column;gap:.75mm}
.cbp-pr-cell{box-sizing:border-box;height:22mm;display:grid;grid-template-columns:132mm 5mm;grid-template-rows:6mm 16mm;align-content:start}
.cbp-pr-qline{grid-column:1;grid-row:1;margin:0;height:6mm;font-size:13pt;line-height:6mm;white-space:nowrap}
.cbp-pr-num{font-weight:700;font-size:13pt}
.cbp-pr-q{font-weight:700}
.cbp-pr-fig{grid-column:1;grid-row:2;display:grid;grid-template-columns:12mm 120mm;height:16mm}
.cbp-pr-labels{display:flex;flex-direction:column;justify-content:space-around;height:16mm}
.cbp-pr-lab{font-size:9pt;font-weight:700;line-height:1;white-space:nowrap;text-align:right;padding-right:1mm}
.cbp-pr-page[lang=en] .cbp-pr-lab{letter-spacing:-0.02em}
.cbp-pr-svgwrap{width:120mm;height:16mm}
.cbp-pr-svg{width:120mm;height:16mm}
.cbp-pr-marks{grid-column:2;grid-row:1 / 3;width:5mm;margin-left:0;display:flex;flex-direction:column;justify-content:center;height:22mm}
.cbp-pr-mark{display:block;height:6.3mm;width:5mm;font-size:11pt;line-height:6.3mm;text-align:left;padding-left:1mm;box-sizing:border-box}
.cbp-pr-answers{flex:none;box-sizing:border-box;width:277mm;margin-top:1.5mm}
.cbp-pr-border{box-sizing:content-box;display:block;height:0;margin:0;padding:0;border:0;border-top:2pt dashed #aaa}
.cbp-pr-anshead{margin:0;height:6mm;font-size:12.5pt;font-weight:700;line-height:6mm}
.cbp-pr-agrid{display:grid;grid-template-columns:137mm 137mm;column-gap:3mm}
.cbp-pr-answer{margin:0;height:6.5mm;font-size:12.5pt;line-height:6.5mm;white-space:nowrap}
.cbp-pr-page[lang=en] .cbp-pr-inst,.cbp-pr-page[lang=en] .cbp-pr-legend,.cbp-pr-page[lang=en] .cbp-pr-qline,.cbp-pr-page[lang=en] .cbp-pr-lab,.cbp-pr-page[lang=en] .cbp-pr-answer{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.cbp-pr-page .cbp-dot-top{fill:#fff;stroke:#000;stroke-width:0.4}
.cbp-pr-page .cbp-dot-bottom{fill:#000;stroke:#000}
.cbp-app-pdf-page .cbp-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="compare_by_pairing2_1"]{width:277mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="compare_by_pairing2_1"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="compare_by_pairing2_1"]>#pr-problems{display:block}
#pr-sheet[data-unit="compare_by_pairing2_1"] .cbp-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="compare_by_pairing2_1"]{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="compare_by_pairing2_1"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="compare_by_pairing2_1"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="compare_by_pairing2_1"] .cbp-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
