/* =========================
   Base / Reset
========================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; color: #111; }
img { display: block; width: 100%; height: auto; }
a { text-decoration: none; }

/* =========================
   Layout
========================= */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.header-image { width: 100%; height: auto; }

/* 画像＋重ねボタン用のラッパー */
.img-wrapper { position: relative; }

/* =========================
   CTA Button on Image（重ね）
========================= */
.btn-image {
  position: absolute;
  left: 50%;
  bottom: 0;                         /* 既存の見た目を維持 */
  transform: translateX(-50%);
  width: 95%;
  max-width: 540px;
  cursor: pointer;
  animation: pulse 1.5s infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .btn-image { animation: none; }
}

/* =========================
   Responsive (<= 767px)
========================= */
@media (max-width: 767px) {
  .container { max-width: 100%; }
}

/* =========================
   固定フッターCTA
========================= */
.fixed-footer-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px clamp(12px, 4vw, 24px) calc(8px + env(safe-area-inset-bottom));
  background: transparent;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.fixed-footer-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.footer-btn-image {
  width: min(92vw, 520px);
  height: auto;
  border-radius: 0;
  cursor: pointer;
  animation: floatY 5.5s ease-in-out infinite, breathe 3.6s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

@media (hover: hover) {
  .footer-btn-image:hover { transform: translateY(-2px) scale(1.03); }
}

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

