/* ── overlap_region_count_1（二つの なかまの かさなりを かぞえよう、単元仕様書 v1.7）── */
/* 画面（§7）：AとBの条件名、二つの輪と札を置く四つの場所（44px以上）、札（44px以上）、四つの回答欄（2×2）、共通のテンキー。横スクロール0。 */
.orc-q{display:block;font-weight:700;line-height:1.5}
.orc-main{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:560px;margin:0 auto;box-sizing:border-box}
.orc-fig{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
.orc-labels{display:flex;justify-content:space-between;gap:8px;width:100%;max-width:340px;box-sizing:border-box}
.orc-cond{box-sizing:border-box;padding:3px 10px;border:2px solid #475569;border-radius:8px;background:#fff;font-weight:700;font-size:1.05rem;white-space:nowrap}
.orc-cond-a{border-color:#c2410c;color:#7c2d12}
.orc-cond-b{border-color:#1d4ed8;color:#1e3a8a;border-style:dashed}
.orc-cond.orc-hl{background:#fef08a;box-shadow:0 0 0 3px #facc15}
.orc-venn{position:relative;width:100%;max-width:340px;aspect-ratio:340/270}
.orc-venn-svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.orc-zone{position:absolute;box-sizing:border-box;min-width:44px;min-height:44px;padding:2px;border:2px dashed transparent;border-radius:12px;background:transparent;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.orc-zone:hover:not(:disabled),.orc-zone:focus-visible{border-color:#64748b;outline:none}
.orc-zone:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.orc-zone:disabled{cursor:default}
.orc-zone-onlyA{left:15.3%;width:20%;top:18.5%;height:37%}
.orc-zone-both{left:37.6%;width:24.7%;top:14.8%;height:44.4%}
.orc-zone-onlyB{left:64.7%;width:20%;top:18.5%;height:37%}
.orc-zone-neither{left:2.4%;width:95.3%;top:72.6%;height:24.4%;flex-direction:row;flex-wrap:wrap}
.orc-venn.orc-armed .orc-zone:not(:disabled){border-color:#94a3b8;background:rgba(250,204,21,.08)}
.orc-zname{font-size:.78rem;font-weight:700;color:#334155;background:rgba(255,255,255,.85);border-radius:4px;padding:0 3px;line-height:1.3;white-space:nowrap}
.orc-zname-out{font-size:.85rem}
.orc-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;max-width:100%}
.orc-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:24px;height:24px;padding:0 3px;border:2px solid #334155;border-radius:12px;background:#fff;font-weight:700;font-size:13px;line-height:1}
.orc-chips.orc-dense{gap:1px}
.orc-chips.orc-dense .orc-chip{min-width:19px;height:19px;padding:0 1px;font-size:12px;border-width:1px}
.orc-sum{white-space:nowrap;margin:0;font-weight:700;font-size:1.05rem;padding:4px 10px;border:2px dashed #a16207;border-radius:8px;background:#fffbeb}
.orc-guide{margin:2px 0 0;font-size:.95rem;color:#334155;text-align:center}
.orc-tray{display:grid;grid-template-columns:repeat(5,minmax(48px,72px));gap:6px;max-width:100%}
.orc-card{position:relative;box-sizing:border-box;min-width:44px;min-height:46px;padding:0;border:2px solid #475569;border-radius:8px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.orc-card .orc-card-svg{display:block;width:100%;height:auto;margin-top:12px}
.orc-num{position:absolute;left:4px;top:1px;font-size:.85rem;font-weight:700;color:#0f172a;line-height:1.1}
.orc-card.orc-sel{border:3px solid #ca8a04;background:#fef9c3;box-shadow:0 0 0 2px #facc15}
.orc-card.orc-placed{background:#f1f5f9;border-style:dashed}
button.orc-card:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
button.orc-card:disabled{cursor:default;opacity:1}
.orc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;width:100%;max-width:360px}
.orc-field{display:flex;flex-direction:column;align-items:center;gap:2px}
.orc-label{font-weight:700;font-size:.95rem;white-space:nowrap}
.orc-inwrap{display:inline-flex;align-items:center;gap:4px}
.orc-input{box-sizing:border-box;width:64px;height:46px;font-size:1.4rem;text-align:center;border:2px solid #475569;border-radius:8px;background:#fff}
.orc-input:focus{outline:3px solid #2563eb;outline-offset:1px}
.orc-input.orc-ok{border-color:#16a34a;background:#f0fdf4}
.orc-input.orc-ng{border:3px solid #dc2626;background:#fef2f2}
.orc-mark{font-weight:900;font-size:1.2rem}
.orc-input.orc-ng+.orc-mark{color:#dc2626}
.orc-input.orc-ok+.orc-mark{color:#16a34a}
.orc-msg{min-height:1.4em;margin:0;color:#b91c1c;font-weight:700;text-align:center}
.feedback.has-text.orc-feedback{display:block;height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45;word-break:keep-all;overflow-wrap:anywhere}
.orc-expl-text{margin:4px 0 6px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere;text-wrap:pretty}
.orc-ex{margin:2px 0;word-break:keep-all;overflow-wrap:anywhere}
@media (max-width:360px){.orc-tray{grid-template-columns:repeat(5,minmax(48px,1fr));gap:4px}.orc-cond{font-size:.95rem;padding:2px 6px}.orc-zname{font-size:.75rem}}

/* 印刷：A4縦・1ページ（§7。v1.6）。題名の枠（紙面の幅いっぱい）と記入らん（共通仕様 CP-08a・CP-08b）、実線、共通の問い1回、2列×5段の各問
   （番号の欄、二つの輪の枠40.5×28.4mm、札置き場37.5mm、四つの記入欄）、破線、こたえ、解答3列（各2行）。 */
.orc-pr-page{width:190mm;height:277mm;box-sizing:border-box;display:flex;flex-direction:column;padding:0.8mm 0 0;margin:0 auto 8mm;overflow:hidden;background:#fff;color:#000;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.orc-pr-head{flex:none}
.orc-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}
.orc-pr-head .pp-fields{height:8mm;margin:1mm 0 0;gap:5mm;font-size:12pt!important}
.orc-pr-head .pp-fields-group{gap:3mm}
.orc-pr-head .pp-field{gap:1mm}
.orc-pr-head .pp-field-line{width:14.5mm;height:6.5mm}
.orc-pr-head .pp-field-name .pp-field-line{min-width:40mm}
.orc-pr-head hr.pp-fields-solid{display:none}
.orc-pr-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm;padding:0;border:0;border-top:1.5pt solid #333}
.orc-pr-inst{margin:0 0 0.2mm;font-size:13pt;line-height:6.4mm;height:6.4mm;flex:none}
.orc-pr-problems{flex:none;display:grid;grid-template-columns:93mm 93mm;column-gap:4mm;justify-content:center}
.orc-pr-col{display:flex;flex-direction:column;gap:0.2mm}
.orc-pr-cell{box-sizing:border-box;height:40.8mm;border:0.3mm solid transparent;border-radius:1mm;padding:0 1mm;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.orc-pr-top{display:flex;align-items:flex-start;gap:0.5mm;height:28.4mm;flex:none}
.orc-pr-num{flex:none;width:10.2mm;font-weight:700;font-size:12.5pt;line-height:6mm;white-space:nowrap}
.orc-pr-venn{flex:none;width:40.5mm;height:28.4mm;display:flex;flex-direction:column}
.orc-pr-vlabels{display:flex;justify-content:space-between;padding-right:1mm;height:3.4mm;font-size:9pt;font-weight:700;line-height:3.4mm;white-space:nowrap}
.orc-pr-vsvg{display:block;flex:none}
.orc-pr-tray{flex:none;width:37.5mm;display:grid;grid-template-columns:repeat(4,9mm);grid-auto-rows:9mm;gap:0.5mm;align-content:start;padding-top:0.2mm}
.orc-pr-card{box-sizing:border-box;width:9mm;height:9mm;border:0.25mm solid #475569;border-radius:0.6mm;overflow:hidden;display:flex;flex-direction:column}
.orc-pr-cnum{display:block;flex:none;height:3.1mm;padding-left:0.5mm;font-size:9pt;font-weight:700;line-height:3.1mm}
.orc-pr-card .orc-card-svg{display:block;flex:none;margin-left:-0.25mm}
.orc-pr-fields{display:flex;height:11.8mm;flex:none;width:89.2mm;margin-bottom:0.2mm}
.orc-pr-field{display:flex;flex-direction:column;flex:none}
.orc-pr-field-0,.orc-pr-field-1,.orc-pr-field-2{width:20mm}
.orc-pr-field-3{width:29.2mm}
.orc-pr-flabel{height:3.8mm;font-size:9pt;font-weight:700;line-height:3.8mm;white-space:nowrap}
.orc-pr-box{box-sizing:border-box;width:12mm;height:8mm;border:0.4mm solid #000;border-radius:1mm}
.orc-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;margin-bottom:0.6mm}
.orc-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0.5mm 0 0.5mm;padding:0;border:0;border-top:2pt dashed #aaa}
.orc-pr-anshead{margin:0;height:4.6mm;font-size:12.5pt;font-weight:700;line-height:4.6mm}
.orc-pr-agrid{display:grid;grid-template-columns:63.3mm 63.3mm 63.3mm}
.orc-pr-answer{margin:0;height:9.6mm;font-size:12.5pt;line-height:4.8mm;white-space:nowrap}
.orc-pr-anum{display:inline-block;min-width:9.6mm}
.orc-pr-a2{padding-left:10.6mm}
.orc-pr-page[lang=en] .orc-pr-inst,.orc-pr-page[lang=en] .orc-pr-answer,.orc-pr-page[lang=en] .orc-pr-flabel,.orc-pr-page[lang=en] .orc-pr-vlabels{font-family:Arial,'Helvetica Neue','Liberation Sans',sans-serif}
.orc-app-pdf-page .orc-pr-page{box-shadow:none;margin:0}

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