/* 艇脳 Teinou — 共通スタイル v2「波しぶきポップ × 専門紙データ」
   世界観: 明るく親しみやすい“競艇女子”のワクワク感 × データ予想の信頼性
   - 配色: アクア水面(#06B6D4) × ローズコーラル(#FF5C8A) × サニーオレンジCTA
   - ヒーローは明るいアクアグラデ + オリジナルマスコット（実在人物の肖像は不使用）
   - フォント: システムゴシック（Webフォント全廃 → 高速表示・PJ38踏襲）
   - 競艇レーン色(1白/2黒/3赤/4青/5黄/6緑)は公式準拠で厳守
   - ROI・的中率・市場超えの訴求はしない（透明実績フレーム）
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── ブランド（水・ボート＝アクア） ── */
  --brand:      #06B6D4;  /* アクア cyan-500（主役・ナビ帯・バー） */
  --brand-deep: #0E7490;  /* 濃アクア cyan-700（見出し/リンク） */
  --brand-ink:  #083B47;  /* 最濃ティール（ロゴ） */
  --brand-pale: #E4FAFE;  /* 淡アクア（チップ/アクティブ） */
  /* ── ポップアクセント（アイドルの明るさ＝ローズ＆サニー） ── */
  --pop:        #FF5C8A;  /* ローズコーラル（アクセント・マスコット） */
  --pop-d:      #EC3A6E;
  --pop-soft:   #FFE6EE;  /* 淡ローズ */
  --sun:        #FFC53D;  /* サニーイエロー（きらめき/星） */
  /* ── CTA（行動喚起＝サニーオレンジ） ── */
  --cta:        #FF7A45;
  --cta-d:      #F15F22;
  --cta-ink:    #3A1500;  /* CTA上の濃文字 */
  /* ── 面・文字・罫 ── */
  --bg:         #FFFFFF;
  --bg-sub:     #F0FBFD;  /* 淡アクア背景 */
  --surface:    #FFFFFF;
  --line:       #DBEAEF;  /* 淡ティール罫 */
  --text:       #0F2A33;  /* ティール墨 */
  --text-sub:   #5C7A85;
  --link:       #0E7490;
  --green:      #0EA371;  --green-bg: #E6FAF1;
  --red:        #E5484D;  --red-bg:   #FDECEC;
  --footer:     #06262E;  /* 濃ティールフッター */
  /* ── 競艇レーン色（公式・変更禁止） ── */
  --lane1: #FFFFFF; --lane2: #1A1A1A; --lane3: #E5342B;
  --lane4: #1E73E8; --lane5: #FBD413; --lane6: #2BA24C;
  /* ── 旧名エイリアス（既存サブページ互換: how/sample/faq/race-ui 等） ── */
  --ink: var(--text); --muted: var(--text-sub); --paper: #FFFFFF; --soft: var(--bg-sub);
  --navy: var(--brand-deep); --blue: var(--brand); --cyan: var(--brand-deep);
  --gold: var(--cta); --border: var(--line);
  /* ── トークン ── */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px; --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(8,59,71,.07);
  --shadow-md: 0 4px 18px rgba(8,59,71,.10);
  --shadow-pop: 0 8px 26px rgba(255,92,138,.28);
}

html { color: var(--text); background: var(--bg-sub); scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "Meiryo", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; }
::selection { background: rgba(255,92,138,.22); }

h1, h2, h3, .section-head { font-weight: 800; letter-spacing: .005em; }

/* ════════════════════════════════════════════════
   ヘッダー / ナビ
   ════════════════════════════════════════════════ */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-head__in {
  max-width: 1120px; height: 60px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; color: var(--brand-ink); text-decoration: none;
  letter-spacing: .04em; white-space: nowrap; font-size: 20px;
}
.logo .logo-mark { width: 30px; height: 30px; flex: 0 0 auto; }
.logo b { color: var(--brand); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a, .nav-cta {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 13px; font-weight: 700; color: #466670; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"], .nav a[aria-current="true"] {
  background: var(--brand-pale); color: var(--brand-deep);
}
.nav-cta {
  background: var(--cta); color: var(--cta-ink); font-weight: 800;
  margin-left: 6px; padding-inline: 16px; box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--cta-d); }

/* ════════════════════════════════════════════════
   ヒーロー（明るいアクア + マスコット）
   ════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(255,92,138,.16), transparent 56%),
    radial-gradient(120% 100% at 0% 110%, rgba(255,197,61,.18), transparent 52%),
    linear-gradient(160deg, #E4FAFE 0%, #C9F2FB 44%, #BDEFFA 100%);
  color: var(--text);
  padding: 64px 20px 56px;
  border-bottom: 1px solid var(--line);
}
/* 水面のしぶきドット */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.7) 1.6px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,.5) 1.2px, transparent 2px);
  background-size: 42px 42px, 28px 28px;
  background-position: 0 0, 14px 18px;
  opacity: .5; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.hero__in, .wrap { max-width: 1120px; margin: 0 auto; }
.hero__in { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: 30px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin-bottom: 14px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(6,182,212,.32);
  color: var(--brand-deep); font-size: 12px; font-weight: 800; letter-spacing: .1em;
  padding: 5px 13px; border-radius: var(--radius-pill); text-transform: uppercase;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pop); animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

h1 {
  max-width: 820px; margin: 0;
  font-size: clamp(28px, 5.2vw, 46px); line-height: 1.22; font-weight: 900;
  color: var(--brand-ink); text-wrap: balance; letter-spacing: 0;
}
h1 em { color: var(--pop-d); font-style: normal; }
.hero h1 { color: var(--brand-ink); }
.hero p { max-width: 600px; margin: 16px 0 0; color: #3a5660; font-size: clamp(15px, 2.4vw, 17px); }

/* ヒーロー右パネル（情報パネル or マスコット台座） */
.hero-panel {
  background: rgba(255,255,255,.82); border: 1px solid rgba(6,182,212,.28);
  border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-md);
}
.hero-panel .k { font-size: 12px; color: var(--text-sub); font-weight: 800; letter-spacing: .04em; }
.hero-panel .v { margin-top: 4px; font-size: 22px; font-weight: 900; color: var(--brand-deep); }
.hero-panel p { margin-top: 8px; font-size: 13px; color: var(--text-sub); }

.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* マスコット */
.mascot { display: block; width: 100%; max-width: 280px; margin: 0 auto; filter: drop-shadow(0 12px 22px rgba(8,59,71,.16)); }
.mascot-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mascot-bubble {
  background: #fff; border: 1.5px solid var(--pop); color: var(--pop-d);
  font-size: 13px; font-weight: 800; padding: 7px 14px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); position: relative;
}
.mascot-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: #fff; border-right: 1.5px solid var(--pop); border-bottom: 1.5px solid var(--pop);
}

/* ════════════════════════════════════════════════
   ボタン
   ════════════════════════════════════════════════ */
.btn {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-md); padding: 12px 20px;
  font-size: 14px; font-weight: 800; text-decoration: none;
  border: 1.5px solid var(--line); background: #fff; color: var(--brand-deep);
  cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary, .btn-primary {
  border-color: var(--cta); background: var(--cta); color: var(--cta-ink);
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover, .btn-primary:hover { background: var(--cta-d); box-shadow: 0 8px 22px rgba(255,122,69,.34); }
.btn.dark { border-color: var(--brand-ink); background: var(--brand-ink); color: #fff; }
.btn.pop { border-color: var(--pop); background: var(--pop); color: #fff; box-shadow: var(--shadow-pop); }
.btn.pop:hover { background: var(--pop-d); }
.btn.ghost { background: transparent; }
.btn-lg { min-height: 54px; font-size: 16px; padding: 16px 34px; border-radius: var(--radius-lg); }

/* ════════════════════════════════════════════════
   セクション / 共通レイアウト
   ════════════════════════════════════════════════ */
.wrap { padding: 44px 20px 72px; }
section.band { padding: 56px 20px; }
.band.sub { background: var(--bg-sub); }
.band.ink { background: linear-gradient(165deg, #0A323D, #0E5566); color: #fff; }
.band.ink h2, .band.ink .section-head { color: #fff; }
.band.ink .section-label { color: var(--sun); }
.inner { max-width: 880px; margin: 0 auto; }

.section { padding: 34px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-label, .section-label {
  margin-bottom: 8px; color: var(--brand-deep);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.section h2, .section-head {
  margin: 0 0 16px; color: var(--brand-ink);
  font-size: clamp(22px, 4vw, 31px); line-height: 1.34; font-weight: 900;
}
.band.ink .section-head, .band.ink h2 { color: #fff; }
.lead { max-width: 720px; margin: 0 0 22px; color: #4a6670; }

/* ════════════════════════════════════════════════
   カード / グリッド
   ════════════════════════════════════════════════ */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card, .info-box, .faq-card, .sample-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm);
}
.card { transition: transform .12s, box-shadow .12s, border-color .12s; }
.card.hoverable:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(6,182,212,.4); }
.card h3, .sample-card h3 { margin: 0 0 8px; color: var(--brand-ink); font-size: 17px; font-weight: 800; }
.card p, .sample-card p { margin: 0; color: var(--text-sub); font-size: 14px; }
/* アイコン付き特長カード */
.card .card-ic {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--brand-pale);
}
.card.pop .card-ic { background: var(--pop-soft); }
.card.sun .card-ic { background: #FFF3D2; }

/* 注記ボックス */
.notice {
  margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid #FFE0AE; background: #FFF8EC; color: #7a4a10; font-size: 14px;
}
.notice strong { color: #8a4f0c; }

/* ════════════════════════════════════════════════
   実績 / 数字
   ════════════════════════════════════════════════ */
.stat-row { display: flex; gap: 12px; margin: 8px 0 4px; flex-wrap: wrap; }
.stat { flex: 1; min-width: 140px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 10px; text-align: center; box-shadow: var(--shadow-sm); overflow: hidden; }
.stat-n { font-size: 26px; font-weight: 900; color: var(--brand); line-height: 1; white-space: nowrap; }
.stat.pop .stat-n { color: var(--pop-d); }
.stat-l { font-size: 12px; color: var(--text-sub); margin-top: 7px; line-height: 1.5; }
.big-num { font-size: clamp(38px, 6vw, 50px); font-weight: 900; line-height: 1.1; color: var(--brand-ink); }
.big-num-unit { font-size: 17px; font-weight: 800; color: var(--text-sub); }

/* ════════════════════════════════════════════════
   情報テーブル / 確率バー（サンプル等）
   ════════════════════════════════════════════════ */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.info-table th, .info-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 220px; color: var(--brand-ink); background: var(--bg-sub); font-size: 13px; font-weight: 800; white-space: nowrap; }

.prob-list { display: grid; gap: 8px; }
.prob-row { display: grid; grid-template-columns: 54px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.bar { height: 9px; border-radius: var(--radius-pill); overflow: hidden; background: #DCEFF3; }
.bar span { display: block; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--brand), #22C9E0); }

/* ラベル/タグ */
.tag { display: inline-flex; align-items: center; border-radius: var(--radius-pill); padding: 4px 11px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--brand-pale); color: var(--brand-deep); }
.tag.pop { background: var(--pop-soft); color: var(--pop-d); }

/* ════════════════════════════════════════════════
   FAQ（details）
   ════════════════════════════════════════════════ */
.faq-list { display: grid; gap: 10px; }
details.faq-card { padding: 0; overflow: hidden; }
.faq-card summary { cursor: pointer; padding: 16px 18px; font-weight: 800; color: var(--brand-ink); list-style: none; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "＋"; float: right; color: var(--brand); font-weight: 900; }
.faq-card[open] summary::after { content: "－"; color: var(--pop); }
.faq-card p { margin: 0; padding: 0 18px 18px; color: #4a6670; font-size: 14px; }

/* サンプルカードのヘッダ */
.sample-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }

/* ════════════════════════════════════════════════
   フッター
   ════════════════════════════════════════════════ */
.site-foot, footer.site-foot {
  background: var(--footer); color: rgba(255,255,255,.72);
  padding: 36px 20px; text-align: center; font-size: 13px; line-height: 1.95;
}
.site-foot strong { color: rgba(255,255,255,.92); }
.site-foot a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-links { margin-top: 10px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 2px 6px; }

/* 法定注記 */
.disclaimer-band { background: var(--bg-sub); padding: 26px 20px; border-top: 1px solid var(--line); }
.disclaimer-band p { max-width: 720px; margin: 0 auto; font-size: 12px; color: #6b8088; line-height: 2; }
.disclaimer-band a { color: var(--brand-deep); }

/* ════════════════════════════════════════════════
   レスポンシブ
   ════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero__grid, .grid, .grid.two { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-panel { display: none; }
  .mascot { max-width: 220px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-head__in { padding: 0 14px; height: 54px; gap: 8px; }
  .logo { flex: 0 0 auto; gap: 6px; font-size: 17px; }
  .logo .logo-mark { width: 28px; height: 28px; }
  .nav { flex: 1 1 auto; min-width: 0; gap: 0; }
  .nav a { flex: 0 0 auto; min-width: 44px; padding-inline: 5px; font-size: 12px; }
  .nav-cta { display: none; }
  .wrap { padding: 28px 16px 56px; }
  section.band { padding: 40px 16px; }
  .stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { min-width: 0; padding: 12px 6px; }
  .stat-n { font-size: 20px; }
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: 0; white-space: normal; }
  .sample-head { flex-direction: column; }
}

/* モバイル下部固定CTA */
.mobile-cta-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--cta); color: var(--cta-ink); text-decoration: none;
  font-weight: 900; font-size: 15px; height: 50px; border-radius: var(--radius-md);
}
@media (max-width: 600px) {
  .mobile-cta-bar { display: block; }
  body.has-mobile-cta { padding-bottom: 74px; }
}

/* ════════════════════════════════════════════════
   アイコンシステム（絵文字を廃し、線アイコンSVGへ統一）
   使い方: <svg class="ic"><use href="#ic-xxx"/></svg>
   ════════════════════════════════════════════════ */
.ic {
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-lg { width: 22px; height: 22px; }

/* ════════════════════════════════════════════════
   イメージモデル（キャラクター）= 単一アセットで差し替え可能
   正本: /assets/mascot.svg を1つ置換すれば全箇所に反映（SVG/PNG/JPG可）。
   実在モデル起用時はこのファイル or 各 .character の src を差し替えるだけ。
   ════════════════════════════════════════════════ */
.character { display: block; object-fit: contain; }
.character--avatar { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════════════
   デッドクリック対策 / アクセシビリティ
   - クリック可能要素のみ pointer + hover + focus を付与
   - 装飾だけの要素は cursor:default で誤タップ誘発を防ぐ
   ════════════════════════════════════════════════ */
.is-static, .stat, .hero-panel, .tag { cursor: default; }

a.card-link, a.plan, a.tg-link {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
a.card-link:hover, a.plan:hover, a.tg-link:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(6,182,212,.5);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px;
}

/* タップターゲットの底上げ（誤タップ・取りこぼし防止） */
.nav a { min-height: 40px; }
@media (max-width: 600px) {
  .nav a { min-height: 44px; }
  .foot-links a { min-height: 44px; }
}
