﻿:root {
  --color-primary: #4ebfa5;
  --color-primary-dark: #3aa189;
  --color-secondary: #2f3b3b;
  --color-background: #f4f6f8;
  --color-text: #1f2933;
  --color-muted: #4b5563;
  --color-card: #ffffff;
  --shadow-soft: 0 20px 38px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 40px rgba(78, 191, 165, 0.3);
  --shadow-dramatic: 0 30px 60px rgba(15, 23, 42, 0.15);

  /* Spacing System - 8px base unit */
  --space-2xs: 8px;    /* 8px - Micro spacing */
  --space-xs: 12px;    /* 12px - Tight spacing */
  --space-sm: 16px;    /* 16px - Small spacing */
  --space-md: 24px;    /* 24px - Medium spacing */
  --space-lg: 32px;    /* 32px - Large spacing */
  --space-xl: 48px;    /* 48px - Extra large spacing */
  --space-2xl: 64px;   /* 64px - 2X large spacing */
  --space-3xl: 80px;   /* 80px - 3X large spacing */
  --space-4xl: 96px;   /* 96px - 4X large spacing */
  --space-5xl: 128px;  /* 128px - 5X large spacing */

  /* Container Padding - Responsive */
  --container-padding-mobile: 20px;
  --container-padding-tablet: 32px;
  --container-padding-desktop: 48px;

  /* Section Spacing */
  --section-padding-mobile: var(--space-3xl);
  --section-padding-tablet: var(--space-4xl);
  --section-padding-desktop: var(--space-5xl);

  /* Typography Spacing */
  --heading-margin-top: var(--space-xl);
  --heading-margin-bottom: var(--space-sm);
  --paragraph-margin-bottom: var(--space-md);

  /* Card & Component Spacing */
  --card-padding-mobile: var(--space-md);
  --card-padding-tablet: var(--space-lg);
  --card-padding-desktop: var(--space-xl);
  --card-gap: var(--space-md);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(47, 59, 59, 0.88);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand span {
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* モバイルでブランドテキストを非表示 */
@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .brand img {
    height: 40px;
  }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links ul a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav-cta {
  display: flex;
  gap: var(--space-xs);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

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

/* タブレット・モバイルでメニューを非表示、CTAのみ表示 */
@media (max-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-links ul {
    display: none;
  }

  .nav-cta {
    display: flex;
    flex-direction: row;
    gap: var(--space-xs);
  }

  .nav-cta .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .header-inner {
    padding: var(--space-lg) 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) 22px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3aa189 100%);
  color: #fff;
  box-shadow: 0 18px 35px rgba(78, 191, 165, 0.25), 0 4px 12px rgba(78, 191, 165, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 48px rgba(78, 191, 165, 0.35), 0 8px 20px rgba(78, 191, 165, 0.2);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 80px 0 var(--space-5xl);
  color: #0f172a;
  background: linear-gradient(155deg, #edf8f4 0%, #f3f4ff 50%, #fff5f8 100%);
  overflow: hidden;
}

.hero-overlay,
.hero-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(78, 191, 165, 0.35), transparent 60%),
    radial-gradient(circle at 75% 15%, rgba(99, 102, 241, 0.28), transparent 65%),
    radial-gradient(circle at 90% 80%, rgba(251, 146, 60, 0.15), transparent 50%);
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero-texture {
  background-image: url("https://pub-0c74912b575d4e0cb305476c83f5e8ce.r2.dev/website-assets/images_bg-poly.svg");
  opacity: 0.15;
  mix-blend-mode: soft-light;
}

.hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  display: grid;
  gap: 32px; /* 32px gap between major hero elements for single-column layout */
  width: 100%;
  max-width: 100%;
}

.hero-copy > p {
  margin: 0; /* No margin - hero-copy gap handles spacing */
  line-height: 1.8;
  font-size: 16px; /* h1より小さく、控えめに */
  opacity: 0.8; /* 少し薄く */
}

.hero-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  opacity: 0.75; /* タグを控えめに */
  justify-content: center;
}

/* モバイルでタグを非表示 */
@media (max-width: 640px) {
  .hero-tags {
    display: none;
  }
}

.hero-tag {
  padding: 10px var(--space-sm);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: linear-gradient(120deg, rgba(78, 191, 165, 0.7), rgba(156, 236, 214, 0.7)); /* 少し控えめに */
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(78, 191, 165, 0.2); /* シャドウを軽く */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(78, 191, 165, 0.35);
  opacity: 1; /* ホバー時は完全に表示 */
}

.hero-tag--outline {
  background: rgba(255, 255, 255, 0.85); /* 少し控えめに */
  border: 2px solid rgba(78, 191, 165, 0.25);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.hero h1 {
  margin: 0 0 24px 0;
  font-size: clamp(48px, 8vw, 96px); /* 超大型化 */
  line-height: 1.3; /* 改行を考慮して行間を広げる */
  font-weight: 900; /* 極太 */
  letter-spacing: -0.02em;
  color: #0f172a; /* 基本色を指定（グラデーションは削除） */
  position: relative;
}

/* グローアニメーション（h1全体に適用するのではなく、必要に応じて個別要素に） */
@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(78, 191, 165, 0.3))
            drop-shadow(0 0 40px rgba(78, 191, 165, 0.2))
            drop-shadow(0 0 60px rgba(78, 191, 165, 0.1));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(78, 191, 165, 0.5))
            drop-shadow(0 0 60px rgba(78, 191, 165, 0.3))
            drop-shadow(0 0 90px rgba(78, 191, 165, 0.2));
  }
}

/* 数字「24週間」を特に強調 - 親の.wordアニメーションと協調 */
.hero-number {
  font-size: 1.5em; /* さらに大きく */
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary) 0%, #3aa189 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  /* 親の.wordがフェードインするので、ここでは追加のスケール効果のみ */
  animation: scaleIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  animation-delay: inherit; /* 親のdelayを継承 */
}

/* 24週間のスケールインアニメーション（親のフェードインと協調） */
@keyframes scaleIn {
  0% {
    transform: scale(0.8);
  }
  100% {
    transform: scale(1);
  }
}

/* 単語ごとに順番にフェードイン */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInWord 0.8s ease-out forwards;
  /* animation-delay は HTML の style 属性で直接指定 */
}

@keyframes fadeInWord {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0; /* No margin - hero-copy gap handles spacing */
  justify-content: center;
}

/* モバイルでボタンを縦に並べる */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
  }
}

/* Hero内のセカンダリボタンは明るい背景用に調整 */
.hero .btn-secondary {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.hero .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.25);
}

.hero-note {
  margin: 0; /* No margin - hero-copy gap handles spacing */
  font-size: 13px;
  color: rgba(15, 23, 42, 0.6);
  line-height: 1.6;
}

/* ====================================================================
   HERO PANEL - シンプルで確実なデザイン（完全リビルド版）
   ==================================================================== */

.hero-panel {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 100%;
  margin-top: var(--space-xl);
}

.hero-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
}

/* ヘッダーエリア - コンパクトでシンプル */
.hero-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(130deg, rgba(78, 191, 165, 0.1), rgba(99, 102, 241, 0.08));
  border-radius: 12px;
  margin-bottom: 20px;
}

.hero-panel__badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(78, 191, 165, 0.15);
  color: var(--color-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  white-space: nowrap;
}

.hero-panel__header h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-panel__header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.7);
}

/* リストエリア - シンプル */
.hero-panel__list {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}

.hero-panel__list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-panel__list li:last-child {
  border-bottom: none;
}

.panel-role {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.panel-meta {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
  line-height: 1.5;
}

/* メトリクスエリア */
.hero-panel__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.hero-metric {
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.05), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(78, 191, 165, 0.15);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.hero-metric:hover {
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.1), rgba(99, 102, 241, 0.08));
  border-color: rgba(78, 191, 165, 0.25);
  transform: translateY(-2px);
}

.hero-metric strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.hero-metric span {
  display: block;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.65);
  line-height: 1.3;
}

/* ====================================================================
   CONCERNS SECTION - こんなことに悩んでいませんか？
   ==================================================================== */

.concerns {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.concerns::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05), transparent 50%);
  pointer-events: none;
}

.concerns-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.concerns-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.concerns-image {
  max-width: 100%;
  height: auto;
  width: 280px;
  filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.15));
}

.concerns-text h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 var(--space-lg) 0;
}

.concerns-highlight {
  color: #3b82f6;
  position: relative;
  display: inline-block;
}

.concerns-list {
  list-style: none;
  margin: 0 0 var(--space-lg) 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.concerns-list li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.8);
  padding-left: 28px;
  position: relative;
}

.concerns-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: 700;
  font-size: 18px;
}

.concerns-message {
  font-size: 18px;
  line-height: 1.7;
  color: #0f172a;
  font-weight: 600;
  margin: 0;
  padding: var(--space-md);
  background: rgba(59, 130, 246, 0.05);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .concerns-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }

  .concerns-list li {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .concerns {
    padding: var(--space-4xl) 0;
  }

  .concerns-image {
    width: 220px;
  }

  .concerns-text h2 {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: var(--space-md);
  }

  .concerns-list {
    margin-bottom: var(--space-md);
    gap: 10px;
  }

  .concerns-list li {
    font-size: 15px;
  }

  .concerns-message {
    font-size: 16px;
    padding: var(--space-sm);
  }
}

/* ====================================================================
   PROBLEM STATEMENT SECTION - モダンでプロフェッショナルな問題定義
   ==================================================================== */

.problem-statement {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
  border-top: 4px solid var(--color-primary);
  border-bottom: 4px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.problem-statement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.08), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(239, 68, 68, 0.05), transparent 50%);
  pointer-events: none;
}

.problem-header {
  text-align: center;
  margin: var(--space-3xl) auto var(--space-4xl);
  position: relative;
  z-index: 1;
}

.problem-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.problem-header h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
  margin: 0;
}

.highlight {
  color: #dc2626;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  opacity: 0.3;
}

/* 比較コンテナ - モダンで洗練された2カラム */
.problem-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

/* 比較カラム - エレガントなカードデザイン */
.comparison-column {
  background: #fff;
  border-radius: 32px;
  padding: var(--space-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 左カラム（従来パターン） - レッドテーマ */
.comparison-column:first-child {
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
}

.comparison-column:first-child::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 3px;
  background: linear-gradient(135deg, #fca5a5, #ef4444);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 右カラム（Frog School） - グリーンテーマ */
.comparison-column:last-child {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
}

.comparison-column:last-child::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  padding: 3px;
  background: linear-gradient(135deg, #6ee7b7, var(--color-primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.comparison-column:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

/* 比較ヘッダー - ミニマルで洗練されたタイトル */
.comparison-header {
  text-align: center;
  padding: 0;
  margin-bottom: var(--space-lg);
  position: relative;
}

.comparison-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
  padding-bottom: 12px;
  position: relative;
  display: inline-block;
}

.comparison-header--bad h3 {
  border-bottom: 3px solid #ef4444;
}

.comparison-header--good h3 {
  border-bottom: 3px solid var(--color-primary);
}

/* フローコンテナ */
.comparison-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* フェーズボックス - 洗練されたステップデザイン */
.flow-phase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-md);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.flow-phase:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.flow-phase--japan {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.08), rgba(148, 163, 184, 0.04));
  border-color: rgba(100, 116, 139, 0.15);
}

.flow-phase--arrival {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(147, 197, 253, 0.06));
  border-color: rgba(59, 130, 246, 0.2);
}

/* 重要フェーズ - より強調 */
.flow-phase--waste {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(252, 165, 165, 0.1));
  border: 3px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.2), inset 0 -2px 0 rgba(239, 68, 68, 0.1);
  padding: var(--space-lg);
}

.flow-phase--prep {
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.2), rgba(167, 243, 208, 0.12));
  border: 3px solid rgba(78, 191, 165, 0.35);
  box-shadow: 0 12px 32px rgba(78, 191, 165, 0.25), inset 0 -2px 0 rgba(78, 191, 165, 0.15);
  padding: var(--space-lg);
}

.flow-phase--ready {
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.12), rgba(167, 243, 208, 0.06));
  border-color: rgba(78, 191, 165, 0.2);
}

.flow-phase--success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(134, 239, 172, 0.1));
  border: 3px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.25), inset 0 -2px 0 rgba(34, 197, 94, 0.1);
  padding: var(--space-lg);
}

/* フェーズ内の要素 - タイポグラフィ強化 */
.phase-location {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.phase-duration {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.2));
}

.flow-phase--prep .phase-duration {
  background: linear-gradient(135deg, var(--color-primary), #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(78, 191, 165, 0.2));
}

.phase-action {
  font-size: 15px;
  color: rgba(15, 23, 42, 0.85);
  font-weight: 600;
  display: block;
  line-height: 1.5;
}

.phase-problem {
  font-size: 14px;
  color: rgba(15, 23, 42, 0.75);
  display: block;
  line-height: 1.6;
  text-align: center;
  margin: 8px 0;
  font-weight: 500;
}

.phase-benefit {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary), #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.2;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

/* ラベル - より目を引くデザイン */
.waste-label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.waste-label::before {
  content: '⚠️';
  margin-right: 6px;
  font-size: 14px;
}

.success-label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.success-label::before {
  content: '✨';
  margin-right: 6px;
  font-size: 14px;
}

/* フロー区切り - よりエレガントに */
.flow-separator {
  text-align: center;
  font-size: 28px;
  color: rgba(15, 23, 42, 0.25);
  font-weight: 700;
  padding: 4px 0;
  position: relative;
}

.flow-separator::before,
.flow-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.1), transparent);
}

.flow-separator::before {
  left: 0;
}

.flow-separator::after {
  right: 0;
}

/* 問題の結論エリア */
.problem-conclusion {
  display: grid;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.problem-main {
  font-size: 20px;
  line-height: 1.7;
  margin: 0;
  color: #0f172a;
}

.problem-main strong {
  color: #dc2626;
  font-weight: 700;
  font-size: 22px;
}

.problem-insight {
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
  color: rgba(15, 23, 42, 0.8);
  padding: var(--space-md);
  background: rgba(78, 191, 165, 0.05);
  border-left: 4px solid var(--color-primary);
  border-radius: 8px;
}

.problem-cta {
  display: grid;
  gap: 16px;
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.08), rgba(99, 102, 241, 0.05));
  border-radius: 20px;
  text-align: center;
}

.problem-cta-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

.problem-cta .btn {
  margin: 0 auto;
  padding: 14px 32px;
  font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .problem-comparison {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .problem-header h2 {
    font-size: clamp(28px, 5vw, 48px);
  }

  .phase-location {
    font-size: 28px;
  }

  .phase-duration {
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  .problem-statement {
    padding: var(--space-4xl) 0;
  }

  .problem-header {
    margin: var(--space-2xl) auto var(--space-3xl);
  }

  .problem-header h2 {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.4;
  }

  .problem-comparison {
    gap: var(--space-xl);
  }

  .comparison-column {
    padding: var(--space-lg);
    border-radius: 24px;
  }

  .comparison-column:first-child::before,
  .comparison-column:last-child::before {
    border-radius: 24px;
  }

  .comparison-header {
    margin-bottom: var(--space-md);
  }

  .comparison-header h3 {
    font-size: 18px;
    padding-bottom: 10px;
  }

  .comparison-header--bad h3 {
    border-bottom: 2px solid #ef4444;
  }

  .comparison-header--good h3 {
    border-bottom: 2px solid var(--color-primary);
  }

  .comparison-flow {
    gap: 14px;
  }

  .flow-phase {
    padding: var(--space-sm);
    border-radius: 16px;
    gap: 8px;
  }

  .flow-phase--waste,
  .flow-phase--prep,
  .flow-phase--success {
    padding: var(--space-md);
  }

  .phase-location {
    font-size: 24px;
  }

  .phase-duration {
    font-size: 36px;
    margin-bottom: 6px;
  }

  .phase-action {
    font-size: 14px;
  }

  .phase-problem {
    font-size: 13px;
    margin: 6px 0;
  }

  .phase-benefit {
    font-size: 36px;
    margin-bottom: 6px;
  }

  .waste-label,
  .success-label {
    font-size: 12px;
    padding: 8px 12px;
    margin-top: 6px;
  }

  .waste-label::before,
  .success-label::before {
    font-size: 13px;
  }

  .flow-separator {
    font-size: 24px;
    padding: 2px 0;
  }

  .problem-main {
    font-size: 18px;
  }

  .problem-main strong {
    font-size: 19px;
  }

  .problem-insight {
    font-size: 16px;
    padding: var(--space-sm);
  }

  .problem-cta {
    padding: var(--space-md);
  }
}

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

/* ====================================================================
   TYPOGRAPHY SPACING - Professional UI Design System
   Following the proximity principle: related content stays close,
   unrelated content has clear separation
   ==================================================================== */

/* h1: Primary headings - typically first element or hero heading */
h1 {
  margin: 0 0 20px 0; /* No top margin (usually first element) / 20px bottom */
  line-height: 1.2;
  font-weight: 800;
}

/* h2: Section headings - create clear separation from previous content */
h2 {
  margin: 64px 0 20px 0; /* 64px top (separation) / 20px bottom (comfortable spacing) */
  line-height: 1.4;
  font-weight: 700;
}

/* h3: Subsection headings - moderate separation, closer to content below */
h3 {
  font-weight: 700;
  font-size: 20px;
  color: #0f172a;
  margin: 40px 0 16px 0; /* 40px top / 16px bottom (comfortable grouping) */
  line-height: 1.4;
}

/* h4: Minor headings - subtle separation, tight grouping with content */
h4 {
  font-weight: 700;
  font-size: 18px;
  color: #1e293b;
  margin: 24px 0 8px 0; /* 24px top / 8px bottom (very tight grouping) */
  line-height: 1.3;
}

/* Paragraphs - comfortable reading spacing */
p {
  margin: 0 0 20px 0; /* 20px bottom spacing for comfortable reading */
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0; /* Remove bottom margin from last paragraph */
}

/* Lists - comfortable item spacing for readability */
ul, ol {
  margin: 0 0 20px 0; /* 20px bottom spacing */
  padding-left: 24px;
}

ul:last-child, ol:last-child {
  margin-bottom: 0; /* Remove bottom margin from last list */
}

li {
  margin-bottom: 8px; /* Comfortable spacing between list items */
  line-height: 1.7;
}

li:last-child {
  margin-bottom: 0; /* No margin on last item */
}

.surface {
  background: linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
}

.section-header {
  max-width: 780px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
  display: grid;
  gap: 20px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
}

.section-tag {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(78, 191, 165, 0.08);
  color: var(--color-primary);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(78, 191, 165, 0.15);
}

.section-header p {
  margin: 0;
  font-size: 16px;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* モバイルで1カラムに */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: var(--space-lg);
  display: grid;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.1), rgba(78, 191, 165, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.feature-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.feature-card > p {
  margin: 0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(78, 191, 165, 0.2);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.15), rgba(78, 191, 165, 0.08));
  transform: scale(1.05);
}

.feature-card ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.feature-card li {
  margin-bottom: 6px;
}

.feature-card li:last-child {
  margin-bottom: 0;
}

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 38%);
  gap: var(--space-xl);
  align-items: start;
}

/* タブレット・モバイルで1カラムに */
@media (max-width: 900px) {
  .program-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.program-copy {
  display: grid;
  gap: 28px; /* 28px gap between h3+p groups */
}

.program-copy h3 {
  margin: 0 0 1px 0; /* 1px bottom for tight grouping with paragraph */
  font-size: 22px;
  line-height: 1.1;
}

.program-copy h3:first-child {
  margin-top: 0; /* First h3 has no top margin */
}

.program-copy p {
  margin: 0; /* No margin - gap handles spacing */
  line-height: 1.7;
}

.program-checklist {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.program-checklist h4 {
  margin: 0 0 16px 0; /* 16px bottom for list grouping */
  font-size: 18px;
  line-height: 1.3;
}

.program-checklist ul {
  margin: 0; /* No margin - checklist padding handles spacing */
}

.program-checklist li {
  margin-bottom: 10px; /* Comfortable list item spacing */
  line-height: 1.6;
}

.program-checklist li:last-child {
  margin-bottom: 0;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 60px;
  bottom: 60px;
  width: 4px;
  background: linear-gradient(180deg,
    rgba(78, 191, 165, 0.3) 0%,
    rgba(78, 191, 165, 0.6) 50%,
    rgba(78, 191, 165, 0.3) 100%);
  border-radius: 2px;
}

.timeline-step {
  background: #ffffff;
  border-radius: 28px;
  border: 2px solid rgba(15, 23, 42, 0.06);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) 100px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), #3aa189);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(78, 191, 165, 0.4), 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 6px rgba(78, 191, 165, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step:hover::before {
  transform: translateY(-50%) scale(1.2);
  box-shadow: 0 6px 20px rgba(78, 191, 165, 0.6), 0 0 0 4px rgba(255, 255, 255, 1), 0 0 0 8px rgba(78, 191, 165, 0.3);
}

.timeline-step:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-dramatic), 0 0 0 2px rgba(78, 191, 165, 0.15);
  border-color: rgba(78, 191, 165, 0.2);
}

.timeline-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
}

.timeline-step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.timeline-step p {
  margin: 0;
}

/* 詳細カリキュラムトグルボタン */
.timeline-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(78, 191, 165, 0.08);
  border: 1px solid rgba(78, 191, 165, 0.2);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.timeline-details-toggle:hover {
  background: rgba(78, 191, 165, 0.15);
  border-color: rgba(78, 191, 165, 0.3);
  transform: translateY(-2px);
}

.timeline-details-toggle svg {
  transition: transform 0.3s ease;
}

.timeline-step.is-open .timeline-details-toggle svg {
  transform: rotate(180deg);
}

.timeline-step.is-open .timeline-details-toggle span {
  display: none;
}

.timeline-step.is-open .timeline-details-toggle::before {
  content: '詳細を閉じる';
}

/* 詳細カリキュラムコンテンツ */
.timeline-details {
  display: grid;
  gap: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step.is-open .timeline-details {
  max-height: 1000px;
  opacity: 1;
  margin-top: 16px;
}

.timeline-details h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

.timeline-details ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.timeline-details li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.75);
}

/* Team Section - プロフェッショナルチーム */
.team-grid {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* モバイルで1カラムに */
@media (max-width: 780px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .team-card {
    padding: var(--space-lg);
  }
}

.team-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  gap: var(--space-lg);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(78, 191, 165, 0.2);
}

/* Team Header - アイコン + 名前・役割 */
.team-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Team Visual - 写真/ロゴ（アイコンサイズ） */
.team-visual {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.1), rgba(78, 191, 165, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(78, 191, 165, 0.15);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-logo {
  width: 56px;
  height: auto;
  padding: 12px;
}

/* Team Info */
.team-info {
  display: grid;
  gap: 6px;
  flex: 1;
}

.team-info h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.team-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Team Content */
.team-content {
  display: grid;
  gap: var(--space-lg);
}

/* Team Stats - 統計情報 */
.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* モバイルで縦1カラムに */
@media (max-width: 720px) {
  .team-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: var(--space-md) 0;
  }

  .stat-item {
    padding: var(--space-sm);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(78, 191, 165, 0.03);
    border-radius: 8px;
  }

  .stat-item:last-child {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.2;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.6);
  line-height: 1.3;
  display: block;
}

/* Team Description */
.team-description {
  display: grid;
  gap: 12px;
}

.team-description h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.team-description p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}

.team-description strong {
  color: var(--color-primary);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* モバイルで1カラムに */
@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pricing-card {
    padding: var(--space-lg);
  }

  .pricing-card h3 {
    font-size: 22px;
  }

  .price {
    font-size: 32px;
  }
}

.pricing-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfeff 100%);
  border-radius: 32px;
  border: 2px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
  padding: var(--space-xl);
  display: grid;
  gap: 16px; /* 16px gap for comfortable card content spacing */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pricing-card--compact {
  grid-template-rows: auto auto auto 1fr auto;
}

.pricing-card--compact .pricing-link {
  margin-top: auto;
}

.pricing-card h3 {
  margin: 0; /* No margin - card padding and gap handle spacing */
  font-size: 24px;
  line-height: 1.3;
}

.pricing-card > p {
  margin: 0; /* No margin - gap handles spacing */
}

.pricing-card ul {
  margin: 0; /* No margin - gap handles spacing */
}

.pricing-card li {
  margin-bottom: 8px; /* Comfortable list item spacing */
}

.pricing-card li:last-child {
  margin-bottom: 0;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(78, 191, 165, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
  pointer-events: none;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-dramatic), 0 0 0 3px rgba(78, 191, 165, 0.2);
  border-color: rgba(78, 191, 165, 0.3);
}

.steps-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* モバイルで1カラムに */
@media (max-width: 720px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

.step-card {
  background: #ffffff;
  border-radius: 28px;
  border: 2px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg);
  display: grid;
  gap: 14px; /* 14px gap for comfortable card spacing */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.step-card h3 {
  margin: 0; /* No margin - card gap handles spacing */
  font-size: 20px;
  line-height: 1.3;
}

.step-card p {
  margin: 0; /* No margin - gap handles spacing */
}

.step-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-primary), #3aa189);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(78, 191, 165, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover .step-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 12px 30px rgba(78, 191, 165, 0.5);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-dramatic), 0 0 0 2px rgba(78, 191, 165, 0.15);
  border-color: rgba(78, 191, 165, 0.2);
}

.cta {
  padding: calc(var(--space-5xl) + var(--space-sm)) 0;
  background: linear-gradient(140deg, #e6f7f2 0%, #e8ecff 50%, #ffe8f0 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(78, 191, 165, 0.15), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.1), transparent 50%);
  animation: ctaPulse 15s ease infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, -5%) scale(1.1); }
}

.cta-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 36px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
  padding: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-inner h2 {
  margin: 0 0 16px 0; /* CTA h2: no top margin, 16px bottom for tight grouping */
}

.cta-inner p {
  margin: 0; /* No margin - CTA inner handles spacing */
}

.cta-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.2), 0 0 0 2px rgba(78, 191, 165, 0.2);
}

.btn-large {
  padding: var(--space-sm) var(--space-lg);
  font-size: 17px;
  font-weight: 700;
}

.price {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0; /* No margin - pricing-card gap handles spacing */
  background: linear-gradient(135deg, var(--color-primary), #3aa189);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.pricing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px var(--space-md);
  background: linear-gradient(135deg, var(--color-primary), #3aa189);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 0; /* No margin - pricing-card gap handles spacing */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(78, 191, 165, 0.25);
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.pricing-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(78, 191, 165, 0.35);
}

/* ====================================================================
   REQUIREMENTS SECTION - 参加条件
   ==================================================================== */

.requirements-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: var(--space-2xl);
}

.requirement-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: var(--space-lg);
  display: grid;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.requirement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(78, 191, 165, 0.2);
}

.requirement-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.1), rgba(78, 191, 165, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.requirement-card:hover .requirement-icon {
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.15), rgba(78, 191, 165, 0.08));
  transform: scale(1.05);
}

.requirement-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.requirement-level {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.requirement-level p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.75);
}

.level-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.level-required {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.level-recommended {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.level-flexible {
  background: rgba(78, 191, 165, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(78, 191, 165, 0.2);
}

.requirements-note {
  background: linear-gradient(135deg, rgba(78, 191, 165, 0.08), rgba(99, 102, 241, 0.05));
  border-radius: 20px;
  padding: var(--space-xl);
  border: 1px solid rgba(78, 191, 165, 0.15);
  text-align: center;
}

.requirements-note-content {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.requirements-note h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.requirements-note p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}

.requirements-note .btn {
  margin: 0 auto;
  padding: 14px 32px;
  font-size: 16px;
}

@media (max-width: 1024px) {
  .requirements-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 720px) {
  .requirements-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .requirement-card {
    padding: var(--space-lg);
    gap: 16px;
  }

  .requirement-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .requirement-icon svg {
    width: 24px;
    height: 24px;
  }

  .requirement-card h3 {
    font-size: 17px;
  }

  .requirement-level {
    padding: 10px;
    gap: 6px;
  }

  .requirement-level p {
    font-size: 13px;
  }

  .level-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .requirements-note {
    padding: var(--space-lg);
  }

  .requirements-note h4 {
    font-size: 18px;
  }

  .requirements-note p {
    font-size: 15px;
  }
}

.site-footer {
  padding: var(--space-2xl) 0;
  background: #101b1b;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* モバイルで1カラムに */
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.footer-grid h4 {
  margin: 0 0 12px 0; /* Footer h4: 12px bottom for list grouping */
  font-size: 16px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
}

.footer-grid ul {
  margin: 0; /* No margin - footer handles spacing */
  padding: 0;
  list-style: none;
}

.footer-grid li {
  margin-bottom: 8px; /* Comfortable footer link spacing */
}

.footer-grid li:last-child {
  margin-bottom: 0;
}

.footer-caption {
  margin: 8px 0 0; /* 8px top margin for tight grouping with logo */
  font-size: 14px;
  line-height: 1.6;
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  margin: var(--space-lg) 0 0;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  /* Single-column layout already applied, no need to change grid */

  /* タブレットでもh1を大きく */
  .hero h1 {
    font-size: clamp(44px, 7vw, 72px);
  }

  .hero-number {
    font-size: 1.4em;
  }

  .hero-panel__metrics {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .program-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .program-checklist {
    padding: var(--space-lg);
  }

  .program-copy h3 {
    font-size: 20px;
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-step {
    padding: var(--space-lg) var(--space-lg) var(--space-lg) 70px;
  }

  .timeline-step::before {
    left: 8px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 720px) {
  :root {
    --section-padding-mobile: var(--space-3xl);
    --card-padding-mobile: 24px;
  }

  /* 横スクロール防止 */
  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
    font-size: 15px;
    line-height: 1.7;
  }

  /* テキストのオーバーフロー対策 */
  h1, h2, h3, h4, h5, h6, p, li, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* コンテナのパディング調整 */
  .container {
    width: 100%;
    padding: 0 clamp(16px, 4vw, 24px);
  }

  /* ボタンのタッチターゲット拡大 */
  .btn {
    padding: 14px 24px;
    min-height: 48px;
    font-size: 15px;
  }

  /* Mobile: Comfortable heading spacing for better readability */
  h2 {
    margin: 48px 0 16px 0; /* 48px top / 16px bottom on mobile */
    line-height: 1.4;
  }

  h3 {
    margin: 32px 0 12px 0; /* 32px top / 12px bottom on mobile */
    line-height: 1.4;
  }

  h4 {
    margin: 20px 0 8px 0; /* 20px top / 8px bottom on mobile */
  }

  .section {
    padding: var(--section-padding-mobile) 0;
  }

  .section-header {
    margin: 0 auto var(--space-2xl);
    gap: 16px;
    text-align: center;
  }

  .section-header h2 {
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.35;
    text-align: center;
  }

  .section-header p {
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
  }

  .section-tag {
    font-size: 10px;
    padding: 6px 14px;
  }

  .hero {
    padding: 60px 0 var(--space-4xl);
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 60px); /* モバイルでも大きく */
    margin-bottom: 20px; /* Maintain proportional spacing on mobile */
  }

  /* モバイルでも「24週間」を目立たせる */
  .hero-number {
    font-size: 1.35em; /* モバイルで比率を上げる */
  }

  .hero-copy {
    gap: 20px; /* Slightly tighter on mobile */
  }

  /* Hero Panel - モバイル対応 */
  .hero-panel {
    padding: 20px;
  }

  .hero-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    margin-bottom: 16px;
  }

  .hero-panel__header h3 {
    font-size: 17px;
  }

  .hero-panel__header p {
    font-size: 12px;
  }

  .hero-panel__list {
    margin-bottom: 16px;
  }

  .hero-panel__list li {
    padding: 10px 0;
  }

  .hero-panel__metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-metric strong {
    font-size: 22px;
  }

  .timeline::before {
    display: none;
  }

  .timeline {
    gap: var(--space-md); /* Comfortable timeline spacing on mobile */
  }

  .timeline-step {
    padding: var(--space-lg) var(--space-md) var(--space-lg) 70px;
    gap: 12px;
    border-radius: 20px;
  }

  .timeline-step h3 {
    font-size: 18px;
    line-height: 1.4;
  }

  .timeline-step p {
    font-size: 15px;
    line-height: 1.7;
  }

  .timeline-label {
    font-size: 12px;
  }

  .timeline-step::before {
    left: 8px;
    width: 24px;
    height: 24px;
  }

  .timeline-details-toggle {
    font-size: 13px;
    padding: 8px 14px;
  }

  .timeline-details-toggle svg {
    width: 14px;
    height: 14px;
  }

  .timeline-details h4 {
    font-size: 15px;
  }

  .timeline-details li {
    font-size: 13px;
  }

  .cta {
    padding: var(--section-padding-mobile) 0;
  }

  .cta-inner {
    padding: var(--space-lg);
    text-align: center;
    gap: 20px; /* Comfortable gap on mobile */
    flex-direction: column;
  }

  .cta-inner > div {
    width: 100%;
  }

  .cta-inner .btn-large {
    width: 100%;
    white-space: normal !important;
    padding: 16px 24px !important;
    text-align: center;
  }

  .cta-inner h2 {
    margin-bottom: 12px; /* Maintain tight grouping on mobile */
  }

  .feature-card,
  .support-card,
  .step-card,
  .pricing-card {
    padding: var(--card-padding-mobile);
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

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

  .feature-card {
    gap: 16px;
    padding: var(--space-lg);
  }

  .feature-card h3 {
    font-size: 18px;
  }

  .feature-card p {
    font-size: 15px;
    line-height: 1.7;
  }

  .steps-grid,
  .pricing-grid,
  .feature-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md); /* Comfortable card gap on mobile */
  }

  .step-card {
    padding: var(--space-lg);
  }

  .team-visual {
    width: 120px;
    height: 120px;
  }

  .team-logo {
    width: 80px;
  }

  .team-content {
    gap: var(--space-md);
  }

  .team-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }

  .team-info {
    align-items: center;
  }

  .team-header h3 {
    font-size: 20px;
  }

  .team-stats {
    gap: 12px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-label {
    font-size: 12px;
  }

  .team-description h4 {
    font-size: 16px;
  }

  .team-description p {
    font-size: 15px;
    line-height: 1.8;
  }

  .program-copy {
    gap: 24px; /* Slightly tighter on mobile */
  }
}

/* 極小画面（iPhone SE等）の最適化 */
@media (max-width: 480px) {
  /* コンテナのパディングをさらに縮小 */
  .container {
    width: 100%;
    padding: 0 clamp(12px, 3vw, 16px);
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 52px);
  }

  .hero-copy {
    gap: 24px;
  }

  .hero {
    padding: 40px 0 var(--space-3xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin: 0 auto var(--space-xl);
  }

  .feature-card,
  .pricing-card,
  .team-card,
  .requirement-card {
    padding: var(--space-md);
  }

  .cta-inner {
    padding: var(--space-md);
  }

  .hero-tag {
    font-size: 11px;
    padding: 8px 14px;
  }

  .timeline-step {
    padding: var(--space-md) var(--space-sm) var(--space-md) 60px;
  }

  .timeline-step::before {
    left: 6px;
    width: 20px;
    height: 20px;
  }
}

/* ====================================================================
   MODAL - 無料相談フォームモーダル
   ==================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
  box-sizing: border-box;
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.3);
}

.modal-overlay.is-open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(15, 23, 42, 0.15);
  transform: rotate(90deg);
}

.modal-content {
  padding: var(--space-xl);
  box-sizing: border-box;
  width: 100%;
}

.modal-content h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.modal-description {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}

.consultation-form {
  display: grid;
  gap: 20px;
  margin-top: var(--space-lg);
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: grid;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #0f172a;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(78, 191, 165, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.6);
  margin: 0;
}

.consultation-form .btn {
  width: 100%;
  margin-top: 8px;
  padding: 16px 32px;
  font-size: 16px;
}

.form-status {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-status.loading {
  display: block;
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* モバイル対応 */
@media (max-width: 640px) {
  .modal-overlay {
    padding: var(--space-sm);
  }

  .modal-content {
    padding: 56px var(--space-md) var(--space-lg) var(--space-md);
  }

  .modal-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .modal-description {
    font-size: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

/* ====================================
   CURRICULUM SECTION
   ==================================== */

.curriculum-month {
  margin-bottom: var(--space-4xl);
}

.curriculum-month:last-child {
  margin-bottom: 0;
}

.month-header {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  border-radius: 24px;
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.month-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    currentColor 10px,
    currentColor 20px
  );
}

.month-header.month-1 {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.month-header.month-2 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.month-header.month-3 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.month-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.month-header h3 {
  margin: 0 0 12px 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  position: relative;
  color: white;
}

.month-goal {
  margin: 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  color: white;
}

.weeks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.week-card {
  background: #ffffff;
  border-radius: 20px;
  padding: var(--space-lg);
  border: 2px solid rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.week-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #2dd4bf 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.week-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(78, 191, 165, 0.15);
  transform: translateY(-4px);
}

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

.week-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2dd4bf 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.week-card h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.week-subtitle {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.6);
  font-weight: 500;
}

.week-content {
  display: grid;
  gap: 16px;
}

.content-item {
  padding-left: 20px;
  position: relative;
}

.content-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.content-label {
  display: inline-block;
  background: rgba(78, 191, 165, 0.1);
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.content-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.75);
}

/* ラベルの色バリエーション */
.content-item:nth-child(2) .content-label {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.content-item:nth-child(3) .content-label {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .weeks-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .month-header {
    padding: var(--space-xl) var(--space-md);
  }

  .week-card {
    padding: var(--space-md);
  }

  .curriculum-month {
    margin-bottom: var(--space-2xl);
  }
}

@media (max-width: 640px) {
  .week-card h4 {
    font-size: 18px;
  }

  .week-number {
    font-size: 12px;
    padding: 5px 14px;
  }

  .month-badge {
    font-size: 13px;
    padding: 6px 16px;
  }
}

/* ================================================
   Hero Typography Animation
   ================================================ */

.hero-typography {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typo-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  max-width: 600px;
  opacity: 0;
  object-fit: contain;
}

/* 最初の画像: 右から左に超速でスライド */
.typo-1 {
  animation: fadeInSlideLeft 0.8s cubic-bezier(0.05, 0.9, 0.1, 1) forwards;
}

/* 2番目の画像: 0.4秒後に表示して残す */
.typo-2 {
  animation: fadeInStay2 0.5s ease-out forwards;
  animation-delay: 0.4s;
}

/* 3番目の画像: 1秒後にゆっくり表示して残す */
.typo-3 {
  animation: fadeInStay3 0.8s ease-out forwards;
  animation-delay: 1s;
}

/* 最初の画像のアニメーション（右から左に超速スライド→行き過ぎて戻る） */
@keyframes fadeInSlideLeft {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateX(300px);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(-60px);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(20px);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(-12px);
  }
  82% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(5px);
  }
  92% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(-2px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(0);
  }
}

/* 2番目の画像のアニメーション（表示して残す） */
@keyframes fadeInStay2 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

/* 3番目の画像のアニメーション（ドドーン！と拡大から縮小） */
@keyframes fadeInStay3 {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-typography {
    max-width: 500px;
    height: 400px;
  }

  .typo-image {
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .hero-typography {
    max-width: 100%;
    height: 320px;
  }

  .typo-image {
    max-width: 100%;
    padding: 0 var(--space-md);
  }
}
