/* /style.css */
:root {
  --maxw: 1200px;
}

/* 全体リセット */
body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: system-ui, sans-serif;
}

/* コンテンツ幅制御 */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* LPのメイン画像 */
.lp img {
  display: block;
  width: 100%;
  height: auto;
}

/* フッター */
footer {
  position: relative;              /* ボタンの絶対配置基準 */
  background: #222;
  color: #fff;
  padding: 60px 20px 140px;        /* 下余白はボタン分 */
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer__meta {
  font-size: 14px;
  opacity: 0.8;
}

/* フッター固定ボタン */
.footer__btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  display: inline-block;
}

.footer__btn img {
  display: block;
  width: 140px;
  height: auto;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer__btn img {
    width: 96px;
  }
  footer {
    padding-bottom: 110px; /* ボタン縮小分だけ余白調整 */
  }
}

.hero {
  position: relative; /* why: 子要素を絶対配置できる基準 */
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.btn-overlay {
  position: absolute;
  bottom: 0px;
  width: 140px;  /* ボタンサイズ調整 */
  height: auto;
}

@media (max-width: 768px) {
  .btn-overlay {
    width: 96px; /* スマホで縮小 */
  }
}

.btn-overlay {
  position: absolute;
  bottom: 10px;
  width: 140px;
  height: auto;

  /* ゆったり鼓動 */
  animation: heartbeat 3s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes heartbeat {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.05); } /* ほんの少し拡大 */
  40%  { transform: scale(1); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .btn-overlay {
    width: 96px;
  }
}

.footer-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%); /* 中央寄せ */
  z-index: 1000;
  width: 90%;
  max-width: 480px; /* デスクトップでは大きすぎないよう制限 */
}

.footer-btn a {
  display: inline-block;
  width: 100%;
  animation: pulseBounce 1.8s infinite ease-in-out; /* アニメーション付き */
}

.footer-btn img {
  width: 100%;
  height: auto;
  display: block;
}

/* パルス＋バウンスアニメーション */
@keyframes pulseBounce {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  25% {
    transform: scale(1.05) translateY(-4px);
  }
  50% {
    transform: scale(1.0) translateY(0);
  }
  75% {
    transform: scale(1.02) translateY(-3px);
  }
}

/* 動きが苦手なユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
  .footer-btn a { animation: none; }
}

html, body { overflow-x: hidden; }