/* -----------------------------------------------------------
	 root
-------------------------------------------------------------- */
:root {
    --pink-bg: #fdf5f2;
    --blue-bg: #c4daee;
    --brown: #a4866c;
	--blue: #081941;
	--main-txt: #333;
}

/* -----------------------------------------------------------
    header
-------------------------------------------------------------- */
/*========= 上部固定させるためのCSS ===============*/
#header{
	height: 70px;/*高さ指定*/
	width:100%;/*横幅指定*/
}

#header .pc-header {
	/*以下はレイアウトのためのCSS*/
	display: flex;
	height: 70px;
	justify-content: space-between;
	align-items: center;
	background: var(--pink-bg);
	color: var(--blue);
	text-align: center;
	padding: 20px;
	box-shadow: 1px 3px 12px -5px #9b9797;
}

#header .sp-header {
	display: none;
} 

/*JSを使いfixedクラスが付与された際の設定*/
#header.fixed{
	position: fixed;/*fixedを設定して固定*/
  	z-index: 999;/*最前面へ*/
  	top:0;/*位置指定*/
  	left:0;/*位置指定*/
}

#header h1 img {
	width: 80px;
	object-fit: cover;
	object-position: center;
}


/*========= 以下は検証用のレイアウトのためのCSS ===============*/
nav ul{
	list-style: none;
	display: flex;
	justify-content: center;
}

nav ul li a{
	text-decoration: none;
	color: var(--blue);
	padding:10px;
	transition: .3s;
	font-weight: bold;
}

nav ul li a:hover {
	opacity: 0.7;
}

@media screen and (max-width: 667px){
	/*========= 上部固定させるためのCSS ===============*/
	#header{
		height: auto;/*高さ指定*/
	}

	#header .pc-header {
	/*以下はレイアウトのためのCSS*/
		display: none;
	}
	#header .sp-header {
		display: block;
	}

	#header h1 {
		position: absolute;
		top: 20px;
		left: 20px;
	}
	#header h1 img {
		width: 120px;
		object-fit: cover;
		object-position: center;
	}
	
	/*========= ナビゲーションのためのCSS ===============*/

	#g-nav{
		/*position:fixed;にし、z-indexの数値を大きくして前面へ*/
		position:fixed;
		z-index: 999;
		/*ナビのスタート位置と形状*/
		top:0;
		right: -120%;
		width:100%;
		height: 100vh;/*ナビの高さ*/
		background:var(--pink-bg);
		/*動き*/
		transition: all 0.6s;
	}

	/*アクティブクラスがついたら位置を0に*/
	#g-nav.panelactive{
		right: 0;
	}

	/*ナビゲーションの縦スクロール*/
	#g-nav.panelactive #g-nav-list{
		/*ナビの数が増えた場合縦スクロール*/
		position: fixed;
		z-index: 999; 
		width: 100%;
		height: 100vh;/*表示する高さ*/
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	/*ナビゲーション*/
	#g-nav ul {
		width: 100%;
		flex-direction: column;
		/*ナビゲーション天地中央揃え*/
		position: absolute;
		z-index: 999;
		top:50%;
		left:50%;
		transform: translate(-50%,-50%);
	}

	/*リストのレイアウト設定*/

	#g-nav li{
		list-style: none;
		text-align: center;
	}

	#g-nav li a{
		color: var(--brown);
		text-decoration: none;
		padding:10px;
		display: block;
		text-transform: uppercase;
		letter-spacing: 0.1em;
		font-weight: bold;
		font-size: 1.8rem;
		color: var(--blue);
	}

	/*========= ボタンのためのCSS ===============*/
	.openbtn{
		position:fixed;
		z-index: 9999;/*ボタンを最前面に*/
		top:10px;
		right: 10px;
		cursor: pointer;
		width: 50px;
		height:50px;
		background: var(--pink-bg);
		border-radius: 10px;
	}

	/*×に変化*/	
	.openbtn span{
		display: inline-block;
		transition: all .4s;
		position: absolute;
		left: 14px;
		height: 3px;
		border-radius: 2px;
		background: var(--blue);
		width: 45%;
	  }

	.openbtn span:nth-of-type(1) {
		top:15px;	
	}

	.openbtn span:nth-of-type(2) {
		top:23px;
	}

	.openbtn span:nth-of-type(3) {
		top:31px;
	}

	.openbtn.active span:nth-of-type(1) {
		top: 18px;
		left: 18px;
		transform: translateY(6px) rotate(-45deg);
		width: 30%;
	}

	.openbtn.active span:nth-of-type(2) {
		opacity: 0;
	}

	.openbtn.active span:nth-of-type(3){
		top: 30px;
		left: 18px;
		transform: translateY(-6px) rotate(45deg);
		width: 30%;
	}
	
}

/* -----------------------------------------------------------
    footer
-------------------------------------------------------------- */
#footer {
    position: relative;
    z-index: 2;
}
#footer .footer-box {
	background: var(--blue);
    color: #fff;
    display: block;
    text-align: center;
    padding: 20px;
}
#footer .footer-box a {
    color: #fff;
}
@media screen and (max-width: 667px){
	
}

/* -----------------------------------------------------------
    TOPへのリンク
-------------------------------------------------------------- */
/*リンクの形状*/
#page-top a{
	display: flex;
	justify-content:center;
	align-items:center;
	background: var(--blue);
	border-radius: 10px;
	width: 60px;
	height: 60px;
	color: #fff;
	border: solid 2px #fff;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	font-size: 1.6rem;
	transition:all 0.3s;
}

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

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

/*　左の動き　*/

#page-top.LeftMove{
	animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime{
  from {
    opacity: 0;
	transform: translateX(100px);
  }
  to {
    opacity: 1;
	transform: translateX(0);
  }
}

/*　右の動き　*/

#page-top.RightMove{
	animation: RightAnime 0.5s forwards;
}
@keyframes RightAnime{
  from {
  	opacity: 1;
	transform: translateX(0);
  }
  to {
  	opacity: 1;
	transform: translateX(100px);
  }
}
@media screen and (max-width: 667px){
	
}