:root {
  color-scheme: light;
  background: #ffffff;
}

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

html {
  min-width: 280px;
  background: #ffffff;
}

body {
  position: relative;
  min-width: 280px;
  margin: 0;
  background: #ffffff;
}

.lp {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
}

.lp-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0;
  line-height: 0;
}

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

.site-footer {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 88px;
  padding: 22px 12px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  background: #0a1d3d;
  color: #ffffff;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
}

.site-footer__nav a {
  padding: 0 10px;
  border-left: 1px solid rgb(217 227 240 / 32%);
  color: rgb(255 255 255 / 78%);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.site-footer__nav a:first-child {
  border-left: 0;
}

.site-footer__nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__nav a:focus-visible {
  border-radius: 4px;
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.cta-overlay {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  animation: cta-halo 2.8s ease-in-out infinite;
  -webkit-tap-highlight-color: rgb(255 255 255 / 18%);
}

.cta-overlay::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 22%, rgb(255 255 255 / 30%) 45%, transparent 66%);
  transform: translateX(-130%);
  animation: cta-shine 4.2s ease-in-out infinite;
  pointer-events: none;
}

/* Coordinates are percentages of the adjusted 780 × 1352 image. */
.cta-overlay--first {
  left: 7.18%;
  top: 88.46%;
  width: 85.64%;
  height: 8.28%;
}

/* Coordinates are percentages of the original 780 × 640 image. */
.cta-overlay--last {
  left: 10.51%;
  top: 53.28%;
  width: 78.97%;
  height: 16.25%;
}

.cta-overlay:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -5px;
  box-shadow: 0 0 0 2px #0a3f97;
}

.sticky-cta-wrap {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  justify-content: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity 220ms ease, transform 260ms ease, visibility 260ms;
}

.sticky-cta-wrap.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 358px);
  min-height: 58px;
  padding: 12px 50px 12px 20px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 52%);
  border-radius: 999px;
  background: linear-gradient(180deg, #ff584b 0%, #e62c1e 100%);
  box-shadow: 0 9px 22px rgb(4 24 65 / 30%), inset 0 -3px 0 rgb(148 15 8 / 48%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: clamp(15px, 4.35vw, 17px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  animation: sticky-bounce 4.5s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}

.sticky-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(105deg, transparent 24%, rgb(255 255 255 / 38%) 47%, transparent 67%);
  transform: translateX(-130%);
  animation: cta-shine 3.8s ease-in-out infinite;
  pointer-events: none;
}

.sticky-cta__arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
}

.sticky-cta__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 18px;
  content: "";
  background: #e62c1e;
  clip-path: polygon(0 0, 35% 0, 100% 50%, 35% 100%, 0 100%, 65% 50%);
  transform: translate(-50%, -50%);
}

.sticky-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@keyframes cta-halo {
  0%, 100% {
    box-shadow: 0 0 0 0 rgb(255 77 61 / 0%);
  }

  50% {
    box-shadow: 0 0 0 6px rgb(255 77 61 / 20%);
  }
}

@keyframes cta-shine {
  0%, 58% {
    transform: translateX(-130%);
  }

  78%, 100% {
    transform: translateX(130%);
  }
}

@keyframes sticky-bounce {
  0%, 82%, 100% {
    transform: translateY(0);
  }

  87% {
    transform: translateY(-8px);
  }

  91% {
    transform: translateY(0);
  }

  95% {
    transform: translateY(-4px);
  }
}

@media (max-width: 767px) {
  .sticky-cta-wrap {
    display: flex;
  }
}

@media (min-width: 768px) {
  html,
  body {
    background: #f2f5f9;
  }

  body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    content: "";
    background-color: #f7faff;
    background-image:
      linear-gradient(135deg, rgb(30 86 179 / 11%) 0 23%, transparent 23.15%),
      linear-gradient(315deg, rgb(30 86 179 / 8%) 0 20%, transparent 20.15%),
      linear-gradient(135deg, transparent 0 45%, rgb(255 104 104 / 8%) 45.15% 54%, transparent 54.15%),
      linear-gradient(180deg, #fbfdff 0%, #f2f6fb 100%);
    background-position:
      left top,
      right bottom,
      right top,
      center;
    background-size:
      min(34vw, 430px) min(46vh, 470px),
      min(38vw, 500px) min(50vh, 520px),
      min(15vw, 180px) min(22vh, 220px),
      100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
  }

  .lp {
    box-shadow: 0 0 0 1px rgb(10 29 61 / 5%), 0 12px 40px rgb(10 29 61 / 8%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-overlay,
  .cta-overlay::after,
  .sticky-cta,
  .sticky-cta::before {
    animation: none;
  }

  .sticky-cta-wrap {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cta-overlay,
  .sticky-cta {
    border: 2px solid LinkText;
  }
}
