/* =====================================================================
   style.css — ネジ・ボルトの下穴早見 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* ねじ種別の切替 */
.sg-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* 結果の主表示（下穴径）を大きく見せる */
.sg-result__value {
  line-height: 1.5;
  word-break: break-word;
}

/* 選択サイズの各種数値（呼び径・ピッチ・下穴・バカ穴…） */
.sg-spec {
  display: flex;
  flex-direction: column;
  margin-top: var(--sg-space-3, 12px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.sg-spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sg-space-3, 12px);
  padding: 7px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-spec-row__key {
  flex: 1 1 auto;
  color: var(--sg-muted, #555);
  font-size: 0.95rem;
}
.sg-spec-row__val {
  flex: 0 0 auto;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 早見表（横スクロール保護） */
.sg-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}
.sg-table th,
.sg-table td {
  padding: 6px 10px;
  text-align: right;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
  font-variant-numeric: tabular-nums;
}
.sg-table thead th {
  color: var(--sg-muted, #777);
  font-weight: 600;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--sg-border, #e5e7eb);
}
.sg-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
}
