/* Reset + layout for LP (800px centered, responsive) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP",
    "Hiragino Sans", "Yu Gothic", "Meiryo", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Ease-up effect (all elements) =====
   JSが有効なときだけ初期状態を適用し、表示崩れを防ぐ */
.js .ease-up {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.js .ease-up.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .js .ease-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Core layout ===== */

.lp__container {
  width: min(700px, 100%);
  margin: 0 auto;
  padding-bottom: 150px;
  /* fixed CTA space */
}

.lp__section {
  margin: 0;
  position: relative;
}

.lp__img {
  width: 100%;
  padding-top: 40px;
}

.lp__img_title {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
}

.lp__img_subtitle {
  position: absolute;
  top: 60px;
  right: 50%;
  transform: translateX(70%);
  width: 270px;
}

/* ===== Fixed CTA (②追従) ===== */
.fixed-cta {
  position: fixed;
  z-index: 9999;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(800px, 100%);
  pointer-events: none;
  background-color: #ffffffd4;
}

.fixed-cta__link {
  pointer-events: auto;
  display: block;
  padding: 0 10px;
  text-decoration: none;
}

.fixed-cta__frame {
  max-width: 400px;
  margin: 0 auto;
  padding: 10px;
  animation: cta-bob 3.6s ease-in-out infinite;
  will-change: transform;
}

.fixed-cta__img {
  width: 100%;
}

@keyframes cta-bob {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* ===== Topic slicing (img01/img02) ===== */
.lp__topic-slice {
  padding: 30px;
}

.lp__topic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Inline CTA ===== */
.lp__cta-inline {
  padding: 14px 10px 22px;
}

.lp__cta-link {
  display: block;
  text-decoration: none;
}

/* ===== FAQ (1 question = 1 screen) ===== */
.faq__title {
  width: 600px;
  justify-self: center;
  padding: 50px;
}

.faq__row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #d7d7d7;
}

.faq__q {
  background: #e9e9e9;
  font-weight: 800;
  padding: 12px 14px 12px 16px;
  border-left: 8px solid #2ea34b;
}

.faq__a {
  background: #fff;
  padding: 14px 14px 16px 24px;
  line-height: 1.5;
  display: flex;
}

.faq__label {
  display: inline-block;
  width: 2.2em;
  font-weight: 900;
}

/* ===== Footer ===== */
.lp__footer {
  background: #2ea34b;
}

.lp__footer-inner {
  color: #fff;
  text-align: center;
  padding: 18px 10px;
  font-weight: 700;
}

.padding-bottom-30 {
  padding-bottom: 30px;
}

.padding-30 {
  padding: 30px;
}

.img03-02 {
  width: 420px;
  padding-top: 20px;
}

.img03-03 {
  width: 400px;
  padding-top: 10px;
}

.img03-04 {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 280px;
}

.img03-05 {
  width: 50px;
  padding-top: 30px;
  justify-self: center;
}

.img08_txt {
  position: absolute;
  bottom: 330px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
}

@media (max-width: 520px) {
  .lp__container {
    width: min(800px, 100%);
    margin: 0 auto;
    padding-bottom: 100px;
  }

  .fixed-cta {
    bottom: 0px;
  }

  .fixed-cta__frame {
    border-radius: 12px;
    padding: 5px 6px;
    width: 100%;
    justify-items: center;
  }

  .fixed-cta__img {
    width: 80%;
    justify-self: center;
  }

  .lp__topic-slice {
    min-height: 460px;
  }

  .faq__q {
    padding: 10px 12px 10px 14px;
    display: flex;
  }

  .faq__a {
    padding: 12px 12px 14px 22px;
  }

  .faq__label {
    display: inline-block;
    min-width: 2.2em;
    font-weight: 900;
  }

  .lp__img_title {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
  }

  .lp__img_subtitle {
    position: absolute;
    top: 35px;
    right: 50%;
    transform: translateX(65%);
    width: 220px;
  }

  .img03-02 {
    width: 100%;
    padding-top: 20px;
  }

  .img03-03 {
    width: 100%;
    padding: 10px 30px 10px 4px;
  }

  .img03-04 {
    position: unset;
    bottom: unset;
    right: 0;
    width: 200px;
    justify-self: center;
    padding-top: 20px;
  }

  .width-99-sp {
    width: 99%;
    justify-self: center;
  }

  .width-80-sp {
    width: 80%;
    justify-self: center;
  }

  .padding-top-20-sp {
    padding-top: 20px;
  }

  .img08_txt {
    position: absolute;
    bottom: 185px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }

  .faq__title {
    width: 100%;
    justify-self: center;
    padding: 20px;
  }

  .width-100-center {
    width: 100%;
    justify-items: center;
  }
}