/* CSS Document */

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

#page-top a::after{
    position: absolute;
    content: '';
    display: block;
    width: 12px;
    aspect-ratio: 1 / 1;
    transform: rotate(-45deg);
    border-right: 1px solid #b9b9b9;
    top: 6px;
    right: 9px;
}


#page-top a::before{
    position: absolute;
    content: '';
    display: block;
    width: 1px;
    height: 92%;
    border-right: 1px solid #b9b9b9;
    top: 3px;
    right: 15px;
}

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

#page-top a span{
    writing-mode: vertical-lr;
}

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

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom: 10px;
	z-index: 10;
    /*はじめは非表示*/
	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 a:hover{
		animation: none;
	}
	
	#page-top {
		bottom: 90px;
	}

	
}


@media(max-width:450px){
	
	#page-top {
    	right: 5px;
	}
	
	#page-top a {
    	width: 50px;
    	height: 60px;
    	font-size: 0.6rem;
	}
	
}
