/* ==========================================================================
   ジムDB TOPページ（gym-theme.css のトークンを使用。チャコール × オレンジ）
   モバイルファースト。クラスは .gxf- で始まる。
   ========================================================================== */

/* SWELL の枠を TOP では全幅に */
.gxf-body #content.l-content { max-width: none; padding: 0 !important; margin: 0; display: block; }
.gxf-body.top #content { padding-top: 0 !important; }
.gxf-body .l-mainContent { width: 100%; }
.gxf-body #sidebar { display: none; }

.gxf { --gxf-pad: 16px; background: #fff; color: var(--gx-text); overflow-x: clip; font-feature-settings: "palt"; }
.gxf *, .gxf *::before, .gxf *::after { box-sizing: border-box; }
.gxf a { text-decoration: none; }
.gxf-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gxf-pad); }
.gxf-wrap--narrow { max-width: 860px; }
.gxf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gxf-ico { flex-shrink: 0; width: 1.25em; height: 1.25em; }

/* ---------- ボタン ---------- */
.gxf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px;
  font-size: 1rem; font-weight: 800; line-height: 1.2; color: #fff; background: var(--gx-accent); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 90, 31, .35); transition: transform .15s, background .15s;
}
.gxf-btn:hover { background: #e94b12; transform: translateY(-1px); color: #fff; }
.gxf-btn--sm { min-height: 40px; padding: 0 16px; font-size: .85rem; box-shadow: none; }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.gxf-hero {
  position: relative; color: #fff; padding: 28px 0 72px; overflow: hidden;
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(255, 90, 31, .32), transparent 62%),
    radial-gradient(500px 300px at -10% 110%, rgba(255, 138, 61, .14), transparent 60%),
    linear-gradient(150deg, var(--gx-ink) 0%, var(--gx-ink-2) 55%, var(--gx-ink-3) 100%);
}
.gxf-hero::before { /* 床ラインのストライプ */
  content: ""; position: absolute; right: -80px; bottom: -40px; width: 520px; height: 220px; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.045) 0 16px, transparent 16px 32px); transform: rotate(-8deg);
}
.gxf-hero__grid { position: relative; display: grid; gap: 22px; }
.gxf-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.gxf-hero__eyebrow b { font: 700 1.05rem/1 var(--gx-num); color: var(--gx-accent-2); letter-spacing: .02em; }
.gxf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gx-accent); box-shadow: 0 0 0 4px rgba(255,90,31,.25); }
.gxf-hero__title { margin: 0; color: #fff; font-size: clamp(1.75rem, 7.4vw, 3.1rem); font-weight: 900; line-height: 1.28; letter-spacing: .01em; }
.gxf-hero__title em { font-style: normal; color: var(--gx-accent); background: linear-gradient(transparent 70%, rgba(255,90,31,.22) 70%); }
.gxf-hero__lead { margin: 12px 0 0; max-width: 34em; font-size: .9rem; line-height: 1.75; color: rgba(255,255,255,.75); }

/* 検索 */
.gxf-search { position: relative; display: flex; align-items: center; margin: 20px 0 0; padding: 6px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.gxf-search__ico { display: grid; place-items: center; width: 36px; color: var(--gx-muted); }
.gxf-search__input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 6px; font-size: 16px; color: var(--gx-text); background: transparent; border: 0; outline: 0; -webkit-appearance: none; appearance: none; }
.gxf-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.gxf-search__input::placeholder { color: #9aa1ab; }
.gxf-search__btn { flex-shrink: 0; height: 48px; padding: 0 18px; font-size: .95rem; font-weight: 800; color: #fff; background: var(--gx-ink); border: 0; border-radius: 12px; cursor: pointer; }
.gxf-search__btn:hover { background: var(--gx-accent); }
.gxf-search:focus-within { box-shadow: 0 0 0 3px rgba(255,90,31,.55), 0 14px 40px rgba(0,0,0,.35); }
.gxf-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: 60vh; margin: 0; padding: 6px; overflow-y: auto; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(20,23,28,.28); }
.gxf-suggest a { display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--gx-text); border-radius: 10px; }
.gxf-suggest a:hover, .gxf-suggest a.is-cur { background: #fff4ee; }
.gxf-suggest__k { flex-shrink: 0; min-width: 4.6em; padding: 3px 6px; font-size: .66rem; font-weight: 800; text-align: center; color: var(--gx-ink); background: var(--gx-bg); border-radius: 6px; }
.gxf-suggest__n { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .92rem; overflow-wrap: anywhere; }
.gxf-suggest__n small { display: block; font-size: .72rem; font-weight: 400; color: var(--gx-muted); }
.gxf-suggest__c { flex-shrink: 0; font: 700 .95rem/1 var(--gx-num); color: var(--gx-accent); }
.gxf-suggest__empty { padding: 12px; font-size: .85rem; color: var(--gx-muted); }

.gxf-hero .gxf-btn--near { width: 100%; margin: 14px 0 0; }
.gxf-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.gxf-quick a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.gxf-quick a:hover { background: var(--gx-accent); border-color: var(--gx-accent); color: #fff; }

.gxf-hero__kicker { display: block; margin-bottom: 6px; font-size: .42em; font-weight: 800; letter-spacing: .12em; color: var(--gx-accent-2); }
.gxf-hero__compare { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 14px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,138,61,.55); border-radius: 14px; }
.gxf-hero__compare:hover { color: #fff; background: rgba(255,90,31,.18); }
.gxf-hero__compare-k { flex-shrink: 0; padding: 4px 8px; font-size: .68rem; font-weight: 800; color: var(--gx-ink); background: var(--gx-accent-2); border-radius: 6px; }
.gxf-hero__compare-t { flex: 1 1 auto; min-width: 0; font-size: .88rem; font-weight: 800; line-height: 1.45; }
.gxf-hero__compare .gxf-ico { color: var(--gx-accent-2); }
.gxf-gpanel__note a { color: var(--gx-accent); font-weight: 700; text-decoration: underline; }

/* ヒーローの数字 */
.gxf-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; align-self: end; }
.gxf-hstat { margin: 0; padding: 14px 14px 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--gx-radius); }
.gxf-hstat dt { font-size: .72rem; color: rgba(255,255,255,.68); }
.gxf-hstat dd { margin: 6px 0 0; color: #fff; white-space: nowrap; }
.gxf-hstat b { font: 700 2rem/1 var(--gx-num); letter-spacing: .01em; }
.gxf-hstat small { margin: 0 2px; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.8); }
.gxf-hstat--accent { grid-column: 1 / -1; background: linear-gradient(135deg, var(--gx-accent), var(--gx-accent-2)); border-color: transparent; }
.gxf-hstat--accent dt { color: rgba(255,255,255,.92); }
.gxf-hstat--accent b { font-size: 2.8rem; }
.gxf-hstat--accent small { font: 700 1.4rem/1 var(--gx-num); color: #fff; }

/* ==========================================================================
   現在地から（ヒーローに重なるカード）
   ========================================================================== */
.gxf-near { position: relative; z-index: 2; margin-top: -48px; scroll-margin-top: 70px; }
.gxf-near__card { padding: 18px 16px; background: #fff; border-radius: 18px; box-shadow: 0 2px 4px rgba(20,23,28,.04), 0 16px 44px rgba(20,23,28,.14); border: 1px solid var(--gx-line); }
.gxf-near.is-target .gxf-near__card, .gxf-near:target .gxf-near__card { border-color: var(--gx-accent); box-shadow: 0 0 0 4px rgba(255,90,31,.18), 0 16px 44px rgba(20,23,28,.14); }
.gxf-near__head { display: flex; gap: 12px; align-items: flex-start; }
.gxf-near__ico { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; color: #fff; background: var(--gx-accent); border-radius: 12px; }
.gxf-near__ico .gxf-ico { width: 24px; height: 24px; }
.gxf-near__title { margin: 2px 0 0; padding: 0; font-size: 1.15rem; font-weight: 900; line-height: 1.35; color: var(--gx-text); border: 0; background: none; }
.gxf-near__title::before, .gxf-near__title::after { content: none; }
.gxf-near__note { margin: 4px 0 0; font-size: .78rem; line-height: 1.6; color: var(--gx-muted); }
.gxf-chips { display: flex; gap: 6px; margin: 14px -16px 0; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
.gxf-chips::-webkit-scrollbar { display: none; }
.gxf-chip { flex-shrink: 0; min-height: 36px; padding: 0 14px; font-size: .82rem; font-weight: 700; color: var(--gx-ink); background: var(--gx-bg); border: 1px solid var(--gx-line); border-radius: 999px; cursor: pointer; }
.gxf-chip.is-on { color: #fff; background: var(--gx-ink); border-color: var(--gx-ink); }
/* gym-near-inline をこの欄の主ボタンとして表示 */
.gxf .gxf-near .gx-near-inline { display: block; margin: 12px 0 0; }
.gxf .gxf-near .gx-near-inline__btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 20px; font-size: 1rem; font-weight: 800; color: #fff;
  background: var(--gx-accent); border: 0; border-radius: 999px; box-shadow: 0 8px 22px rgba(255,90,31,.32);
}
.gxf .gxf-near .gx-near-inline__btn:hover { background: #e94b12; }
.gxf .gxf-near .gx-near-inline__status { margin: 8px 0 0; font-size: .82rem; color: var(--gx-muted); text-align: center; }
.gxf .gxf-near .gx-near-inline__status:empty { display: none; }
.gxf .gxf-near .gx-near-inline__results { margin-top: 12px; }
.gxf .gxf-near .gx-near-inline__results:empty { display: none; }
.gxf .gx-near-dist { margin: 6px 0 -10px; }

/* ==========================================================================
   セクション共通
   ========================================================================== */
.gxf-sec { padding: 52px 0; scroll-margin-top: 60px; }
.gxf-sec--gray { background: var(--gx-bg); }
.gxf-sec--dark { color: #fff; background: linear-gradient(160deg, var(--gx-ink), var(--gx-ink-3)); }
.gxf-head { margin: 0 0 22px; }
.gxf-head__en { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 .85rem/1 var(--gx-num); letter-spacing: .2em; color: var(--gx-accent); }
.gxf-head__en::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--gx-accent); }
.gxf .gxf-head__title { margin: 0; padding: 0; font-size: clamp(1.4rem, 5.6vw, 2rem); font-weight: 900; line-height: 1.3; color: inherit; background: none; border: 0; }
.gxf .gxf-head__title::before, .gxf .gxf-head__title::after { content: none; }
.gxf-head__lead { margin: 8px 0 0; font-size: .86rem; line-height: 1.7; color: var(--gx-muted); }
.gxf-head--inv .gxf-head__lead { color: rgba(255,255,255,.7); }
.gxf-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 800; color: var(--gx-accent); }
.gxf-more:hover { color: #e94b12; }
.gxf-more .gxf-ico { width: 1.1em; height: 1.1em; transition: transform .15s; }
.gxf-more:hover .gxf-ico { transform: translateX(3px); }
.gxf-more--center { display: flex; justify-content: center; }

/* ==========================================================================
   ジャンル
   ========================================================================== */
.gxf-gtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gxf-gtile {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico name" "ico n" "sub sub"; column-gap: 10px; align-items: center;
  padding: 14px 12px 12px; color: var(--gx-text); background: #fff; border: 1.5px solid var(--gx-line); border-radius: 14px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gxf-gtile:hover { border-color: var(--gx-accent); color: var(--gx-text); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,23,28,.08); }
.gxf-gtile__ico { grid-area: ico; display: grid; place-items: center; width: 42px; height: 42px; color: var(--gx-accent); background: #fff1ea; border-radius: 12px; }
.gxf-gtile__ico .gxf-ico { width: 24px; height: 24px; }
.gxf-gtile__name { grid-area: name; font-size: .92rem; font-weight: 800; line-height: 1.3; }
.gxf-gtile__n { grid-area: n; font-size: .72rem; color: var(--gx-muted); }
.gxf-gtile__n b { font: 700 1.15rem/1 var(--gx-num); color: var(--gx-text); margin-right: 1px; }
.gxf-gtile__sub { grid-area: sub; margin-top: 8px; padding-top: 8px; font-size: .7rem; color: var(--gx-muted); border-top: 1px dashed var(--gx-line); }
.gxf-gtile.is-on { color: #fff; background: var(--gx-ink); border-color: var(--gx-ink); }
.gxf-gtile.is-on .gxf-gtile__ico { color: #fff; background: var(--gx-accent); }
.gxf-gtile.is-on .gxf-gtile__n, .gxf-gtile.is-on .gxf-gtile__sub { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.18); }
.gxf-gtile.is-on .gxf-gtile__n b { color: #fff; }

.gxf-gpanels { margin-top: 14px; }
.gxf-gpanel { display: none; padding: 18px 16px; background: var(--gx-bg); border-radius: 16px; scroll-margin-top: 70px; }
.gxf-gpanel.is-open, .gxf-gpanel:target { display: block; }
.gxf-gpanel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.gxf .gxf-gpanel__title { margin: 0; padding: 0; font-size: 1.05rem; font-weight: 900; background: none; border: 0; }
.gxf .gxf-gpanel__title::before, .gxf .gxf-gpanel__title::after { content: none; }
.gxf-gpanel__note { margin: -4px 0 12px; font-size: .78rem; color: var(--gx-muted); }
.gxf-gpanel__regions { display: grid; gap: 12px; }
.gxf-gpanel__rname { margin: 0 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; color: var(--gx-muted); }
.gxf-plinks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gxf-plinks a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 8px 12px; font-size: .85rem; font-weight: 700; color: var(--gx-text); background: #fff; border: 1px solid var(--gx-line); border-radius: 10px; }
.gxf-plinks a span { font: 700 .9rem/1 var(--gx-num); color: var(--gx-accent); }
.gxf-plinks a:hover { border-color: var(--gx-accent); color: var(--gx-accent); }

/* ==========================================================================
   都道府県
   ========================================================================== */
.gxf-regions { display: grid; gap: 12px; }
.gxf-region { padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--gx-line); }
.gxf .gxf-region__name { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0; font-size: .9rem; font-weight: 900; background: none; border: 0; }
.gxf .gxf-region__name::before { content: ""; position: static; width: 4px; height: 1em; border-radius: 2px; background: var(--gx-accent); }
.gxf .gxf-region__name::after { content: none; }
.gxf-prefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.gxf-prefs a { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; color: var(--gx-text); background: var(--gx-bg); border-radius: 10px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.gxf-prefs a:hover { background: #fff; border-color: var(--gx-accent); }
.gxf-prefs__name { font-size: .86rem; font-weight: 800; line-height: 1.2; }
.gxf-prefs__n { font: 600 .9rem/1 var(--gx-num); color: var(--gx-accent); }
.gxf-prefs__n::after { content: "件"; margin-left: 1px; font: 500 .66rem/1 sans-serif; color: var(--gx-muted); }

/* ==========================================================================
   人気エリア（タブ）
   ========================================================================== */
.gxf-tabs { display: flex; gap: 6px; margin: 0 calc(var(--gxf-pad) * -1) 14px; padding: 0 var(--gxf-pad) 4px; overflow-x: auto; scrollbar-width: none; }
.gxf-tabs::-webkit-scrollbar { display: none; }
.gxf-tab { flex-shrink: 0; min-height: 40px; padding: 0 16px; font-size: .88rem; font-weight: 800; color: var(--gx-ink); background: #fff; border: 1.5px solid var(--gx-line); border-radius: 999px; cursor: pointer; }
.gxf-tab.is-on { color: #fff; background: var(--gx-accent); border-color: var(--gx-accent); }
.gxf-pane { display: grid; gap: 14px; padding: 16px; background: var(--gx-bg); border-radius: 16px; }
.gxf-pane[hidden] { display: none; }
.gxf .gxf-pane__h { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 0; font-size: .92rem; font-weight: 900; background: none; border: 0; }
.gxf .gxf-pane__h::before, .gxf .gxf-pane__h::after { content: none; }
.gxf-pane__h .gxf-ico { color: var(--gx-accent); }
.gxf-alinks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gxf-alinks a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 8px 12px; font-size: .85rem; font-weight: 700; color: var(--gx-text); background: #fff; border: 1px solid var(--gx-line); border-radius: 999px; }
.gxf-alinks a span { font: 600 .85rem/1 var(--gx-num); color: var(--gx-muted); }
.gxf-alinks a:hover { color: var(--gx-accent); border-color: var(--gx-accent); }
.gxf-pane .gxf-more { margin-top: 0; }

/* ==========================================================================
   データ
   ========================================================================== */
.gxf-data { display: grid; gap: 14px; }
.gxf-dcard { min-width: 0; padding: 20px 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; }
.gxf-dcard__k { margin: 0; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.75); }
.gxf-dcard__k--sub { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.gxf-dcard__big { margin: 6px 0 0; font: 700 4rem/1 var(--gx-num); color: var(--gx-accent); letter-spacing: .01em; }
.gxf-dcard__big small { font-size: .45em; margin-right: 2px; }
.gxf-dcard__note { margin: 6px 0 0; font-size: .74rem; color: rgba(255,255,255,.6); }
.gxf-bars { margin: 12px 0 0; padding: 0; list-style: none; }
.gxf-bars li { display: grid; grid-template-columns: 7.8em 1fr 4.4em; align-items: center; gap: 8px; padding: 5px 0; font-size: .76rem; }
.gxf-bars__l { color: rgba(255,255,255,.8); white-space: nowrap; }
.gxf-bars__t { height: 10px; background: rgba(255,255,255,.07); border-radius: 5px; overflow: hidden; }
.gxf-bars__b { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--gx-accent), var(--gx-accent-2)); border-radius: 5px; }
.gxf-bars__v { font: 700 .95rem/1 var(--gx-num); text-align: right; white-space: nowrap; }
.gxf-bars__v small { margin-left: 4px; font: 500 .66rem/1 sans-serif; color: rgba(255,255,255,.55); }
.gxf-gtable { width: 100%; margin: 12px 0 0; border-collapse: collapse; font-size: .84rem; table-layout: fixed; }
.gxf-gtable th, .gxf-gtable td { padding: 9px 4px; border: 0; border-bottom: 1px solid rgba(255,255,255,.09); background: none; text-align: left; vertical-align: middle; }
.gxf-gtable thead th { padding-top: 0; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.55); }
.gxf-gtable th:first-child { width: 48%; }
.gxf-gtable td { text-align: right; color: #fff; }
.gxf-gtable thead th:not(:first-child) { text-align: right; }
.gxf-gtable tbody th a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.gxf-gtable tbody th a:hover { color: var(--gx-accent-2); }
.gxf-gtable td b { font: 700 1.1rem/1 var(--gx-num); }
.gxf-gtable td:last-child b { color: var(--gx-accent-2); }

/* ==========================================================================
   チェーン
   ========================================================================== */
.gxf-chains { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gxf-chain { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px; color: var(--gx-text); background: #fff; border: 1px solid var(--gx-line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.gxf-chain:hover { color: var(--gx-text); border-color: var(--gx-accent); box-shadow: 0 10px 24px rgba(20,23,28,.08); }
.gxf-chain__rank { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; font: 700 1.1rem/1 var(--gx-num); color: #fff; background: var(--gx-ink); border-radius: 10px; }
.gxf-chain__body { min-width: 0; }
.gxf-chain__name { display: block; font-size: .98rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.gxf-chain__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: .74rem; color: var(--gx-muted); }
.gxf-chain__meta b { font: 700 1rem/1 var(--gx-num); color: var(--gx-text); }
.gxf-chain__type { padding: 2px 8px; font-size: .68rem; font-weight: 700; color: var(--gx-ink); background: #fff1ea; border-radius: 999px; }

/* ==========================================================================
   選び方・FAQ
   ========================================================================== */
.gxf-guide { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: gxg; }
.gxf-guide li { position: relative; padding: 20px 18px 18px; background: #fff; border-radius: 16px; border: 1px solid var(--gx-line); counter-increment: gxg; }
.gxf-guide li::before { content: counter(gxg, decimal-leading-zero); display: block; margin-bottom: 6px; font: 700 2.2rem/1 var(--gx-num); color: var(--gx-accent); }
.gxf .gxf-guide h3 { margin: 0 0 8px; padding: 0; font-size: 1.05rem; font-weight: 900; background: none; border: 0; }
.gxf .gxf-guide h3::before, .gxf .gxf-guide h3::after { content: none; }
.gxf-guide p { margin: 0; font-size: .88rem; line-height: 1.85; color: #3a414b; }
.gxf-guide a { color: var(--gx-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.gxf .gx-faq__item summary { line-height: 1.6; }
.gxf-about { margin: 20px 0 0; font-size: .78rem; line-height: 1.8; color: var(--gx-muted); }
.gxf-about a { color: var(--gx-accent); text-decoration: underline; }

/* スマホ下部の CTA */
.gxf-fab {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; font-size: .95rem; font-weight: 800; color: #fff;
  background: var(--gx-accent); border: 0; border-radius: 999px; box-shadow: 0 10px 28px rgba(255,90,31,.45), 0 2px 6px rgba(0,0,0,.2); cursor: pointer; white-space: nowrap;
}
.gxf-fab[hidden] { display: none; }

/* ==========================================================================
   タブレット以上
   ========================================================================== */
@media (min-width: 600px) {
  .gxf { --gxf-pad: 24px; }
  .gxf-gtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gxf-prefs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gxf-chains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gxf-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gxf-hero .gxf-btn--near { width: auto; }
  .gxf-hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gxf-near__card { padding: 24px; }
  .gxf-chips { margin: 16px 0 0; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; }
  .gxf .gxf-near .gx-near-inline__btn { width: auto; display: inline-flex; padding: 0 32px; }
  .gxf .gxf-near .gx-near-inline__status { text-align: left; }
  .gxf-tabs { flex-wrap: wrap; margin: 0 0 14px; padding: 0; overflow: visible; }
  .gxf-gpanel { padding: 22px; }
  .gxf-gpanel__regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
}
@media (min-width: 960px) {
  .gxf-hero { padding: 56px 0 104px; }
  .gxf-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .gxf-hero__stats { grid-template-columns: 1fr 1fr; }
  .gxf-hstat { padding: 18px 18px 16px; }
  .gxf-hstat b { font-size: 2.4rem; }
  .gxf-hstat--accent b { font-size: 3.8rem; }
  .gxf-search { margin-top: 26px; }
  .gxf-search__input { height: 56px; font-size: 1.05rem; }
  .gxf-search__btn { height: 56px; padding: 0 30px; }
  .gxf-near { margin-top: -64px; }
  .gxf-near__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head btn" "chips chips" "res res"; gap: 0 24px; align-items: center; padding: 26px 30px; }
  .gxf-near__head { grid-area: head; }
  .gxf-chips { grid-area: chips; }
  .gxf .gxf-near .gx-near-inline { grid-row: 1; grid-column: 2; margin: 0; }
  .gxf .gxf-near:has(.gx-near-inline__results:not(:empty)) .gx-near-inline { grid-row: auto; grid-column: 1 / -1; }
  .gxf-sec { padding: 80px 0; }
  .gxf-head { display: grid; grid-template-columns: fit-content(62%) minmax(18em, 1fr); align-items: end; column-gap: 28px; margin-bottom: 28px; }
  .gxf-head__en { grid-column: 1 / -1; }
  .gxf-head__lead { margin: 0 0 4px; }
  .gxf-gtiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gxf-gtile { grid-template-columns: 1fr; grid-template-areas: "ico" "name" "n" "sub"; row-gap: 4px; padding: 16px 14px 14px; }
  .gxf-gtile__ico { margin-bottom: 6px; }
  .gxf-gpanel__regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gxf-regions { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
  .gxf-region { grid-column: span 4; padding: 18px; }
  .gxf-region:nth-child(1), .gxf-region:nth-child(2) { grid-column: span 6; }
  .gxf-region:nth-child(1) .gxf-prefs, .gxf-region:nth-child(2) .gxf-prefs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gxf-region:nth-child(n+3) .gxf-prefs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gxf-region:nth-child(6) { grid-column: span 6; }
  .gxf-region:nth-child(7) { grid-column: span 6; }
  .gxf-region:nth-child(6) .gxf-prefs, .gxf-region:nth-child(7) .gxf-prefs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gxf-pane { grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
  .gxf-pane .gxf-more { grid-column: 1 / -1; }
  .gxf-data { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
  .gxf-dcard { padding: 26px; }
  .gxf-dcard__big { font-size: 5.2rem; }
  .gxf-chains { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .gxf-guide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gxf-fab { display: none !important; }
}
