@charset "utf-8";




#pagetop {
	position: fixed;
z-index: 999;
opacity: 0;
transform: translateX(100px);
display: block;
cursor: pointer;
right: 20px;
bottom: 250px;
font-size:16px;
  writing-mode: vertical-rl;
}
#pagetop a{
	display: inline-block;
  font-weight: bold;
  transition:all 0.3s;
  color: #444;
/*   width: 100px;
  height:100px; */
  border-radius:100px;
  box-sizing:border-box;
  text-decoration: none;
  padding: 3em 0;
  position:relative;
  text-align: center;
/*   background-color:rgba(33%,33%,33%,0.85); */
}
#pagetop a span{
    position: absolute;
    top: 20px;
    left: 70%;
    width: 15px;
    height: 15px;
    margin-left: -10px;
    border-left: 1px solid #333;
    border-bottom: 1px solid #333;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    -webkit-animation: sdb 2s infinite;
    animation: sdb 2s infinite;
    opacity: 0;
    box-sizing: border-box;
}
#pagetop a:hover {
    text-decoration: none;
  color: #000;
  transition:all 0.3s;
  font-size: 18px;
/*     background: #929292; */
}
/*　左の動き　*/

#pagetop.LeftMove{
	animation: LeftAnime 0.5s forwards;
  }
  
  @keyframes LeftAnime{
	from {
	  opacity: 0;
	transform: translateX(130px);
	}
	to {
	  opacity: 1;
	transform: translateX(0);
	}
  }
  
  /*　右の動き　*/
  
  #pagetop.RightMove{
	animation: RightAnime 0.5s forwards;
  }
  @keyframes RightAnime{
	from {
	  opacity: 1;
	transform: translateX(0);
	}
	to {
	  opacity: 1;
	transform: translateX(130px);
	}
  }
  
  @-webkit-keyframes sdb {
	0% {
	  opacity: 0;
	}
	50% {
	  opacity: 1;
	}
	100% {
	  opacity: 0;
	}
  }
  @keyframes sdb {
	0% {
	  opacity: 0;
	}
	50% {
	  opacity: 1;
	}
	100% {
	  opacity: 0;
	}
  }
/* ページTOPへ戻るボタン */


@media screen and (max-width:640px) {
    #pagetop {
        bottom: 170px;
        right: 10px;
    }
    #pagetop a:hover {
      font-size: 16px;
    }
} 





