/* ── solid_dimension_faces2_3（へんの長さから 立体と面を見分けよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に、立体の図、図の注意、回答案内、4つの選択肢、「こたえる！」ボタンを上から順に置く（§5-3・§7 画面表示）。 */
.sdf-main{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px auto 2px;max-width:560px;width:100%;box-sizing:border-box}
.sdf-fig-wrap{width:100%;display:flex;justify-content:center}
.sdf-fig{display:block;width:100%;max-width:340px;height:auto;overflow:visible;color:#000}
.sdf-fig text{fill:#000;font-family:inherit}
.sdf-note{margin:0;font-size:.92rem;color:#334155;text-align:center;overflow-wrap:anywhere}
.sdf-guide{margin:4px auto 0;font-weight:700;text-align:center;max-width:32em;overflow-wrap:anywhere}
.sdf-guide.sdf-guide-alert{color:#b91c1c}
.sdf-choices{display:flex;flex-direction:column;gap:8px;width:100%;max-width:30rem;margin:4px auto 2px}
.sdf-choice{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:6px 10px;border:2px solid #94a3b8;border-radius:12px;background:#fff;color:#111827;font-size:1.05rem;font-weight:700;font-family:inherit;cursor:pointer;text-align:center;line-height:1.35;box-sizing:border-box;width:100%}
.sdf-choice:hover:not(:disabled){border-color:#1d4ed8;background:#eff6ff}
.sdf-choice:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
.sdf-choice:disabled{cursor:default;opacity:1;color:#111827}
.sdf-choice.sdf-choice-correct{border:3px solid #15803d;background:#dcfce7}
.sdf-choice.sdf-choice-wrong{border:3px dashed #b91c1c;background:#fff1f2}
.sdf-choice.sdf-choice-selected{box-shadow:0 0 0 2px #111827 inset}
.sdf-choice.sdf-choice-selected:not(:disabled){border-color:#1d4ed8;background:#dbeafe;box-shadow:0 0 0 2px #1d4ed8 inset}
.sdf-choice-tag{font-size:1rem;font-weight:900;flex:none}
.sdf-choice-text{overflow-wrap:anywhere;min-width:0}
.feedback.has-text.sdf-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.sdf-correct{margin:4px 0 2px;font-weight:700;overflow-wrap:anywhere}
.sdf-expl-text{margin:2px 0 6px;overflow-wrap:anywhere}
.sdf-lesson-ex{display:inline-block;margin-top:4px;font-weight:700;overflow-wrap:anywhere}
.sdf-lesson-choices{display:block;margin:2px 0 4px;font-size:.92em;color:#334155;overflow-wrap:anywhere}
.sdf-lesson-figs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.sdf-lesson-fig{flex:1 1 220px;min-width:0}
.sdf-lesson-fig .sdf-fig{max-width:100%}
#page-quiz.active:has(.sdf-main) #question-text{overflow-wrap:anywhere;line-break:strict}
#page-quiz.active:has(.sdf-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.sdf-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.sdf-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.sdf-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0;overflow-wrap:anywhere}
@media (max-width:400px){
  .sdf-choice{font-size:.98rem}
}

/* 印刷：A4縦・2列×5段・1ページ（§7 v1.3。用紙の余白10mm、本文190×277mm、列94mm・列の間2mm）。
   上部61.5mm（題名の枠10mm・間1mm・記入欄8mm・実線と間2.3mm・共通の案内3行16mm・間1mm・名前のリストと面のリスト4行まで21.5mm・間1.7mm）、
   各問35mm（番号と問いの行5.3mm・間1mm・図の領域23mm・余り5.7mm）×5段＝175mm、
   答え：間2mm・破線・見出し6mm・1件5mm×5段＝33.7mm。合計約270mm。 */
.sdf-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}
.sdf-pr-head{display:flex;flex-direction:column;height:61.5mm;flex:none;box-sizing:border-box;font-size:12.5pt}
.sdf-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}
.sdf-pr-head .pp-fields{margin:1mm 0 0;height:8mm;line-height:8mm!important}
.sdf-pr-head hr.pp-fields-solid{margin:1mm 0 1mm!important}
.sdf-pr-inst{margin:0;height:16mm;max-height:16mm;line-height:5.3mm;overflow:hidden;overflow-wrap:break-word;word-break:normal;line-break:strict}
.sdf-pr-lists{margin-top:1mm;height:21.5mm;overflow:hidden}
.sdf-pr-list{margin:0;line-height:5.3mm;overflow-wrap:break-word;word-break:normal;line-break:strict;white-space:pre-wrap}
.sdf-pr-problems{display:grid;grid-template-columns:94mm 94mm;column-gap:2mm;flex:none;height:175mm}
.sdf-pr-col{display:grid;grid-template-rows:repeat(5,35mm)}
.sdf-pr-cell{display:flex;flex-direction:column;height:35mm;overflow:hidden;box-sizing:border-box;font-size:12.5pt}
.sdf-pr-num{margin:0;height:5.3mm;line-height:5.3mm;font-weight:700;white-space:nowrap}
.sdf-pr-body{display:flex;align-items:center;gap:3mm;margin-top:1mm;height:23mm}
.sdf-pr-fig{flex:none;line-height:0;width:58mm;height:23mm}
.sdf-pr-fig .sdf-fig{display:block;max-width:none}
.sdf-pr-fig text{fill:#000}
.sdf-pr-box{display:flex;align-items:center;gap:0;white-space:nowrap;flex:none}
.sdf-pr-anslabel{line-height:8mm;padding-right:0}
.sdf-pr-paren{font-size:14pt;line-height:8mm}
.sdf-pr-blank{display:inline-block;width:12mm;height:8mm}
.sdf-pr-answers{flex:none;box-sizing:border-box;margin-top:2mm}
.sdf-pr-dashed{box-sizing:content-box;display:block;height:0;margin:0;padding:0;border:0;border-top:2pt dashed #aaa}
.sdf-pr-answers-title{height:6mm;line-height:6mm;font-weight:700;font-size:12.5pt}
.sdf-pr-ans-grid{display:grid;grid-template-columns:94mm 94mm;column-gap:2mm}
.sdf-pr-ans-col{display:grid;grid-template-rows:repeat(5,5mm)}
.sdf-pr-ans{margin:0;font-size:10pt;line-height:5mm;white-space:nowrap;overflow:hidden}
.sdf-app-pdf-page .sdf-pr-page{box-shadow:none;margin:0}

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