/* GOTO TOP — floating center (all pages) */

body .l-footer-totop {
  position: fixed;
  top: auto;
  left: 50%;
  right: auto;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 790;
  margin: 0;
  padding: 0;
  overflow: visible;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body .l-footer-totop.is-shown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body .l-footer-totop.is-flying {
  transition: none !important;
}

body .l-footer-totop > .btn.js-gotoTopBtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: auto;
  height: auto;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  overflow: visible;
}

body .l-footer-totop > .btn.js-gotoTopBtn > span.js-gotoTopBtn-txt {
  font-family: Outfit, Montserrat, Chillax, Pretendard, sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 11px;
  line-height: 100%;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  display: block;
  width: auto;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

body .l-footer-totop-rocket {
  position: relative;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
  display: block;
  overflow: visible;
}

body .l-footer-totop-rocket > .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
}

body .l-footer-totop-rocket > .bg > img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  border: 0;
}

body .l-footer-totop-rocket > .bg > img.i0 {
  width: 100%;
  height: 100%;
}

body .l-footer-totop-rocket > .bg > img.i1 {
  width: 36px;
  top: 41px;
  left: 37px;
}

body .l-footer-totop-rocket > .bg > img.i2 {
  width: 48px;
  top: 45px;
  left: 0;
}

body .l-footer-totop-rocket > .bg > img.i3 {
  top: 7px;
  left: 31px;
  width: 14px;
}

body .l-footer-totop-rocket > .rocket {
  position: absolute;
  top: -28px;
  left: 14px;
  width: 48px;
  z-index: 2;
  will-change: transform;
  overflow: visible;
}

body .l-footer-totop-rocket > .rocket > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
  will-change: transform;
}

@media (max-width: 750px) {
  body .l-footer-totop {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  body .l-footer-totop > .btn.js-gotoTopBtn > span.js-gotoTopBtn-txt {
    font-size: 2.6vw;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }

  body .l-footer-totop-rocket {
    width: 17vw;
    height: 17vw;
    margin-bottom: 1.8vw;
  }

  body .l-footer-totop-rocket > .bg {
    width: 17vw;
    height: 17vw;
  }

  body .l-footer-totop-rocket > .bg > img.i1 {
    width: 8vw;
    top: 9.2vw;
    left: 8.3vw;
  }

  body .l-footer-totop-rocket > .bg > img.i2 {
    width: 10.8vw;
    top: 10vw;
    left: 0;
  }

  body .l-footer-totop-rocket > .bg > img.i3 {
    width: 3vw;
    top: 1.7vw;
    left: 7vw;
  }

  body .l-footer-totop-rocket > .rocket {
    width: 10.6vw;
    top: -6.2vw;
    left: 3.1vw;
  }
}
