/* 2026-11-29 ファーストビューの街イラストに重ねる軽い動き（ピンの波紋・吹き出しの合図・スマホのきらめき・街とアプリをつなぐ光）
   絵そのものは動かさず、上に SVG を重ねるだけ。位置合わせは hero-fx.js（object-fit: cover と同じ計算）
   「動きを止める」（.is-still）と OS の「視差効果を減らす」では止まる */
.mm-rn .hero__fx { position: absolute; z-index: 1; pointer-events: none; overflow: hidden; visibility: hidden; }
.mm-rn .hero__fx.is-ready { visibility: visible; }
.mm-rn .hero__fx svg { position: absolute; display: block; overflow: visible; max-width: none; max-height: none; }
.mm-rn .hero__fx * { transform-box: fill-box; transform-origin: center; }
.mm-rn .hero__fx.is-off * { animation-play-state: paused !important; }
@supports (animation-timeline: scroll()) {
  .mm-rn .hero__fx { animation: hero-zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}

/* 1) 地図ピンの足もとに広がる波紋 */
.mm-rn .fx-ripple { fill: none; stroke: #e5484d; stroke-width: 2; opacity: 0; animation: fx-ripple 2.8s cubic-bezier(.2, .7, .3, 1) infinite; animation-delay: var(--d, 0s); }
@keyframes fx-ripple {
  0% { transform: scale(.3); opacity: .85; }
  70% { opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* 2) 吹き出しアイコンが順番に「ポン」と合図 */
.mm-rn .fx-ring { fill: rgba(99, 35, 188, .12); stroke: #6323bc; stroke-width: 2.4; opacity: 0; animation: fx-ring 9.6s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes fx-ring {
  0% { transform: scale(.9); opacity: 0; }
  2% { opacity: .9; }
  11% { transform: scale(2); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}

/* 3) スマホのまわりのきらめき・浮かび上がるアイコン */
.mm-rn .fx-spark { fill: #ffd84d; stroke: #fff; stroke-width: 1; opacity: 0; animation: fx-spark 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes fx-spark {
  0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
  20% { transform: scale(1.15) rotate(45deg); opacity: 1; }
  40% { transform: scale(0) rotate(90deg); opacity: 0; }
}
.mm-rn .fx-bit { opacity: 0; animation: fx-bit 4.2s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes fx-bit {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(var(--x, 0px), -64px) scale(1); opacity: 0; }
}

/* 4) 街（バス・キッチンカー）とアプリをつなぐ光 */
.mm-rn .fx-arc { fill: none; stroke: #8995fc; stroke-width: 1.6; stroke-dasharray: 3 6; opacity: .55; animation: fx-march 2.4s linear infinite; }
@keyframes fx-march { to { stroke-dashoffset: -18; } }
.mm-rn .fx-tail, .mm-rn .fx-dot { fill: none; stroke-linecap: round; opacity: 0; animation: 3.6s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--d, 0s); }
.mm-rn .fx-tail { stroke: #8995fc; stroke-width: 4; stroke-dasharray: 9 200; animation-name: fx-tail; }
.mm-rn .fx-dot { stroke: #6323bc; stroke-width: 7; stroke-dasharray: .01 200; animation-name: fx-dot; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .95)); }
@keyframes fx-dot {
  0% { stroke-dashoffset: 0; opacity: 0; }
  8%, 88% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes fx-tail {
  0% { stroke-dashoffset: 9; opacity: 0; }
  8%, 88% { opacity: .5; }
  100% { stroke-dashoffset: -91; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-rn .hero__fx { display: none; }
}
