/* ── solid_frame_length_connector3_3（立体のほね組みのざいりょうとつなぎ目を数えよう、単元仕様書 v1.6）── */
/* 画面：問題文、ほね組みの図、ぼう1本の長さの表、回答欄（欄の名前・数の欄・単位）、案内、共通のテンキー。回答後は正誤・欄ごとの正誤（C群）・正しい答え・解説（§5-3・§7・確定表 SFK-04〜07） */
#question-text .sfc-q{display:block;overflow-wrap:normal}
.sfc-nb{white-space:nowrap}
.sfc-phrase-group{display:inline;min-width:0}
.sfc-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.sfc-data{display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;max-width:640px}
.sfc-fig{width:100%;max-width:320px}
.sfc-fig-svg{display:block;width:100%;height:auto;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-sizing:border-box}
.sfc-table-wrap{max-width:100%}
.sfc-table{border-collapse:separate;border-spacing:0;font-size:16px;line-height:1.6;color:#111827;background:#fff;max-width:100%;outline:2px solid #334155;outline-offset:-1px}
.sfc-table th,.sfc-table td{padding:4px 12px;border-bottom:1px solid #94a3b8;font-weight:700;white-space:nowrap;text-align:center}
.sfc-table thead th{background:#e2e8f0;border-bottom:2px solid #334155}
.sfc-table tbody th{background:#f1f5f9}
.sfc-table th+th,.sfc-table th+td{border-left:1px solid #94a3b8}
.sfc-table tbody tr:last-child th,.sfc-table tbody tr:last-child td{border-bottom:0}
@media (min-width:700px){
  .sfc-data{flex-direction:row;justify-content:center;align-items:center;gap:24px}
  .sfc-fig{width:320px}
}
.sfc-fields{display:flex;flex-direction:column;align-items:center;gap:10px;max-width:100%}
.sfc-fields-2{gap:8px}
.sfc-field{display:flex;flex-direction:column;align-items:center;gap:3px}
.sfc-flabel{font-size:15px;font-weight:800;color:#111827;line-height:1.5;text-align:center}
.sfc-frow{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.sfc-funit{font-size:1.2rem;font-weight:800;color:#111827}
.sfc-input{width:4.2em;min-height:48px;font-size:1.35rem;padding:0 6px;border:3px solid #1d4ed8;background:#eff6ff;border-radius:8px;text-align:center;font-family:inherit;font-weight:800;box-sizing:border-box}
.sfc-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.sfc-input.sfc-ok,.sfc-input.sfc-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.sfc-input.sfc-ng,.sfc-input.sfc-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.sfc-input.sfc-bad{border:3px dashed #b45309;background:#fffbeb}
.sfc-part{margin:2px 0;font-weight:800;font-size:16px;line-height:1.7}
.sfc-part-ok{color:#15803d}
.sfc-part-ng{color:#b91c1c}
.sfc-part-ok::before{content:"○ "}
.sfc-part-ng::before{content:"× "}
.sfc-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.sfc-guide[hidden]{display:none}
.sfc-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.sfc-msg:empty{min-height:0;margin:0}
.sfc-msg-line{display:block}
.sfc-main .ufk-keypad{margin-top:4px}
.feedback.has-text.sfc-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.sfc-correct{margin:4px 0 6px;font-weight:800;font-size:17px;line-height:1.9}
.sfc-expl-text{margin:4px 0 8px;line-height:2;overflow-wrap:normal;word-break:normal;line-break:strict}
.sfc-example .sfc-ex-q,.sfc-example .sfc-ex-a{margin:6px 0 8px;line-height:2}
.sfc-example .sfc-data{margin:0 auto;flex-direction:column;align-items:center;gap:10px}
#page-quiz.active:has(.sfc-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.sfc-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.sfc-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.sfc-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.sfc-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="solid_frame_length_connector3_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="solid_frame_length_connector3_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
/* 結果画面の単元名：狭い幅でも省略せず、文節で折り返す */
.result-unit-badge.sfc-badge{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;height:auto;border-radius:14px;line-height:1.5}
.result-unit-badge.sfc-badge .rub-name{white-space:normal;overflow:visible;text-overflow:clip}
@media (max-width:400px){
  #page-lesson:has(.sfc-example) .lesson-point,#page-lesson:has(.sfc-example) .lesson-point *{font-size:15px}
  #page-lesson:has(.sfc-example) .lesson-point{padding-left:10px;padding-right:10px;gap:6px}
  #page-lesson:has(.sfc-example) .lesson-point .pt-icon{display:none}
  #page-lesson .lesson-example:has(.sfc-example){padding-left:8px;padding-right:8px}
  #page-lesson .lesson-example div:has(>.sfc-example){padding-left:6px!important;padding-right:6px!important}
  .sfc-example .sfc-ex-q,.sfc-example .sfc-ex-a{font-size:14px}
  .sfc-table th,.sfc-table td{padding:4px 6px}
  .sfc-guide,.sfc-msg{font-size:15px}
  .sfc-funit{font-size:1.05rem}
  .sfc-flabel{font-size:14px}
  .sfc-input{width:3.8em}
}
@media (max-width:340px){
  .sfc-example .sfc-ex-q,.sfc-example .sfc-ex-a{font-size:13px}
  #page-lesson:has(.sfc-example) :is(h1,h2,h3):has(.sfc-phrase){font-size:20px!important}
  .sfc-table{font-size:15px}
}

@media (max-width:430px){
  .sfc-example .sfc-table{font-size:13px}
  .sfc-example .sfc-table th,.sfc-example .sfc-table td{padding:3px 4px}
  .sfc-example .sfc-table thead th{white-space:normal}
}
.sfc-expl-s{display:block;margin:0 0 4px}
.sfc-user-long .sfc-nb{white-space:normal;overflow-wrap:anywhere}

/* 印刷（プリント共通仕様書のひな型P・P-標準：A4縦・2列×5行・1ページ。§7・確定表 SFK-08） */
.sfc-pr-page{width:190mm;height:276mm;box-sizing:border-box;color:#000;background:#fff;font-family:'Atkinson Hyperlegible','BIZ UDPGothic','Yu Gothic','Meiryo',sans-serif;display:flex;flex-direction:column;overflow:hidden}
.sfc-pr-headrow{flex:none;display:flex;flex-direction:column;gap:0}
.sfc-pr-title{box-sizing:border-box;width:100%;height:8mm;margin:0;padding:0 2mm;border:1.5pt solid #666;background:#ffffcc;font-size:14pt;line-height:calc(8mm - 3pt);text-align:center;font-weight:700;white-space:nowrap;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.sfc-pr-headrow .pp-fields{margin:1mm 0 0}
.sfc-pr-headrow .pp-field-name .pp-field-line{min-width:40mm}
.sfc-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:0.8mm 0 1mm!important}
.sfc-pr-inst{flex:none;font-size:12.5pt;line-height:5.4mm;margin:0 0 1mm;padding:0 1mm;overflow-wrap:normal;word-break:normal;white-space:pre-wrap}
.sfc-pr-problems{flex:none;display:flex;gap:6mm;justify-content:center}
.sfc-pr-col{width:92mm;display:flex;flex-direction:column;gap:0}
.sfc-pr-cell{box-sizing:border-box;width:92mm;flex:none;height:40mm;overflow:hidden;break-inside:avoid;display:flex;align-items:flex-start}
.sfc-pr-no{flex:none;width:9mm;font-size:12.5pt;font-weight:700;line-height:6mm}
.sfc-pr-fig{flex:none;width:44mm;height:32mm;line-height:0}
.sfc-pr-fig svg{display:block}
.sfc-pr-boxes{flex:none;width:33mm;margin-left:2mm;display:flex;flex-direction:column;gap:1mm}
.sfc-pr-name{font-size:12.5pt;line-height:5.2mm;overflow-wrap:anywhere}
.sfc-pr-row{flex:none;display:flex;align-items:center;height:8mm;font-size:12.5pt;line-height:8mm;white-space:nowrap}
.sfc-pr-lead{flex:none;font-size:12.5pt;white-space:pre}
.sfc-pr-paren{font-size:13pt;font-weight:400}
.sfc-pr-blank{flex:none;display:inline-block;width:12mm;height:7mm}
.sfc-pr-lead+.sfc-pr-paren{margin-left:0.5mm}
.sfc-pr-page[lang="en"] .sfc-pr-lead+.sfc-pr-paren{margin-left:.3em}
.sfc-pr-page[lang="en"] .sfc-pr-paren+.sfc-pr-lead{margin-left:.3em}
.sfc-pr-answers{flex:none;margin-top:1.5mm;height:32mm;box-sizing:border-box}
.sfc-pr-fold{width:100%;height:0;border-top:2px dotted #333;margin:0 0 1.2mm}
.sfc-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.sfc-pr-acols{display:flex;gap:6mm}
.sfc-pr-acol{width:92mm}
.sfc-pr-answer{margin:0 0 0.3mm;font-size:10pt;line-height:4.4mm;white-space:nowrap}
#pr-sheet[data-unit="solid_frame_length_connector3_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="solid_frame_length_connector3_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="solid_frame_length_connector3_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="solid_frame_length_connector3_3"] .sfc-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_frame_length_connector3_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_frame_length_connector3_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="solid_frame_length_connector3_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="solid_frame_length_connector3_3"] .sfc-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.sfc-app-pdf-page .sfc-pr-page{box-shadow:none;margin:0}
.sfc-learning-focus{word-break:normal;line-break:strict}
