/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	width: 40px;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	transition:all 0.3s;
	opacity: 1;
}


#page-top img{
	width: 40px;
}

#page-top a:hover{
	transform: translateY(15px);
}

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

/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 1s 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);
  }
}



/* --------- Tab --------- */
@media only screen and (min-width:601px) and (max-width:1099px) {

/*ボタンサイズ*/
#page-top img{
	width: 40px;
}

/*ボタン位置*/
#page-top {
	right: 25px;
	bottom:50px;
}
}


/* --------- SP --------- */
@media only screen and (max-width: 600px) {

	/*ボタンサイズ*/
#page-top img{
	width: 36px;
}

/*ボタン位置*/
#page-top {
	right: 4%;
	bottom:70px;
}
}