/* =====================================================================
   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);
}

/* 計算モードの切替タブ */
.cc-modes {
  display: flex;
  gap: 8px;
  margin-bottom: var(--sg-space-4);
}
.cc-modes label {
  flex: 1 1 0;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.cc-modes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cc-modes label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
  font-weight: 600;
  color: var(--sg-primary, #3b5bdb);
}

/* 区切り線 */
.sg-hr {
  border: none;
  border-top: 1px solid var(--sg-border, #e5e7eb);
  margin: var(--sg-space-4) 0;
}

/* よくある希釈・濃度のプリセット例 */
.cc-presets-title {
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.cc-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sg-space-3, 12px);
}
.cc-preset {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  background: var(--sg-surface, #fff);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cc-preset:hover {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.06);
}
.cc-preset__label {
  font-weight: 600;
  font-size: 0.92rem;
}
.cc-preset__note {
  font-size: 0.78rem;
  color: var(--sg-muted, #777);
}
.cc-presets-note {
  margin-top: var(--sg-space-3, 12px);
}
