@charset "utf-8";

/*========= ページトップのためのCSS ===============*/

/*リンクの形状*/
#page-top a {
	display: flex;
	justify-content:center;
	align-items:center;
	background:#e0ecff;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	color: #333;
	border: 0.5px solid #333;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:1.5rem;
	transition: all 0s;/*all 0.3s;*/
}
/*リンクの形状*/
#blog-link a {
	display: flex;
	/*justify-content:center;
	align-items:center;*/
	background-color:rgba(204,154,255,1.0);
	border-radius: 0.25em;
	width: 2em;
	line-height: 1.1em;
	padding: 0.75em 0.5em;
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-size: 120%;
	font-weight: bold;
	transition: all 0s;/*all 0.3s;*/
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
}

#page-top a:hover {
	background: #777;
}

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

/*リンクを右下に固定*/
#blog-link {
	position: fixed;
	right: 0px;
	bottom:180px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}
@media screen and (min-width: 992px) {
	#page-top {
	position: fixed;
	right: 50px;
	bottom:50px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}
	#blog-link {
	position: fixed;
	right: 0px;
	bottom:200px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}
}
	
/*　上に上がる動き　*/

#page-top.UpMove, #blog-link.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, #blog-link.DownMove {
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}
