/*
Theme Name: pokeca
Description: ポケカあるぞう（pokeca.jp）専用テーマ。設計は ~/pokeca-app/docs/design.md
Version: 0.2
Text Domain: pokeca
*/

/* 色：淡い緑＋白。押すところ（コンバージョン）だけ淡いオレンジ。**面を淡くして、文字のほうを濃くする**。
   値上がり＝赤▲、値下がり＝青▼（日本の株価と同じ。ここは変えない）。くわしくは docs/design.md 13章
   2026-09-27 大森さんが「案6 いちばん淡い」を選んだ（それまでは濃い緑＋濃いオレンジ）。
   **淡いオレンジ・淡い緑の上に白文字は必ず読めなくなる。** どの面も文字は濃い色にすること。
   見くらべ：/wp-content/themes/pokeca/colors.html（前の色は ?c=1、途中の案は ?c=4 / ?c=5） */
:root {
  --display: "M PLUS Rounded 1c", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --bg: #f9fbf9; --surface: #fff; --ink: #223029; --sub: #5c6e64; --line: #e6efe9;
  /* 淡い緑の面。バッジ・チップ・大きなボタンの地に使う（**濃い緑の文字**が乗る。6.9:1） */
  --head: #cfe6d9; --head-ink: #16533a; --head-sub: #2c6a4d;
  --green-deep: #bcdcca; --green-soft: #eff7f2;
  /* 緑を「文字の色」に使うとき（明るい地では濃い緑、暗い地では明るい緑） */
  --green-ink: #1d6144;
  /* 線・枠に使う緑。**面が淡いので、枠は面より濃くしないと消える**（3:1以上。2026-09-27） */
  --edge: #3f8a67;
  /* ヘッダー・フッターの地（うすい緑のグラデーション） */
  --band: linear-gradient(180deg, #ffffff 0%, #f1f8f4 100%);
  --band-line: #e4eee8;
  /* コンバージョン＝淡いオレンジ。**文字は白ではなく濃い茶**（6.8:1。白だと3.4で読めない） */
  --accent: #ffdfbe; --accent-ink: #7a3a0a; --accent-soft: #fff3e6;
  --up: #c81039; --up-bg: #ffe4ea; --down: #1d4ed8; --down-bg: #e3ecff; --buy: #0b7055;
  /* 「持ってる」の緑（欲しい＝オレンジ --accent と対になる色） */
  --ok: #a9dcc2; --ok-bg: #e8f4ed; --ok-ink: #185a3e;
  --ok-on: #185a3e;   /* 「持ってる」を押したあとの、緑の面の上の文字（明→濃い緑／暗→黒に近い緑） */
  --accent-ink2: #8a3c06;   /* うすいオレンジの地の上に乗せる文字（7.0:1） */
  --on-head-hi: #8a3c06;    /* 緑の面の上で、金額など数字を目立たせる色（5.9:1） */
  --ng-ink: #b3123a;
  /* みんなの報告だけ黄色系（2026-09-27 大森さん）。緑の中で1か所だけ色を変えて、
     「押してほしいところ・人が書いたところ」を見分けられるようにする */
  --rep: #ffe8a3; --rep-bg: #fff9e8; --rep-ink: #6b4a00; --rep-edge: #a87c00;
  --shadow: rgba(40,60,50,.14);
  --r: 12px;
  /* 追っかけバナー（アンカー広告）の高さ。広告が出ている間だけ app.js が実際の高さを入れる。
     画面の下に固定しているもの（お知らせ・「閉じる」）とフッターが隠れないようにするため。
     **Google は上に出すこともある**ので、上下の両方を測る（上に出たら上の帯を下げる） */
  --ad-bottom: 0px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1a14; --surface: #14271e; --ink: #e6f0ea; --sub: #98b0a4; --line: #22402f;
    /* 暗いほうは面を濃くして文字を明るくする（ライトの逆）。彩度はライトと同じくらい落とす */
    --head: #2c5f47; --head-ink: #e8f4ee; --head-sub: #b9d6c7;
    --green-deep: #24503c; --green-soft: #1a3226; --green-ink: #6fd0a3;
    --edge: #3f7a5f;
    --band: linear-gradient(180deg, #102019 0%, #16301f 100%); --band-line: #22402f;
    /* 暗い地の淡いアプリコット。ライトと同じで、上に乗せる文字は濃い茶（8.2:1） */
    --accent: #e8a46a; --accent-ink: #2a1503; --accent-soft: #35281a; --accent-ink2: #f0b98a;
    --up: #ff5d7d; --up-bg: #3a1621; --down: #6d9dff; --down-bg: #15244a; --buy: #45d1a6;
    --ok: #45d1a6; --ok-bg: #12322a; --ok-ink: #7fe0ad; --ok-on: #0d2a1e; --ng-ink: #ff9db4;
    --on-head-hi: #ffd9a8;
    --rep: #5a4614; --rep-bg: #2e2612; --rep-ink: #ffe5a8; --rep-edge: #a8801f;
    --shadow: rgba(0,0,0,.4);
  }
}
/* 追っかけバナーに隠れないように、ページの上下に余白を足す */
body.has-ad { padding-bottom: var(--ad-bottom); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.in { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.price, .big-price, .pill, .no, .rank, .num { font-variant-numeric: tabular-nums; }
.sub, .note { font-size: 12px; color: var(--sub); }
.note { margin: 6px 0; }

/* ヘッダー */
.hd { background: var(--band); color: var(--ink); position: sticky; top: 0; z-index: 20; }
/* ログイン中は WordPress の管理バー（上に固定・PC 32px／スマホ 46px）の下にヘッダーを置く。
   top:0 のままだと管理バーの裏に潜って、ロゴが隠れる */
.admin-bar .hd { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hd { top: 0; } }   /* 600px 以下は管理バーが固定されない */
.hd .in { height: 54px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: .03em; white-space: nowrap; }
@media (max-width: 760px) {
  .hd .in { gap: 10px; }
}

/* 検索窓 */
.search { position: relative; }
.search .box { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--sub); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.search.big { margin: 14px 0 4px; }
/* 上の帯に置く小さい検索窓（トップ以外の全ページ。2026-09-26） */
.hd2 .search { margin: 6px 0 0; }
.hd2 .search .box { height: 34px; padding: 0 12px; }
.hd2 .search input { font-size: 16px; }   /* iPhone が勝手に拡大しないように16px */
.is-slim .hd2 .search { display: none; }  /* 下にスクロールしたら帯を細くする（site-sub・fresh と同じ） */
.search.big .box { height: 48px; padding: 0 18px; border-color: var(--line); box-shadow: 0 1px 2px rgba(26,63,45,.04); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); scroll-margin-top: 70px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 30px rgba(26,63,45,.18); max-height: 60vh; overflow-y: auto; z-index: 30; display: none; }
.suggest.on { display: block; }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a.cur { background: var(--bg); }
.suggest .k { font-size: 11px; font-weight: 800; color: var(--sub); margin-right: 6px; }
.suggest .v { color: var(--sub); white-space: nowrap; font-weight: 700; }

/* 見出し・共通 */
main { padding-bottom: 12px; }
.crumbs { font-size: 12px; color: var(--sub); margin: 12px 0 2px; overflow-wrap: anywhere; }
.crumbs a:hover { color: var(--ink); }
h1 { font-size: 21px; line-height: 1.4; margin: 6px 0 12px; font-weight: 900; }
.h1sub { font-size: 13px; color: var(--sub); font-weight: 700; white-space: nowrap; }
.sec-h { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 24px 0 10px; }
.sec-h h2 { position: relative; font-size: 17px; margin: 0; font-weight: 900; padding-left: 12px; line-height: 1.45; }
.sec-h h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--accent); }
/* 見出しのまとまり（パック名など）の途中では改行しない */
.tt { display: inline-block; }
/* 補足（直近24時間など）は丸いタグ、「すべて見る」は丸いボタン */
.sec-h .sub { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 11.5px; font-weight: 800; color: var(--sub); white-space: nowrap; }
.sec-h .sub.is-right { margin-left: auto; }
.sec-h .more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 5px 12px; border-radius: 999px; background: var(--head); color: var(--head-ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.sec-h .more::after { content: "›"; margin-left: 2px; color: var(--head-sub); }
.sec-h .more:hover { opacity: .88; }
.lead { color: var(--sub); font-size: 13px; margin: 0 0 12px; }
.updated { margin: 2px 0 0; font-size: 12px; color: var(--sub); }

/* 値動き・レアリティ */
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 6px; line-height: 1.6; white-space: nowrap; }
.pill.up { color: var(--up); background: var(--up-bg); }
.pill.down { color: var(--down); background: var(--down-bg); }
.pill.flat { color: var(--sub); background: var(--bg); }
.rb { display: inline-block; font-size: 11px; font-weight: 900; padding: 0 6px; border-radius: 4px; border: 1px solid var(--line); color: var(--sub); vertical-align: 1px; letter-spacing: .02em; }
.rb.gold { background: linear-gradient(135deg, #ffe08a, #d9a11a); color: #3d2a00; border: 0; }
.rb.rainbow { background: linear-gradient(90deg, #ff9aa8, #ffd59a, #9ee7ff, #b9a6ff); color: #1f1f2e; border: 0; }
.rb.silver { background: linear-gradient(135deg, #f1f4f8, #aeb8c6); color: #1f2937; border: 0; }
.rb.violet { background: #ece4ff; color: #5b21b6; border: 0; }

/* 横スクロールのカード */
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hcard { display: flex; flex-direction: column; flex: 0 0 144px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 7px; }
.hcard .thumb { position: relative; }
.hcard img, .gcard img, .rrow img, .top3 img { border-radius: 4.5%; }
.rank { position: absolute; left: -3px; top: -3px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 12px; display: grid; place-items: center; }
.hcard .nm, .gcard .nm { font-size: 12.5px; font-weight: 800; line-height: 1.35; margin: 6px 0 2px; height: 2.7em; overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
.hcard .price, .gcard .price { font-size: 15px; font-weight: 900; }

/* ランキングのリスト */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
/* 絵でカードを選ぶ人がいるので、一覧の絵は小さくしすぎない（44px だと何が描いてあるか分からない。
   2026-09-25 ユーザーテスト。docs/design.md 30章） */
.rrow { display: grid; grid-template-columns: 20px 60px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; border-top: 1px solid var(--line); }
.rrow:first-child { border-top: 0; }
.rrow:hover { background: var(--bg); }
.rrow .no { font-weight: 900; color: var(--sub); text-align: center; font-size: 15px; }
.rrow.top .no { color: var(--ink); }
.rrow .nm { font-weight: 800; font-size: 14px; line-height: 1.4; }
.rrow .rt { text-align: right; }
.rrow .price { font-size: 16px; font-weight: 900; }

/* パックの帯・一覧 */
.packbanner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--head); color: var(--head-ink); }
.packbanner .kind { color: var(--accent); }
.kind { font-size: 11px; color: var(--sub); font-weight: 800; }
.pname { font-size: 19px; font-weight: 900; line-height: 1.3; }
.packbanner .sub { color: var(--head-sub); }
.top3 { display: flex; gap: 6px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.top3 img { flex: 0 1 auto; min-width: 0; object-fit: contain; }
.top3 img { width: 50px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow: hidden; }
.pack:hover { border-color: var(--sub); }
.pack .pname { font-size: 15px; }
.pack .top3 img { width: 40px; }

/* チップ・タブ・並び替え */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; color: var(--ink); font-family: inherit; }
.chip small { color: var(--sub); font-weight: 700; }
.chip.on { background: var(--head); color: var(--head-ink); border-color: var(--head); }
.chip.on small { color: var(--head-sub); }
.filterwrap { position: sticky; top: 54px; z-index: 5; background: var(--bg); margin: 0 -16px 10px; padding: 8px 16px; box-shadow: 0 6px 10px -8px rgba(26,63,45,.25); }
.filterbar { display: flex; gap: 8px; align-items: center; margin-top: 16px; padding-bottom: 4px; }
.filterwrap .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.filterwrap .chips::-webkit-scrollbar { display: none; }
.filterbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; }
.filterbar select { font: inherit; font-size: 16px; font-weight: 700; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
@media (max-width: 480px) { .grid { grid-template-columns: 1fr 1fr; } }
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.gcard:hover { border-color: var(--sub); }
.gcard .meta { font-size: 11px; color: var(--sub); }

/* パック情報 */
.packinfo { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; }
.packinfo b { font-size: 16px; font-weight: 900; }

/* カードページ */
.cardtop { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.cardtop .big { border-radius: 4.5%; box-shadow: 0 6px 24px rgba(26,63,45,.18); width: 100%; }
@media (max-width: 640px) { .cardtop { grid-template-columns: 1fr; } .cardtop .big { width: 240px; margin: 0 auto; } }
.panel { background: linear-gradient(170deg, var(--surface) 0%, var(--green-soft) 190%); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.lbl { font-size: 12px; color: var(--sub); font-weight: 800; }
.big-price { font-size: 32px; font-weight: 900; line-height: 1.15; margin: 2px 0 10px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv > span:first-child { color: var(--sub); }
.kv b { font-weight: 900; }
.kv .buy { color: var(--buy); }
.btn { display: block; text-align: center; margin-top: 12px; padding: 13px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 900; }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.spec th { color: var(--sub); font-weight: 700; width: 7.5em; }
.spec a { text-decoration: underline; text-underline-offset: 2px; }

/* グラフ（期間の切り替えは CSS だけ） */
.chart-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.chart-tabs .tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 3px; margin-bottom: 10px; }
.chart-tabs label { flex: 1; text-align: center; font-size: 13px; font-weight: 800; padding: 6px 0; border-radius: 8px; color: var(--sub); cursor: pointer; }
.chart-tabs .pane { display: none; }
.chart-tabs input:nth-of-type(1):checked ~ .tabs label:nth-child(1),
.chart-tabs input:nth-of-type(2):checked ~ .tabs label:nth-child(2),
.chart-tabs input:nth-of-type(3):checked ~ .tabs label:nth-child(3),
.chart-tabs input:nth-of-type(4):checked ~ .tabs label:nth-child(4) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(26,63,45,.1); }
.chart-tabs input:nth-of-type(1):checked ~ .pane-1,
.chart-tabs input:nth-of-type(2):checked ~ .pane-2,
.chart-tabs input:nth-of-type(3):checked ~ .pane-3,
.chart-tabs input:nth-of-type(4):checked ~ .pane-4 { display: block; }
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--sub); font-weight: 700; margin-top: 4px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: currentColor; }
.legend .l-sell { color: var(--ink); }
.legend .l-buy { color: var(--buy); }
table.shops { width: 100%; border-collapse: collapse; font-size: 14px; }
table.shops th, table.shops td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.shops th { font-size: 12px; color: var(--sub); }
table.shops td.num { text-align: right; font-weight: 800; }
table.shops th.num { text-align: right; }

/* 広告（PR）の枠。提携リンクがあるときだけ出る（inc/view.php の pokeca_promo）
   本文と見分けがつくように、パネルより一段うすい枠＋「広告（PR）」のピル。派手なバナーは置かない */
.promo { margin: 22px 0; padding: 12px 14px 10px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface); }
.promo[hidden] { display: none; }
.promo-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.promo-pr { flex: none; font-size: 11px; font-weight: 900; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink2); border: 1px solid var(--accent-soft); font-weight: 900; }
.promo-t { font-family: var(--display); font-weight: 800; font-size: 15px; }
.promo-hook { margin: 8px 0 0; font-size: 13px; line-height: 1.75; color: var(--sub); text-wrap: pretty; }
.promo-hook b { font-size: 16px; font-weight: 900; color: var(--buy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.promo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; }
.promo-cols.is-1col { grid-template-columns: 1fr; }
.promo-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 460px; }
.promo-lbl { font-size: 11px; font-weight: 900; color: var(--sub); }
.promo-btn { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 800; }
.promo-btn:hover { border-color: var(--edge); }
.promo-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-arrow { flex: none; color: var(--sub); font-size: 16px; }
.promo-px { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.promo-note { margin: 10px 0 0; font-size: 11px; line-height: 1.7; color: var(--sub); }
.promo-note a { font-weight: 800; text-decoration: underline; }
.promo-note.is-legal { margin-top: 4px; }   /* 各社の規約で必須の表記 */
.promo-note.is-warn { margin-top: 10px; color: var(--ink); font-size: 12px; }
.promo-note.is-warn + .promo-note { margin-top: 4px; }
/* 金額そのものが入口になる枠（マイリストの「持ってる」の買取相場の合計） */
.promo-hook.is-big { text-align: center; margin-top: 10px; }
.promo-hook.is-big b { display: block; font-size: 26px; line-height: 1.3; margin-top: 2px; }
.promo-sub { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--sub); text-wrap: pretty; }
@media (max-width: 520px) {
  .promo-cols { grid-template-columns: 1fr; gap: 10px; }
}

/* 一覧の1行ごとの広告リンク（マイリストのおすすめパック・欲しいカード。中身は app.js） */
/* min-width: 0 が無いと、ボタンの行が折り返さずに枠からはみ出す（375px。2026-09-24） */
.promo-mini { display: grid; gap: 6px; min-width: 0; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.pm-h { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pm-lbl { font-size: 12px; font-weight: 900; color: var(--sub); }
.pm-links { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.promo-btn.is-mini { flex: 0 1 auto; gap: 3px; padding: 7px 11px; font-size: 12px; }
.promo-btn.is-mini .promo-name { flex: 0 1 auto; }
.promo-btn.is-mini .promo-arrow { font-size: 13px; }

/* 固定ページ */
article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 18px; margin-top: 12px; }
article h2 { font-size: 17px; margin: 22px 0 8px; }
article ul { padding-left: 1.3em; }
article li { margin: .3em 0; }
article a { text-decoration: underline; text-underline-offset: 2px; }
.btn-link { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 900; text-decoration: none !important; }

/* フッター */
.ft { margin-top: 40px; padding: 28px 0 32px; background: var(--band); border-top: 1px solid var(--band-line); color: var(--sub); font-size: 12px; }
.top-h1 { font-size: 17px; margin: 16px 0 0; }
.top-h1 + .search.big { margin-top: 8px; }

/* 店舗 */
.srow { display: block; padding: 11px 14px; border-top: 1px solid var(--line); }
.srow:first-child { border-top: 0; }
.srow:hover { background: var(--bg); }
.srow .nm { font-weight: 800; font-size: 15px; }
.stype { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 4px; margin: 4px 4px 0 0; background: var(--bg); color: var(--sub); }
.stype.center { background: #fff1c2; color: #6b4b00; }
.stype.gym { background: #e3ecff; color: #1d4ed8; }
.region { margin: 16px 0 6px; font-size: 13px; font-weight: 800; color: var(--sub); }
/* チェーンページの「県へ飛ぶ」入口。45県あると延々スクロールになるため（2026-09-25 ユーザーテスト） */
.pref-jump { margin: 12px 0 4px; }
.pref-jump + .region { margin-top: 18px; }
.sec-h[id] { scroll-margin-top: 70px; }   /* 上のナビが固定なので、飛んだ先が隠れないように */
.maplink { display: inline-block; margin-top: 10px; padding: 9px 16px; border-radius: 999px; background: var(--head); color: var(--head-ink); font-weight: 800; font-size: 14px; }

/* あるぞう */
.mark { width: 34px; height: 34px; }
.zou-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.zou-head h1 { flex: 1; margin: 0; }
.zou-ico { flex: 0 0 auto; display: block; }
.zou-ico .zou { width: 56px; height: auto; }
.zou-head.top { margin-top: 16px; }
.zou-head.top .top-h1 { margin: 0; }
.zou-note { display: flex; align-items: center; gap: 10px; }
.zou-note .zou { flex: 0 0 auto; }
.notfound { text-align: center; padding: 30px 0; }
.notfound .zou { margin: 0 auto 10px; }

.pstat { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; }
.pstat.cur { background: #dcfce7; color: #166534; }
.pstat.off { background: #e5e7eb; color: #374151; }
.pstat.new { background: var(--accent); color: var(--accent-ink); }

.subfilter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0; }
.subfilter .chip { font-size: 12px; padding: 4px 10px; }

.report-btn:disabled { opacity: .45; cursor: not-allowed; }

.gstore .store-fav { justify-self: start; }
.gstore .store-fav.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gstore .near-wrap[hidden] { display: none; }
.gstore .report-closed { font-size: 12.5px; color: var(--sub); margin: 0; }
.gstore .zou-head { margin: 0; }

.box-panel { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.box-img { margin: 0; }
.box-img img { width: 100%; border-radius: 10px; background: #fff; }
@media (max-width: 520px) { .box-panel { grid-template-columns: 1fr; } .box-img { max-width: 200px; margin: 0 auto; } }

/* ヘッダー：ガチャみっけと同じ2つの大きなタブと「〇分前に更新」 */
.hd-mylist { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--accent-ink); background: var(--accent); padding: 6px 12px; border: 0; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 6px rgba(193,79,2,.3); }
.hd-mylist[aria-current="page"] { box-shadow: 0 0 0 3px rgba(193,79,2,.25); }
.hd2 { background: var(--band); border-bottom: 1px solid var(--band-line); padding: 0 0 10px; position: sticky; top: 54px; z-index: 19; }
.site-nav { display: flex; gap: 8px; }
.site-nav a { flex: 1; text-align: center; font-size: 15px; font-weight: 800; padding: 10px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--band-line); color: var(--green-ink); }
.site-nav a[aria-current="page"] { background: var(--head); border-color: var(--head); color: var(--head-ink); }
.fresh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--sub); margin: 8px 0 0; }
.fresh-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
/* 更新時刻の横に置く「使い方をみる」。時刻の長さが変わっても右端に残るよう margin-left:auto で寄せる */
.fresh-guide { display: inline-flex; align-items: center; gap: 3px; margin-left: auto;
  padding: 3px 10px 3px 4px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink); font-weight: 800; }
.fresh-guide .fg-zou { width: 22px; height: 21px; display: block; }
.fresh-guide:active { opacity: .7; }
.fresh .dot { width: 7px; height: 7px; border-radius: 50%; background: #35c07a; flex: none; box-shadow: 0 0 0 3px rgba(53,192,122,.25); }

/* トップ：どのポケモンカードを調べてますか？ */
.pick { margin: 12px 0 8px; }
.pick-q { font-size: 18px; font-weight: 900; margin: 0 0 6px; }
.pick-help { font-size: 12px; color: var(--sub); margin: 0; font-weight: 700; }
.pick-help span { font-weight: 400; }
.pack-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0 12px; margin: 0 -16px; padding-inline: 16px; }
.pack-tabs::-webkit-scrollbar { display: none; }
.pack-tabs .chip { font-size: 14px; padding: 9px 14px; }
.pick .search.big { margin: 0; }
.btn-more { display: block; text-align: center; margin: 10px 0 0; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.btn-more:hover { border-color: var(--sub); }

/* 余白を詰める（2026-09-22 大森さん「間が空きすぎ」）。広い画面ではランキングを2列にして、名前と価格の間を空けすぎない */
@media (min-width: 900px) {
  .list { display: grid; grid-template-columns: 1fr 1fr; }
  .list .rrow:nth-child(2) { border-top: 0; }
  .list .rrow:nth-child(odd) { border-right: 1px solid var(--line); }
}
.box-panel > div, .box-panel table { max-width: 620px; }
.grid { gap: 8px; }
.gcard { padding: 6px; }

/* トップ：検索窓の上のあるぞう（吹き出し） */
.ask { display: flex; align-items: flex-end; gap: 8px; margin: 4px 0 8px; }
.ask img { flex: none; width: 72px; height: auto; }
.ask-bubble { position: relative; margin: 0 0 10px; padding: 10px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; font-size: 14px; line-height: 1.6; }
.ask-bubble::before { content: ""; position: absolute; left: -8px; bottom: 14px; width: 12px; height: 12px; background: var(--surface); border-left: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); transform: rotate(45deg); }
.ask-bubble span { display: block; font-size: 12px; color: var(--sub); }

/* みんなの報告（どのお店で買えたか） */
.rfeed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.rfeed-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.rfeed-row:first-child { border-top: 0; }
.rfeed-row:hover { background: var(--bg); }
.rf-emoji { font-size: 22px; text-align: center; }
.rf-body { display: grid; gap: 1px; min-width: 0; }
.rf-what { font-weight: 800; font-size: 13px; }
.is-soldout .rf-what { color: var(--sub); }
.rf-store { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-area { font-size: 12px; color: var(--sub); }
.rf-ago { font-size: 12px; color: var(--sub); white-space: nowrap; }
.rfeed-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 14px; font-size: 13px; color: var(--sub); line-height: 1.8; }
.rfeed-empty a { font-weight: 800; color: var(--ink); }

/* お店をさがす（/store/） */
.store-find { display: grid; gap: 8px; margin-bottom: 8px; }
.btn-here { display: flex; align-items: center; gap: 12px; width: 100%; font: inherit; text-align: left; padding: 14px 18px; border-radius: 16px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; box-shadow: 0 8px 18px rgba(193,79,2,.3); }
.btn-here:hover { filter: brightness(1.04); }
.btn-here:active { transform: scale(.98); }
.bh-ico { font-size: 26px; }
.bh-txt { display: grid; gap: 1px; }
.bh-txt b { font-family: var(--display); font-size: 18px; font-weight: 800; }
.bh-txt small { font-size: 12px; font-weight: 700; opacity: .75; }
.bh-arrow { margin-left: auto; font-size: 22px; font-weight: 900; }
.or { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: 12px; font-weight: 800; color: var(--sub); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.store-find-msg { margin: 0; font-size: 12.5px; color: var(--sub); }
.store-find-msg:empty { display: none; }
.store-find-list { display: grid; gap: 6px; }
/* 現在地から探したときだけ出る地図（Leaflet＋OpenStreetMap。app.js が押されてから読み込む）。
   高さは固定にして、地図が出ても下の一覧がずれないようにする。z-index: 0 で Leaflet の重なりを中に閉じ込める（上の帯より前に出ないように） */
.near-map { position: relative; z-index: 0; isolation: isolate; height: 320px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); touch-action: none; }
/* 地図を指で操作したときに、ページ全体が拡大されないようにする（ダブルタップ拡大は地図側が受け取る。2026-09-24） */
.near-map .leaflet-pane, .near-map .leaflet-control, .near-map .leaflet-marker-icon, .near-map canvas, .near-map img.leaflet-tile { touch-action: none; }
.near-map a, .near-map button { touch-action: manipulation; }
.near-map.leaflet-container { font: inherit; }
.near-map .leaflet-popup-content { margin: 10px 12px; font-size: 13px; line-height: 1.7; }
.near-map .leaflet-popup-content a { color: var(--green-ink); font-weight: 800; text-decoration: underline; }
.near-map .leaflet-control-attribution { font-size: 10px; }
.store-find [hidden] { display: none !important; }   /* 取扱店／コンビニのタブの切り替え（display: grid より hidden を優先） */
.store-find-list .sf-row .chips { margin-top: 6px; }
.sf-row { position: relative; display: grid; gap: 2px; padding: 10px 76px 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.sf-row:hover { border-color: var(--sub); }
.sf-name { font-weight: 800; font-size: 14px; }
.sf-addr { font-size: 12px; color: var(--sub); }
/* 距離は「見る情報」なので落ち着いた緑。オレンジはコンバージョンのボタンだけに取っておく（design.md 13章） */
.sf-row .near-km { position: absolute; top: 10px; right: 10px; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); }

/* カードの「欲しい」「持ってる」 */
.mark-box { margin-top: 12px; }
.mark-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mark-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; font: inherit; font-size: 15px; font-weight: 800; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.mark-btn:hover { border-color: var(--sub); }
.mark-btn.is-want.on { border-color: var(--accent); background: var(--accent-soft); }
.mark-btn.is-have.on { border-color: var(--ok); background: var(--ok-bg); }
.mk-ico { font-size: 18px; }
.mark-note { margin: 6px 0 0; font-size: 12.5px; color: var(--sub); text-align: center; }
.mark-note a { font-weight: 800; color: var(--ink); }
.is-pop { animation: pk-pop .45s ease-out; }
@keyframes pk-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .is-pop { animation: none; } }

/* マイリスト */
/* 絵・本文・値段は1行目、ボタンの列は2行目いっぱい。
   ボタンを右の列に入れると、数量を足したときにカード名の列が潰れる（2026-09-26） */
.my-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "img body rt" "acts acts acts"; }
.my-row .my-img { grid-area: img; }
.my-row .my-body { grid-area: body; }
.my-row .rt { grid-area: rt; min-width: 0; }
.my-row .my-acts { grid-area: acts; }
.my-img img { display: block; width: 44px; height: auto; border-radius: 4.5%; }
.my-body { display: grid; gap: 2px; min-width: 0; }
/* 「探す」と「外す」は押し間違えると困るので、どちらも丸いボタンにして、はっきり離す
   （指のあたる範囲が近すぎると Google のモバイル使用性でも指摘される。2026-09-25） */
.my-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; }
.my-del { display: inline-flex; align-items: center; padding: 4px 11px 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 11.5px; font-weight: 800; color: var(--sub); white-space: nowrap; cursor: pointer; }
.my-del:hover { border-color: var(--up); color: var(--up); }
/* 1行ごとの「🔍 探す」（押すと、その行の下に通販・フリマのリンクが出る） */
.my-find { display: inline-flex; align-items: center; padding: 4px 11px 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-size: 11.5px; font-weight: 800; color: var(--green-ink); white-space: nowrap; cursor: pointer; }
.my-find:hover { border-color: var(--edge); }
.my-find[aria-expanded="true"] { background: var(--green-soft); border-color: var(--edge); }
.my-find-box { padding: 0 12px 10px; border-top: 0; }
.my-find-box[hidden] { display: none; }
.my-find-box .promo-mini { margin-top: 0; border-top: 0; padding-top: 0; }
.my-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 14px; font-size: 13px; color: var(--sub); line-height: 1.8; }
.my-alerts { margin-top: 8px; }
.my-total { margin: 14px 0 0; padding: 16px; border-radius: 14px; background: var(--head); color: var(--head-ink); text-align: center; }
.my-total .sub { color: var(--head-sub); }
.mt-lbl { font-size: 13px; font-weight: 800; color: var(--head-sub); }
/* 緑の面の上なので、オレンジだと読めない（1.4:1）。明るいクリームにする（4.3:1。30pxの太字） */
.mt-big { font-size: 30px; font-weight: 900; color: var(--on-head-hi); }
.mt-hi { margin: 8px 0 0; font-size: 13.5px; }
/* 合計に入っていないカードがあるときの断り書き（緑の面の上。2026-09-25 ユーザーテスト） */
.mt-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--head-sub); text-wrap: pretty; }
.mt-note b { color: var(--on-head-hi); }
.reco { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.reco-card { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.reco-link { display: grid; gap: 3px; min-width: 0; }
.reco-card.is-current { border: 2px solid var(--accent); }
.reco-card:hover { border-color: var(--sub); }
.reco-name { font-weight: 900; font-size: 15px; }
.reco-n { font-size: 13.5px; }
.reco-n b { font-size: 16px; }
.reco-sub { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco-tag { font-size: 12px; font-weight: 800; }
.is-current .reco-tag { color: var(--ok-ink); }

/* 一覧のカードの「欲しい」「持ってる」 */
.gcard { display: flex; flex-direction: column; }
.gc-link { display: block; flex: 1; }
.gc-marks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; margin-top: 12px; }
.gc-marks button { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-height: 32px; font: inherit; font-size: 11px; font-weight: 800; border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); color: var(--sub); cursor: pointer; padding: 0 3px; filter: grayscale(1); }
/* 「持ってる」の人数が2桁になると「持って／る」と割れていたので、言葉は折り返さない（2026-09-25 大森さん） */
.gc-marks button span { white-space: nowrap; }
.gc-marks button svg { width: 11px; height: 11px; flex: none; }
.gc-marks button.on { filter: none; color: var(--ink); }
.gc-marks [data-m="want"].on { border-color: var(--accent); background: var(--accent-soft); }
.gc-marks [data-m="have"].on { border-color: var(--ok); background: var(--ok-bg); }

/* 都道府県ページ：市区町村ごとのお店 */
.city-h { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; font-size: 15px; font-weight: 900; }
.city-h a { text-decoration: underline; text-underline-offset: 3px; }
.city-h small { font-size: 12px; color: var(--sub); font-weight: 700; }
.store-find-msg.is-error { padding: 12px 14px; border-radius: 12px; background: #fff4e5; border: 1px solid #d9903a; color: #7a3a0a; font-size: 13px; line-height: 1.8; }
/* 店舗ページの報告：① は2つのボタン、② は押すと送信 */
.gstore .report-btns.is-two { grid-template-columns: 1fr 1fr; }
.gstore .report-hint { margin: -4px 0 0; font-size: 12.5px; color: var(--sub); }
.gstore .report-back { justify-self: start; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: var(--sub); text-decoration: underline; cursor: pointer; }
.gstore [data-report-step] { display: grid; gap: 10px; }
.gstore [data-report-step][hidden] { display: none; }
.gstore .report-latest { font-size: 13px; color: var(--sub); margin: 0 0 8px; }
/* 人数は文字の横に置かず、ボタンの**右端に揃えた**小さなしるしにする。
   横に並べると「持ってる」が入りきらず「持って／る」と割れていたため（2026-09-25 大森さん）。
   真ん中に置くとスマホで座りが悪かったので右端に揃える（2026-09-25 大森さん） */
.gc-marks button { position: relative; }
.gc-marks b { position: absolute; top: -9px; right: 0; min-width: 17px; height: 17px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); filter: none;
  font-size: 10px; font-weight: 900; line-height: 1; }
.gc-marks [data-m="want"].on b { border-color: var(--accent); }
.gc-marks [data-m="have"].on b { border-color: var(--ok-on); }
.gc-marks b:empty { display: none; }
.hcard .gc-marks { grid-template-columns: minmax(0, 1fr); }   /* 横スクロールは幅が狭いので縦に2つ */
.hcard .gc-marks button { min-height: 30px; }

/* 検索で見つからないとき */
.sg-none { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.sg-none img { flex: none; width: 64px; height: auto; }
.sg-none p { margin: 0; font-size: 13.5px; line-height: 1.7; }
.sg-none span { display: block; font-size: 12px; color: var(--sub); }
/* iPhone は文字が16px未満の入力欄を押すと画面が拡大されるので、入力欄は16px */
.search input, .store-find input, select, textarea, input[type="search"], input[type="text"] { font-size: 16px; }

/* マイリストの開け閉め */
.fold { margin: 14px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; scroll-margin-top: 64px; }
.fold-head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 10px; width: 100%; padding: 14px 16px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
/* 1行目：見出しと開く・閉じる、2行目：枚数と合計（どれも途中で改行しない） */
.fold-title { font-size: 16px; font-weight: 900; white-space: nowrap; }
.fold-state { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--sub); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.fold-n { grid-column: 1 / -1; }
.fold-n { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; color: var(--sub); font-weight: 700; white-space: nowrap; }
.fold-n b { font-size: 18px; color: var(--ink); }
.fold-sub { font-size: 12.5px; color: var(--sub); font-weight: 700; white-space: nowrap; }
.fold-sub:empty { display: none; }
.fold-arrow { display: inline-block; transition: transform .2s; transform: rotate(180deg); }
.fold.is-closed .fold-arrow { transform: none; }
.fold-body { padding: 0 12px 12px; }
.fold-body[hidden] { display: none; }
.fold-body .list { border-radius: 12px; }
.fold-note { margin: 10px 2px 6px; font-size: 12px; color: var(--sub); }
.fold-close { display: block; width: 100%; margin-top: 10px; padding: 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 14px; font-weight: 800; color: var(--sub); cursor: pointer; }
.fold-close:hover { color: var(--ink); }
/* 開いた節の中を下まで読んでいる間だけ浮かぶ「閉じる」（ガチャみっけと同じ。app.js が出し入れする） */
.fold-fab {
  position: fixed; z-index: 45; left: 0; right: 0; margin-inline: auto;
  width: max-content; max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  bottom: calc(18px + env(safe-area-inset-bottom) + var(--ad-bottom));
  padding: 10px 18px; border: 0; border-radius: 999px;
  background: rgba(15, 26, 46, .9); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.fold-fab[hidden] { display: none; }
.fold-fab:active { background: rgba(15, 26, 46, 1); }

/* 見出しと大事なことばは丸ゴシック（2026-09-22 デザインの見直し） */
h1, .sec-h h2, .site-nav a, .pick-q, .fold-title, .ask-bubble b, .top-h1, .zou-head h1, .mt-big, .reco-name, .city-h, .region { font-family: var(--display); }
.sec-h h2 { font-weight: 800; letter-spacing: .02em; }

/* 目立たせたいページへの大きなボタン（絶版も含めたランキングなど） */
.big-link { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--head) 0%, var(--green-deep) 100%); color: var(--head-ink); box-shadow: 0 8px 18px rgba(26,63,45,.18); }
.big-link img { flex: none; width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 2px; }
.bl-body { display: grid; gap: 2px; }
.bl-title { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--head-ink); line-height: 1.4; }
.bl-sub { font-size: 12px; color: var(--head-sub); text-wrap: pretty; }
.bl-arrow { margin-left: auto; font-size: 22px; font-weight: 900; color: var(--head-ink); }
.big-link:hover { opacity: .92; }
.zou-head h1 .tt { margin-right: .3em; }

/* 押したあとの「欲しい」「持ってる」は、はっきりした色で（ダークモードでも白くならないよう色を固定） */
.gc-marks button.on, .mark-btn.on { filter: none; }
.gc-marks [data-m="want"].on, .mark-btn.is-want.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.gc-marks [data-m="have"].on, .mark-btn.is-have.on { background: var(--ok); border-color: var(--ok); color: var(--ok-on); }
.mark-btn.on b { color: inherit; }

/* 載っていないお店を教える */
.flow { list-style: none; counter-reset: f; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 14px 0; }
.flow li { counter-increment: f; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; font-size: 12px; color: var(--sub); }
.flow li b { font-family: var(--display); font-size: 15px; color: var(--ink); }
.flow li b::before { content: counter(f); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--head); color: var(--head-ink); font-size: 12px; }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }
.request-form { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.request-form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; }
.request-form label b { font-size: 11px; color: #fff; background: #e5484d; padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.request-form input { font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.btn-send { justify-self: start; font: inherit; font-family: var(--display); font-size: 16px; font-weight: 800; padding: 12px 28px; border-radius: 12px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.btn-send:disabled { opacity: .6; }
.request-result { margin: 0; font-size: 14px; font-weight: 800; }
.request-result.is-ok { color: var(--ok-ink); }
.sf-center { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; vertical-align: 2px; }

/* 出る確率の目安 */
.pull { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--head) 0%, var(--green-deep) 100%); color: var(--head-ink); }
.pull-lbl { font-size: 12px; font-weight: 800; color: var(--head-sub); }
.pull-big { font-family: var(--display); font-size: 20px; font-weight: 800; }
/* 緑の面の上なので、オレンジだと読めない（1.1:1）。金額と同じ明るいクリームにする（32pxの太字） */
.pull-big b { font-size: 32px; color: var(--on-head-hi); margin: 0 2px; }
.pull-sub { font-size: 13px; color: var(--head-sub); }
.pull-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; }
.pull-src { margin: 6px 0 0; font-size: 11px; color: var(--head-sub); line-height: 1.6; }
.pull-src a { color: var(--head-ink); text-decoration: underline; }
.conf { display: inline-block; padding: 0 8px; border-radius: 6px; font-weight: 800; color: var(--accent-ink); }
.conf.is-high { background: #35c07a; color: #fff; }
.conf.is-medium { background: var(--accent); }
.h1-count { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; color: var(--sub); }
.rrow .rt .price, .rrow .rt .sub { white-space: nowrap; }
.my-body .nm { overflow-wrap: anywhere; }
.mt-hi-sub { display: block; font-size: 12px; color: var(--head-sub); }

/* ===== 入荷のお知らせ・別のスマホへの引き継ぎ（/mylist/。ガチャみっけの set-box・move-box と同じ形、色はあるぞうの紺＋黄） ===== */
.set-box { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; scroll-margin-top: 70px; }
.set-box > summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 14.5px; }
.set-box > summary::-webkit-details-marker { display: none; }
.set-ttl { font-weight: 900; flex: 1; line-height: 1.45; }
.set-open { font-size: 12px; font-weight: 800; color: var(--sub); white-space: nowrap; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.set-open::after { content: "▾ 開く"; }
.set-box[open] .set-open::after { content: "▴ 閉じる"; }
.set-body { padding: 0 16px 16px; display: grid; gap: 12px; }
.set-box.is-called { box-shadow: 0 0 0 3px var(--accent); transition: box-shadow .3s ease; }
.push-msg .nw { display: inline-block; }
.push-btn { width: 100%; padding: 13px 14px; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
.push-btn.is-on { background: var(--surface); color: var(--ink); }
.push-btn:disabled { opacity: .6; cursor: default; }
.push-btn[hidden] { display: none; }
.push-msg { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.8; text-wrap: pretty; }
.push-why { margin: 0; font-size: 12.5px; color: var(--sub); line-height: 1.85; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.push-why[hidden], .push-hint[hidden] { display: none; }
.push-hint { margin: 0; padding-left: 1.4em; font-size: 12.5px; color: var(--sub); line-height: 1.9; }
.push-why b, .push-hint b, .push-note b, .move-lead b, .move-steps b, .move-note b { color: var(--ink); }
.push-note { margin: 0; font-size: 11.5px; color: var(--sub); line-height: 1.8; text-wrap: pretty; }
.move-lead { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.85; text-align: center; }
.move-steps { margin: 0; padding-left: 1.4em; font-size: 12.5px; color: var(--sub); line-height: 1.9; }
.move-card { background: var(--bg); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.move-head { margin: 0; font-size: 13px; font-weight: 900; }
.move-row { display: flex; gap: 8px; align-items: center; }
.move-input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 17px; text-transform: uppercase; letter-spacing: .12em; }
.move-btn { flex: none; justify-self: start; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--head); color: var(--head-ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.move-btn:disabled { opacity: .6; }
.move-code { font-size: 28px; font-weight: 900; letter-spacing: .2em; color: var(--accent-ink); background: var(--accent-soft); border: 2px solid var(--accent); padding: 10px 16px; border-radius: 12px; user-select: all; text-align: center; }
.move-code[hidden] { display: none; }
.move-msg { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.7; }
.move-msg:empty { display: none; }
.move-note { margin: 0; font-size: 11.5px; color: var(--sub); line-height: 1.75; }
@media (prefers-color-scheme: dark) { .move-code { color: var(--accent); } }
/* カードページ：「欲しい」を押したあとの、お知らせの案内 */
.mark-push { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 12.5px; line-height: 1.7; text-align: center; }
.mark-push[hidden] { display: none; }
.mark-push a { font-weight: 800; text-decoration: underline; }
.mark-push .sub { display: block; font-size: 11px; }

/* ===== ポケモンセンター公式のお知らせ（トップ・店舗ページ。見出し・日付・公式へのリンクだけ。.rfeed と同じ形） ===== */
.pcnews { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pcnews-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.pcnews-row:first-child { border-top: 0; }
.pcnews-row:hover { background: var(--bg); }
.pn-label { display: inline-flex; align-items: center; justify-content: center; min-width: 3.4em; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 900; white-space: nowrap; background: var(--bg); border: 1px solid var(--line); color: var(--sub); }
.is-lottery .pn-label { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.is-sale .pn-label { background: var(--head); border-color: var(--head); color: var(--head-ink); }
.pn-body { display: grid; gap: 2px; min-width: 0; }
.pn-title { font-weight: 800; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.pn-meta { font-size: 12px; color: var(--sub); }
.pn-ext { font-size: 13px; color: var(--sub); }
.pcnews-note { margin: 6px 2px 0; font-size: 12px; color: var(--sub); line-height: 1.6; }
.pn-shops { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.pn-shops a { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; }
.pn-shops a::after { content: " ↗"; color: var(--sub); font-weight: 700; }
.pn-shops a:hover { border-color: var(--accent); }
.pn-more > summary { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--ink); cursor: pointer; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); list-style: none; }
.pn-more > summary::-webkit-details-marker { display: none; }
.pn-more > summary::after { content: " ▾"; color: var(--sub); }
.pn-more[open] > summary::after { content: " ▴"; }
/* コンビニの公式の告知（inc/knews.php）。行は .pcnews と同じ。受付中などの印だけ足す */
.knews .is-reserve .pn-label { background: var(--surface); border-color: var(--edge); color: var(--ink); }
.kn-state { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 900; border: 1px solid var(--line); background: var(--bg); color: var(--sub); line-height: 1.6; }
.kn-state.is-open { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kn-state.is-before { border-color: var(--edge); color: var(--ink); }

/* ===== 抽選・販売の情報（inc/lottery.php。行は .pcnews と同じ形、状況の印は .kn-state） ===== */
.lot .pcnews-row { grid-template-columns: auto 1fr; }
.lot .pn-title { font-size: 14px; }
.lot-chain { font-weight: 900; }
a.lot-chain { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.lot-sep { color: var(--sub); }
.lot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: 12.5px; }
.lot-d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lot-d b { font-size: 11px; font-weight: 800; color: var(--sub); margin-right: 4px; }
.lot-cond { font-size: 12.5px; color: var(--sub); line-height: 1.6; margin-top: 2px; }
.lot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--sub); }
.lot-src { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; }
.lot-src::after { content: " ↗"; color: var(--sub); font-weight: 700; }
.lot-src:hover { border-color: var(--accent); }
.kn-state.is-wait { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.kn-state.is-end { opacity: .85; }
.lot-sub-h { font-family: var(--display); font-size: 15px; font-weight: 800; margin: 16px 0 6px; }
.lot-sub-h a { text-decoration: underline; text-underline-offset: 3px; }
.lot-sub-h small { font-size: 12px; color: var(--sub); font-weight: 700; }
.lot-guide { margin-bottom: 10px; }
.lot-guide-h { font-family: var(--display); font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.lot-dl { display: grid; grid-template-columns: 7em 1fr; gap: 6px 10px; margin: 0; font-size: 13.5px; line-height: 1.7; }
.lot-dl dt { font-weight: 800; color: var(--sub); font-size: 12.5px; }
.lot-dl dd { margin: 0; }
@media (max-width: 520px) { .lot-dl { grid-template-columns: 1fr; gap: 0; } .lot-dl dd { margin-bottom: 6px; } }
.lot-btn { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--head); color: var(--head-ink); font-family: var(--display); font-weight: 800; font-size: 15px; box-shadow: 0 6px 14px rgba(26,63,45,.14); }
.lot-btn img { width: 40px; height: auto; background: #fff; border-radius: 50%; padding: 2px; }
.lot-btn-arrow { margin-left: auto; color: var(--head-ink); font-size: 22px; }
.lot-btn:hover { opacity: .92; }

/* ===== 読みもの（/guide/。本文は wp/guides/*.html） ===== */
.guide { padding-top: 12px; }
.guide .zou-head { margin-top: 4px; }
.g-dates { font-size: 12px; color: var(--sub); margin: -4px 0 12px; }
.g-lead { font-size: 15px; line-height: 1.9; }
.g-asof { font-size: 12.5px; color: var(--sub); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; line-height: 1.7; }
.g-toc { background: var(--bg); border-radius: 12px; padding: 10px 14px; margin: 14px 0; }
.g-toc-h { margin: 0 0 4px; font-family: var(--display); font-weight: 800; }
.g-toc ol { margin: 0; padding-left: 1.4em; font-size: 14px; }
.guide h2 { font-family: var(--display); font-weight: 800; position: relative; padding-left: 12px; margin-top: 28px; scroll-margin-top: 70px; }
.guide h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--accent); }
.guide h3 { font-family: var(--display); font-weight: 800; font-size: 15.5px; margin: 18px 0 6px; }
.guide p, .guide li { line-height: 1.85; }
.g-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 8px 0; display: block; overflow-x: auto; }
.g-table th, .g-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.6; }
.g-table th { background: var(--bg); font-size: 12.5px; white-space: nowrap; }
.g-steps { padding-left: 1.4em; }
.g-steps li { margin: .5em 0; }
.g-src { font-size: 12px; color: var(--sub); line-height: 1.8; overflow-wrap: anywhere; }
.g-faq h3 { background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.g-faq p { padding: 0 4px; }
.g-ex { margin: 4px 0 0; font-size: 12.5px; color: var(--sub); line-height: 1.6; }

/* トップの畳める枠：閉じていても目立つように紺の帯＋あるぞう＋件数 */
.tfolds { display: grid; gap: 10px; margin: 24px 0 0; }
.tfold { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 64px; }
.tfold-head { display: grid; grid-template-columns: 48px 1fr auto auto; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; cursor: pointer; text-align: left; font: inherit;
  background: linear-gradient(135deg, var(--head) 0%, var(--green-deep) 100%); color: var(--head-ink); }
.tfold-head img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 12px; padding: 2px; }
.tfold-text { display: grid; gap: 1px; min-width: 0; }
.tfold-title { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--head-ink); line-height: 1.35; }
.tfold-title br { display: none; }
.tfold-sub { font-size: 11.5px; color: var(--head-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfold-pill { white-space: nowrap; font-size: 12px; font-weight: 900; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.tfold-state { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); }
.tfold-arrow { display: inline-block; transition: transform .2s; }
.tfold:not(.is-closed) .tfold-arrow { transform: rotate(180deg); }
.tfold-body { padding: 12px; display: grid; gap: 10px; }
.tfold-body[hidden] { display: none; }
.tfold-body .btn-more { margin: 0; }
/* 狭い画面：見出しは2行（「ポケモンセンターの／抽選・販売のお知らせ」）、開く・閉じるは件数の下 */
@media (max-width: 520px) {
  .tfold-head { grid-template-columns: 44px 1fr auto; row-gap: 6px; }
  .tfold-head img { width: 44px; height: 44px; }
  .tfold-title br { display: inline; }
  .tfold-pill { grid-column: 3; grid-row: 1; align-self: start; }
  .tfold-state { grid-column: 3; grid-row: 2; justify-self: end; }
  .tfold-head img { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .tfold-text { grid-column: 2; grid-row: 1 / span 2; }
}

/* パック一覧：名前が長いパックでも、カードの画像が枠からはみ出さない（2026-09-23 パソコン表示） */
.pack > div:first-child { min-width: 0; flex: 1 1 auto; }
.pack .pname { overflow-wrap: anywhere; }

/* スタンダードで使えるか（inc/regulation.php。カードページのレアリティの横・パックページ・パック一覧） */
.regu { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 8px; border-radius: 999px; vertical-align: 1px; white-space: nowrap; }
.regu.ok { background: #dbeafe; color: #1e40af; }
.regu.part { background: #fef3c7; color: #92400e; }
.regu.ng { background: #e5e7eb; color: #374151; }

/* ===== 2026-09-23 使いやすさの手直し（はじめての人の見え方） ===== */

/* ヘッダー：よく見るページの小さいピル（抽選・ランキング・ガイド） */
.site-sub { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.site-sub::-webkit-scrollbar { display: none; }
.snav { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--green-ink); background: var(--surface); border: 1px solid var(--band-line); }
.snav:hover { border-color: var(--edge); }
.snav.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* 「○分前に更新」は押せる（何が更新されたか見に行ける） */
a.fresh:hover { color: var(--head-ink); }
.fresh-arrow { color: var(--green-ink); font-weight: 900; }

/* 価格の記録が始まったばかりのとき（グラフの代わりの1行。inc/view.php の pokeca_price_chart） */
.chart-start { display: flex; align-items: center; gap: 12px; }
.chart-start .zou { flex: 0 0 auto; }
.cs-body { margin: 0; font-size: 13.5px; line-height: 1.7; }
.cs-now { display: block; margin-top: 4px; font-size: 12px; color: var(--sub); font-weight: 700; }
.cs-now b { font-size: 15px; color: var(--ink); }

/* 同じ名前でいちばん安い版（カードページの相場のパネルの下） */
.cheaper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); font-size: 13px; font-weight: 800; }
.cheaper:hover { filter: brightness(.97); }
.ch-lbl { flex: 1 1 100%; font-size: 11.5px; font-weight: 900; color: var(--sub); }
.ch-nm { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
.ch-price { margin-left: auto; white-space: nowrap; font-size: 15px; font-weight: 900; }
.ch-arrow { color: var(--sub); }

/* 用語の説明（/guide/glossary/）への小さいリンク */
.wordlink { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.wordlink:hover { border-color: var(--sub); }

/* 一覧のカードの「どのパックの何番か」（同じ名前のカードを見分けるため）
   パック名は折り返さず「…」で切るので、入れ物に min-width:0 が要る（無いと枠が広がって画面からはみ出す） */
.gcard, .hcard, .gc-link, .gc-where { min-width: 0; }
.gc-where { display: flex; align-items: baseline; gap: 5px; font-size: 11px; color: var(--sub); line-height: 1.4; margin: 0 0 2px; }
.gc-pack { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.gc-no { flex: none; font-variant-numeric: tabular-nums; }
/* 横スクロールのカードは幅が144pxしかないので、パック名は2行まで見せて、番号は下の行に置く */
.hcard .gc-where { flex-wrap: wrap; align-items: flex-start; row-gap: 0; }
.hcard .gc-pack { flex: 1 0 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .gc-no { flex: 1 0 100%; }

/* 並び替え（高い順／安い順）のチップ */
.sortchips { margin: 0 0 10px; }
.sortchips .chip { font-size: 12.5px; padding: 5px 14px; }

/* パックページの絞り込み：狭い画面では並び替えを1行にして、チップに重ならないようにする */
.sortrow { display: flex; align-items: center; gap: 6px; flex: none; }
.sortlbl { font-size: 11.5px; font-weight: 800; color: var(--sub); white-space: nowrap; }
@media (max-width: 560px) {
  .filterbar { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .filterbar .chips { flex: 1 1 auto; }
  .sortrow { justify-content: flex-end; }
}

/* 未開封BOXの相場：狭い画面で「シュリンク付／き」「トレカキャン／プ」と折れないようにする */
.box-shops td b .tt, .box-shops .sub .tt { display: inline-block; white-space: nowrap; }
.box-shops td:first-child { white-space: nowrap; }
.box-shops .sub { line-height: 1.45; }
@media (max-width: 400px) {
  .box-shops th, .box-shops td { padding-left: 2px; padding-right: 2px; font-size: 13px; }
  .box-shops td:first-child b { font-size: 12.5px; }
}

/* 検索のサジェスト：件数・並び替え・もっと見る */
.sg-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.sg-n { font-size: 11.5px; font-weight: 800; color: var(--sub); margin-right: auto; }
.sg-sort { font: inherit; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.sg-sort.on { background: var(--head); border-color: var(--head); color: var(--head-ink); }
.sg-more { display: block; width: 100%; font: inherit; font-size: 13px; font-weight: 800; padding: 11px; border: 0; border-top: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.sg-more:hover { background: var(--accent-soft); }
.sg-cap { margin: 0; padding: 8px 12px; font-size: 11.5px; color: var(--sub); border-top: 1px solid var(--line); }
.here-note { margin: 2px 0 0; font-size: 11.5px; line-height: 1.7; }
.sf-toy { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok-ink); font-size: 11px; font-weight: 800; vertical-align: 2px; }

/* フッターの姉妹サイトへのお誘い（ガチャみっけ。同じ運営） */
.sister { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 18px 0 0;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--band-line); color: var(--ink); box-shadow: 0 2px 8px var(--shadow); }
.sister-ico { flex: 0 0 auto; width: 52px; height: 58px; }
.sister-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sister-t b { font-size: 11px; font-weight: 800; color: var(--sub); }
.sister-t em { font-family: var(--display); font-style: normal; font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.sister-t small { font-size: 11px; color: var(--sub); line-height: 1.5; text-wrap: pretty; }
.sister-go { flex: 0 0 auto; font-weight: 900; font-size: 16px; color: var(--green-ink); }
.sister:hover { border-color: var(--edge); }
@media (max-width: 400px) { .sister { gap: 9px; padding-right: 10px; } .sister-ico { width: 46px; height: 52px; } }

/* フッター */
.ft-top { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; }
.ft-zou { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); flex: 0 0 auto; }
.ft-nav { flex: 1 1 300px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; max-width: 460px; }
.ft-col { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.ft-col h2 { margin: 0 0 3px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: var(--green-ink); text-transform: none; }
.ft-col a { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.ft-col a:hover { color: var(--green-ink); }
.ft-util { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; }
.ft-util a { font-size: 12px; font-weight: 700; color: var(--ink); }
.ft-util a:hover { color: var(--green-ink); }
.ft-legal { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--band-line); }
.ft-legal p { margin: 5px 0; font-size: 11px; line-height: 1.65; }
.ft-legal strong { color: var(--ink); }
.ft-copy { margin: 14px 0 0; font-size: 11px; }
@media (max-width: 760px) {
  .ft-top { gap: 18px; }
  .ft-zou { margin-bottom: 2px; }
  .ft-nav { flex-basis: 100%; max-width: none; gap: 18px 16px; }
}

.h1-count small { display: block; font-size: 11.5px; font-weight: 700; color: var(--sub); }

/* 「気になるお店」のボタン（一覧の行・カードの右上。docs/design.md 14章）
   押せるようにするため、行・カードの <a> の外に置いて position で重ねる */
.srow-wrap, .store-card-wrap { position: relative; display: grid; }
/* 近くのお店のカードは右上に距離が出ているので、あるぞうのボタンは**右下**に置く（重ならないように。2026-09-25） */
.near-wrap .store-card-wrap .favbtn, .near-wrap .favbtn { top: auto; bottom: 8px; }
.near-wrap .store-card-wrap .store-badges { padding-right: 76px; }
.near-wrap .store-card-wrap .store-card { padding-bottom: 42px; }
.near-wrap .store-card { padding-bottom: 42px; }
.srow-wrap .srow .nm, .srow-wrap .srow .sub { padding-right: 96px; }
.store-card-wrap .store-badges { padding-right: 96px; }
.favbtn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; gap: 3px;
  padding: 4px 8px 4px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font: inherit; line-height: 1;
}
.favbtn .fb-ico { display: block; width: 22px; height: 21px; filter: grayscale(1); opacity: .45; }
.favbtn .fb-n { font-size: 11px; font-weight: 800; color: var(--sub); min-width: 10px; text-align: center; }
.favbtn.is-on { border-color: var(--edge); background: var(--green-soft); }
.favbtn.is-on .fb-ico { filter: none; opacity: 1; }
.favbtn.is-on .fb-n { color: var(--green-ink); }
.favbtn:focus-visible { outline: 2px solid var(--edge); outline-offset: 2px; }
.favbtn:active { opacity: .7; }
/* 近くのお店の行は、右上に距離が出ているので、ボタンは下に置く */
.sf-row-wrap { position: relative; display: grid; }
.sf-row-wrap .sf-row { padding-right: 76px; padding-bottom: 34px; }
.sf-row-wrap .favbtn { top: auto; bottom: 8px; }

/* 広告の断り書き（ページに1回だけ。本文の終わり） */
.page-ad-note { margin: 22px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--sub); }
.page-ad-note a { font-weight: 800; text-decoration: underline; }

/* 本文の中でボタンの名前を指すときの丸いしるし（「」で囲まない。2026-09-25） */
.kbd { display: inline-flex; align-items: center; gap: 3px; margin: 0 2px;
  padding: 1px 9px; border-radius: 999px; background: var(--green-soft);
  border: 1px solid var(--line); color: var(--ink);
  font-size: .92em; font-weight: 800; line-height: 1.6; white-space: nowrap; vertical-align: 1px; }

/* ボタンの中の小さい絵（線だけ。絵文字を使わない） */
.ic { width: 1em; height: 1em; flex: none; margin-right: 4px; vertical-align: -.12em; }

/* 押したときの短いお知らせ（画面の下に出て、2.6秒で消える） */
.toast { position: fixed; left: 50%; bottom: calc(18px + var(--ad-bottom)); z-index: 60; transform: translate(-50%, 14px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px;
  width: min(420px, calc(100vw - 32px)); padding: 11px 16px; border-radius: 14px;
  background: var(--head); color: var(--head-ink); border: 1px solid var(--edge); box-shadow: 0 10px 24px var(--shadow);
  font-size: 13px; line-height: 1.5; opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; }
/* 「戻す」が入っているときは、押せるようにする（pointer-events を戻す） */
.toast.has-undo { pointer-events: auto; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { grid-row: span 2; width: 18px; height: 18px; }
.toast b { font-weight: 800; }
.toast span { grid-column: 2; font-size: 11.5px; color: var(--head-sub); text-wrap: pretty; }
.toast b { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* 一覧のボタンは、絵だけだと意味が分からないので文字も出す */
.favbtn .fb-txt { font-size: 11px; font-weight: 800; color: var(--sub); }
.favbtn.is-on .fb-txt { color: var(--green-ink); }

/* 本文の中の「マイリスト」は、ヘッダーのボタンと同じオレンジにして、押せるようにする */
.kbd.is-mylist { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kbd.is-mylist:hover { filter: brightness(1.08); }
.kbd .ic { margin-right: 3px; }

/* 下にスクロールしたら、上の帯を細くして「ポケカを調べる／ポケカを探す」だけ残す
   （どのページでも切り替えられるように。ガチャみっけと同じ考え方。2026-09-25） */
.is-slim .hd .in { height: 44px; }
.is-slim .logo { font-size: 16px; }
.is-slim .logo .mark { width: 26px; height: 26px; }
.is-slim .hd2 { top: 44px; padding-bottom: 6px; }
.is-slim .site-sub, .is-slim .fresh { display: none; }
.is-slim .site-nav a { padding: 7px 8px; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .hd .in, .site-nav a { transition: height .16s, padding .16s, font-size .16s; }
}

/* 持っている枚数（マイリストの「持ってるカード」の行） */
.my-qty { display: inline-flex; align-items: center; gap: 2px; margin-right: auto; }
.qty-btn { width: 30px; height: 30px; touch-action: manipulation; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--green-ink); font: inherit; font-size: 15px;
  font-weight: 800; line-height: 1; cursor: pointer; }
.qty-btn:hover { border-color: var(--edge); }
/* iPhone は文字が16pxより小さい入力欄を押すと**画面ごと拡大する**ので、ここは必ず16px（2026-09-25） */
.qty-n { width: 46px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 800; text-align: center; padding: 0 2px;
  touch-action: manipulation; -moz-appearance: textfield; appearance: textfield; }
.qty-n::-webkit-outer-spin-button, .qty-n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-lbl { font-size: 11px; font-weight: 800; color: var(--sub); margin-right: 4px; }

/* 未開封BOXの、発売日と発売したときの定価 */
.box-list-price { margin: 0 0 10px; font-size: 12.5px; font-weight: 800; line-height: 1.7; }
.box-list-price .sub { font-weight: 700; font-size: 11px; color: var(--sub); }

/* 読みもの：横に並べて、狭い画面ではスワイプで読むカード */
.g-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px 0; padding-bottom: 6px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.g-cards > li { scroll-snap-align: start; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.g-cards .gc-t { display: block; font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--green-ink); margin-bottom: 4px; }
.g-cards .gc-w { display: block; font-size: 11px; font-weight: 800; color: var(--sub); margin-top: 6px; }
.g-cards p { margin: 0; font-size: 13px; line-height: 1.8; }
.g-swipe { margin: -4px 0 12px; font-size: 11px; color: var(--sub); }
/* 読みもの：あるぞうのひとこと */
.g-says { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0;
  padding: 12px 14px; border-radius: 16px; background: var(--green-soft); border: 1px solid var(--line); }
.g-says .zou { flex: 0 0 auto; width: 56px; height: auto; }
.g-says p { margin: 0; font-size: 13.5px; line-height: 1.8; font-weight: 700; text-wrap: pretty; }

/* 読みもの：定価の一覧（表にすると狭い画面でぎゅうぎゅうになるので、行で出す） */
.g-prices { list-style: none; margin: 12px 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.g-prices li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; padding: 10px 14px; border-top: 1px solid var(--line); }
.g-prices li:first-child { border-top: 0; }
.g-prices .gp-n { font-weight: 800; font-size: 13.5px; }
.g-prices .gp-n small { display: block; font-size: 11px; font-weight: 700; color: var(--sub); }
.g-prices .gp-p { font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--green-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-prices .gp-e { grid-column: 1 / -1; font-size: 11.5px; color: var(--sub); line-height: 1.6; }

/* 読みものの表：狭い画面で1文字ずつ折り返して読めなくなるのを防ぐ。
   列に最低幅を持たせ、入りきらないときは横にスワイプして読む（2026-09-25） */
.g-table { min-width: 100%; }
.g-table th, .g-table td { min-width: 7em; }
.g-table td:last-child, .g-table th:last-child { min-width: 15em; }
.g-table td:first-child, .g-table th:first-child { min-width: 6em; }

/* お知らせの中の「戻す」 */
/* 押し間違いを戻すボタン。指で押せる大きさにする（44px相当） */
.toast-undo { grid-column: 2; justify-self: start; margin-top: 6px; min-height: 36px; padding: 6px 20px;
  border-radius: 999px; border: 0; background: var(--head-ink); color: var(--head);
  font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; pointer-events: auto;
  touch-action: manipulation; }
.toast-undo:hover { opacity: .88; }
.toast-undo:active { transform: scale(.97); }

/* 連打しても画面が拡大しない（ダブルタップの拡大を切る） */
.my-find, .my-del, .favbtn, .fold-head, .fold-close, .mark-btn, .snav, .chip { touch-action: manipulation; }

/* 読みもの：ことばの説明（記号・読み方・説明）。表にすると狭い画面で潰れるので行で出す */
.g-defs { list-style: none; margin: 12px 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.g-defs li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line); }
.g-defs li:first-child { border-top: 0; }
.g-defs .gd-k { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--green-ink); white-space: nowrap; }
.g-defs .gd-k b { font-weight: 800; }
.g-defs .gd-r { font-size: 11.5px; font-weight: 800; color: var(--sub); white-space: nowrap; }
.g-defs p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; line-height: 1.8; }

/* 「リストから外す？」の確認（1枚のときに − を押したときだけ出る） */
.my-confirm { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 11.5px; font-weight: 800; color: var(--sub); }
.my-confirm[hidden] { display: none; }
.my-confirm .mc-yes, .my-confirm .mc-no { min-height: 30px; padding: 4px 14px; border-radius: 999px;
  font: inherit; font-size: 11.5px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.my-confirm .mc-yes { border: 0; background: var(--up); color: #fff; }
.my-confirm .mc-no { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* 本文の丸いしるしは、画面のボタンと同じ色にする（2026-09-25 大森さん）
   欲しい＝オレンジ／持ってる＝緑／在庫あった・入荷してた＝緑／売り切れ＝赤 */
.kbd.is-want { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink2); }
.kbd.is-have { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }
.kbd.is-fav  { background: var(--green-soft); border-color: var(--edge); color: var(--green-ink); }
.kbd.is-ok   { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }
.kbd.is-ng   { background: var(--up-bg); border-color: var(--up); color: var(--ng-ink); }
.kbd.is-bell { background: var(--surface); border-color: var(--edge); color: var(--green-ink); }
.kbd.is-plain { background: var(--surface); border-color: var(--line); color: var(--ink); }

/* 「収録カードを見る」の塗りのボタン（うすい枠だけだと気づかれない。2026-09-25） */
.btn-more.is-primary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px;
  margin: 14px 0 0; padding: 14px 16px; border: 0; border-radius: 16px; text-align: left;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 18px rgba(193,79,2,.28); }
.btn-more.is-primary b { font-family: var(--display); font-size: 16px; font-weight: 800; line-height: 1.45; }
.btn-more.is-primary span { grid-column: 1; font-size: 11.5px; font-weight: 700; color: var(--accent-ink); opacity: .85; line-height: 1.6; text-wrap: pretty; }
.btn-more.is-primary .bm-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 22px; font-weight: 900; color: var(--accent-ink); opacity: 1; }
.btn-more.is-primary:hover { filter: brightness(1.06); }

/* カードページの「このカードについて」（そのカードだけの、数えて分かること） */
.cfacts { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); border: 1px solid var(--line); }
.cf-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cf-h .zou { width: 36px; height: auto; flex: none; }
.cf-h b { font-family: var(--display); font-size: 14px; font-weight: 800; }
.cfacts ul { margin: 0; padding-left: 1.3em; }
.cfacts li { margin: 4px 0; font-size: 13px; line-height: 1.8; text-wrap: pretty; }
.cfacts li b { font-weight: 900; color: var(--green-ink); }

/* カードの絵を大きく見る（カードのページ。押すと画面いっぱい）。
   絵でカードを選ぶ人には、240pxの絵では細かいところが分からないため（2026-09-25 ユーザーテスト。docs/design.md 30章） */
.bigbtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.bigbtn .big { width: 100%; height: auto; display: block; }
.bigbtn-hint { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font-size: 12px; font-weight: 800; }
.bigbtn-hint svg { width: 14px; height: 14px; }
.zoomwrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(10,25,18,.92); cursor: zoom-out; }
.zoomwrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 2%; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.zoomwrap .zoom-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; font-weight: 900; cursor: pointer; }

/* マイリストの「探す」を開いたときの、お店をさがす入口（広告より先に置く。2026-09-26 ユーザーテスト） */
.find-store { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 8px;
  border-radius: 12px; background: var(--green-soft); border: 1.5px solid var(--line); color: var(--ink); }
.find-store svg { width: 18px; height: 18px; flex: none; color: var(--green-ink); }
.find-store span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.find-store b { font-size: 13.5px; font-weight: 800; }
.find-store small { font-size: 11.5px; color: var(--sub); line-height: 1.5; }
.find-store .fs-arrow { margin-left: auto; font-size: 18px; color: var(--sub); }
.find-store:active { opacity: .7; }

/* お店の一覧に出す営業時間（OpenStreetMap に登録がある店だけ。2026-09-26） */
.srow-hours { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-ink); font-size: 11px; font-weight: 800; white-space: nowrap; }

/* 現在地から探せなかったときの「もう一度探す」 */
.near-retry { display: block; margin: 8px 0 0; padding: 9px 16px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }

/* 旧裏面の状態ごとの値段（docs/design.md 33章） */
.grade-list { margin-top: 10px; }
.grade-row { display: grid; grid-template-columns: 5.2em 1fr auto; gap: 10px; align-items: center;
  padding: 9px 14px; border-top: 1px solid var(--line); }
.grade-row:first-child { border-top: 0; }
.grade-row .gr-g { font-weight: 800; font-size: 13.5px; }
.grade-row .gr-y { font-size: 16px; font-weight: 900; text-align: right; }
.grade-row .gr-s { font-size: 11.5px; color: var(--ok-ink); background: var(--ok-bg); padding: 2px 8px; border-radius: 999px; font-weight: 800; white-space: nowrap; }
.grade-row .gr-s.is-none { color: var(--sub); background: var(--bg); }

/* BOXの値段が動いたパック（トップページ。2026-09-26 大森さん） */
.boxmoves { margin-top: 10px; }
.boxmove { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink); }
.boxmove:first-child { border-top: 0; }
.boxmove:hover { background: var(--bg); }
.bm-name { font-weight: 800; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-price { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.bm-from { font-size: 11.5px; color: var(--sub); text-decoration: line-through; }
.bm-arrow { font-size: 11px; color: var(--sub); }
.bm-price b { font-size: 15px; font-weight: 900; }
/* 元の値段が見えないと「動いた」ことが伝わらないので、iPhone幅（375px）では必ず出す。
   本当に狭いときだけ、パック名を2行にして値段を残す（2026-09-26） */
.boxmove { row-gap: 2px; }
@media (max-width: 360px) {
  .boxmove { grid-template-columns: minmax(0, 1fr) auto; }
  .bm-name { grid-column: 1 / -1; white-space: normal; }
}

/* このパックを買えたと報告した人（gacha-gacha の spin-log と同じ見た目） */
.pack-instock{margin:8px 0 0;font-size:13.5px}
.pack-instock .pi-n{font-size:18px;color:var(--rep-ink)}
.spin-log{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
/* 地を直書き（#fff）していたので、ダークモードで白い箱に明るい文字＝真っ白に見えていた（2026-09-27 大森さんが発見）。
   報告のまとまりなので、色は報告の黄色系（--rep）にそろえる */
.spin-log li{display:flex;gap:10px;align-items:center;padding:9px 12px;border-radius:12px;background:var(--rep-bg);border:1px solid var(--rep-edge);color:var(--rep-ink)}
.spin-log .sl-when{flex:none;font-weight:700;font-size:12.5px;white-space:nowrap}
.spin-log .sl-body{min-width:0;display:grid;gap:1px}
.spin-log .sl-store{font-weight:700;font-size:14px;text-decoration:none;overflow-wrap:anywhere}
.spin-log .sl-meta{font-size:11.5px;opacity:.8}

/* ユーザー投稿でお店が増えたお知らせ（24時間だけ出る。ガチャみっけと同じ） */
.fresh-added{margin:4px 0 0;font-size:12px;line-height:1.4}
.fresh-added a{display:inline-block;padding:3px 10px;border-radius:999px;background:#fff;border:1px solid rgba(0,0,0,.1);color:inherit;text-decoration:none}
.fresh-added b{color:#c0561c}

/* 同じシリーズの商品（pokeca_pack_series_html）。名前が長くても、右の金額・矢印を下の行に落とさない */
.series-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.series-row .price { font-weight: 800; white-space: nowrap; }
.series-back { margin: 10px 0 0; }

/* ===== チェーン×市区町村の報告（/report/。inc/chainreport.php）=====
   報告まわりは黄色系（--rep）。人が書いたもの・押してほしいところを緑と見分けるため（13章） */
.cr-cta { display: grid; gap: 2px; margin: 12px 0; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--rep-edge); background: var(--rep); color: var(--rep-ink); text-align: center; }
.cr-cta-main { font-family: var(--display); font-weight: 800; font-size: 16px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.cr-cta-sub { font-size: 12px; }
.cr-app { display: grid; gap: 14px; margin-top: 14px; }
.cr-step, .cr-thanks, .cr-recent { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.cr-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--display); font-size: 17px; font-weight: 800; }
.cr-h small { font-family: inherit; font-size: 12px; color: var(--sub); font-weight: 700; }
.cr-no { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rep); color: var(--rep-ink); font-size: 14px; }
.cr-geo { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--rep-edge); background: var(--rep-bg); color: var(--rep-ink); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.cr-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cr-selects select { width: 100%; min-height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.cr-where-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--rep-bg); border: 1px solid var(--rep-edge); color: var(--rep-ink); font-size: 16px; }
.cr-link { border: 0; background: none; padding: 4px 0; color: var(--green-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.cr-chip small { color: var(--sub); font-weight: 700; margin-left: 2px; }
.cr-chip[aria-pressed="true"] { background: var(--rep-bg); border-color: var(--rep-edge); color: var(--rep-ink); box-shadow: inset 0 0 0 1px var(--rep-edge); }
.cr-chip[aria-pressed="true"]::before { content: "✓ "; font-weight: 900; }
.cr-chip[aria-pressed="true"] small { color: var(--rep-ink); }
.cr-summary { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg); font-weight: 700; font-size: 14px; }
.cr-send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cr-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 8px; border-radius: 14px; border: 1px solid var(--rep-edge); font: inherit; font-family: var(--display); font-size: 15px; font-weight: 800; cursor: pointer; }
.cr-btn.is-got { background: var(--rep); color: var(--rep-ink); }
.cr-btn.is-out { background: var(--surface); color: var(--ink); border-color: var(--line); }
.cr-btn:disabled { opacity: .6; }
.cr-msg { margin: 8px 0 0; font-size: 13px; color: var(--ng-ink); }
.cr-thanks { background: var(--rep-bg); border-color: var(--rep-edge); color: var(--rep-ink); text-align: center; }
.cr-thanks-head { margin: 0 0 4px; font-family: var(--display); font-size: 18px; font-weight: 800; }
.cr-thanks p { margin: 0 0 6px; }
.cr-thanks .cr-link { color: var(--rep-ink); }
.cr-recent-list { display: grid; gap: 6px; }
.cr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--rep-bg); border: 1px solid var(--rep-edge); color: var(--rep-ink); font-size: 13px; }
.cr-row.is-soldout { background: var(--bg); border-color: var(--line); color: var(--ink); }
.cr-row-what { font-weight: 800; white-space: nowrap; }
.cr-row-body b { display: block; }
.cr-row-body small { display: block; opacity: .85; }
.cr-row-ago { font-size: 11px; white-space: nowrap; opacity: .85; }
.cr-warn { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--rep-edge); background: var(--rep-bg); color: var(--rep-ink); font-size: 13px; }
/* hidden 属性を付けたものは必ず隠す。.cr-where-now のように display を決めていると、hidden より勝って出てしまう */
.cr-app [hidden] { display: none !important; }
