/* ── circle_center_position2_3（円のならびと 中心の場所、単元仕様書 v1.4）── */
/* 画面：問題文の下に、図、凡例、図の注意、回答案内、数値の欄と単位cm、案内、テンキー、「こたえる！」ボタンを上から順に置く（§7 画面表示）。 */
.ccp-main{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px auto 2px;max-width:560px;width:100%;box-sizing:border-box}
.ccp-fig-wrap{width:100%;display:flex;justify-content:center}
.ccp-fig{display:block;width:100%;max-width:280px;height:auto;overflow:visible;color:#000}
.ccp-fig text{fill:#000;font-family:inherit}
.ccp-legend{margin:0;font-size:.9rem;color:#111827;text-align:center;overflow-wrap:anywhere;white-space:pre-wrap}
.ccp-note{margin:0;font-size:.9rem;color:#334155;text-align:center;overflow-wrap:anywhere}
.ccp-guide{margin:4px auto 0;font-weight:700;text-align:center;max-width:32em;overflow-wrap:anywhere}
.ccp-field{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:nowrap}
.ccp-input{width:5em;min-width:72px;min-height:48px;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}
.ccp-input:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.ccp-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.ccp-input.ccp-input-ok{border:3px solid #15803d;background:#dcfce7}
.ccp-input.ccp-input-ng{border:3px dashed #b91c1c;background:#fff1f2}
.ccp-unit{font-size:1.3rem;font-weight:800;white-space:nowrap}
.ccp-msg{margin:0;min-height:1.2em;color:#b91c1c;font-weight:700;font-size:.95rem;text-align:center;max-width:32em;overflow-wrap:anywhere}
.feedback.has-text.ccp-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.ccp-correct{margin:4px 0 2px;font-weight:700;overflow-wrap:anywhere}
.ccp-expl-text{margin:2px 0 6px;overflow-wrap:anywhere}
.ccp-lesson-ex{display:inline-block;margin-top:4px;font-weight:700;overflow-wrap:anywhere}
#page-quiz.active:has(.ccp-main) #question-text{overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.ccp-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.ccp-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.ccp-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.ccp-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}
@media (max-width:400px){
  .ccp-input{font-size:1.15rem}
  .ccp-unit{font-size:1.15rem}
  .ccp-legend,.ccp-note{font-size:.84rem}
}

/* 印刷：A4縦・2列×5段・1ページ（§7。用紙の余白10mm、本文190×277mm、列92mm・列の間6mm）。
   上部49mm（題名の枠10mm・間1mm・記入欄8mm・間1mm・実線・間1mm・共通の案内4行22mm・凡例5mm）、
   各問35mm×5段＋段の間1.5mm×4＝181mm、間隔3mm、答え：破線・見出し6mm・1件5.5mm×5段＝約34mm。合計約267mm（余り約10mm）。 */
.ccp-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}
.ccp-pr-head{display:flex;flex-direction:column;height:49mm;flex:none;box-sizing:border-box;font-size:12.5pt}
.ccp-pr-title{box-sizing:border-box;margin:0;height:10mm;font-size:14pt;font-weight:700;line-height:8.9mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.ccp-pr-head .pp-fields{margin:1mm 0 0;height:8mm;line-height:8mm!important}
.ccp-pr-head hr.pp-fields-solid{margin:1mm 0 1mm!important}
.ccp-pr-inst{margin:0;height:22mm;max-height:22mm;line-height:5.5mm;overflow:hidden;overflow-wrap:break-word;word-break:normal;line-break:strict}
.ccp-pr-legend{margin:0;height:5mm;line-height:5mm;font-size:9pt;white-space:pre;overflow:hidden}
.ccp-pr-problems{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm;flex:none;height:181mm}
.ccp-pr-col{display:grid;grid-template-rows:repeat(5,35mm);row-gap:1.5mm}
.ccp-pr-cell{display:flex;align-items:flex-start;height:35mm;overflow:hidden;box-sizing:border-box;padding:2mm 4.5mm 0 1.5mm;gap:3mm;font-size:12.5pt}
.ccp-pr-fig{flex:none;width:31mm;height:31mm;line-height:0}
.ccp-pr-fig .ccp-fig{display:block;max-width:none}
.ccp-pr-fig text{fill:#000}
.ccp-pr-right{flex:none;width:52mm;display:flex;flex-direction:column}
.ccp-pr-q{margin:0;height:6mm;line-height:6mm;white-space:nowrap;overflow:hidden}
.ccp-pr-num{font-weight:700}
.ccp-pr-ansrow{display:flex;align-items:center;gap:1.5mm;margin-top:1mm;height:9mm}
.ccp-pr-box{display:inline-block;width:24mm;height:9mm;box-sizing:border-box;border:0.35mm solid #000}
.ccp-pr-unit{line-height:9mm}
.ccp-pr-work{position:relative;margin-top:1.5mm;width:52mm;height:14.5mm;box-sizing:border-box;border:0.3mm solid #888}
.ccp-pr-work-label{position:absolute;left:1mm;top:0.5mm;font-size:10pt;line-height:4mm;color:#333}
.ccp-pr-answers{flex:none;box-sizing:border-box;margin-top:3mm}
.ccp-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0;padding:0;border:0;border-top:2pt dashed #aaa}
.ccp-pr-answers-title{height:6mm;line-height:6mm;font-weight:700;font-size:12.5pt}
.ccp-pr-ans-grid{display:grid;grid-template-columns:92mm 92mm;column-gap:6mm}
.ccp-pr-ans-col{display:grid;grid-template-rows:repeat(5,5.5mm)}
.ccp-pr-ans{margin:0;font-size:10pt;line-height:5.5mm;white-space:nowrap;overflow:hidden}
.ccp-app-pdf-page .ccp-pr-page{box-shadow:none;margin:0}

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