/* サバゲーマニア 共通スタイル */

: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);
}
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.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; }
.logo__mark { color: var(--accent); font-size: 1.1em; }
.site-nav { display: flex; gap: 4px; }
.logo, .site-nav a { white-space: nowrap; }
@media (max-width: 599px) {
  .site-header__inner { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; padding-bottom: 8px; }
  .site-nav { margin: 0 -10px; overflow-x: auto; max-width: calc(100% + 20px); }
}
.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: 16px; max-height: calc(100vh - 32px); overflow: auto; }
  .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; }
.shop a { display: grid; grid-template-columns: minmax(7.5em, auto) 1fr auto; align-items: center; gap: 4px 12px;
          padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
          color: var(--text); text-decoration: none; }
.shop a:hover { border-color: var(--accent); }
.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__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__go { color: var(--accent); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.shop__go::after { content: " ›"; }
.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 a { grid-template-columns: 1fr auto; }
  .shop__price { grid-column: 1 / -1; grid-row: 2; }
}

/* このサイトについて・プライバシーポリシー */
.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; }
