/* CSS Document */

#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 #808080;
	border-right:1px solid #808080;
	bottom: 15px;
}


#page-top a::before{
	position: absolute;
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #808080;
    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);}
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 30px;
	bottom:18px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

/*　上に上がる動き　*/

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

/*　下に下がる動き　*/

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



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