@charset "utf-8";




/*========= TopPage===============*/
/*リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 20px;
	bottom:30px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(150px);
}



/*　To up　*/
#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(150px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　To　Down　*/
#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(150px);
  }
}

/*画像の切り替えと動き*/
#page-top a {
    /*aタグの形状*/
	display: block;
	width: 130px;
	height: 100px;
	color: #333;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.6rem;
/*img１*/
	background: url("../img/ukiwa_1.png") no-repeat center;
	background-size: contain;
}

#page-top.floatAnime a{
	width: 130px;
	height: 130px;
    /*img2*/
	background: url("../img/ukiwa_2.png") no-repeat center;
	background-size: contain;
    /*アニメーションの指定*/
	animation: floatAnime 2s linear infinite;
	opacity: 0;
}

@keyframes floatAnime {
  0% { transform: translateX(0); opacity: 0; }
  25% { transform: translateX(-6px);opacity: 1; }
  50% { transform: translateX(0) }
  100% { transform: translateX(6px);opacity: 1; }
}

/*Page Top　text　position*/
#page-top span{
    position: absolute;
    bottom: -20px;
    right: 20px;
	left: 10px;
	color: #666;
	
}

/*検証のためのCSS*/	
section{	
padding: 10px 0;	
}
