/**
 * Drift 静的サイト共通スタイル
 *
 * 概要:
 *   Cloudflare Pages用の静的ランディングページ・各種ページの共通CSS
 *   モバイルアプリの使い方ページ（HowToUseScreen.tsx）のダークテーマデザインを再現
 *
 * 主な仕様:
 *   - モバイルファーストのレスポンシブデザイン
 *   - ダークテーマ（#09090bベース）
 *   - グラデーション背景、グラスモーフィズム風装飾
 *   - スクリーンショット付きの使い方セクション
 *
 * 制限事項:
 *   - フレームワーク不使用の純粋CSS
 */

/* ===== リセットとベース ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  color: #e2e8f0;
  background: #09090b;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== ユーティリティ ===== */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
  background: transparent;
}

.header--scrolled {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__logo-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  font-size: 18px;
}

.header__logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav a {
  font-size: 16px;
  color: #94a3b8;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: #fff;
}

/* ヘッダー モバイル対応 */
/* SP専用ヒーロー画像（デフォルト非表示、SPメディアクエリ内で表示に切替） */
.hero__visual--sp {
  display: none;
}

@media (max-width: 767px) {
  .header__inner {
    padding: 10px 16px;
  }

  .header__nav {
    gap: 10px;
  }

  .header__nav a {
    font-size: 11px;
  }

  .header__logo-icon-img {
    width: 24px;
    height: 24px;
  }

  .header__logo-text {
    font-size: 16px;
  }

  .hero__text {
    padding-top: 32px;
  }

  /* SPではタイトル下に画像を表示、右カラムは非表示 */
  .hero__visual--sp {
    display: block;
    margin: 24px 0;
    text-align: center;
  }

  .hero__visual--sp .hero__screenshot {
    max-width: 240px;
  }

  .hero__visual {
    display: none;
  }

  .hero__description,
  .hero__description-sub {
    font-size: 14px;
    text-align: left;
  }

  .hero__campaign-badge {
    font-size: 12px;
    padding: 7px 12px;
    margin-bottom: 16px;
  }

  .hero__pillars {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 28px;
  }

  .hero__pillar {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  padding: 64px 24px 48px;
  overflow: hidden;
  background: #09090b;
}

.hero__bg-circle-1 {
  position: absolute;
  top: 80px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__bg-circle-2 {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 500px;
  height: 500px;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ヒーローの2カラムコンテナ */
.hero__container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* 左カラム: テキスト */
.hero__text {
  text-align: center;
}

.hero__title {
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero__title-gradient {
  color: #7dd3fc;
  white-space: nowrap;
}

.hero__campaign-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 9999px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: #dff7ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero__description {
  font-size: 20px;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.8;
}

.hero__description-sub {
  font-size: 20px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.hero__pillar {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-primary.btn-primary--hero {
  padding: 14px 32px;
  border-radius: 9999px;
  background: #7dd3fc;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.3);
  font-size: 17px;
}

.btn-primary.btn-primary--hero:hover {
  background: #a5e4ff;
  box-shadow: 0 12px 32px rgba(125, 211, 252, 0.4);
}

/* 右カラム: ビジュアル */
.hero__visual {
  position: relative;
  text-align: center;
}

.hero__screenshot-wrapper {
  position: relative;
  display: inline-block;
}

.hero__screenshot-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__screenshot {
  position: relative;
  z-index: 1;
  max-width: 280px;
  width: 100%;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 212, 255, 0.1);
}

.hero__visual-caption {
  margin-top: 20px;
  font-size: 13px;
  color: #64748b;
  letter-spacing: 0.05em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1c1c1e;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid #334155;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #334155;
}

.btn-secondary.btn-secondary--hero {
  padding: 14px 32px;
  border-radius: 9999px;
  font-size: 17px;
}

/* ===== セクション共通 ===== */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.section-title--steps {
  margin-bottom: 56px;
}

.section-subtitle {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 48px;
}

/* ===== 特徴セクション ===== */
.features {
  padding: 64px 0;
  background: #09090b;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.feature-card {
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: #fff;
  border: 1px solid #374151;
  background: rgba(0, 212, 255, 0.05);
}

.feature-card__icon--blue {
  background: rgba(0, 212, 255, 0.08);
}

.feature-card__icon--purple {
  background: rgba(147, 51, 234, 0.08);
}

.feature-card__icon--pink {
  background: rgba(236, 72, 153, 0.08);
}

.feature-card__icon--gray {
  background: rgba(255, 255, 255, 0.06);
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card__description {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
  text-align: left;
}

/* ===== スクリーンショットセクション ===== */
.screenshot-section {
  text-align: center;
  margin-bottom: 48px;
  border-radius: 16px;
  overflow: hidden;
}

.screenshot-img {
  max-width: 280px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ===== サブ特徴 ===== */
.sub-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sub-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.3s;
}

.sub-feature-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.sub-feature-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.sub-feature-card__content {
  flex: 1;
}

.sub-feature-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.sub-feature-card__description {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.7;
}

.sub-feature-card__screenshot {
  width: 60px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ===== こんな方におすすめ ===== */
.recommend {
  padding: 64px 0;
  background: #09090b;
}

.recommend__box {
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid #1c1c1e;
  border-radius: 16px;
  padding: 48px 32px;
}

.recommend__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.recommend__sparkle {
  font-size: 22px;
}

.recommend__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.recommend__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(125, 211, 252, 0.05);
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 14px;
  padding: 20px 24px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.recommend__item:hover {
  transform: translateY(-2px);
  background: rgba(125, 211, 252, 0.1);
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.08);
}

.recommend__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #7dd3fc, #0891b2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(125, 211, 252, 0.25);
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.recommend__text {
  font-size: 19px;
  color: #cbd5e1;
  line-height: 1.7;
}

/* ===== 4ステップ概要セクション ===== */
.steps-overview {
  padding: 64px 0;
  background: #09090b;
}

.steps-overview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.step-overview-card {
  background: #1c1c1e;
  border: 1px solid #00d4ff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
  transition: box-shadow 0.3s;
}

.step-overview-card:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.step-overview-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 28px;
}

.step-overview-card__number {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.step-overview-card__description {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ===== 使い方詳細セクション ===== */
.how-to-use {
  padding: 64px 0;
  background: #09090b;
}

.step-detail {
  margin-bottom: 56px;
}

.step-detail__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  margin-top: 160px;
}

.step-detail__title--first {
  margin-top: 80px;
}

.step-detail__subtitle {
  font-size: 19px;
  font-weight: 500;
  color: #e2e8f0;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.step-detail__images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.step-detail__img {
  max-width: 260px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 4枚横並び用 */
.step-detail__images--4col {
  flex-wrap: nowrap;
}

/* 3枚横並び用 */
.step-detail__images--3col {
  flex-wrap: nowrap;
  gap: 40px;
  margin-top: 32px;
}

.step-detail__img-with-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-detail__img-caption {
  font-size: 15px;
  color: #e2e8f0;
  text-align: center;
  line-height: 1.6;
  max-width: 300px;
  font-weight: 500;
  background: rgba(125, 211, 252, 0.08);
  border-left: 3px solid #7dd3fc;
  padding: 12px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.step-detail__img-caption--left {
  text-align: left;
}

.step-detail__icon-container {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 16px;
}

/* ===== CTA（最終コール）セクション ===== */
.cta {
  padding: 24px 24px 64px;
}

.cta__box {
  background: #0891b2;
  border-radius: 24px;
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(8, 145, 178, 0.4);
}

.cta__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.cta__subtitle {
  font-size: 18px;
  color: #bfdbfe;
  margin-bottom: 24px;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: #fff;
  color: #2563eb;
  border-radius: 12px;
  font-weight: 700;
  font-size: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.cta__note {
  font-size: 12px;
  color: #93c5fd;
  margin-top: 20px;
}

/* ===== フッター ===== */
.footer {
  padding: 32px 24px;
  border-top: 1px solid #1c1c1e;
}

.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__logo-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  font-size: 14px;
}

.footer__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 14px;
  color: #94a3b8;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copyright {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* ===== 法的ページ共通 ===== */
.legal-page {
  min-height: 100vh;
  padding-top: 72px;
}

.legal-header {
  background: #1c1c1e;
  border-bottom: 1px solid #334155;
  padding: 16px 24px;
}

.legal-header__inner {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-header__back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  transition: color 0.2s;
}

.legal-header__back:hover {
  color: #93c5fd;
}

.legal-header__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.legal-content {
  max-width: 768px;
  margin: 0 auto;
  padding: 32px 24px;
}

.legal-content__date {
  text-align: right;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 32px;
}

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.legal-content p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  color: #cbd5e1;
  margin-bottom: 4px;
}

.legal-content .contact-info {
  color: #93c5fd;
}

/* ===== お問い合わせページ ===== */
.contact-page {
  min-height: 100vh;
  padding-top: 60px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px;
}

.contact-form__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.contact-form__subtitle {
  font-size: 16px;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.form-group label .required {
  color: #ef4444;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: #1c1c1e;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #64748b;
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ハニーポット（ボット対策: スクリーンリーダー・視覚から完全に隠す） */
.form-group--honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Cloudflare Turnstile ウィジェット */
.cf-turnstile {
  margin-bottom: 8px;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: #7dd3fc;
  color: #0f172a;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.form-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}

.form-message--success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ===== App Storeバッジ ===== */
.app-store-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

.app-store-badge:hover {
  opacity: 0.8;
}

.app-store-badge img {
  height: 48px;
}

/* ===== レスポンシブ ===== */

/* タブレット以上 */
@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-overview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-detail__images {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .step-detail__images--4col {
    flex-wrap: nowrap;
  }

  .step-detail__images--4col .step-detail__img {
    max-width: 260px;
  }

  .step-detail__img {
    max-width: 260px;
  }
}

/* デスクトップ */
@media (min-width: 768px) {
  /* ヒーロー: 2カラムレイアウト */
  .hero {
    padding: 72px 24px 64px;
  }

  .hero__container {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero__text {
    flex: 1;
    text-align: left;
    padding-left: 48px;
  }

  .hero__pillars {
    justify-content: flex-start;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__cta {
    align-items: flex-start;
  }

  .hero__visual {
    flex: 1;
    text-align: center;
  }

  .hero__screenshot {
    max-width: 320px;
  }

  .section-title {
    font-size: 36px;
  }

  .cta__title {
    font-size: 36px;
  }

  .cta__box {
    padding: 48px 40px;
  }

  .recommend__list {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1080px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .step-detail__img {
    max-width: 240px;
  }

  .sub-feature-card__screenshot {
    width: 80px;
  }
}

/* 大画面 */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 48px;
  }

  .hero__screenshot {
    max-width: 360px;
  }

  .hero__container {
    gap: 64px;
  }

  .steps-overview__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .step-detail__img {
    max-width: 260px;
  }
}

/* ===== プランセクション ===== */
.plans {
  padding: 80px 0;
}

/* 早期登録者特典バナー */
.early-adopter-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.25), rgba(125, 211, 252, 0.15));
  border: 2px solid rgba(125, 211, 252, 0.5);
  border-radius: 14px;
  text-align: left;
  box-shadow: 0 0 24px rgba(8, 145, 178, 0.3), 0 0 48px rgba(8, 145, 178, 0.1);
}

.early-adopter-banner__icon {
  font-size: 40px;
  flex-shrink: 0;
}

.early-adopter-banner__title {
  font-size: 18px;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.early-adopter-banner__text {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.7;
}

.early-adopter-banner__text strong {
  color: #fff;
  background: linear-gradient(135deg, #7dd3fc, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.plans__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

/* プランカード */
.plan-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #1c1c1e;
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* おすすめプラン */
.plan-card--recommended {
  border-color: #0891b2;
  background: rgba(8, 145, 178, 0.06);
  box-shadow: 0 0 24px rgba(8, 145, 178, 0.15);
}

.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0891b2, #7dd3fc);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

/* プランヘッダー */
.plan-card__header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-card__name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.plan-card__price {
  font-size: 36px;
  font-weight: 800;
  color: #7dd3fc;
}

.plan-card__price-period {
  font-size: 16px;
  font-weight: 500;
  color: #94a3b8;
}

/* 機能リスト */
.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #e2e8f0;
}

.plan-card__feature--disabled {
  color: #6b7280;
}

.plan-card__feature-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.plan-card__feature-icon--check {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.plan-card__feature-icon--close {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  font-size: 16px;
}

.plan-card__note {
  font-size: 13px;
  color: #7dd3fc;
  margin-top: 16px;
  line-height: 1.7;
}

/* レスポンシブ: タブレット以上で2列 */
@media (min-width: 640px) {
  .plans__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* レスポンシブ: デスクトップで4列 */
@media (min-width: 1024px) {
  .plans__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================
   スクロールアニメーション
   ============================ */

/* アニメーション用キーフレーム */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 初期状態: 非表示 */
[data-scroll] {
  opacity: 0;
}

/* アニメーション発火時 */
[data-scroll].is-visible {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: both;
}

/* 各アニメーション種別 */
[data-scroll="fade-up"].is-visible {
  animation-name: fadeInUp;
}

[data-scroll="slide-left"].is-visible {
  animation-name: slideInLeft;
}

[data-scroll="slide-right"].is-visible {
  animation-name: slideInRight;
}

[data-scroll="scale-in"].is-visible {
  animation-name: scaleIn;
}

/* 遅延クラス（子要素を順番にアニメーション） */
[data-scroll-delay="1"] { animation-delay: 0.1s !important; }
[data-scroll-delay="2"] { animation-delay: 0.2s !important; }
[data-scroll-delay="3"] { animation-delay: 0.3s !important; }
[data-scroll-delay="4"] { animation-delay: 0.4s !important; }
[data-scroll-delay="5"] { animation-delay: 0.5s !important; }
[data-scroll-delay="6"] { animation-delay: 0.6s !important; }

/* アニメーション無効化（モーション低減設定への対応） */
@media (prefers-reduced-motion: reduce) {
  [data-scroll] {
    opacity: 1;
    animation: none !important;
  }
}
