/* CSS Document */

#page-top{
	position: absolute;
    bottom: 0;
    right: 20px;
}

#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	border-radius: 5px;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
	transition:all 0.3s;
	position: relative;
}

#page-top a::after{
	position: absolute;
	content: '';
	display: block;
	width:40%;
	aspect-ratio:1/1;
	transform: rotate(-45deg);
	border-top:1px solid #ccc;
	border-right:1px solid #ccc;
	bottom: 15px;
}


#page-top a::before{
	position: absolute;
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #aaa;
    bottom: 10px;
}

#page-top a:hover::after{
	animation: loop2 800ms linear infinite;
}

@keyframes loop2 {
	
	0%{transform: translateY(0) rotate(-45deg);}
	50%{transform: translateY(-10px) rotate(-45deg);}
  100%{transform: translateY(0) rotate(-45deg);}
}

@media(max-width:1200px){
	#page-top a:hover::after{
		animation: none;
	}
}



/*　下に下がる動き　*/

#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}



@media(max-width:800px){
	
	#page-top {
		right: 10px;
    	bottom: 10px;
	}
	
	#page-top a {
    	width: 40px;
		height: 40px;
	}
	
}

