/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5
 * Hallmark · genre: modern-minimal（実用型） · macrostructure: Ecosystem Index · theme: custom（tokens.css）
 * P1「棚」— 同人ショップの棚・比較サイトの密度。色と書体は tokens.css の変数だけを使う。 */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--space-md); background: var(--color-paper); }
body {
  margin: 0; overflow-x: clip; background: var(--color-paper); color: var(--color-ink);
  font-family: var(--font-ui); font-size: var(--text-base); line-height: 1.6; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-xs); top: -4rem; z-index: var(--z-modal); background: var(--color-brand); color: var(--color-on-brand); padding: var(--space-xs) var(--space-md); }
.skip-link:focus { top: var(--space-xs); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space-md); }
@media (min-width: 60rem) { .wrap { padding-inline: var(--space-lg); } }

/* 作品画像：4:3 の枠に contain。枠の縦横比は画像と同じなので余白は出ない。画像の上には何も置かない */
.jk { display: block; aspect-ratio: 4 / 3; background: var(--color-panel); border: var(--rule) solid var(--color-rule-soft); }
.jk img { width: 100%; height: 100%; object-fit: contain; }

/* PR 表記 ---------------------------------------------------------------- */
.pr-bar { background: var(--color-band); border-bottom: var(--rule) solid var(--color-rule); }
.pr-bar p { max-width: var(--wrap); margin-inline: auto; padding: var(--space-2xs) var(--space-md); font-size: var(--text-sm); color: var(--color-ink-2); }
.pr-mark { display: inline-block; border: var(--rule) solid var(--color-muted); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.3; padding: 0 var(--space-2xs); border-radius: var(--radius); }

/* ヘッダー ---------------------------------------------------------------- */
.hd { background: var(--color-panel); }
.hd__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-sm); }
.logo { display: inline-flex; align-items: baseline; gap: var(--space-xs); color: var(--color-ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo__site { font-size: var(--text-xl); font-weight: 800; letter-spacing: 0.02em; }
.logo__room { font-size: var(--text-sm); font-weight: 700; color: var(--color-brand); }
.finder { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.finder__input { min-width: 0; height: 2.5rem; padding: 0 var(--space-sm); border: var(--rule) solid var(--color-rule); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--color-panel); font-size: var(--text-md); }
.finder__input::placeholder { color: var(--color-muted); }
.finder__btn { height: 2.5rem; padding: 0 var(--space-md); border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--color-brand); color: var(--color-on-brand); font-weight: 700; white-space: nowrap; cursor: pointer; }
.finder__btn:hover { background: var(--color-brand-deep); }
.hd__note { font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 60rem) {
  .hd__in { grid-template-columns: auto minmax(0, 30rem) auto; align-items: center; gap: var(--space-lg); justify-content: space-between; }
}
.floors { background: var(--color-brand); }
.floors ul { display: flex; gap: var(--space-3xs); padding-top: var(--space-2xs); overflow-x: auto; scrollbar-width: none; }
.floors a { display: block; padding: var(--space-xs) var(--space-md); color: var(--color-on-brand); font-weight: 700; font-size: var(--text-sm); white-space: nowrap; border-radius: var(--radius) var(--radius) 0 0; }
.floors a[aria-current="page"] { background: var(--color-paper); color: var(--color-brand); }
.floors a:hover { text-decoration: none; background: var(--color-brand-deep); }
.floors a[aria-current="page"]:hover { background: var(--color-paper); }

.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding-block: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs li + li::before { content: "›"; margin-right: var(--space-2xs); color: var(--color-muted); }

/* 売り場の骨組み ---------------------------------------------------------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-bottom: var(--space-xl); }
@media (min-width: 60rem) { .shop { grid-template-columns: 13.5rem minmax(0, 1fr); gap: var(--space-lg); align-items: start; } }
.shop__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); min-width: 0; }
.shop__main:focus { outline: none; }

/* 棚（絞り込み） */
.shelf__box { background: var(--color-panel); border: var(--rule) solid var(--color-rule); border-radius: var(--radius); }
.shelf__sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs); padding: var(--space-sm) var(--space-md); font-weight: 700; cursor: pointer; list-style: none; }
.shelf__sum::-webkit-details-marker { display: none; }
.shelf__sum::after { content: "▾"; margin-left: auto; color: var(--color-brand); }
.shelf__box[open] .shelf__sum::after { content: "▴"; }
.shelf__hint { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.fg + .fg { border-top: var(--rule) solid var(--color-rule); }
.fg__h { padding: var(--space-xs) var(--space-sm); background: var(--color-band); font-size: var(--text-sm); font-weight: 700; color: var(--color-ink-2); }
.fg__h small { font-weight: 400; }
.fg__list li + li { border-top: var(--rule) solid var(--color-rule-soft); }
.f { display: flex; width: 100%; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-sm); min-height: 2.5rem; border: 0; background: none; text-align: left; cursor: pointer; font-size: var(--text-base); color: var(--color-brand); }
.f:hover { background: var(--color-brand-tint); }
.f[aria-pressed="true"] { background: var(--color-brand-tint); color: var(--color-ink); font-weight: 700; }
.f[aria-pressed="true"] .f__l::before { content: "✓ "; color: var(--color-brand); }
.f__l { flex: 1; min-width: 0; }
.f__n { font-size: var(--text-sm); color: var(--color-muted); font-weight: 400; }
@media (min-width: 60rem) {
  .shelf { position: sticky; top: var(--space-sm); max-height: calc(100dvh - var(--space-lg)); overflow-y: auto; }
  .shelf__sum { display: none; }
}

/* 見出しの帯 */
.band { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-sm); padding: var(--space-xs) var(--space-sm); background: var(--color-brand-tint); color: var(--color-brand); border-top: 3px solid var(--color-brand); font-size: var(--text-md); font-weight: 800; border-radius: var(--radius) var(--radius) 0 0; }
.band small { font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2); }
.band--sub { background: var(--color-band); color: var(--color-ink); }
.band--sub small { color: var(--color-ink-2); }
.sec { background: var(--color-panel); border: var(--rule) solid var(--color-rule); border-radius: var(--radius); min-width: 0; }

.lead { display: grid; gap: var(--space-2xs); }
.lead__h { font-size: var(--text-xl); font-weight: 800; line-height: 1.3; }
.lead__p { color: var(--color-ink-2); max-width: 62ch; }

/* 売れ筋 */
.board__cols { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .board__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .board__col + .board__col { border-left: var(--rule) solid var(--color-rule); } }
.board__col + .board__col { border-top: var(--rule) solid var(--color-rule); }
@media (min-width: 60rem) { .board__col + .board__col { border-top: 0; } }
.board__h { padding: var(--space-sm) var(--space-sm) 0; font-size: var(--text-md); font-weight: 700; }
.board__note { padding: 0 var(--space-sm) var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); border-bottom: var(--rule) solid var(--color-rule-soft); }
.rk { display: grid; grid-template-columns: 2.25rem 5.5rem minmax(0, 1fr); gap: var(--space-xs) var(--space-sm); align-items: start; padding: var(--space-sm); }
.rk + .rk { border-top: var(--rule) solid var(--color-rule-soft); }
.rk__no { font-size: var(--text-sm); color: var(--color-brand); font-weight: 700; line-height: 1; padding-top: var(--space-2xs); white-space: nowrap; }
.rk__no b { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.02em; }
.rk__by { font-size: var(--text-xs); color: var(--color-muted); }
.rk__title { font-size: var(--text-base); font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rk__sub { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-3xs); }
.rk__facts { display: flex; flex-wrap: wrap; gap: var(--space-3xs) var(--space-sm); margin-top: var(--space-2xs); font-size: var(--text-sm); }
.rk__facts div { display: flex; gap: var(--space-2xs); }
.rk__facts dt { color: var(--color-muted); }
.rk__price { color: var(--color-price); font-weight: 700; }
.rk__price small { margin-left: var(--space-2xs); font-size: var(--text-xs); }
@media (min-width: 60rem) { .rk { grid-template-columns: 2.5rem 6.5rem minmax(0, 1fr); } }

/* 一覧（DLsite のリスト表示の型） */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs) var(--space-md); padding: var(--space-sm); border-bottom: var(--rule) solid var(--color-rule); background: var(--color-panel); }
.toolbar__count { font-size: var(--text-sm); color: var(--color-ink-2); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs); }
.toolbar__count b { font-size: var(--text-lg); color: var(--color-ink); }
.toolbar__of { color: var(--color-muted); }
.toolbar__reset { margin-left: var(--space-xs); border: var(--rule) solid var(--color-rule); background: var(--color-panel); border-radius: var(--radius); padding: var(--space-3xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-brand); cursor: pointer; white-space: nowrap; }
.toolbar__sort { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; }
.toolbar__label { font-size: var(--text-sm); color: var(--color-muted); }
.srts { display: flex; flex-wrap: wrap; border: var(--rule) solid var(--color-rule); border-radius: var(--radius); }
.srts li + li { border-left: var(--rule) solid var(--color-rule); }
.srt { border: 0; background: var(--color-panel); padding: var(--space-2xs) var(--space-sm); min-height: 2.25rem; font-size: var(--text-sm); color: var(--color-brand); cursor: pointer; white-space: nowrap; }
.srt[aria-pressed="true"] { background: var(--color-brand); color: var(--color-on-brand); font-weight: 700; }

.row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-sm); border-bottom: var(--rule) solid var(--color-rule-soft); }
.row[hidden] { display: none; }
.row__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); min-width: 0; align-content: start; }
.row__side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); align-content: start; }
.row__side .row__meta { grid-column: 1 / -1; }
.row__side .buy { grid-column: 1 / 2; }
.row__side .btn--trial { grid-column: 2 / 3; }
.row__side .buy:last-child { grid-column: 1 / -1; }
.row__side .btn--buy { min-width: 0; white-space: normal; overflow-wrap: anywhere; flex-wrap: wrap; }
.row__side .btn--buy .price { min-width: 0; flex-wrap: wrap; }
@media (min-width: 40rem) { .row { grid-template-columns: 9.5rem minmax(0, 1fr); } }
@media (min-width: 60rem) {
  .row { grid-template-columns: 10.5rem minmax(0, 1fr) 13.5rem; gap: var(--space-md); padding: var(--space-md) var(--space-sm); }
  .row__side { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .row__side .buy, .row__side .btn--trial, .row__side .row__meta { grid-column: auto; }
}
.lbs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.lb { display: inline-block; padding: 0 var(--space-2xs); border-radius: var(--radius); font-size: var(--text-xs); font-weight: 700; line-height: 1.6; white-space: nowrap; }
.lb--rank { border: var(--rule) solid var(--color-brand); color: var(--color-brand); }
.lb--new { background: var(--color-new-bg); color: var(--color-new-ink); }
.lb--sale { background: var(--color-price); color: var(--color-on-brand); }
.lb--trial { border: var(--rule) solid var(--color-rule); color: var(--color-ink-2); }
.row__title { font-size: var(--text-md); font-weight: 700; line-height: 1.45; }
.row__by { font-size: var(--text-sm); color: var(--color-ink-2); }
.row__cv::before { content: "／"; margin-inline: var(--space-3xs); color: var(--color-muted); }
.specline { display: flex; flex-wrap: wrap; gap: 0 var(--space-sm); font-size: var(--text-sm); }
.specline span { min-width: 0; overflow-wrap: anywhere; }
.specline .k { font-weight: 400; color: var(--color-muted); margin-right: var(--space-2xs); }
.row__sum { font-size: var(--text-sm); color: var(--color-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.tags li { font-size: var(--text-xs); color: var(--color-ink-2); background: var(--color-band); padding: 0 var(--space-xs); border-radius: var(--radius); }
.row__meta { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); font-size: var(--text-sm); }
.row__meta div { display: flex; gap: var(--space-2xs); white-space: nowrap; }
@media (min-width: 60rem) { .row__meta { display: grid; gap: 0; } }
.row__meta dt { color: var(--color-muted); }
.empty { padding: var(--space-lg) var(--space-sm); color: var(--color-ink-2); }
.more-btn { display: block; width: calc(100% - 2 * var(--space-sm)); margin: var(--space-sm); min-height: 2.75rem; border: var(--rule) solid var(--color-brand); background: var(--color-panel); color: var(--color-brand); font-weight: 700; border-radius: var(--radius); cursor: pointer; }
.more-btn:hover { background: var(--color-brand-tint); }

/* 購入ボタン（価格入り）・体験版 */
.buy { display: grid; gap: var(--space-3xs); min-width: 0; }
.btn { position: relative; display: flex; align-items: center; justify-content: center; gap: var(--space-xs); border-radius: var(--radius); font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.btn:hover { text-decoration: none; }
.btn--buy { background: var(--color-brand); color: var(--color-on-brand); min-height: 2.5rem; padding: var(--space-2xs) var(--space-sm); justify-content: space-between; }
.btn--buy:hover { background: var(--color-brand-deep); }
.btn--buy .price { display: inline-flex; align-items: baseline; gap: var(--space-2xs); }
.btn--buy .price__was { font-size: var(--text-xs); font-weight: 400; opacity: 0.85; }
.btn--buy .price__now { font-size: var(--text-md); }
.buy--sm .btn--buy { font-size: var(--text-sm); }
.buy--sm .btn--buy .price__was { display: none; }
.buy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3xs) var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.buy__sale { color: var(--color-price); font-weight: 700; }
.buy__countdown:empty { display: none; }
.buy__countdown { color: var(--color-price); font-weight: 700; }
.buy.is-ended .buy__sale { text-decoration: line-through; color: var(--color-muted); }
.btn--trial { border: var(--rule) solid var(--color-brand); color: var(--color-brand); background: var(--color-panel); min-height: 2.5rem; padding: var(--space-2xs) var(--space-sm); font-size: var(--text-sm); }
.btn--trial:hover { background: var(--color-brand-tint); }
.btn__sub { font-weight: 400; color: var(--color-ink-2); font-size: var(--text-sm); }
.btn--sm { min-height: 2.5rem; }

/* 割引の表 */
.st { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.st thead { display: none; }
.st tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-sm); padding: var(--space-sm); border-bottom: var(--rule) solid var(--color-rule-soft); }
.st th, .st td { text-align: left; font-weight: 400; padding: 0; }
.st th { grid-column: 1 / -1; font-weight: 700; font-size: var(--text-base); }
.st__by { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); }
.st__pct { color: var(--color-price); font-weight: 700; }
.st__price s { color: var(--color-muted); margin-right: var(--space-xs); font-size: var(--text-xs); }
.st__price { font-weight: 700; }
.st__end { color: var(--color-ink-2); }
.st__buy { grid-column: 1 / -1; }
@media (min-width: 60rem) {
  .st { display: table; }
  .st thead { display: table-header-group; }
  .st tr { display: table-row; }
  .st th, .st td { display: table-cell; padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule) solid var(--color-rule-soft); vertical-align: middle; }
  .st thead th { background: var(--color-band); font-size: var(--text-sm); color: var(--color-ink-2); font-weight: 700; }
  .st td.st__buy { width: 11rem; }
}

/* はじめての方へ */
.guide__list { display: grid; }
.guide__list div { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3xs); padding: var(--space-sm); border-bottom: var(--rule) solid var(--color-rule-soft); }
.guide__list dt { font-weight: 700; }
.guide__list dd { color: var(--color-ink-2); font-size: var(--text-sm); }
@media (min-width: 40rem) { .guide__list div { grid-template-columns: 8rem minmax(0, 1fr); } }
.guide__rooms { padding: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }

/* フッター（Ft4 Dense colophon） */
.ft { background: var(--color-foot); color: var(--color-foot-ink); }
.ft__in { display: grid; gap: var(--space-md); padding-block: var(--space-xl); }
.ft__brand { font-weight: 800; font-size: var(--text-lg); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.footer-nav a { color: var(--color-foot-ink); font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.footer-notes { display: grid; gap: var(--space-xs); max-width: 72ch; }
.footer-notes p { font-size: var(--text-sm); color: var(--color-foot-muted); line-height: 1.7; }
.ft__copy { color: var(--color-foot-muted); }

/* 年齢確認（ストアの年齢確認の型：白い箱＋はい／いいえ） */
.age-gate { width: min(32rem, calc(100% - 2 * var(--space-md))); padding: 0; border: var(--rule) solid var(--color-rule); border-radius: var(--radius); background: var(--color-panel); color: var(--color-ink); }
.age-gate::backdrop { background: var(--color-scrim); }
.gate { display: grid; gap: var(--space-md); padding: var(--space-lg); }
.gate__title { font-size: var(--text-lg); font-weight: 800; padding-bottom: var(--space-xs); border-bottom: 2px solid var(--color-brand); }
.gate__desc { font-size: var(--text-md); line-height: 1.7; }
.gate__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.gate__yes, .gate__no { display: flex; align-items: center; justify-content: center; min-height: 3rem; border-radius: var(--radius); font-weight: 700; white-space: nowrap; }
.gate__yes { border: 0; background: var(--color-brand); color: var(--color-on-brand); cursor: pointer; }
.gate__no { border: var(--rule) solid var(--color-rule); color: var(--color-ink-2); background: var(--color-panel); }
.gate__note { font-size: var(--text-sm); color: var(--color-muted); }
html.is-gated body { overflow: hidden; }

/* ---------------------------------------------------------------- 作品詳細 */
.wdm { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-bottom: var(--space-xl); }
.wdm:focus { outline: none; }
.wdm article { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); min-width: 0; }
.wd { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); padding-top: var(--space-xs); }
@media (min-width: 60rem) { .wd { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: var(--space-xl); } }
.wd__img { display: grid; gap: var(--space-2xs); align-content: start; }
.wd__img figcaption { font-size: var(--text-xs); color: var(--color-muted); }
.wd__info { display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.wd__title { font-size: var(--text-xl); font-weight: 800; line-height: 1.4; }
.wd__credits { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: var(--rule) solid var(--color-rule-soft); font-size: var(--text-sm); }
.wd__credits div { display: contents; }
.wd__credits dt, .wd__credits dd { padding: var(--space-2xs) var(--space-xs); border-bottom: var(--rule) solid var(--color-rule-soft); }
.wd__credits dt { color: var(--color-muted); background: var(--color-paper); }
.pbox { display: grid; gap: var(--space-xs); padding: var(--space-sm); border: 2px solid var(--color-brand); border-radius: var(--radius); background: var(--color-panel); }
.pbox__rows div { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs); font-size: var(--text-sm); }
.pbox__rows dt { width: 5.5em; color: var(--color-muted); }
.pbox__rows s { color: var(--color-muted); }
.pbox__now b { font-size: var(--text-2xl); color: var(--color-price); font-weight: 800; letter-spacing: -0.01em; }
.pbox__pct { margin-left: var(--space-2xs); background: var(--color-price); color: var(--color-on-brand); font-weight: 700; font-size: var(--text-sm); padding: 0 var(--space-2xs); border-radius: var(--radius); }
.buy--lg .btn--buy { min-height: 3.25rem; font-size: var(--text-md); padding-inline: var(--space-md); }
.buy--lg .btn--buy .price__now { font-size: var(--text-lg); }
.btn--lg { min-height: 3rem; font-size: var(--text-md); }
.pbox__note { font-size: var(--text-xs); color: var(--color-muted); }
.wd__lead { padding: var(--space-sm) var(--space-sm) 0; max-width: 70ch; }
.pts { display: grid; counter-reset: pt; padding: var(--space-xs) var(--space-sm); }
.pts li { counter-increment: pt; display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); column-gap: var(--space-xs); padding-block: var(--space-xs); border-bottom: var(--rule) solid var(--color-rule-soft); }
.pts li::before { content: counter(pt); grid-row: 1 / span 3; font-weight: 800; color: var(--color-brand); font-size: var(--text-lg); line-height: 1.2; }
.pt__h { font-weight: 700; }
.pt__x { font-size: var(--text-sm); color: var(--color-ink-2); }
.pt__b { font-size: var(--text-xs); color: var(--color-muted); }
.ft-table { margin: var(--space-xs) var(--space-sm) 0; border-collapse: collapse; font-size: var(--text-sm); }
.ft-table caption { text-align: left; font-weight: 700; padding-bottom: var(--space-2xs); }
.ft-table th, .ft-table td { border: var(--rule) solid var(--color-rule); padding: var(--space-2xs) var(--space-sm); text-align: left; }
.ft-table th { background: var(--color-band); font-weight: 400; color: var(--color-ink-2); }
.ft-table td.is-yes { font-weight: 700; }
.note { padding: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); }
.tt { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tt th, .tt td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule) solid var(--color-rule-soft); text-align: left; vertical-align: top; }
.tt thead th { background: var(--color-band); color: var(--color-ink-2); font-size: var(--text-xs); }
.tt tbody th { white-space: nowrap; color: var(--color-muted); font-weight: 400; width: 5.5rem; }
.tt__label { display: grid; gap: var(--space-2xs); }
.tt__bar { display: block; height: 4px; background: var(--color-rule-soft); }
.tt__bar i { display: block; height: 100%; background: var(--color-brand); }
.tt__min { white-space: nowrap; text-align: right; width: 4.5rem; }
.tt__grp td { background: var(--color-brand-tint); color: var(--color-brand); font-weight: 700; font-size: var(--text-xs); }
.spec { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.spec th, .spec td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule) solid var(--color-rule-soft); text-align: left; vertical-align: top; }
.spec th { width: 7.5rem; background: var(--color-band); color: var(--color-ink-2); font-weight: 400; white-space: nowrap; }
.chip { display: inline-block; margin: 0 var(--space-2xs) var(--space-2xs) 0; padding: 0 var(--space-xs); border: var(--rule) solid var(--color-rule); border-radius: var(--radius); font-size: var(--text-xs); }
.chip--tag { background: var(--color-band); border-color: transparent; color: var(--color-ink-2); }

/* 比較表（価格.com の比較の型）。狭い画面では表の中だけ横に動く */
.cmp-wrap { position: relative; overflow-x: auto; overscroll-behavior-x: contain; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 44rem; width: 100%; font-size: var(--text-sm); }
.cmp th, .cmp td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule) solid var(--color-rule-soft); border-right: var(--rule) solid var(--color-rule-soft); text-align: left; vertical-align: top; background: var(--color-panel); }
.cmp tbody th, .cmp__corner { position: sticky; left: 0; z-index: 1; width: 6rem; background: var(--color-band); color: var(--color-ink-2); font-weight: 400; white-space: nowrap; }
.cmp thead th { width: 23%; font-weight: 400; }
.cmp .is-self { background: var(--color-brand-tint); }
.cmp__img { display: block; width: 8.5rem; max-width: 100%; margin-bottom: var(--space-2xs); }
.cmp__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.4; }
.cmp__why { display: block; margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); }
.cmp__price { color: var(--color-price); font-size: var(--text-md); }
.cmp td small { margin-left: var(--space-2xs); color: var(--color-price); font-size: var(--text-xs); }

/* 追従の購入バー（狭い画面だけ） */
.stick { position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); background: var(--color-panel); border-top: 2px solid var(--color-brand); transform: translateY(110%); transition: transform 200ms var(--ease-out); }
.stick.is-shown { transform: translateY(0); }
.stick__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding: var(--space-xs) var(--space-md) max(var(--space-xs), env(safe-area-inset-bottom)); }
.stick__t { font-size: var(--text-sm); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stick .buy__meta { justify-content: flex-end; font-size: var(--text-sm); }
.buy--mini .btn--buy .price__was { display: none; }
.buy--mini .btn--buy { gap: var(--space-sm); }
body.has-sticky .ft { padding-bottom: 5.5rem; }
@media (min-width: 60rem) { .stick { display: none; } body.has-sticky .ft { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) { .stick, .btn { transition: none; } html { scroll-behavior: auto; } }

/* 押下・無効の状態（gate 28） */
.btn:active, .f:active, .srt:active, .seg__b:active, .toggle:active, .more-btn:active, .gate__yes:active, .finder__btn:active { transform: translateY(1px); }
button:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Approved P3 finder inside the P1 shelf layout. */
.lead { padding: 0.75rem 0; }
.lead h1 { font-size: 1.6rem; }
.situation-links { padding: 0.35rem 0; }
.situation-links a { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.75rem; min-height: 2.5rem; align-items: center; }
.situation-links small { color: var(--color-muted); white-space: nowrap; }
.find__body { padding: 1rem; display: grid; gap: 0.9rem; }
.find fieldset { min-width: 0; border: 0; padding: 0; }
.find legend { font-weight: 700; margin-bottom: 0.35rem; }
.find__situations, .find__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
.find button { width: 100%; min-height: 44px; border: 1px solid var(--color-rule); border-radius: var(--radius); background: var(--color-panel); color: var(--color-brand); text-align: left; padding: 0.35rem 0.55rem; cursor: pointer; line-height: 1.35; }
.find button[aria-pressed="true"] { background: var(--color-brand); color: var(--color-on-brand); }
.find button small { display: block; font-size: 0.7rem; }
.find__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.find__actions button { width: auto; }
.find__actions span { margin-left: auto; }
.listing { padding-block: 1rem 3rem; }
.listing__intro { padding: 0.8rem; }
.rows .row { list-style: none; }
.row__side { align-self: start; }
.jk--unknown { display: flex; justify-content: center; align-items: center; color: var(--color-muted); font-size: 0.75rem; }
.row__img { align-self: start; }
.dj-buy-price { margin-left: 0.4rem; }
.dj-price-fallback { display: none; }
html.no-js .dj-price, html.no-js .buy__sale { display: none; }
html.no-js .dj-price-fallback { display: inline; }
.nojs-age { padding: 0.5rem 1rem; background: var(--color-new-bg); font-weight: 700; }
html.no-js main { display: none !important; }
.buy__meta { font-size: 0.75rem; }
.buy__sale { color: var(--color-price); font-weight: 700; }
.row__sum { display: block; }
.empty[hidden], .row[hidden], .stick[hidden] { display: none; }
.is-detail article { display: grid; gap: 1.4rem; }
.wd { padding-bottom: 0.5rem; }
.wd__img { margin: 0; }
.wd__img .jk { width: 100%; }
.article-copy { padding: 1rem; display: grid; gap: 0.8rem; }
.points { list-style: disc; padding-left: 1.5rem; }
.points li + li { margin-top: 0.4rem; }
.cmp-wrap { margin: 0.7rem; }
.cmp th, .cmp td { min-width: 9rem; }
.stick { padding: 0.5rem 1rem max(0.5rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 0.6rem; }
.stick > p { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.75rem; }
.stick .buy { flex: 1; min-width: 0; }
.stick .buy__meta { display: none; }
.stick .pr-mark { font-size: max(13px, var(--text-sm)); }
.stick .btn--buy { white-space: normal; min-width: 0; font-size: 0.75rem; }
.stick .dj-buy-price { display: none; }
@media (max-width: 59.99rem) { .is-detail .ft { padding-bottom: 5rem; } }
@media (max-width: 374px) { .stick > p { display: none; } .stick .buy { flex: 1; } }
@media (min-width: 60rem) { .stick { display: none; } }
