/* 店舗ページ（single-gym.php .gxs）。gym-theme.css のトークン（--gx-*）を使う */

.gxs { background: var(--gx-bg, #f4f5f7); padding-bottom: 40px; }
.gxs-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 上部（画面幅いっぱいの濃い帯） */
.gxs-hero { width: 100vw; margin-left: calc(50% - 50vw); padding: 26px 0 28px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3a2a24 0%, #1d2026 55%, #15171b 100%); }
.gxs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.gxs-chips li { padding: 3px 10px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; }
.gxs-hero__title { margin: 0; font-size: clamp(1.35rem, 3.4vw, 2rem); font-weight: 900; line-height: 1.35; color: #fff; }
.gxs-hero__title span { display: block; margin-top: 4px; font-size: .62em; font-weight: 700; color: var(--gx-accent-2, #ff9a5a); }
.gxs-hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; font-size: .85rem; }
.gxs-hero__rating .gym-stars { font-size: 16px; }
.gxs-hero__rating b { font: 700 1.2rem/1 var(--gx-num); }
.gxs-hero__rating a { color: #ffd2b8; text-decoration: underline; text-underline-offset: 3px; }
.gxs-hero__st { color: rgba(255,255,255,.8); }
.gxs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0 0; }
.gxs-kpis > div { min-width: 0; padding: 12px 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; }
.gxs-kpis > div.is-price { grid-column: 1 / -1; background: linear-gradient(135deg, var(--gx-accent, #ff5a1f), var(--gx-accent-2, #ff8a3d)); border-color: transparent; }
.gxs-kpis dt { margin: 0 0 4px; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.75); }
.gxs-kpis dd { margin: 0; font-size: .8rem; font-weight: 700; color: #fff; line-height: 1.2; }
.gxs-kpis dd b { margin-right: 2px; font: 700 1.5rem/1 var(--gx-num); }
.gxs-kpis .is-price dd b { font-size: 2.2rem; }
.gxs-kpis dd b.is-free { color: #ffe08a; }
.gxs-kpis dd.is-text { font-size: .86rem; line-height: 1.45; }
.gxs-hero__btns { display: grid; gap: 8px; margin: 18px 0 0; }
.gxs-hero__pr { margin: 10px 0 0; font-size: .7rem; color: rgba(255,255,255,.6); }
.gxs-notice { margin: 12px 0 0; padding: 8px 12px; font-weight: 700; background: rgba(255,255,255,.12); border-radius: 8px; }

/* ボタン */
.gxs-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 0 20px; font-size: .98rem; font-weight: 800; color: #fff !important; text-decoration: none !important; text-align: center; background: var(--gx-accent, #ff5a1f); border-radius: 999px; box-shadow: 0 8px 22px rgba(255,90,31,.35); transition: transform .15s, box-shadow .15s; }
.gxs-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,90,31,.45); }
.gxs-btn span { font-size: 1.3rem; line-height: 1; }
.gxs-btn--ghost { color: #fff !important; background: transparent; border: 1.5px solid rgba(255,255,255,.5); box-shadow: none; }
.gxs-btn--ghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.gxs-cta { margin: 18px 0 0; }
.gxs-cta--big { margin: 24px auto; max-width: 520px; }

/* ページ内ナビ */
.gxs-nav { position: sticky; top: 0; z-index: 20; width: 100vw; margin-left: calc(50% - 50vw); background: #fff; border-bottom: 1px solid var(--gx-line, #e5e7eb); }
.gxs-nav ul { display: flex; gap: 4px; margin: 0; padding: 8px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.gxs-nav ul::-webkit-scrollbar { display: none; }
.gxs-nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font-size: .82rem; font-weight: 700; color: var(--gx-text, #14171c); white-space: nowrap; border-radius: 999px; }
.gxs-nav a:hover { color: #fff; background: var(--gx-ink, #1d2026); }
.gxs [id] { scroll-margin-top: 64px; }

/* 本文 */
.gxs-layout { display: block; padding-top: 18px; }
.gxs-main { min-width: 0; display: grid; gap: 14px; }
.gxs-photo { margin: 0; border-radius: 16px; overflow: hidden; }
.gxs-photo img { display: block; width: 100%; height: auto; }
.gxs-card { padding: 22px 18px; background: #fff; border: 1px solid var(--gx-line, #e5e7eb); border-radius: 18px; }
.gxs-en { margin: 0 0 4px; font: 700 .72rem/1 var(--gx-num); letter-spacing: .14em; color: var(--gx-accent, #ff5a1f); }
.gxs .gxs-h2 { position: static; margin: 0 0 16px; padding: 0; font-size: 1.18rem; font-weight: 900; line-height: 1.45; color: var(--gx-text, #14171c); background: none; border: 0; }
.gxs .gxs-h2::before, .gxs .gxs-h2::after { content: none; display: none; }
.gxs .gxs-h3 { margin: 18px 0 8px; padding: 0; font-size: .92rem; font-weight: 800; color: var(--gx-ink, #1d2026); background: none; border: 0; }
.gxs .gxs-h3::before, .gxs .gxs-h3::after { content: none; display: none; }
.gxs-text p { margin: 0 0 .9em; font-size: .93rem; line-height: 1.95; color: #2f353d; }
.gxs-text p:last-child { margin-bottom: 0; }
.gxs-text strong { color: var(--gx-accent, #ff5a1f); }
.gxs-muted { margin: 0; color: var(--gx-muted, #6b7280); }
.gxs-points { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.gxs-points li { position: relative; padding: 12px 14px 12px 44px; font-weight: 700; line-height: 1.55; background: #fff7f2; border-radius: 12px; }
.gxs-points li::before { content: "✓"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; font-size: .72rem; color: #fff; background: var(--gx-accent, #ff5a1f); border-radius: 50%; }
.gxs-points strong { color: var(--gx-accent, #ff5a1f); }

/* 料金 */
.gxs-plans { margin: 0; padding: 0; list-style: none; border: 1px solid var(--gx-line, #e5e7eb); border-radius: 14px; overflow: hidden; }
.gxs-plans li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--gx-line, #e5e7eb); }
.gxs-plans li:first-child { border-top: 0; }
.gxs-plans__name { min-width: 0; }
.gxs-plans__name b { display: block; font-size: .95rem; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.gxs-plans__name small { display: block; margin-top: 3px; font-size: .74rem; line-height: 1.5; color: var(--gx-muted, #6b7280); }
.gxs-plans__price { flex-shrink: 0; text-align: right; }
.gxs-plans__price b { font: 700 1.45rem/1 var(--gx-num); color: var(--gx-accent, #ff5a1f); }
.gxs-plans__price b.is-free { font-family: inherit; font-size: 1.05rem; font-weight: 900; }
.gxs-plans__price span { font-size: .78rem; font-weight: 700; }
.gxs-plans__price small { display: block; margin-top: 4px; font-size: .7rem; color: var(--gx-muted, #6b7280); }
.gxs-dl { margin: 12px 0 0; padding: 0; border: 1px solid var(--gx-line, #e5e7eb); border-radius: 14px; overflow: hidden; }
.gxs-dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--gx-line, #e5e7eb); }
.gxs-dl > div:first-child { border-top: 0; }
.gxs-dl dt { margin: 0; font-size: .82rem; font-weight: 800; color: var(--gx-muted, #6b7280); }
.gxs-dl dd { margin: 0; font-size: .9rem; line-height: 1.7; overflow-wrap: anywhere; }
.gxs-line { display: block; }
.gxs-maplink { margin-left: 6px; font-size: .78rem; font-weight: 700; color: var(--gx-accent, #ff5a1f); }
.gxs-campaign { margin: 12px 0 0; padding: 12px 14px; font-size: .88rem; background: #fff7f2; border-radius: 12px; }
.gxs-note { margin: 10px 0 0; font-size: .74rem; line-height: 1.75; color: var(--gx-muted, #6b7280); }
.gxs-note a { color: var(--gx-accent, #ff5a1f); text-decoration: underline; }

/* 設備・駅・近くのジム */
.gxs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gxs-tags li { padding: 6px 12px 6px 28px; position: relative; font-size: .82rem; font-weight: 700; color: #136c3d; background: #eaf7f0; border-radius: 999px; }
.gxs-tags li::before { content: "✓"; position: absolute; left: 11px; font-size: .74rem; }
.gxs-stations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gxs-stations li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--gx-bg, #f4f5f7); border-radius: 12px; }
.gxs-stations a { font-weight: 800; color: var(--gx-text, #14171c); }
.gxs-stations a:hover { color: var(--gx-accent, #ff5a1f); }
.gxs-stations span { font-size: .74rem; color: var(--gx-muted, #6b7280); }
.gxs-map { position: relative; margin: 14px 0 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.gxs-map .gym-more__mapbtn { position: absolute; inset: 0; width: 100%; height: 100%; }
.gxs-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gxs-nearby { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gxs-nearby a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; color: var(--gx-text, #14171c); background: var(--gx-bg, #f4f5f7); border-radius: 12px; }
.gxs-nearby a:hover b { color: var(--gx-accent, #ff5a1f); }
.gxs-nearby b { font-size: .9rem; font-weight: 800; line-height: 1.4; }
.gxs-nearby span { font-size: .74rem; color: var(--gx-muted, #6b7280); }
.gxs-more { margin: 12px 0 0; font-size: .85rem; font-weight: 700; }
.gxs-more a { color: var(--gx-accent, #ff5a1f); }
.gxs-report { margin: 6px 0 0; font-size: .74rem; text-align: center; color: var(--gx-muted, #6b7280); }
.gxs-report a { color: var(--gx-muted, #6b7280); text-decoration: underline; }

/* 口コミ欄（template-parts/gym-reviews.php）もカードに合わせる */
.gxs .gym-reviews, .gxs .gym-single__section { margin: 0; padding: 22px 18px; background: #fff; border: 1px solid var(--gx-line, #e5e7eb); border-radius: 18px; box-shadow: none; }
.gxs .gx-ads--single { margin: 0; }

/* 右カラム（PC） */
.gxs-side { display: none; }

@media (min-width: 600px) {
  .gxs-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gxs-kpis > div.is-price { grid-column: auto; }
  .gxs-hero__btns { grid-template-columns: auto auto; justify-content: start; }
  .gxs-hero__btns .gxs-btn { width: auto; min-width: 260px; }
  .gxs-card, .gxs .gym-reviews { padding: 26px 26px; }
  .gxs-stations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gxs-nearby { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .gxs-hero { padding: 36px 0 38px; }
  .gxs-kpis { max-width: 760px; }
  .gxs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
  .gxs-side { display: block; position: sticky; top: 72px; }
  .gxs-side__card { padding: 20px; background: #fff; border: 1px solid var(--gx-line, #e5e7eb); border-radius: 18px; box-shadow: 0 10px 30px rgba(20,23,28,.06); }
  .gxs-side__name { margin: 0 0 10px; font-size: .95rem; font-weight: 900; line-height: 1.45; }
  .gxs-side__price { margin: 0 0 12px; font-size: .8rem; font-weight: 700; }
  .gxs-side__price small { display: block; margin-bottom: 2px; color: var(--gx-muted, #6b7280); }
  .gxs-side__price b { margin-right: 2px; font: 700 2.1rem/1 var(--gx-num); color: var(--gx-accent, #ff5a1f); }
  .gxs-side__dl { margin: 0 0 14px; padding: 0; }
  .gxs-side__dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .82rem; border-top: 1px solid var(--gx-line, #e5e7eb); }
  .gxs-side__dl dt { margin: 0; color: var(--gx-muted, #6b7280); }
  .gxs-side__dl dd { margin: 0; font-weight: 700; text-align: right; }
  .gxs-side .gxs-btn { min-height: 50px; font-size: .9rem; }
  .gxs-side__rv { display: block; margin-top: 10px; font-size: .8rem; font-weight: 700; text-align: center; color: var(--gx-accent, #ff5a1f); }
  .gxs .gx-sticky-cta { display: none; }
}

/* パンくずとページ上部のあいだの余白をなくす（エリア・店舗・チェーン・ハブ） */
.single-gym .l-content, .tax-gym_area .l-content, .gxh-body .l-content, .post-type-archive-gym .l-content { padding-top: 0 !important; margin-top: 0 !important; }
.single-gym .l-mainContent__inner > .gym-single:first-child, .single-gym #main_content { margin-top: 0; padding-top: 0; }
.single-gym .p-breadcrumb, .tax-gym_area .p-breadcrumb, .gxh-body .p-breadcrumb, .post-type-archive-gym .p-breadcrumb { margin-bottom: 0 !important; }
.gym-single.gxs { padding-top: 0; }

/* 口コミの投稿フォームは最初から開いておく */
.gxs .gym-reviews__form-wrap { margin-top: 20px; border: 1px solid var(--gx-line, #e5e7eb); border-radius: 14px; overflow: hidden; }
.gxs .gym-reviews__open { margin: 0; padding: 14px 16px; font-size: 1rem; font-weight: 900; color: #fff; cursor: default; background: var(--gx-ink, #1d2026); border: 0; }
.gxs .gym-reviews__open::before, .gxs .gym-reviews__open::after { content: none; display: none; }
/* 公式サイトの画面（引用） */
.gxs-shot { background: #fff; border: 1px solid var(--gx-line, #e5e7eb); }
.gxs-shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.gxs-shot figcaption { padding: 8px 12px; font-size: .74rem; color: var(--gx-muted, #6b7280); border-top: 1px solid var(--gx-line, #e5e7eb); }
.gxs-shot figcaption a { color: inherit; }
