@charset "UTF-8";
/* CSS Document */
#btn_pagetop {
  position: fixed;
  right: 10px;
  opacity: 0;
  z-index: 2;
}
#btn_pagetop a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  padding-top: 1em;
  background: #fff;
  border: 3px solid #2485d7;
  border-radius: 50%;
  font-size: 12.8px;
  color: #2485d7;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase; 
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.3s;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.3);
}
#btn_pagetop a::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  margin: auto;
  width: 9px;
  height: 9px;
  border-top: solid 2px #2485d7;
  border-right: solid 2px #2485d7;
  transform: rotate(-45deg);
  transition: all 0.3s;
}
#btn_pagetop a:hover {
  border: min(.306vw,3px) solid #1badff;
  color: #1badff;
}
#btn_pagetop a:hover::before {
  border-top: solid 2px #1badff;
  border-right: solid 2px #1badff;
}
#btn_pagetop.UpMove {
  animation: UpAnime 0.5s forwards;
}
  @keyframes UpAnime {
    from { opacity: 0;}
    to { opacity: 1;}
  }
#btn_pagetop.DownMove {
  animation: DownAnime 0.5s forwards;
}
  @keyframes DownAnime{
    from { opacity: 1;}
    to { opacity: 0;}
  }

@media screen and (max-width:680px) {
#btn_pagetop {
  right: 1vw;
}
#btn_pagetop a {
  width: min(16vw,80px);
  height: min(16vw,80px);
  border: min(.6vw,3px) solid #2485d7;
  font-size: min(3vw,12.8px);
}
#btn_pagetop a::before {
  top: min(2.2vw,11px);
  margin: auto;
  width: min(1.4vw,9px);
  height: min(1.4vw,9px);
  border-top: solid min(.5vw,2px) #2485d7;
  border-right: solid min(.5vw,2px) #2485d7; 
}




}





