/* =====================================================================
   style.css — OKLCH/LABカラー変換 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* 桁を揃えて読みやすく */
.sg-result__value,
.sg-result-row__value {
  font-variant-numeric: tabular-nums;
}

/* HEX入力 + カラーピッカーの横並び。ピッカーは固定幅 */
.sg-row--hex {
  align-items: center;
}
.sg-row--hex > .sg-input {
  flex: 1;
}

/* ネイティブ color input を正方形タイルに整形 */
.sg-color {
  flex: 0 0 auto;
  width: 52px;
  height: 44px;
  padding: 2px;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  cursor: pointer;
}
.sg-color::-webkit-color-swatch-wrapper { padding: 0; }
.sg-color::-webkit-color-swatch { border: none; border-radius: 6px; }
.sg-color::-moz-color-swatch { border: none; border-radius: 6px; }

/* 補助ラベル（R/G/B）を入力直下に詰める */
.sg-card .sg-row .sg-help {
  margin-top: var(--sg-space-1);
  text-align: center;
}

/* OKLCH スライダー */
.sg-slider {
  margin-top: var(--sg-space-3, 12px);
}
.sg-slider__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.sg-slider__name {
  font-weight: 600;
}
.sg-slider__val {
  color: var(--sg-muted, #777);
  font-variant-numeric: tabular-nums;
}
.sg-slider input[type="range"] {
  width: 100%;
}

/* 色プレビューの大判スウォッチ */
.sg-swatch {
  width: 100%;
  height: 84px;
  margin-bottom: var(--sg-space-4);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow-sm);
}

/* 内訳行のミニコピー（値の右に小さく） */
.sg-result-row__value {
  display: inline-flex;
  align-items: center;
  gap: var(--sg-space-2);
}
.sg-copy--mini {
  margin-top: 0;
  padding: 2px 10px;
  font-size: 0.75rem;
}

/* 利点の箇条書き */
.sg-bullets {
  margin: var(--sg-space-2, 8px) 0 0;
  padding-left: 1.25em;
  line-height: 1.8;
}
.sg-bullets li {
  margin-bottom: var(--sg-space-2, 8px);
}
