/* =====================================================================
   style.css — カラーコントラスト比チェッカー ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる。
   ===================================================================== */

/* コントラスト比の値は等幅数字で揃える */
.sg-result__value {
  font-variant-numeric: tabular-nums;
}

/* 色入力（スウォッチ + HEX） */
.cc-color {
  display: flex;
  align-items: center;
  gap: var(--sg-space-2);
}

/* color picker をスウォッチ風に */
.cc-swatch {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-sm);
  background: none;
  cursor: pointer;
}
.cc-swatch::-webkit-color-swatch-wrapper {
  padding: 2px;
}
.cc-swatch::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}
.cc-swatch::-moz-color-swatch {
  border: none;
  border-radius: 4px;
}

.cc-hex {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sg-font-mono);
  text-transform: uppercase;
}
.cc-hex--invalid {
  border-color: var(--sg-danger);
}

/* 配色プレビュー */
.cc-preview {
  margin-top: var(--sg-space-4);
  padding: var(--sg-space-5);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius-lg);
  text-align: center;
  transition: color 0.1s, background 0.1s;
}
.cc-preview__large {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.cc-preview__small {
  margin: var(--sg-space-2) 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 合否マーク */
.cc-pass {
  color: var(--sg-success);
  font-weight: 700;
}
.cc-fail {
  color: var(--sg-danger);
  font-weight: 700;
}
