:root {
  --bg: #ffffff;
  --bg-muted: #f7f8fb;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --accent: #ff8c42;
  --accent-soft: #ffe2cf;
  --accent-strong: #ff6a13;
  --hero-bg: #0a0d18;
  --hero-text: #f8fafc;
  --hero-text-muted: #94a3b8;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --hero-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: min(1180px, 100% - 48px);
  --section-pad: clamp(4rem, 10vw, 8rem);
  --font-base: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
}

/* ============================================
   ナビバー
============================================ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hero-text);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}

.navbar.scrolled .nav-brand {
  color: var(--text);
}

.nav-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(255, 140, 66, 0.32);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* ============================================
   ヒーロー
============================================ */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: clamp(7rem, 14vh, 10rem) 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(600px, 90vw, 980px);
  height: clamp(420px, 60vh, 720px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.22) 0%, rgba(255, 106, 19, 0.08) 35%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid rgba(255, 140, 66, 0.28);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 140, 66, 0.6);
}

.hero h1 {
  max-width: 900px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--hero-text-muted);
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 12px 32px rgba(255, 140, 66, 0.4);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--hero-text);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.97);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--hero-text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

/* ヒーローのスマホモック */
.hero-phones {
  position: relative;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1rem, 4vw, 2.4rem);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 99%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 99%);
  padding-bottom: clamp(2rem, 8vh, 5rem);
  perspective: 1400px;
}

.phone-frame {
  position: relative;
  width: clamp(180px, 26vw, 280px);
  aspect-ratio: 9 / 19.5;
  border-radius: clamp(28px, 4vw, 40px);
  background: #1a1a1f;
  padding: clamp(8px, 1vw, 10px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 25px 60px -15px rgba(0, 0, 0, 0.6),
    0 50px 90px -25px rgba(255, 140, 66, 0.18);
  flex-shrink: 0;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(22px, 3.2vw, 32px);
  background: #000;
}

.phone-tilt-left {
  transform: translateY(20px) rotate(-3deg);
}

.phone-tilt-right {
  transform: translateY(0) rotate(3deg);
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* ============================================
   セクション共通
============================================ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 3.5rem;
}

/* ============================================
   課題提起
============================================ */
.problem {
  background: var(--bg-muted);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-md);
}

.problem-card-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  margin-bottom: 0.5rem;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ============================================
   機能紹介
============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-lg);
}

.feature-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.25);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ============================================
   ステージ構成
============================================ */
.stages {
  background: var(--bg-muted);
}

.stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .stage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stage-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.stage-card:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-md);
}

.stage-card-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.85rem;
}

.stage-card-label.easy {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.stage-card-label.medium {
  background: rgba(234, 179, 8, 0.14);
  color: #a16207;
}

.stage-card-label.hard {
  background: rgba(255, 140, 66, 0.14);
  color: var(--accent-strong);
}

.stage-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.stage-card-meta {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.stage-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.stage-modes {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .stage-modes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mode-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: inset 0 0 0 1px var(--border);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.mode-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mode-card-icon svg {
  width: 20px;
  height: 20px;
}

.mode-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.mode-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================
   中間 CTA
============================================ */
.mid-cta {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.mid-cta-card {
  background: linear-gradient(135deg, #0a0d18 0%, #1a1f33 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mid-cta-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 140, 66, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.mid-cta-card > * {
  position: relative;
}

.mid-cta-card h2 {
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mid-cta-card p {
  color: var(--hero-text-muted);
  margin-bottom: 1.75rem;
}

/* ============================================
   料金（シンプル）
============================================ */
.pricing-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: inset 0 0 0 1px var(--border);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.pricing-price {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pricing-sub {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.pricing-list {
  text-align: left;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.pricing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.pricing-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ============================================
   FAQ
============================================ */
.faq {
  background: var(--bg-muted);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease);
}

.faq-item[open] {
  box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-sm);
}

.faq-item summary {
  padding: 1.4rem 1.6rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-body {
  padding: 0 1.6rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ============================================
   最終 CTA
============================================ */
.final-cta {
  text-align: center;
  background: var(--bg);
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.final-cta h2 {
  max-width: 720px;
  margin: 0 auto 1rem;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
}

.final-cta p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ============================================
   フッター
============================================ */
.footer {
  background: #0a0d18;
  color: var(--hero-text-muted);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--hero-text);
  font-weight: 600;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--hero-text-muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--hero-text);
}

.footer-meta {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hero-border);
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* ============================================
   アニメーション
============================================ */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag,
.hero h1,
.hero-sub,
.hero-cta-row,
.hero-meta {
  animation: fadeInUp 0.85s var(--ease) both;
}

.hero-tag { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.18s; }
.hero-sub { animation-delay: 0.32s; }
.hero-cta-row { animation-delay: 0.46s; }
.hero-meta { animation-delay: 0.6s; }

.hero-phones .phone-frame {
  animation: fadeInUp 1s var(--ease) both;
}

.hero-phones .phone-tilt-left { animation-delay: 0.85s; }
.hero-phones .phone-tilt-right { animation-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   小モバイル
============================================ */
@media (max-width: 540px) {
  .nav-cta {
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-phones {
    gap: 0.5rem;
  }

  .phone-frame {
    width: clamp(150px, 42vw, 200px);
  }
}
