/*------------------------------------
スクロールトップ用CSS
------------------------------------*/
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  opacity: 0;
  visibility: hidden; 
  transition: opacity .5s, visibility .5s;
  white-space: nowrap;
}
.scroll-top.scroll-view {
  opacity: 1;
  visibility: visible;
}
.scroll-top span {
  text-decoration: none;
  color: var(--color-white);
  font-size: 0.8rem;
  display: block;
  transition: all .3s;
  width: 60px;
  height: 60px;
  background-color: var(--color-black);
  border-radius: 50%;
  border: 1px solid var(--color-white);
  padding-top: 15px;
  text-align: center;
  cursor: pointer;
}
.scroll-top span:hover {
  background-color: var(--color-main);
}
.scroll-top span::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid var(--color-white);
  border-right: 1px solid var(--color-white);
  transform: translateX(-50%) rotate(45deg);
}
.scroll-top.js-pagetop span {
  padding-top: 25px;
}
.scroll-top.js-pagetop span::before {
  transform: translateX(-50%) rotate(-135deg);
  top: 18px;
}

@media only screen and (max-width: 1080px) {

}

@media only screen and (max-width: 767px) {
  .scroll-top {
    right: 10px;
    bottom: 50px;
  }
  .scroll-top span {
    width: 50px;
    height: 50px;
    font-size: 0.7rem;
    padding-top: 10px;
  }
  .scroll-top span::before {
    top: 26px;
  }
  .scroll-top.js-pagetop span {
    padding-top: 21px;
  }
  .scroll-top.js-pagetop span::before {
    top: 14px;
  }
}
