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

/* HEX結果はタブ幅数字で桁を揃える */
.sg-result__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

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

/* 色プレビューの大判スウォッチ */
.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);
  font-variant-numeric: tabular-nums;
}
.sg-copy--mini {
  margin-top: 0;
  padding: 2px 10px;
  font-size: 0.75rem;
}
