/* ============================================================
   Runvox LP styles
   構成: トークン / ベース / ヘッダー / ヒーロー / フォンモック /
         セクション共通 / 各セクション / フッター / アニメーション
   ============================================================ */

:root {
  --primary: #00C2CC;
  --primary-dark: #009AA3;
  --ink: #0D1F22;
  --navy: #0e2a33;
  --sub: #6B8A8E;
  --border: #D8ECEE;
  --bg: #F4FBFC;
  --tint: #E0F9FA;
  --lime: #7ED957;
  --grad: linear-gradient(100deg, #17C4E8 0%, #2FC9C9 42%, #84E957 100%);
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink); background: #fff; line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== スクロール進捗バー ===== */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 0; transform: scaleX(0);
  background: var(--grad); z-index: 100; pointer-events: none;
}

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 4px 24px rgba(13, 31, 34, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.header-logo svg { height: 26px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
nav a { text-decoration: none; color: var(--ink); opacity: 0.75; transition: opacity 0.15s; }
nav a:hover { opacity: 1; }
.nav-cta {
  background: var(--primary-dark); color: #fff !important; opacity: 1 !important;
  padding: 8px 18px; border-radius: 999px; font-size: 13px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 154, 163, 0.35); }
@media (max-width: 760px) { nav a:not(.nav-cta) { display: none; } }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, #14373C 55%, var(--primary-dark) 100%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.glow.g1 {
  width: 420px; height: 420px; right: -60px; top: -120px;
  background: rgba(126, 217, 87, 0.22);
  animation: aurora1 14s ease-in-out infinite;
}
.glow.g2 {
  width: 460px; height: 460px; left: -120px; bottom: -140px;
  background: rgba(0, 194, 204, 0.26);
  animation: aurora2 18s ease-in-out infinite;
}
.glow.g3 {
  width: 300px; height: 300px; left: 40%; top: 30%;
  background: rgba(23, 196, 232, 0.12);
  animation: aurora1 22s ease-in-out infinite reverse;
}
.hero .tracks {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 12px);
  animation: tracksMove 24s linear infinite;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px;
  padding: 76px 0 92px;
}
.hero-logo svg { height: 56px; width: auto; display: block; margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; line-height: 1.45;
  letter-spacing: 0.01em; margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #17C4E8, #2FC9C9, #84E957, #2FC9C9, #17C4E8);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
.hero p.lead { font-size: 15.5px; color: rgba(255,255,255,0.78); max-width: 30em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ヒーローのエントランス（読み込み時に順番に立ち上がる） */
.hero-logo { animation: rise 0.9s var(--ease-out) 0.05s both; }
.hero h1 { animation: rise 0.9s var(--ease-out) 0.18s both; }
.hero p.lead { animation: rise 0.9s var(--ease-out) 0.32s both; }
.hero-ctas { animation: rise 0.9s var(--ease-out) 0.46s both; }
.phone-col { animation: phoneIn 1.1s var(--ease-out) 0.35s both; }

.btn-store {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none;
  padding: 13px 26px; border-radius: 14px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3); }
.btn-store::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(105deg, transparent, rgba(0, 194, 204, 0.14), transparent);
  animation: sheen 3.6s ease-in-out infinite;
}
.btn-store small { display: block; font-size: 10.5px; font-weight: 600; color: var(--sub); line-height: 1.3; }
.btn-store span { line-height: 1.3; }
.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.45); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 14px; font-weight: 600; font-size: 14px;
  transition: background 0.2s, transform 0.25s var(--ease-out);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ===== Phone mockup ===== */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: 272px; height: 556px; flex-shrink: 0;
  background: #0b1c20; border-radius: 44px; padding: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  animation: floatPhone 6.5s ease-in-out 1.6s infinite;
  transform: rotate(2.5deg);
}
.screen {
  background: var(--bg); border-radius: 35px; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  color: var(--ink); /* .hero の白文字を継承しない */
}
.notch { height: 26px; display: flex; justify-content: center; align-items: flex-start; padding-top: 8px; }
.notch::before { content: ""; width: 76px; height: 12px; background: #0b1c20; border-radius: 999px; }
.app-header { display: flex; justify-content: center; padding: 8px 0 10px; }
.app-header svg { height: 17px; width: auto; }
.chips { display: flex; gap: 6px; padding: 2px 14px 10px; }
.chip {
  font-size: 9.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--sub); background: #fff; white-space: nowrap;
}
.chip.on { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.qcard {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  margin: 0 14px 10px; padding: 11px 12px;
}
.qcard .cat { font-size: 8.5px; font-weight: 700; color: var(--primary-dark); }
.qcard .title { font-size: 11px; font-weight: 700; line-height: 1.5; margin: 3px 0 6px; }
.qcard .meta { display: flex; align-items: center; gap: 6px; font-size: 8.5px; color: var(--sub); }
.pill { padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 8px; }
.pill.done { background: var(--tint); color: var(--primary-dark); }
.pill.wait { background: #FFF3E0; color: #B26A00; }
.stars { color: #FFB300; letter-spacing: 1px; }
.rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 4px; color: #fff; font-size: 8px; font-weight: 800;
}
.rank.s { background: linear-gradient(135deg, #17C4E8, #84E957); }
.rank.a { background: var(--primary-dark); }
.fab {
  position: absolute; right: 14px; bottom: 18px;
  background: var(--primary-dark); color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 9px 16px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 154, 163, 0.45);
  animation: fabPulse 3s ease-in-out 2s infinite;
}

/* --- デモカード（回答待ち → 入力中 → 回答済 + ★ をループ） --- */
.qcard.demo .row-typing, .qcard.demo .row-answered { display: none; }
.qcard.demo.typing .row-wait, .qcard.demo.answered .row-wait { display: none; }
.qcard.demo.typing .row-typing { display: flex; }
.qcard.demo.answered .row-answered { display: flex; }
.typing-label { font-size: 8.5px; color: var(--sub); }
.dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary-dark);
  animation: blink 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.qcard.demo .star { color: #D8DEE0; transition: color 0.2s; display: inline-block; }
.qcard.demo .star.on { color: #FFB300; animation: starPop 0.4s var(--ease-out); }
.qcard.demo.answered { border-color: rgba(0, 194, 204, 0.55); box-shadow: 0 4px 14px rgba(0, 194, 204, 0.18); }

/* ===== セクション共通 ===== */
section { padding: 80px 0; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--primary-dark); margin-bottom: 10px;
}
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; line-height: 1.5; margin-bottom: 14px; }
.section-lead { color: var(--sub); font-size: 15px; max-width: 38em; }

/* スクロール出現アニメーション */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.22s; }
.reveal.d3 { transition-delay: 0.34s; }

/* ===== 課題提起 + マーキー ===== */
.pain { background: var(--bg); text-align: center; overflow: hidden; }
.pain .section-lead { margin: 0 auto 34px; }
.marquee {
  overflow: hidden; margin-bottom: 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 34s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 40s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.q-example {
  display: inline-block; margin-right: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 20px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  box-shadow: 0 2px 10px rgba(13, 31, 34, 0.04);
}
.q-example::before { content: "Q. "; color: var(--primary-dark); font-weight: 800; }

/* ===== 特徴カード ===== */
.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(13, 31, 34, 0.04);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: 0 0;
  transition: transform 0.5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(13, 31, 34, 0.1); border-color: rgba(0, 194, 204, 0.4); }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
  transition: transform 0.35s var(--ease-out);
}
.card:hover .icon { transform: scale(1.12) rotate(-6deg); }
.card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--sub); }
.rank-row { display: flex; gap: 6px; margin-top: 14px; }
.rank-badge { font-size: 11px; font-weight: 800; color: #fff; padding: 3px 12px; border-radius: 7px; }
.rank-badge.s { background: linear-gradient(135deg, #17C4E8, #84E957); }
.rank-badge.a { background: var(--primary-dark); }
.rank-badge.b { background: var(--sub); }

/* ===== 使い方 ===== */
.howto { background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px 24px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(13, 31, 34, 0.08); }
.step .num {
  width: 34px; height: 34px; border-radius: 999px; background: var(--grad);
  color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--sub); }

/* ===== 回答者募集 ===== */
.answerers {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #14373C 60%, var(--primary-dark) 130%);
  color: #fff;
}
.answerers::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
  animation: tracksMove 30s linear infinite;
}
.answerers .wrap { position: relative; z-index: 1; }
.answerers .section-lead { color: rgba(255,255,255,0.75); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.flow-step {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; padding: 12px 20px; font-size: 13.5px; font-weight: 700;
  transition: background 0.3s, border-color 0.3s;
}
.flow-step:hover { background: rgba(255,255,255,0.16); border-color: rgba(126, 217, 87, 0.5); }
.flow-arrow { color: var(--lime); font-weight: 800; animation: nudge 1.6s ease-in-out infinite; }
.answerers .note { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 22px; }

/* ===== FAQ ===== */
.faq .item { border-bottom: 1px solid var(--border); }
.faq details { padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 700; padding: 16px 4px;
  transition: color 0.2s;
}
.faq summary:hover { color: var(--primary-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋"; color: var(--primary-dark); font-weight: 600; margin-left: 16px;
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { content: "－"; transform: rotate(180deg); }
.faq .a { font-size: 14px; color: var(--sub); padding: 0 4px 18px; max-width: 44em; }
.faq details[open] .a { animation: rise 0.4s var(--ease-out); }

/* ===== 最終 CTA ===== */
.final { text-align: center; background: var(--bg); position: relative; overflow: hidden; }
.final .glow { filter: blur(90px); }
.final .g4 {
  width: 480px; height: 480px; left: 50%; top: -240px; margin-left: -240px;
  background: rgba(0, 194, 204, 0.12); animation: aurora1 16s ease-in-out infinite;
}
.final .wrap { position: relative; z-index: 1; }
.final .hero-logo-light svg { height: 44px; width: auto; margin-bottom: 22px; }
.final p { color: var(--sub); font-size: 14.5px; margin-bottom: 26px; }
.btn-store.dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(13, 31, 34, 0.25); }
.btn-store.dark small { color: rgba(255,255,255,0.6); }
.btn-store.dark::after { background: linear-gradient(105deg, transparent, rgba(255,255,255,0.12), transparent); }

/* ===== Footer ===== */
footer { background: var(--navy); color: rgba(255,255,255,0.65); font-size: 13px; padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta { font-size: 12px; line-height: 1.9; }

/* ===== キーフレーム ===== */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes floatPhone {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-12px); }
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 50px) scale(1.15); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -40px) scale(1.1); }
}
@keyframes shimmer { to { background-position: 300% 0; } }
@keyframes sheen {
  0% { left: -45%; }
  60%, 100% { left: 110%; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes starPop { 0% { transform: scale(0.2); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes fabPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(0, 154, 163, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0, 154, 163, 0.65); }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes tracksMove { to { background-position: 240px 0; } }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; text-align: center; }
  .hero-logo svg { margin: 0 auto 24px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .phone { width: 250px; height: 512px; }
  .features .grid, .steps { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
