@charset "utf-8";


/*デザインA：リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background:#ff6c27;
	border-radius: 30px;
	width: 60px;
	height: 60px;
	color: #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size:0.7rem;
	font-weight: bold;
	transition:all 0.3s;
        font-family: 游ゴシック体, 游ゴシック, "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Meiryo, メイリオ, Verdana, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}



#page-top a::before {
    /* ④絶対必要 */
    content: "";
    display: block;

    /* ⑤三角のサイズ */
    width: 10px;
    height: 10px;

    /* ⑥三角の線と回転角度 */
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(-45deg);

}




	
	

/*デザインA：リンクを右下に固定*/
#page-top {
	position: fixed;
	right: 10px;
	bottom:10px;
	z-index: 2;
    /*はじめは非表示*/
	opacity: 0;
	transform: translateY(100px);
}



/*ホバーアクションをPCだけにしたい場合、←のメディアクエリで囲む*/
@media (hover: hover) and (pointer: fine) {
  #page-top a:hover {
	background: #999;
    opacity: 1;
  }
}

/*IE11用に以下のコードも追加*/
@media (-ms-high-contrast: none), (-ms-high-contrast: active) {
   #page-top a:hover {
	background: #999;
    opacity: 1;
  }
}



/*　デザインA：上に上がる動き　*/

#page-top.UpMove{
	animation: UpAnime 0.5s forwards;
}
@keyframes UpAnime{
  from {
    opacity: 0;
	transform: translateY(100px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　デザインA：下に下がる動き　*/

#page-top.DownMove{
	animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}


/* 1100px以下のとき非表示に */
@media screen and (max-width: 1100px) {
  #page-top {
    display: none;
  }
}

