/* まちのジム げんき家 — 地域の健康ジム（初心者・シニア歓迎）
   白・空色・ひまわり色・若草色。大きな文字、はっきりした色、押しやすい大きなボタン */
:root {
  --white: #FFFFFF;
  --bg: #F6FAFF;
  --sky: #2E9BFF;
  --sky-dark: #1677D2;
  --sky-light: #EAF5FF;
  --sun: #FFC93C;
  --sun-light: #FFF4D6;
  --grass: #4CC38A;
  --grass-dark: #23955F;
  --text: #2B2B2B;
  --muted: #5E6672;
  --line: #DCE6F0;
  --jp: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --num: "Nunito", "M PLUS Rounded 1c", sans-serif;
  --radius: 22px;
  --shadow: 0 8px 24px -14px rgba(22, 119, 210, .45);
}
/* 文字の大きさ切替（rem を基準にすべての文字が大きくなる） */
html { font-size: 100%; }
html[data-fs="l"] { font-size: 115%; }
html[data-fs="xl"] { font-size: 130%; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--jp); font-weight: 500; font-size: 1.0625rem; line-height: 1.9; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, fieldset, legend { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 8px 14px; background: var(--text); color: #fff; border-radius: 10px; }
.skip:focus { top: 12px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.head { margin-bottom: clamp(26px, 4vw, 40px); }
.head--center { text-align: center; }
.head h2 { font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.45; position: relative; padding-left: 20px; }
.head--center h2 { padding-left: 0; }
.head h2::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 8px; border-radius: 99px; background: var(--sun); }
.head--center h2 { padding-left: 0; }
.head--center h2::before { display: none; }
.head--center h2::after { content: ""; display: block; width: 56px; height: 8px; margin: 12px auto 0; border-radius: 99px; background: var(--sun); }
.head p { color: var(--muted); margin-top: 8px; }
.num { font-family: var(--num); font-weight: 900; color: var(--sky); font-size: 1.4em; margin: 0 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 34px; border-radius: 999px; font-weight: 800; font-size: 1.125rem; text-decoration: none; cursor: pointer; border: 3px solid transparent; transition: transform .2s, box-shadow .2s; }
.btn--blue { background: var(--sky); color: #fff; box-shadow: 0 6px 0 var(--sky-dark); }
.btn--blue:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--sky-dark); }
.btn--white { background: #fff; color: var(--sky-dark); border-color: var(--sky); }
.btn--full { width: 100%; }

/* ---------- topbar / header ---------- */
.topbar { background: var(--sky-light); border-bottom: 1px solid var(--line); }
.topbar-inner { width: min(1200px, calc(100% - 24px)); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.open-now { display: flex; align-items: center; gap: 8px; font-size: .9375rem; }
.open-now span { width: 12px; height: 12px; border-radius: 50%; background: #AAA; }
.open-now.is-open span { background: var(--grass); box-shadow: 0 0 0 4px rgba(76, 195, 138, .25); }
.fs { display: flex; align-items: center; gap: 6px; }
.fs-label { font-size: .875rem; color: var(--muted); }
.fs button { min-width: 52px; min-height: 40px; border-radius: 10px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.fs button[data-fs-set="l"] { font-size: 1.1rem; }
.fs button[data-fs-set="xl"] { font-size: 1.25rem; }
.fs button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 clamp(14px, 3vw, 40px); min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 50px; height: 50px; }
.logo span { font-weight: 800; font-size: 1.75rem; line-height: 1.1; display: flex; flex-direction: column; }
.logo small { font-size: .8125rem; color: var(--sky-dark); }
.gnav { display: flex; gap: 4px; }
.gnav a { text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 12px; }
.gnav a:hover { background: var(--sky-light); }
.tel { display: flex; align-items: center; gap: 6px; text-decoration: none; padding: 8px 16px; border-radius: 14px; background: var(--grass); color: #fff; font-family: var(--num); font-weight: 900; font-size: 1.25rem; }
.tel svg { width: 22px; height: 22px; fill: #fff; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--sky-light), #fff); padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-inner { width: min(1200px, calc(100% - 40px)); margin-inline: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-badge { display: inline-block; padding: 6px 18px; border-radius: 999px; background: var(--sun); font-weight: 800; }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.3; margin: 16px 0; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero-lead { font-size: 1.125rem; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 40px; box-shadow: var(--shadow); }
.hero-photo::before { content: ""; position: absolute; right: -24px; top: -24px; width: 120px; height: 120px; border-radius: 50%; background: var(--sun); z-index: -1; }
.hero-photo::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 80px; height: 80px; border-radius: 50%; background: var(--grass); z-index: -1; opacity: .6; }

/* ---------- feature ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-grid li { background: var(--bg); border-radius: var(--radius); padding: 30px 26px; border: 2px solid var(--line); }
.feat-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--sun-light); display: grid; place-items: center; margin-bottom: 16px; }
.feat-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--sky-dark); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.feat-grid h3 { font-weight: 800; font-size: 1.375rem; line-height: 1.5; }
.feat-grid p { margin-top: 8px; color: var(--muted); }

/* ---------- crowd ---------- */
.crowd { background: var(--bg); }
.crowd-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.crowd-now { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 3px solid var(--grass); margin-bottom: 18px; }
.crowd-now.is-mid { border-color: var(--sun); }
.crowd-now.is-high { border-color: #F07B5A; }
.crowd-now.is-closed { border-color: var(--line); }
.cn-face { width: 64px; height: 64px; flex: none; }
.cn-text b { display: block; font-weight: 800; font-size: 1.5rem; line-height: 1.4; }
.cn-text span { color: var(--muted); font-size: .9375rem; }
.crowd-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 460px; }
.crowd-days small { display: block; font-size: .6875rem; line-height: 1.2; }
.crowd-days button { min-width: 0; padding: 4px 0; line-height: 1.3; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; font-size: 1.0625rem; }
.crowd-days button[aria-selected="true"] { background: var(--sky); border-color: var(--sky); color: #fff; }
.crowd-days button.closed { color: #AAA; }
.crowd-chart { background: #fff; border-radius: var(--radius); padding: 24px 20px 16px; border: 2px solid var(--line); }
.bars { display: grid; grid-template-columns: repeat(13, 1fr); gap: 6px; align-items: end; height: 240px; padding-bottom: 28px; position: relative; }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; border-radius: 8px 8px 4px 4px; background: var(--grass); transition: height .6s cubic-bezier(.3, .8, .3, 1); }
.bar.mid i { background: var(--sun); }
.bar.high i { background: #F07B5A; }
.bar.now i { box-shadow: 0 0 0 3px var(--text); }
.bar span { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-family: var(--num); font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.bar.now span { color: var(--text); font-weight: 900; }
.bars-closed { grid-column: 1 / -1; align-self: center; text-align: center; color: var(--muted); font-size: 1.25rem; font-weight: 800; }
.legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); margin-top: 10px; }
.lg { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-left: 8px; }
.lg-low { background: var(--grass); margin-left: 0; } .lg-mid { background: var(--sun); } .lg-high { background: #F07B5A; }

/* ---------- price ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pr { position: relative; text-align: center; padding: 30px 22px; border-radius: var(--radius); border: 3px solid var(--line); background: #fff; }
.pr--main { border-color: var(--sky); background: var(--sky-light); }
.pr-badge { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--sun); padding: 4px 18px; border-radius: 999px; font-weight: 800; font-size: .9375rem; white-space: nowrap; }
.pr h3 { font-weight: 800; font-size: 1.375rem; }
.pr-time { color: var(--muted); font-size: .9375rem; }
.pr-price { margin: 12px 0 6px; font-weight: 800; }
.pr-price b { font-family: var(--num); font-weight: 900; font-size: 3.25rem; color: var(--sky-dark); line-height: 1.1; }
.pr-price small { font-size: 1rem; color: var(--muted); }
.pr-note { font-size: .9375rem; }
.price-sub { margin-top: 24px; border-radius: var(--radius); background: var(--bg); padding: 10px 24px; }
.price-sub > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 2px dotted var(--line); flex-wrap: wrap; }
.price-sub > div:last-child { border-bottom: 0; }
.price-sub dt { font-weight: 800; }

/* ---------- lesson / staff ---------- */
.lesson { background: var(--sun-light); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ls { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ls figure { aspect-ratio: 3 / 2; overflow: hidden; }
.ls img { width: 100%; height: 100%; object-fit: cover; }
.ls > div { padding: 18px 22px 24px; }
.ls h3 { font-weight: 800; font-size: 1.375rem; }
.ls-time { display: inline-block; margin: 4px 0 8px; padding: 2px 12px; border-radius: 999px; background: var(--sky-light); color: var(--sky-dark); font-weight: 800; font-size: .9375rem; }
.ls p:last-child { color: var(--muted); }
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.st { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; background: var(--bg); border-radius: var(--radius); padding: 18px; }
.st figure { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; }
.st img { width: 100%; height: 100%; object-fit: cover; }
.st-role { font-size: .875rem; font-weight: 800; color: var(--grass-dark); }
.st h3 { font-weight: 800; font-size: 1.625rem; }
.st p:last-child { color: var(--muted); margin-top: 6px; }

/* ---------- visit ---------- */
.visit { background: var(--sky-light); }
.visit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: start; }
.big-tel { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--radius); background: var(--grass); color: #fff; text-decoration: none; box-shadow: 0 6px 0 var(--grass-dark); }
.big-tel svg { width: 44px; height: 44px; fill: #fff; flex: none; }
.big-tel span { display: flex; flex-direction: column; font-family: var(--num); font-weight: 900; font-size: 2rem; line-height: 1.2; }
.big-tel small { font-family: var(--jp); font-size: .875rem; font-weight: 700; }
.visit-photo { margin-top: 22px; border-radius: var(--radius); overflow: hidden; }
.visit-photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.visit-form { background: #fff; border-radius: 28px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
.f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.f legend, .f-label { font-weight: 800; font-size: 1.125rem; margin-bottom: 4px; }
.f input[type="text"], .f input[type="tel"] { min-height: 62px; padding: 0 18px; border-radius: 16px; border: 3px solid var(--line); font-size: 1.25rem; background: var(--bg); }
.f input:focus { outline: none; border-color: var(--sky); background: #fff; }
.f .is-invalid { border-color: #E2553A; }
.big-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big-choice--3 { grid-template-columns: repeat(3, 1fr); }
.big-choice label { cursor: pointer; }
.big-choice input { position: absolute; opacity: 0; }
.big-choice span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 66px; padding: 8px; border-radius: 16px; border: 3px solid var(--line); background: var(--bg); font-weight: 800; font-size: 1.125rem; line-height: 1.4; text-align: center; }
.big-choice span b { font-size: 1.375rem; }
.big-choice input:checked + span { border-color: var(--sky); background: var(--sky); color: #fff; }
.big-choice input:focus-visible + span { outline: 4px solid var(--sun); outline-offset: 2px; }
.big-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.big-days button { min-height: 72px; border-radius: 16px; border: 3px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 800; line-height: 1.3; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-days button b { font-family: var(--num); font-size: 1.5rem; font-weight: 900; }
.big-days button[aria-checked="true"] { border-color: var(--sky); background: var(--sky); color: #fff; }
.big-days button:disabled { opacity: .4; cursor: not-allowed; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.0625rem; margin-bottom: 22px; cursor: pointer; }
.check input { width: 28px; height: 28px; accent-color: var(--sky); }
.err { color: #C43B22; font-size: 1rem; font-weight: 800; }
.err:empty { display: none; }
.visit-done { text-align: center; }
.done-face { width: 96px; margin: 0 auto 14px; }
.visit-done h3 { font-weight: 800; font-size: 1.625rem; }
.visit-done p { margin-top: 10px; font-size: 1.125rem; }
.visit-done .note { font-size: .9375rem; color: var(--muted); }

/* ---------- faq / access ---------- */
.faq-inner { max-width: 880px; }
.faq details { border-radius: 18px; border: 3px solid var(--line); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 800; font-size: 1.1875rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 22px; top: 18px; font-size: 1.5rem; color: var(--sky); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 1.0625rem; }
.access-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; }
.info > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 14px 0; border-bottom: 2px dotted var(--line); }
.info dt { font-weight: 800; color: var(--sky-dark); }
.access-photo { border-radius: var(--radius); overflow: hidden; }
.access-photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--sky-dark); color: #fff; padding: 46px 20px 110px; text-align: center; }
.footer-logo { font-weight: 800; font-size: 2rem; line-height: 1.2; display: flex; flex-direction: column; }
.footer-logo small { font-size: .875rem; opacity: .85; }
.demo-note { font-size: .75rem; margin-top: 18px; opacity: .85; }
.copy { font-family: var(--num); font-size: .8125rem; opacity: .8; }
.sp-bar { display: none; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) { .gnav { display: none; } }
@media (max-width: 860px) {
  .hero-inner, .crowd-grid, .visit-grid, .access-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .feat-grid, .price-grid, .lesson-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .price-grid { gap: 28px; }
  .staff-grid { grid-template-columns: 1fr; }
  .st { grid-template-columns: 130px 1fr; }
  .bars { gap: 3px; height: 200px; }
  .bar span { font-size: .6875rem; }
  .bar:nth-child(even) span { visibility: hidden; }
  .tel span { display: none; }
  .tel { padding: 10px; }
  .sp-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .sp-bar a { display: grid; place-items: center; min-height: 56px; border-radius: 16px; font-weight: 800; font-size: 1.125rem; text-decoration: none; color: #fff; }
  .sp-tel { background: var(--grass); }
  .sp-visit { background: var(--sky); }
  .fs-label { display: none; }
}
@media (max-width: 480px) {
  .cn-text b { font-size: 1.25rem; }
  .big-days { grid-template-columns: repeat(3, 1fr); }
  .big-choice--3 { grid-template-columns: 1fr 1fr 1fr; }
  .st { grid-template-columns: 1fr; }
  .st figure { width: 60%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar i { transition: none; }
}

/* ---- 日本語の改行（全サイト共通・2026-10-17 追加）----
   見出し・ボタンは文節で折り返し（Chrome/Edge）、本文は最後の行に1〜2文字だけ残るのを防ぐ。
   :where() で詳細度を0にしているので、各サイトの個別指定が常に優先される */
:where(h1, h2, h3, h4, h5, h6, dt, th, figcaption, button, label, [class*="lead"]) { word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance; }
:where(p, li, dd, td, blockquote) { text-wrap: pretty; line-break: strict; }
:where(time, .nw) { white-space: nowrap; }

/* ---- フッターのナビと営業情報（2026-10-17 追加）---- 色と書体はフッターから受け継ぐ */
.pf-fnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; margin: 26px auto 0; padding: 0 16px; }
.pf-fnav a { padding: 6px 0; font-size: 13px; letter-spacing: .12em; text-decoration: none; color: inherit; opacity: .82; transition: opacity .2s; }
.pf-fnav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pf-finfo { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; margin: 12px auto 0; padding: 0 16px; font-size: 12.5px; line-height: 1.8; opacity: .72; }
.pf-finfo span { white-space: nowrap; }
@media (max-width: 600px) { .pf-fnav { gap: 0 20px; } .pf-finfo { flex-direction: column; align-items: center; gap: 0; } .pf-finfo span { white-space: normal; text-wrap: balance; text-align: center; } }
.pf-fnav a { font-size: .9375rem; font-weight: 700; }
.pf-finfo { font-size: .875rem; opacity: .9; }
@media (max-width: 360px) { .big-choice { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .big-choice--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .big-choice span { padding-inline: 6px; font-size: 1rem; } .visit-form { padding: 18px 14px; } }
