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

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

.scheme {
  margin-top: var(--sg-space-4, 16px);
}
.scheme__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}
.scheme__title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0;
}
.scheme__copy {
  flex: 0 0 auto;
  border: 1px solid var(--sg-border, rgba(0, 0, 0, 0.16));
  border-radius: var(--sg-radius, 8px);
  background: var(--sg-surface, #fff);
  color: var(--sg-primary, #3b5bdb);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.08s ease, color 0.08s ease;
}
.scheme__copy:hover { background: var(--sg-bg-soft, rgba(59, 91, 219, 0.08)); }
.scheme__copy.is-copied {
  background: var(--sg-primary, #3b5bdb);
  color: #fff;
  border-color: var(--sg-primary, #3b5bdb);
}
.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; }
