/* 365ジムフィット — 生成りと橙 */
:root {
  --band: #2A2420;
  --ground: #F6F2EB;
  --surface: #FFFFFF;
  --ink: #1C1712;
  --sub: #6B6158;
  --on-band: #D9CFC4;
  --accent: #E07A2E;
  --strong: #9A4D12;
  --tint: #FBEBDD;
  --line: #EAE3D8;
  --placeholder: #E8DFD2;
  --off: #70665C;
  --off-ring: #C9BFB2;
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 8px 24px rgba(42, 36, 32, .08);
  --r-card: 12px;
  --r-ctl: 8px;
  --num: 'Barlow Condensed', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ground);
}
a { color: var(--strong); }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
.num { font-family: var(--num); font-weight: 700; line-height: 1.05; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sub { color: var(--sub); }
.small { font-size: 13px; }

/* 帯（ヘッダー） */
.band { background: var(--band); color: #fff; position: relative; }
.band-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.band a { color: var(--on-band); }
.band a:hover { color: #fff; }
.site-head { position: relative; z-index: 4; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.band .logo, .band .logo:hover { color: #fff; }
.logo .num { font-size: 26px; line-height: 1; color: var(--accent); }
.logo b { font-size: 16px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 10px 12px; font-size: 14px; text-decoration: none; color: #fff; }
.crumbs { font-size: 13px; color: var(--on-band); display: flex; gap: 8px; flex-wrap: wrap; }
.band-body { padding: 24px 0 48px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.band-body h1 { font-size: 40px; line-height: 1.35; font-weight: 700; }
.band-body .lead { color: var(--on-band); }
.band.overlap .band-body { padding-bottom: 104px; }
.eyebrow { font-family: var(--num); font-weight: 600; letter-spacing: .14em; font-size: 14px; color: var(--sub); }
.band .eyebrow { color: var(--accent); font-size: 18px; letter-spacing: .16em; }
.big365 { position: absolute; right: -40px; bottom: -120px; font-family: var(--num); font-weight: 700; font-size: 520px; line-height: 1; color: rgba(255, 255, 255, .05); pointer-events: none; }

/* 検索 */
.search { position: relative; }
.search-box { display: flex; gap: 8px; flex-wrap: wrap; background: #fff; padding: 8px; border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(0, 0, 0, .18); max-width: 640px; }
.search-box input { flex: 1 1 260px; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; font-size: 16px; padding: 0 12px; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-ctl); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-accent, .btn-accent:hover { background: var(--accent); color: var(--ink); }
.btn-band, .btn-band:hover { background: var(--band); color: #fff; }
.head-search { flex: 0 1 320px; }
.head-search input { width: 100%; height: 44px; border: 0; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; padding: 0 14px; }
.head-search input::placeholder { color: var(--on-band); }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow); z-index: 20; max-height: 60vh; overflow: auto; max-width: 640px; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.search-results a:first-child { border-top: 0; }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--tint); }
.search-results .k { font-size: 12px; color: var(--sub); white-space: nowrap; }
.search-results .none { padding: 14px 16px; color: var(--sub); font-size: 14px; }
.chips-on-band { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-on-band a { font-size: 14px; padding: 8px 14px; border-radius: var(--r-ctl); background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }

/* 共通の部品 */
.card { background: var(--surface); border-radius: var(--r-card); }
.card-pad { padding: 28px; }
.raised { box-shadow: var(--shadow); }
.sec { display: flex; flex-direction: column; gap: 18px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sec-head h2 { font-size: 22px; font-weight: 700; }
.sec-head .right { margin-left: auto; font-size: 14px; color: var(--sub); }
.page-sec { padding-top: 80px; }
.page-sec > .sec-head h2 { font-size: 26px; }
.chip { display: inline-block; font-size: 14px; padding: 6px 12px; border-radius: var(--r-ctl); background: var(--tint); color: var(--ink); text-decoration: none; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--tint); color: var(--strong); }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--ink); white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.g-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g-250 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.ph { background: var(--placeholder); border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 13px; }

/* トップ */
.hero { padding: 72px 0 112px; display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 3; }
.hero h1 { font-size: 48px; line-height: 1.35; max-width: 760px; }
.hero .lead { font-size: 17px; color: var(--on-band); max-width: 620px; }
.lift { margin-top: -56px; position: relative; z-index: 2; }
.chain-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; text-decoration: none; color: var(--ink); }
.chain-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chain-card .name { font-size: 18px; font-weight: 700; }
.chain-card .price { display: flex; align-items: baseline; gap: 6px; }
.chain-card .price .num { font-size: 44px; line-height: 1; }
.chain-card .go { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--strong); display: flex; justify-content: space-between; }
.region { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.region .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.region h3 { font-size: 16px; }
.region .eyebrow { font-size: 12px; }
.region .list { display: flex; flex-wrap: wrap; gap: 6px; }
.table-box { overflow-x: auto; }
.cmp { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 20px; text-align: left; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; padding: 16px 20px; font-weight: 700; }
.cmp thead th.me { background: var(--band); color: #fff; }
.cmp tbody th { font-weight: 400; color: var(--sub); }
.cmp td.me { background: var(--tint); }
.cmp .num { font-size: 24px; }
.col-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); }
.col-card .t { padding: 18px 20px; font-weight: 700; line-height: 1.6; }
.col-card.feature { background: var(--accent); padding: 24px; justify-content: space-between; gap: 32px; min-height: 200px; }
.col-card.feature .eyebrow { color: var(--ink); }
.col-card.feature .t { padding: 0; font-size: 20px; line-height: 1.5; }

/* フッター */
.site-foot { background: var(--band); color: var(--on-band); margin-top: 96px; }
.site-foot .in { padding: 48px 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 13px; }
.site-foot p { max-width: 560px; margin-top: 12px; }
.site-foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-foot nav a { color: #fff; }

/* 店舗ページ */
.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); overflow: hidden; }
.scoreboard > div { padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.scoreboard > div:last-child { border-right: 0; background: var(--tint); }
.scoreboard .l { font-size: 13px; color: var(--sub); }
.scoreboard .v { display: flex; align-items: baseline; gap: 4px; font-size: 14px; }
.scoreboard .num { font-size: 52px; }
.scoreboard > div:last-child .num { color: var(--strong); }
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.layout > main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.layout > aside { flex: 1 1 280px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photos img, .photos .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--placeholder); }
.photos > :first-child { grid-column: span 2; grid-row: span 2; height: 100%; }
.photos details { display: contents; }
.photos summary { list-style: none; aspect-ratio: 4 / 3; border-radius: var(--r-card); background: var(--band); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.photos summary::-webkit-details-marker { display: none; }
.photos summary .num { font-size: 30px; line-height: 1; }
.photos details[open] summary { display: none; }
.machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.machines li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--ground); border-radius: var(--r-ctl); }
.machines .num { font-size: 30px; line-height: 1; color: var(--strong); min-width: 20px; text-align: center; }
.machines .n { display: flex; flex-direction: column; line-height: 1.45; }
.machines .n b { font-size: 14px; }
.machines .n span { font-size: 12px; color: var(--sub); }
.facilities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 8px; }
.facilities li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r-ctl); font-size: 14px; }
.facilities .on { background: var(--tint); font-weight: 700; }
.facilities .off { color: var(--off); box-shadow: inset 0 0 0 1px var(--line); }
.facilities .mk { width: 20px; height: 20px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; }
.facilities .on .mk { background: var(--strong); color: #fff; }
.facilities .off .mk { border: 1.5px solid var(--off-ring); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.prices > div { background: var(--ground); border-radius: var(--r-ctl); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.prices .num { font-size: 44px; }
.info { display: grid; grid-template-columns: 112px 1fr; }
.info dt, .info dd { padding: 12px 0; border-top: 1px solid var(--line); }
.info dt { font-size: 14px; color: var(--sub); }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--r-ctl); background: var(--placeholder); }
.near { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.near a { background: var(--ground); border-radius: var(--r-ctl); padding: 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.near a b { font-weight: 700; }
.near a span { font-size: 13px; color: var(--sub); }
.near a.dark { background: var(--band); color: #fff; }
.near a.dark span { color: var(--on-band); }
.cta { background: var(--band); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cta .t { font-size: 18px; font-weight: 700; line-height: 1.5; }
.cta .p { display: flex; align-items: baseline; gap: 4px; }
.cta .p .num { font-size: 40px; line-height: 1; }
.cta .small { color: var(--on-band); font-size: 12px; }
.toc { padding: 12px; display: flex; flex-direction: column; font-size: 14px; }
.toc a { padding: 10px 12px; border-radius: var(--r-ctl); text-decoration: none; color: var(--ink); }
.toc a:hover { background: var(--tint); color: var(--strong); }
.cta-bar { display: none; }
[id] { scroll-margin-top: 16px; }

/* 一覧ページ */
.count-big { display: flex; align-items: baseline; gap: 6px; }
.count-big .num { font-size: 72px; line-height: 1; color: var(--accent); }
.count-big span { color: var(--on-band); }
.band-row { flex-direction: row; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.filter { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter button { height: 40px; padding: 0 14px; border-radius: var(--r-ctl); border: 0; background: var(--tint); cursor: pointer; font-size: 14px; }
.filter button[aria-pressed="true"] { background: var(--band); color: #fff; font-weight: 700; }
.filter .right { margin-left: auto; font-size: 14px; color: var(--sub); }
.filter .right .num { font-size: 26px; color: var(--strong); }
.stores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(480px, 100%), 1fr)); gap: 12px; }
.store { padding: 20px; display: flex; gap: 20px; align-items: flex-start; text-decoration: none; color: var(--ink); }
.store:hover { color: var(--ink); box-shadow: var(--shadow); }
.walk { flex: none; width: 76px; height: 76px; border-radius: var(--r-ctl); background: var(--band); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.walk small { font-size: 11px; color: var(--on-band); }
.walk .num { font-size: 34px; }
.store .body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.store .name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 18px; font-weight: 700; }
.store .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.empty { padding: 40px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { background: var(--surface); border-radius: var(--r-ctl); padding: 10px 16px; text-decoration: none; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.links a span { font-size: 13px; color: var(--sub); }
.links a:hover { color: var(--strong); }

@media (max-width: 900px) {
  .layout > aside { position: static; }
  .layout > aside .cta { display: none; }
  .cta-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--band); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; }
  .cta-bar .p { flex: 1; display: flex; align-items: baseline; gap: 3px; }
  .cta-bar .p .num { font-size: 28px; }
  .cta-bar .p span { font-size: 11px; color: var(--on-band); }
  body.has-bar { padding-bottom: 80px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 96px; }
  .hero h1 { font-size: 32px; }
  .band-body h1 { font-size: 26px; }
  .big365 { font-size: 300px; bottom: -60px; }
  .scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scoreboard > div:nth-child(2) { border-right: 0; }
  .scoreboard > div { border-bottom: 1px solid var(--line); }
  .scoreboard .num { font-size: 40px; }
  .card-pad { padding: 20px 16px; }
  .page-sec { padding-top: 56px; }
  .count-big .num { font-size: 52px; }
  .store { gap: 14px; padding: 16px; }
  .walk { width: 64px; height: 64px; }
  .info { grid-template-columns: 84px 1fr; }
  .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .machines li { gap: 10px; padding: 10px; }
  .machines .num { font-size: 24px; }
  .machines .n b { font-size: 12px; }
  .photos summary { font-size: 11px; }
  .head-search { flex-basis: 100%; padding-bottom: 8px; }
}

/* 店舗カードの写真・補助の部品 */
.store .thumb { flex: none; width: 136px; height: 102px; border-radius: var(--r-ctl); object-fit: cover; background: var(--placeholder); }
.store .thumb.ph { display: block; }
.rows { border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows a { font-weight: 500; }
.allgyms { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; text-decoration: none; color: var(--ink); background: var(--tint); }
.allgyms > span:first-child { display: flex; flex-direction: column; }
.allgyms:hover { color: var(--strong); }
.chain-desc { font-size: 14px; color: var(--sub); max-width: 760px; }
.prose-note { font-size: 13px; color: var(--sub); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-ctl); overflow: hidden; background: var(--placeholder); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .store .thumb { width: 96px; height: 72px; } }

/* コラム・固定ページの本文 */
.hero-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); margin-bottom: 24px; }
.prose { font-size: 16px; line-height: 1.95; max-width: 760px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; line-height: 1.5; margin-top: 2.4em; padding-bottom: .4em; border-bottom: 2px solid var(--line); }
.prose h3 { font-size: 19px; line-height: 1.6; margin-top: 1.9em; }
.prose h4, .prose h5 { font-size: 16px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .3em; }
.prose img { height: auto; border-radius: var(--r-ctl); }
.prose figure { margin: 0; }
.prose figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--sub); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; line-height: 1.7; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--ground); font-weight: 700; }
.callout { background: var(--tint); border-radius: var(--r-card); padding: 18px 22px; }
.callout > * + * { margin-top: .8em; }
.linkcard { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none !important; color: var(--ink); background: var(--surface); }
.linkcard:hover { border-color: var(--accent); color: var(--ink); }
.linkcard img { flex: none; width: 128px; height: 72px; object-fit: cover; border-radius: 6px; }
.lc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.6; }
.lc-body b { font-size: 15px; }
.lc-body span { font-size: 13px; color: var(--sub); }
.cta-inline { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--band); color: #fff; border-radius: var(--r-card); padding: 20px 24px; }
.cta-inline div { display: flex; flex-direction: column; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 0 18px; background: var(--surface); }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--num); color: var(--strong); margin-right: 10px; font-size: 20px; }
.faq .faq-a { padding: 0 0 16px 0; }
.prefs .links { margin-top: 6px; }
@media (max-width: 640px) { .prose h2 { font-size: 21px; } .linkcard img { width: 88px; height: 50px; } }

/* 一覧ページ（記事カードとページ送り） */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.post { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink); }
.post:hover { color: var(--ink); box-shadow: var(--shadow); }
.post img, .post .pimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.post .body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; line-height: 1.6; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; padding: 8px 0; }
.pager a, .pager .cur { min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); text-decoration: none; color: var(--ink); }
.pager .cur { background: var(--band); color: #fff; font-weight: 700; }
.pager a:hover { background: var(--tint); color: var(--strong); }
.pager .gap { color: var(--sub); padding: 0 4px; }
