/* ============================================================
   lp-motion.css — アイクスSI LP 試作レイヤー（モーションデザイン・ベース）
   土台: motion-foundation.css のトークン＋文法。
   役割: ①ヒーローへの量子文法Canvas（オーブ＋波紋＋粒子）の配置
         ②静的要素の質感（グラデーション／光／奥行き。単線・ベタ塗りで済ませない）
   本番 styles.css は無変更。このファイルの上書きだけで試作を構成する。
   ============================================================ */

/* --- スクロール進捗バー（金の糸） --- */
.motion-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 100%; height: 3px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #8a6f3c, var(--motion-gold) 45%, var(--motion-gold-bright));
  box-shadow: 0 0 14px var(--motion-glow-gold);
  pointer-events: none;
}

/* --- ヒーロー: 深い森に光の層を重ねる --- */
.hero {
  background:
    radial-gradient(ellipse 90% 55% at 78% -10%, rgba(217, 199, 155, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 60% at 8% 108%, rgba(6, 20, 15, 0.85), transparent 65%),
    var(--forest);
}
#gl {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}
.gallery .caption { z-index: 2; }

/* --- 紙面の質感（本文エリア） --- */
body {
  background: linear-gradient(180deg, #f7f4ec 0%, var(--paper) 34%, #efeadf 100%);
}

/* --- ボタン: ベタ塗りをやめ、グラデーション＋内側ハイライト＋影へ --- */
.button--light {
  background: linear-gradient(180deg, #fbf8ef 0%, #eee2c4 88%, #e7d8b2 100%);
  box-shadow: inset 0 1px 0 #fffdf4, inset 0 -1px 0 rgba(138, 111, 60, 0.25), 0 14px 34px -14px rgba(4, 18, 13, 0.65);
}
.button--light:hover { background: linear-gradient(180deg, #fdfaf1 0%, #f2e5c2 90%); }
.button--dark {
  background: linear-gradient(180deg, #1e4c3d 0%, var(--forest) 55%, #10281f 100%);
  box-shadow: inset 0 1px 0 rgba(244, 241, 233, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.35), 0 14px 34px -14px rgba(16, 40, 31, 0.6);
}
.button--dark:hover { background: linear-gradient(180deg, #235444 0%, #173d30 60%, #0e2a21 100%); }
.button--outline {
  background: linear-gradient(180deg, rgba(244, 241, 233, 0.10), rgba(244, 241, 233, 0.02));
  box-shadow: inset 0 1px 0 rgba(244, 241, 233, 0.20), 0 10px 28px -14px rgba(4, 18, 13, 0.5);
}
.button--outline:hover { background: linear-gradient(180deg, rgba(244, 241, 233, 0.16), rgba(244, 241, 233, 0.05)); }
.referral-button {
  background: linear-gradient(180deg, #1e4c3d 0%, var(--forest) 55%, #10281f 100%);
  box-shadow: inset 0 1px 0 rgba(244, 241, 233, 0.16), 0 14px 34px -14px rgba(60, 44, 8, 0.55);
}
.referral-button:hover { background: linear-gradient(180deg, #235444 0%, #173d30 60%, #0e2a21 100%); }
.referral-button--outline {
  background: linear-gradient(180deg, rgba(244, 241, 233, 0.20), rgba(244, 241, 233, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 252, 240, 0.35);
}
.referral-button--outline:hover { background: linear-gradient(180deg, rgba(244, 241, 233, 0.30), rgba(244, 241, 233, 0.08)); }

/* --- 紹介バンド: 金の面に傾きと光を足す --- */
.referral {
  background:
    radial-gradient(ellipse 75% 90% at 88% -20%, rgba(255, 248, 220, 0.55), transparent 55%),
    linear-gradient(163deg, #e6d09e 0%, var(--gold) 46%, #c3a363 100%);
  box-shadow: inset 0 1px 0 rgba(255, 252, 240, 0.5), inset 0 -24px 48px -24px rgba(93, 76, 30, 0.35);
}

/* --- セクションの区切り: 単線でなく「金の糸＋森のグラデーション」へ --- */
.project--details {
  border-top: 1px solid transparent;
  background-image: linear-gradient(90deg, transparent 0%, rgba(22, 59, 49, 0.35) 22%, rgba(160, 134, 76, 0.75) 50%, rgba(22, 59, 49, 0.35) 78%, transparent 100%);
  background-size: 100% 1px;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-clip: border-box;
}
.feature-list { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, #9aa78f 18%, #b39b5e 50%, #9aa78f 82%, transparent) 1; }
.feature-list li { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, #a7b39e 20%, #b39b5e 50%, #a7b39e 80%, transparent) 1; }
.project__paragraph h3 { border-top: 1px solid transparent; border-image: linear-gradient(90deg, #9aa78f, rgba(179, 155, 94, 0.55) 55%, transparent) 1; }
.project__paragraph h3::before {
  background: linear-gradient(90deg, var(--forest), #7d9c6a 70%, #b39b5e);
  box-shadow: 0 0 10px rgba(125, 156, 106, 0.45);
}
.feature-number {
  background: linear-gradient(180deg, #7d927f, #43584a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.referral-steps .feature-number, .referral .feature-number {
  background: none; -webkit-text-fill-color: currentColor; color: #5d4c1e;
}

/* --- 写真フレーム: 金の縁＋深い影で奥行きを出す --- */
.app-example__frame, .device-photo__frame {
  border: 1px solid transparent;
  background:
    linear-gradient(#10141b, #10141b) padding-box,
    linear-gradient(165deg, rgba(217, 199, 155, 0.65), rgba(39, 59, 51, 0.25) 45%, rgba(217, 199, 155, 0.30)) border-box;
  box-shadow: 0 34px 64px -30px rgba(23, 62, 53, 0.45), 0 4px 18px -6px rgba(23, 62, 53, 0.25);
}

/* --- 特徴セクションの面: 紙のグラデーションに光だまり --- */
.features {
  background:
    radial-gradient(ellipse 60% 42% at 12% 0%, rgba(217, 199, 155, 0.20), transparent 60%),
    linear-gradient(180deg, #eceee4, var(--paper-alt) 55%, #e2e5d8);
}

/* --- 締め（entry）: 闇に金の暈 --- */
.entry {
  background:
    radial-gradient(ellipse 85% 62% at 50% -8%, rgba(217, 199, 155, 0.20), transparent 58%),
    radial-gradient(ellipse 60% 50% at 85% 110%, rgba(10, 26, 20, 0.9), transparent 65%),
    var(--forest);
}
.entry-title > span:first-child {
  background: linear-gradient(100deg, #f4f1e9 15%, #e9dcae 48%, #f7f3e6 62%, #d9c79b 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 6px 26px rgba(217, 199, 155, 0.22));
}
.site-footer { background: linear-gradient(180deg, #143329, #0f2a21); }

/* --- 出現文法の調整（このLPはセクションが縦に長いので entry 範囲を広げる） --- */
@supports (animation-timeline: view()) {
  .motion-reveal { animation-range: entry 0% entry 42%; }
}

/* --- reduced-motion: 質感は残し、動きだけを止める --- */
@media (prefers-reduced-motion: reduce) {
  .motion-progress { display: none; }
}
