:root {
  --line: #08bf2e;
  --line-dark: #02941e;
  --blue: #0871d8;
  --blue-dark: #0057b4;
  --ink-blue: #0064c7;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: #dff5ff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding: 0 0 calc(78px + env(safe-area-inset-bottom));
  background:
    linear-gradient(90deg, rgba(200, 241, 255, 0.9), rgba(255, 255, 255, 0.72), rgba(200, 241, 255, 0.9));
  color: #003c83;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
}

.lp {
  width: min(100%, 941px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 42px rgba(0, 120, 210, 0.15);
}

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

.lp-section + .lp-section::before {
  content: "";
  position: absolute;
  top: -42px;
  right: 0;
  left: 0;
  z-index: 2;
  height: 88px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(228, 248, 255, 0),
      rgba(255, 255, 255, 0.44) 38%,
      rgba(214, 243, 255, 0.34) 58%,
      rgba(228, 248, 255, 0)
    ),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0) 68%);
  mix-blend-mode: screen;
}

.lp-section:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -34px;
  left: 0;
  z-index: 2;
  height: 76px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(235, 250, 255, 0),
      rgba(255, 255, 255, 0.26) 48%,
      rgba(203, 239, 255, 0.24) 72%,
      rgba(235, 250, 255, 0)
    );
  mix-blend-mode: screen;
}

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

.image-cta {
  --cta-pulse-mid: rgba(29, 198, 57, 0.12);
  --cta-pulse-end: rgba(29, 198, 57, 0);
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1;
  isolation: isolate;
  transform-origin: center;
  animation: ctaPulse 2.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  will-change: transform, filter;
}

.image-cta::before {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: -36%;
  z-index: 3;
  width: 30%;
  border-radius: 999px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
  filter: blur(0.5px);
  transform: skewX(-17deg);
  animation: ctaShine 3.05s ease-in-out infinite;
  pointer-events: none;
}

.image-cta::after {
  content: "";
  position: absolute;
  inset: -6%;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 58%),
    radial-gradient(ellipse at center, rgba(255, 224, 62, 0.3), rgba(255, 224, 62, 0) 66%);
  opacity: 0.75;
  transform: scale(0.98);
  animation: ctaAura 2.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.image-cta img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: inherit;
  filter: drop-shadow(0 11px 14px rgba(0, 107, 184, 0.22));
  transition: filter 180ms ease;
}

.image-cta:hover,
.image-cta:focus-visible {
  transform: translateY(-2px) scale(1.032);
  filter: brightness(1.04) saturate(1.08);
}

.image-cta:hover img,
.image-cta:focus-visible img {
  filter: drop-shadow(0 15px 18px rgba(0, 107, 184, 0.28));
}

.image-cta--hero-line,
.image-cta--large-line {
  box-shadow: 0 0 0 0 rgba(25, 214, 45, 0.28);
}

.image-cta--hero-tel,
.image-cta--large-tel {
  --cta-pulse-mid: rgba(0, 116, 216, 0.12);
  --cta-pulse-end: rgba(0, 116, 216, 0);
  box-shadow: 0 0 0 0 rgba(0, 116, 216, 0.22);
}

.image-cta:focus-visible,
.fixed-cta__button:focus-visible {
  outline: 4px solid rgba(255, 222, 45, 0.9);
  outline-offset: 4px;
}

.image-cta--hero-line {
  left: 8.08%;
  top: 73.8%;
  width: 83.85%;
  height: 8.49%;
}

.image-cta--hero-tel {
  left: 8.29%;
  top: 82.95%;
  width: 83.53%;
  height: 7.06%;
}

.image-cta--large-line {
  left: 5.21%;
  top: 60.65%;
  width: 89.59%;
  height: 16.33%;
}

.image-cta--large-tel {
  left: 5.42%;
  top: 78.23%;
  width: 89.16%;
  height: 8.49%;
}

.fixed-cta {
  --fixed-gap: 12px;
  position: fixed;
  right: auto;
  bottom: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: var(--fixed-gap);
  width: 100%;
  max-width: min(941px, 100vw);
  margin: 0 auto;
  padding: 12px max(12px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background:
    linear-gradient(180deg, rgba(226, 248, 255, 0), rgba(231, 249, 255, 0.86) 22%, rgba(244, 253, 255, 0.98) 62%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(200, 239, 255, 0.82), rgba(255, 255, 255, 0.82));
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

.fixed-cta__button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  min-width: 0;
  flex: 0 0 calc((100% - var(--fixed-gap)) / 2);
  width: calc((100% - var(--fixed-gap)) / 2);
  max-width: 100%;
  gap: 9px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(15px, 3.7vw, 21px);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.48),
    inset 0 -8px 16px rgba(0, 0, 0, 0.12),
    0 12px 0 rgba(0, 77, 142, 0.12),
    0 18px 30px rgba(0, 85, 160, 0.27);
  text-shadow: 0 2px 4px rgba(0, 58, 115, 0.3);
  transform-origin: center bottom;
  animation: fixedFloat 2.7s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.fixed-cta__button::before {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -42%;
  z-index: -1;
  width: 34%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: skewX(-18deg);
  animation: fixedShine 3.3s ease-in-out infinite;
}

.fixed-cta__button::after {
  content: "›";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.95);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  text-shadow: none;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.08);
}

.fixed-cta__button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.fixed-cta__button--line {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #31ed4e 0%, #09bf2d 48%, #01951f 100%);
  color: #fff;
}

.fixed-cta__button--tel {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #28a0ff 0%, #0872da 50%, #0054b3 100%);
  color: #fff;
  animation-delay: 0.18s;
}

.fixed-cta__button--line::after {
  color: #08b629;
}

.fixed-cta__button--tel::after {
  color: #0871d8;
}

.fixed-cta__icon {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 7px;
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.78em;
  line-height: 1;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--cta-pulse-end);
  }
  45% {
    transform: scale(1.028);
    box-shadow: 0 0 0 9px var(--cta-pulse-mid);
  }
  55% {
    transform: scale(1.028);
    box-shadow: 0 0 0 13px var(--cta-pulse-end);
  }
}

@keyframes ctaAura {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.98);
  }
  48% {
    opacity: 0.88;
    transform: scale(1.08);
  }
}

@keyframes ctaShine {
  0%,
  58% {
    left: -36%;
    opacity: 0;
  }
  66% {
    opacity: 0.88;
  }
  82%,
  100% {
    left: 108%;
    opacity: 0;
  }
}

@keyframes fixedFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  44% {
    transform: translateY(-4px) scale(1.018);
  }
  58% {
    transform: translateY(-2px) scale(1.01);
  }
}

@keyframes fixedShine {
  0%,
  52% {
    left: -42%;
    opacity: 0;
  }
  62% {
    opacity: 0.95;
  }
  84%,
  100% {
    left: 118%;
    opacity: 0;
  }
}

@media (max-width: 520px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .fixed-cta {
    --fixed-gap: 8px;
    padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  }

  .fixed-cta__button {
    min-height: 58px;
    gap: 5px;
    font-size: clamp(13px, 3.25vw, 17px);
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, 0.48),
      inset 0 -7px 14px rgba(0, 0, 0, 0.12),
      0 9px 0 rgba(0, 77, 142, 0.1),
      0 14px 24px rgba(0, 85, 160, 0.24);
  }

  .fixed-cta__button::after {
    width: 22px;
    height: 22px;
    font-size: 19px;
  }

  .fixed-cta__icon {
    min-width: 30px;
    height: 30px;
    padding: 0 4px;
    font-size: 0.68em;
  }

  .lp-section + .lp-section::before {
    top: -30px;
    height: 64px;
  }

  .lp-section:not(:last-child)::after {
    bottom: -24px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
