@charset "utf-8";
/* CSS Document */

/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:top;
	padding-top: 25px;
	background:#333;
	border-radius: 5px;
	width: 40px;
	height: 65px;
	color: #fff;
	text-align: center;
	text-decoration: none;
	transition:all 0.3s;
	opacity: 75%;
	z-index: 10000;
}
#page-top a img{
	width: 18px;
	height: 12px;
}
#page-top a:hover{
	background: #777;
}



@media(min-width:769px) {
#page-top a{
	width: 40px;
	height: 64px;
	padding-top: 22px;
	}
#page-top a img{
	width: 20px;
	height: 15px;
}
}








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

@media(min-width:769px) {
#page-top {
	right: 40px;
}
}











/*　上に上がる動き　*/

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

/*　下に下がる動き　*/

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