:root {
  /* Color Palette - Based on Logo */
  --primary: #5B3A6F;
  --primary-dark: #432952;
  --secondary: #9E4B8F;
  --accent: #D4A5C9;
  --accent-light: #F0E4ED;
  --background: #FAFAFA;
  --surface: #FFFFFF;
  --text: #2D2D2D;
  --text-muted: #6B6B6B;
  --line-green: #06C755;

  /* Typography */
  --font-main: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1100px;

  /* Transitions */
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   Header
===================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(91, 58, 111, 0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--line-green);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
}

/* =====================
   Hero Section
===================== */
.hero {
  padding: 160px 0 100px;
  /* デフォルト: グラデーション背景 */
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--background) 100%);
  position: relative;
  overflow: hidden;
}

/* 
 * 背景画像を使用する場合:
 * 1. assets/images/hero-bg.jpg を配置
 * 2. 下記のコメントを解除
 */
/*
.hero {
  background: 
    linear-gradient(135deg, rgba(240, 228, 237, 0.85) 0%, rgba(250, 250, 250, 0.85) 100%),
    url('../assets/images/hero-bg.jpg') center/cover no-repeat;
}
*/

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.3;
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: var(--line-green);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(6, 199, 85, 0.25);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(6, 199, 85, 0.35);
}

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================
   Section Common
===================== */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =====================
   Problems Section
===================== */
.problems {
  background: var(--surface);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  padding: 32px;
  background: var(--accent-light);
  border-radius: 16px;
  border-left: 4px solid var(--secondary);
}

.problem-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =====================
   Solution Section
===================== */
.solution {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  text-align: center;
}

.solution h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
}

.solution p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.solution-highlights {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.solution-highlight {
  text-align: center;
}

.solution-highlight .number {
  font-size: 3rem;
  font-weight: 800;
}

.solution-highlight .label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* =====================
   Features Section
===================== */
.features {
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 36px 28px;
  background: var(--background);
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(91, 58, 111, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =====================
   Pricing Section
===================== */
.pricing {
  background: var(--background);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px 32px;
  position: relative;
  border: 2px solid transparent;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--accent);
}

.pricing-card.popular {
  border-color: var(--secondary);
  box-shadow: 0 16px 50px rgba(158, 75, 143, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: white;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.pricing-card .target {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-card .price {
  margin-bottom: 24px;
}

.pricing-card .price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
}

.pricing-card .price .unit {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-card .initial {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  background: var(--accent-light);
  color: var(--primary);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: var(--transition);
}

.pricing-card.popular .pricing-cta {
  background: var(--secondary);
  color: white;
}

.pricing-cta:hover {
  transform: translateY(-2px);
}

/* =====================
   Flow Section
===================== */
.flow {
  background: var(--surface);
}

.flow-steps {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  position: relative;
}

.flow-step::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 30px;
  font-size: 1.5rem;
  color: var(--accent);
}

.flow-step:last-child::after {
  display: none;
}

.flow-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.flow-step h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================
   FAQ Section
===================== */
.faq {
  background: var(--background);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 24px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =====================
   CTA Section
===================== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  text-align: center;
  color: white;
  padding: 80px 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* =====================
   Footer
===================== */
.footer {
  background: var(--primary-dark);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =====================
   Responsive
===================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
  }

  .flow-step::after {
    display: none;
  }

  .flow-step {
    max-width: 300px;
  }

  .solution-highlights {
    gap: 32px;
  }

  .header-cta span {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-cta {
    padding: 16px 36px;
    font-size: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}