/* テロップ照合ツール（/tools/telop-check/）
   文字は18px以上（サイト共通の下限）。色はAI支援側の緑にそろえる。 */
.tc-page { --tc-green: #245a4c; --tc-green-dark: #173f37; --tc-tint: #f5f8f2; --tc-line: #c7d6c6; --tc-bad: #b3261e; --tc-bad-bg: #fde7e4; --tc-fix: #1d5d3a; --tc-fix-bg: #ddf3e4; }
.tc-page .container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.tc-hero { background: var(--tc-tint); padding: 56px 0 40px; }
.tc-breadcrumb { font-size: 18px; color: #47564d; margin: 0 0 20px; }
.tc-breadcrumb a { color: var(--tc-green); }
.tc-kicker { display: block; color: var(--tc-green); font-weight: 800; letter-spacing: .06em; font-size: 18px; margin-bottom: 14px; }
.tc-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.45; letter-spacing: -.02em; margin: 0 0 18px; }
.tc-hero h1 span { display: inline-block; }
.tc-lead { font-size: 19px; line-height: 1.9; max-width: 760px; margin: 0 0 14px; }
.tc-privacy { font-size: 18px; line-height: 1.8; color: #34443b; background: #fff; border: 1px solid var(--tc-line); border-radius: 12px; padding: 12px 16px; max-width: 760px; margin: 0; }

.tc-app { padding: 40px 0 24px; scroll-margin-top: 90px; }
.tc-card { background: #fff; border: 1px solid var(--tc-line); border-radius: 18px; padding: 28px; box-shadow: 8px 10px 0 #e0e8da; }
.tc-card + .tc-card { margin-top: 28px; }
.tc-card h2 { font-size: 26px; line-height: 1.5; margin: 0 0 16px; display: flex; gap: 12px; align-items: baseline; }
.tc-num { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 50%; background: var(--tc-green); color: #fff; font-size: 20px; font-weight: 800; }

.tc-drop { display: grid; gap: 14px; justify-items: center; text-align: center; border: 3px dashed #9fb8a3; border-radius: 16px; padding: 34px 18px; background: #fbfdf9; transition: background .15s, border-color .15s; }
.tc-drop.is-over { background: #e9f3e6; border-color: var(--tc-green); }
.tc-drop p { margin: 0; font-size: 19px; line-height: 1.7; }
.tc-file-label { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 14px 26px; border-radius: 8px; background: var(--tc-green); color: #fff; font-weight: 700; font-size: 20px; cursor: pointer; }
.tc-file-label:focus-within { outline: 3px solid #102820; outline-offset: 4px; }
.tc-file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tc-or { color: #47564d; font-size: 18px; }
.tc-button { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 24px; border-radius: 8px; border: 2px solid var(--tc-green); background: #fff; color: var(--tc-green-dark); font-weight: 700; font-size: 19px; cursor: pointer; text-decoration: none; }
.tc-button:hover { background: #eef5ec; }
.tc-button:focus-visible, .tc-file-label:focus-visible { outline: 3px solid #102820; outline-offset: 4px; }
.tc-button[disabled] { opacity: .55; cursor: progress; }
.tc-button-primary { background: var(--tc-green); color: #fff; }
.tc-button-primary:hover { background: var(--tc-green-dark); }
.tc-limits { font-size: 18px; line-height: 1.8; color: #47564d; margin: 14px 0 0; }

.tc-setup-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tc-player { position: relative; background: #0d1512; border-radius: 12px; overflow: hidden; }
.tc-player video { display: block; width: 100%; max-height: 62vh; background: #000; }
.tc-band { position: absolute; left: 0; right: 0; border: 3px solid #ffd84a; background: rgba(255, 216, 74, .14); pointer-events: none; transition: top .2s, height .2s; }
.tc-band::after { content: "ここを読み取ります"; position: absolute; right: 8px; top: 6px; background: #ffd84a; color: #1d1d1d; font-weight: 700; font-size: 18px; padding: 2px 10px; border-radius: 6px; }
.tc-meta { font-size: 18px; color: #47564d; margin: 10px 0 0; overflow-wrap: anywhere; }
.tc-fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.tc-fieldset legend { font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.tc-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tc-region { position: relative; display: block; }
.tc-region input { position: absolute; opacity: 0; }
.tc-region span { display: block; border: 2px solid var(--tc-line); border-radius: 10px; padding: 12px 14px; font-size: 18px; line-height: 1.5; cursor: pointer; background: #fff; }
.tc-region input:checked + span { border-color: var(--tc-green); background: #eaf4e7; font-weight: 700; }
.tc-region input:focus-visible + span { outline: 3px solid #102820; outline-offset: 2px; }
.tc-hint { font-size: 18px; line-height: 1.8; color: #47564d; margin: 0 0 18px; }
.tc-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tc-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.tc-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 19px; padding: 12px 14px; border-radius: 10px; background: #f6f8f5; }
.tc-steps li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #b9c7ba; box-sizing: border-box; }
.tc-steps li[data-status="run"]::before { border-color: var(--tc-green); border-top-color: transparent; animation: tc-spin 1s linear infinite; }
.tc-steps li[data-status="done"]::before { background: var(--tc-green); border-color: var(--tc-green); box-shadow: inset 0 0 0 4px #fff; }
.tc-steps b { font-weight: 800; margin-right: 10px; }
.tc-steps [data-step-text] { color: #34443b; }
@keyframes tc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tc-steps li[data-status="run"]::before { animation: none; border-top-color: var(--tc-green); } }

.tc-error { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--tc-bad-bg); color: #5c120d; font-size: 18px; line-height: 1.8; }

.tc-summary { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tc-summary li { border: 1px solid var(--tc-line); border-radius: 12px; padding: 14px 16px; background: #fbfdf9; display: grid; gap: 4px; }
.tc-summary b { font-size: 22px; }
.tc-summary span { font-size: 18px; line-height: 1.7; color: #34443b; }
.tc-toolbar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.tc-check { display: inline-flex; gap: 10px; align-items: center; font-size: 18px; cursor: pointer; }
.tc-check input { width: 24px; height: 24px; accent-color: var(--tc-green); }

.tc-table-wrap { overflow-x: auto; border: 1px solid var(--tc-line); border-radius: 12px; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 18px; line-height: 1.7; min-width: 760px; }
.tc-table th { background: #eef4ec; text-align: left; padding: 12px 14px; font-size: 18px; white-space: nowrap; }
.tc-table td { border-top: 1px solid #e3ebe1; padding: 12px 14px; vertical-align: top; }
.tc-table td p { margin: 0; overflow-wrap: anywhere; }
.tc-table td small { display: block; margin-top: 6px; font-size: 18px; color: #5b6a60; overflow-wrap: anywhere; }
.tc-table tr.is-low td { background: #fafbf9; color: #4b574f; }
.tc-table mark { padding: 0 2px; border-radius: 4px; font-weight: 800; }
.tc-table mark.bad { background: var(--tc-bad-bg); color: var(--tc-bad); text-decoration: line-through; text-decoration-thickness: 2px; }
.tc-table mark.bad.caret { text-decoration: none; }
.tc-table mark.fix { background: var(--tc-fix-bg); color: var(--tc-fix); }
.tc-page .kind { display: inline-block; border-radius: 6px; padding: 2px 10px; font-size: 18px; font-weight: 700; margin: 0 6px 6px 0; }
.tc-page .kind-high { background: var(--tc-bad-bg); color: #7a1b14; }
.tc-page .kind-low { background: #eceff0; color: #3d4a50; }
.tc-page .kind-uncertain { background: #fff3cd; color: #6b4e00; }
.tc-empty { padding: 18px; font-size: 18px; margin: 0; }

.tc-page .tc-telops { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tc-page .tc-telops li { display: grid; grid-template-columns: auto auto 1fr; gap: 8px 12px; align-items: center; border: 1px solid #e3ebe1; border-radius: 10px; padding: 12px; }
.tc-page .tc-telops img { grid-column: 1 / -1; width: 100%; max-width: 480px; border-radius: 6px; border: 1px solid #e3ebe1; }
.tc-page .telop-text { font-size: 18px; overflow-wrap: anywhere; }
.tc-page .status { font-size: 18px; font-weight: 700; padding: 2px 10px; border-radius: 6px; white-space: nowrap; }
.tc-page .status-ok { background: var(--tc-fix-bg); color: var(--tc-fix); }
.tc-page .status-diff { background: var(--tc-bad-bg); color: #7a1b14; }
.tc-page .status-none { background: #eceff0; color: #3d4a50; }
.tc-details { margin-top: 22px; }
.tc-details summary { cursor: pointer; font-weight: 800; font-size: 19px; padding: 10px 0; }

/* 結果の表・テロップ一覧の中のタイムコードボタン */
.tc-page .tc-table .tc-button, .tc-page .tc-telops .tc-button { min-height: 44px; padding: 6px 12px; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.tc-section { padding: 52px 0; }
.tc-section-tint { background: var(--tc-tint); }
.tc-section h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.5; margin: 0 0 18px; }
.tc-section p, .tc-section li { font-size: 19px; line-height: 1.9; }
.tc-how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tc-how li { background: #fff; border: 1px solid var(--tc-line); border-radius: 14px; padding: 20px; }
.tc-how b { display: block; font-size: 21px; margin-bottom: 8px; }
.tc-how p { margin: 0; }
.tc-notes { margin: 0; padding-left: 1.3em; }
.tc-notes li + li { margin-top: 6px; }
.tc-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--tc-green); color: #fff; border-radius: 18px; padding: 32px; }
.tc-cta h2 { color: #fff; margin: 0 0 8px; }
.tc-cta p { margin: 0; color: #e6f0e8; }
.tc-cta .tc-button { background: #fff; border-color: #fff; color: var(--tc-green-dark); }
.tc-cta-links { display: grid; gap: 12px; justify-items: stretch; }
.tc-cta-links .tc-button-ghost { background: transparent; color: #fff; border-color: #cfe3d4; }
.tc-cta-links .tc-button-ghost:hover { background: rgba(255,255,255,.08); }
.tc-faq details { border-top: 1px solid var(--tc-line); padding: 6px 0; }
.tc-faq details:last-child { border-bottom: 1px solid var(--tc-line); }
.tc-faq summary { cursor: pointer; font-weight: 800; font-size: 19px; padding: 12px 0; }
.tc-faq p { margin: 0 0 12px; }

.tc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* スマホでは、表を1件ずつのカードにする（横スクロールで「誤」が隠れないように） */
@media (max-width: 700px) {
  .tc-table-wrap { overflow-x: visible; border: 0; }
  .tc-table { min-width: 0; }
  .tc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tc-table, .tc-table tbody, .tc-table tr, .tc-table td { display: block; width: 100%; }
  .tc-table tr { border: 1px solid var(--tc-line); border-radius: 12px; padding: 8px 0; margin-bottom: 12px; background: #fff; }
  .tc-table tr.is-low { background: #fafbf9; }
  .tc-table td { border-top: 0; padding: 6px 14px; }
  .tc-table td::before { content: attr(data-label); display: block; font-weight: 800; font-size: 18px; color: #47564d; margin-bottom: 2px; }
  .tc-table tr.is-low td { background: transparent; }
  .tc-empty { border: 1px solid var(--tc-line); border-radius: 12px; }
}

@media (max-width: 900px) {
  .tc-setup-grid { grid-template-columns: 1fr; }
  .tc-summary { grid-template-columns: 1fr; }
  .tc-how { grid-template-columns: 1fr; }
  .tc-cta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tc-page .container { width: calc(100% - 32px); }
  .tc-hero { padding: 36px 0 28px; }
  .tc-card { padding: 20px 16px; box-shadow: 4px 6px 0 #e0e8da; }
  .tc-card h2 { font-size: 22px; }
  .tc-regions { grid-template-columns: 1fr; }
  .tc-actions .tc-button, .tc-actions .tc-file-label { width: 100%; }
  .tc-cta { padding: 24px 18px; }
}
