/* header */
#top-head {
  width: 100%;
  top: 0;
  position: fixed;
  margin-top: 0;
  padding: 10px 0 10px;
  z-index: 999;
  background: rgba(255, 255, 255, 1.0);
  height: 80px;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  min-width: 1200px;
}
#top-head .logo {
  position: absolute;
  top: 20px;
  left: 130px;
  width: 200px;
  text-align: left;
  line-height: 1.5;
  letter-spacing: 4px;
}
#top-head .logo span {
  font-weight: 700;
  color: #e50012;
  font-size: 2.5rem;
  letter-spacing: 0;
}
.logo img {
  width: 100%;
  height: auto;
  margin: 0 auto 0;
}
/* Fixed */
#top-head.fixed {
  margin-top: 0;
  top: 0;
  position: fixed;
  height: 80px;
  transition: top 0.65s ease-in;
  -webkit-transition: top 0.65s ease-in;
  -moz-transition: top 0.65s ease-in;
  background: rgba(255, 255, 255, 1);
}

.h_sns {
	 position: absolute;
  top: 28px;
  right: 130px;
  width: 150px;
  line-height: 1.4;
  z-index: 9999;
  font-size: 2.5rem;
	text-align: right;
}
.h_sns a {
  margin: 0 10px;
	color: #e50012;
}
.h_sns a:visited {
  color: #e50012;
  text-decoration: none;
}
.h_sns a:hover {
  color: #5d61ab;
  text-decoration: none;
}

.h_contact {
  position: absolute;
  top: 28px;
  right: 130px;
  width: 100px;
  line-height: 1.4;
  z-index: 9999;
  font-size: 1.6rem;
}
.h_nav {
  display: block;
  position: absolute;
  top: 22px;
  right: 250px;
}
.h_nav_list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 auto 0em;
  justify-content: center;
}
.h_nav_list li {
  flex: 0 1 auto;
  justify-content: center;
  margin: 0 1.5em 0em;
  padding: 0;
  font-size: 1.4rem;
  letter-spacing: 2px;
  line-height: 1.5;
}
.h_nav_list li a span {
  font-weight: 700;
  font-size: 2.0rem;
  color: #e50012;
}
/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top: -120%;
  left: 0%;
  width: 100%;
  height: 100vh; /*ナビの高さ*/
  background: #fdf2ef;
  /*動き*/
  transition: all 0.6s;
}
/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive {
  top: 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 {
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}
/*リストのレイアウト設定*/
#g-nav li {
  list-style: none;
  text-align: center;
}
#g-nav li a span {
  font-weight: 700;
  font-size: 2.0rem;
  color: #e50012;
}
#g-nav li a {
  text-decoration: none;
  padding: 8px;
  display: block;
  letter-spacing: 2px;
  position: relative;
}
#g-nav li a:hover {
  color: #e50012;
}
#g-nav li img {
  width: 150px;
  margin-bottom: 3em;
}
#g-nav li:first-child{
	margin: 0 auto 2em;
}
#g-nav li:first-child a span {
  font-size: 2.5rem;
}
.g-nav-btn {
  margin: 2em auto 0;
}
/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: absolute;
  z-index: 9999; /*ボタンを最前面に*/
  top: 22px;
  right: 50px;
  cursor: pointer;
  width: 60px;
  height: 60px;
}
/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  right: 14px;
  height: 2px;
  border-radius: 5px;
  background-color: #e50012;
  width: 65%;
}
.openbtn span:nth-of-type(1) {
  top: 13px;
}
.openbtn span:nth-of-type(2) {
  top: 24px;
}
.openbtn span:nth-of-type(3) {
  top: 35px;
}
/*
.openbtn span:nth-of-type(3)::after {
  content: "menu"; /*3つ目の要素のafterにMenu表示を指定
  position: absolute;
  top: 5px;
  left: 0px;
  color: #5F5F5F;
  font-size: 1.1rem;
  letter-spacing: 1.4px;
}
*/
/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
.openbtn.active span {}
.openbtn.active span:nth-of-type(1) {
  top: 14px;
  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: 26px;
  left: 18px;
  transform: translateY(-6px) rotate(45deg);
  width: 30%;
}
/*
.openbtn.active span:nth-of-type(3)::after {
  content: "close"; /*3つ目の要素のafterにClose表示を指定
  transform: translateY(0) rotate(-45deg);
  top: 5px;
  left: 12px;
  width: 200%;
}
*/
@media screen and (max-width: 768px) {
  .logo img {
    width: 100%;
    height: auto;
  }
  #top-head .logo {
    top: 12px;
    width: 150px;
    left: 20px;
    letter-spacing: 3px;
  }
  #top-head .logo span {
    font-size: 2.3rem;
  }
  #top-head {
    position: fixed;
    min-width: 200px;
    padding: 10px 0;
    height: 60px;
  }
  #top-head.fixed {
    height: 60px;
  }
	.h_sns {
  top: 20px;
  right: 70px;
  width: 150px;
		
}
	
  .h_contact {
    position: absolute;
    top: 25px;
    right: 80px;
    width: 100px;
    font-size: 1.2rem;
  }
  .h_nav {
    display: none;
  }
  /*========= ナビゲーションのためのCSS ===============*/
  /*========= ボタンのためのCSS ===============*/
  .openbtn {
    top: 5px;
    right: 5px;
    width: 60px;
    height: 60px;
  }
  .openbtn span:nth-of-type(3)::after {
    top: 8px;
    left: 0px;
  }
  .openbtn.active span:nth-of-type(3)::after {
    top: 13px;
    left: 10px;
  }
}