/* ページトップアイコン用CSS */
#pageTopIcon {
  position: fixed;
  right: 50px;
  bottom: 40px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
  transform: translateX(60px); /*右から出現*/
}
@media screen and (max-width: 768px) {
  #pageTopIcon {
    right: 10px;
  }
}
#pageTopIcon.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0); /*右から出現の為に0にする*/
}
#scrollToTopBtn {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: none;
  width: 66px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-direction: column;
}
#scrollToTopBtn:hover {
  background: #f0f0f0;
}
#scrollToTopBtn span {
  font-size: 2em;
  color: #333;
}
#scrollToTopBtn span.scroll-text {
  display: block;
  font-size: 0.8em;
  color: #333;
}
