/* ページのトップへ戻るボタン（チャットのボタンの上） */
.edeal-pagetop {
  position: fixed; right: 26px; bottom: 94px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(0, 0, 0, .75); color: #ff3d8b; border: 1px solid #bd175c;
  box-shadow: 0 0 10px rgba(189, 23, 92, .35);
  font-family: 'Orbitron', sans-serif; font-size: 9px; letter-spacing: .08em; line-height: 1;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s, color .2s;
}
.edeal-pagetop i { font-size: 14px; }
.edeal-pagetop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.edeal-pagetop:hover { background: #bd175c; color: #fff; }
.edeal-pagetop:focus-visible { outline: 3px solid #ffd54a; outline-offset: 3px; }
.edeal-pagetop.is-solo { bottom: 24px; }

/* スマホ：画面下の固定メニューと、チャットのボタン（52px）の上 */
@media (max-width: 767.98px) {
  .edeal-pagetop { right: 18px; width: 44px; height: 44px; bottom: calc(56px + 14px + 52px + 12px + env(safe-area-inset-bottom, 0px)); }
  .edeal-pagetop.is-solo { bottom: calc(56px + 14px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .edeal-pagetop { transition: none; }
}
