/* ── timetable_clock_inverse2_3（時こく表とずれる時計をぎゃく算しよう、単元仕様書 v1.7）── */
/* 画面：問題文、きろくの表、重なりの図、回答欄（数の欄・単位）、案内、共通のテンキー。回答後は正誤・正しい答え・解説・図の区分の数（§5-3・§7） */
#question-text .tck-q{display:block;overflow-wrap:normal}
.tck-nb{white-space:nowrap}
.tck-phrase-group{display:inline;min-width:0}
.tck-main{margin:4px 0 6px;max-width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.tck-table-wrap{max-width:100%;display:flex;justify-content:center}
.tck-cap{caption-side:top;text-align:left;font-size:15px;font-weight:800;color:#334155;line-height:1.6;padding:0 0 2px}
.tck-table{border-collapse:separate;border-spacing:0;font-size:16px;line-height:1.6;color:#111827;background:#fff;max-width:100%}
.tck-table thead,.tck-table tbody{outline:2px solid #334155;outline-offset:-1px}
.tck-table th,.tck-table td{padding:4px 12px;border-bottom:1px solid #94a3b8;font-weight:700;white-space:nowrap;text-align:center}
.tck-table thead th{background:#e2e8f0;border-bottom:2px solid #334155}
.tck-table tbody th{background:#f1f5f9;text-align:left}
.tck-table th+th,.tck-table th+td,.tck-table td+td,.tck-table td+th{border-left:1px solid #94a3b8}
.tck-table tbody tr:last-child th,.tck-table tbody tr:last-child td{border-bottom:0}
.tck-table .tck-corner{background:#e2e8f0;border-bottom:2px solid #334155}
.tck-ct thead th{white-space:normal;line-height:1.35}
/* 次の日の時こくの印の説明（v1.7。表の下） */
.tck-table tfoot td.tck-tt-next{padding:3px 4px 0;border:0;background:transparent;font-size:14px;font-weight:700;white-space:normal;text-align:left;line-height:1.6}
/* 予定の行は点線、じっさいの行は実線（色だけで分けない） */
.tck-bt .tck-row-plan th,.tck-bt .tck-row-plan td{border-bottom:2px dotted #334155}
.tck-bt .tck-row-actual th,.tck-bt .tck-row-actual td{border-top:2px solid #334155;border-bottom:2px solid #334155}
.tck-choices{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:100%}
.tck-choice{min-width:48px;min-height:48px;padding:0 10px;font-size:1.2rem;font-weight:800;font-family:inherit;color:#111827;background:#fff;border:3px solid #64748b;border-radius:10px;cursor:pointer}
.tck-choice.tck-chosen{border-color:#1d4ed8;background:#dbeafe;box-shadow:inset 0 0 0 2px #1d4ed8}
.tck-choice:disabled{cursor:default;opacity:1;color:#111827}
.tck-choice.tck-ok{border:3px solid #15803d;background:#dcfce7;box-shadow:none}
.tck-choice.tck-ng{border:3px dashed #b91c1c;background:#fff1f2;box-shadow:none}
.tck-fields{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 14px;max-width:100%}
.tck-flabel{font-size:1.2rem;font-weight:800;color:#111827;line-height:1.5;white-space:nowrap}
.tck-part{margin:2px 0;font-weight:800;font-size:16px;line-height:1.7}
.tck-part-ok{color:#15803d}
.tck-part-ng{color:#b91c1c}
.tck-part-ok::before{content:"○ "}
.tck-part-ng::before{content:"× "}
.tck-field{display:flex;flex-direction:column;align-items:center;gap:3px}
.tck-frow{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tck-funit{font-size:1.25rem;font-weight:800;color:#111827}
.tck-input{width:3.4em;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}
.tck-input:disabled{background:#f8fafc;color:#111827;opacity:1;border-color:#94a3b8}
.tck-input.tck-ok,.tck-input.tck-ok:disabled{border:3px solid #15803d;background:#dcfce7}
.tck-input.tck-ng,.tck-input.tck-ng:disabled{border:3px dashed #b91c1c;background:#fff1f2}
.tck-input.tck-bad{border:3px dashed #b45309;background:#fffbeb}
.tck-guide{margin:2px 0 0;font-size:16px;font-weight:700;text-align:center;max-width:560px;line-height:1.7}
.tck-guide[hidden]{display:none}
.tck-msg{min-height:1.4em;margin:2px 0;color:#b45309;font-weight:700;text-align:center;line-height:1.6;max-width:560px}
.tck-msg:empty{min-height:0;margin:0}
.tck-msg-line{display:block}
.tck-main .ufk-keypad{margin-top:4px}
.feedback.has-text.tck-feedback{height:auto;min-height:40px;padding:4px 0;text-align:center;line-height:1.45}
.tck-correct{margin:4px 0 6px;font-weight:800;font-size:17px;line-height:1.9}
.tck-expl-text{margin:4px 0 8px;line-height:2;overflow-wrap:normal;word-break:normal;line-break:strict}
.tck-example .tck-ex-q{margin:6px 0 6px;font-weight:700;line-height:2}
.tck-example .tck-ex-a{margin:8px 0 8px;line-height:2}
.tck-learning-focus{word-break:normal;line-break:strict}
#page-quiz.active:has(.tck-main) #question-text{word-break:normal;overflow-wrap:normal;line-break:strict;font-size:17px;line-height:2}
#page-quiz.active:has(.tck-main) #hint-area .kp-card{display:flex;align-items:flex-start;gap:8px}
#page-quiz.active:has(.tck-main) #hint-area .kp-head{margin-bottom:0;flex:none}
#page-quiz.active:has(.tck-main) #hint-area .kp-title:empty{display:none}
#page-quiz.active:has(.tck-main) #hint-area .kp-body{flex:1;min-width:0;padding-left:0}
#page-quiz:has(#question-text[data-unit="timetable_clock_inverse2_3"]) .ufk-keypad{max-width:240px;width:100%}
#page-quiz:has(#question-text[data-unit="timetable_clock_inverse2_3"]) .ufk-keypad .num-btn{font-family:var(--font-ui)}
/* 結果画面の単元名：狭い幅でも省略せず、文節で折り返す */
.result-unit-badge.tck-badge{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;height:auto;border-radius:14px;line-height:1.5}
.result-unit-badge.tck-badge .rub-name{white-space:normal;overflow:visible;text-overflow:clip}
@media (max-width:400px){
  #page-lesson:has(.tck-example) .lesson-point,#page-lesson:has(.tck-example) .lesson-point *{font-size:15px}
  #page-lesson:has(.tck-example) .lesson-point{padding-left:10px;padding-right:10px;gap:6px}
  #page-lesson:has(.tck-example) .lesson-point .pt-icon{display:none}
  #page-lesson .lesson-example:has(.tck-example){padding-left:8px;padding-right:8px}
  #page-lesson .lesson-example div:has(>.tck-example){padding-left:6px!important;padding-right:6px!important}
  .tck-example .tck-ex-q,.tck-example .tck-ex-a{font-size:14px}
  .tck-guide,.tck-msg{font-size:15px}
  .tck-funit{font-size:1.1rem}
  .tck-table{font-size:15px}
  .tck-table th,.tck-table td{padding:4px 7px}
  .tck-example .tck-table{font-size:14px}
  .tck-example .tck-table th,.tck-example .tck-table td{padding:3px 5px}
}
@media (max-width:340px){
  .tck-example .tck-ex-q,.tck-example .tck-ex-a{font-size:13px}
  #page-lesson:has(.tck-example) :is(h1,h2,h3):has(.tck-phrase){font-size:20px!important}
  .tck-table{font-size:14px}
  .tck-example .tck-table{font-size:13px}
  .tck-example .tck-table th,.tck-example .tck-table td{padding:3px 4px}
}
@media (max-width:400px){
  .tck-example .tck-table{font-size:14px}
  .tck-example .tck-table th,.tck-example .tck-table td{padding:3px 5px}
  .tck-flabel{font-size:1.1rem}
}
@media (max-width:340px){
  .tck-example .tck-table{font-size:13px}
  .tck-example .tck-table th,.tck-example .tck-table td{padding:3px 3px}
  .tck-example .tck-table tbody th{white-space:normal;line-height:1.35}
  .tck-choice{min-width:46px;padding:0 6px}
  .tck-choices{gap:6px}
  .tck-input{width:2.6em}
  .tck-flabel{font-size:1rem}
  .tck-fields{gap:6px 8px}
  .tck-frow{gap:4px}
}

/* 印刷（プリント共通仕様書のひな型P・P-標準：A4縦・2列×5行・1ページ。§7・確定表 TCK-09） */
.tck-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}
.tck-pr-headrow{flex:none;display:flex;flex-direction:column;gap:0}
.tck-pr-title{box-sizing:border-box;width:100%;height:9mm;margin:0;padding:0 2mm;border:1.5pt solid #666;background:#ffffcc;font-size:13pt;line-height:calc(9mm - 3pt);text-align:center;font-weight:700;white-space:nowrap;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.tck-pr-headrow .pp-fields{margin:1mm 0 0}
.tck-pr-headrow .pp-field-name .pp-field-line{min-width:40mm}
.tck-pr-headrow hr.pp-fields-solid{flex:none;width:100%;margin:1.5mm 0 1.5mm!important}
.tck-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}
.tck-pr-problems{flex:1 1 0;min-height:0;display:flex;gap:4mm;justify-content:center}
.tck-pr-col{width:93mm;display:flex;flex-direction:column;gap:1mm;min-height:0}
.tck-pr-cell{box-sizing:border-box;width:93mm;flex:1 1 0;min-height:0;padding:0 0.5mm;overflow:hidden;break-inside:avoid;display:flex;flex-direction:column}
.tck-pr-q{flex:none;display:flex;align-items:flex-start;margin:0;font-size:12.5pt;line-height:5.4mm;overflow-wrap:normal;word-break:normal}
.tck-pr-no{flex:none;margin-right:1.6mm;font-weight:700;min-width:7.5mm;white-space:nowrap}
.tck-pr-qtext{flex:1 1 0;min-width:0}
.tck-pr-table{flex:none;display:grid;margin:0.6mm 0 0 3mm;border:2px solid #000;font-size:9pt;line-height:4.2mm;align-self:flex-start;max-width:89mm}
.tck-pr-th,.tck-pr-td{padding:0 0.55mm;white-space:nowrap;text-align:center;border-bottom:2px solid #000}
.tck-pr-th{text-align:left;font-weight:700;border-right:2px solid #000}
.tck-pr-td+.tck-pr-td{border-left:2px solid #000}
.tck-pr-r2{border-bottom:0}
.tck-pr-ansrow{flex:none;display:flex;align-items:center;height:7.8mm;margin-top:0.4mm;padding-left:9mm;font-size:12.5pt;line-height:8mm;white-space:nowrap}
.tck-pr-lead{flex:none;font-size:12.5pt;white-space:pre}
.tck-pr-paren{font-size:14pt;font-weight:400}
.tck-pr-blank{flex:none;display:inline-block;width:10.4mm;height:7.4mm}
.tck-pr-paren+.tck-pr-lead{margin-left:0.4mm}
.tck-pr-lead+.tck-pr-paren{margin-left:1.2mm}
.tck-pr-lead-en+.tck-pr-paren{margin-left:.3em}
.tck-pr-paren+.tck-pr-lead-en{margin-left:.25em}
.tck-pr-work{flex:1 1 0;min-height:0}
.tck-pr-answers{flex:none;margin-top:1.5mm}
.tck-pr-fold{width:100%;height:0;border-top:2px dotted #333;margin:0 0 1.2mm}
.tck-pr-anshead{font-size:12.5pt;font-weight:700;line-height:6mm}
.tck-pr-acols{display:flex;gap:4mm}
.tck-pr-acol{width:93mm}
.tck-pr-answer{margin:0 0 0.5mm;font-size:10pt;line-height:4.4mm;white-space:nowrap}
#pr-sheet[data-unit="timetable_clock_inverse2_3"]{width:190mm;max-width:none;padding:0;margin:calc(12px + 10mm) auto;background:transparent;box-shadow:none}
#pr-sheet[data-unit="timetable_clock_inverse2_3"]>:not(#pr-problems){display:none!important}
#pr-sheet[data-unit="timetable_clock_inverse2_3"]>#pr-problems{display:block}
#pr-sheet[data-unit="timetable_clock_inverse2_3"] .tck-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="timetable_clock_inverse2_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="timetable_clock_inverse2_3"]>:not(#pr-problems){display:none!important}
  #page-print #pr-sheet[data-unit="timetable_clock_inverse2_3"]>#pr-problems{display:block!important}
  #page-print #pr-sheet[data-unit="timetable_clock_inverse2_3"] .tck-pr-page{display:flex!important;margin:0!important;box-shadow:none!important;break-after:auto;page-break-after:auto}
}
.tck-app-pdf-page .tck-pr-page{box-shadow:none;margin:0}
