/* サバゲーマニア 共通スタイル */

:root {
  --bg: #f4f3ee;
  --surface: #ffffff;
  --surface-2: #ecebe4;
  --text: #1c1e1a;
  --muted: #5f645a;
  --line: #dcd9cd;
  --accent: #4b5a2a;
  --accent-ink: #ffffff;
  --accent-soft: #e4e9d6;
  --electric: #245a8c;
  --electric-bg: #e3edf7;
  --gas: #974514;
  --gas-bg: #f7e8dc;
  --air: #36663a;
  --air-bg: #e3efe1;
  --soon: #73378f;
  --soon-bg: #f0e4f6;
  --age18: #8c2f2f;
  --radius: 10px;
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11130f;
    --surface: #1a1d18;
    --surface-2: #23271f;
    --text: #e8e7e0;
    --muted: #a2a698;
    --line: #2f3429;
    --accent: #b9c78b;
    --accent-ink: #151810;
    --accent-soft: #2a3120;
    --electric: #8cbbe8;
    --electric-bg: #1b2a38;
    --gas: #f0a777;
    --gas-bg: #3a2416;
    --air: #9fd39a;
    --air-bg: #1f3220;
    --soon: #d6a6ee;
    --soon-bg: #35233f;
    --age18: #f09a9a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー・フッター ---------- */

.pr-note {
  margin: 0;
  padding: 4px 16px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-2);
}
/* 上の帯（ロゴ・ページへのリンク・X のフォロー）は画面の上に固定する */
.site-header { position: sticky; top: 0; z-index: 1100; background: var(--surface); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: 84px; }      /* #shops などへ移った時に、固定した上の帯の下に隠れないように */
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.logo { font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px; }
/* ロゴ画像（assets/logo/sabagemania-logo1983x793.png の余白を切って高さ168pxの WebP にした物。
   白いふち付きで明るい・暗い背景のどちらでも見える。縦横比 約2.4:1 のまま出す） */
.logo { padding: 6px 0; }
.logo__img { display: block; height: 56px; width: auto; }
@media (max-width: 599px) { .logo { padding: 2px 0; } .logo__img { height: 44px; } }
.site-nav { display: flex; gap: 4px; }
.logo, .site-nav a { white-space: nowrap; }
.site-nav { margin-left: auto; }
.x-follow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
            background: var(--text); color: var(--surface); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.x-follow svg { width: 15px; height: 15px; fill: currentColor; }
.x-follow:hover { filter: brightness(1.2); }
/* 下の帯（スマホだけ）: トップ・エアガン・パーツ・フィールド・イベント */
.tabbar { display: none; }
@media (max-width: 599px) {
  .site-header__inner { flex-wrap: nowrap; gap: 8px; min-height: 52px; }
  .site-nav { display: none; }          /* スマホは下の帯で行き来する */
  html { scroll-padding-top: 64px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
            background: var(--accent); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; min-height: 56px;
              color: var(--accent-ink); font-size: 0.68rem; font-weight: 700; text-decoration: none; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current="page"] { background: rgba(255, 255, 255, 0.2); }
}
.site-nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 0.95rem; color: var(--muted); }
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 700; }

.site-footer { margin-top: 64px; padding: 24px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
.site-footer p { margin: 0 0 6px; }
.site-footer__copy { margin-top: 12px !important; }

/* ---------- 共通部品 ---------- */

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.08); }
.button--ghost { background: transparent; color: var(--text); border-color: var(--line); font-weight: 500; }

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.6;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.tag--electric { background: var(--electric-bg); color: var(--electric); }
.tag--gas { background: var(--gas-bg); color: var(--gas); }
.tag--air_cocking { background: var(--air-bg); color: var(--air); }
.tag--soon { background: var(--soon-bg); color: var(--soon); }
.tag--ended { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.tag.age-18 { color: var(--age18); }

.note { color: var(--muted); font-size: 0.85rem; margin: 8px 0; }

.block { margin-top: 40px; }
.block h2 { font-size: 1.15rem; margin-bottom: 12px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.block__head h2 { margin: 0; }
.block__more { font-size: 0.9rem; color: var(--muted); }

.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: 1.6rem; }
.page-head__lead { color: var(--muted); margin: 6px 0 0; }

/* ---------- トップ ---------- */

.hero { padding: 40px 0 8px; }
.hero__title { font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 800; letter-spacing: 0.01em; }
/* 見出しの折り返し位置を指定する（この塊の途中では改行しない） */
.nobr { display: inline-block; }
.hero__lead { color: var(--muted); max-width: 40em; margin: 12px 0 20px; }

.news { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.news__item { display: flex; align-items: baseline; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.news__item:first-child { border-top: 0; }
.news__date { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; min-width: 6.5em; }
.news__kind { font-size: 0.75rem; font-weight: 700; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.news__kind--released, .news__kind--announced, .news__kind--date_set { background: var(--accent-soft); color: var(--accent); }
.news__kind--reshipped { background: var(--electric-bg); color: var(--electric); }
.news__kind--price_changed { background: var(--gas-bg); color: var(--gas); }
.news__name { font-weight: 600; text-decoration: none; }
.news__name:hover { text-decoration: underline; }
@media (max-width: 599px) {
  .news__item { gap: 2px 10px; }
  .news__name { flex-basis: 100%; }   /* 狭い画面では名前を常に2行目に（長さで段がずれないように） */
}

/* ---------- 一覧 ---------- */

.catalog { display: grid; gap: 16px; margin-top: 16px; }
.catalog > * { min-width: 0; }
@media (min-width: 900px) {
  .catalog { grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
  .filter { position: sticky; top: 86px; max-height: calc(100vh - 102px); overflow: auto; }   /* 固定した上の帯（約70px）の下 */
  .filter__toggle { display: none; }
}

.filter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.no-js .filter { display: none; }
.filter__toggle { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.filter__toggle::-webkit-details-marker { display: none; }
.filter__toggle::after { content: "＋"; margin-left: auto; color: var(--muted); }
.filter[open] .filter__toggle::after { content: "－"; }
.filter__active { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 0.75rem; padding: 0 8px; }
.filter__form { padding: 4px 16px 16px; }

.field { border: 0; margin: 0; padding: 12px 0 0; min-width: 0; }
.field__label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; padding: 0; }
.input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* iOS で拡大されないように */
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.range { display: flex; align-items: center; gap: 6px; }
.check { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 0.95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.check__count { margin-left: auto; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
#f-reset { margin-top: 16px; width: 100%; }

.results__count { margin: 0 0 8px; color: var(--muted); }
.results__count strong { color: var(--text); font-size: 1.25rem; font-variant-numeric: tabular-nums; }

.gun-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gun { border-top: 1px solid var(--line); }
.gun:first-child { border-top: 0; }
.gun__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 16px; text-decoration: none; }
.gun__link:hover { background: var(--surface-2); }
.gun__main, .gun__side { display: flex; flex-direction: column; min-width: 0; }
.gun__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.gun__name { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.gun__sub { color: var(--muted); font-size: 0.85rem; }
.gun__side { align-items: flex-end; justify-content: center; text-align: right; }
.gun__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gun__price small { font-weight: 400; font-size: 0.7rem; color: var(--muted); margin-left: 2px; }
.gun__side { max-width: 15em; }
/* 「2026年11月末予約受付 → 2027年4月中旬発売予定」のような長い発売時期は折り返す */
.gun__date { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gun__age { font-size: 0.75rem; color: var(--muted); }
.gun__age.age-18 { color: var(--age18); }

@media (max-width: 599px) {
  .gun__link { grid-template-columns: minmax(0, 1fr); }
  .gun__side { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 12px; text-align: left; max-width: none; }
}

/* ---------- サバゲーフィールドの地図 ---------- */

.field-map { height: 420px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; z-index: 0; }
.field-map--small { height: 280px; }
@media (max-width: 599px) { .field-map { height: 320px; } }
.map-credit { font-size: 0.75rem; }
.tag--outdoor { background: var(--air-bg); color: var(--air); }
.tag--indoor { background: var(--electric-bg); color: var(--electric); }
.tag--range { background: var(--gas-bg); color: var(--gas); }
#f-near { width: 100%; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.facts-list { margin: 0; padding: 12px 16px 12px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts-list li { padding: 2px 0; }

/* ---------- イベント ---------- */

.tag--ev-regular { background: var(--accent-soft); color: var(--accent); }
.tag--ev-beginner { background: var(--air-bg); color: var(--air); }
.tag--ev-night { background: var(--soon-bg); color: var(--soon); }
.tag--ev-event { background: var(--gas-bg); color: var(--gas); }
.tag--ev-charter, .tag--ev-closed { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 599px) {   /* スマホは月を横に並べてスワイプ（縦に積むと予定の一覧が遠くなる） */
  .months { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .month { flex: 0 0 86%; scroll-snap-align: start; }
}
.month { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.month caption { text-align: left; font-weight: 700; padding: 0 0 4px; }
.month th { font-size: 0.7rem; color: var(--muted); font-weight: 600; padding: 6px 0 2px; }
.month td { text-align: center; padding: 1px; }
.month__day { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; font: inherit; font-size: 0.85rem; border: 0; background: none; color: var(--text); padding: 0; }
button.month__day { cursor: pointer; background: var(--accent-soft); font-weight: 700; }
button.month__day:hover { outline: 2px solid var(--accent); }
.month__day.is-picked { background: var(--accent); color: var(--accent-ink); }
.month__day.is-out { color: var(--line); }
.month__day.is-today { box-shadow: inset 0 -2px 0 var(--accent); }
.month__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-top: 1px; opacity: 0.6; }
.dow-5 { color: var(--electric); }
.dow-6 { color: var(--age18); }
button.month__day.is-picked.dow-5, button.month__day.is-picked.dow-6 { color: var(--accent-ink); }
.day { margin-top: 16px; }
.day__head { font-size: 1rem; margin: 0 0 6px; scroll-margin-top: 16px; }
.ev-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ev { border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev__link { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 12px; padding: 10px 16px; text-decoration: none; }
a.ev__link:hover { background: var(--surface-2); }
.ev__time { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.ev__main { display: flex; flex-direction: column; min-width: 0; }
.ev__title { font-weight: 700; overflow-wrap: anywhere; }
.ev__place { font-weight: 700; overflow-wrap: anywhere; }
.ev__title + .ev__place { font-weight: 400; }
.ev__actions { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 0.85rem; }
.ev__actions a { font-weight: 600; }

.empty { padding: 32px 16px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 12px; }

/* ---------- 商品ページ ---------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }

.product__head { padding: 16px 0 8px; }
.product__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.product__name { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; overflow-wrap: anywhere; }
.product__maker { color: var(--muted); margin: 4px 0 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 16px 0 0; }
.facts__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.facts dt { font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 0; }
.specs th { width: 8em; color: var(--muted); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

.variants { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.variants li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; display: flex; flex-direction: column; }
.variants a { font-weight: 700; }
.variants__current { font-weight: 700; color: var(--accent); }
.variants__date { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.product__official { margin-top: 32px; }
.product__official a { color: var(--muted); }

/* ---------- 掲載依頼フォーム ---------- */

.request-form { max-width: 40rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; margin-top: 16px; }
.request-form .button { margin-top: 16px; }
.request-form textarea.input { resize: vertical; }
.req { font-size: 0.7rem; color: var(--age18); font-weight: 700; margin-left: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { margin: 16px 0 0; padding: 10px 16px 10px 32px; border: 1px solid var(--age18); color: var(--age18); border-radius: var(--radius); }
.request-done { max-width: 40rem; margin-top: 16px; padding: 16px 20px; background: var(--accent-soft); border-radius: var(--radius); }
.request-done h2 { margin: 0 0 8px; font-size: 1.1rem; }
.field-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; }

/* ---------- トップ ---------- */

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.block--first { margin-top: 20px; }
.day__head--small { font-size: 0.95rem; margin: 14px 0 6px; }
.about { border-top: 1px solid var(--line); padding-top: 20px; }
.about p { color: var(--muted); max-width: 44em; }
.top-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; }
.top-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px 10px; min-width: 0; }
.ev-compact { list-style: none; margin: 0; padding: 0; }
.ev-compact li { padding: 5px 0; border-top: 1px solid var(--line); font-size: 0.9rem; overflow-wrap: anywhere; }
.ev-compact li:first-child { border-top: 0; }
.ev-compact li > a:not(.ev-compact__link) { font-weight: 700; }
.ev-compact__sub { display: block; color: var(--muted); font-size: 0.8rem; }
.ev-compact__link { font-size: 0.8rem; margin-right: 10px; }
.top-day__more { display: inline-block; margin-top: 4px; font-size: 0.85rem; }

/* 営業状況 */
.status { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 0 8px; border-radius: 999px; }
.status--open { background: var(--air-bg); color: var(--air); }
.status--unknown, .status--down, .status--closed_notice, .status--paused { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.note-inline { color: var(--muted); font-size: 0.85rem; }

/* SNS */
.sns-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sns { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem;
       text-decoration: none; font-weight: 600; }
.sns:hover { background: var(--surface-2); }

/* 通販で探す（エアガンのページ） */
.pr { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px;
      font-size: 0.7rem; font-weight: 600; color: var(--muted); vertical-align: middle; }
.shops__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* 1店1行: 店名・最安値・ボタン（見つかった商品と、その店の検索結果） */
.shop { display: grid; grid-template-columns: minmax(7.5em, auto) 1fr auto; align-items: center; gap: 6px 12px;
        padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.shop__name { font-weight: 600; }
.shop__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.shop__price strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.shop__price small { color: var(--muted); font-size: 0.75rem; }
.shop__price .shop__min { color: var(--accent); font-weight: 700; }
.shop__best { font-style: normal; font-size: 0.7rem; font-weight: 700; padding: 1px 6px; border-radius: 4px;
              background: var(--accent-soft); color: var(--accent); }
.shop__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.shop__go { display: inline-block; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 8px;
            font-size: 0.85rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.shop__go--main { background: var(--accent); color: var(--accent-ink); }
.shop__go--sub { background: transparent; color: var(--accent); }
.shop__go:hover { filter: brightness(1.1); }
.shops__credit { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.7rem; margin: 4px 0 0; }
.shops__credit a { color: var(--muted); }
@media (max-width: 480px) {
  .shop { grid-template-columns: 1fr; }
  .shop__links { justify-content: flex-start; }
}

/* このサイトについて・プライバシーポリシー */
.prose { max-width: 46em; }
.prose ul { padding-left: 1.3em; margin: 0; }
.prose li { margin: 6px 0; }
.prose p { margin: 8px 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- 商品画像（通販の API が返した画像。大きさは固定） ---------- */
/* 一覧: 名前とメーカー名の2行（約51px）と同じ 52px 四方。画像が無くても同じ枠 */
.gun__body { display: flex; gap: 10px; align-items: flex-start; }
.gun__text { display: flex; flex-direction: column; min-width: 0; }
.gun__thumb { flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; display: block; }
.gun__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gun__thumb--none { background: var(--surface-2); }
/* 商品ページ: 見出しの右に 240px 四方（スマホは見出しの下に 200px 四方） */
.product__head--img { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px 24px; align-items: start; }
.product__img { margin: 0; width: 240px; }
.product__img-box { display: block; width: 240px; height: 240px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.product__img-box img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product__img figcaption { margin-top: 4px; font-size: 0.72rem; color: var(--muted); overflow-wrap: anywhere; }
.product__img figcaption a { color: var(--muted); }
@media (max-width: 599px) {
  .product__head--img { grid-template-columns: minmax(0, 1fr); }
  .product__img { width: 200px; }
  .product__img-box { width: 200px; height: 200px; }
}

/* ---------- 「持っている」ボタン・所持品リスト・所持率ランキング ---------- */
.own { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; padding: 12px 14px;
       background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.own__btn { padding: 8px 16px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent);
            font: inherit; font-weight: 700; cursor: pointer; }
.own__btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.own__note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.own__msg:not(:empty) { color: var(--text); margin-right: 8px; }
.my-link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
           color: var(--text); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.my-link:hover, .my-link[aria-current="page"] { background: var(--surface-2); }
.my-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.my-link__n { min-width: 1.4em; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
              font-size: 0.7rem; line-height: 1.5; text-align: center; }
.site-header__inner > .my-link { margin-left: 4px; }
@media (max-width: 599px) {
  .site-header__inner > .my-link { margin-left: auto; padding: 6px 8px; }
}
.my h1, .ranking h1 { font-size: 1.5rem; margin: 16px 0 8px; }
.my h2 { font-size: 1.1rem; margin: 20px 0 8px; }
.my-item { display: flex; align-items: center; }
.my-item .gun__link { flex: 1 1 auto; min-width: 0; }
.my-item__remove { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
                   color: var(--muted); font: inherit; font-size: 0.8rem; cursor: pointer; }
.rank-list__no { flex: 0 0 2em; align-self: center; font-weight: 800; font-size: 1.1rem; text-align: center; color: var(--accent); }

/* 所持品リストの称号と合計 */
.my-summary { margin: 16px 0; padding: 16px 18px; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); }
.my-summary__label { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.my-summary__level { font-weight: 400; }
.my-summary__title { margin: 2px 0 0; font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }
.my-summary__comment { margin: 2px 0 12px; }
.my-summary__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.my-summary__nums div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.my-summary__nums dt { font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.my-summary__nums dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.my-summary__bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.my-summary__bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.my-summary__next p { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }
.my-summary__share { margin: 12px 0 0; }
.my-titles { margin-top: 10px; font-size: 0.85rem; }
.my-titles summary { cursor: pointer; color: var(--muted); }
.my-titles ol { margin: 6px 0 0; padding-left: 1.6em; }
.my-titles li.is-current { font-weight: 800; color: var(--accent); }

.my-tabs { display: flex; gap: 6px; margin: 16px 0 0; border-bottom: 2px solid var(--line); }
.my-tab { padding: 8px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--surface-2);
          color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; margin-bottom: -2px; }
.my-tab[aria-selected="true"] { background: var(--surface); color: var(--accent); border-color: var(--accent); border-bottom: 2px solid var(--surface); }
.my-tab__n { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--surface-2);
             font-size: 0.75rem; text-align: center; }
.my-tabs + .my-summary { margin-top: 12px; }
.my-summary__head { display: flex; align-items: center; gap: 14px; }
.my-medal { flex: 0 0 80px; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.my-medal img { width: 66%; height: 58%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.my-medal--gun { background: radial-gradient(circle at 35% 30%, #6e8040, #34401c 75%);
                 box-shadow: inset 0 0 0 3px #c9a640, inset 0 0 0 5px #34401c, 0 2px 6px rgba(0, 0, 0, 0.25); }
.my-medal--part { border-radius: 0; background: url("badge-gear.svg") center / contain no-repeat; }
.my-medal--part img { width: 56%; height: 50%; }
.my-titles li img { width: 28px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.my-credit { margin-top: 24px; }
.my-medal img.is-wide { width: 88%; height: 46%; }      /* 少尉より上の記章は横長の肩章 */
.my-medal--part img.is-wide { width: 72%; height: 40%; }

/* 所持品リストの個数（同じ物を複数持つ時） */
.my-item__tools { display: flex; align-items: center; gap: 8px; padding-right: 12px; flex: 0 0 auto; }
.my-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.my-qty button { width: 30px; height: 30px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.my-qty button:disabled { color: var(--muted); opacity: 0.5; cursor: default; }
.my-qty__n { min-width: 3em; text-align: center; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
  .my-item { flex-wrap: wrap; }
  .my-item .gun__link { flex: 1 1 100%; }
  .my-item__tools { width: 100%; justify-content: flex-end; padding: 0 12px 10px; }
}

/* 手放した物・愛用の消耗品・称号ごとの人数 */
.my-item__btn { padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
                color: var(--text); font: inherit; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
.my-item__btn.my-item__remove { color: var(--muted); }
.my-item--past .gun__link { opacity: 0.6; }
.my-sub { margin-top: 24px; }
.my-sub h2 { font-size: 1.05rem; margin: 0 0 8px; }
.my-sub h2 small { font-weight: 400; color: var(--muted); font-size: 0.75rem; margin-left: 6px; }
.my-summary__people { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }
.my-summary__extra { margin: 8px 0 0; font-size: 0.85rem; }
.my-titles__n { margin-left: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.owned-stats__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.owned-titles img { width: 28px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 4px; }
.owned-titles td { font-variant-numeric: tabular-nums; }
.owned-titles tr.is-zero { color: var(--muted); }
.owned-titles tr.is-zero img { opacity: 0.45; }
@media (max-width: 480px) { .owned-stats__nums { grid-template-columns: 1fr 1fr; } .owned-stats__nums div:first-child { grid-column: 1 / -1; } }
/* 所持品リストのジャンル（電動ガン・ガスガン…／マガジン・光学機器…）の見出し */
.my-genre { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-size: 1rem; }
.my-genre:first-child { margin-top: 12px; }
.my-genre small { font-weight: 400; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
/* 上の枠のジャンルごとの内訳（電動ガン 2丁 ¥107,600 …） */
.my-breakdown { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; padding: 0; list-style: none; }
.my-breakdown li { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; font-size: 0.85rem; }
.my-breakdown strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.my-breakdown small { font-size: 0.75rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
.my-breakdown .tag--other, .my-breakdown .tag--co2 { background: var(--surface-2); color: var(--text); }

/* 行ったことある（施設のページ） */
.visit__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.visit__again { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
                color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.visit__again[aria-pressed="true"] { color: #c0392b; border-color: #e6a8a1; background: #fdf0ee; }
.visit__tags { margin-top: 12px; }
.visit__tags-label { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted); }
.visit__tag-list, .visit__counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.visit__tag { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
              color: var(--text); font: inherit; font-size: 0.85rem; cursor: pointer; }
.visit__tag[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.visit__tag[aria-pressed="true"]::before { content: "✓ "; }
.visit__counts { margin-top: 10px; }
.visit__counts li { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8rem; }
.visit__counts strong { margin-left: 4px; }
/* マイリストの行ったフィールド: 制覇の地図 */
.my-medal--field { background: var(--accent-soft); font-size: 40px; line-height: 1; }
.pref-map { display: grid; gap: 6px; margin: 0 0 12px; }
.pref-map__region { display: grid; grid-template-columns: 6.5em 1fr; gap: 6px; align-items: start; }
.pref-map__name { font-size: 0.75rem; color: var(--muted); font-weight: 700; padding-top: 3px; }
.pref-map ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pref-chip { min-width: 3.2em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted);
             font-size: 0.75rem; text-align: center; }
.pref-chip.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
@media (max-width: 480px) { .pref-map__region { grid-template-columns: 1fr; gap: 2px; } }
/* フィールドの人気ランキング: 良かったところ別 */
.tag-rankings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 16px; }
.tag-ranking h3 { font-size: 0.95rem; margin: 8px 0 6px; }
.page-head__links { margin: 4px 0 0; font-size: 0.9rem; }
