.gotop{
  display: flex;
  position: fixed;
  visibility: hidden;
  flex-direction: column;
  justify-content: center;

  bottom: 2vw;
  right: 2vw;
  height: 10vw;
  width: 9.5vw;
  max-height: 60px;
  max-width: 55px;

  background-color: #00000000;
  color: var(--color-black);
  font-size: 1.5rem;
  text-align: center;
  text-justify: center;
  border: var(--border-thin);
  cursor: pointer;
  z-index: var(--z-gotop);
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 var(--color-black);
}

.gotop:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--color-black);
}

.gotop:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--color-black);
}
.gotop span {
  display: inline-flex;
  align-self: center;
}
.gotop span svg {
  display: none;
}
.gotop span::after {
  content: '';
  display: inline-block;
  width: 16px; /* Reduced width */
  height: 20px; /* Keep height the same */
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 284.929 284.929"%3E%3Cg%3E%3Cpath d="M282.082,195.285L149.028,62.24c-1.901-1.903-4.088-2.856-6.562-2.856s-4.665,0.953-6.567,2.856L2.856,195.285 C0.95,197.191,0,199.378,0,201.853c0,2.474,0.953,4.664,2.856,6.566l14.272,14.271c1.903,1.903,4.093,2.854,6.567,2.854 c2.474,0,4.664-0.951,6.567-2.854l112.204-112.202l112.208,112.209c1.902,1.903,4.093,2.848,6.563,2.848 c2.478,0,4.668-0.951,6.57-2.848l14.274-14.277c1.902-1.902,2.847-4.093,2.847-6.566 C284.929,199.378,283.984,197.188,282.082,195.285z" fill="%23000000" stroke="%23000000" stroke-width="6"/%3E%3C/g%3E%3C/svg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.gotop--show {
  visibility: visible;
  opacity: 1;
}

.gotop--mobile {
  /* top: 3vw; */
  /* right: calc(3vw + 9.5vw + 2rem); */
  height: calc(10vw * 1.0);
  width: calc(9.5vw * 1.0);
  max-height: calc(60px * 1.3);
  max-width: calc(55px * 1.3);

  line-height: 40px;
  font-size: 20px;
}

/* アニメーション */
.gotop{
  --anm-duration: 0.4s;
}
.gotop--anm-fade-in {
  animation: gotopFadeIn var(--anm-duration) ease-out forwards;
}
.gotop--anm-fade-out {
  animation: gotopFadeOut var(--anm-duration) ease-out forwards;
}

@keyframes gotopFadeIn {
  0% {
    transform: translateY(-30px);
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1; /* 不透明にする */
    visibility: visible;
  }
}
@keyframes gotopFadeOut {
  0% {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translateY(-20px);
    opacity: 0;
  }
}