/* ============================================================
   デリログ LP専用スタイル（app.html の styles.css とは独立）
   デザイン方針: Linear/Stripe/Vercel系のダーク・プレミアム
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --bg: #FAFBFC;
  --bg-soft: #FFFFFF;
  --surface: #FFFFFF;
  --surface-strong: #F0F2F5;
  --border: #E5E9EF;
  --border-strong: #D6DCE4;
  --text: #181D25;
  --text-2: #5D6673;
  --text-3: #98A1AC;
  --brand: #10B981;
  --brand-2: #0E9F6E;
  --brand-grad: linear-gradient(135deg, #10B981 0%, #0E9F6E 100%);
  --glow: rgba(16, 185, 129, 0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.lp {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- 背景装飾: グラデーション光彩 + グリッド ---- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52% 34% at 50% -4%, rgba(16, 185, 129, 0.09) 0%, transparent 70%),
    var(--bg);
}
.bg-decor::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 29, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 29, 37, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(65% 48% at 50% 0%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(65% 48% at 50% 0%, #000 0%, transparent 100%);
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- ナビ ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(250, 251, 252, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 17px; color: var(--text); text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-brand .logo-dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand-grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 0 18px var(--glow);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand-grad);
  color: #FFFFFF !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800 !important;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 rgba(52, 211, 153, 0);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--glow); }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---- ヒーロー ---- */
.hero {
  padding: 160px 0 96px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero h1 {
  font-size: clamp(34px, 6.4vw, 62px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 500;
}
.hero-actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-grad);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15.5px;
  padding: 15px 34px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 44px rgba(16, 185, 129, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-strong); transform: translateY(-1px); }
.hero-platforms {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-platforms span {
  font-size: 12.5px; font-weight: 700;
  color: var(--text-3);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ---- ヒーロー内 プロダクトモック ---- */
.mock {
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  padding: 24px;
  text-align: left;
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.12);
  position: relative;
}

.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mock-title { font-size: 13px; font-weight: 800; color: var(--text-2); }
.mock-date { font-size: 11px; color: var(--text-3); font-weight: 600; }
.mock-hero-label { font-size: 11.5px; color: var(--brand-2); font-weight: 700; }
.mock-hero-value {
  font-size: 44px; font-weight: 900; letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.15;
}
.mock-hero-value small { font-size: 18px; font-weight: 700; }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.mock-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.mock-stat b { display: block; font-size: 13.5px; font-weight: 800; color: var(--text); }
.mock-stat span { font-size: 10px; color: var(--text-3); font-weight: 600; }
.mock-bar-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.mock-bar-name { font-size: 10.5px; font-weight: 700; color: var(--text-2); width: 72px; flex-shrink: 0; }
.mock-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.mock-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-grad); }
.mock-bar-val { font-size: 10.5px; color: var(--text-3); font-weight: 700; width: 44px; text-align: right; }

/* ---- セクション共通 ---- */
section.block { padding: 88px 0; position: relative; }
.section-eyebrow {
  display: block;
  font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
  text-align: center;
}
.section-title {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 16px;
}
.section-lead {
  font-size: clamp(14px, 2vw, 16.5px);
  color: var(--text-2);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

/* ---- 機能カード ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.f-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s, box-shadow 0.28s;
  position: relative;
  overflow: hidden;
}
.f-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.f-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(16, 185, 129, 0.05);
}
.f-card:hover::before { opacity: 1; }
.f-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(14, 159, 110, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  margin-bottom: 20px;
}
.f-card h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.f-card p { font-size: 14px; color: var(--text-2); }
.f-num {
  position: absolute; top: 24px; right: 26px;
  font-size: 13px; font-weight: 800; color: var(--text-3);
  letter-spacing: 0.08em;
}

/* ---- メリット（チェックリスト） ---- */
.benefit-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) { .benefit-wrap { grid-template-columns: 1fr; gap: 28px; } }
.benefit-wrap h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; line-height: 1.4; letter-spacing: -0.01em; }
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.benefit-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.benefit-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(14, 159, 110, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
  margin-top: 2px;
}
.benefit-list li span:last-child { color: var(--text-2); font-weight: 500; }
.benefit-list li b { color: var(--text); font-weight: 700; }

/* ---- 料金 ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35); }
.price-card.featured {
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.08);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad);
  color: #FFFFFF;
  font-size: 11.5px; font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--glow);
}
.price-plan { font-size: 14px; font-weight: 800; color: var(--text-2); margin-bottom: 10px; letter-spacing: 0.03em; }
.price-value { font-size: 44px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.price-value small { font-size: 15px; font-weight: 700; color: var(--text-2); margin-left: 4px; }
.price-note { font-size: 12.5px; color: var(--text-3); margin: 8px 0 24px; font-weight: 600; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.price-features li {
  font-size: 13.5px; color: var(--text-2); font-weight: 500;
  display: flex; gap: 10px; align-items: center;
}
.price-features li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
}
.price-cta {
  display: block; text-align: center;
  padding: 13px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.price-cta.solid {
  background: var(--brand-grad); color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.price-cta.solid:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(16, 185, 129, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.price-cta.outline { border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.price-cta.outline:hover { background: var(--surface-strong); }

/* ---- FAQ ---- */
.faq-wrap { max-width: 680px; margin: 0 auto; }
.faq-wrap details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.faq-wrap details[open] { border-color: rgba(16, 185, 129, 0.3); background: var(--surface-strong); }
.faq-wrap summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-size: 15px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.2s;
}
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after {
  content: '+';
  font-size: 20px; font-weight: 500;
  color: var(--text-3);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-wrap details[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq-wrap details p {
  padding: 0 24px 20px;
  font-size: 14px; color: var(--text-2);
}

/* ---- 最終CTA ---- */
.final-cta {
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(16, 185, 129, 0.1) 0%, transparent 70%),
    #FFFFFF;
  padding: clamp(48px, 8vw, 80px) 28px;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.final-cta p { color: var(--text-2); font-size: 15px; margin-bottom: 32px; }

/* ---- フッター ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 88px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; margin-bottom: 12px; }
.footer-brand .logo-dot {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--brand-grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.footer-desc { font-size: 12.5px; color: var(--text-3); max-width: 300px; }
.footer h4 { font-size: 12px; font-weight: 800; color: var(--text-2); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-3); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-3);
}

/* ---- スクロール連動フェード ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .pulse { animation: none; }
}

/* ---- モバイル調整 ---- */
@media (max-width: 640px) {
  .hero { padding: 128px 0 72px; }
  section.block { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .mock { max-width: 100%; }
}

/* ===== ナイトモード（端末設定に自動追従） ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --bg-soft: #1C1F23;
    --surface: #1C1F23;
    --surface-strong: #26292E;
    --border: #2E3237;
    --border-strong: #3A3F45;
    --text: #F2F4F6;
    --text-2: #A6ADB6;
    --text-3: #6E7681;
  }
  .nav { background: rgba(18, 20, 22, 0.85); }
  .bg-decor::after {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  }
}
