/* バク転ナビ：紺と青を主に、水色の弧・オレンジのボタン（デザイン案）。体操教室ナビの style.css を元に書きかえ */
:root {
  --navy: #1d3f8f; --blue: #2a6fd6; --sky: #19b5d8; --sky-l: #e8f6fc; --orange: #ff7a1a; --orange-d: #f05a0a;
  --teal: #13a89e; --pink: #ec5a92;
  --ink: #1b2747; --sub: #5b6782; --line: #e3e9f3; --bg: #f5f9fd; --card: #fff;
  --r: 16px; --sh: 0 6px 22px rgba(29, 63, 143, .08);
  --f: 'Noto Sans JP', system-ui, sans-serif; --fe: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif; --fh: 'Yusei Magic', 'M PLUS Rounded 1c', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--f); color: var(--ink); background: var(--bg); line-height: 1.75; -webkit-text-size-adjust: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
svg { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
button { font: inherit; cursor: pointer; }
main { overflow-x: clip; }
.sp { display: none; }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark svg { width: 48px; height: 40px; }
.logo-t { display: flex; flex-direction: column; line-height: 1.1; }
.logo-t b { font: 800 24px var(--fe); letter-spacing: .02em; color: var(--navy); }
.logo-t em { font-style: normal; color: var(--sky); }
.logo-t small { font-size: 9.5px; color: var(--sub); letter-spacing: .04em; }
/* ロゴ画像：まわりの余白を切って表示（中身は横 75〜1945・縦 105〜560px あたり） */
.logo:has(.logo-img) { flex-direction: column; align-items: flex-start; gap: 0; }
.logo-img { display: block; position: relative; height: 40px; aspect-ratio: 1870 / 455; overflow: hidden; }
.logo-img img { position: absolute; width: calc(2000 / 1870 * 100%); height: auto; left: calc(-75 / 1870 * 100%); top: calc(-105 / 455 * 100%); }
.logo-tag { font-size: 9.5px; color: var(--sub); letter-spacing: .04em; line-height: 1.2; margin-top: 2px; }
.ft .logo:has(.logo-img) { background: #fff; border-radius: 14px; padding: 10px 14px; width: max-content; }
.gnav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 13.5px; font-weight: 700; }
.gnav a { color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.gnav-fav svg { color: var(--pink); }
.gnav-cta { background: linear-gradient(135deg, #ff9640, var(--orange-d)); color: #fff !important; border-radius: 999px; padding: 8px 16px; box-shadow: 0 4px 12px rgba(240, 90, 10, .28); }
.gnav-cta:hover { text-decoration: none; filter: brightness(.96); }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .2s; }
.menu-btn span:nth-child(1) { top: 13px; } .menu-btn span:nth-child(2) { top: 20px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn-go { background: linear-gradient(135deg, #ff9a3d, var(--orange-d)); color: #fff; box-shadow: 0 6px 16px rgba(240, 90, 10, .3); font: 800 17px var(--fe); }
.btn-go.sm { font-size: 14.5px; padding: 10px 20px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy.sm { font-size: 14px; padding: 10px 20px; }
.btn-line { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); padding: 8px 18px; font-size: 14px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: 32px 16px 0; background:
  radial-gradient(ellipse at 85% 10%, #dff3fb 0, transparent 50%),
  linear-gradient(180deg, #f2f9fe 0, #e9f4fc 62%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 120px; height: 46px; background: repeating-linear-gradient(90deg, #cfe6f8 0 120px, #bcdcf4 120px 240px); opacity: .55; }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 12px; min-height: 300px; }
.hero-catch { margin: 0 0 8px; font: 700 14px var(--fe); color: var(--blue); }
.hero-catch br { display: none; }
.hero-h { font: 400 clamp(36px, 5.6vw, 66px) var(--fh); color: var(--navy); line-height: 1.25; letter-spacing: .01em; }
.hero-h span { display: block; white-space: nowrap; }
.hero-h em { font-style: normal; color: var(--navy); }
.hero-h i { font-style: normal; color: var(--sky); }
.hero-h .big { font-size: 1.22em; }
.hero-lead { margin: 10px 0 0; font: 700 clamp(15px, 1.6vw, 18px) var(--fe); color: var(--ink); }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: 24px; }
.seq { width: 100%; height: auto; display: block; }
.hero-hand { position: absolute; right: 0; bottom: -8px; margin: 0; font: 400 17px var(--fh); color: var(--blue); transform: rotate(-8deg); text-align: right; line-height: 1.3; }

/* メインビジュアルがあるとき：写真を背景に敷き、左の白い部分に見出しを重ねる */
.hero.has-photo { padding-top: 0; background: var(--bg); }
.hero.has-photo::before { display: none; }
.hero-photo { position: absolute; left: 0; right: 0; top: 0; bottom: 64px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; display: block; }
.hero.has-photo .hero-in { grid-template-columns: 1fr; min-height: clamp(380px, 38vw, 560px); align-content: center; }
.hero.has-photo .hero-txt { max-width: 560px; text-shadow: 0 0 18px rgba(255, 255, 255, .9), 0 0 4px rgba(255, 255, 255, .9); }
.hero.has-photo .hero-hand { right: 4%; top: 6%; bottom: auto; font-size: 20px; color: #fff; text-shadow: 0 2px 8px rgba(29, 63, 143, .6); }

/* 検索 */
.sbox { position: relative; z-index: 2; max-width: 1060px; margin: 18px auto 0; background: #fff; border-radius: 22px; box-shadow: 0 18px 44px rgba(29, 63, 143, .14); padding: 18px 22px; }
.sb-row { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: end; }
.sb-f { display: flex; flex-direction: column; gap: 4px; }
.sb-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.sb-l svg { color: var(--blue); width: 18px; height: 18px; }
.sb-s { position: relative; display: block; }
.sb-s select { width: 100%; appearance: none; font: inherit; font-size: 15px; padding: 11px 36px 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.sb-s::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border: solid var(--sub); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sb-s select:disabled { background: var(--bg); color: #94a3b8; }
.sb-row .btn-go { height: 50px; padding: 0 22px; }
.hero-note { position: relative; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--navy); margin: 12px 0 0; padding-bottom: 6px; }
.sample-bar { max-width: 1200px; margin: 16px auto 0; padding: 8px 14px; background: #fff7ed; color: #9a3412; border-radius: 10px; font-size: 13px; text-align: center; }

/* ---------- セクション ---------- */
.sec { max-width: 1240px; margin: 0 auto; padding: 48px 16px 0; }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.sec-h h2 { font: 800 clamp(20px, 2.6vw, 26px) var(--fe); color: var(--navy); display: inline-flex; align-items: center; gap: 8px; }
.sec-h h2 > svg { color: var(--blue); width: 28px; height: 28px; }
.sec-h h2 em { font-style: normal; color: var(--sky); font-size: 1.5em; line-height: 1; }
.sec-side { margin: 0; color: var(--sub); font-size: 13px; }
.sec-more { margin-left: auto; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.note { font-size: 12.5px; color: var(--sub); }
.empty { color: var(--sub); background: var(--bg); padding: 16px; border-radius: 12px; }

/* イラストの共通。site/img の画像に差しかわったときも同じ枠に収める */
.fig { width: 100%; height: 100%; display: block; }
.lc-fig img, .mo-fig img, .dr-fig img, .ph-fig img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
/* 画像があるレベルのカード：画像を上に大きく */
.lcard:has(img) { display: flex; flex-direction: column; gap: 2px; padding-top: 0; }
.lcard:has(img) .lc-fig { order: -1; display: block; align-self: stretch; width: calc(100% + 40px); height: 180px; margin: 0 -20px 12px; }
.lcard:has(img) .lc-fig img { border-radius: 0; object-position: 50% 25%; }
.levels.sm .lcard:has(img) .lc-fig { height: 150px; }
/* 画像がある「できた！までのステップ」 */
.mo-steps li:has(img) { grid-template-rows: 150px auto; }
.mo-steps li:has(img) .mo-fig { height: 150px; }
.mo-steps.big li:has(img) { grid-template-rows: 200px auto auto; }
.mo-steps.big li:has(img) .mo-fig { height: 200px; }

/* 目的から探す */
.purposes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; color: var(--ink); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 18%, #fff), #fff 75%); box-shadow: var(--sh); border: 2px solid transparent; transition: .2s; min-height: 150px; }
.pcard:hover { text-decoration: none; border-color: var(--c); transform: translateY(-3px); }
.pc-ph { height: 120px; display: block; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 28%, #fff), color-mix(in srgb, var(--c) 8%, #fff)); }
.pc-ph img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph .fig { width: auto; height: 100%; margin: 0 auto; }
.pc-t { padding: 12px 52px 14px 16px; display: flex; flex-direction: column; }
.pc-t b { font: 800 19px var(--fe); color: color-mix(in srgb, var(--c) 85%, #000); line-height: 1.3; }
.pc-t small { font-size: 12.5px; color: var(--sub); margin-top: 4px; }
.pc-go { position: absolute; right: 12px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c, var(--blue)); color: #fff; }
.pc-go svg { width: 16px; height: 16px; }
.purposes.sm { grid-template-columns: repeat(3, 1fr); }
.purposes.sm .pcard { min-height: 0; }
.purposes.sm .pc-t b { font-size: 16px; }
.purposes.sm .pc-t b br { display: none; }

/* 3つのステップ */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lcard { position: relative; display: grid; grid-template-columns: 1fr 120px; grid-template-rows: auto auto 1fr; gap: 2px 10px; padding: 18px 20px; background: linear-gradient(135deg, #fff 55%, var(--sky-l)); border-radius: 18px; box-shadow: var(--sh); color: var(--ink); border: 1.5px solid var(--line); transition: .2s; overflow: hidden; }
.lcard:hover { text-decoration: none; border-color: var(--sky); transform: translateY(-3px); }
.lc-no { font: 800 34px var(--fe); color: var(--blue); line-height: 1; display: flex; flex-direction: column; }
.lc-no small { font-size: 11px; letter-spacing: .1em; color: var(--sky); }
.lc-t { font: 800 18px var(--fe); color: var(--navy); grid-column: 1; }
.lc-lead { font-size: 13px; color: var(--sub); grid-column: 1; }
.lc-fig { grid-column: 2; grid-row: 1 / 4; align-self: center; height: 110px; }
.levels.sm .lcard { grid-template-columns: 1fr 90px; }
.levels.sm .lc-fig { height: 84px; }
.levels.sm .lc-t { font-size: 16px; }

/* 教室カード */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--sh); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.cc-ph { position: relative; height: 150px; background: linear-gradient(180deg, #dbeefa, #f2f9fe); }
.cc-ph img { width: 100%; height: 100%; object-fit: cover; }
.cc-ph { display: grid; place-items: center; }
.cc-ph .fig { width: auto; height: 120px; }
.cc-badge { position: absolute; left: 10px; top: 10px; background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.cc-body { padding: 12px 16px 16px; }
.ccard h3 { font-size: 15.5px; padding-right: 28px; }
.ccard h3 a { color: var(--ink); }
.cc-area { margin: 4px 0 0; font-size: 12.5px; color: var(--sub); display: flex; align-items: center; gap: 3px; }
.cc-area svg { color: var(--blue); }
.cc-area a { color: var(--sub); }
.cc-tags, .cc-course, .cc-conds { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.cc-tags span { font-size: 11.5px; padding: 1px 9px; border-radius: 6px; background: var(--sky-l); color: var(--blue); font-weight: 700; }
.cc-tags .age { background: var(--navy); color: #fff; }
.cc-course span { font-size: 11.5px; padding: 1px 9px; border-radius: 999px; color: var(--c); border: 1.5px solid color-mix(in srgb, var(--c) 45%, #fff); font-weight: 700; }
.cc-rate { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cc-rate b { font: 800 15px var(--fe); }
.cc-rate small { color: var(--sub); }
.stars { position: relative; color: #e2e8f0; letter-spacing: 1px; font-size: 14px; }
.stars::before { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--r); overflow: hidden; color: #f5b301; white-space: nowrap; }
.cc-conds span { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; background: #ecfaf8; color: var(--teal); }
.cc-conds svg { width: 13px; height: 13px; }
.fav { position: absolute; right: 10px; top: 158px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: #b8c2d6; display: grid; place-items: center; }
.fav svg { width: 18px; height: 18px; }
.fav.on { color: var(--pink); border-color: var(--pink); }
.fav.on svg { fill: currentColor; }

/* 掲載の募集 */
.recruit { display: flex; gap: 22px; align-items: center; background: linear-gradient(135deg, #fff4ea, #fff); border: 2px dashed #ffc9a3; border-radius: 20px; padding: 24px 26px; }
.recruit h3 { font: 800 19px var(--fe); color: var(--navy); }
.recruit p { color: var(--sub); font-size: 14.5px; margin: 6px 0 14px; }
.recruit.sm { padding: 18px 20px; }
.rc-ic { flex: none; width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; box-shadow: var(--sh); }
.rc-ic svg { width: 36px; height: 36px; }

/* できた！までのステップ */
.motion { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; background: linear-gradient(120deg, #fff 30%, #eaf6fd); border-radius: 24px; padding: 26px 30px; box-shadow: var(--sh); }
.mo-txt h2 { font: 800 clamp(24px, 3vw, 32px) var(--fe); color: var(--blue); }
.mo-txt h2 em { font-style: normal; color: var(--orange); }
.mo-txt p { margin: 8px 0 14px; color: var(--ink); font-weight: 700; }
.mo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: s; }
.mo-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 120px auto; gap: 0 8px; align-items: center; }
.mo-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50px; color: var(--orange); font-weight: 800; font-size: 20px; }
.mo-fig { grid-column: 1 / 3; height: 120px; }
.mo-no { font: 800 40px var(--fe); color: var(--blue); line-height: 1; }
.mo-steps b { font-size: 14px; line-height: 1.4; }
.mo-steps small { grid-column: 1 / 3; font-size: 13px; color: var(--sub); margin-top: 6px; }
.mo-steps.big li { grid-template-rows: 150px auto auto; background: var(--bg); border-radius: 16px; padding: 12px 14px; }
.mo-steps.big .mo-fig { height: 150px; }
.mo-steps.big b { font-size: 16px; }

/* バク転を始める前に */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gcard { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 52px 14px 14px; background: #fff; border-radius: 16px; box-shadow: var(--sh); color: var(--ink); border: 1.5px solid transparent; transition: .2s; }
.gcard:hover { text-decoration: none; border-color: var(--sky); }
.gc-ph { flex: none; width: 92px; height: 72px; border-radius: 12px; background: var(--sky-l); color: var(--blue); display: grid; place-items: center; overflow: hidden; }
.gc-ph svg { width: 36px; height: 36px; }
.gc-ph img { width: 100%; height: 100%; object-fit: cover; }
.gcard b { display: block; font-size: 15px; }
.gcard small { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.5; margin-top: 2px; }
.gcard .pc-go { top: 50%; bottom: auto; transform: translateY(-50%); }
.guides.sm { grid-template-columns: repeat(2, 1fr); }

/* 体育館・公共スポーツ施設 */
.facility { margin-top: 56px; background: linear-gradient(180deg, #e3f5fb, #eef9fc); padding: 44px 16px; }
.fac-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.fac-txt h2 { font: 800 clamp(20px, 2.6vw, 26px) var(--fe); color: var(--navy); display: flex; gap: 8px; align-items: center; }
.fac-txt h2 svg { color: var(--teal); width: 30px; height: 30px; }
.fac-txt > p { color: var(--sub); font-size: 14px; margin: 6px 0 16px; }
.fac-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fcd { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--sh); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.fcd:hover { text-decoration: none; }
.fcd-ph { height: 110px; display: grid; place-items: center; background: linear-gradient(135deg, #cdeaf6, #eaf6fc); color: var(--teal); }
.fcd-ph svg { width: 56px; height: 56px; }
.fcd-ph img { width: 100%; height: 100%; object-fit: cover; }
.fcd > span:nth-child(2) { padding: 10px 48px 12px 14px; }
.fcd b { display: block; font-size: 15px; }
.fcd small { color: var(--sub); font-size: 12px; }
.fac-form { background: #fff; border-radius: 20px; box-shadow: var(--sh); padding: 20px; display: grid; gap: 10px; }
.fac-form h3 { font-size: 15px; display: flex; gap: 6px; align-items: center; color: var(--navy); }
.fac-form h3 svg { color: var(--blue); }
.reg-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.reg-btns button { border: 1.5px solid var(--line); background: var(--bg); border-radius: 10px; padding: 7px 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.reg-btns button[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.reg-list { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.reg-list[hidden] { display: none; }
.reg-list a { color: var(--ink); }
.reg-list a.has { color: var(--blue); font-weight: 700; }
.fac-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fac-form .note { margin: 0; }

.od-about { display: flex; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--sky-l), #fff); border-radius: 24px; padding: 30px; margin-bottom: 64px; }
.od-ic { flex: none; width: 72px; height: 72px; border-radius: 20px; background: #fff; color: var(--blue); display: grid; place-items: center; }
.od-ic svg { width: 40px; height: 40px; }
.od-about h2 { font-size: 20px; font-weight: 900; color: var(--navy); }
.od-about p { color: var(--sub); font-size: 14.5px; }

/* ---------- 下層ページ ---------- */
.sub main { max-width: 1000px; margin: 0 auto; padding: 0 16px 64px; }
.ph { padding: 22px 0 8px; }
.crumbs { font-size: 12.5px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs i { font-style: normal; color: #cbd5e1; }
.ph h1 { font: 800 clamp(23px, 3.6vw, 32px) var(--fe); color: var(--navy); margin-top: 12px; }
.ph-lead { color: var(--sub); }
.ph-flex { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.ph-fig { flex: none; width: 120px; height: 120px; background: var(--sky-l); border-radius: 24px; padding: 6px; }
.ph-step { margin: 0; font: 800 14px var(--fe); color: var(--sky); letter-spacing: .1em; }
.ph-flex h1 { margin-top: 2px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.stats span { background: #fff; border-radius: 12px; padding: 8px 14px; font-size: 13px; color: var(--sub); box-shadow: var(--sh); }
.stats b { font: 800 22px var(--fe); color: var(--blue); margin-right: 4px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.toc a { font-size: 13px; padding: 5px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.card { background: #fff; border-radius: 20px; box-shadow: var(--sh); padding: 26px; margin-top: 20px; }
.card > h2 { font: 800 20px var(--fe); color: var(--navy); margin-bottom: 10px; padding-left: 12px; border-left: 5px solid var(--sky); display: flex; align-items: center; gap: 6px; }
.card-lead { color: var(--sub); font-size: 14.5px; margin-top: 0; }
.munis { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.munis a { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 14px; }
.munis a.has { background: var(--sky-l); font-weight: 700; color: var(--navy); }
.munis small { font: 600 11px var(--fe); background: var(--orange); color: #fff; border-radius: 999px; padding: 0 7px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checks li { background: var(--bg); border-radius: 10px; padding: 8px 12px 8px 34px; position: relative; font-size: 14.5px; }
.checks li::before { content: "✓"; position: absolute; left: 12px; color: var(--teal); font-weight: 700; }
.steps { padding-left: 1.4em; }
.steps li { margin: 6px 0; }
.steps b { display: block; color: var(--navy); }
.legal h2 { font-size: 16.5px; margin-top: 22px; color: var(--navy); }
.legal p { font-size: 14.5px; }
.faq { margin: 8px 0 0; }
.faq dt { font-weight: 700; display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; color: var(--navy); }
.faq dt svg { color: var(--sky); margin-top: 4px; }
.faq dd { margin: 4px 0 0 28px; font-size: 14.5px; color: var(--ink); }

/* 練習方法 */
.goal { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: #fff7ef; border-radius: 12px; padding: 10px 14px; }
.goal svg { color: var(--orange); }
.goal b { color: var(--orange-d); }
.drills { display: grid; gap: 14px; }
.drill { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px; border: 1.5px solid var(--line); border-radius: 16px; scroll-margin-top: 90px; }
.dr-fig { background: var(--sky-l); border-radius: 14px; height: 150px; padding: 6px; }
.dr-top { margin: 0; display: flex; align-items: center; gap: 8px; }
.dr-no { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 800 14px var(--fe); }
.wh { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.wh svg { width: 14px; height: 14px; }
.wh.home { background: #e6f7ef; color: #15803d; }
.wh.class { background: #fff1e6; color: var(--orange-d); }
.drill h3 { font: 800 18px var(--fe); color: var(--navy); margin-top: 6px; }
.dr-aim { margin: 4px 0; font-size: 14px; }
.dr-aim b, .dr-meta b { display: inline-block; font-size: 11.5px; background: var(--navy); color: #fff; border-radius: 6px; padding: 0 8px; margin-right: 8px; }
.dr-how { margin: 6px 0; padding-left: 1.3em; font-size: 14.5px; }
.dr-meta { margin: 4px 0; font-size: 14px; }
.dr-care { margin: 8px 0 0; display: flex; gap: 6px; font-size: 13px; color: #b45309; background: #fffbeb; border-radius: 10px; padding: 6px 10px; }
.dr-care svg { margin-top: 3px; }
.warnbox { background: linear-gradient(135deg, #fff7ef, #fff); border: 2px solid #ffd7b5; }
.warnbox > h2 { border-left-color: var(--orange); }
.warnbox > h2 svg { color: var(--orange); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-weight: 700; }
.find-in { display: flex; flex-wrap: wrap; gap: 10px; }
.find > h2 svg { color: var(--blue); }

/* 市区町村ページの施設一覧（体操教室ナビと同じ） */
.flist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flist > li { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 90px; }
.fl-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-l); color: var(--blue); }
.fl-ic svg { width: 28px; height: 28px; }
.flist h3 { font-size: 16.5px; }
.flist p { margin: 4px 0 0; font-size: 13.5px; }
.fl-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-size: 11.5px; padding: 1px 8px; border-radius: 6px; font-weight: 700; color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 12%, #fff); }
.tag.in { --c: #0f766e; }
.fl-addr { color: var(--sub); display: flex; gap: 4px; }
.fl-info { color: var(--sub); }
.fl-links a { display: inline-flex; align-items: center; gap: 4px; }

/* 地図・オープンデータ（od-section.mjs） */
.map-wrap { position: relative; }
.map { height: 440px; border-radius: var(--r); background: #e5edf7; z-index: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lg { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.lg i { width: 10px; height: 10px; border-radius: 50%; }
.lg small { color: var(--sub); }
.lg:not(.on) { opacity: .45; }
.spot-g { margin-top: 22px; }
.spot-g.off { display: none; }
.spot-g h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spot-g h3 i { width: 12px; height: 12px; border-radius: 50%; }
.spot-g h3 small { font-weight: 400; color: var(--sub); font-size: 12.5px; }
.spots { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; }
.spots li { padding: 8px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; display: flex; flex-direction: column; }
.spots b { font-size: 14px; }
.spots .cat, .spots .addr, .spots .info { color: var(--sub); font-size: 12px; }
.src { font-size: 12px; color: var(--sub); margin: 8px 0 0; }
.srcs { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.srcs li { display: flex; gap: 10px; padding: 12px 14px; background: var(--bg); border-radius: 12px; }
.srcs li > svg { color: var(--blue); margin-top: 3px; }
.srcs span { display: flex; flex-direction: column; font-size: 14px; }
.srcs small { color: var(--sub); }
.srcs a { font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--bg); font-size: 12.5px; }

/* 検索結果 */
.sfilter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sb-opts { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.ck { cursor: pointer; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck span { display: inline-flex; align-items: center; gap: 3px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff; transition: .15s; }
.ck span svg { width: 15px; height: 15px; color: var(--teal); }
.ck input:checked + span { border-color: var(--blue); background: var(--sky-l); color: var(--navy); font-weight: 700; }
.ck input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.s-count { font-weight: 700; margin: 20px 0 12px; }
.s-more { text-align: center; margin-top: 18px; }

/* ---------- フッター・下のタブ ---------- */
.ft { background: var(--navy); color: #c7d7f5; }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 36px 16px 28px; display: grid; gap: 14px; }
.ft .logo-t b, .ft .logo-t em { color: #fff; }
.ft .logo-t em { color: #7fdcf2; }
.ft .logo-t small { color: #a9c1ec; }
.ft-lead { margin: 0; font-size: 13.5px; }
.ft-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.ft-nav a { color: #fff; }
.ft-c { margin: 0; font-size: 12px; color: #a9c1ec; }
.tabbar { display: none; }

/* 見えたらふわっと */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .gnav { gap: 12px; font-size: 12.5px; }
  .purposes { grid-template-columns: repeat(2, 1fr); }
  .ccards { grid-template-columns: repeat(2, 1fr); }
  .fac-in { grid-template-columns: 1fr; }
  .motion { grid-template-columns: 1fr; }
}
/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); gap: 0; font-size: 15px; }
  .gnav.open { display: flex; }
  .gnav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .gnav-cta { justify-content: center; margin-top: 12px; border-bottom: 0 !important; }
  .logo-t b { font-size: 22px; }
  .hero { padding-top: 16px; }
  .hero::before { display: none; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-txt { order: 2; text-align: left; }
  .hero-art { order: 1; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-hand { font-size: 14px; bottom: -4px; }
  /* スマホ：写真を縦長に敷き（子どもとコーチが入るよう右寄せで切る）、下の白くぼかした部分に見出しを重ねる */
  .hero.has-photo .hero-photo { bottom: auto; height: 430px; }
  .hero.has-photo .hero-photo img { object-position: 84% 50%; }
  .hero.has-photo .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(245, 249, 253, .7) 64%, var(--bg) 94%); }
  .hero.has-photo .hero-in { min-height: 420px; align-content: end; padding-bottom: 4px; }
  .hero.has-photo .hero-hand { display: none; }
  .hero-catch { font-size: 12px; margin: 4px 0 2px; }
  .cc-ph .fig { height: 100px; }
  .hero-h { font-size: clamp(30px, 8.6vw, 44px); }
  .sp { display: inline; }
  .sbox { padding: 14px; margin-top: 14px; }
  .sb-row { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .sb-row .sb-l { font-size: 11.5px; }
  .sb-s select { font-size: 13px; padding: 9px 26px 9px 10px; }
  .sb-s::after { right: 10px; }
  .sb-row .btn-go { grid-column: 1 / -1; width: 100%; }
  .hero-note { font-size: 11px; }
  .sec { padding-top: 36px; }
  .sec-h { gap: 2px 10px; }
  .sec-side { font-size: 12px; }
  .purposes { gap: 10px; }
  .pcard { min-height: 0; flex-direction: row; align-items: center; }
  .pc-ph { width: 40%; height: 100px; flex: none; }
  .pc-t { padding: 10px 40px 10px 10px; }
  .pc-t b { font-size: 16px; }
  .pc-t small { display: none; }
  .pc-go { width: 26px; height: 26px; right: 8px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .levels { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lcard { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding: 12px 10px; text-align: center; }
  .lc-no { font-size: 20px; flex-direction: row; justify-content: center; align-items: baseline; gap: 4px; background: var(--teal); color: #fff; border-radius: 999px; padding: 2px 8px; }
  .lc-no small { color: #dff7f4; }
  .lc-t { font-size: 14px; }
  .lc-fig { grid-column: 1; grid-row: 3; height: 80px; }
  .lc-lead { font-size: 11.5px; grid-row: 4; }
  .ccards { grid-template-columns: 1fr; gap: 12px; }
  .ccard { flex-direction: row; }
  .cc-ph { width: 42%; height: auto; min-height: 140px; flex: none; }
  .cc-badge { font-size: 10px; padding: 1px 7px; }
  .fav { top: 10px; }
  .motion { padding: 20px 16px; }
  .mo-steps li, .mo-steps li:has(img) { grid-template-rows: 90px auto; }
  .mo-steps li:has(img) .mo-fig { height: 90px; }
  .lcard:has(img) { text-align: left; }
  .lcard:has(img) .lc-fig { height: 110px; width: calc(100% + 20px); margin: 0 -10px 8px; }
  .levels.sm .lcard:has(img) .lc-fig { width: calc(100% + 40px); margin: 0 -20px 8px; }
  .levels.sm .lcard:has(img) .lc-fig { height: 150px; }
  .mo-fig { height: 90px; }
  .mo-no { font-size: 26px; }
  .mo-steps b { font-size: 12px; }
  .mo-steps.big { grid-template-columns: 1fr; }
  .mo-steps.big li { grid-template-columns: 110px auto 1fr; grid-template-rows: auto auto; }
  .mo-steps.big .mo-fig { grid-column: 1; grid-row: 1 / 3; height: 110px; }
  .mo-steps.big small { grid-column: 2 / 4; }
  .mo-steps.big li::after { display: none; }
  .guides, .guides.sm { grid-template-columns: 1fr; }
  .fac-cards { grid-template-columns: 1fr 1fr; }
  .fac-cards .fcd:nth-child(3) { display: none; }
  .fcd-ph { height: 80px; }
  .od-about { flex-direction: column; align-items: flex-start; padding: 22px; }
  .card { padding: 20px 16px; }
  .ph-fig { width: 84px; height: 84px; }
  .drill { grid-template-columns: 1fr; }
  .dr-fig { height: 130px; max-width: 220px; }
  .checks, .purposes.sm, .sfilter { grid-template-columns: 1fr; }
  .levels.sm { grid-template-columns: 1fr; }
  .levels.sm .lcard { grid-template-columns: 1fr 80px; text-align: left; }
  .levels.sm .lc-no { justify-content: flex-start; width: max-content; }
  .levels.sm .lc-fig { grid-column: 2; grid-row: 1 / 4; }
  .recruit { flex-direction: column; align-items: flex-start; padding: 20px; }
  .map { height: 360px; }
  .tbl { font-size: 12px; }
  .tbl th:nth-child(3), .tbl td:nth-child(3) { display: none; }
  /* 下のタブ */
  body { padding-bottom: 64px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10.5px; color: var(--sub); }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--blue); font-weight: 700; }
}
@media (max-width: 400px) {
  .sb-row { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
  .lcard { grid-template-columns: 1fr 90px; text-align: left; }
  .lc-no { justify-content: flex-start; width: max-content; }
  .lc-fig { grid-column: 2; grid-row: 1 / 4; }
}
