/* =========================================================
   コネスポ コミュニティTOP（親ブランド＝ハブ）
   テニス/ゴルフ等の「子」サービスへ繋ぐ親。
   モチーフ＝コート線ではなく “つながりの線とノード”。
   --- 本番統合: 全ルールを .cstop 配下にスコープ ---
   ========================================================= */
:root{
  /* 親ブランド・トークン */
  --ink:#15171c;
  --ink-2:#2c313b;
  --muted:#5d6470;
  --surface:#ffffff;
  --bg:#f3f5fa;                 /* 寒色寄りの白（アプリ全体の cs_theme と同色帯）*/
  --line:#e5e8f0;
  --line-s:#eef1f7;
  --acc:#84CC16;                /* 差し色：ライム（コーチLP coach.php の --accent と統一）*/
  --acc-2:#A3E635;              /* 明るいライム（暗い面でのハイライト・hover）*/
  --acc-text:#4d7c0f;           /* 明るい背景に乗る“文字”用の濃いライム（可読性確保）*/
  --acc-ink:#10180a;            /* ライムのベタ塗り上に乗せる文字＝ほぼ黒 */
  --acc-soft:#eef7d9;           /* ライム soft */
  /* スポーツ別アクセント（カードに細く効かせる）*/
  --tennis:#c9e445;            /* optic yellow（テニス）*/
  --golf:#2fa566;             /* fairway green（ゴルフ）*/
  --else:#5566e6;             /* indigo（その他）*/
  --maxw:1200px;
  --disp:"Bricolage Grotesque", system-ui, sans-serif;
  --body:"Noto Sans JP", system-ui, sans-serif;
  --r:16px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
.cstop *{box-sizing:border-box;margin:0;padding:0}
.cstop{
  font-family:var(--body); color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.75; overflow-x:hidden;
}
.cstop img{display:block;max-width:100%}
.cstop a{color:inherit;text-decoration:none}
.cstop .wrap{max-width:var(--maxw);margin:0 auto;padding:0 26px}
.cstop :focus-visible{outline:2.5px solid var(--acc);outline-offset:3px;border-radius:4px}

/* kicker（極小キャプション）*/
.cstop .kicker{
  font-family:var(--disp); font-weight:700; font-size:12px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--acc-text); display:inline-flex; align-items:center; gap:9px;
}
.cstop .kicker::before{content:"";width:22px;height:2px;background:currentColor;display:inline-block}
.cstop .kicker.on-dark{color:#bef264}
.cstop .kicker.on-dark::before{background:currentColor}
.cstop .kicker.jp{font-family:var(--body);font-weight:700;font-size:15px;letter-spacing:.12em;text-transform:none}

/* ============ TOPBAR（※本番統合では共通ヘッダーに置換。ここは雰囲気確認用）============ */
.cstop .topbar{
  position:fixed; inset:0 0 auto 0; z-index:50; height:64px;
  display:flex; align-items:center; transition:background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom:1px solid transparent;
}
.cstop .topbar.solid{ background:color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter:saturate(1.4) blur(10px); border-color:var(--line-s); }
.cstop .topbar .wrap{display:flex;align-items:center;justify-content:space-between;width:100%}
.cstop .brand{font-family:var(--disp);font-weight:800;font-size:17px;letter-spacing:-.01em;display:flex;align-items:center;gap:10px;color:#fff;transition:color .35s}
.cstop .topbar.solid .brand{color:var(--ink)}
.cstop .brand .mk{width:26px;height:26px;flex:none}
.cstop .brand small{font-weight:600;font-size:10.5px;letter-spacing:.2em;opacity:.85;text-transform:uppercase}
.cstop .nav{display:flex;align-items:center;gap:24px}
.cstop .nav a.lnk{font-size:13.5px;font-weight:600;color:#fff;position:relative;padding:4px 0;transition:color .35s}
.cstop .topbar.solid .nav a.lnk{color:var(--ink)}
.cstop .nav a.lnk::after{content:"";position:absolute;left:0;right:100%;bottom:-2px;height:2px;background:var(--acc);transition:right .3s var(--ease)}
.cstop .nav a.lnk:hover::after{right:0}
.cstop .btn{
  font-family:var(--disp);font-weight:700;font-size:14px;letter-spacing:.01em;
  display:inline-flex;align-items:center;gap:8px;padding:11px 20px;border-radius:999px;
  background:var(--acc);color:var(--acc-ink);transition:transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  box-shadow:0 10px 22px -12px rgba(132,204,22,.5);
}
.cstop .btn:hover{transform:translateY(-2px);box-shadow:0 16px 28px -12px rgba(132,204,22,.62)}
.cstop .btn.ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7);box-shadow:none}
.cstop .btn.ghost:hover{background:#fff;color:var(--ink)}
.cstop .btn.dark{background:var(--ink);color:#fff;box-shadow:0 10px 22px -12px rgba(21,23,28,.6)}
.cstop .btn.dark:hover{background:var(--acc);color:var(--acc-ink)}
.cstop .btn i{font-size:17px}
@media(max-width:880px){ .cstop .nav .lnk{display:none} }

/* ============ HERO ============ */
.cstop .hero{position:relative;min-height:720px;display:flex;align-items:center;color:#fff;overflow:hidden;isolation:isolate}
.cstop .hero .bgimg{position:absolute;inset:0;z-index:-2}
.cstop .hero .bgimg img{width:100%;height:100%;object-fit:cover;object-position:center 28%}
/* 写真の上に重ねるスクリム（左・下を濃く＝白文字の可読性確保）*/
.cstop .hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(100deg, rgba(13,15,22,.74) 0%, rgba(13,15,22,.44) 42%, rgba(13,15,22,.06) 74%, rgba(13,15,22,.28) 100%),
    linear-gradient(0deg, rgba(13,15,22,.46), transparent 46%);
}
.cstop .hero .wrap{width:100%;padding-top:118px;padding-bottom:74px;position:relative}
.cstop .hero-copy{max-width:760px;position:relative;z-index:2}
.cstop .hero h1{
  font-family:var(--disp); font-weight:800; line-height:.98; letter-spacing:-.03em;
  font-size:clamp(38px,5.4vw,74px); margin-top:16px; text-wrap:balance;
  text-shadow:0 2px 22px rgba(0,0,0,.32);
}
.cstop .hero h1 .hl{position:relative;display:inline-block}
.cstop .hero h1 .hl::after{
  content:"";position:absolute;left:-2px;right:-2px;bottom:.07em;height:.30em;background:var(--acc);
  z-index:-1;transform:skewX(-9deg) scaleX(0);transform-origin:left;transition:transform .7s var(--ease) .45s;border-radius:2px;
}
.loaded .cstop .hero h1 .hl::after{transform:skewX(-9deg) scaleX(1)}
.cstop .hero .lead{margin-top:22px;max-width:40em;font-size:clamp(14px,1.45vw,16px);color:#eef0f6;text-shadow:0 1px 12px rgba(0,0,0,.42)}
.cstop .hero .lead b{color:#fff;font-weight:700}
.cstop .hero .cta{margin-top:34px;display:flex;gap:13px;flex-wrap:wrap}
/* つながりモチーフ（ノード＋線）右上に淡く */
.cstop .netfx{position:absolute;right:-30px;top:64px;width:430px;max-width:46vw;z-index:1;opacity:.85;pointer-events:none}
.cstop .netfx .ln{stroke:rgba(255,255,255,.42);stroke-width:1.2;stroke-dasharray:200;stroke-dashoffset:200;animation:draw 2.4s var(--ease) .5s forwards}
.cstop .netfx .nd{fill:var(--acc)}
.cstop .netfx .nd.w{fill:#fff}
@keyframes draw{to{stroke-dashoffset:0}}
@media(max-width:980px){ .cstop .netfx{display:none} .cstop .hero{min-height:620px} }
/* モバイル: 見出し（スポーツで、つながる。）は写真の上に重ね、リード文とボタンは写真の下の
   ダーク地に置く分割レイアウト。写真は上部バンドに cover で配置するので継ぎ目の線が出ず、
   下の文字も写真に被らず読みやすい。 */
@media(max-width:820px){
  .cstop .hero{display:block; min-height:0; background:#0d1119; color:#fff}
  /* 写真は上部バンド（高さ固定）。cover で中央の人物を見せる（左右は少し切れるが線は出ない） */
  .cstop .hero .bgimg{position:absolute; left:0; right:0; top:0; bottom:auto; height:380px}
  .cstop .hero .bgimg img{height:100%; object-fit:cover; object-position:center 42%;
    -webkit-mask-image:none; mask-image:none}
  .cstop .hero .bgimg::before{display:none}
  /* スクリムは写真バンドだけに限定（見出しの可読性）。下端を濃くして写真→ダーク地へ繋ぐ */
  .cstop .hero::after{inset:0 0 auto 0; height:380px;
    background:linear-gradient(180deg, rgba(13,17,25,.34) 0%, rgba(13,17,25,.08) 42%, rgba(13,17,25,.72) 100%)}
  .cstop .hero .scrolldown{display:none}
  .cstop .hero .netfx{display:none}
  .cstop .hero .wrap{padding:0; position:relative; z-index:2}
  .cstop .hero-copy{max-width:none}
  /* 見出し: 写真バンド(300px)の上に重ねて中央寄せ（メニュー被りを避けて padding-top） */
  .cstop .hero-head{min-height:380px; display:flex; flex-direction:column; justify-content:center;
    box-sizing:border-box; padding:84px 24px 20px}
  .cstop .hero-head .kicker{text-shadow:0 1px 10px rgba(0,0,0,.6)}
  .cstop .hero-head h1{margin-top:10px}
  /* リード＋ボタン: 写真の下、ダーク地に。影なし・明色で読みやすく */
  .cstop .hero-lower{padding:20px 24px 30px}
  .cstop .hero .lead{margin-top:0; max-width:none; color:#e7e9ef; text-shadow:none}
  .cstop .hero .lead br{display:none}
  .cstop .hero .cta{margin-top:22px; margin-bottom:0}
}
@media(max-width:600px){
  .cstop .hero .lead br{display:none}
  .cstop .brand{font-size:13.5px;gap:7px;white-space:nowrap}
  .cstop .brand small{display:none}
  .cstop .topbar .nav .btn{padding:9px 14px;font-size:12.5px}
}

/* スクロール誘導 */
.cstop .scrolldown{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:3;color:#fff;display:flex;flex-direction:column;align-items:center;gap:6px;font-family:var(--disp);font-size:10.5px;letter-spacing:.2em;opacity:.85}
.cstop .scrolldown .ico{width:26px;height:40px;border:1.6px solid rgba(255,255,255,.7);border-radius:14px;position:relative}
.cstop .scrolldown .ico::after{content:"";position:absolute;left:50%;top:8px;width:3px;height:7px;border-radius:2px;background:#fff;transform:translateX(-50%);animation:wheel 1.6s var(--ease) infinite}
@keyframes wheel{0%{opacity:0;transform:translate(-50%,0)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,12px)}}

/* マーキー帯（CONNECTING SPORTS）*/
.cstop .ticker{background:var(--ink);overflow:hidden}
.cstop .ticker .row{display:flex;gap:34px;white-space:nowrap;padding:13px 0;animation:slide 30s linear infinite;width:max-content}
.cstop .ticker span{font-family:var(--disp);font-weight:800;font-size:14px;letter-spacing:.16em;color:#fff;display:flex;align-items:center;gap:34px}
.cstop .ticker span em{font-style:normal;color:var(--acc)}
.cstop .ticker span::after{content:"●";color:var(--acc);opacity:.85;font-size:8px}
@keyframes slide{to{transform:translateX(-50%)}}

/* 写真マーキー帯（テニス/ゴルフ/その他ミックス・横スクロール）。slide を再利用。
   prefers-reduced-motion 時は .cstop * の一括無効化で自動停止する。 */
.cstop .gallery{padding:26px 0;overflow:hidden}
.cstop .gallery .strip{display:flex;gap:14px;width:max-content;animation:slide 52s linear infinite;will-change:transform}
.cstop .gallery:hover .strip{animation-play-state:paused}
.cstop .gallery .g{width:286px;height:190px;border-radius:14px;overflow:hidden;flex:none;background:#0e1116}
.cstop .gallery .g img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s var(--ease)}
.cstop .gallery .g:hover img{transform:scale(1.07)}
@media(max-width:820px){ .cstop .gallery{padding:18px 0} .cstop .gallery .g{width:208px;height:140px} }

/* ============ セクション共通 ============ */
.cstop section{position:relative}
.cstop .block{padding:84px 0}
.cstop .head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px 28px;margin-bottom:40px;flex-wrap:wrap}
.cstop .head h2{font-family:var(--disp);font-weight:800;letter-spacing:-.02em;line-height:1.02;font-size:clamp(30px,4.6vw,54px)}
.cstop .head h2 em{font-style:normal;color:var(--acc-text)}
.cstop .head .sub{color:var(--muted);font-size:14.5px;max-width:26em}
.cstop .reveal{opacity:0;transform:translateY(26px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.cstop .reveal.in{opacity:1;transform:none}

/* ===== スポーツから選ぶ（主役）===== */
.cstop .sports-band{background:linear-gradient(180deg,var(--bg),#fff 60%)}
.cstop .sports{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;position:relative}
/* カード間を結ぶ “つながり線”（装飾）*/
.cstop .sports .weave{position:absolute;inset:0;z-index:0;pointer-events:none}
.cstop .sports .weave line{stroke:var(--line);stroke-width:1.5;stroke-dasharray:5 7}
.cstop .sports .weave circle{fill:var(--acc)}
.cstop .scard{
  --c:var(--ink);
  position:relative;z-index:1;background:#0f1217;border:1px solid rgba(255,255,255,.10);border-radius:22px;
  padding:30px 26px 24px;min-height:300px;display:flex;flex-direction:column;
  overflow:hidden;transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s;
}
.cstop .scard::before{content:"";position:absolute;left:0;top:0;height:5px;width:100%;background:var(--c);transform:scaleX(.18);transform-origin:left;transition:transform .45s var(--ease)}
.cstop .scard:hover{transform:translateY(-6px);box-shadow:0 30px 56px -34px rgba(21,23,28,.5);border-color:color-mix(in srgb,var(--c) 55%,rgba(255,255,255,.12))}
.cstop .scard:hover::before{transform:scaleX(1)}
.cstop .scard .ic{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;font-size:30px;color:#fff;background:color-mix(in srgb,var(--c) 32%,#171b22);transition:transform .4s var(--ease)}
.cstop .scard:hover .ic{transform:rotate(-6deg) scale(1.06)}
.cstop .scard .en{margin-top:auto;font-family:var(--disp);font-weight:700;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.6)}
.cstop .scard h3{font-family:var(--disp);font-weight:900;font-size:30px;letter-spacing:.01em;margin:4px 0 8px;line-height:1.05;color:#fff}
.cstop .scard p{font-size:13.5px;color:rgba(255,255,255,.78);line-height:1.7}
.cstop .scard .go{margin-top:18px;display:inline-flex;align-items:center;gap:8px;font-family:var(--disp);font-weight:700;font-size:13.5px;color:#fff}
.cstop .scard .go i{transition:transform .3s var(--ease)}
.cstop .scard:hover .go{color:var(--c)}
.cstop .scard:hover .go i{transform:translateX(5px)}
.cstop .scard .num{position:absolute;right:18px;top:14px;font-family:var(--disp);font-weight:800;font-size:54px;line-height:1;color:color-mix(in srgb,var(--c) 50%,transparent)}
/* スポーツカードの透かし：各競技のヒーロー写真を低不透明度で背面に敷く。
   本文（num/ic/en/h3/p/go）は z-index:1 で前面、.wm は背面(0)。右側からフェードさせ
   左寄せの本文に被らないようにする。 */
.cstop .scard > *{position:relative;z-index:1}
.cstop .scard .wm{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;pointer-events:none}
.cstop .scard .wm img{width:100%;height:100%;object-fit:cover;object-position:center;opacity:.62;
  filter:grayscale(1) contrast(1.08) brightness(.95);
  transition:opacity .45s var(--ease),transform .6s var(--ease);
  -webkit-mask-image:linear-gradient(to left,#000 0%,rgba(0,0,0,.85) 34%,transparent 82%);
          mask-image:linear-gradient(to left,#000 0%,rgba(0,0,0,.85) 34%,transparent 82%)}
/* デュオトーン：競技カラー(var(--c))を overlay ブレンドで写真に乗せて着色 */
.cstop .scard .wm::after{content:"";position:absolute;inset:0;background:var(--c);mix-blend-mode:overlay;opacity:.6;
  -webkit-mask-image:linear-gradient(to left,#000 0%,rgba(0,0,0,.85) 34%,transparent 82%);
          mask-image:linear-gradient(to left,#000 0%,rgba(0,0,0,.85) 34%,transparent 82%)}
.cstop .scard:hover .wm img{opacity:.72;transform:scale(1.05)}
@media(max-width:860px){.cstop .sports{grid-template-columns:1fr}.cstop .sports .weave{display:none}.cstop .scard{min-height:auto}}

/* ===== もっと知る（コネスポとは / 開発者紹介 / Instagram）===== */
.cstop .about{background:var(--ink);color:#e7e9ef;overflow:hidden;position:relative}
.cstop .about::before{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(132,204,22,.2),transparent 68%);pointer-events:none}
.cstop .about .head h2{color:#fff}
.cstop .about .head .sub{color:#aab0bd}
.cstop .about .lead-row{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;margin-bottom:46px}
.cstop .about .lead-row p{font-size:15.5px;line-height:1.95;color:#c7ccd7;max-width:34em}
.cstop .about .lead-row p b{color:#fff;font-weight:700}
.cstop .values{display:flex;gap:10px;flex-wrap:wrap}
.cstop .values .v{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.13);border-radius:999px;padding:9px 15px}
.cstop .values .v i{color:var(--acc);font-size:16px}
.cstop .links{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.cstop .lcard{
  display:flex;flex-direction:column;justify-content:space-between;gap:26px;min-height:172px;
  background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:22px 22px 20px;
  transition:transform .3s var(--ease),background .3s,border-color .3s;
}
.cstop .lcard:hover{transform:translateY(-5px);background:rgba(255,255,255,.09);border-color:rgba(132,204,22,.6)}
.cstop .lcard .top{display:flex;align-items:center;justify-content:space-between}
.cstop .lcard .ic{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;border:1.5px solid rgba(132,204,22,.4);background:rgba(132,204,22,.05);flex:none}
.cstop .lcard .ic svg{width:27px;height:27px;display:block}
.cstop .lcard .ic img{width:100%;height:100%;object-fit:cover;display:block}
.cstop .lcard .ic.is-logo{background:#fff}
.cstop .lcard .ic.is-logo img{object-fit:contain;padding:7px}
.cstop .lcard .ic.is-face img{object-position:center 24%}
.cstop .lcard .arr{font-size:20px;color:#8a90a0;transition:transform .3s var(--ease),color .3s}
.cstop .lcard:hover .arr{transform:translateX(5px);color:#fff}
.cstop .lcard h3{font-family:var(--disp);font-weight:800;font-size:21px;color:#fff;letter-spacing:.01em}
.cstop .lcard p{font-size:12.5px;color:#aab0bd;margin-top:4px}
@media(max-width:860px){.cstop .about .lead-row{grid-template-columns:1fr;gap:22px}.cstop .links{grid-template-columns:1fr}}

/* ===== FOOTER（※本番統合では共通フッターに置換）===== */
.cstop footer{background:#0f1116;color:#aab0bd}
.cstop footer .wrap{padding:50px 26px 38px}
.cstop .fbrand{font-family:var(--disp);font-weight:800;font-size:22px;color:#fff;display:flex;align-items:center;gap:11px}
.cstop .fbrand .mk{width:24px;height:24px}
.cstop .fcols{margin-top:24px;display:flex;flex-wrap:wrap;gap:38px;font-size:13.5px}
.cstop .fcols a{color:#aab0bd;transition:color .2s}.cstop .fcols a:hover{color:var(--acc)}
.cstop .fcols .col{display:flex;flex-direction:column;gap:9px}
.cstop .fcols .col b{color:#fff;font-family:var(--disp);font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:3px}
.cstop .foot-end{margin-top:32px;padding-top:18px;border-top:1px solid rgba(255,255,255,.1);font-size:12px;color:#6f7686;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}

/* ===== reduced-motion 配慮 ===== */
@media (prefers-reduced-motion: reduce){
  .cstop *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .cstop .reveal{opacity:1;transform:none}
  .cstop .hero h1 .hl::after{transform:skewX(-9deg) scaleX(1)}
  .cstop .netfx .ln{stroke-dashoffset:0}
}

/* 先頭へ戻る矢印：このページ（コミュニティTOP / 開発者紹介）のみライムに上書き。
   共通画像 toTop_*.png は差し替えず、CSS で見た目だけ置換（他ページは従来どおり）。 */
.pagetop a{
  position:fixed; bottom:30px; right:30px; z-index:10001;
  width:54px; height:54px; display:grid; place-items:center;
  background:var(--acc); color:#10180a; border-radius:15px;
  font-size:23px; font-weight:900; line-height:1; text-decoration:none;
  box-shadow:0 12px 26px -10px rgba(132,204,22,.65);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pagetop a:hover{transform:translateY(-3px); box-shadow:0 16px 30px -10px rgba(132,204,22,.85)}
.pagetop img{display:none}
.pagetop a::after{content:"\2191"}
@media(max-width:820px){ .pagetop a{bottom:74px; right:14px; width:48px; height:48px; font-size:20px; border-radius:14px} }
