:root {
  --bg: #FFFBF7;
  --bg-elev: #FFFFFF;
  --bg-soft: #FFF4EC;
  --text: #1C1917;
  --text-muted: #6B6560;
  --text-subtle: #8B857F;
  --accent: #F07B4F;
  --accent-strong: #E8653A;
  --accent-soft: #FFEEE3;
  --border: rgba(28, 25, 23, 0.08);
  --border-soft: rgba(28, 25, 23, 0.05);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 10px 40px -10px rgba(28, 25, 23, 0.15);
  --shadow-lg: 0 30px 80px -20px rgba(240, 123, 79, 0.25);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(255, 251, 247, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.navbar.scrolled {
  background: rgba(255, 251, 247, 0.92);
  border-bottom-color: var(--border-soft);
}
.nav-inner {
  max-width: min(1180px, 100% - 48px);
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn-primary { color: #fff; }
@media (max-width: 720px) {
  .nav-links a:not(.btn-primary) { display: none; }
}

/* ============ BUTTONS ============ */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 123, 79, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
  box-shadow: 0 12px 32px rgba(240, 123, 79, 0.4);
}
.btn-primary:active { transform: scale(0.97); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: scale(0.97); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 10px; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: 14px; }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--accent-soft);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 800;
}
.h1-line { display: block; }
.h1-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #FFA07A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  font-weight: 700;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-inline: auto;
}

/* ============ SECTION ============ */
.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.section-head .eyebrow { margin-bottom: 1rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(8rem, 14vw, 10rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw);
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 123, 79, 0.18) 0%, rgba(255, 160, 122, 0.08) 35%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-2 {
  top: 30%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 200, 160, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  transform: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.25rem; }
.cta-row {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cta-note {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Hero phones mockup (3-up) */
.hero-phones {
  position: relative;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  max-width: 980px;
  height: clamp(360px, 52vw, 580px);
  perspective: 1400px;
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
}
.phone {
  position: absolute;
  bottom: 0;
  border-radius: 42px;
  overflow: hidden;
  filter: drop-shadow(0 30px 60px rgba(28, 25, 23, 0.18));
}
.phone img { display: block; width: 100%; height: auto; }
.phone-center {
  left: 50%;
  transform: translateX(-50%);
  width: clamp(200px, 28vw, 320px);
  z-index: 3;
}
.phone-left {
  left: 50%;
  transform: translateX(-135%) rotateY(12deg) rotateZ(-3deg);
  transform-origin: bottom center;
  width: clamp(170px, 23vw, 280px);
  opacity: 0.9;
  z-index: 2;
}
.phone-right {
  left: 50%;
  transform: translateX(35%) rotateY(-12deg) rotateZ(3deg);
  transform-origin: bottom center;
  width: clamp(170px, 23vw, 280px);
  opacity: 0.9;
  z-index: 2;
}
@media (max-width: 640px) {
  .phone-left, .phone-right { display: none; }
  .phone-center { width: 62vw; }
  .hero-phones { height: 420px; }
}

/* ============ PROBLEM ============ */
.problem {
  background: var(--bg-soft);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
.problem-card {
  position: relative;
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 1.75rem 2rem 1.75rem 3.25rem;
  box-shadow: inset 0 0 0 1px var(--border-soft), var(--shadow-sm);
  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), var(--shadow-md);
}
.problem-card p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.65;
}
.problem-quote {
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  font-family: 'Inter', serif;
}
.problem-bridge {
  margin-top: 3rem;
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text);
  line-height: 1.75;
  font-weight: 500;
}

/* ============ FEATURES ============ */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 6rem);
  margin-bottom: clamp(4rem, 8vw, 6rem);
}
.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-item { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .feature-reverse .feature-text { order: 2; }
  .feature-reverse .feature-visual { order: 1; }
}
.feature-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.feature-text h3 {
  margin-bottom: 1rem;
}
.feature-text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 520px;
}
.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(240, 123, 79, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.phone-single {
  width: clamp(240px, 32vw, 320px);
  border-radius: 42px;
  overflow: hidden;
  filter: drop-shadow(0 30px 60px rgba(28, 25, 23, 0.18));
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease);
}
.feature-item:hover .phone-single { transform: translateY(-8px); }

/* Mini feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.mini-card {
  padding: 1.75rem;
  background: var(--bg-elev);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border-soft), var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md);
}
.mini-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.mini-card h4 { margin-bottom: 0.5rem; }
.mini-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============ MID CTA ============ */
.mid-cta .mid-cta-card {
  background: linear-gradient(135deg, #FFF0E5 0%, #FFE3D0 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--border-soft);
  position: relative;
  overflow: hidden;
}
.mid-cta .mid-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240, 123, 79, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.mid-cta h2 { margin-bottom: 1rem; position: relative; }
.mid-cta p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
  position: relative;
}
.mid-cta .btn-primary { position: relative; }

/* ============ STATS ============ */
.stats {
  background: var(--bg-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.stat-card {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--border-soft), var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md);
}
.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.stat-num span {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--text);
  margin-left: 0.2em;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ PRICING ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  position: relative;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: inset 0 0 0 1px var(--border-soft), var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-md);
}
.pricing-highlight {
  box-shadow: inset 0 0 0 2px var(--accent), 0 20px 60px -10px rgba(240, 123, 79, 0.3);
  transform: translateY(-8px);
}
.pricing-highlight:hover {
  transform: translateY(-12px);
  box-shadow: inset 0 0 0 2px var(--accent), 0 30px 80px -10px rgba(240, 123, 79, 0.4);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(240, 123, 79, 0.3);
}
.pricing-top { margin-bottom: 1.5rem; }
.pricing-top h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pricing-price {
  font-size: clamp(2.25rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.pricing-price span {
  font-size: 0.42em;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.15em;
}
.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.pricing-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23F07B4F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
  background-size: 10px;
}
.pricing-list li.pricing-muted {
  color: var(--text-subtle);
  font-size: 0.85rem;
}
.pricing-list li.pricing-muted::before {
  background: transparent;
  border: 1px dashed var(--border);
}
.pricing-list strong {
  color: var(--accent-strong);
  font-weight: 700;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: inset 0 0 0 1px var(--border-soft);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease);
}
.faq-item[open] {
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B857F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center no-repeat;
  background-size: contain;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-180deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ FINAL CTA ============ */
.final-cta {
  text-align: center;
  position: relative;
  background: var(--bg);
  padding: clamp(5rem, 10vw, 8rem) 0;
  overflow: hidden;
}
.final-glow {
  top: auto;
  bottom: -40%;
}
.final-inner { position: relative; z-index: 1; }
.final-cta h2 { margin-bottom: 1rem; }
.final-cta p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* ============ FOOTER ============ */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ============ ANIMATION ============ */
.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);
}

/* Hero load-time stagger (independent from scroll) */
.hero .animate-in:nth-of-type(1) { animation: fadeInUp 0.8s var(--ease) 0.1s both; opacity: 1; }
.hero .animate-in:nth-of-type(2) { animation: fadeInUp 0.9s var(--ease) 0.2s both; opacity: 1; }
.hero .animate-in:nth-of-type(3) { animation: fadeInUp 0.9s var(--ease) 0.35s both; opacity: 1; }
.hero .animate-in:nth-of-type(4) { animation: fadeInUp 0.9s var(--ease) 0.5s both; opacity: 1; }
.hero .animate-in:nth-of-type(5) { animation: fadeInUp 0.9s var(--ease) 0.65s both; opacity: 1; }
.hero-phones.animate-in { animation: fadeInUp 1s var(--ease) 0.75s both; opacity: 1; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in { opacity: 1; transform: none; }
}
