html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.lp-image {
  display: block;
  width: 100%;
  height: auto;
}

.image-wrapper {
  position: relative;
  width: 100%;
}

.cta-button {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);

  display: block;
  width: 90%;
  z-index: 2;
}

.btn-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

/* =========================
   固定フッターCTA
========================= */

.fixed-footer-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));

  background: transparent;

  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fixed-footer-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fixed-cta-link {
  display: block;
  width: 95%;
  max-width: 900px;
  margin: 0 auto;
}

.fixed-btn-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  animation: fixedPulse 1.5s infinite;
}

@keyframes fixedPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}
/* =========================
   Footer
========================= */

.footer {
  width: 100%;
  background: #fff;

  padding:
    20px
    10px
    calc(40px + env(safe-area-inset-bottom));

  display: flex;
  justify-content: center;
}

.footer-inner {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 8px;

  text-align: center;

  font-size: 12px;
  line-height: 1.6;
  color: #666;
}

.footer-inner a {
  color: #666;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* =========================
   スマホ調整
========================= */

@media (max-width: 767px) {
  .container {
    max-width: 100%;
  }

  .cta-button {
    width: 92%;
    bottom: 12px;
  }

  .fixed-cta-link {
    width: 95%;
    max-width: 100%;
  }
}

/* =========================
   動きを減らす設定
========================= */

@media (prefers-reduced-motion: reduce) {
  .btn-image,
  .fixed-btn-image,
  .fixed-footer-cta {
    animation: none !important;
    transition: none !important;
  }
}