/* ── clock_hands_angle3_4（時計の二つのはりが作る角を求めよう、単元仕様書 v1.3）── */
/* 画面：問題文の下に、時計の図・図の説明文・回答案内、数を入れる1欄と単位°、案内、数のキー（§5-3・§7 画面表示）。 */
.cha-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.cha-figure{margin:2px 0 0;max-width:100%;display:flex;justify-content:center}
.cha-svg{display:block;width:min(100%,200px);max-width:100%;height:auto}
.cha-caption{margin:2px 0 0;font-size:15px;color:#334155;text-align:center;line-height:1.4}
.cha-guide{margin:6px 0 0;font-size:16px;font-weight:700;text-align:center;line-height:1.4}
.cha-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.cha-input-wrap{display:inline-flex;align-items:center;gap:4px}
.cha-input{width:4.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}
.cha-input:focus-visible{outline:3px solid #f59e0b;outline-offset:1px}
.cha-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
/* 採点後：正しいときは緑の実線、まちがえたときは赤の点線の太い枠（色だけにせず線の形でも区別する）。 */
.cha-input.cha-ok,.cha-input.cha-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.cha-input.cha-ng,.cha-input.cha-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.cha-unit{font-weight:700;font-size:1.3rem;white-space:nowrap}
.cha-msg{min-height:1.4em;margin:4px 0 2px;color:#b45309;font-weight:700;text-align:center;line-height:1.4}
.cha-msg:empty{min-height:0;margin:0}
/* キーはほかの数の問いと同じ共通テンキーの配置（main.css の .numpad・.num-btn：3列、1〜9、最下段に0（2列分）と⌫）。ここでは幅と上の余白だけを変える（2026-11-18 オーナー指摘「テンキーのレイアウトが他と異なります」）。 */
/* 共通テンキーは renderQuestion が max-width:240px を直接指定するので、狭い画面でも同じ幅にそろえる。 */
.cha-keypad{width:100%;max-width:240px;margin-top:10px}
.cha-keypad[hidden]{display:none}
/* キーは操作の部品なので、共通テンキーと同じ UI の字体（--font-ui）にする（デザイン層仕様書 §1-2「UI 字体は非波及」。学習の字体だと 0 に斜線が入り、共通テンキーと字の形が違って見える）。 */
.cha-key{min-height:44px;font-family:var(--font-ui)}
.feedback.has-text.cha-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
@media (max-width:400px){.feedback.has-text.cha-feedback{font-size:15px}}
.cha-expl-text{margin:4px 0 6px;overflow-wrap:anywhere}
.cha-nb{white-space:nowrap}
.cha-example-q{font-weight:700;margin:2px 0 6px}
.cha-example-answer{margin:2px 0 6px}
/* 品質検査466：keep-all だと漢字かな交じりの文全体が1語になり、スマホ幅で「3／60°」のように数の途中で折れていた。文字の間で折り返し、数（数字・°）は折らない。 */
#page-quiz.active:has(.cha-main) #question-text,#page-quiz.active:has(.cha-main) #hint-area .kp-body,#page-quiz.active:has(.cha-main) #feedback,.cha-expl-text,.cha-caption,.cha-guide,.cha-msg,.cha-example-q,.cha-example-answer{word-break:normal;overflow-wrap:break-word;line-break:strict}
#page-quiz.active:has(.cha-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.cha-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.cha-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.cha-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}

/* 印刷：A4横・1ページ（§7。用紙の余白10mm、本文277×190mm。題名と記入欄、共通の問い1行、5列×2段で1問51.4×67.5mm、破線、答え5列×2行）。 */
.cha-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}
.cha-pr-headblock{display:flex;flex-direction:column;flex:none;box-sizing:border-box;width:277mm;height:19.5mm}
.cha-pr-title{box-sizing:border-box;margin:0;height:9mm;font-size:15pt;font-weight:700;line-height:8mm;text-align:center;white-space:nowrap;padding:0;border:1.5pt solid #666;background:#ffffcc;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.cha-pr-page[lang="en"] .cha-pr-title{font-size:14pt}
.cha-pr-fields{display:flex;gap:6mm;align-items:flex-end;height:7mm;margin-top:1mm;font-size:12pt;line-height:6mm;white-space:nowrap}
.cha-pr-group{display:inline-flex;align-items:flex-end;gap:3mm;flex:none}
.cha-pr-field{display:inline-flex;align-items:flex-end;gap:1.5mm;flex:none}
.cha-pr-field-line{display:inline-block;box-sizing:border-box;width:15mm;height:6mm;border-bottom:2px solid #555}
.cha-field-name{flex:1;min-width:0}
.cha-field-name .cha-pr-field-line{flex:1;width:auto;min-width:40mm}
.cha-pr-solid{box-sizing:content-box;display:block;height:0;padding:0;border:0;border-top:1.5pt solid #333;margin:1mm 0 0}
.cha-pr-common{flex:none;box-sizing:border-box;width:277mm;margin:1.5mm 0 0;height:6mm;font-size:12.5pt;line-height:6mm;white-space:nowrap;overflow:hidden}
.cha-pr-problems{flex:none;display:grid;grid-template-columns:repeat(5,51.4mm);grid-auto-rows:67.5mm;column-gap:4mm;row-gap:4mm;width:273mm;height:139mm;margin:1mm 0 0}
.cha-pr-cell{box-sizing:border-box;width:51.4mm;height:67.5mm;display:flex;flex-direction:column;align-items:stretch;overflow:hidden}
.cha-pr-q{box-sizing:border-box;margin:0;width:48.4mm;height:27.5mm;font-size:12.5pt;line-height:5.5mm;overflow:hidden;word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
.cha-pr-num{font-weight:700}
.cha-pr-fig{flex:none;margin:1mm 0 0;height:24mm;display:flex;justify-content:center}
.cha-pr-fig .cha-svg-print{display:block;width:24mm;height:24mm}
.cha-pr-ansline{flex:none;margin:1mm 0 0;height:9mm;font-size:12.5pt;line-height:9mm;white-space:pre}
.cha-pr-blank{display:inline-block;min-width:14mm;white-space:pre;text-align:center}
.cha-pr-answers{flex:none;box-sizing:border-box;width:277mm;height:19mm}
.cha-pr-dashed{box-sizing:content-box;display:block;height:0;margin:1.5mm 0 1mm;padding:0;border:0;border-top:2pt dashed #aaa}
.cha-pr-answers-title{font-weight:700;font-size:12.5pt;line-height:6mm;height:6mm}
.cha-pr-answers-grid{display:grid;grid-template-columns:repeat(5,51.4mm);column-gap:4mm}
.cha-pr-ans{height:4.5mm;line-height:4.5mm;font-size:10pt;white-space:nowrap;overflow:hidden}
.cha-app-pdf-page .cha-pr-page{box-shadow:none;margin:0}

#pr-sheet[data-unit="clock_hands_angle3_4"]{width:277mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="clock_hands_angle3_4"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="clock_hands_angle3_4"]>#pr-problems{display:block}
/* 画面のプレビューでは、用紙の余白を白い縁で見せる（印刷の寸法は変えない）。 */
#pr-sheet[data-unit="clock_hands_angle3_4"] .cha-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="clock_hands_angle3_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="clock_hands_angle3_4"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="clock_hands_angle3_4"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="clock_hands_angle3_4"] .cha-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
