:root {
  --lp-max-width: 750px;
  --page-bg: #ffffff;

  /* CTA調整用: 1枚目画像内の緑ボタンに透明リンクを重ねます */
  --cta-first-left: 4%;
  --cta-first-right: 4%;
  --cta-first-top: 89.1%;
  --cta-first-height: 8.2%;
  --cta-first-radius: 999px;
  --cta-first-bg-scale: 108.7%;
  --cta-first-bg-position-y: 97.1%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 320px;
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

/* PCでは最大750px、スマホでは画面幅に合わせて表示します */
.lp {
  width: min(100%, var(--lp-max-width));
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

/* 画像同士のつなぎ目に余白が出ないようにします */
.lp-section {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.lp-section img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

/* CTAリンク領域。リンク先はindex.html側のhrefで変更できます */
.cta-button {
  position: absolute;
  z-index: 2;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 90, 45, 0.18);
}

.cta-button--first {
  left: var(--cta-first-left);
  right: var(--cta-first-right);
  top: var(--cta-first-top);
  height: var(--cta-first-height);
  min-height: 56px;
  border-radius: var(--cta-first-radius);
  transform-origin: center center;
}

/* CTA範囲だけを画像から切り出して重ね、この部分だけズームさせます */
.cta-button--first::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("assets/section-01.png");
  background-repeat: no-repeat;
  background-size: var(--cta-first-bg-scale) auto;
  background-position: center var(--cta-first-bg-position-y);
  animation: cta-zoom-up-down 1.45s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes cta-zoom-up-down {
  0%,
  100% {
    transform: scale(1);
  }

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

.cta-button:focus-visible {
  outline: 3px solid rgba(0, 80, 180, 0.75);
  outline-offset: 4px;
}

/* #formへの仮リンク用アンカー。フォーム設置時はこの位置を差し替えてください */
.form-anchor {
  width: 100%;
  height: 1px;
}

@media (max-width: 480px) {
  .cta-button--first {
    min-height: 52px;
  }
}
