.sp-sticky-cta {
  display: none;
}

@media (max-width: 600px) {
  .sp-sticky-cta {
    position: fixed;
    z-index: 1200;
    right: max(7px, env(safe-area-inset-right));
    bottom: max(7px, env(safe-area-inset-bottom));
    left: max(7px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    gap: 5px;
    height: 62px;
    padding: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(100% + max(14px, env(safe-area-inset-bottom))));
    transition: opacity 180ms ease-out, transform 220ms cubic-bezier(.2, .78, .25, 1);
  }

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

  .sp-sticky-cta__button {
    position: relative;
    display: block;
    min-width: 0;
    height: 62px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 17px;
    isolation: isolate;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    transition: transform 115ms ease-out, filter 180ms ease-out;
  }

  .sp-sticky-cta__button::before,
  .sp-sticky-cta__button::after {
    position: absolute;
    content: "";
    pointer-events: none;
  }

  .sp-sticky-cta__button::before {
    z-index: -1;
    inset: 3px 4px auto;
    height: 43%;
    border-radius: 14px 14px 50% 50%;
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.03));
    opacity: .88;
  }

  .sp-sticky-cta__button::after {
    z-index: 3;
    inset: 0;
    border: 2px solid rgba(109, 231, 255, .74);
    border-radius: inherit;
    box-shadow: inset 0 0 8px rgba(255,255,255,.85);
  }

  .sp-sticky-cta__mail {
    color: #06295d;
    background:
      radial-gradient(130% 90% at 14% 0%, rgba(255,255,255,.98) 0 34%, rgba(235,249,255,.86) 54%, transparent 72%),
      linear-gradient(118deg, #fdfefe 0%, #e5f7ff 55%, #36b9f4 77%, #006ae6 100%);
    box-shadow: 0 4px 12px rgba(0, 113, 218, .28), inset 0 -5px 11px rgba(0, 112, 230, .22);
  }

  .sp-sticky-cta__line {
    color: #fff;
    background:
      radial-gradient(110% 100% at 15% -18%, rgba(96,255,145,.86) 0 18%, rgba(16,211,76,.42) 44%, transparent 64%),
      linear-gradient(152deg, #14d84e 0%, #06b63b 48%, #008f2c 100%);
    box-shadow: 0 4px 12px rgba(0, 169, 54, .3), inset 0 -6px 12px rgba(0, 104, 34, .25);
  }

  .sp-sticky-cta__line::after {
    border-color: rgba(193, 255, 211, .92);
    box-shadow: inset 0 0 8px rgba(255,255,255,.72);
  }

  .sp-sticky-cta__icon,
  .sp-sticky-cta__copy {
    position: absolute;
    z-index: 2;
    pointer-events: none;
  }

  .sp-sticky-cta__icon {
    top: 50%;
    object-fit: contain;
    transform: translateY(-50%);
  }

  .sp-sticky-cta__mail .sp-sticky-cta__icon {
    left: 10px;
    width: 31px;
    height: 31px;
    filter: drop-shadow(0 2px 3px rgba(0, 83, 187, .14));
  }

  .sp-sticky-cta__line .sp-sticky-cta__icon {
    left: 2px;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 3px rgba(0, 84, 27, .18));
  }

  .sp-sticky-cta__copy {
    top: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-50%);
    font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1;
    text-align: center;
  }

  .sp-sticky-cta__copy small,
  .sp-sticky-cta__copy strong {
    display: block;
    margin: 0;
    white-space: nowrap;
  }

  .sp-sticky-cta__mail .sp-sticky-cta__copy {
    right: 10px;
    left: 44px;
    gap: 5px;
  }

  .sp-sticky-cta__mail small {
    color: #17446f;
    font-size: clamp(9px, 2.55vw, 10px);
    font-weight: 700;
    letter-spacing: .03em;
  }

  .sp-sticky-cta__mail strong {
    color: #0875df;
    font-size: clamp(15px, 4.2vw, 16.5px);
    font-weight: 900;
    letter-spacing: -.025em;
    text-shadow: 0 1px 0 #fff;
  }

  .sp-sticky-cta__line .sp-sticky-cta__copy {
    right: 2px;
    left: 35px;
    gap: 2px;
  }

  .sp-sticky-cta__line strong {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.075em;
    text-shadow: 0 1px 2px rgba(0, 83, 26, .34);
  }

  .sp-sticky-cta__line small {
    color: rgba(255,255,255,.96);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.075em;
    text-shadow: 0 1px 2px rgba(0, 83, 26, .32);
  }

  .sp-sticky-cta__button:active {
    transform: scale(.98);
    transition-duration: 70ms;
  }

  .sp-sticky-cta__button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }

  @media (max-width: 374px) {
    .sp-sticky-cta {
      grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    }

    .sp-sticky-cta__mail .sp-sticky-cta__icon {
      left: 8px;
      width: 29px;
      height: 29px;
    }

    .sp-sticky-cta__mail .sp-sticky-cta__copy {
      left: 39px;
    }

    .sp-sticky-cta__line .sp-sticky-cta__icon {
      left: 2px;
      width: 32px;
      height: 32px;
    }

    .sp-sticky-cta__line .sp-sticky-cta__copy {
      left: 35px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-sticky-cta,
  .sp-sticky-cta__button {
    transition-duration: 1ms !important;
  }

  .sp-sticky-cta__button:active {
    transform: none !important;
  }
}
