body {
      background-color: theme('colors.brand.black');
      color: #e2e8f0;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .text-balance { text-wrap: balance; }

    .text-gradient {
      background: linear-gradient(to bottom, #ffffff, #a0aec0);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .text-gradient-blue {
      background: linear-gradient(90deg, #fff, theme('colors.brand.blue'));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-title-glow {
      text-shadow: 0 0 30px rgba(0,217,255,1), 0 0 60px rgba(0,217,255,0.6), 0 0 100px rgba(0,217,255,0.3);
      color: #ffffff;
      animation: pulse-glow 3s infinite alternate;
    }

    @keyframes pulse-glow {
      0% { text-shadow: 0 0 20px rgba(0,217,255,0.8), 0 0 40px rgba(0,217,255,0.4); transform: scale(1); }
      100% { text-shadow: 0 0 40px rgba(0,217,255,1), 0 0 80px rgba(0,217,255,0.6), 0 0 120px rgba(0,217,255,0.2); transform: scale(1.02); }
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    .btn-glow {
      position: relative;
      overflow: hidden;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    }
    .btn-glow::after {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: linear-gradient(rgba(255,255,255,0.2), transparent);
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .btn-glow:hover {
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 0 40px rgba(0, 217, 255, 0.4);
    }
    .btn-glow:hover::after {
      opacity: 1;
    }

    .glass-card {
      background: theme('colors.brand.dark');
      border: 1px solid #222;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .glass-card:hover {
      border-color: theme('colors.brand.blue');
      transform: translateY(-8px);
      box-shadow: 0 20px 40px -5px rgba(0, 217, 255, 0.1);
      background: #151515;
    }

    .light-card {
      background: #fff;
      border: 1px solid #f0f0f0;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      position: relative;
      overflow: hidden;
    }
    .light-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; width: 100%; height: 100%;
      background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .light-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
      border-color: rgba(0, 217, 255, 0.3);
    }
    .light-card:hover::before {
      opacity: 1;
    }

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .faq-item.active .faq-answer {
      max-height: 600px;
      padding-bottom: 24px;
    }
    .faq-icon {
      transition: transform 0.3s ease;
    }
    .faq-item.active .faq-icon {
      transform: rotate(45deg);
    }

    .timeline-line::after {
      content: '';
      position: absolute;
      left: 31px;
      top: 64px;
      bottom: -48px;
      width: 2px;
      background: linear-gradient(to bottom, theme('colors.brand.blue'), rgba(255,255,255,0.1));
    }
    .curriculum-step:last-child .timeline-line::after {
      display: none;
    }

    #navbar.scrolled {
      background: rgba(5, 5, 5, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      padding-top: 16px;
      padding-bottom: 16px;
    }

    /* 固定CTAボタン */
    #floating-cta {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 9999;
      transform: translateY(100%);
      transition: transform 0.3s ease, background 0.5s ease;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    #floating-cta.visible {
      transform: translateY(0);
    }
    /* ZONE A: 水色（初期・体験セミナー訴求） */
    #floating-cta.zone-a {
      background: linear-gradient(90deg, #00D9FF, #00f2fe);
    }
    #floating-cta.zone-a #fcta-label,
    #floating-cta.zone-a #fcta-sub { color: #000; }
    #floating-cta.zone-a #fcta-btn {
      background: #000;
      color: #fff;
    }
    /* ZONE B: オレンジ（中盤・感情訴求） */
    #floating-cta.zone-b {
      background: linear-gradient(90deg, #FF6B35, #ff8c5a);
    }
    #floating-cta.zone-b #fcta-label,
    #floating-cta.zone-b #fcta-sub { color: #fff; }
    #floating-cta.zone-b #fcta-btn {
      background: #fff;
      color: #FF6B35;
    }
    /* ZONE C: 白地（終盤・決断訴求） */
    #floating-cta.zone-c {
      background: #fff;
      box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
    }
    #floating-cta.zone-c #fcta-label { color: #111; }
    #floating-cta.zone-c #fcta-sub { color: #666; }
    #floating-cta.zone-c #fcta-btn {
      background: #FF6B35;
      color: #fff;
      box-shadow: 0 0 20px rgba(255,107,53,0.4);
    }

    /* Googleフォーム埋め込みスタイル */
    .google-form-container {
      background: #0a1018;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 1.5rem;
      padding: 2rem;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }
    @media (min-width: 768px) {
      .google-form-container {
        padding: 3rem;
        border-radius: 2rem;
      }
    }
    .google-form-container iframe {
      border: none;
      width: 100%;
      min-height: 800px;
      border-radius: 1rem;
    }

    /* ===== レスポンシブ改善 ===== */
    /* モバイル：タップターゲットを大きく */
    @media (max-width: 640px) {
      .btn-glow, a[class*="rounded-full"] {
        min-height: 48px;
      }
      h1 { font-size: clamp(1.75rem, 8vw, 3rem); }
      h2 { font-size: clamp(1.5rem, 6vw, 2.5rem); }
    }
    /* fluid typography */
    .fluid-h1 { font-size: clamp(2rem, 6vw + 0.5rem, 4.5rem); }
    .fluid-h2 { font-size: clamp(1.6rem, 4vw + 0.5rem, 3.25rem); }
    .fluid-h3 { font-size: clamp(1.25rem, 3vw + 0.25rem, 1.75rem); }
    .fluid-body { font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem); }

    /* Exit Intent Popup */
    #exit-popup {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.9);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      animation: fadeIn 0.3s ease;
    }
    #exit-popup.show {
      display: flex;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .ai-loader {
      width: 48px;
      height: 48px;
      border: 5px solid #FFF;
      border-bottom-color: theme('colors.brand.blue');
      border-radius: 50%;
      display: inline-block;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;
    }
    @keyframes rotation {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* 期間限定バッジ */
    .seats-counter {
      background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
      animation: pulse-badge 2s ease-in-out infinite;
    }
    @keyframes pulse-badge {
      0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
      50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(255, 107, 53, 0.5); }
    }

    /* フォーム保存通知 */
    .form-save-notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background: #10b981;
      color: white;
      padding: 12px 24px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      z-index: 9999;
      opacity: 0;
      transform: translateY(-20px);
      transition: all 0.3s ease;
    }
    .form-save-notification.show {
      opacity: 1;
      transform: translateY(0);
    }

    /* ===== モバイル専用最適化 ===== */
    /* safe-area対応 (iPhone notch/Dynamic Island) */
    body {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
    #floating-cta {
      padding-bottom: max(env(safe-area-inset-bottom), 0px);
    }

    /* タップハイライト抑制 */
    a, button { -webkit-tap-highlight-color: transparent; }

    /* スマホ: ヒーローのh1文字サイズ流動調整 */
    @media (max-width: 480px) {
      .hero-title-glow {
        font-size: clamp(1.7rem, 8.5vw, 2.5rem);
        line-height: 1.2;
      }
    }

    /* スマホ: 講師写真を小さく */
    @media (max-width: 640px) {
      .instructor-avatar { width: 120px !important; height: 120px !important; }
    }

    /* スマホ: pricing カード横スクロール防止 */
    @media (max-width: 640px) {
      .pricing-grid { display: flex; flex-direction: column; gap: 1.5rem; }
    }

    /* Before/After モバイル縦並び改善 */
    @media (max-width: 768px) {
      #transformation .grid { grid-template-columns: 1fr; }
    }

    /* Google Form iframe height モバイル最適化 */
    @media (max-width: 640px) {
      .google-form-container iframe { min-height: 900px; }
      .google-form-container { padding: 1rem; border-radius: 1rem; }
    }

    /* スクロールスムーズ - iOS対応 */
    html { -webkit-overflow-scrolling: touch; }

    /* カード hover エフェクトをタッチでは無効化 */
    @media (hover: none) {
      .glass-card:hover, .light-card:hover {
        transform: none;
        box-shadow: none;
      }
    }

    /* ===== 可読性改善: 暗背景での文字色を明るく ===== */
    /* 黒・ダーク背景セクション内のグレー文字を底上げ */
    #solution .text-gray-400,
    #story-professional .text-gray-400,
    #story-professional .text-gray-300,
    #curriculum .text-gray-400,
    #faq .text-gray-400,
    #benefits .text-gray-400,
    #pricing .text-gray-400,
    #cta .text-gray-300,
    #cta .text-gray-400,
    #main-course .text-gray-400,
    footer .text-gray-400 {
      color: #c9d1da !important; /* gray-400(#9ca3af)→より明るい */
    }
    #solution .text-gray-300,
    #curriculum .text-gray-300,
    #benefits .text-gray-300,
    #pricing .text-gray-300 {
      color: #e2e8f0 !important; /* gray-300 → slate-200相当 */
    }
    /* ソリューションカード説明文 */
    .glass-card .text-gray-400 { color: #c9d1da !important; }
    /* カリキュラム本文 */
    #curriculum p.text-gray-400 { color: #c9d1da !important; }
    /* FAQアコーディオン回答 */
    .faq-answer { color: #c9d1da !important; }
    /* ストーリーセクション本文 */
    #story-professional p { color: #c9d1da !important; }
    #story-professional .text-gray-500 { color: #a8b4c0 !important; }
    /* 受講特典カード本文 */
    #benefits p.text-gray-400 { color: #c9d1da !important; }
    /* 料金プランリスト */
    #pricing .text-gray-300 { color: #dde3ea !important; }
    /* フッター */
    footer .text-gray-400 { color: #a8b4c0 !important; }
    footer .text-gray-600 { color: #8892a0 !important; }


/* ================================================================
   RESPONSIVE IMPROVEMENTS  (PC / SP  natural layout)
   ================================================================ */

/* ---------- Layout helpers ---------- */
.container-fluid {
  width: 100%;
  max-width: 80rem;       /* 1280px */
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

/* ---------- Fluid section padding ---------- */
section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* ---------- Balanced headings ---------- */
h1, h2, h3 { text-wrap: balance; }

/* ---------- Hero responsive ---------- */
@media (max-width: 480px) {
  .hero-title-glow {
    font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
    line-height: 1.25;
  }
  /* Hero action buttons: full-width on tiny screens */
  #hero .flex.flex-col.sm\:flex-row > a {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Navbar ---------- */
@media (max-width: 399px) {
  /* On the narrowest phones show only the first CTA */
  #navbar .nav-secondary { display: none !important; }
}
@media (min-width: 400px) and (max-width: 639px) {
  /* Keep second button but shrink text & padding */
  #navbar a { font-size: 0.65rem; padding: 0.35rem 0.75rem; }
}

/* ---------- Floating CTA responsive ---------- */
/* Default (≥480px): side-by-side layout */
#floating-cta > div {
  flex-wrap: nowrap;
}
/* ≤479px: stack text above button, full width */
@media (max-width: 479px) {
  #floating-cta > div {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  #fcta-text { text-align: center; }
  #fcta-btn  {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}
/* Medium phones (480–639px): reduce font sizes */
@media (min-width: 480px) and (max-width: 639px) {
  #fcta-label  { font-size: 0.78rem; }
  #fcta-sub    { font-size: 0.68rem; }
  #fcta-btn    { font-size: 0.78rem; padding: 0.55rem 0.9rem; }
}

/* ---------- Problem cards ---------- */
/* Already grid-cols-1 md:grid-cols-2 lg:grid-cols-3 via Tailwind */
@media (max-width: 639px) {
  #problem .light-card { padding: 1.5rem; }
}

/* ---------- Solution cards ---------- */
@media (max-width: 1023px) {
  #solution .glass-card { padding: 1.75rem; }
}

/* ---------- Transformation (Before/After) ---------- */
@media (max-width: 767px) {
  #transformation .grid { grid-template-columns: 1fr; }
  /* Stack Before above After */
}

/* ---------- Curriculum timeline ---------- */
@media (max-width: 639px) {
  .curriculum-step { gap: 1rem; }
  .curriculum-step > div:first-child { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
  .timeline-line::after { left: 19px; }
}

/* ---------- Instructor ---------- */
@media (max-width: 639px) {
  .instructor-avatar { width: 6rem !important; height: 6rem !important; }
}

/* ---------- Pricing cards ---------- */
@media (max-width: 1023px) {
  /* Disable scale-105 on the featured card to prevent overflow */
  #pricing .lg\:scale-105 { transform: none !important; }
}
@media (max-width: 639px) {
  .pricing-grid { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; }
  #pricing .glass-card,
  #pricing [class*="bg-\[#0f1115\]"] { padding: 1.75rem; }
}

/* ---------- Story section ---------- */
@media (max-width: 767px) {
  #story-professional .grid { grid-template-columns: 1fr; }
}

/* ---------- Benefits cards ---------- */
@media (max-width: 767px) {
  #benefits .grid { grid-template-columns: 1fr; }
}

/* ---------- CTA section forms ---------- */
@media (max-width: 639px) {
  .google-form-container { padding: 1rem !important; border-radius: 1rem !important; }
  .google-form-container iframe { min-height: 820px !important; }
}

/* ---------- FAQ ---------- */
@media (max-width: 639px) {
  .faq-question { font-size: 0.9rem; }
}

/* ---------- Footer ---------- */
@media (max-width: 767px) {
  footer .grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Exit popup ---------- */
@media (max-width: 639px) {
  #exit-popup > div { padding: 2rem 1.25rem; }
  #exit-popup h3    { font-size: 1.4rem; }
}

/* ---------- Disable hover animations on touch devices ---------- */
@media (hover: none) {
  .glass-card:hover,
  .light-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  .btn-glow:hover { transform: none; box-shadow: none; }
}

/* ================================================================
   SP FINE-TUNING v7 – 日本語改行・テキスト最適化
   ================================================================ */

/* ---------- 日本語 keep-all: CJK 文字列の途中で折り返し禁止 ---------- */
.ja-card-text {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ---------- ナビバー ボタン 最小高さ保証 ---------- */
#navbar a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Floating CTA: ボタン中央揃え確保 ---------- */
#fcta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Hero h1: SP フォントを少し下げて折り返し改善 ---------- */
@media (max-width: 399px) {
  .hero-title-glow {
    font-size: clamp(1.45rem, 7.5vw, 2rem) !important;
  }
}

/* ---------- Solution h2: SP でのフォントサイズ調整 ---------- */
@media (max-width: 639px) {
  #solution h2 {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
  }
}

/* ---------- Story block1 h2: SP フォントサイズ調整 ---------- */
@media (max-width: 639px) {
  #story-professional h2 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
}

/* ---------- Curriculum h3: 折り返し防止 (whitespace-nowrap 補助) ---------- */
@media (max-width: 639px) {
  .curriculum-step h3 {
    font-size: 1.1rem;
    white-space: normal !important; /* Tailwind whitespace-nowrap 上書き */
    word-break: keep-all;
  }
  /* h3 が親からはみ出ないよう */
  .curriculum-step .flex-grow {
    min-width: 0;
    overflow: hidden;
  }
}

/* ---------- Problem h2: もどかしさ行まとめ ---------- */
@media (max-width: 639px) {
  #problem h2 {
    word-break: keep-all;
  }
}

/* ---------- Seats badge: 幅を確保して「を」孤立防止 ---------- */
.seats-counter span {
  display: inline;
  word-break: keep-all;
}

/* ================================================================
   SP FINE-TUNING v8
   ================================================================ */

/* ---------- ナビバー whitespace-nowrap 確保 ---------- */
#navbar a { white-space: nowrap; }

/* ---------- MBA見出し ---------- */
.mba-headline { line-height: 1.35; }

/* ---------- Story block left-align on SP ---------- */
@media (max-width: 639px) {
  #story-professional .text-left { text-align: left; }
  /* "The Secret of Top Performers" ラベルを中央維持 */
  #story-professional .tracking-\[0\.3em\] { text-align: center; }
}

/* ===== MBA vs 30時間 比較カード SP 修正 ===== */
@media (max-width: 639px) {
  /* 比較カードのテキストサイズ調整 */
  #story-professional .text-6xl { font-size: 2.8rem; }
  /* 30時間の big number を確実にセンタリング */
  #story-professional [class*="border-brand-blue"] > div[class*="text-6xl"] {
    text-align: center;
    display: block;
    width: 100%;
  }
}

/* ===== SP overflow-x 完全遮断 ===== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
