:root { --paper: #f5eedf; --ink: #4a3b2f; --wine: #8e3b2e; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #ece3d1; color: var(--ink); font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; }
.lp { width: 100%; max-width: 520px; margin: 0 auto; background: var(--paper); box-shadow: 0 0 40px rgba(74, 59, 47, .12); }
.part { position: relative; line-height: 0; overflow: hidden; }
.part > img { display: block; width: 100%; height: auto; }

/* スクロールで、ページが下からふわっと出てくる */
.js .part:not(#top) > img { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.js .part.in:not(#top) > img { opacity: 1; transform: none; }

/* 1枚目：本物の画面が入ったスマホ（ふわっと浮く・画面が流れる） */
.phone {
  position: absolute; width: 21.875%; aspect-ratio: 224 / 440;
  background: #2b2420; border-radius: 16% / 8.2%;
  box-shadow: 0 14px 28px rgba(60, 45, 35, .28);
  animation: float 4.5s ease-in-out infinite alternate;
}
.phone-a { left: 62.5%; top: 49.1%; }
.phone-b { left: 74.4%; top: 51.9%; animation-delay: -2.2s; }
.phone .screen { position: absolute; inset: 2.73% 5.36%; border-radius: 11% / 5.4%; overflow: hidden; background: #fff; }
.phone .screen img, .screen-over img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.screen-over { position: absolute; border-radius: 15% / 7.4%; overflow: hidden; }
img.scroll { animation: scrollshot 36s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-2.2%); } }
@keyframes scrollshot { 0%, 6% { object-position: 50% 0%; } 94%, 100% { object-position: 50% 100%; } }

/* 画像の中のボタンの上に重ねる、押せる範囲 */
.hit { position: absolute; display: block; min-height: 44px; border-radius: 999px; overflow: hidden; color: transparent; font-size: 1px; }
.hit:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
.hit.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -40%; } 85%, 100% { left: 120%; } }

/* 途中のページで画面下に出る、公式LINEのボタン */
.sticky {
  position: fixed; left: 50%; bottom: 12px; z-index: 10;
  width: calc(100% - 32px); max-width: 488px; min-height: 52px;
  transform: translate(-50%, 140%); transition: transform .3s ease;
  display: flex; align-items: center; justify-content: center;
  background: var(--wine); color: #fff; text-decoration: none; font-size: 16px;
  border-radius: 999px; box-shadow: 0 8px 20px rgba(74, 59, 47, .3);
}
.sticky.show { transform: translate(-50%, 0); }

/* 動きを止めるボタン（ページの一番上の細い帯） */
.topbar { display: flex; justify-content: flex-end; padding: 6px 10px; background: var(--paper); line-height: 1; }
.motion-toggle {
  min-height: 44px; padding: 0 14px; font: 13px "Hiragino Sans", sans-serif; color: var(--ink);
  background: transparent; border: 1px solid #cbbba3; border-radius: 999px; cursor: pointer;
}
.no-motion *, .no-motion *::after { animation: none !important; transition: none !important; }
.no-motion .part > img { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; }
  .js .part > img { opacity: 1 !important; transform: none !important; }
}
