/* 表の部品：.sheet（2列の項目表）と .svc-table（帯付きの比較表） */
.sheet { border: 1px solid var(--line-strong); background: #fff; }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px; background: var(--accent-3); color: #fff;
}
.sheet__head-title { font-size: var(--text-table-band); font-weight: 700; letter-spacing: 0.1em; }
.sheet__head-note { font-size: var(--text-note); color: rgba(255, 255, 255, 0.65); }
.sheet table { width: 100%; border-collapse: collapse; font-size: var(--text-table-body); }
.sheet th, .sheet td { padding: 12px 22px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.sheet th { width: 30%; font-weight: 700; color: var(--ink); background: var(--bg-soft); border-right: 1px solid var(--line); font-size: var(--text-table-head); letter-spacing: 0.02em; }
.sheet td { color: var(--ink-2); line-height: 1.75; }
.sheet td strong { color: var(--ink); font-weight: 600; }
.sheet td .sub-num { color: var(--sub); font-weight: 700; }
.sheet__badge {
  display: inline-block; font-size: var(--text-note); font-weight: 600; color: var(--ink-3);
  border: 1px solid var(--line-strong);
  padding: 0 7px; border-radius: 2px; margin-left: 8px; vertical-align: 1px;
}
.sheet-wrap { overflow-x: auto; }
@media (max-width: 720px) { .sheet th { width: 36%; } }
@media (max-width: 640px) {
  .sheet table, .sheet tbody, .sheet tr, .sheet th, .sheet td { display: block; width: 100%; }
  .sheet th { border-right: none; background: none; padding-bottom: 2px; font-size: var(--text-table-head-stacked); color: var(--accent-3); }
  .sheet td { border-top: none; padding-top: 2px; }
}
.svc-table { width: 100%; border-collapse: collapse; font-size: var(--text-table-body); }
@media (min-width: 641px) { .svc-table--contract { table-layout: fixed; } .svc-table--contract thead th:nth-child(1) { width: 17%; } .svc-table--contract thead th:nth-child(2) { width: 30%; } .svc-table--contract thead th:nth-child(3) { width: 33%; } .svc-table--contract thead th:nth-child(4) { width: 20%; } }
.svc-table th, .svc-table td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; text-align: left; }
.svc-table thead th {
  background: var(--accent-3); color: #fff; font-weight: 700; font-size: var(--text-table-band);
  letter-spacing: 0.02em; border-top: none; border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.svc-table thead th:last-child { border-right: none; }
.svc-table tbody th[scope="row"] {
  width: 24%; background: var(--bg-soft); font-weight: 700; color: var(--ink);
  border-right: 1px solid var(--line); font-size: var(--text-table-head); letter-spacing: 0.02em;
}
.svc-table td { color: var(--ink-2); line-height: 1.75; }
.svc-table td strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .svc-table thead { display: none; }
  .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: 100%; }
  .svc-table tbody tr { border-top: 2px solid var(--accent-2); padding: 8px 0; }
  .svc-table tbody tr:first-child { border-top: none; }
  .svc-table tbody th[scope="row"] { width: 100%; background: none; border-right: none; border-top: none; padding: 10px 4px 2px; font-size: var(--text-table-head-stacked); color: var(--accent-3); font-weight: 700; }
  .svc-table td { border-top: none; padding: 4px 4px 10px; }
  .svc-table td[data-label]::before {
    content: attr(data-label); display: block; font-size: var(--text-note); font-weight: 700;
    color: var(--accent-2); margin-bottom: 2px; letter-spacing: 0.03em;
  }
  .svc-table td:empty { display: none; }
}
/* スマホでは、縦積みにした表の1行ずつを、間をあけた別の枠にする（線が重ならないように） */
@media (max-width: 640px) {
  .sheet:has(> .sheet-wrap > .svc-table) { border: none; background: none; }
  .sheet .svc-table tbody tr, .sheet .svc-table tbody tr:first-child { border: 1px solid var(--line-strong); border-top: 3px solid var(--accent-2); background: #fff; padding: 8px 12px; }
  .sheet .svc-table tbody tr + tr { margin-top: 12px; }
}
