/* 準委任・請負・派遣（契約の形）。style.css・flow.css・br.css の上に重ねる（接頭辞 ct-） */
.ct-h4 { margin: 0 0 8px; font-size: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.ct-mt { margin-top: 12px; }
.ct-box { padding: 12px 14px; min-width: 0; }
.ct-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* 3 つの違いの表 */
.ct-ttbl { min-width: 760px; font-size: 12.5px; }
.ct-ttbl thead th { font-size: 13px; color: var(--ink); }
.ct-ttbl tbody th { font-weight: 700; white-space: nowrap; color: var(--ink2); }
.ct-ttbl td { min-width: 13em; }
.ct-ptbl { min-width: 520px; font-size: 12.5px; }
.ct-ptbl td:last-child { white-space: nowrap; font-weight: 700; }

/* 練習: 場面の判定 */
.ct-ctl { padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 6px; }
.ct-how { margin: 0; font-size: 13px; color: var(--ink2); }
.ct-score { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.ct-score:empty { display: none; }
.ct-scenes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ct-scene { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--paper); min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ct-scene.ct-right { border-color: #86efac; background: #f7fef9; }
.ct-scene.ct-wrong { border-color: #fca5a5; background: #fffafa; }
.ct-sh { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.ct-sn { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line2); color: var(--ink2); font: 600 11.5px/22px var(--latin); text-align: center; }
.ct-sbtns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.ct-kbtn { appearance: none; font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); color: var(--ink2); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.ct-kbtn:hover { border-color: #94a3b8; color: var(--ink); }
.ct-kbtn[aria-pressed="true"] { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.ct-kbtn.ct-none[aria-pressed="true"] { background: #15803d; border-color: #15803d; color: #fff; }
.ct-ans { font-size: 12.5px; color: var(--ink2); background: var(--line2); border-radius: 8px; padding: 7px 10px; }
.ct-ans p { margin: 0 0 4px; }
.ct-ans p:last-child { margin-bottom: 0; }
.ct-ans .srcl { margin: 4px 0 0; }
.ct-res { font-weight: 700; }
.ct-res.ct-right { color: #15803d; }
.ct-res.ct-wrong { color: #b91c1c; }
.ct-res.ct-yet { color: var(--muted); }
.ct-foot { display: flex; justify-content: flex-end; margin-top: 10px; }

/* 残す形 */
.ct-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ct-tpl { padding: 12px 14px; min-width: 0; }
.ct-tplh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ct-tplh .ct-h4 { margin: 0; }
.ct-ltbl { min-width: 1500px; font-size: 12.5px; }
.ct-ltbl th { white-space: nowrap; }
.ct-ltbl td { min-width: 8em; }
.ct-ltbl td:nth-child(1), .ct-ltbl td:nth-child(2), .ct-ltbl td:nth-child(6) { min-width: 12em; }
.ct-pre { margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 10px 12px; font: 500 12px/1.6 var(--latin); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }

.ct-kbtn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

@media (max-width: 760px) {
  .ct-scenes { grid-template-columns: minmax(0, 1fr); }
  .ct-foot { justify-content: flex-start; }
}
