@charset "utf-8";

/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background: #f5952c;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.9rem;
	letter-spacing: 0.1em;
	transition:all 0.3s;
	font-weight: bold;
}
#page-top a:active {
    background: #ff8a09; 
}
@media screen and (min-width: 768px) {
#page-top a{
	width: 80px;
	height: 80px;
	font-size:0.9rem;
}
#page-top a:hover{
	background: #ffe9d1;
	color: #ff8a09;
}
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 15px;
	bottom:10px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

/*　上に上がる動き　*/

#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);
  }
}
