/* =====================================================================
   style.css — HTTPステータスコード早見 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる。
   ===================================================================== */

/* コード番号はタブ幅数字で桁を揃える */
.hs-code {
  font-variant-numeric: tabular-nums;
}

/* 補助ラベルを入力直下に詰める */
.sg-field .sg-help {
  margin-top: var(--sg-space-1);
}

/* カテゴリ絞り込みボタン群 */
.hs-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sg-space-4);
}
.hs-cats label {
  padding: 8px 12px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.hs-cats input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hs-cats label:has(input:checked) {
  border-color: var(--sg-primary, #3b5bdb);
  background: rgba(59, 91, 219, 0.08);
  font-weight: 600;
  color: var(--sg-primary, #3b5bdb);
}

/* カテゴリ見出し */
.hs-group-head {
  font-size: 0.95rem;
  font-weight: 700;
  margin: var(--sg-space-4) 0 var(--sg-space-2);
  padding-left: 10px;
  line-height: 1.4;
}
.hs-group-head:first-child {
  margin-top: 0;
}

/* 各コードのカード */
.hs-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--sg-border, #e5e7eb);
  border-radius: var(--sg-radius, 8px);
  background: var(--sg-surface, #fff);
}
.hs-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hs-code {
  display: inline-block;
  min-width: 3em;
  text-align: center;
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.hs-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.hs-desc {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sg-text, #333);
}
