/* =====================================================================
   style.css — テレビの適正視聴距離 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 結果値・内訳はタブ幅数字で桁を揃える */
.sg-result__value,
.sg-result-row__value {
  font-variant-numeric: tabular-nums;
}

/* 補助ラベルを入力直下に詰める */
.sg-field .sg-help {
  margin-top: var(--sg-space-1);
}

/* インチのプリセットボタン（クイック選択） */
.tvd-presets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sg-space-2, 8px);
  margin-top: var(--sg-space-2, 8px);
}
.tvd-preset {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid var(--sg-border, #d5d5dd);
  background: var(--sg-surface, #fff);
  color: var(--sg-fg, inherit);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.tvd-preset:hover {
  border-color: var(--sg-primary, #3b5bdb);
}
.tvd-preset.is-active {
  background: var(--sg-primary, #3b5bdb);
  border-color: var(--sg-primary, #3b5bdb);
  color: var(--sg-primary-fg, #fff);
}

/* 解像度別の推奨距離（両方併記）ブロックの見出し */
.tvd-both__caption {
  margin: 0 0 var(--sg-space-2, 8px);
  font-size: 0.85rem;
  color: var(--sg-muted, #777);
}

/* サイズ別 視聴距離 早見表 */
.tvd-guide {
  margin-top: var(--sg-space-4, 16px);
}
.tvd-guide__title {
  margin: 0 0 var(--sg-space-2, 8px);
  font-size: 1.05rem;
}
.tvd-guide__lead {
  margin: 0 0 var(--sg-space-3, 12px);
}
.tvd-table-wrap {
  overflow-x: auto;
}
.tvd-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.tvd-table th,
.tvd-table td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--sg-border, #e3e3ea);
  white-space: nowrap;
}
.tvd-table th:first-child,
.tvd-table td:first-child {
  text-align: left;
}
.tvd-table thead th {
  color: var(--sg-muted, #777);
  font-weight: 600;
  font-size: 0.85rem;
}
.tvd-table tbody tr:last-child td {
  border-bottom: 0;
}
