@charset "UTF-8";

/* =========================================================
   トプ100 ｜ 商品から選ぶ（/items）
   ---------------------------------------------------------
   並びは「検索欄 → 大ジャンル → 下層ジャンルのチップ → 商品表」。
   表の見た目は components.css の .soft-table を共用し、
   ここはこのページだけの部品（検索欄・棚のナビ・束の見出し）を持つ。
   ========================================================= */

/* ---------- 検索欄 ---------- */

.item-search {
  margin-top: 24px;
  padding: 16px;
  background: var(--paper-3);
  border-radius: var(--radius-lg);
}

.item-search__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.item-search__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 8px;
}

.item-search__input {
  flex: 1 1 280px;
  min-height: 44px;
  padding: 4px 16px;
  background: var(--paper);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.item-search__count {
  font-family: var(--num);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ---------- 棚のナビ（大ジャンル → 下層ジャンル） ---------- */

.item-shelves {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.item-shelves__cat {
  padding: 16px;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
}

.item-shelves__cathead {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-deep);
  text-decoration: none;
}

.item-shelves__cathead:hover {
  color: var(--kaki);
}

.item-shelves__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.item-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 16px;
  background: var(--paper);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.item-chip:hover {
  border-color: var(--kaki);
  color: var(--kaki);
}

.item-chip__count {
  font-family: var(--num);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.item-chip.is-soon {
  color: var(--ink-soft);
  cursor: default;
}

.item-chip.is-soon:hover {
  border-color: var(--hair-strong);
  color: var(--ink-soft);
}

/* ---------- 検索結果（打ったときだけ出る） ---------- */

.item-results {
  margin-top: 48px;
}

.item-results__head {
  font-size: 1.125rem;
}

.item-results__genre,
.item-group__state {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- 検索で0件のとき ---------- */

.item-empty {
  margin-top: 48px;
  padding: 24px;
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* 検索中に隠す行・束（JSが付ける） */
.is-filtered-out {
  display: none;
}
