/*
 * 店舗ページの見た目（ガチャみっけ ~/gacha-app/wp/theme/style.css から、店舗ページで使う部分をそのまま移植。2026-09-22）
 * .gstore の中だけに効く。色はポケカの配色に変数で対応づけ（--pink→アクセント など）
 * 元を直したら scripts で取り直す：python3 tools/port_gacha_css.py
 */
.gstore { --card: var(--surface); --pink: var(--head); --pink-soft: var(--green-soft); --sky: var(--down-bg); --sky-ink: var(--down); --round: var(--display); }
.gstore .chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  white-space: nowrap; text-decoration: none; font-family: inherit;
}
.gstore .chip small { color: var(--sub); margin-left: 3px; }
.gstore .chip[aria-pressed="true"], .gstore .chip.on { background: var(--pink); border-color: var(--edge); color: var(--head-ink); }
.gstore .chip[aria-pressed="true"] small { color: var(--head-sub); }
.gstore .badge { border-radius: 6px; padding: 2px 6px; }
.gstore .item-info { display: grid; gap: 10px; }
.gstore .item-info h1 { font-family: var(--round); font-size: 21px; line-height: 1.5; margin: 0; }
.gstore .spec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gstore .spec div { display: flex; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.gstore .spec div:last-child { border-bottom: none; }
.gstore .spec dt, .gstore .spec .k { width: 6.5em; color: var(--sub); flex: none; font-size: 13px; }
.gstore .section { padding-block: 22px; border-top: 1px solid var(--line); margin-top: 22px; }
.gstore .section h2 { font-family: var(--round); font-size: 17px; margin: 0 0 12px; }
.gstore .soon { background: var(--card); border: 1px dashed var(--line); border-radius: 14px; padding: 18px; color: var(--sub); font-size: 14px; }
.gstore .tag-links { display: flex; flex-wrap: wrap; gap: 6px; }
.gstore .store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gstore .store-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; display: grid; gap: 4px; text-decoration: none; color: inherit;
  align-content: start;
}
.gstore .store-card .store-name { font-family: var(--round); font-weight: 500; font-size: 14px; line-height: 1.5; }
.gstore .store-card .store-addr { font-size: 12px; color: var(--sub); }
.gstore .store-card .store-hours { font-size: 11px; color: var(--sub); }
.gstore .lead { color: var(--sub); font-size: 14px; margin: 0 0 6px; }
.gstore .map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gstore .map iframe { display: block; width: 100%; height: 260px; border: 0; }
.gstore .note-src { font-size: 11.5px; color: var(--sub); margin-top: 10px; }
.gstore .map-open {
  width: 100%; border: 0; background: linear-gradient(135deg, var(--pink-soft), var(--bg));
  padding: 26px 16px; display: grid; gap: 4px; justify-items: center; cursor: pointer;
  font-family: var(--round); font-size: 14px; color: var(--ink);
}
.gstore .map-open small { font-size: 11.5px; color: var(--sub); font-family: "Noto Sans JP", sans-serif; }
.gstore .map-pin { font-size: 24px; }
.gstore .heat { display: grid; gap: 4px; }
.gstore .heat-row { display: grid; grid-template-columns: 2.2em repeat(5, 1fr); gap: 4px; align-items: center; }
.gstore .heat-head span { font-size: 10.5px; color: var(--sub); text-align: center; }
.gstore .heat-day { font-size: 12px; color: var(--sub); text-align: center; }
.gstore .heat-cell {
  height: 30px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--rep) calc(var(--level) * 100%), var(--rep-bg));
  color: color-mix(in srgb, var(--rep-ink) calc(var(--level) * 100%), var(--sub));
  border: 1px solid var(--line);
}
.gstore .reports { display: grid; gap: 18px; }
.gstore .report-btn {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 6px; display: grid; gap: 3px; justify-items: center; cursor: pointer;
  font-family: inherit; color: inherit; position: relative;
}
.gstore .report-btn:hover { border-color: var(--rep-edge); }
.gstore .report-btn:disabled { opacity: .6; }
.gstore .report-btn.is-mine { background: var(--rep-bg); border-color: var(--rep-edge); }
.gstore .report-btn .emoji { font-size: 20px; line-height: 1.2; }
.gstore .report-btn .txt { font-size: 12.5px; font-family: var(--round); }
.gstore .report-btn .n {
  position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--rep-ink);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.gstore .status { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gstore .status-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 4px; }
.gstore .status-label { font-size: 12px; color: var(--sub); margin: 0; }
.gstore .status-value { font-family: var(--round); font-size: 18px; margin: 0; display: flex; align-items: center; gap: 6px; }
.gstore .status-ago { font-size: 11.5px; color: var(--sub); margin: 0 0 6px; }
.gstore .status-bars { display: grid; gap: 4px; }
.gstore .bar-row { display: grid; grid-template-columns: 5.5em 1fr 2em; gap: 6px; align-items: center; font-size: 11.5px; }
.gstore .bar { background: var(--rep-bg); border-radius: 99px; height: 8px; overflow: hidden; }
.gstore .bar span { display: block; height: 100%; background: var(--rep-edge); }
.gstore .bar-n { text-align: right; color: var(--sub); font-variant-numeric: tabular-nums; }
.gstore .status-note { font-size: 11px; color: var(--sub); margin: 4px 0 0; }
.gstore .recent-report {
  display: grid; grid-template-columns: 1.6em 1fr auto; gap: 8px; align-items: center;
  background: var(--rep-bg); border: 1px solid var(--rep-edge); border-radius: 12px; padding: 8px 12px; font-size: 13px;
}
.gstore .recent-report .body { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.gstore .recent-report .body a { font-family: var(--round); text-decoration: none; }
.gstore .recent-report .body b { color: var(--rep-ink); font-size: 12.5px; }
.gstore .recent-report .body .item { font-size: 12px; color: var(--sub); }
.gstore .recent-report .ago { font-size: 11px; color: var(--sub); white-space: nowrap; }
.gstore .b-type { background: var(--bg); color: var(--sub); border: 1px solid var(--line); font-size: 11px; }
.gstore .voices { display: grid; gap: 14px; }
.gstore .voice-list { display: grid; gap: 8px; }
.gstore .voice {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; display: grid; gap: 5px; position: relative;
}
.gstore .voice.is-new { border-color: var(--edge); }
.gstore .voice-head { display: flex; gap: 8px; align-items: center; font-size: 11px; }
.gstore .voice-ago { color: var(--sub); }
.gstore .voice-body { margin: 0; font-size: 14px; line-height: 1.7; }
.gstore .voice-report {
  position: absolute; top: 8px; right: 10px; background: none; border: 0;
  color: var(--sub); font-size: 11px; cursor: pointer; padding: 2px 4px;
}
.gstore .voice-empty { font-size: 13px; color: var(--sub); margin: 0; }
.gstore .voice-form { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.gstore .voice-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px;
  font-family: inherit; resize: vertical; color: var(--ink);
  
  font-size: 16px;
}
.gstore .voice-topic { cursor: pointer; }
.gstore .voice-topic.on { background: var(--pink); border-color: var(--edge); color: var(--head-ink); }
.gstore .voice-actions { display: flex; align-items: center; gap: 10px; }
.gstore .voice-count { font-size: 11.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.gstore .voice-form .btn { margin-left: auto; border: 0; cursor: pointer; font-family: var(--round); padding: 9px 20px; }
.gstore .voice-result { font-size: 12.5px; margin: 0; }
.gstore .voice-result.ok { color: #1d7a45; }
.gstore .voice-result.ng { color: #b32d2e; }
.gstore .chip .num {
  display: inline-flex; align-items: baseline; gap: 1px; margin-left: 5px;
  background: var(--pink-soft); color: var(--green-ink); border-radius: 999px;
  padding: 1px 7px; font-size: 11px; font-style: normal; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.gstore .chip .num i { font-style: normal; font-size: 9.5px; font-weight: 400; }
.gstore .chip[aria-pressed="true"] .num { background: rgba(0, 0, 0, .10); color: var(--head-ink); }
.gstore .heat-scroll { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gstore .heat { min-width: 560px; }
.gstore .heat-row { grid-template-columns: 2em repeat(11, 1fr); gap: 3px; }
.gstore .heat-head span { font-size: 9.5px; }
.gstore .heat-cell { height: 26px; border-radius: 6px; font-size: 10px; }
.gstore .store-fav {
  display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 10px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 13px; font-family: var(--round); color: var(--ink); cursor: pointer;
}
.gstore .store-fav.is-on { background: var(--pink-soft); border-color: var(--edge); color: var(--green-ink); font-weight: 700; }
.gstore .sf-emoji { font-size: 15px; }
.gstore .section-note { margin: -6px 0 10px; font-size: 12px; color: var(--sub); }
.gstore .chip-more {
  flex: none; white-space: nowrap; align-self: center;
  border: 1px dashed var(--line); background: none; color: var(--sub);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 11.5px; cursor: pointer;
}
.gstore .chip-more:hover { border-color: var(--edge); color: var(--green-ink); }
.gstore .voice-thanks {
  display: grid; gap: 8px; text-align: center; background: var(--pink-soft);
  border-radius: 14px; padding: 14px;
}
.gstore .voice-thanks[hidden] { display: none; }
.gstore .voice-form[hidden] { display: none; }
.gstore .voice-quote {
  margin: 0; background: var(--surface); border-radius: 10px; padding: 8px 12px;
  font-size: 13px; line-height: 1.7; text-align: left;
}
.gstore .crowd-heat .heat-cell { background: #f6f1f3; color: var(--sub); }
.gstore .crowd-heat .heat-cell.c-low { background: #d9f0e2; color: #1d6b43; }
.gstore .crowd-heat .heat-cell.c-mid { background: #fdeccd; color: #8a6414; }
.gstore .crowd-heat .heat-cell.c-high { background: #fbd5d3; color: #a5322d; font-weight: 700; }
.gstore .page-title + .lead { font-size: 11.5px; line-height: 1.8; color: var(--sub); }
.gstore .badge.b-watch {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e8f1fb; color: #2f5fa8; font-weight: 700;
}
.gstore .badge.b-watch .x-mark { width: 13px; height: 13px; font-size: 9px; margin: 0; vertical-align: 0; }
.gstore .mystore-link .badge.b-watch { justify-self: start; margin-top: 3px; font-size: 10px; }
.gstore .item-heat .heat-day { font-size: 10.5px; white-space: nowrap; }
.gstore .item-heat .heat-row { grid-template-columns: 4.4em repeat(11, 1fr); }
.gstore .badge.b-mine {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fdf0da; color: #9c6a14; border: 0;
  font-size: 11px; font-weight: 700; line-height: 1.5;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .01em;
  white-space: nowrap;
}
.gstore .badge.b-mine .bm-star { font-size: 11px; line-height: 1; }
/* 「登録済み」は押して外せるボタン（2026-09-25 大森さん）。押せることが分かるように ✕ を付ける */
.gstore button.badge.b-mine { font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; padding: 5px 8px 5px 10px; }
.gstore button.badge.b-mine:active { opacity: .7; }
.gstore .badge.b-mine .bm-x { display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 2px; border-radius: 50%; background: rgba(156,106,20,.16); font-size: 9px; font-weight: 900; }
.gstore .badge.b-mine[hidden] { display: none; }
.gstore .store-badges, .gstore .store-tags { align-items: center; }
.gstore .store-badges .badge, .gstore .store-tags .badge {
  display: inline-flex; align-items: center; line-height: 1.5;
}
.gstore .store-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px;
}
.gstore .store-tags:empty { display: none; }
.gstore .store-tags .badge { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; }
.gstore .store-tags .badge.b-watch { font-size: 11.5px; }
.gstore .store-tags .badge.b-watch .x-mark { width: 14px; height: 14px; font-size: 9px; }
.gstore .store-tags .badge.b-mine .bm-star { font-size: 12px; }
.gstore .report-btn.is-closed { opacity: .45; cursor: default; }
.gstore .report-btn:disabled { pointer-events: none; }
.gstore .section-note small {
  display: inline-block; margin-top: 3px;
  font-size: 11.5px; color: var(--sub); line-height: 1.75;
}
.gstore .section-note b { color: var(--ink); }
.gstore .voice-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.gstore .voice-like {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 11.5px; font-weight: 700; color: var(--sub);
  cursor: pointer; line-height: 1.4;
}
.gstore .voice-like .vl-ico { font-size: 12px; line-height: 1; }
.gstore .voice-like .vl-n { font-variant-numeric: tabular-nums; }
.gstore .voice-like .vl-n:empty { display: none; }
.gstore .voice-like.is-on {
  background: var(--pink-soft); border-color: var(--edge); color: var(--green-ink);
}
.gstore .voice-like:active { transform: scale(.97); }
.gstore .voice-foot .voice-report { margin-left: auto; }
.gstore .section.js-fold {
  padding: 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); overflow: hidden;
}
.gstore .section.js-fold .fold-toggle .fold-title {
  font-family: var(--round); font-size: 16px; font-weight: 700;
}
.gstore .section.js-fold .fold-body { padding: 0 14px 14px; }
.gstore .section.js-fold .fold-pill { background: var(--sky); color: var(--sky-ink); }
.gstore .store-wreq .section-note { color: var(--sky-ink); margin-bottom: 10px; }
.gstore .near-wrap { position: relative; display: grid; }
.gstore .near-km {
  position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--head); color: var(--head-ink);
  font-size: 13px; font-weight: 800; border-radius: 999px; padding: 3px 10px;
}
.gstore .near-wrap .store-card { padding-right: 76px; }
/* 報告：① 何のパック？ → ② お店の状況は？（押しやすい大きさに） */
.gstore .report-group { display: grid; gap: 10px; }
.gstore .report-step { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-family: var(--round); font-weight: 700; font-size: 16px; }
.gstore .step-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rep); color: var(--rep-ink); display: grid; place-items: center; font-size: 14px; }
.gstore .pack-picks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gstore .pack-pick {
  font: inherit; font-family: var(--round); font-size: 14px; font-weight: 700; line-height: 1.3;
  min-height: 52px; padding: 8px 10px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: inherit; cursor: pointer; text-align: center;
}
.gstore .pack-pick.is-other { grid-column: 1 / -1; min-height: 44px; color: var(--sub); }
.gstore .pack-pick.on { border-color: var(--rep-edge); background: var(--rep-bg); box-shadow: inset 0 0 0 1px var(--rep-edge); }
.gstore .pack-pick.on::before { content: "✓ "; font-weight: 900; }
.gstore .pack-pick:disabled { opacity: .6; }

@media (min-width: 640px) { .gstore .pack-picks { grid-template-columns: repeat(3, 1fr); } }
.gstore .report-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gstore .report-btn { min-height: 76px; }
/* 報告のお礼（ガチャみっけと同じ） */
.gstore .report-thanks { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 16px 12px; border-radius: 14px; background: var(--rep-bg); border: 2px solid var(--rep-edge); }
.gstore .report-thanks[hidden] { display: none; }
.gstore .thanks-head { margin: 0; font-family: var(--round); font-size: 18px; font-weight: 800; }
.gstore .thanks-item { margin: 0; font-size: 13.5px; line-height: 1.7; }
.gstore .thanks-close { background: none; border: 0; padding: 2px 4px; color: var(--sub); font-size: 12px; text-decoration: underline; cursor: pointer; }
.is-pop { animation: gm-pop .45s ease-out; }
@keyframes gm-pop { 0% { transform: scale(.85); opacity: .3; } 60% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
.cap-bit {
  position: fixed; z-index: 9999; pointer-events: none;
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; background: linear-gradient(var(--c) 50%, #fff 50%); box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  animation: gm-burst 1s cubic-bezier(.2,.7,.4,1) forwards;
}
@keyframes gm-burst {
  0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 120px)) scale(1) rotate(260deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .is-pop, .cap-bit { animation: none; } }

/* 見出し：あるぞう＋マーカー線（店舗ページ） */
.gstore .section h2.gh { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin: 0 0 12px; }
.gstore h2.gh img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.gstore h2.gh span { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 2px; line-height: 1.4; }
.gstore h2.gh small { font-family: inherit; font-size: 12px; color: var(--sub); font-weight: 700; }
.gstore .report-step { font-size: 17px; font-weight: 800; }
.gstore .step-no { width: 28px; height: 28px; font-size: 15px; font-weight: 800; background: var(--rep); color: var(--rep-ink); }

/* 報告のお礼カード */
.gstore .report-thanks { display: block; padding: 0; border: 0; background: none; }
.gstore .tk { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 44px 16px 14px; border-radius: 18px;
  background: linear-gradient(135deg, var(--rep) 0%, var(--rep-bg) 100%); color: var(--rep-ink); border: 1px solid var(--rep-edge); box-shadow: 0 10px 24px var(--shadow); }
.gstore .tk-zou { flex: none; width: 88px; height: 88px; object-fit: contain; background: #fff; border-radius: 16px; padding: 4px; }
.gstore .tk-body { display: grid; gap: 8px; min-width: 0; }
.gstore .tk-head { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--rep-ink); letter-spacing: .03em; }
.gstore .tk-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.gstore .tk-pack { font-family: var(--display); font-size: 15px; font-weight: 800; padding: 6px 12px; border-radius: 10px; background: var(--surface); color: var(--rep-ink); }
.gstore .tk-kind { font-family: var(--display); font-size: 15px; font-weight: 800; padding: 6px 12px; border-radius: 10px; }
.gstore .tk-kind.is-instock { background: var(--ok); color: var(--ok-on); }
.gstore .tk-kind.is-soldout { background: #6b7280; color: #fff; }
.gstore .tk-sub { margin: 0; font-size: 12.5px; color: var(--rep-ink); line-height: 1.6; opacity: .85; }
.gstore .tk .thanks-close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); color: var(--rep-ink); font-size: 18px; line-height: 1; text-decoration: none; cursor: pointer; }
@media (max-width: 420px) { .gstore .tk-zou { width: 68px; height: 68px; } .gstore .tk-head { font-size: 18px; } }
.gstore .report-send { justify-self: stretch; font: inherit; font-family: var(--round); font-size: 16px; font-weight: 800; min-height: 50px; border-radius: 14px; border: 1px solid var(--rep-edge); background: var(--rep); color: var(--rep-ink); cursor: pointer; }
.gstore .report-send:disabled { background: var(--line); color: var(--sub); cursor: default; }
/* Xで見かけた投稿（inc/xposts.php）。みんなの報告と同じ黄色系にして、
   「人が書いたもの」だと読まずに分かるようにする（2026-09-28） */
.gstore .xwrap .note { margin: 0 0 10px; }
.gstore .xlist { display: grid; gap: 10px; }
.gstore .xitem { background: var(--rep-bg); border: 1px solid var(--rep-edge); border-radius: 14px; padding: 4px 10px; overflow: hidden; }
.gstore .xitem .twitter-tweet { margin: 6px auto !important; }
.gstore .xitem blockquote { margin: 6px 0; font-size: 13.5px; line-height: 1.8; color: var(--rep-ink); }
.gstore .xitem blockquote p { margin: 0 0 6px; }
.gstore .xitem blockquote a { color: var(--rep-ink); text-decoration: underline; }
