/* ===========================
   Design Tokens
   =========================== */
:root {
  --navy:         #1a2e4a;
  --navy-light:   #2a4268;
  --orange:       #e8622a;
  --orange-light: #f0895a;
  --cream:        #faf8f4;
  --warm-gray:    #f2ede6;
  --text:         #2c2c2c;
  --text-muted:   #6b6b6b;
  --white:        #ffffff;
  --border:       #e0d8ce;
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ===========================
   Utility
   =========================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-light);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(26, 46, 74, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.header-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.header-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--white);
}

.header-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
  margin-left: 16px;
}

/* ===========================
   Hero
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.06) 10px,
    rgba(255, 255, 255, 0.06) 11px
  );
  padding: 120px 0 80px;
}

.hero-inner {
  text-align: center;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orange-light);
  border: 1px solid rgba(232, 98, 42, 0.4);
  border-radius: 100px;
  padding: 6px 20px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--orange-light);
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Pain
   =========================== */
.pain {
  background: var(--warm-gray);
  padding: 96px 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.pain-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
}

.pain-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.pain-card p {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===========================
   Features
   =========================== */
.features {
  background: var(--white);
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 40px 28px 32px;
  text-align: left;
  position: relative;
}

.feature-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.3;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

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

/* ===========================
   Consulting
   =========================== */
.consulting {
  background: var(--warm-gray);
  padding: 96px 0;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.consulting-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px 28px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.consulting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.consulting-card:hover::before {
  transform: scaleX(1);
}

.consulting-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.consulting-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 16px;
}

.consulting-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.consulting-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.consulting-note {
  margin-top: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 24px 32px;
  font-size: 0.95rem;
}

.consulting-note strong {
  color: var(--orange-light);
}

/* ===========================
   Pricing
   =========================== */
.pricing {
  background: var(--navy);
  padding: 96px 0;
}

.pricing-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 48px;
}

.tab-btn {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy);
}

.pricing-panel {
  display: none;
}

.pricing-panel.active {
  display: block;
}

.pricing-info {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  text-align: left;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-info p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.pricing-info-note {
  margin-top: 8px;
  color: var(--orange-light);
  font-weight: 500;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px 36px;
  text-align: left;
  position: relative;
  color: var(--text);
}

.pricing-card.featured {
  border: 2px solid var(--orange);
  box-shadow: 0 8px 32px rgba(232, 98, 42, 0.2);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
}

.pricing-card-header {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-price {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  font-size: 0.9rem;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.pricing-migration {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 28px;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.pricing-migration strong {
  color: var(--orange-light);
}

/* ===========================
   Flow
   =========================== */
.flow {
  background: var(--cream);
  padding: 96px 0;
}

.flow-steps {
  max-width: 600px;
  margin: 48px auto 0;
  position: relative;
}

.flow-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.flow-step:last-child::before {
  display: none;
}

.flow-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step-body {
  text-align: left;
  padding-top: 4px;
}

.flow-step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.flow-step-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===========================
   FAQ
   =========================== */
.faq {
  background: var(--white);
  padding: 96px 0;
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
}

.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.open .faq-q::after {
  content: '−';
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===========================
   CTA
   =========================== */
.cta {
  background: var(--navy);
  padding: 96px 0;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.cta-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 20px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: #111c2b;
  padding: 32px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===========================
   Scroll Animation
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-sub br {
    display: none;
  }

  .pain, .features, .consulting, .pricing, .flow, .faq, .cta {
    padding: 64px 0;
  }

  .pricing-tabs {
    flex-direction: column;
    width: 100%;
  }

  .tab-btn {
    width: 100%;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .consulting-note {
    padding: 20px 24px;
  }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 48px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .hero-stats {
    gap: 24px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .pain-grid,
  .features-grid,
  .consulting-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 28px 20px 24px;
  }

  .pricing-info {
    padding: 20px;
  }

  .pricing-migration {
    padding: 16px 20px;
  }

  .flow-step {
    gap: 16px;
  }

  .btn-lg {
    width: 100%;
    padding: 16px 24px;
  }

  .cta-title {
    font-size: 1.3rem;
  }
}
