/* =====================================================================
   style.css — カラーパレット生成 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる。
   ===================================================================== */

.color-picker {
  height: 48px;
  padding: 4px;
  cursor: pointer;
}

.scheme {
  margin-top: var(--sg-space-4, 16px);
}
.scheme__title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.scheme__desc {
  color: var(--sg-muted, #666);
  font-size: 0.88rem;
  margin: 0 0 12px;
}

.scheme__swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.swatch {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--sg-radius, 10px);
  min-height: 84px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.08s ease;
}
.swatch:hover { transform: translateY(-2px); }
.swatch:active { transform: translateY(0); }

.swatch__hex {
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.swatch__rgb {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

/* 背景の明度に応じた文字色 */
.swatch--light-text { color: #fff; }
.swatch--light-text .swatch__rgb { color: rgba(255, 255, 255, 0.9); }
.swatch--dark-text { color: #1a1a1a; }
.swatch--dark-text .swatch__rgb { color: rgba(0, 0, 0, 0.7); }

.swatch.is-copied { outline: 2px solid var(--sg-primary, #3b5bdb); outline-offset: 2px; }
