/* ── grid_coordinate_pair3_4（こうしの位置を二つの数で表そう、単元仕様書 v1.2）── */
/* 画面：問題文、こうしの図（目もりの数0〜8、点、B群の点の名前と選べる部分、C群の■と矢印）、図の説明の文、横とたての欄又は点のボタン、案内、共通のテンキー（§5-3・§7）。 */
#question-text .gcp-q{display:block}
.gcp-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.gcp-figwrap{width:100%;max-width:400px}
.gcp-fig{display:block;width:100%;height:auto}
.gcp-fig .gcp-gl{stroke:#94a3b8;stroke-width:1.2}
.gcp-fig .gcp-axis{stroke:#1f2937;stroke-width:2.2}
.gcp-fig .gcp-num{font-size:14px;font-weight:700;fill:#334155;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.gcp-fig .gcp-dot{fill:#1d4ed8;stroke:#fff;stroke-width:1.5}
.gcp-fig .gcp-pname{font-size:16px;font-weight:800;fill:#7c2d12;paint-order:stroke;stroke:#fff;stroke-width:3.5px;stroke-linejoin:round;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif}
.gcp-fig .gcp-start{fill:#b91c1c}
.gcp-fig .gcp-arrow{fill:none;stroke:#b91c1c;stroke-width:3;stroke-linejoin:round}
.gcp-fig .gcp-head{fill:#b91c1c}
.gcp-fig .gcp-hit{fill:transparent;stroke:transparent;stroke-width:2.5;cursor:pointer}
.gcp-fig .gcp-hit:hover{stroke:#f59e0b}
.gcp-fig .gcp-hit.gcp-hit-on{stroke:#1d4ed8;fill:rgba(29,78,216,.12)}
.gcp-alt{margin:0;max-width:520px;font-size:14px;color:#334155;text-align:center;line-height:1.5;overflow-wrap:anywhere}
.gcp-fields{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;margin-top:2px}
.gcp-field{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:1.15rem}
.gcp-input{width:3em;min-height:44px;font-size:1.4rem;padding:0 4px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.gcp-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.gcp-input.gcp-ok,.gcp-input.gcp-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.gcp-input.gcp-ng,.gcp-input.gcp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.gcp-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,420px);margin:2px auto}
.gcp-choice{position:relative;box-sizing:border-box;min-height:48px;padding:6px 10px 6px 30px;border:3px solid #64748b;border-radius:10px;background:#fff;color:#1e293b;font-size:1.1rem;font-weight:800;cursor:pointer}
.gcp-check{position:absolute;top:50%;left:8px;transform:translateY(-50%);font-size:18px;font-weight:900;color:#1d4ed8}
.gcp-choice.gcp-on{background:#dbeafe;border-color:#1d4ed8;color:#1e3a8a}
.gcp-choice:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.gcp-choice:disabled{cursor:default;opacity:1}
.gcp-choice.gcp-ok,.gcp-choice.gcp-ok:disabled{border:3px solid #15803d;background:#dcfce7;color:#14532d}
.gcp-choice.gcp-ng,.gcp-choice.gcp-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2;color:#7f1d1d}
.gcp-choice.gcp-right,.gcp-choice.gcp-right:disabled{border:3px solid #15803d;background:#f0fdf4;color:#14532d}
.gcp-ok .gcp-check,.gcp-right .gcp-check{color:#15803d}
.gcp-ng .gcp-check{color:#b91c1c}
.gcp-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.gcp-guide[hidden]{display:none}
.gcp-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.gcp-msg:empty{min-height:0;margin:0}
.gcp-main .ufk-keypad{margin-top:4px}
.feedback.has-text.gcp-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.gcp-correct{margin:2px 0 6px;font-weight:800;font-size:17px}
.gcp-expl-text{margin:4px 0 6px;overflow-wrap:anywhere;word-break:normal;line-break:strict}
.gcp-score{margin:6px 0 2px;font-weight:800;color:#1e3a8a}
.gcp-example .gcp-ex{margin:6px 0;font-weight:700}
#page-quiz.active:has(.gcp-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.gcp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.gcp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.gcp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.gcp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="grid_coordinate_pair3_4"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="grid_coordinate_pair3_4"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}

/* 印刷：A4縦・2列・1ページ（§7）。題名の枠と記入欄、共通の問い、2列×5段（左に一辺34mmのこうしの図、右に番号・短い問い・答えの枠）、破線、答え（2列）。 */
.gcp-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}
.gcp-pr-headrow{display:flex;flex-direction:column;gap:0;flex:none}
.gcp-pr-headrow .pp-fields{height:7mm;margin:1mm 0 0}
.gcp-pr-headrow .pp-field-line{height:6mm}
.gcp-pr-headrow hr.pp-fields-solid{margin:1mm 0 0!important;border:0;border-top:1.5pt solid #333}
.gcp-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}
.gcp-pr-inst{flex:none;box-sizing:border-box;width:186mm;margin:1.5mm 0 4mm;font-size:12.5pt;line-height:6mm}
.gcp-pr-problems{flex:none;display:grid;grid-template-columns:90mm 90mm;column-gap:6mm;margin-top:2mm}
.gcp-pr-col{display:flex;flex-direction:column}
.gcp-pr-cell{box-sizing:border-box;display:grid;grid-template-columns:34mm 54mm;column-gap:2mm;height:40mm;align-items:center;border-top:2px solid transparent}
.gcp-pr-col .gcp-pr-cell:last-child{border-bottom:2px solid transparent}
.gcp-pr-figbox{width:34mm;height:34mm}
.gcp-pr-fig{width:34mm;height:34mm}
.gcp-pr-fig .gcp-gl{stroke:#666;stroke-width:1.6}
.gcp-pr-fig .gcp-axis{stroke:#000;stroke-width:3}
.gcp-pr-fig .gcp-num{font-size:27.5px;fill:#000}
.gcp-pr-fig .gcp-pname{font-size:27px;fill:#000;stroke-width:5px}
.gcp-pr-fig .gcp-dot{fill:#000}
.gcp-pr-fig .gcp-start,.gcp-pr-fig .gcp-head{fill:#000}
.gcp-pr-fig .gcp-arrow{stroke:#000;stroke-width:3.5}
.gcp-pr-right{display:flex;flex-direction:column;gap:1mm;justify-content:center;min-width:0;box-sizing:border-box;padding-right:3.5mm}
.gcp-pr-num{font-size:12.5pt;font-weight:700;line-height:5.5mm}
.gcp-pr-task{font-size:12.5pt;line-height:5.5mm;overflow-wrap:anywhere}
.gcp-pr-field{font-size:12.5pt;line-height:8mm;white-space:nowrap}
.gcp-pbox{display:inline-block;box-sizing:border-box;width:9mm;height:7mm;border:2px solid #000;vertical-align:middle;margin:0 1mm}
.gcp-pr-answers{flex:none;box-sizing:border-box;width:190mm;margin-top:auto;padding-bottom:5mm}
.gcp-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0 0 0.8mm;padding:0;border:0;border-top:2pt dashed #aaa}
.gcp-pr-anshead{font-weight:700;font-size:12.5pt;line-height:6mm}
.gcp-pr-ansgrid{display:grid;grid-template-columns:90mm 90mm;column-gap:6mm}
.gcp-pr-anscol{display:flex;flex-direction:column;gap:1mm}
.gcp-pr-ans{font-size:10pt;line-height:4.6mm;white-space:nowrap}
.gcp-app-pdf-page .gcp-pr-page{box-shadow:none;margin:0}

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