/* ── congruent_correspondence_reason3_5（合同な図形の対応と理由を結び付けよう、単元仕様書 v1.3）── */
/* 画面：問題文、三角形の図、図の下の注意、回答案内、A〜C群は4つの答え（D群は数のらんと共通のテンキー）（§5-3・§7）。 */
#question-text .ccr-q{display:block}
.ccr-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:4px}
.ccr-figwrap{width:100%;max-width:440px}
.ccr-figwrap-b{max-width:640px}
.ccr-fig{display:block;width:100%;height:auto}
.ccr-note{margin:0;font-size:13px;color:#475569;text-align:center}
.ccr-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center}
.ccr-guide[hidden]{display:none}
.ccr-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:520px}
.ccr-choice{position:relative;min-height:48px;padding:8px 26px 8px 10px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:10px;font-size:1rem;font-weight:700;color:#111827;cursor:pointer;text-align:left;font-family:inherit}
.ccr-choice.ccr-sel{border:5px double #b45309;background:#fff7ed}
.ccr-choice:disabled{cursor:default;opacity:1;color:#111827;border-color:#94a3b8;background:#f8fafc}
.ccr-choice.ccr-sel:disabled{border:5px double #b45309;background:#fff7ed}
.ccr-check{position:absolute;top:2px;right:6px;font-size:.9rem;font-weight:900;color:#b45309}
.ccr-row-input{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:2px}
.ccr-input{width:6em;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}
.ccr-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.ccr-input.ccr-ok,.ccr-input.ccr-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.ccr-input.ccr-ng,.ccr-input.ccr-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.ccr-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.ccr-msg:empty{min-height:0;margin:0}
.ccr-main .ufk-keypad{margin-top:4px}
.feedback.has-text.ccr-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.ccr-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.ccr-ex-q{margin:6px 0 8px}
@media (max-width:560px){.ccr-choices{grid-template-columns:1fr}}
#page-quiz.active:has(.ccr-main) #question-text{word-break:normal;overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.ccr-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.ccr-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.ccr-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.ccr-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="congruent_correspondence_reason3_5"]) .ufk-keypad{max-width:240px;width:100%}

/* 印刷：A4横・1ページ（§7、v1.3）。題名の枠と記入らん（共通仕様 CP-08a・CP-08b）、共通の領域（注意・B群とC群の答えの一覧、行送り5mm）、2列×5段（1問133×26.5mm、図の行16mm、段の間0.5mm）、答えの1行。 */
.ccr-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}
.ccr-pr-headblock{display:block;flex:none}
/* 題名は共通仕様 CP-08a の枠・うすい黄色・中央ぞろえ。記入らんと実線は共通の .pp-fields（CP-08b）。 */
.ccr-pr-title{box-sizing:border-box;margin:0;height:7.5mm;font-size:14pt;font-weight:700;line-height:calc(7.5mm - 3pt);white-space:nowrap;text-align:center;border:1.5pt solid #666;background:#ffffcc;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.ccr-pr-headblock .pp-fields.pp-fields-compact{height:7.5mm;margin-top:1mm}
.ccr-pr-headblock hr.pp-fields-solid{box-sizing:content-box;height:0;margin:1mm 0 1mm!important;padding:0;border:0!important;border-top:1.5pt solid #333!important}
.ccr-pr-common{flex:none;width:270mm;margin:0 0 5mm}
.ccr-pr-note,.ccr-pr-list{margin:0;font-size:12.5pt;line-height:5mm;word-break:normal;overflow-wrap:anywhere;line-break:strict}
.ccr-pr-note,.ccr-pr-list-b{white-space:pre-wrap;height:5mm}
.ccr-pr-list-c{white-space:pre-wrap;max-height:10mm}
.ccr-pr-problems{flex:none;display:grid;grid-template-columns:133mm 133mm;column-gap:4mm;margin-top:1mm}
.ccr-pr-col{display:grid;grid-template-rows:repeat(5,26.5mm);row-gap:.5mm}
.ccr-pr-cell{box-sizing:border-box;width:133mm;height:26.5mm;overflow:hidden}
.ccr-pr-line{display:flex;align-items:center;height:5.5mm;font-size:12.5pt;line-height:5.5mm;white-space:nowrap}
.ccr-pr-num{flex:none;width:10mm;margin-right:1.5mm}
.ccr-pr-row{display:flex;align-items:center;height:16mm;gap:2mm}
.ccr-pr-figbox{flex:none;width:90mm;height:16mm}
.ccr-pr-cell[data-ccr-group="A"] .ccr-pr-figbox{width:54mm}
.ccr-pr-figbox-b{width:102mm}
.ccr-pr-fig{display:block;width:100%;height:16mm}
.ccr-pr-choices{flex:none;display:grid;grid-template-columns:24mm 24mm;grid-template-rows:5.5mm 5.5mm;width:48mm;font-size:12.5pt;line-height:5.5mm;white-space:pre}
.ccr-pr-box{flex:none;font-size:12.5pt;white-space:pre}
.ccr-pr-answers{flex:none;margin-top:1mm;border-top:2pt dashed #aaa;padding-top:1mm}
.ccr-pr-ansline{display:flex;align-items:center;height:4.5mm;font-size:10pt;line-height:4.5mm;white-space:nowrap;gap:4mm}
.ccr-pr-anshead{flex:none;font-size:12.5pt;font-weight:700}
.ccr-pr-ans{flex:none}
.ccr-app-pdf-page .ccr-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="congruent_correspondence_reason3_5"]{width:277mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="congruent_correspondence_reason3_5"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="congruent_correspondence_reason3_5"]>#pr-problems{display:block}
#pr-sheet[data-unit="congruent_correspondence_reason3_5"] .ccr-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="congruent_correspondence_reason3_5"]{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="congruent_correspondence_reason3_5"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="congruent_correspondence_reason3_5"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="congruent_correspondence_reason3_5"] .ccr-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
#page-quiz:has(#question-text[data-unit="congruent_correspondence_reason3_5"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
.ccr-pr-blank{display:inline-block;width:11mm;white-space:pre}
