/* NOBISHIRO STATS 紹介サイト共通スタイル（2026-08-14 全面リニューアル）
   方針: 白基調 × 緑アクセント固定・全ゴシック（Noto Sans JP + Inter）・絵文字なし・文字少なめ。
   プランの色分け: 個人=若草グリーン(--p-green) / チーム=深緑(--t-green)。緑ファミリー内で統一。 */

:root {
  --ink: #22302a;
  --ink2: #5b6a61;
  --faint: #93a099;
  --line: #e4e9e4;
  --bg: #ffffff;
  --bg-soft: #f6f8f5;
  --p-green: #5fa96b;        /* 個人プラン */
  --p-green-strong: #3d8a4c;
  --p-soft: #eef6ee;
  --t-green: #2f6b46;        /* チームプラン */
  --t-green-strong: #24543a;
  --t-soft: #e9f1ec;
  --plus-amber: #b07c2a;     /* プラスのバッジのみ */
  --plus-soft: #f8f1e2;
  --radius: 14px;
  --maxw: 1080px;
  /* 「イラスト大＋スマホ2台」の列の比と間隔。.media-duo と、絵が右のときの
     見出し・本文の寄せ（.subfeat:has(> .media-duo.rev)）が共有する。
     ⚠️ 比を変えるときは --duo-cols と --duo-cols-rev を必ず対で直す */
  --duo-cols: 1.55fr 1fr;
  --duo-cols-rev: 1fr 1.55fr;
  --duo-gap: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15.5px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p-green-strong); text-decoration: none; }
h1, h2, h3 { line-height: 1.45; letter-spacing: .01em; text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: clamp(26px, 4.6vw, 40px); font-weight: 800; }
h2 { font-size: clamp(21px, 3.2vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: .5em 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
.lead { color: var(--ink2); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* eyebrow / バッジ */
/* セクションラベル: 薄い緑地のピル。サイト全体でこの形に統一（2026-08-15 UI見直し） */
.eyebrow {
  display: inline-block; font-size: 20px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: var(--p-green-strong);
  padding: 10px 28px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow.team { color: #fff; background: var(--t-green); }
/* 画像ヒーロー上では白地のピルにして絵から浮かせる */
.hero-visual .eyebrow { background: rgba(255,255,255,.88); color: var(--p-green-strong); }
.hero-visual .eyebrow.team { color: var(--t-green-strong); }
.eyebrow.big { font-size: 20px; padding: 10px 28px; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 10px; border-radius: 99px; vertical-align: 2px; white-space: nowrap; }
.tag.free { background: var(--p-soft); color: var(--p-green-strong); }
.tag.plus { background: var(--plus-soft); color: var(--plus-amber); }
.tag.team { background: var(--t-soft); color: var(--t-green-strong); }

/* header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; font-size: 15px; }
.brand img { width: 26px; height: 26px; }
.brand .mini { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--faint); display: block; line-height: 1.2; }
nav.g { display: flex; gap: 18px; margin-left: auto; font-size: 13.5px; font-weight: 700; }
nav.g a { color: var(--ink2); }
nav.g a:hover { color: var(--ink); }
nav.g a.now { color: var(--p-green-strong); }
@media (max-width: 760px) { nav.g { display: none; } }

/* スマホのメニュー（2026-08-19）。760px 以下では nav.g が消えて、
   ヘッダーにロゴしか残らず「他のページへ行く手段が無い」状態だった。
   ページが長いので、フッターまでスクロールさせるのは現実的でない。 */
.navtoggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin-left: 10px;
  background: none; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
}
.navtoggle i { display: block; position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.navtoggle i::before, .navtoggle i::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
}
.navtoggle i::before { top: -6px; }
.navtoggle i::after { top: 6px; }
@media (max-width: 760px) {
  .navtoggle { display: inline-flex; }
  /* 申し込みボタンが見えている幅では、そちらを右へ押して ≡ を隣に並べる。
     480px 以下は申し込みボタンが消えるので、≡ 自身が右へ寄る（下の指定） */
  .header-cta { margin-left: auto; }
}
@media (max-width: 480px) { .navtoggle { margin-left: auto; } }

/* 開いたメニュー。アプリ（bottom-nav のメニュー）と同じ「うっすら暗い背景＋浮かぶカード」。
   全面に置き換えると「別のページに来た」感じになって戻りにくい、というオーナー指摘で作り直した。 */
.navscrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .22); }
.navpanel {
  position: fixed; z-index: 56; top: 68px; right: 14px;
  width: min(272px, calc(100vw - 28px)); max-height: calc(100vh - 84px); overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 44px rgba(34, 48, 42, .22);
  padding: 6px;
}
.navscrim[hidden], .navpanel[hidden] { display: none; }
.navpanel nav { display: flex; flex-direction: column; }
.navpanel nav a {
  color: var(--ink); font-size: 15px; font-weight: 700;
  padding: 13px 14px; border-radius: 12px;
}
.navpanel nav a + a { border-top: 1px solid var(--line); border-radius: 12px; }
.navpanel nav a:active { background: var(--bg-soft); }
.navpanel nav a.now { color: var(--p-green-strong); }
.navpanel nav a.sub { font-size: 13.5px; color: var(--ink2); padding: 11px 14px; }
.navpanel .btn { display: flex; margin: 8px 6px 6px; }
body.navopen { overflow: hidden; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 99px; font-weight: 800; font-size: 14.5px;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn.primary { background: var(--p-green-strong); color: #fff; }
.btn.primary:hover { background: var(--p-green); }
.btn.team { background: var(--t-green); color: #fff; }
.btn.team:hover { background: var(--t-green-strong); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--ink2); }
.btn .sub { font-size: 11px; font-weight: 700; opacity: .85; }
.header-cta { margin-left: 8px; padding: 9px 18px; font-size: 13px; }
@media (max-width: 480px) { .header-cta { display: none; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.center .cta-row { justify-content: center; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .lead { font-size: 16.5px; }

/* ページ冒頭のプラン名（大きく・分かりやすく） */
.planlabel { margin: 0 0 10px; }
.planlabel b {
  display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: .02em;
  color: var(--p-green-strong); line-height: 1.25;
  text-shadow: 0 1px 10px rgba(255,255,255,.9);
}
.planlabel.team b { color: var(--t-green-strong); }
.planlabel span {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: .04em;
  text-shadow: 0 1px 8px rgba(255,255,255,.9); margin-top: 2px;
}
@media (max-width: 700px) { .planlabel b { font-size: 26px; } .planlabel span { font-size: 12px; } }

/* 画像背景ヒーロー（2026-08-15）: 体育館のワイド絵の上に見出しを重ねる */
/* 元絵は 1837x856。以前は高さ480pxに cover で押し込んでいたため縦の3割が切れていた。
   ヒーローの中にプランの2択まで入れるので、絵の比率そのままで見せる（切らない）。
   広い画面で伸びすぎないよう max-height だけ効かせる＝そのときだけ cover が働く。 */
/* ヒーローの左右に出る余白。白だと絵の縁に硬い線が出るので生成りの地色にする */
.herowrap { background: var(--bg-soft); }
.hero-visual { position: relative; display: flex; align-items: center; padding: 0;
               /* ⚠️ aspect-ratio では高さが幅だけで決まり、中身（見出し＋モック）が入りきらない幅で
                  下の節に食い込む。min-height にして「絵の比率を保ちつつ、足りなければ伸びる」箱にする。
                  46.6vw = 1 / 2.146（元絵の比）。中身が収まるときは絵どおりの比率になる */
               min-height: clamp(480px, 46.6vw, 700px);
               /* 元絵は 1837px しかない。これを超える幅では引き伸ばさず、左右に余白を出して中央に置く */
               max-width: 1837px; margin-inline: auto;
               /* ⚠️ hidden にしない。リード文の下のスマホモックを絵の外へはみ出させるため。
                  背景(.bg)は inset:0 で枠に収まるので、visible でも絵は広がらない */
               overflow: visible; }
/* picture(レスポンシブ切替の器)はレイアウトに参加させない。中のimgはabsoluteで全面に敷く */
.hero-visual picture { display: contents; }
.hero-visual .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* ヒーロー絵(hero-cast-v2)は中央が明るく空けてある設計なので、全面の白グラデではなく
   中央だけ軽く白を足して文字を立てる */
.hero-visual::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 60% at center 45%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%); }
/* 上下対称の余白。align-items:center と合わせて、中身をヒーローの上下中央に置く */
.hero-visual .inner { position: relative; z-index: 2; width: 100%; padding: 40px 20px; }
.hero-visual h1 { text-shadow: 0 1px 12px rgba(255,255,255,.85); }
.hero-visual .lead { color: var(--ink); font-weight: 700; text-shadow: 0 1px 10px rgba(255,255,255,.9); font-size: 16.5px; }

/* ハブのPC版は、スマホ版と同じつむぎを横長に描き直した専用画像。
   背景と影を画像内で連続させ、中央のコピーと実画面を隠さない。高さは個人・チームと同じ共通式。 */
@media (min-width: 701px) {
  .hero-visual.hub-hero {
    height: clamp(480px, 46.6vw, 700px);
    min-height: 0;
    background: #fdf0de;
  }
  .hero-visual.hub-hero .bg {
    object-position: center bottom;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .hero-visual.hub-hero .inner {
    width: calc(100% - clamp(112px, 16vw, 140px));
    transform: translateX(clamp(56px, 8vw, 70px));
  }
}

@media (min-width: 1001px) {
  .hero-visual.hub-hero .inner {
    width: calc(100% - clamp(144px, 13vw, 224px));
    transform: translateX(clamp(72px, 6.5vw, 112px));
  }
}

@media (min-width: 701px) and (max-width: 800px) {
  .hero-visual.hub-hero .bg {
    object-fit: contain;
    object-position: center bottom;
  }
}


@media (max-width: 700px) {
  /* スマホは縦長のヒーロー絵を「絵と同じ縦横比」で固定表示＝端末の縦横比で切り抜きが動かず、
     文字用の余白とキャラの位置関係がどの端末でも同じになる */
  /* ⚠️ max-height を解除する。縦長比率のままだと高さ上限から幅が逆算され、
     ヒーローが画面幅より狭くなって中央に浮いてしまう（2026-08-18 に踏んだ） */
  .hero-visual { min-height: 0; aspect-ratio: 864 / 1600; align-items: flex-start; }
  .hero-visual .bg { object-position: center bottom; }
  .hero-visual .inner { padding: 50px 16px 0; }
  .hero-visual h1 { font-size: 25px; }
  .hero-visual .lead { font-size: 13px; }
  .hero-visual .cta-row { margin-top: 14px; }
  .hero-visual::after { background: radial-gradient(ellipse 70% 30% at center 13%, rgba(255,255,255,.42), rgba(255,255,255,0) 72%); }

  /* ハブは、つむぎと実画面のスマホを1枚にまとめた専用画像を全面表示する。
     元画像の下側にある無地部分だけをカットし、一般的なスマホのファーストビュー内に
     キャラクターとスマホ画面の全体が収まる高さにする。 */
  .hero-visual.hub-hero { aspect-ratio: 852 / 1690; }
  .hero-visual.hub-hero .bg { object-position: center top; }
  .hero-visual.hub-hero .inner { padding-top: 32px; }
  .hero-visual.hub-hero .hero-phones { display: none; }
}

@media (max-width: 700px) {
  /* 個人ページ: スマホ専用の縦長ヒーロー（上が空・下に母と娘） */
  .hero-visual.sp-personal { aspect-ratio: 941 / 1560; }
  .hero-visual.sp-personal .inner { padding: 50px 16px 0; }
}

/* ヒーローに浮かべるアプリ画面のスマホモック2枚（シュートマップ / シュート練習）。 */
.hero-phones {
  display: flex; gap: 14px; align-items: flex-end; justify-content: center; margin-top: 24px;
}
.hp {
  position: relative;
  width: clamp(118px, 11.5vw, 168px); padding: 4px;
  background: linear-gradient(105deg, #58615d 0%, #171c1a 7%, #080b0a 48%, #2f3733 93%, #69726e 100%);
  border: 1px solid #69726e; border-radius: 28px;
  box-shadow: 0 22px 46px rgba(34,48,42,.32), inset 0 0 0 1px #080b0a;
}
.hp img {
  display: block; width: 100%; border-radius: 23px;
  outline: 1px solid #080b0a;
}
.hp:first-child { transform: rotate(-3deg); margin-bottom: 26px; }
.hp:last-child { transform: rotate(4deg); }
@media (max-width: 700px) {
  .hero-phones { justify-content: flex-end; padding-right: 8px; margin-top: 62px; gap: 0; }
  .hp { width: 148px; padding: 4px; border-radius: 26px; box-shadow: 0 16px 32px rgba(34,48,42,.32), inset 0 0 0 1px #080b0a; }
  .hp img { border-radius: 21px; }
  .hp:first-child { display: none; }
}

/* App Store バッジ。スマホのヒーローと、PC用のアプリ案内で共用する */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff;
  border-radius: 12px; padding: 9px 18px 10px; box-shadow: 0 10px 26px rgba(34,48,42,.3);
}
.store-badge:hover { color: #fff; background: #242424; }
.store-badge .apple { font-size: 26px; line-height: 1; }
.store-badge .txt { display: flex; flex-direction: column; text-align: left; font-weight: 700; font-size: 17px; line-height: 1.15; }
.store-badge .txt small { font-size: 10px; font-weight: 600; opacity: .85; }

/* PCではApp Storeを主導線にしつつ、動画入力用のWeb版も小さく残す */
.app-first { padding: 24px 0; background: var(--p-soft); border-top: 1px solid #dbe9dc; border-bottom: 1px solid #dbe9dc; }
.app-first-inner {
  display: grid; grid-template-columns: minmax(280px, 1fr) auto minmax(190px, auto);
  align-items: center; gap: 26px;
}
.app-first-copy { text-align: left; }
.app-first-kicker { margin: 0 0 1px; color: var(--p-green-strong); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.app-first-copy h2 { margin: 0; font-size: 21px; }
.app-first-copy p:last-child { margin: 3px 0 0; color: var(--ink2); font-size: 13px; line-height: 1.65; }
.app-first-download { display: flex; align-items: center; gap: 10px; }
.app-first-qr { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink2); font-size: 9.5px; font-weight: 700; line-height: 1.4; }
.app-first-qr img { width: 76px; height: 76px; border: 1px solid var(--line); }
.app-first-web {
  display: flex; flex-direction: column; justify-content: center; min-height: 62px;
  padding-left: 24px; border-left: 1px solid #cdddcf; color: var(--ink); font-size: 14px; font-weight: 800;
}
.app-first-web:hover { color: var(--p-green-strong); }
.app-first-web small { color: var(--ink2); font-size: 10.5px; font-weight: 600; line-height: 1.5; }
@media (max-width: 900px) {
  .app-first-inner { grid-template-columns: minmax(260px, 1fr) auto; gap: 18px 24px; }
  .app-first-web { grid-column: 1 / -1; min-height: auto; padding: 12px 0 0; border-left: 0; border-top: 1px solid #cdddcf; }
}
@media (max-width: 700px) { .app-first { display: none; } }

/* ヒーロー下部のアプリダウンロードボタン（スマホのみ） */
.hero-store { display: none; }
@media (max-width: 700px) {
  .hero-store { display: flex; position: absolute; left: 0; right: 0; bottom: 22px; justify-content: center; z-index: 2; }
}

/* チームページのヒーロー: PCでも縦の集合写真を使い、上の壁の空きに文字を載せる（2026-08-18）。
   ⚠️ 縦長の絵なので全幅にはできない（全幅+cover だと帯状に切れて選手の顔が消える）。
   幅を絞って中央に置く「ポスター」の形にしてある。左右に出る余白は生成りの地色。 */
@media (min-width: 701px) {
  /* PC は横長の集合写真（hero-team-desktop-v1）。上40%が無地の壁で、そこに見出しを載せる。
     CTA と注記は絵の外（.herocta）に出してある＝下半分の選手に文字が重ならない */
  .hero-visual.sp-only { align-items: flex-start; }
  .hero-visual.sp-only .inner { padding: 3.4% 20px 0; }
  /* ⚠️ 共通の上限 700px は、この絵（1837x856）より低い。そのままだと広い画面で上下が切れ、
     下＝座った子の膝から下が消える（2026-08-18 実機で発覚）。
     object-position で逃がそうとしたが、許容範囲が 0.77〜0.79 しかなく（下=足が切れる /
     上=見出しが頭に掛かる）余裕ゼロだった。**上限を絵の高さ 856px まで上げて、切らない**のが正解。
     こうすると幅がいくつでも「箱の高さ = 幅/2.146 = 絵の高さ」になり、切り取りが起きない。 */
  .hero-visual.sp-only { min-height: clamp(480px, 46.6vw, 856px); }
  .hero-visual.sp-only .bg { object-position: center bottom; }
  /* ⚠️ 文字を立たせる白グラデは、文字のある上部だけにかける。
     既定（中央45%）のままだと選手の顔が白く曇る */
  .hero-visual.sp-only::after {
    background: radial-gradient(ellipse 46% 26% at center 16%, rgba(255,255,255,.42), rgba(255,255,255,0) 72%);
  }
}
/* ヒーロー直下の CTA。絵の中に入れると選手に重なるので外に置く */
.herocta { padding: 26px 0 4px; }
.herocta .cta-row { margin-top: 0; }
@media (max-width: 700px) {
  /* ⚠️ 切り取り量は**実測で決める**こと（2026-08-18 に2回外した）。
     v2=壁32% → 見出し3行が顔に掛かる ／ 元画像=壁55% → 見出しの下に無駄な空きが出る。
     いちばん高い頭は元画像の y=926。実機390px幅で「見出しの下端209px＋余白40px」に
     頭が来るよう上を325px削ったのが v3（941x1346・壁45%）。見出しを増減したら測り直す。 */
  .hero-visual.sp-only { aspect-ratio: 941 / 1346; }
  .hero-visual.sp-only .inner { padding: 50px 16px 0; }
  /* スマホのヒーローは「見出し＋いちばんの売り」だけ。説明と価格の細目は下のセクションに任せる */
  .hero-visual.sp-only .lead, .hero-visual.sp-only .priceline { display: none; }
  .pconly { display: none !important; }
  .team-badge { background: var(--t-green); }
  .team-badge .txt { text-align: center; }
}
.freeline { font-size: 15px; font-weight: 800; color: var(--t-green-strong); margin-top: 14px; }
.priceline { font-size: 13px; color: var(--ink2); margin-top: 2px; }
@media (max-width: 700px) { .freeline { font-size: 14px; margin-top: 10px; } .priceline { font-size: 12px; } }

/* 2プラン分岐カード（ハブの主役） */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 34px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.gate {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  background: #fff; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.gate:hover { box-shadow: 0 8px 28px rgba(34,48,42,.08); }
/* 「枠の一部に色を塗る」装飾（上辺の色バー）は 2026-08-15 オーナー指示で全廃 */
/* gate は <a> なのでリンク色を継承する。見出しはプランの濃色、本文は通常色に戻す */
.gate.personal h2 { color: var(--p-green-strong); }
.gate.team h2 { color: var(--t-green-strong); }
.gate .who { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; color: var(--ink2); }
.gate-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.gate-title-row h2 { margin: 0; font-size: clamp(26px, 2.2vw, 32px); }
.gate .price-main { color: var(--ink); font-size: clamp(22px, 1.8vw, 26px); font-weight: 800; line-height: 1.15; white-space: nowrap; }
.gate.personal .price-main { color: var(--p-green-strong); }
.gate.team .price-main { color: var(--t-green-strong); }
.gate .price-main small { font-size: .45em; font-weight: 800; color: var(--ink2); }
.gate .price-note { font-size: 13.5px; color: var(--ink2); font-weight: 700; }
.gate .freefam { display: inline-block; margin-top: 6px; font-size: 13.5px; font-weight: 800;
  color: var(--t-green-strong); background: var(--t-soft); border-radius: 8px; padding: 4px 12px; }
.gate ul { margin: 8px 0 14px; padding: 0; list-style: none; color: var(--ink2); font-size: 14px; }
.gate ul li { padding-left: 1.2em; position: relative; margin: 4px 0; }
.gate ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 99px; background: var(--p-green); }
.gate.team ul li::before { background: var(--t-green); }
.gate .btn { margin-top: auto; align-self: flex-start; }

/* ハブ冒頭の「2つある」だけを伝える簡単なボタン（2026-08-17）。
   くわしい比較カード(.gate)はページの一番最後に置く＝先に決めさせない。 */
.planbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px auto 0; max-width: 760px; }
@media (max-width: 620px) { .planbtns { grid-template-columns: 1fr; } }
.planbtn {
  display: flex; flex-direction: column; gap: 3px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.planbtn:hover { box-shadow: 0 8px 22px rgba(34,48,42,.09); transform: translateY(-1px); }
.planbtn b { font-size: 18px; font-weight: 800; }
.planbtn.personal { border-color: #cfe3d2; } .planbtn.personal b { color: var(--p-green-strong); }
.planbtn.team { border-color: #c9dcd0; } .planbtn.team b { color: var(--t-green-strong); }
.planbtn span { font-size: 12.5px; color: var(--ink2); }
.planbtn em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--ink); margin-top: 4px; }
/* 価格など、押しの一行の下に添える補足 */
.planbtn i { font-style: normal; font-size: 12px; color: var(--faint); }

/* 絵のせタイル（できること／なぜミニバス専用か）。fcard に画像を足しただけの派生 */
.fcard.tile { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.fcard.tile:hover { box-shadow: 0 8px 22px rgba(34,48,42,.09); }
.tile .timg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 1px solid var(--line); }
.tile .tbody { padding: 13px 15px 15px; }
.tile h3 { font-size: 15.5px; margin-bottom: 4px; }
.tile p { font-size: 12.5px; }
/* 素材待ちのタイル。何の絵を入れるかを枠の中に書いておく */
.tile .ph-tile {
  aspect-ratio: 3 / 2; border-bottom: 1px dashed #c8d4c9; background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 14px;
}
.tile .ph-tile b { font-size: 11px; font-weight: 800; color: var(--p-green-strong); letter-spacing: .04em; }
.tile .ph-tile span { font-size: 11px; color: var(--faint); line-height: 1.7; }

/* ワイド1枚絵 */
.wideimg { margin: 30px auto 0; max-width: 920px; }
.wideimg img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.wideimg figcaption { font-size: 12.5px; color: var(--faint); text-align: center; margin-top: 8px; }

/* OCRの流れ 5ステップ（線画ストリップ） */
.steps5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 30px; }
@media (max-width: 860px) { .steps5 { grid-template-columns: repeat(2, 1fr); } .steps5 .s5:last-child { grid-column: span 2; } }
.s5 { text-align: center; }
.s5 img { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.s5 .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 99px; background: var(--t-soft); color: var(--t-green-strong); font-weight: 800; font-size: 12px; margin: 10px 0 2px; }
.s5 p { font-size: 12.5px; color: var(--ink2); margin: 2px 0 0; line-height: 1.6; }

/* イラスト大＋スマホ実画面2台（2026-08-15 個人ページ）。
   スクショは画像に合成せず別レイヤーの端末モックで重ねる＝文字が鮮明なまま */
.media-duo { display: grid; grid-template-columns: var(--duo-cols); gap: var(--duo-gap); align-items: center; margin-top: 26px; }
.media-duo .scene img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
/* 絵を右に置く版。order で入れ替えるだけだと、絵が狭いほう(1fr)の列に入って小さくなる。
   列幅も一緒に反転させて、左右どちらでも「絵が大きい」を保つ（2026-08-19 修正） */
.media-duo.rev { grid-template-columns: var(--duo-cols-rev); }
.media-duo.rev .scene { order: 2; }

/* 絵が右のとき、見出しと本文も絵の左端から始める（2026-08-19）。
   絵が左のときは本文の左端＝絵の左端で縦線がそろうのに、
   右に置いた節だけ本文が遠く離れて、文章と絵が別々のものに見えていた。
   ⚠️ 当初は margin-left を手計算（(100% - gap) × 0.3922 + gap）していたが、
      比や gap を変えたときに一緒に直し忘れて崩れる。subfeat 自体を同じ列で組んで、
      見出しと本文を2列目に置く＝計算を持たない形にした（CODEXレビュー・2026-08-19）。
   :has() 非対応の古いブラウザでは grid にならず、これまでどおり左端から始まるだけ（崩れない） */
@media (min-width: 861px) {
  .subfeat:has(> .media-duo.rev) {
    display: grid;
    grid-template-columns: var(--duo-cols-rev);
    column-gap: var(--duo-gap);
  }
  .subfeat:has(> .media-duo.rev) > h3,
  .subfeat:has(> .media-duo.rev) > p { grid-column: 2; }
  .subfeat:has(> .media-duo.rev) > .media-duo { grid-column: 1 / -1; }
}
.phones { display: flex; gap: 14px; justify-content: center; align-items: flex-start; }
.phone { flex: 1 1 0; max-width: 185px; border-radius: 30px; background: #1d2622; padding: 7px; box-shadow: 0 16px 36px rgba(34,48,42,.22); }
.phone img { display: block; width: 100%; border-radius: 23px; }
.phones .phone:nth-child(2) { margin-top: 32px; }

.subfeat { margin-top: 52px; }
/* 機能が続くときは、前の節の絵・スマホと次の見出しが近づきすぎる。
   節と節の切れ目だけ大きく空ける（見出し直後の1つ目は 52px のまま・2026-08-19） */
.subfeat + .subfeat { margin-top: 92px; }
.subfeat h3 { font-size: 26px; line-height: 1.35; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
/* 見出しのサブコピー。PCはダッシュで続け、スマホでは改行して小さく（中途半端な折り返し防止） */

/* サブ機能の番号バッジ（OCR 5ステップの丸番号と同じモチーフで統一） */
.subfeat h3 .no {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--p-green-strong); color: #fff; font-size: 17px; font-weight: 800;
}
.subfeat h3 .no.team { background: var(--t-green); }
@media (max-width: 700px) { .subfeat h3 .no { width: 29px; height: 29px; font-size: 15px; } }
.h3sub::before { content: " — "; color: var(--ink2); }
@media (min-width: 701px) { .h3sub { font-size: 20px; } }
@media (max-width: 700px) {
  .h3sub { display: block; font-size: 15px; font-weight: 700; color: var(--ink2); margin-top: 4px; }
  .h3sub::before { content: ""; }
  .duocards { grid-template-columns: 1fr !important; }
}
.subfeat > p { color: var(--ink2); font-size: 14.5px; max-width: 640px; }

/* 本文の中で1文だけ立てるマーカー（2026-08-19）。
   蛍光ペン風に下 45% だけを塗る＝文字が読みにくくならない。
   ⚠️ 使いすぎると効かなくなるので、1つの節に1箇所まで。 */
.hl {
  background: linear-gradient(transparent 55%, #d8ecdc 55%);
  padding-bottom: 1px;
  font-weight: 700;
  color: var(--ink);
}
@media (max-width: 860px) {
  /* .rev の列幅指定はこの1カラム化より詳細度が高いので、ここでも打ち消す */
  .media-duo, .media-duo.rev { grid-template-columns: 1fr; gap: 0; }
  .media-duo.rev .scene { order: 0; }
  .phones { margin-top: -46px; padding: 0 8px; position: relative; z-index: 1; }
  .phone { max-width: 158px; }
  .phones .phone:nth-child(2) { margin-top: 26px; }
}

/* イラスト無しで、スマホだけを3台並べる（チームの「試合データ管理」）。
   .media-duo の中ではないので、「絵に重ねる」ための負のマージンは打ち消す。
   スマホ幅で3台を横並びにすると1台100px弱になり画面の字が読めないので、
   .slidable を併記してスワイプに切り替える（次の1台を覗かせて誘導）。 */
.phones.trio { margin-top: 26px; }
.phones.trio .phone { max-width: 212px; }
@media (max-width: 860px) {
  .phones.trio { margin-top: 22px; padding: 0; }
  .phones.trio .phone { max-width: none; margin-top: 0; }
}
@media (max-width: 700px) {
  .phones.trio.slidable { grid-auto-columns: 56%; align-items: start; }
}

/* 以前 ⇄ 今 の比較（2026-08-17 個人ページ「試合中は、スマホより応援」）。
   2枚は同じ構図で観客席だけが違う＝見くらべると差が伝わる。
   PC（861px〜）は2枚並べる。スマホは横スワイプで、次の1枚を必ず端に覗かせる
   （＝スライドできることが見た目で分かる）。切替タブも出す。JS は personal.html 末尾。 */
.ba { margin-top: 26px; }
.baslides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.baslide {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.baslide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bacap {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0; padding: 10px 14px; font-size: 13px; line-height: 1.7;
  color: var(--ink2); background: var(--bg-soft); border-top: 1px solid var(--line);
}
.batag {
  flex: none; font-size: 11.5px; font-weight: 800; color: var(--faint);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px;
}
.batag.now { color: #fff; background: var(--p-green-strong); border-color: var(--p-green-strong); }
/* タブとスワイプの案内はスマホだけ（PC は2枚とも見えているので不要） */
.batabs, .baswipe { display: none; }

@media (max-width: 860px) {
  .baslides {
    display: flex; gap: 10px; padding: 0 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 4px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .baslides::-webkit-scrollbar { display: none; }
  .baslide { flex: 0 0 84%; scroll-snap-align: start; scroll-snap-stop: always; cursor: pointer; }
  /* 最後の1枚は右端に合わせる。start のままだとスナップ位置まで行けず1枚目に引き戻される。
     end なら余白も出ず、こんどは前の1枚が左に覗く（戻れることが分かる） */
  .baslide:last-child { scroll-snap-align: end; }
  .bacap { min-height: 3.4em; }

  /* 切替タブ（セグメント）。押せるものだと分かる見た目にする */
  .batabs {
    display: inline-flex; gap: 3px; width: fit-content; margin: 0 auto 12px;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px;
  }
  .ba { display: flex; flex-direction: column; }
  .batabs button {
    font: inherit; font-size: 13px; font-weight: 800; line-height: 1.6;
    color: var(--ink2); background: transparent; border: 0;
    border-radius: 999px; padding: 4px 22px; cursor: pointer;
    transition: background .15s, color .15s;
  }
  .batabs button[aria-current="true"] { background: var(--p-green-strong); color: #fff; }
  .baswipe {
    display: block; margin: 10px 0 0; text-align: center;
    font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: .02em;
  }
  .baswipe::before { content: "\2039  "; }
  .baswipe::after { content: "  \203a"; }
}

/* 機能カードの上に載せるスマホ実画面（.phone と同じ端末モック・1台だけ） */
.cardphone {
  max-width: 168px; margin: 2px auto 16px; border-radius: 28px;
  background: #1d2622; padding: 6px; box-shadow: 0 14px 30px rgba(34,48,42,.20);
}
.cardphone img { display: block; width: 100%; border-radius: 22px; }

/* あるある悩みの2枚組 */
.painrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
@media (max-width: 700px) { .painrow { grid-template-columns: 1fr; } }
.painrow figure { margin: 0; }
.painrow img { border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.painrow figcaption { font-size: 12.5px; color: var(--ink2); margin-top: 8px; text-align: center; }

/* feature rows（交互レイアウト） */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 34px 0; }
.frow + .frow { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .frow { grid-template-columns: 1fr; gap: 18px; } .frow.rev .fimg { order: -1; } }
@media (min-width: 761px) { .frow.rev .fimg { order: -1; } }
.fimg img, .fimg svg, .fimg .ph { border-radius: var(--radius); }
/* 縦長のアプリスクショが段組を突き破らないよう高さを制限（横長画像は幅で制限される） */
.fimg img { border: 1px solid var(--line); max-height: 480px; width: auto; max-width: 100%; margin-inline: auto; }
.ftext h3 { font-size: 24px; line-height: 1.4; }
/* :not(.eyebrow) は必須。`.ftext p`(0,1,1) は `.eyebrow`(0,1,0) に勝つので、
   これが無いと緑のピルの中の文字までグレーになる（2026-08-17 修正） */
.ftext p:not(.eyebrow) { color: var(--ink2); font-size: 14.5px; }
.ftext .note { font-size: 12.5px; color: var(--faint); }

/* 仮置き（これから用意する素材）。何の絵・何の画面が入るかを書いておく＝抜けたまま公開する事故を防ぐ。
   本番に出したままでも「準備中」と分かる見た目にする（2026-08-17 全ページ統一のとき追加）。 */
.ph-scene {
  aspect-ratio: 3 / 2; border: 1.5px dashed #c8d4c9; border-radius: var(--radius); background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 20px;
}
.ph-scene b { font-size: 12.5px; font-weight: 800; color: var(--p-green-strong); letter-spacing: .04em; }
.ph-scene span { font-size: 12px; color: var(--faint); line-height: 1.75; max-width: 30em; }
/* 端末モックの中に入れる「スクショ待ち」。実スクショ（332×720）と同じ比率にする */
.phone .ph-shot {
  aspect-ratio: 46 / 100; border-radius: 23px; background: var(--bg-soft); border: 1.5px dashed #c8d4c9;
  display: flex; align-items: center; justify-content: center; padding: 14px; text-align: center;
}
.phone .ph-shot span { font-size: 11px; font-weight: 700; color: var(--faint); line-height: 1.8; }

/* SVG プレースホルダ（CODEX 制作予定の挿絵） */
.ph { border: 1.5px dashed #c8d4c9; background: var(--bg-soft); padding: 0; overflow: hidden; }
.ph svg { display: block; width: 100%; height: auto; }
.ph-cap { font-size: 11.5px; color: var(--faint); text-align: center; padding: 6px 10px 8px; border-top: 1px dashed #c8d4c9; }

/* プランの2択（ハブのヒーロー直後）。名前＋一行だけの簡素な作り。
   個人=明るい若草 / チーム=深緑 の塗りで、ヒーロー直後の選択肢を明確にする */
.pick { padding: 24px 0; }
.picklead { font-size: 14px; font-weight: 800; color: var(--ink2); margin: 0 0 16px; letter-spacing: .04em; }
.pickbtns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.pbtn {
  display: block; text-align: center; min-width: 268px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 24px 13px; box-shadow: 0 6px 18px rgba(34,48,42,.07);
}
.pbtn b { display: block; font-size: 17px; font-weight: 800; line-height: 1.4; }
.pbtn span { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 700; margin-top: 1px; }
.pbtn.personal { background: #dcefe0; border-color: var(--p-green); box-shadow: 0 8px 20px rgba(61,138,76,.16); }
.pbtn.personal b { color: var(--p-green-strong); }
.pbtn.personal span { color: #376a42; }
.pbtn.team { background: var(--t-green); border-color: var(--t-green); box-shadow: 0 8px 20px rgba(36,84,58,.22); }
.pbtn.team b { color: #fff; }
.pbtn.team span { color: rgba(255,255,255,.86); }
.pbtn:hover { box-shadow: 0 12px 26px rgba(34,48,42,.14); transform: translateY(-1px); }
@media (max-width: 700px) {
  /* 狭い画面で説明文まで入れると2〜3行に折れるので、プラン名だけにして横一列を保つ */
  .pick { padding: 20px 0; }
  .picklead { font-size: 12.5px; margin-bottom: 10px; }
  .pickbtns { gap: 10px; flex-wrap: nowrap; padding: 0 16px; }
  .pbtn { flex: 1 1 0; min-width: 0; padding: 11px 8px; border-radius: 12px; }
  .pbtn b { font-size: 14.5px; }
  .pbtn span { display: none; }
}

/* 1人あたりの試算（team.html のヒーロー直下）。保護者会で金額を即答できるようにする道具。
   ⚠️ 価格を変えたら team.html の PRICE と .calcnote の文言も直すこと。
   ⚠️ ヒーローに価格行を置かないこと。上下で金額が二度出て読みにくくなる（2026-08-18 に一度そうなった） */
.calc { padding: 48px 0 68px; }
.calclead { font-size: 15px; font-weight: 800; color: var(--t-green-strong); margin: 0 0 44px; }
/* 枠も影も持たせない（オーナー判断）。地の白のまま、余白だけでまとまりを作る */
.calcbox { max-width: 600px; margin: 0 auto; }
.calclabel { font-size: 12.5px; font-weight: 700; color: var(--faint); margin: 0 0 62px; letter-spacing: .04em; }

/* --- スライダー ---
   既定の見た目のままだと「素の input」に見えるので、太い溝＋大きなつまみ＋
   つまみに追従する吹き出し＋目盛り、で操作できることを一目で分かるようにする。
   --pf（0〜1）は JS が .calcslider に入れる。つまみは端で半径ぶん内側に寄るので、
   吹き出しの位置は (100% - つまみ幅) で補正する。 */
.calcslider { position: relative; padding: 0 0 4px; }
.calc input[type=range] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%;
  height: 14px; border-radius: 99px; outline: none; margin: 0;
  background: linear-gradient(to right, var(--t-green) var(--p, 48%), #dfe8e2 var(--p, 48%));
  box-shadow: inset 0 1px 3px rgba(34,48,42,.16);
}
.calc input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 4px solid var(--t-green); cursor: grab;
  box-shadow: 0 3px 10px rgba(34,48,42,.28);
}
.calc input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; }
.calc input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 4px solid var(--t-green); cursor: grab;
  box-shadow: 0 3px 10px rgba(34,48,42,.28);
}
.calcbubble {
  position: absolute; top: -50px; left: calc(17px + (100% - 34px) * var(--pf, .48));
  transform: translateX(-50%);
  background: var(--t-green); color: #fff; font-weight: 800; font-size: 12px;
  padding: 3px 12px 4px; border-radius: 99px; white-space: nowrap;
}
.calcbubble b { font-size: 16px; margin-right: 1px; }
.calcbubble::after {            /* 吹き出しの尻尾 */
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--t-green);
}
.calcticks {
  display: flex; justify-content: space-between; padding: 8px 15px 0;
  font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums;
}

.calcresult { margin: 40px 0 14px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.calcper { font-size: 14px; font-weight: 700; color: var(--ink2); }
.calcresult b { font-size: 40px; font-weight: 800; color: var(--t-green-strong); letter-spacing: .01em; line-height: 1.1; }
.calcunit { font-size: 14px; font-weight: 700; color: var(--ink2); }
.calcnote { margin: 0; font-size: 11.5px; line-height: 1.8; color: var(--faint); }
.calcnote b { color: var(--ink2); }

@media (max-width: 700px) {
  .calc { padding: 32px 0 44px; }
  .calclead { font-size: 13.5px; margin-bottom: 32px; }
  .calcbox { margin: 0 20px; }
  .calclabel { margin-bottom: 54px; }
  .calcresult b { font-size: 32px; }
  .calcticks { font-size: 9.5px; }
}

/* カードグリッド */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
/* 枚数が多い一覧（機能の全体マップ）用。スマホでは読みやすさを優先して1列にする */
@media (max-width: 560px) {
  .grid3.tight { grid-template-columns: 1fr; gap: 16px; }
  .grid3.tight .tile img { aspect-ratio: 16 / 9; object-fit: cover; }
  .grid3.tight .tile .tbody { padding: 14px 16px 17px; }
  .grid3.tight .tile h3 { font-size: 17px; }
  .grid3.tight .tile p { font-size: 14px; }
  .grid3.tight .tag { font-size: 11px; padding: 2px 8px; }
}
.fcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; background: #fff; }
.fcard h3 { font-size: 17px; margin-bottom: 5px; }
.fcard p { font-size: 13px; color: var(--ink2); margin: 0; }
.fcard .tag { margin-left: 6px; }

/* 「ミニバスのマネージャーは保護者です」の中を2グループ（プライバシー／機能）に割る。
   節の見出しと同じ「ピル → 見出し」の並びをそのまま使い、h2 より一段小さくして階層を出す。 */
.whygroup { margin-top: 76px; }
.whygroup .eyebrow { font-size: 15px; padding: 7px 20px; margin-bottom: 14px; }
.whyhead { font-size: 23px; font-weight: 800; margin: 0; }
.whygroup .grid3 { margin-top: 32px; }
@media (max-width: 700px) {
  .whygroup { margin-top: 52px; }
  .whyhead { font-size: 19px; }
  .whygroup .eyebrow { font-size: 13.5px; padding: 6px 16px; margin-bottom: 10px; }
  .whygroup .grid3 { margin-top: 22px; }
}

/* ===== TOP: 実画面を主役にした簡潔な構成 ===== */
.hub-values { display: grid; grid-template-columns: 1.25fr 1fr; gap: 52px; align-items: center; margin-top: 38px; }
.hub-value-visual { margin: 0; }
.hub-value-visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.hub-value-visual figcaption { margin-top: 9px; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.hub-value-list article { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 20px 0; }
.hub-value-list article + article { border-top: 1px solid var(--line); }
.hub-value-list article > span { font-size: 12px; font-weight: 800; color: var(--p-green-strong); letter-spacing: .08em; padding-top: 3px; }
.hub-value-list h3 { margin: 0 0 5px; font-size: 18px; }
.hub-value-list p { margin: 0; color: var(--ink2); font-size: 13.5px; line-height: 1.8; }

.hub-product-tour { overflow: hidden; }
.hub-showcase { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; margin-top: 64px; padding: 44px; border-radius: 24px; background: var(--p-soft); }
.hub-showcase.team { grid-template-columns: 1fr 240px; background: var(--t-soft); }
.hub-plan-label {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; color: var(--p-green-strong);
  font-size: 13px; font-weight: 800; letter-spacing: .1em;
}
.hub-plan-label::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.hub-plan-label.team { color: var(--t-green-strong); }
.hub-showcase-copy h3 { margin: 0 0 12px; font-size: 26px; }
.hub-plan-art { width: 100%; max-width: 360px; aspect-ratio: 5 / 2; margin: 16px 0 18px; overflow: hidden; border-radius: 10px; }
.hub-plan-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-plan-art.team img { object-position: center 50%; }
.hub-showcase-copy > p:not(.hub-plan-label) { margin: 0; color: var(--ink2); font-size: 13.5px; }
.hub-showcase-copy ul { list-style: none; padding: 0; margin: 22px 0 24px; border-top: 1px solid rgba(61,138,76,.18); }
.hub-showcase-copy li { border-bottom: 1px solid rgba(61,138,76,.18); }
.hub-showcase-copy li a { display: block; padding: 10px 0; color: var(--ink); font-size: 13px; font-weight: 700; }
.hub-showcase-copy li a::after { content: "  ›"; color: var(--p-green-strong); }
.hub-showcase.team .hub-showcase-copy li a::after { color: var(--t-green-strong); }
.hub-showcase-copy .hub-plan-cta { min-height: 44px; padding: 8px 14px; border-radius: 9px; font-size: 13px; }
.hub-plan-cta::after { content: "→"; margin-left: 3px; transition: transform .15s; }
.hub-plan-cta:hover::after { transform: translateX(3px); }

.hub-store-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.hub-store-shots a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 32px rgba(34,48,42,.12); transition: transform .15s, box-shadow .15s; }
.hub-store-shots a:nth-child(2) { margin-top: 28px; }
.hub-store-shots a:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(34,48,42,.18); }
.hub-store-shots img { width: 100%; }

.hub-team-shots { display: flex; justify-content: center; align-items: flex-start; gap: 16px; min-width: 0; }
.hub-device { flex: 0 1 180px; padding: 6px; border-radius: 28px; background: #17201c; box-shadow: 0 16px 36px rgba(34,48,42,.22); }
.hub-device:nth-child(2) { margin-top: 34px; }
.hub-device img { width: 100%; border-radius: 22px; }

@media (max-width: 860px) {
  .hub-values { grid-template-columns: 1fr; gap: 22px; }
  .hub-value-visual { max-width: 660px; margin-inline: auto; }
  .hub-value-list { max-width: 660px; margin-inline: auto; }
  .hub-showcase, .hub-showcase.team { grid-template-columns: 1fr; gap: 32px; padding: 36px 26px; }
  .hub-showcase.team .hub-team-shots { order: 2; }
  .hub-showcase.team .hub-showcase-copy { order: 1; }
  .hub-showcase-copy { max-width: 640px; }
}

@media (max-width: 560px) {
  .hub-values { margin-top: 26px; }
  .hub-value-visual img { border-radius: 10px; }
  .hub-value-visual figcaption { font-size: 11.5px; }
  .hub-value-list article { grid-template-columns: 30px 1fr; gap: 10px; padding: 16px 0; }
  .hub-value-list h3 { font-size: 16px; }
  .hub-value-list p { font-size: 13px; }

  .hub-showcase { margin: 42px -20px 0; padding: 34px 20px 38px; border-radius: 0; }
  .hub-plan-label { gap: 12px; margin-bottom: 20px; font-size: 16px; }
  .hub-plan-label::before { width: 34px; height: 3px; }
  .hub-showcase-copy h3 { font-size: 23px; }
  .hub-showcase-copy .hub-plan-cta { display: flex; width: max-content; min-height: 48px; margin-inline: auto; padding: 10px 18px; border-radius: 10px; font-size: 15px; }
  .hub-store-shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 26px; margin: 0 -20px -20px; scrollbar-width: none; }
  .hub-store-shots::-webkit-scrollbar { display: none; }
  .hub-store-shots a { flex: 0 0 76%; scroll-snap-align: center; }
  .hub-store-shots a:nth-child(2) { margin-top: 0; }
  .hub-team-shots { justify-content: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 20px 26px; margin: 0 -20px -20px; scrollbar-width: none; }
  .hub-team-shots::-webkit-scrollbar { display: none; }
  .hub-device { flex: 0 0 62%; scroll-snap-align: center; border-radius: 25px; padding: 5px; }
  .hub-device:nth-child(2) { margin-top: 0; }
  .hub-device img { border-radius: 20px; }
}

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
/* カードの中身は中央揃え。align-items:center で子が縮んで中央に寄る（箇条書きだけ .plist で左揃えに戻す） */
.plan { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: #fff;
        display: flex; flex-direction: column; align-items: center; text-align: center; }
/* 地の色は「契約の種類」だけを表す。無料か有料かは価格とバッジが担当する。
   ＝個人プランと個人プラン プラスは同じ契約（人に紐づく・アプリ内課金）なので同じ若草。
     チームだけ別の契約（クラブに1つ・Web決済）なので深緑。色に2つの意味を持たせない。 */
/* 個人の2枚は同じ色。--p-soft のままだとチームの --t-soft と近すぎて見分けがつかないので、
   ここだけ一段薄い緑にして、チーム（深緑寄り）との差をはっきりさせる */
.plan.personal, .plan.plus { background: #f4faf4; border-color: var(--p-green); }

/* プランの単位を絵で示す: 個人＝ひとり / チーム＝おおぜい。地の色と同じ「契約の種類」を指す */
.plan .picon { height: 30px; width: auto; color: var(--p-green); margin-bottom: 8px; }
.plan.team .picon { color: var(--t-green); }
@media (max-width: 700px) { .plan .picon { height: 26px; } }
.plan h3 { font-size: 19px; }
.plan .for { font-size: 12px; color: var(--ink2); font-weight: 700; }
.plan .yen { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.plan .yen small { font-size: 13px; color: var(--ink2); font-weight: 700; }
/* 旧価格の打ち消し表示（¥1,980 → ¥1,680） */
.was { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--faint); font-weight: 700; }
.yen .was, .plan .yen .was { font-size: 16px; margin-right: 8px; }
.plan p { font-size: 13px; color: var(--ink2); }
.plan .launch { font-size: 11.5px; color: var(--t-green-strong); font-weight: 700; line-height: 1.6; margin: 12px 0 0; }
/* 打ち消し価格の真上に置く小さな注記。長い説明は team.html 側の .launch に持たせる */
.plan .launchtag { font-size: 11.5px; color: var(--t-green-strong); font-weight: 800; line-height: 1.5; margin: 8px 0 0; }
/* 注記が無いカードにも同じ高さの空き行を置き、3枚の金額行を一直線に揃える */
.plan .launchtag.spacer { visibility: hidden; }
.plan .btn { margin-top: auto; align-self: center; }

/* チームだけ契約の単位が違う（個人＝人ひとり／チーム＝クラブに1つ）。
   個人の2枚は白、チームだけ薄い深緑地にして、地の色で「別の種類」だと分かるようにする。 */
.plan.team { background: var(--t-soft); border-color: var(--t-green); }
.plan.team .hl.team { background: #fff; }   /* 同系色の地に埋もれるので白へ */

/* プランの「ひとこと違い」バッジ。無料=広告なし / プラス=無料のぜんぶ＋ / チーム=保護者無料 */
.plan .hl {
  align-self: center; margin: 9px 0 0;
  font-size: 12.5px; font-weight: 800; padding: 3px 12px; border-radius: 999px;
  background: var(--p-green-strong); color: #fff;      /* 無料の「広告なし」は目立たせる */
}
.plan .hl.plus { background: var(--plus-soft); color: var(--plus-amber); }
.plan .hl.team { background: var(--t-soft); color: var(--t-green-strong); }

/* できることは箇条書きで。プラン内容が文章だと読み飛ばされる（2026-08-16 見直し） */
.plist { list-style: none; padding: 0; margin: 12px 0 18px; }
/* 箇条書きだけは左揃え。ブロックごと中央に置く（.plan の align-items:center が効く） */
.plan .plist { text-align: left; }
.plist li {
  position: relative; padding-left: 17px; margin: 3px 0;
  font-size: 13px; color: var(--ink2); line-height: 1.7;
}
.plist li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--p-green);
}
.plist.plus li::before { background: var(--plus-amber); }
.plist.team li::before { background: var(--t-green); }

/* 比較表 */
.cmp-scroll { overflow-x: auto; margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 13.5px; background: #fff; }
.cmp th, .cmp td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th { font-size: 12px; letter-spacing: .05em; }
.cmp td.lb, .cmp th.lb { text-align: left; color: var(--ink2); font-weight: 400; width: 40%; }
.cmp thead th { position: sticky; top: 0; background: var(--bg-soft); }
.cmp .cat td { background: var(--bg-soft); text-align: left; font-weight: 800; font-size: 12.5px; }
/* ○ははっきり濃く・大きく（「薄い」指摘への対応 2026-08-15） */
.cmp .ok { color: var(--t-green-strong); font-weight: 800; font-size: 16.5px; }
.cmp .ok.t { color: var(--t-green-strong); }
.cmp .no { color: #c9cfca; }
.cmp .str { font-weight: 700; font-size: 12.5px; }

/* FAQ */
.faq { max-width: 760px; margin: 26px auto 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 10px 0; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--p-green-strong); font-weight: 800; margin-right: 10px; }
.faq details[open] summary::before { content: "−"; }
.faq .a { color: var(--ink2); font-size: 13.5px; padding: 0 0 14px 24px; }

/* ===== 操作ガイド（guide.html）=====
   2026-08-19 に作り直し。それまでは独自の <style> を持った別系統のページで、
   ヘッダーも中身もLP本体と揃っておらず、メニューも無かった。
   専用の指定はこの2つだけで、あとは LP と同じ部品（.faq / .fcard / .grid3 / .subfeat）を使う。 */

/* ページ頭の目次。横スクロールさせず、折り返して全部見せる */
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.toc a {
  font-size: 13px; font-weight: 700; color: var(--ink2);
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 15px;
}
.toc a:hover { border-color: var(--p-green); color: var(--p-green-strong); }

/* どのプランの話かを、質問の行に出す（2026-08-19 オーナー指摘）。
   ガイドは個人プラン・プラス・チームプランの話が混ざるので、印が無いと自分に関係するか分からない。
   .tag.free / .tag.plus / .tag.team は LP 本体と同じ色の約束をそのまま使う。
   display は触らない（summary を flex にすると index.html の既存FAQの折り返しまで変わる）。 */
.faq summary .tag, .gsteps h3 .tag, .fcard h3 .tag { margin-left: 7px; }

/* 手順の番号。
   ⚠️ 節の番号（.subfeat h3 .no）と同じ「塗りつぶしの緑丸」にしていたら、
      2種類の丸が並んで階層が分からなくなった（スマホは行頭のズレも小さい）。
      節＝塗りつぶし／手順＝白抜き、で見分けられるようにする（2026-08-19 オーナー指摘）。 */
.gsteps { counter-reset: gs; margin: 22px auto 0; max-width: 760px; padding: 0; list-style: none; }
.gsteps > li { position: relative; padding: 0 0 22px 52px; }
.gsteps > li::before {
  counter-increment: gs; content: counter(gs);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 999px; box-sizing: border-box;
  background: #fff; color: var(--p-green-strong); border: 2px solid var(--p-green-strong);
  font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
/* 番号どうしを縦線でつなぐ（最後だけ引かない）＝「順にやる」ことが一目で分かる */
.gsteps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 15.5px; top: 38px; bottom: 6px; width: 1px; background: var(--line);
}
.gsteps.team > li::before { color: var(--t-green); border-color: var(--t-green); }
.gsteps h3 { font-size: 17px; margin: 4px 0 4px; }
.gsteps p { font-size: 14px; color: var(--ink2); margin: 0; }
.gsteps .tip {
  display: block; margin-top: 9px; font-size: 13px; color: var(--ink2);
  background: var(--bg-soft); border-radius: 10px; padding: 10px 13px;
}
.gsteps .tip b { color: var(--ink); }
@media (max-width: 700px) {
  .gsteps > li { padding-left: 44px; }
  .gsteps > li::before { width: 28px; height: 28px; font-size: 14px; }
  .gsteps > li:not(:last-child)::after { left: 13.5px; top: 34px; }
}

/* 相互導線バナー */
.crosslink {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff;
}
.crosslink p { margin: 0; font-size: 14px; color: var(--ink2); flex: 1 1 300px; }
.crosslink p b { color: var(--ink); }

/* ===== モバイル最適化（2026-08-15 全面見直し） ===== */

/* PCでだけ効かせる装飾改行。スマホでは自然な折り返しに任せる */
@media (max-width: 700px) { .pcbr { display: none; } }
/* スマホでだけ効かせる改行（見出しが単語の途中で折れるのを防ぐ） */
.spbr { display: none; }
@media (max-width: 700px) { .spbr { display: inline; } }

/* カード群のスライド表示（スマホのみ）。次のカードを少し見せてスワイプを誘う */
@media (max-width: 700px) {
  .slidable {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-left: -20px; margin-right: -20px;
    padding: 4px 20px 16px;
    scrollbar-width: none;
  }
  .slidable::-webkit-scrollbar { display: none; }
  .slidable > * { scroll-snap-align: center; height: auto; }
  .plans.slidable { grid-auto-columns: 84%; }
  .steps5.slidable { grid-auto-columns: 62%; }
  .steps5.slidable .s5:last-child { grid-column: auto; }
}

/* 比較表: スマホは横スクロールをやめて画面幅に収める（2026-08-16）。
   以前は左の項目列を固定して数字側を横スクロールさせていたが、
   3プランのうち1列ぶんしか見えず「どのプランの○か」が分からなかった。
   3列そろえて出すほうが、字が小さくても比較にはずっと読みやすい。 */
@media (max-width: 700px) {
  .cmp-scroll { overflow-x: visible; }          /* ← 見出し行の position:sticky も生き返る */
  table.cmp { min-width: 0; width: 100%; table-layout: fixed; font-size: 11.5px; }
  .cmp th, .cmp td { padding: 7px 3px; }
  .cmp td.lb, .cmp th.lb {
    position: static; box-shadow: none; width: 40%;
    padding-left: 10px; padding-right: 6px; line-height: 1.55;
  }
  .cmp th:not(.lb), .cmp td:not(.lb) { width: 20%; }
  .cmp th { font-size: 11.5px; letter-spacing: 0; font-weight: 800; }
  .cmp .cat td { position: static; padding-left: 10px; font-size: 12px; }
  .cmp .ok { font-size: 15px; }
  .cmp .str { font-size: 10.5px; line-height: 1.5; }
  .cmp tbody tr:not(.cat):nth-of-type(even) td { background: #fbfcfb; }
  /* プラン名の行は、表を縦にたどっているあいだ画面上部に残す（サイトヘッダーの下） */
  .cmp thead th { top: 60px; z-index: 2; box-shadow: 0 1px 0 var(--line); }
}

/* 余白・文字のモバイル調整 */
@media (max-width: 700px) {
  .eyebrow { font-size: 17px; padding: 8px 22px; margin-bottom: 14px; line-height: 1.5; }

  body { font-size: 14.5px; line-height: 1.85; }
  section { padding: 44px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-visual .inner { padding: 56px 16px 92px; }
  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
  .subfeat { margin-top: 40px; }
  .subfeat + .subfeat { margin-top: 64px; }
  .subfeat h3, .ftext h3 { font-size: 22px; }
  .h3sub { font-size: 14px; }
  .lead { font-size: 13.5px; }
  .btn { padding: 11px 18px; font-size: 14px; }
  .cta-row { justify-content: center; }
  .frow { padding: 26px 0; gap: 14px; }
  .grid3:not(.slidable) { gap: 12px; margin-top: 18px; }
  .fcard { padding: 15px 15px 12px; }
  .faq summary { font-size: 13.5px; }
  .faq .a { font-size: 13px; }
  .crosslink { padding: 18px; gap: 12px; }
  footer.site .cols { gap: 22px; }
  .gate { padding: 20px 18px; }
  .gate-title-row { gap: 10px; }
  .gate-title-row h2 { font-size: 25px; }
  .gate .price-main { font-size: 22px; }
  .wideimg figcaption { padding: 0 8px; }
}

/* iPhone SE 級の狭い端末。ヒーローの見出しが意図しない位置で折り返さないよう縮める */
@media (max-width: 378px) { .hero-visual h1 { font-size: 23px; } }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 60px; background: var(--bg-soft); }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; font-size: 13px; }
footer.site h4 { font-size: 12px; letter-spacing: .1em; color: var(--faint); margin: 0 0 8px; }
footer.site a { display: block; color: var(--ink2); margin: 5px 0; }
footer.site a:hover { color: var(--ink); }
footer.site .fine { margin-top: 28px; font-size: 11.5px; color: var(--faint); }

/* ===== 登場人物ページ（members.html） =====
   縦カード: 写真 → #背番号 → 名前 → ふりがな → 学年/ポジション → ひとこと。
   背番号は写真の外に置く（顔に重ねない）。日本代表の選手ページと同じ並び。 */
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 10px; }
.mgrid.five { grid-template-columns: repeat(5, 1fr); }   /* 若葉家の5人をひと並びに */
@media (max-width: 900px) { .mgrid, .mgrid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mgrid, .mgrid.five { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.mcard {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; width: 100%; padding: 0;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}
.mcard:hover { border-color: var(--t-green); box-shadow: 0 8px 22px rgba(34,48,42,.10); }

/* 写真は 顔 ⇄ 全身ポーズ の2枚。スワイプ（PCはクリック）で切り替わる */
.mphoto { position: relative; background: #fff; border-bottom: 1px solid var(--line); cursor: pointer; }
.mslides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.mslides::-webkit-scrollbar { display: none; }
.mslide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.mslide img { width: 100%; aspect-ratio: 3 / 4; background: #fff; }
.mslide .s-bust { object-fit: cover; object-position: 50% 0%; }
.mslide .s-pose { object-fit: contain; object-position: 50% 100%; padding: 10px 8px 20px; }
/* PC 用の「まだ続きがある」合図。タッチ端末では出さない（スワイプで分かるため） */
.mphoto::after {
  content: "\203a"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(255,255,255,.94); color: var(--t-green);
  font-size: 19px; font-weight: 800; line-height: 1; padding-bottom: 2px;
  box-shadow: 0 1px 5px rgba(34,48,42,.2); opacity: 0; transition: opacity .15s; pointer-events: none;
}
.mcard:hover .mphoto::after { opacity: 1; }
@media (hover: none) { .mphoto::after { display: none; } }
.mdots { position: absolute; left: 0; right: 0; bottom: 7px; display: flex; justify-content: center; gap: 5px; }
.mdots button {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(34,48,42,.30); transition: width .15s, background .15s;
}
.mdots button[aria-current="true"] { width: 16px; background: var(--t-green); }

.mbody { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }

/* 背番号（ユニフォームと同じ深緑。写真の下に # 付きで大きく） */
.mnum {
  display: block; font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  font-size: 25px; line-height: 1.1; color: var(--t-green);
}
.mnum::before { content: "#"; font-size: .72em; margin-right: 1px; opacity: .75; }

.mname { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); line-height: 1.5; margin-top: 1px; }
.mruby { display: block; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .04em; line-height: 1.5; }
.sib { align-self: center; font-size: 10.5px; font-weight: 800; color: var(--p-green-strong);
  background: var(--p-soft); border-radius: 999px; padding: 1px 8px; margin-top: 4px; }
.mmeta { display: block; font-size: 12px; font-weight: 700; color: var(--t-green-strong); margin-top: 5px; line-height: 1.6; }
.mdesc {
  flex: 1; text-align: left; font-size: 12px; color: var(--ink2); line-height: 1.75;
  background: var(--bg-soft); border-radius: 10px; padding: 8px 10px; margin: 8px 0 0;
}

/* 背番号が無い人（コーチ=COACH／若葉家=続柄）。カードは選手と同じ */
.mgrid.one { grid-template-columns: 1fr; max-width: 250px; margin-left: auto; margin-right: auto; }
.mrole {
  display: block; font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 800; font-size: 15px; letter-spacing: .16em; color: var(--t-green);
  line-height: 1.1; padding: 6px 0 5px;
}
/* 若葉家は続柄（長女・母 など）。和文なので字間は詰めて少し大きく */
.mrole.ja { font-size: 17px; letter-spacing: .06em; color: var(--p-green-strong); }
