/* トップ・商品一覧・絞り込み・商品カード（案1。2026-11-06 運営者が選択）。

   枠で囲まず、罫線と余白で区切る。角丸は最小限にする（台帳らしく静かに）。
   wotalog.css の古い指定を上書きするため、ここは後から読み込まれる前提で書く。 */

body.lock { overflow: hidden; }
.filters, .f-scroll { overflow-anchor: none; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; padding: 6px 18px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.sec { background: transparent; color: var(--accent-dark); }
.btn.sec:hover { background: var(--accent-soft); color: var(--accent-dark); }
.link { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 400; }
.link:hover { background: none; color: var(--accent); }

/* 記録のボタン。店へのボタン（赤の塗り）より弱く、並べても騒がしくしない。 */
.rec { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-height: 30px; padding: 2px 8px; border: 1px solid var(--rule-dark); border-radius: 3px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.rec:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.rec.own-on { background: var(--own-soft); border-color: var(--own); color: var(--own); font-weight: 700; }
.rec.wish-on { background: var(--accent-soft); border-color: #dca795; color: var(--accent-dark); font-weight: 700; }

/* ---------- 検索欄 ---------- */
.search { display: flex; gap: 0; align-items: stretch; }
.search input[type=search] { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 40px; border-right: 0; border-radius: 3px 0 0 3px; }
.search button[type=submit] { flex: 0 0 auto; margin: 0; min-height: 40px; padding: 6px 26px; border-radius: 0 3px 3px 0; white-space: nowrap; }
.hero-search { width: 100%; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; text-align: left; }
.search-hero input[type=search] { min-height: 52px; padding: 0 18px; border: 1px solid var(--ink); border-right: 0; font-size: 16px; }
.search-hero button[type=submit] { margin: 0; min-height: 52px; padding: 6px 36px; font-size: 15px; }

/* ---------- 見出しの帯 ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { margin: 0; font-size: 17px; }
.sec-head a { font-size: 13px; white-space: nowrap; }
.top-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }

/* ---------- トップ ---------- */
.top-sub { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.top-beta b { font-weight: 700; margin-right: 8px; color: var(--accent-dark); }
.home-product-count { color: var(--muted); }
.my-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: -24px; font-size: 13px; }
.my-strip a { color: var(--ink); text-decoration: none; }
.my-strip a:hover { color: var(--accent); }
.my-strip b { font-size: 15px; font-variant-numeric: tabular-nums; }

.top-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px 40px; }
.top-entry.open { grid-template-columns: minmax(0, 1fr); }
.ip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.top-entry.open .ip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ip-grid a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; line-height: 1.35; }
.ip-grid a:hover { color: var(--accent); }
/* 作品名は語の途中で折らない（「ミリオ／ンライブ!」）。入りきらない語だけ折る。 */
.ip-grid a span:first-child { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.ip-grid .c, .kind a .c, .ev-list .c { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kinds-tg { font-size: 13px; white-space: nowrap; }
.kinds-closed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.kinds-closed[hidden], .kinds[hidden] { display: none; }
.kinds-closed a { display: flex; align-items: center; min-height: 35px; padding: 4px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; line-height: 1.3; }
.kinds-closed a:hover { color: var(--accent); }
.kinds { columns: 5; column-gap: 32px; }
.kind { break-inside: avoid; margin-bottom: 20px; }
.kind > a { display: block; margin-bottom: 4px; font-weight: 700; color: var(--ink); text-decoration: none; }
.kind > a:hover { color: var(--accent); }
.kind ul { list-style: none; margin: 0; padding: 0; }
.kind li a { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: 13px; color: var(--ink); text-decoration: none; }
.kind li a:hover { color: var(--accent); }
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ev-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; padding: 5px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.4; }
.ev-list a:hover { color: var(--accent); }
.home-products { padding: 0; border: 0; background: none; box-shadow: none; }
.home-collaborate { margin: 0; padding: 0; }
.home-collaborate p { margin: 0 0 8px; line-height: 1.6; }

/* ---------- 一覧の骨格 ---------- */
.page-search { margin-bottom: 24px; }
.list-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; align-items: start; }
.list-main { min-width: 0; }
.list-layout.is-loading .list-body { opacity: .55; transition: opacity .1s linear .15s; }

/* 絞り込み。画面に追従し、中だけスクロールする。 */
.filters { position: sticky; top: calc(var(--head-h) + 16px); max-height: calc(100vh - var(--head-h) - 32px); overflow-y: auto; padding-right: 6px; overscroll-behavior: contain; scrollbar-width: thin; }
.f-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.f-head h2 { margin: 0; font-size: 15px; }
.f-head .link { font-size: 12px; }
.f-close, .f-foot { display: none; }
.f-sec { border-bottom: 1px solid var(--rule); }
.f-sec > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; font-weight: 700; font-size: 13px; cursor: pointer; list-style: none; }
.f-sec > summary::-webkit-details-marker { display: none; }
.f-sec > summary::after { content: "＋"; color: var(--muted); font-weight: 400; }
.f-sec[open] > summary::after { content: "−"; }
.f-sec > summary .n { margin-left: auto; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.f-body { padding: 0 0 10px; }
input[type=search].f-box { width: 100%; margin: 0 0 6px; min-height: 32px; padding: 3px 8px; font-size: 13px; }

.fx { display: flex; align-items: flex-start; gap: 7px; min-height: 28px; margin: 0; padding: 4px 2px; cursor: pointer; font-size: 13px; line-height: 1.4; }
.fx[hidden] { display: none; }
.fx:hover .n { color: var(--accent-dark); }
.fx input { flex: 0 0 auto; width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--accent); }
.fx .n { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fx .c { flex: 0 0 3em; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.fx.on .n { color: var(--accent-dark); }
.fx.zero { opacity: .42; cursor: default; }
.fx.zero:hover .n { color: inherit; }
.more { display: block; width: 100%; min-height: 28px; margin-top: 2px; padding: 2px; color: var(--accent-dark); font-size: 13px; text-align: left; text-decoration: none; }
.more[hidden] { display: none; }
.more:hover { text-decoration: underline; }
.tree-row { display: flex; align-items: flex-start; }
.tree-row .fx { flex: 1 1 auto; min-width: 0; }
.tree-tg { flex: 0 0 18px; width: 18px; height: 28px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 9px; font-weight: 400; text-align: left; }
.tree-tg:hover { background: none; color: var(--accent); }
.tree-sp { flex: 0 0 18px; }
.tree-ch { margin-left: 18px; }
.tree-ch[hidden] { display: none; }
.f-price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 5px; font-size: 13px; }
.f-price input { width: 100%; min-height: 32px; padding: 3px 6px; text-align: right; }
.f-empty { margin: 0; padding: 4px 2px; color: var(--muted); font-size: 12px; }
.f-error { color: var(--accent-dark); font-size: 12px; }
.f-error p { margin: 4px 0 0; }
.f-error:empty { display: none; }
.f-submit { width: 100%; margin-top: 12px; }

/* ---------- 一覧の上 ---------- */
.res-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
/* 長い検索語でも横にはみ出さない。入りきらない語は折り返す。 */
.res-title h1 { min-width: 0; max-width: 100%; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.list-main:focus { outline: none; }
.card { scroll-margin-top: calc(var(--head-h) + 16px); }
.search-scope { margin: 0 0 14px; font-size: 13px; }
.res-count { color: var(--muted); font-size: 13px; }
.res-count b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; margin: 8px 0 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.toolbar label { margin: 0; font-size: 13px; color: var(--muted); }
.toolbar select { min-height: 34px; padding: 3px 8px; font-size: 13px; }
.toolbar-link { margin-left: auto; font-size: 13px; }
.stock-tg { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--ink) !important; cursor: pointer; }
.stock-tg input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.open-f { display: none; }
.view-tg { margin-left: auto; display: inline-flex; align-self: center; }
.view-tg a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; text-decoration: none; }
.view-tg a.on { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; align-items: center; }
.chips:empty { display: none; }
.chips .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; max-width: 100%; padding: 2px 8px; border: 1px solid #dca795; border-radius: 3px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; line-height: 1.35; text-align: left; text-decoration: none; }
.chips .chip:hover { border-color: var(--accent-dark); }
.chips .chip span { min-width: 0; overflow-wrap: anywhere; }
.chips .chip i { font-style: normal; font-weight: 700; }
.chips-clear { font-size: 13px; }
.list-status { margin: 0 0 12px; font-size: 13px; }
.lchip { color: var(--ink); font-size: 13px; text-decoration: underline; text-decoration-color: var(--rule-dark); text-underline-offset: 3px; line-height: 1.5; overflow-wrap: anywhere; }
.lchip:hover { color: var(--accent); text-decoration-color: currentColor; }
.lchip .count { color: var(--muted); font-size: 12px; }
.list-body > .master-kinds, .list-body > .matched-characters, .list-body > .master-browse, .list-body > .actions, .list-body > .rate, .list-body > .search-save-actions { margin: 0 0 14px; }
.list-body > .rate { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.master-kinds, .matched-characters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.master-browse .applied { gap: 4px 12px; margin: 6px 0 0; }
.master-children { margin: 0 0 14px; }
.master-children .applied { gap: 4px 12px; margin: 0; }
.master-children .note { margin: 0 0 2px; }
.search-save-actions { font-size: 12px; color: var(--muted); }
.add-hint { margin: 20px 0 0; }

/* ---------- 商品カード。枠を付けず、写真と文字だけで並べる ---------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 18px; }
.grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; overflow: visible; border: 0; border-radius: 0; background: none; }
.card:hover { border-color: transparent; }
.card .thumb { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border: 0; border-radius: 2px; background: #fff; }
.card .own-mark { top: 0; left: 0; padding: 0 7px; border-radius: 2px 0 2px 0; font-size: 12px; line-height: 1.6; }
.card .own-mark.wish { background: #fff; color: var(--accent-dark); border: 1px solid #dca795; }
.card .body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; padding: 8px 0 0; }
.card .ki { min-height: 17px; color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.card .name { padding: 0; color: var(--ink); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.card .pr { display: grid; gap: 0; margin-top: auto; padding-top: 5px; font-variant-numeric: tabular-nums; line-height: 1.45; }
.card .pr div { display: flex; align-items: baseline; gap: 6px; }
.card .pr .k { color: var(--muted); font-size: 12px; }
.card .pr .v { font-size: 16px; font-weight: 700; }
.card .pr .none { color: var(--muted); font-size: 13px; font-weight: 700; }
.card .meta { min-height: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.card .act { display: flex; gap: 4px; margin-top: 7px; }
.card .act .rec:first-child { flex: 1 1 auto; }
/* wotalog.css には狭い画面で写真を左に置く古い指定が残っている。カード表示では縦に戻す。 */
.grid .card { flex-direction: column; min-height: 0; }
.grid .card .thumb { flex: 0 0 auto; width: 100%; border: 0; }
.grid .card .body { min-width: 0; }
.card .pr .k, .card .pr .v, .card .pr .none { white-space: nowrap; }
/* ヘッダーの登録ボタンは文字を上下中央に。 */
.head-signup { display: inline-flex; align-items: center; justify-content: center; }

/* リスト表示（広い画面）。狭い画面は下の .auto-rows とまとめて書く。 */
@media (min-width: 700px) {
  .rows { display: block; overflow: visible; border: 0; border-radius: 0; background: none; }
  .rows .card { flex-direction: row; gap: 14px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .rows .card:first-child { padding-top: 0; border-top: 0; }
  .rows .thumb { flex: 0 0 88px; width: 88px; height: 88px; aspect-ratio: auto; border: 0; }
  .rows .own-mark { display: none; }
  .rows .body { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto; grid-template-areas: "ki pr act" "nm pr act" "me pr act"; align-items: start; column-gap: 20px; row-gap: 2px; padding: 0; }
  .rows .ki { grid-area: ki; min-height: 0; }
  .rows .name { grid-area: nm; flex: none; -webkit-line-clamp: 2; font-size: 14px; }
  .rows .meta { grid-area: me; flex: none; text-align: left; }
  .rows .pr { grid-area: pr; margin: 0; padding: 0; align-self: center; }
  .rows .act { grid-area: act; margin: 0; align-self: center; }
  /* 押された行だけボタンが広がると、その行の価格が左へずれて列がそろわなくなる。
     「✓ 持っている ×12」「✓ ほしい」が入る幅に固定する。 */
  .rows .act .rec:first-child { flex: 0 0 auto; width: 122px; }
  .rows .act .rec:last-child { flex: 0 0 auto; width: 76px; }
}

/* ---------- ページ送り ---------- */
.pager { gap: 4px; margin-top: 36px; }
.pager a, .pager-current { min-width: 38px; min-height: 38px; padding: 0 10px; border-radius: 3px; }
.pager a { border: 1px solid var(--rule); background: none; color: var(--accent-dark); }
.pager a:hover { border-color: var(--accent-dark); }
.empty { padding: 56px 16px; border-width: 1px 0; border-style: solid; border-color: var(--rule); border-radius: 0; background: none; color: var(--muted); text-align: center; }
.empty h2 { margin: 0 0 8px; color: var(--ink); }
.empty p { margin: 0 0 12px; }

@media (max-width: 1240px) {
  .grid, .grid.six { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kinds { columns: 4; }
}

/* 絞り込みは900px未満で「絞り込み」ボタンから全画面で開く（調査した3サイト中3と同じ）。 */
@media (max-width: 899px) {
  .list-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-search { display: none; }
  /* 作品などのページの「この中から探す」はヘッダーの検索と別物なので、スマホでも出す。 */
  .page-search.scoped { display: flex; margin-bottom: 12px; }
  .skip-results { display: none; }
  .filters { position: fixed; inset: 0; z-index: 60; display: none; max-height: none; padding: 0; background: #fff; }
  .filters.open { display: flex; flex-direction: column; overflow: hidden; }
  .f-scroll { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; }
  .f-head { align-items: center; min-height: 52px; padding: 4px 8px; border-bottom: 1px solid var(--rule); }
  .f-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 20px; font-weight: 400; }
  .f-close:hover { background: none; color: var(--accent); }
  .f-head .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 13px; }
  .f-foot { display: block; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: #fff; }
  .f-foot .btn { width: 100%; min-height: 48px; font-size: 15px; }
  .f-sec > summary { min-height: 48px; font-size: 15px; }
  .fx { min-height: 44px; align-items: center; font-size: 14px; }
  .fx input { width: 18px; height: 18px; margin: 0; }
  .tree-tg { flex-basis: 36px; width: 36px; height: 44px; font-size: 11px; text-align: center; }
  .tree-sp { flex-basis: 36px; }
  .tree-ch { margin-left: 36px; }
  .more { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
  input[type=search].f-box { min-height: 44px; font-size: 16px; }
  .f-price input { min-height: 44px; font-size: 16px; }
  .open-f { display: inline-flex; }
  .kinds { columns: 3; }
  .grid, .grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .top-stack { gap: 30px; }
  .sec-head h2 { font-size: 16px; }
  .search-hero input[type=search] { min-height: 48px; font-size: 16px; padding: 0 12px; }
  .search-hero button[type=submit] { min-height: 48px; padding: 6px 20px; }
  .btn { min-height: 44px; }
  .rec { min-height: 44px; font-size: 13px; padding: 2px 10px; }
  .top-sub { align-items: center; margin-top: 0; }
  .top-sub a, .sec-head a, .crumbs a, .recruit > a, .home-collaborate > a, .my-strip a, .lchip { display: inline-flex; align-items: center; min-height: 44px; }
  .my-strip a { gap: 4px; }
  .my-strip { margin-top: -18px; }
  .sec-head { align-items: center; padding-bottom: 4px; margin-bottom: 8px; }
  .top-stack { display: flex; flex-direction: column; }
  .top-entry { display: contents; }
  .t-ip { order: 1; }
  .t-new { order: 2; }
  .t-kind { order: 3; }
  .t-ev { order: 4; }
  .t-rec { order: 5; }
  .ip-grid { column-gap: 18px; }
  .kinds-closed { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .kinds-closed a { min-height: 44px; }
  .ev-list { grid-template-columns: minmax(0, 1fr); }
  .ev-list a { min-height: 44px; }
  .grid, .grid.six { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .grid .rec { padding: 2px 6px; font-size: 12px; }
  .link { display: inline-flex; align-items: center; min-height: 44px; }
  /* 見出しが長いときは見出しだけの行にする。横に並べると細長い見出しが画面の半分を占める。 */
  .res-title { align-items: center; gap: 0 8px; }
  .res-title h1 { font-size: 15px; line-height: 1.35; }
  .res-title .res-count { flex: 0 0 auto; }
  .res-range { display: none; }
  .view-tg { flex: 0 0 auto; }
  .view-tg a { min-height: 44px; padding: 0 8px; }
  /* 指定なしのときはスマホはリスト。読み込み後に並べ替えると揺れるのでCSSで決める。 */
  .view-tg.auto a[data-view="grid"] { border-bottom-color: transparent; color: var(--muted); font-weight: 400; }
  .view-tg.auto a[data-view="list"] { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
  /* 1行目は「絞り込み」と並べ替え、在庫あり・表示は次の行へ。1行だと欄が88pxになり選択肢が切れた。 */
  .toolbar { gap: 8px; padding: 6px 0; margin: 4px 0 10px; }
  .sort-label { display: none; }
  .sort-label.owned-label { display: inline; margin-left: 8px; }
  .toolbar select { min-width: 0; min-height: 44px; padding: 4px 6px; font-size: 13px; }
  .toolbar select#sort { flex: 1 1 60%; width: 0; }
  .open-f { flex: 0 0 auto; padding: 2px 12px; min-height: 44px; }
  .stock-tg { flex: 0 0 auto; min-height: 44px; font-size: 13px; white-space: nowrap; }
  .chips { margin: -4px 0 10px; }
  .chips .chip { min-height: 44px; font-size: 13px; }
  .pager a, .pager-current { min-width: 44px; min-height: 44px; }

  /* リスト表示（狭い画面）。指定なし（auto-rows）も同じ形にする。 */
  .rows, .grid.auto-rows { display: block; overflow: visible; border: 0; border-radius: 0; background: none; }
  .rows .card, .grid.auto-rows .card { flex-direction: row; gap: 10px; min-height: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .rows .card:first-child, .grid.auto-rows .card:first-child { padding-top: 0; border-top: 0; }
  .rows .card .thumb, .grid.auto-rows .card .thumb { flex: 0 0 84px; width: 84px; height: 84px; aspect-ratio: auto; border: 0; }
  .rows .own-mark, .auto-rows .own-mark { display: none; }
  .rows .body, .auto-rows .body { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ki ki" "nm nm" "pr act"; align-items: end; column-gap: 8px; row-gap: 2px; padding: 0; flex: 1 1 auto; }
  .rows .ki, .auto-rows .ki { grid-area: ki; min-height: 0; }
  .rows .name, .auto-rows .name { grid-area: nm; flex: none; -webkit-line-clamp: 2; font-size: 13px; }
  .rows .meta, .auto-rows .meta { display: none; }
  .rows .pr, .auto-rows .pr { grid-area: pr; margin: 0; padding: 0; align-self: end; }
  .rows .pr .v, .auto-rows .pr .v { font-size: 15px; }
  .rows .pr .k, .auto-rows .pr .k { font-size: 12px; }
  .rows .act, .auto-rows .act { grid-area: act; align-self: end; margin: 2px 0 0; }
  .rows .rec, .auto-rows .rec { padding: 2px 8px; font-size: 12px; }
  /* トップの新着はスマホで8件まで。下の入口が遠くならないように。 */
  .home-products .auto-rows .card:nth-child(n+9) { display: none; }
}
