/* チェーン一覧（/chain/）。トップページ（gym-front.css）とハブ（gym-hub.css）の部品を使い、足りない分だけ */

.gxc-search { margin: 20px 0 0; }
.gxc-search input {
  width: 100%; height: 50px; padding: 0 16px; font-size: 16px; color: var(--gx-text);
  background: #fff; border: 0; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.gxc-search input:focus { outline: 3px solid var(--gx-accent); outline-offset: 0; }

.gxc-empty { max-width: 1100px; margin: 24px auto; padding: 0 var(--gxf-pad, 16px); font-weight: 700; color: var(--gx-muted); }

/* カード */
.gxc .gxf-chains { gap: 10px; }
.gxc-card { position: relative; padding-right: 34px; }
.gxc-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--gx-muted); transition: color .15s, transform .15s; }
.gxc-card:hover .gxc-arrow { color: var(--gx-accent); transform: translate(3px, -50%); }
.gxc-nofee { color: var(--gx-muted); }
.gxc-item[hidden], .gxc-sec[hidden] { display: none !important; }

/* もっと見る（リンクはページ内にあり、表示だけ隠す） */
.gxc-list:not(.is-open) .gxc-item.is-more { display: none; }
.gxc.is-searching .gxc-list .gxc-item.is-more:not([hidden]) { display: block; }
.gxc.is-searching .gxc-more, .gxc.is-searching .gxc-sort { display: none; }
.gxc-more {
  display: block; width: 100%; max-width: 360px; min-height: 46px; margin: 16px auto 0; padding: 0 20px;
  font-size: .9rem; font-weight: 800; color: var(--gx-ink); background: #fff; border: 1.5px solid var(--gx-ink); border-radius: 999px; cursor: pointer;
}
.gxc-more:hover { color: #fff; background: var(--gx-ink); }

/* ジャンルの見出し */
.gxc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.gxc-count { display: inline-block; margin-left: 10px; padding: 3px 10px; font-size: .72rem; font-weight: 700; vertical-align: middle; color: var(--gx-ink); background: #fff1ea; border-radius: 999px; }
.gxc-typelink { font-size: .85rem; font-weight: 700; color: var(--gx-accent); text-decoration: underline; text-underline-offset: 3px; }

/* 並び替え */
.gxc-sort {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1100px; margin: 0 auto; padding: 18px var(--gxf-pad, 16px) 0;
  font-size: .8rem; color: var(--gx-muted);
}
.gxc-sort span { margin-right: 4px; font-weight: 700; }
.gxc-sort button {
  min-height: 36px; padding: 0 14px; font-size: .82rem; font-weight: 700; color: var(--gx-text);
  background: #fff; border: 1px solid var(--gx-line); border-radius: 999px; cursor: pointer;
}
.gxc-sort button.is-on { color: #fff; background: var(--gx-ink); border-color: var(--gx-ink); }

.gxc-note { margin: 0; font-size: .78rem; line-height: 1.8; color: var(--gx-muted); }

@media (min-width: 900px) {
  .gxc .gxf-chains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gxc-search { max-width: 560px; }
}

/* スマホはジャンルごとに最初の6件（ランキングは除く） */
@media (max-width: 599px) {
  .gxc-sec:not(#popular) .gxc-list:not(.is-open) .gxc-item:nth-child(n+7) { display: none; }
  .gxc.is-searching .gxc-sec:not(#popular) .gxc-list .gxc-item:not([hidden]) { display: block; }
}
@media (min-width: 600px) {
  .gxc-sec:not(#popular) .gxc-list:has(> .gxc-item:nth-child(-n+12):last-child) + .gxc-more { display: none; }
}

/* ==========================================================================
   チェーンページ（/chain/<slug>/）
   ========================================================================== */
.gxcd .gxc-cta { margin: 20px 0 0; text-align: left; }
.gxcd .gxf-sec .gxc-cta { text-align: center; }
.gxcd .gxf-hero .gxc-cta__pr { color: rgba(255,255,255,.7); }

/* ヒーローの数字 */
.gxcd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 0; }
.gxcd-stats > div { padding: 12px 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.gxcd-stats > div.is-accent { background: var(--gx-accent); border-color: var(--gx-accent); }
.gxcd-stats dt { margin: 0 0 4px; font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.75); }
.gxcd-stats dd { margin: 0; color: #fff; line-height: 1.1; }
.gxcd-stats b { font: 700 1.9rem/1 var(--gx-num); }
.gxcd-stats small { margin-left: 3px; font-size: .74rem; font-weight: 700; color: rgba(255,255,255,.85); }

/* 口コミの集計 */
.gxcd-rvsum { display: grid; gap: 16px; margin: 0 0 16px; padding: 18px; background: #fff; border: 1px solid var(--gx-line); border-radius: 16px; }
.gxcd-rvsum__score { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.gxcd-rvsum__score b { font: 700 3rem/1 var(--gx-num); color: var(--gx-text); }
.gxcd-rvsum__score .gym-stars { font-size: 20px; }
.gxcd-rvsum__score span:last-child { font-size: .8rem; color: var(--gx-muted); }
.gxcd-bars { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.gxcd-bars li { display: grid; grid-template-columns: 7.5em 1fr 3em; align-items: center; gap: 10px; font-size: .84rem; }
.gxcd-bars li span { font-weight: 700; }
.gxcd-bars i { position: relative; height: 10px; background: #eef0f3; border-radius: 999px; overflow: hidden; }
.gxcd-bars em { position: absolute; inset: 0 auto 0 0; background: var(--gx-accent); border-radius: 999px; }
.gxcd-bars b { font: 700 1rem/1 var(--gx-num); text-align: right; }

/* 口コミカード */
.gxcd-rvlist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.gxcd-rv { padding: 18px; background: #fff; border: 1px solid var(--gx-line); border-radius: 16px; }
.gxcd-rv__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; }
.gxcd-rv__head strong { font-size: 1rem; font-weight: 800; line-height: 1.45; }
.gxcd-rv__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px; font-size: .76rem; color: var(--gx-muted); }
.gxcd-rv__meta a { font-weight: 700; color: var(--gx-accent); text-decoration: underline; text-underline-offset: 3px; }
.gxcd-rv__src { padding: 1px 7px; background: #f1f2f4; border-radius: 4px; }
.gxcd-rv__text { position: relative; max-height: 11.5em; overflow: hidden; font-size: .9rem; line-height: 1.85; color: #2f353d; }
.gxcd-rv__text p { margin: 0 0 .7em; }
.gxcd-rv__text:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3.5em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.gxcd-rv__text.is-open { max-height: none; }
.gxcd-rv__more { display: block; margin: 8px auto 0; padding: 8px 20px; font-size: .82rem; font-weight: 800; color: var(--gx-ink); background: #fff; border: 1.5px solid var(--gx-ink); border-radius: 999px; cursor: pointer; }
.gxcd-rv__more[hidden] { display: none; }
.gxcd-empty { padding: 18px; background: #fff; border-radius: 16px; border: 1px dashed var(--gx-line); }
.gxcd-note { margin: 12px 0 0; font-size: .74rem; line-height: 1.8; color: var(--gx-muted); }
.gxcd-note a { color: var(--gx-accent); text-decoration: underline; }

/* データ */
.gxcd-facts { display: grid; gap: 10px; }
.gxcd-fact { padding: 16px 18px; background: #fff; border: 1px solid var(--gx-line); border-radius: 16px; }
.gxcd-fact__k { margin: 0 0 6px; font-size: .74rem; font-weight: 800; color: var(--gx-accent); letter-spacing: .04em; }
.gxcd-fact__v { margin: 0; font: 700 1.6rem/1.15 var(--gx-num); color: var(--gx-text); }
.gxcd-fact__v small { margin-left: 4px; font-family: inherit; font-size: .8rem; font-weight: 700; color: var(--gx-muted); }
.gxcd-fact__v--sm { font-family: inherit; font-size: 1rem; font-weight: 800; line-height: 1.6; }
.gxcd-fact__n { margin: 6px 0 0; font-size: .74rem; line-height: 1.6; color: var(--gx-muted); }
.gxf .gxcd-h3 { margin: 28px 0 12px; padding: 0; font-size: 1.05rem; font-weight: 900; background: none; border: 0; }
.gxf .gxcd-h3::before, .gxf .gxcd-h3::after { content: none; }
.gxcd-bars--fac { padding: 18px; background: #fff; border: 1px solid var(--gx-line); border-radius: 16px; }

/* FAQ */
.gxcd-faq { display: grid; gap: 8px; }
.gxcd-faq__item { background: #fff; border: 1px solid var(--gx-line); border-radius: 14px; overflow: hidden; }
.gxcd-faq__item summary { position: relative; padding: 15px 44px 15px 16px; font-weight: 800; line-height: 1.55; cursor: pointer; list-style: none; }
.gxcd-faq__item summary::-webkit-details-marker { display: none; }
.gxcd-faq__item summary::before { content: "Q"; margin-right: 8px; font: 700 1.05rem/1 var(--gx-num); color: var(--gx-accent); }
.gxcd-faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--gx-muted); }
.gxcd-faq__item[open] summary::after { content: "−"; }
.gxcd-faq__item p { margin: 0; padding: 0 16px 16px; font-size: .88rem; line-height: 1.85; color: #3a414b; }

/* 店舗一覧 */
.gxcd-prefs { display: grid; gap: 8px; }
.gxcd-pref { background: #fff; border: 1px solid var(--gx-line); border-radius: 14px; overflow: hidden; }
.gxcd-pref summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 800; cursor: pointer; list-style: none; }
.gxcd-pref summary::-webkit-details-marker { display: none; }
.gxcd-pref summary b { margin-left: auto; padding: 2px 10px; font-size: .74rem; color: var(--gx-ink); background: #fff1ea; border-radius: 999px; }
.gxcd-pref summary::after { content: "+"; font-size: 1.2rem; color: var(--gx-muted); }
.gxcd-pref[open] summary::after { content: "−"; }
.gxcd-stores { margin: 0; padding: 0 16px 8px; list-style: none; border-top: 1px solid var(--gx-line); }
.gxcd-stores li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f1f3; }
.gxcd-stores li:last-child { border-bottom: 0; }
.gxcd-stores__name { flex: 1 1 auto; min-width: 0; font-size: .9rem; font-weight: 700; color: var(--gx-text); overflow-wrap: anywhere; }
.gxcd-stores__name:hover { color: var(--gx-accent); }
.gxcd-stores__fee { flex-shrink: 0; font: 700 .9rem/1 var(--gx-num); color: var(--gx-muted); }
.gxcd-pref__more { margin: 0; padding: 10px 16px 14px; font-size: .82rem; }
.gxcd-pref__more a { font-weight: 700; color: var(--gx-accent); }

/* スター（gym-map.css と同じ） */
.gxcd .gym-stars { position: relative; display: inline-block; width: 5.5em; height: 1.1em; line-height: 1; vertical-align: -0.15em; font-size: 14px; }
.gxcd .gym-stars::before, .gxcd .gym-stars__fill::before { content: "★★★★★"; position: absolute; left: 0; top: 0; letter-spacing: 0.1em; }
.gxcd .gym-stars::before { color: #ddd; }
.gxcd .gym-stars__fill { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; }
.gxcd .gym-stars__fill::before { color: #f5a623; }

@media (min-width: 760px) {
  .gxcd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; }
  .gxcd-rvsum { grid-template-columns: 200px 1fr; align-items: center; padding: 24px; }
  .gxcd-rvlist { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .gxcd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gxcd-bars--fac { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .gxcd-prefs { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (min-width: 1000px) { .gxcd-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
