/* 本番だけの上書き。モック (design/components.css) は色の枠 .ph で作られているので、本物の <img> を枠に収める */
.hero img, .scene-grid .f img, .card .thumb img, .row .thumb img, .pod .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-grid .f, .card .thumb, .row .thumb, .pod .thumb { position: relative; overflow: hidden; background: #1B1F30; }
.hero.vert img { object-fit: contain; }
.viewer-track > div { flex: none; width: 100%; scroll-snap-align: center; margin: auto 0; }
.viewer-track .inner img { width: 100%; height: auto; display: block; }
.who img.ava { border-radius: 50%; object-fit: cover; }
.buybar img { flex: none; }
.facts s, .spec s, .ptable s { color: var(--ink-3, #8a8a99); font-weight: 500; margin-right: 2px; }

/* =====================================================================
   2026-11-13 探すサイトの型 (ベンチマーク：aigirl.jp・myfanspick.com の並びと部品の種類だけ)
   白の地・紫の軸のまま、縦の絵 (3:4) の棚と格子・絵の上の順位と長さ・値引きと 1 分あたりの値段で
   「いちばん賢く・安く買える」を一目で。色・文章・ロゴは相手から写さない
   ===================================================================== */
:root { --deal: #C2187A; --deal-soft: #FDEBF5; --rk: #5B21C9; }

/* ヘッダー：ロゴの段＋入口のタブの段 (スマホは横にすべらせる) */
.hdr::after { display: none; }
.hdr { border-bottom: 1px solid var(--line); }
.logo small { margin-left: 2px; }
.hdr-pr { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.hdr-nav { display: block; font-size: 14px; }
.hdr-nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav .wrap::-webkit-scrollbar { display: none; }
.hdr-nav a { flex: none; padding: 9px 12px 10px; color: var(--ink-2); font-weight: 700; border-bottom: 2.5px solid transparent; }
.hdr-nav a:hover { text-decoration: none; color: var(--ink); border-bottom-color: var(--line-strong); }
.hdr-nav a.is-deal { color: var(--deal); }
@media (min-width: 1024px) { .hdr-in { height: 56px; } .hdr-nav a { padding: 10px 16px 11px; font-size: 15px; } }

/* トップの頭：h1・1 行・数字の帯 */
.top-hero { padding: 18px 0 2px; }
.top-hero .h1 { font-size: 22px; line-height: 1.4; }
.top-sub { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 6px 9px; text-align: center; }
.stats b { display: block; font-size: 20px; line-height: 1.1; font-weight: 800; color: var(--rk); }
.stats span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
@media (min-width: 1024px) { .top-hero .h1 { font-size: 30px; } .stats { max-width: 640px; } .stats b { font-size: 26px; } }

/* 節の頭 */
.shelf .h2-row { margin-bottom: 10px; }
.shelf .h2 { display: flex; align-items: center; gap: 8px; }
.h2-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--rk); color: #fff; font: 800 11px/1 var(--font-latin); }
.h2-ic.deal { background: var(--deal); font-size: 13px; }
.h2-row a { font-weight: 700; }

/* 今お得な回：薄い色の面に載せて最上部で目立たせる */
.shelf.is-deal { background: var(--deal-soft); border-radius: 18px; padding: 14px 12px 12px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
.shelf.is-deal .h2-row a { color: var(--deal); }

/* カード：縦 3:4 の絵が主役。上に順位 (左上の角)・値引き (右上)・長さ (右下) */
.card .thumb { aspect-ratio: 3 / 4; border-radius: 10px; }
.card .thumb img { object-position: center 30%; }
.card .rk, .row .rk, .pod .rk { position: absolute; left: 0; top: 0; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center;
  background: var(--rk); color: #fff; font: 800 15px/1 var(--font-latin); border-radius: 10px 0 10px 0; -webkit-background-clip: border-box; background-clip: border-box; filter: none; letter-spacing: 0; }
.card .rk.top { background: linear-gradient(135deg, #6E5BFF, #B13CFF 60%, #FF4FB5); }
.card .off, .row .off, .pod .off, .facts .off { position: absolute; right: 6px; top: 6px; background: var(--deal); color: #fff; font: 800 12px/1 var(--font-latin); padding: 4px 6px; border-radius: 6px; }
.card .len, .row .len, .pod .len { position: absolute; right: 6px; bottom: 6px; background: rgba(11,10,18,.72); color: #fff; font: 700 11px/1 var(--font-latin); padding: 4px 5px; border-radius: 5px; }
.card .mark { left: 6px; top: auto; bottom: 6px; background: rgba(255,255,255,.94); color: var(--ink); font-size: 10.5px; max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .rk ~ .mark { bottom: 6px; }
.card .mark.deal { background: var(--deal); color: #fff; }
.card .mark.new { background: var(--new); color: #fff; }
.card .mark.pmk { background: var(--rk); color: #fff; }
.card-t { margin-top: 6px; font-size: 13px; line-height: 1.42; -webkit-line-clamp: 2; font-weight: 700; }
.card-p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 3px; }
.card-p b { font-size: 15px; font-weight: 800; color: var(--ink); }
.card-p s { font-size: 11px; color: var(--ink-3); }
.pm { display: inline-flex; align-items: baseline; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--rk); background: var(--sky-soft); padding: 2px 5px; border-radius: 5px; white-space: nowrap; }
.pm .num { font-size: 11px; }
.card-m { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.card-m .pl { font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 4px; }
.cards { gap: 18px 10px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 14px; } .v-main .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } .card-t { font-size: 14px; } }

/* 横の棚：すべらせる (スマホ 2.4 枚・PC 6 枚) */
.cards.rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
.cards.rail::-webkit-scrollbar { display: none; }
.cards.rail .card { flex: none; width: 40%; scroll-snap-align: start; }
.shelf.is-deal .cards.rail { margin: 0 -12px; padding: 0 12px 2px; }
@media (min-width: 720px) { .cards.rail .card { width: 22%; } }
@media (min-width: 1024px) { .cards.rail .card { width: calc((100% - 50px) / 6); } }

/* ジャンルの入口：絵のタイル */
.gtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gtile { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; color: #fff; background: #1B1F30; }
.gtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.gtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,10,18,.82)); }
.gtile:hover { text-decoration: none; }
.gt-n, .gt-c { position: absolute; left: 8px; z-index: 1; }
.gt-n { bottom: 22px; font-size: 14px; font-weight: 800; }
.gt-c { bottom: 7px; font-size: 11px; opacity: .85; }
@media (min-width: 1024px) { .gtiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }

/* 一覧 (切り口・人・新着・月)：格子 */
.list-grid { margin-top: 14px; }

/* ランキング：タブの「お得の順」・1〜3 位・4 位から */
.tabs a.is-deal { color: var(--deal); }
.tabs a.is-deal[aria-current] { background: var(--deal); color: #fff; }
.pod .thumb { aspect-ratio: 3 / 4; border-radius: 10px; }
.pod .rk { min-width: 36px; height: 36px; font-size: 20px; background: linear-gradient(135deg, #6E5BFF, #B13CFF 60%, #FF4FB5); }
.pod:not(:first-child) .rk { font-size: 18px; left: 0; }
.pod-f .m b { font-size: 16px; font-weight: 800; color: var(--ink); }
.pod-f .m s { font-size: 12px; color: var(--ink-3); }
.pod-f .m .who-n { font-size: 12px; color: var(--ink-3); width: 100%; }
@media (max-width: 1023px) {
  .pod:first-child .pod-wrap { display: grid; grid-template-columns: 44% 1fr; gap: 12px; align-items: start; }
  .pod:first-child a.body { display: contents; }
  .pod:first-child .thumb { grid-row: 1 / 3; }
  .pod:first-child .pod-t { margin-top: 0; -webkit-line-clamp: 4; }
  .pod:first-child .pod-f { flex-direction: column; align-items: stretch; gap: 8px; }
  .pod:first-child .buy-ghost { width: 100%; }
}
.row { grid-template-columns: 84px 1fr; gap: 12px; }
.row .thumb { width: 84px; aspect-ratio: 3 / 4; border-radius: 8px; }
.row .rk { min-width: 24px; height: 24px; font-size: 13px; border-radius: 8px 0 8px 0; }
.row .len { right: 4px; bottom: 4px; font-size: 10px; padding: 3px 4px; }
.row .off { position: static; display: inline-block; font-size: 11px; padding: 2px 5px; }
.row-p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 4px; }
.row-p b { font-size: 15px; font-weight: 800; }
.row-p s { font-size: 11px; color: var(--ink-3); }
.row-m { color: var(--ink-3); }

/* 回のページ：縦の回は予告の枠に 3 枚を並べる (高さは 16:9 のまま。主ボタンの位置を変えない) */
.hero.is-tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #0B0A12; cursor: zoom-in; }
.hero.is-tri .tf { position: relative; overflow: hidden; }
.hero.is-tri .tf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts .pgrp { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.facts .off { position: static; font-size: 12px; padding: 3px 6px; align-self: center; }
.facts .pm { align-self: center; }
.cards.rail { scroll-padding-inline: var(--gutter); }
.shelf.is-deal .cards.rail { scroll-padding-inline: 12px; }
.cards.rail.few .card { width: 47%; }
@media (min-width: 1024px) { .cards.rail.few .card { width: 220px; } }
.facts .pgrp[hidden] { display: none; }
/* 回のページのスマホは入口のタブの段を出さない (主ボタンを最初の画面に収める。IA 3) */
@media (max-width: 1023px) { .hdr.is-compact .hdr-nav { display: none; } }

/* 動く場面 (予告の 6 秒、2026-11-15) */
.clip { margin: 12px 0 0; }
.clip video { display: block; width: 100%; height: auto; max-height: 70vh; background: #0B0A12; border-radius: var(--r-img, 12px); object-fit: contain; }
.clip figcaption { font-size: 12px; color: #6B6A75; margin-top: 4px; }

/* =====================================================================
   2026-11-17 スマホの UI の直し (QA・利用者の声・デザインの 3 チームの指摘)。
   地は白のまま (11/13 ユーザー「背景白にしたい」)、紫を軸に通す。ロゴの雲 (11/13 ユーザー確定) は変えない
   ===================================================================== */
:root { --deal-soft: #F3ECFF; --ph: linear-gradient(160deg, #2B1A47 0%, #4A1F5E 100%); }

/* ヘッダー：下に紫のグラデの線、PR は小さい札、360 幅で潰れない */
.hdr { border-bottom: 0; }
.hdr::after { display: block; height: 3px; background: var(--dawn); }
.hdr-in > * { min-width: 0; }
.logo { flex-shrink: 1; overflow: hidden; }
.hdr-pr { font: 700 10px/1 var(--font); color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 5px; flex: none; }
@media (max-width: 399px) { .logo-img { height: 21px; } }
.foot-ad { margin: 0 0 6px; font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--ink-2); } /* 広告の表記はフッターのこの 1 か所だけ (2026-11-17) */
/* 入口のタブ：スマホは 5 等分・高さ 44px、いるページは紫の下線。「お得」は色でなく小さい点 */
.hdr-nav .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.hdr-nav a { text-align: center; padding: 0 2px; min-height: 44px; line-height: 41px; border-bottom-width: 3px; white-space: nowrap; }
.hdr-nav a[aria-current] { color: var(--ink); border-image: var(--dawn) 1; border-bottom-style: solid; }
.hdr-nav a.is-deal { color: var(--ink-2); }
.hdr-nav a.is-deal::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--deal); margin-left: 3px; vertical-align: 8px; }
@media (min-width: 1024px) { .hdr-nav .wrap { display: flex; gap: 2px; } .hdr-nav a { padding: 0 16px; } }
@media (max-width: 1023px) { .hdr.is-tuck .hdr-nav { display: none; } }

/* トップの頭：見える 1 行と検索の入口 */
.top-hero { padding: 12px 0 0; }
.top-h1 { margin: 0 0 10px; font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--ink-2); }
.search-entry { color: var(--ink-3); font-size: 15px; height: 48px; border-color: #D9C8F7; background: #FBF8FF; }
.search-entry:hover { text-decoration: none; border-color: var(--sky); }
.search-entry svg { color: var(--sky); }
@media (min-width: 1024px) { .top-hero { display: flex; align-items: center; gap: 24px; padding-top: 20px; } .top-h1 { margin: 0; font-size: 18px; } .search-entry { flex: 1; max-width: 520px; } }
main.wrap > .top-hero + .sec[data-revisit] + .sec { margin-top: 20px; }

/* 今お得な回：ピンクの面をやめ、紫の薄い面に。1 本だけの日は横長の 1 行 */
.shelf.is-deal { background: linear-gradient(160deg, #F4ECFF 0%, #FBEFFA 100%); border: 1px solid #E6D6FF; }
.h2-ic.deal { background: linear-gradient(135deg, #6E5BFF, #B13CFF 60%, #FF4FB5); }
.shelf.is-deal .h2-row a { color: var(--sky); }
.deal-one .rrow { border: 0; }
.deal-one .row { grid-template-columns: 84px 1fr; padding: 2px 0 0; }
.deal-one .row-t { font-weight: 700; }
.row-deal { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--deal); border-radius: 5px; padding: 2px 6px; }

/* カード：読み込み前は紫の濃淡、読めたら薄く出す。「プランでも」は絵の上の札、NEW などの印は左上 */
.scene-grid .f, .card .thumb, .row .thumb, .pod .thumb, .gtile, .hero { background: var(--ph); }
img.ld { opacity: 0; }
.card .thumb img, .gtile img, .scene-grid img, .row .thumb img { transition: opacity .25s linear; }
.card .mark, .card .rk ~ .mark { top: 6px; bottom: auto; }
.card .pl-b { position: absolute; left: 6px; bottom: 6px; background: rgba(91, 33, 201, .92); color: #fff; font: 700 10.5px/1 var(--font); padding: 4px 5px; border-radius: 4px; }
.card-p { min-height: 22px; }
.card-m { font-size: 12px; color: var(--ink-2); }

/* 押せる所を 44px に (見た目の大きさは変えず、押せる範囲だけ広げる) */
.crumb a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.h2-row a { display: inline-block; padding: 12px 0 12px 8px; margin: -12px 0; }
.title-clamp .more { padding-top: 10px; padding-bottom: 6px; }
.who .nm { padding: 10px 0; margin: -10px 0; }
.jump { padding: 7px 0; }
.jump a { height: 36px; line-height: 36px; }
.tabs a { height: 40px; line-height: 40px; }
.seg button { height: 40px; }
/* フッターの案内の 2 列。下のパンくず (.crumb) には当てない (2026-11-17：当たって 2 列の格子になり、スマホで折り返して崩れていた) */
.foot nav:not(.crumb) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.foot nav:not(.crumb) a { display: block; padding: 10px 0; }
@media (min-width: 1024px) { .foot nav:not(.crumb) { display: flex; flex-wrap: wrap; gap: 0 20px; } }
.buy-ghost { height: 44px; background: var(--cta) linear-gradient(100deg, #6E5BFF 0%, #8B2CF5 45%, #D23CC8 100%); color: #fff; border: 0; border-radius: var(--r-btn); font-weight: 700; box-shadow: 0 4px 14px rgba(139, 44, 245, .25); }
.buy-ghost:hover { background: var(--cta-press); color: #fff; }
:root[data-theme="dark"] .buy-ghost { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .buy-ghost { color: #fff; } }

/* 回のページ：値段を大きく、動く場面は縦長でも画面の半分ほどに */
.facts .price { font-size: 21px; }
.fv-buy { margin-bottom: 4px; }
.clip.is-vert video { aspect-ratio: 4 / 5; object-fit: cover; max-height: 58vh; }
@media (min-width: 1024px) { .clip.is-vert video { aspect-ratio: auto; object-fit: contain; width: auto; max-height: 70vh; margin: 0 auto; background: none; } }
/* 場面のコマ：縦の回は 3 枚を 1 行に、横の回で 2 枚の場面は 2 列 (1 枚だけ残る空きを作らない) */
.scene-grid.is-vert { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.scene-grid.is-vert.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scene-grid.is-vert .f { aspect-ratio: 3 / 4; }
.scene-grid.is-vert .f img { object-position: center 30%; }
.scene-grid.n2 .f.wide { grid-column: auto; }

/* 英語の欄はたたむ (開くと中身は同じ) */
.en details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 32px; }
.en details > summary::-webkit-details-marker { display: none; }
.en details > summary::after { content: "＋"; margin-left: auto; color: var(--ink-3); }
.en details[open] > summary::after { content: "−"; }
.en a { display: inline-flex; align-items: center; min-height: 44px; }

/* 切り口の行の横すべり：右の端を薄く消して、続きがあると分かるように */
.chips.scroll { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }

/* 年齢確認：開いたときのフォーカスの枠を、キーボードのときだけに */
.ag-yes:focus:not(:focus-visible) { outline: none; }

/* 題名・人の名前で探す窓 */
.sx { position: fixed; inset: 0; z-index: 80; background: rgba(11, 10, 18, .55); }
.sx[hidden] { display: none; }
.sx-on body { overflow: hidden; }
.sx-in { background: var(--bg); padding-top: 10px; padding-bottom: 12px; max-height: 100%; overflow-y: auto; border-bottom: 3px solid transparent; border-image: var(--dawn) 1; }
.sx .search { height: 48px; }
.sx-x { flex: none; height: 40px; padding: 0 10px; border: 0; background: var(--surface-2); color: var(--ink); border-radius: 10px; font: 600 13px var(--font); cursor: pointer; }
.sx-hint, .sx-none { margin: 10px 2px 0; font-size: 13px; color: var(--ink-3); }
.sx-list { list-style: none; margin: 8px 0 0; padding: 0; }
.sx-list li + li { border-top: 1px solid var(--line); }
.sx-list a { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--ink); min-height: 44px; }
.sx-list a:hover { text-decoration: none; background: var(--sky-soft); }
.sx-list img, .sx-ph { width: 45px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; background: var(--ph); }
.sx-t { min-width: 0; font-size: 13px; line-height: 1.4; }
.sx-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; }
.sx-t span { color: var(--ink-3); font-size: 12px; }
.deal-one .row-m .num { font-size: 12px; font-weight: 600; color: var(--ink-3); }
@media (min-width: 1024px) { .deal-one { max-width: 640px; } }
/* 書き手の欄 (docs/AUTHOR.md、2026-11-17)：回のページの終わりの箱と about の欄 */
.au-ic { flex: none; display: block; border-radius: 50%; overflow: hidden; background: var(--surface-2, #f4f2f8); }
.au-ic img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.au-box { display: flex; gap: 14px; align-items: flex-start; margin: 32px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.au-k { margin: 0 0 2px; font-size: 12px; color: var(--ink-3); }
.au-n { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.au-n b { font-size: 16px; color: var(--ink); }
.au-n span { font-size: 12px; color: var(--ink-3); }
.au-t { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.au-l { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; }
.au-about { display: flex; gap: 16px; align-items: flex-start; }
.au-about .au-t { margin-top: 6px; }
