@charset "utf-8";

/*========= ページトップのためのCSS ===============*/

/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background: rgb(146, 154, 171,0.8);
/*	border-radius: 50%;*/
	width: 30px;
	height: 30px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.9rem;
    line-height: 1em;
	transition: all 0s;/*all 0.3s;*/
}

#page-top a:hover{
	background: rgb(146, 154, 171,0.8);
}

/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 30px;
	bottom:50px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}

@media screen and (min-width: 992px) {
	#page-top {
        position: fixed;
        right: 100px;
        bottom:50px;
        z-index: 2;
        /*はじめは非表示*/
        opacity: 0;
        transform: translateY(100px);
    }
    
    #page-top a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
	
/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 0.5s forwards; /*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);
  }
}
