/* 完成形は改訂案8のまま。追加する動きだけをまとめる。 */
.sv-pair > span { display: inline-block; }
.si-row:last-child .si-add { position: relative; }
.lp-added { font-size: .625rem; }
.mini-search4 { position: relative; }
.lp-search-text { display: none; }
.lp-moving .lp-search-input { color: transparent; }
.lp-moving .lp-search-text {
  position: absolute; left: 39px; top: 50%; transform: translateY(-50%);
  display: block; width: 2em; overflow: hidden; white-space: nowrap;
  font: inherit; font-size: .8125rem; line-height: 1.5;
  border-right: 1px solid var(--ink);
  animation: lp-type 8s steps(1, end) infinite, lp-caret .8s steps(1, end) infinite;
}
.lp-moving .mini-gshare8-url > span { animation: lp-paste 8s ease-out infinite; }
@keyframes lp-type { 0%,10% { width: 0; } 16% { width: 1em; } 25%,100% { width: 2em; } }
@keyframes lp-caret { 0%,49% { border-color: var(--ink); } 50%,100% { border-color: transparent; } }
@keyframes lp-paste { 0%,18% { clip-path: inset(0 100% 0 0); } 32%,100% { clip-path: inset(0); } }
.demo4-pin { animation: lp-pin .62s ease-out calc(var(--pin-order, 0) * .065s) both; }
/* ピンは transform で中心に合わせてある(-22px,-22px)ので、落ちる動きは translate で重ねる(transform を上書きすると右下に22pxずれた) */
@keyframes lp-pin {
  0% { translate: 0 -18px; opacity: .65; }
  55% { translate: 0 3px; opacity: 1; }
  78% { translate: 0 -2px; }
  100% { translate: 0 0; opacity: 1; }
}
.faq .lp-faq-opening summary::before { animation: lp-q .38s ease-out; }
@keyframes lp-q { 0%,100% { scale: 1; } 45% { scale: 1.13; } 75% { scale: .97; } }
@media (hover: hover) and (pointer: fine) {
  .features4 .feat, .compare4-row { transition: translate .25s var(--ease); }
  .features4 .feat:hover, .compare4-row:hover { translate: 0 -3px; }
  .vs-sec .compare4-row.lp-shine .compare4-answer::after { animation: shine8 1.2s cubic-bezier(.45,0,.25,1); animation-delay: 0s; }
}
/* 既存ボタンのhover/activeはlp.cssとsite-chrome.cssを使い、重ねない。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .features4 .feat:hover, .compare4-row:hover { translate: none; }
  .lp-search-input { color: inherit !important; }
  .lp-search-text { display: none !important; }
  .mini-gshare8-url > span { clip-path: none !important; }
}
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lp-search-input { color: inherit !important; }
  .lp-search-text, .trail, .burst, .burst-star, .spk { display: none !important; }
  .mini-gshare8-url > span { clip-path: none !important; }
  .vs-sec .compare4-answer::after { display: none; }
}

/* 対象外の3件を縮めると、同じ一覧の残り2件が自然に上へ詰まる。 */
@media (prefers-reduced-motion:no-preference) {
  .lp-moving .how-rain { display:block; }
  .lp-moving .mini-public-demo8b .mini-unmatched8b:not([hidden]) { display:flex; animation:lp-filter-out 8s linear infinite; }
  .lp-moving .mini-public-demo8b .mini-hit8 { animation:lp-hit 8s linear infinite; }
  .lp-moving .mini-public-demo8b mark::before { animation:lp-highlight 8s ease-out infinite; }
  .lp-moving .mini-url-demo8b .mini-toast8 { animation:lp-saved 8s ease-out infinite; }
  .answer-food8b { animation:lp-food-bob var(--bob) ease-in-out var(--phase) infinite; }
  .answer-star8b { animation:lp-food-spark 3s ease-in-out var(--phase) infinite; }
  .answer-star8b-white { animation-delay:calc(var(--phase) - 1.5s); }
}
@keyframes lp-filter-out {
  0%,27% { height:50px; padding-block:4px; opacity:1; }
  33% { height:50px; padding-block:4px; opacity:.2; }
  43%,100% { height:0; padding-block:0; opacity:0; }
}
@keyframes lp-highlight { 0%,44% { transform:scaleX(0); } 51%,100% { transform:scaleX(1); } }
@keyframes lp-hit { 0%,53% { height:0; opacity:0; } 59%,100% { height:28px; opacity:1; } }
@keyframes lp-saved { 0%,52% { opacity:0; transform:translateY(8px); } 60%,100% { opacity:1; transform:none; } }
@keyframes lp-rain-fall { from { transform:translateY(-48px); } to { transform:translateY(100%); } }
@keyframes lp-rain-sway { from { translate:-8px 0; rotate:-12deg; } to { translate:8px 0; rotate:12deg; } }
@keyframes lp-food-bob { 0%,100% { translate:0 0; } 50% { translate:0 -4px; } }
@keyframes lp-food-spark { 0%,100% { opacity:.3; scale:.7; } 50% { opacity:1; scale:1; } }
@media print {
  .lp-moving .how-rain { display:none; }
  .lp-moving .mini-public-demo8b .mini-unmatched8b { display:none !important; }
}

/* レビュー20: 画面外の説明図は静止し、再入場時に先頭から再生する。 */
.lp-motion-scene:not(.lp-moving) *,
.lp-motion-scene:not(.lp-moving) *::before,
.lp-motion-scene:not(.lp-moving) *::after { animation:none !important; }
/* #howの降下用クラスから、静止した検索図へ状態を継承させない。 */
.lp-motion-scene:not(.lp-moving) .lp-search-input { color:inherit; }
.lp-motion-scene:not(.lp-moving) .lp-search-text { display:none; }

/* レビュー22: 流れる帯の停止・再開(動きを減らす設定では操作も非表示)。 */
.ticker-wrap { position:relative; }
.ticker-toggle { position:absolute; right:var(--space-3); top:50%; translate:0 -50%; z-index:2; box-shadow:var(--shadow-control); }
.ticker-wrap.is-paused .ticker-track { animation-play-state:paused; }
.ticker-toggle .play-icon, .ticker-wrap.is-paused .pause-icon { display:none; }
.ticker-wrap.is-paused .play-icon { display:block; }
@media (prefers-reduced-motion:reduce) { .ticker-toggle { display:none; } }
@media print { .ticker-toggle, .feature-controls { display:none; } }

/* 2026-10-26 総評: 説明図の「もう一度」。再生が終わった図にだけ出す */
.lp-motion-scene { position:relative; }
.scene-replay { position:absolute; right:10px; bottom:10px; z-index:3; display:none; align-items:center; gap:4px; min-height:32px; padding:4px 12px 4px 10px; border:1px solid var(--border); border-radius:var(--radius-full); background:var(--card); color:var(--foreground); font:700 12px/1 var(--font-sans); cursor:pointer; }
.scene-replay svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.lp-played > .scene-replay { display:inline-flex; }
.scene-replay:focus-visible { outline:2px solid var(--foreground); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .scene-replay { display:none !important; } }
@media print { .scene-replay { display:none !important; } }
.lp-to-try { cursor:pointer; }

/* 2026-10-26 総評: ヒーローは1回だけの登場。スマホが上がり、4枚のカードが「行きたい→リピあり→まあアリ→リピなし」の順に札を押すように貼られる */
@media (prefers-reduced-motion:no-preference) {
  .hero .hd-phone { animation:lp-hero-rise .8s cubic-bezier(.2,.8,.2,1) .15s backwards !important; }
  .hero .hd-card { animation:lp-hero-stamp .5s cubic-bezier(.3,1.5,.5,1) backwards !important; }
  .hero .hd-card--1 { animation-delay:.8s !important; }
  .hero .hd-card--2 { animation-delay:1.05s !important; }
  .hero .hd-card--3 { animation-delay:1.3s !important; }
  .hero .hd-card--4 { animation-delay:1.55s !important; }
  .hero .hd-pill { animation:lp-pill-stamp .32s cubic-bezier(.3,1.6,.5,1) backwards; }
  .hero .hd-card--1 .hd-pill { animation-delay:1.05s; }
  .hero .hd-card--2 .hd-pill { animation-delay:1.3s; }
  .hero .hd-card--3 .hd-pill { animation-delay:1.55s; }
  .hero .hd-card--4 .hd-pill { animation-delay:1.8s; }
}
@keyframes lp-hero-rise { from { transform:translateY(64px); opacity:0; } }
@keyframes lp-hero-stamp { 0% { transform:scale(1.3); opacity:0; } 60% { transform:scale(.95); opacity:1; } 100% { transform:none; opacity:1; } }
@keyframes lp-pill-stamp { 0% { transform:scale(1.8); opacity:0; } 100% { transform:none; opacity:1; } }
/* スマホの「もう一度」は丸いアイコンだけにして、図の部品(追加済み など)に重ならない角に置く */
@media (max-width:600px) {
  .scene-replay { right:6px; bottom:6px; width:36px; min-height:36px; height:36px; padding:0; justify-content:center; }
  .scene-replay span { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}
