/* 確率迷宮 — サイト共通のスタイル。配色と装飾は Google Play のフィーチャーグラフィックに合わせる:
   夜の藍の地・シアン→青→紫のグラデーションの見出し・金の差し色・明朝・確率の記号を薄く散らす */
:root {
  --night: #07061a;
  --night-2: #0d0a26;
  --indigo: #1e1248;
  --cyan: #6edcff;
  --blue: #5a82ff;
  --violet: #b978ff;
  --gold: #ffd36e;
  --text: #ebe8fb;
  --muted: #a9a4c8;
  --faint: #6d6890;
  --line: rgba(160, 150, 255, 0.14);
  --card: rgba(20, 14, 52, 0.55);
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 50%, var(--violet) 100%);
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", "Source Han Serif JP", Georgia, serif;
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--night);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
/* 画面全体に、左上のシアンと右下の紫の光 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 8% 0%, rgba(110, 220, 255, 0.13), transparent 70%),
    radial-gradient(55vw 55vh at 100% 100%, rgba(185, 120, 255, 0.14), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 60%, var(--night) 100%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 上のバー ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 6, 26, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 18px rgba(110, 220, 255, 0.35); }
.topnav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 14px; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--text); text-decoration: none; }
.lang {
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 12px;
  letter-spacing: 0.12em; color: var(--gold) !important;
}
@media (max-width: 720px) { .topnav a:not(.lang) { display: none; } }

/* ---------- 共通の見出し・装飾 ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.42em; color: var(--gold); text-transform: uppercase;
  font-family: Georgia, var(--serif);
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(90, 130, 255, 0.35));
}
.rule { width: 72px; height: 3px; border-radius: 3px; background: var(--gold); margin: 22px 0; }
.center .rule { margin-left: auto; margin-right: auto; }
section { position: relative; padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.35; font-weight: 700; margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 6px; }
/* 角の金の線（フィーチャーグラフィックと同じ迷宮の通路のような角） */
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: 46px; height: 46px; pointer-events: none;
  border-color: rgba(255, 211, 110, 0.75); border-style: solid;
}
.corners::before { top: -14px; left: -14px; border-width: 2px 0 0 2px; }
.corners::after { bottom: -14px; right: -14px; border-width: 0 2px 2px 0; }

/* ---------- ヒーロー ---------- */
.hero { padding: 72px 0 90px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(54px, 9vw, 112px); line-height: 1.02; font-weight: 900; letter-spacing: 0.02em; margin-top: 18px; }
.hero h1.en { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.06; }
.hero .tagline { font-size: clamp(20px, 2.4vw, 28px); color: var(--gold); font-weight: 700; }
.hero .lead { color: var(--muted); margin-top: 10px; max-width: 34em; }
.hero-art { position: relative; aspect-ratio: 1 / 1; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 28px;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(110, 220, 255, 0.35), rgba(185, 120, 255, 0.18) 45%, transparent 70%);
  filter: blur(30px); animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.06); opacity: 0.75; } }
.symbols { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.symbols span {
  position: absolute; color: rgba(110, 220, 255, 0.10); font-family: Georgia, serif; white-space: nowrap;
  animation: drift 18s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translateY(-14px); } }
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px;
  border-radius: 14px; color: var(--text); border: 1px solid rgba(110, 220, 255, 0.35);
  background: linear-gradient(135deg, rgba(110, 220, 255, 0.12), rgba(185, 120, 255, 0.12));
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.store:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 10px 34px rgba(90, 130, 255, 0.3); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; line-height: 1.2; }
.store strong { display: block; font-size: 18px; line-height: 1.25; }
.meta { margin-top: 18px; font-size: 13px; color: var(--faint); }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; order: -1; }
}

/* ---------- 直感 vs 確率 ---------- */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.vs-card {
  padding: 34px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
}
.vs-card .num { font-size: clamp(56px, 8vw, 88px); font-weight: 900; line-height: 1; font-family: Georgia, var(--serif); }
.vs-card.gut .num { color: #ff7d8e; }
.vs-card.math .num { color: var(--cyan); text-shadow: 0 0 30px rgba(110, 220, 255, 0.45); }
.vs-card h3 { font-size: 18px; margin: 14px 0 6px; }
.vs-card p { color: var(--muted); font-size: 14px; }
.vs-mid { align-self: center; font-family: Georgia, serif; color: var(--gold); font-size: 22px; letter-spacing: 0.2em; }
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); margin-top: 18px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; }
.gut .bar i { width: 29%; background: #ff7d8e; }
.math .bar i { width: 81%; background: var(--grad); }
.note { color: var(--faint); font-size: 12px; margin-top: 18px; text-align: center; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } .vs-mid { text-align: center; } }

/* ---------- 7 つの部屋 ---------- */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.room {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.room::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 120, 255, 0.22), transparent 70%); pointer-events: none;
}
.room:hover { transform: translateY(-4px); border-color: rgba(110, 220, 255, 0.45); box-shadow: 0 18px 40px rgba(20, 10, 60, 0.6); }
.room .odds { font-family: Georgia, var(--serif); font-size: 34px; font-weight: 700; line-height: 1; }
.room h3 { font-size: 18px; margin: 16px 0 8px; }
.room p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.room .k { position: absolute; top: 22px; right: 22px; font-size: 11px; letter-spacing: 0.2em; color: var(--faint); font-family: Georgia, serif; }

/* ---------- 画面 ---------- */
.shots {
  display: flex; gap: 26px; overflow-x: auto; padding: 10px 24px 30px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(110, 220, 255, 0.35) transparent;
}
.shot { flex: none; width: min(250px, 66vw); scroll-snap-align: center; }
.shot .phone {
  border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #2c2a55, #131027);
  border: 1px solid rgba(150, 170, 230, 0.55); box-shadow: 0 0 34px rgba(110, 220, 255, 0.22), 0 26px 50px rgba(0, 0, 0, 0.6);
}
.shot .phone img { border-radius: 28px; width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.shot figcaption b { display: block; color: var(--text); font-size: 15px; }

/* ---------- 遊び方の流れ ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: Georgia, serif; font-size: 14px; letter-spacing: 0.3em; color: var(--gold);
}
.step h3 { font-size: 18px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- モード ---------- */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.mode { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.mode .tag { display: inline-block; font-size: 11px; letter-spacing: 0.16em; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.mode h3 { font-size: 20px; margin: 14px 0 8px; }
.mode p { color: var(--muted); font-size: 14px; }
.mode.normal .tag { color: var(--cyan); }
.mode.daily .tag { color: var(--gold); }
.mode.master .tag { color: var(--violet); }
.mode.rank .tag { color: #8af0b6; }

/* ---------- ダウンロード ---------- */
.cta {
  text-align: center; padding: 70px 30px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 50% 0%, rgba(90, 130, 255, 0.22), transparent 70%), var(--card);
}
.cta img.icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 22px; box-shadow: 0 0 40px rgba(185, 120, 255, 0.45); }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta .stores { justify-content: center; }

/* ---------- フッター ---------- */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; }
footer.site nav a { color: var(--muted); }
footer.site .copy { font-size: 12px; color: var(--faint); }

/* ---------- スクロールで表示（JS がある時だけ） ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .symbols span, .hero-art::before { animation: none; }
}

/* ---------- 文章のページ（プライバシーポリシー・サポートなど） ---------- */
.page-content { max-width: 820px; margin: 0 auto; padding: 64px 24px 40px; }
.page-content h1 {
  font-size: clamp(28px, 4.4vw, 40px); line-height: 1.35; margin-bottom: 36px; text-align: left;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.page-content h2 {
  font-size: 20px; color: var(--text); margin: 44px 0 14px; padding-left: 14px;
  border-left: 3px solid var(--gold); line-height: 1.5;
}
.page-content h3 { font-size: 16px; color: var(--text); margin: 26px 0 8px; }
.page-content p, .page-content li { font-size: 15px; color: var(--muted); }
.page-content p, .page-content ul, .page-content ol, .page-content table { margin-bottom: 16px; }
.page-content ul, .page-content ol { padding-left: 1.4em; }
.page-content li { margin-bottom: 6px; }
.page-content strong { color: var(--text); }
.page-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--muted); }
.page-content th { color: var(--text); background: rgba(90, 130, 255, 0.08); }
.page-content .back-link { display: inline-block; margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.page-content .last-updated { font-size: 12px; color: var(--faint); text-align: right; margin-top: 44px; }
.page-content .nav-links { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; }
.page-content .nav-links a { color: var(--muted); font-size: 13px; margin: 0; }
.page-content .nav-links a:hover { color: var(--cyan); }
.page-content .card, .page-content .notice, .page-content .highlight, .page-content .box {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 18px;
}
.page-content .app-name { font-size: 13px; color: var(--faint); margin: -24px 0 36px; letter-spacing: 0.08em; }
.page-content .label { font-size: 12px; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 4px; }
.page-content .table-wrap { overflow-x: auto; margin-bottom: 16px; }
@media (max-width: 880px) { .symbols span { opacity: 0.45; } }
