@charset "UTF-8";

.item-search { max-width: var(--container-narrow); margin-top: 32px; padding: 24px; background: var(--sky); border: var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.item-search__label { display: flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: var(--ink); }
.item-search__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; }
.item-search__input { flex: 1 1 280px; min-width: 0; width: 100%; max-width: 100%; min-height: 56px; padding: 8px 16px; background: var(--paper); border: var(--line); border-radius: var(--radius-pill); font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.item-search__input::placeholder { color: var(--ink-soft); }
.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(min(100%, 320px), 1fr)); gap: 24px; margin-top: 32px; }
.item-shelves__cat { padding: 24px; border: var(--line); border-radius: var(--radius-lg); background: var(--kaki-tint); box-shadow: var(--shadow-card); }
.item-shelves__cathead { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; }
.item-shelves__genres { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 0; list-style: none; }
.item-chip { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px; background: var(--paper); border: var(--line); border-radius: var(--radius-pill); font-size: 0.875rem; color: var(--ink); text-decoration: none; }
.item-chip:hover { background: var(--sun); color: var(--ink); }
.item-chip__count { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: var(--ink); }
.item-chip.is-soon { color: var(--ink-soft); cursor: default; background: var(--paper-2); border-color: var(--hair-strong); }
.item-results { margin-top: 48px; }
.item-results__head { font-family: var(--font-ui); font-size: 1.375rem; }
.item-results__genre, .item-group__state { font-size: 0.8125rem; color: var(--ink-soft); }
.item-empty { max-width: var(--container-narrow); margin-top: 40px; padding: 24px; background: var(--kaki-tint); border: var(--line); border-radius: var(--radius-lg); font-size: 0.9375rem; line-height: 1.8; }
.is-filtered-out { display: none; }
/* 検索結果はモバイルではカードに畳み、記事の比較表以外に横スクロールを作らない。 */
@media (max-width: 767px) {
  .item-search, .item-shelves__cat { padding: 16px; border-radius: var(--radius-md); }
  .item-search__label { font-size: 0.9375rem; }
  .item-results .table-scroll { overflow: visible; border: 0; box-shadow: none; }
  .item-results .soft-table { display: block; min-width: 0; }
  .item-results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .item-results tbody { display: grid; gap: 16px; }
  .item-results tr:not(.is-filtered-out) { display: grid; padding: 16px; border: var(--line); border-radius: var(--radius-md); background: var(--paper); }
  .item-results td { display: block; padding: 4px 0; border: 0; }
  .item-results td:first-child { font-weight: 700; }
  .item-results .item-group__state a { display: flex; min-height: 44px; font-size: 1rem; }
}
