@charset "UTF-8";
/* ==========================================================================
   sowelu — motion.css
   正本：DESIGN.md 3-3章
   原則：300-500ms / ease-out / 移動16-24px / 一度だけ / stagger 60-80ms
   ライブラリ不使用（IntersectionObserver + CSS transition）
   ========================================================================== */

/* ---------- 1. スクロール出現 ---------- */
/* JSが動いている時だけ隠す。JS無効・失敗時は最初から見える。 */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* stagger：親に .stagger、子に .reveal */
.js .stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.js .stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 320ms; }

/* ---------- 2. ヒーロー ---------- */
/* 画像：1.06 → 1.00 へ 1.2秒（1回のみ） */
.hero__media img {
  transform: scale(1.06);
  transition: transform 1200ms var(--ease);
}
.hero.is-ready .hero__media img { transform: scale(1); }

/* テキスト：3行が 80ms ずつずれて下から */
.js .hero__title span,
.js .hero__label,
.js .hero__text,
.js .hero__btns {
  opacity: 0; transform: translateY(18px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}
.hero.is-ready .hero__label            { opacity: 1; transform: none; transition-delay: 100ms; }
.hero.is-ready .hero__title span:nth-child(1) { opacity: 1; transform: none; transition-delay: 180ms; }
.hero.is-ready .hero__title span:nth-child(2) { opacity: 1; transform: none; transition-delay: 260ms; }
.hero.is-ready .hero__title span:nth-child(3) { opacity: 1; transform: none; transition-delay: 340ms; }
.hero.is-ready .hero__text             { opacity: 1; transform: none; transition-delay: 440ms; }
.hero.is-ready .hero__btns             { opacity: 1; transform: none; transition-delay: 520ms; }

/* ---------- 3. 大型英文タイポ：行ごとに 100ms ずれて ---------- */
.js .feature__en span {
  opacity: 0; transform: translateY(24px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.feature__en.is-in span:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.feature__en.is-in span:nth-child(2) { opacity: 1; transform: none; transition-delay: 100ms; }
.feature__en.is-in span:nth-child(3) { opacity: 1; transform: none; transition-delay: 200ms; }

/* ---------- 4. 数字 01-05：ゆっくり浮かぶ ---------- */
.js .area__num, .js .reason__n {
  opacity: 0;
  transition: opacity 700ms var(--ease);
}
.is-in .area__num, .is-in .reason__n, .area__num.is-in, .reason__n.is-in { opacity: 1; }

/* ---------- 5. 支援の流れ：線が伸びてから各ステップ ---------- */
.js .flow .step {
  opacity: 0; transform: translateY(16px);
  transition: opacity 460ms var(--ease), transform 460ms var(--ease);
}
.flow.is-in .step:nth-child(1) { opacity: 1; transform: none; transition-delay: 200ms; }
.flow.is-in .step:nth-child(2) { opacity: 1; transform: none; transition-delay: 280ms; }
.flow.is-in .step:nth-child(3) { opacity: 1; transform: none; transition-delay: 360ms; }
.flow.is-in .step:nth-child(4) { opacity: 1; transform: none; transition-delay: 440ms; }
.flow.is-in .step:nth-child(5) { opacity: 1; transform: none; transition-delay: 520ms; }

/* ==========================================================================
   6. 🔴 必須：prefers-reduced-motion
   視覚過敏・前庭障害の利用者に配慮。OSの設定を尊重する。
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal,
  .js .hero__title span, .js .hero__label, .js .hero__text, .js .hero__btns,
  .js .feature__en span, .js .flow .step,
  .js .area__num, .js .reason__n {
    opacity: 1 !important; transform: none !important;
  }
  .hero__media img { transform: none !important; }
  .flow::before { transform: none !important; }
}
