/* 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);
  height: 80px;
}

#top-head .logo {
  position: absolute;
  top: 25px;
  left: 70px;
  width: 200px;
}
.logo img {
  width: 100%;
  height: auto;
  margin: 0 auto 0;
}
/* Fixed */
#top-head.fixed {
  margin-top: 0;
  top: 0;
  position: fixed;
  height: 80px;
  background-size: 100%;
  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, 0.9);
}
.h_nav {
  display: block;
  position: absolute;
  top: 35px;
  right: 300px;
}
.h_nav_list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 auto;
  justify-content: flex-end;
}
.h_nav_list li {
  flex: 0 1 auto;
  justify-content: center;
  margin: 0 1em 0em;
  padding: 0;
  font-size: 1.6rem;
  letter-spacing: 1px;
}
.h_nav_list li a:link {
  color: #283A5B;
}
.h_nav_list li a:visited {
  color: #283A5B;
}
.h_nav_list li a:hover {
  color: #CF2242;
}
.h_login {
  position: absolute;
  top: 20px;
  right: 200px;
  width: 60px;
  line-height: 1.4;
}
.h_login img {
  width: 35px;
  margin: 0 auto 0.2em;
}
.h_login a {
  color: #283A5B;
}
.h_login p {
  font-size: 1.2rem;
}
.h_cart {
  position: absolute;
  top: 20px;
  right: 120px;
  width: 60px;
  line-height: 1.4;
}
.h_cart img {
  width: 35px;
  margin: 0 auto 0.2em;
}
.h_cart a {
  color: #283A5B;
}
.h_cart p {
  font-size: 1.2rem;
}
/*========= ナビゲーションのためのCSS ===============*/
#g-nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top: -120%;
  left: 0%;
  width: 100%;
  height: 100vh; /*ナビの高さ*/
  background: #283A5B;
  /*動き*/
  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:nth-child(2){
	font-size: 1.8rem;
}
#g-nav li:nth-child(3){
	font-size: 1.8rem;
}
#g-nav li:nth-child(4){
	font-size: 1.8rem;
	margin: 0 auto 2em;
}
#g-nav li a {
  text-decoration: none;
  padding: 7px;
  display: block;
  letter-spacing: 2px;
  position: relative;
  color: #fff;
}
#g-nav li a:visited {
  color: #fff;
}
#g-nav li a:hover {
  color: #CF2242;
}
#g-nav li img {
  width: 250px;
  margin-bottom: 3em;
}
.g-nav-btn {
  margin: 0.5em auto 0;
}
/*========= ボタンのためのCSS ===============*/
.openbtn {
  position: absolute;
  z-index: 9999; /*ボタンを最前面に*/
  top: 16px;
  right: 30px;
  cursor: pointer;
  width: 60px;
  height: 60px;
}
/*×に変化*/
.openbtn span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 14px;
  height: 2px;
  border-radius: 5px;
  background-color: #283A5B;
  width: 65%;
}
.openbtn span:nth-of-type(1) {
  top: 22px;
  width: 50%;
}
.openbtn span:nth-of-type(2) {
  top: 29px;
  width: 30%;
}
/*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
.openbtn.active span {
  background-color: #fff;
}
.openbtn.active span:nth-of-type(1) {
  top: 20px;
  left: 16px;
  transform: translateY(6px) rotate(-45deg);
  width: 35%;
}
.openbtn.active span:nth-of-type(2) {
  top: 32px;
  left: 16px;
  transform: translateY(-6px) rotate(45deg);
  width: 35%;
}
@media screen and (max-width: 768px) {

  #top-head .logo {
    top: 20px;
    left: 20px;
    width: 130px;
  }

  #top-head {
    position: fixed;
    min-width: 200px;
	   height: 60px;
  }
  #top-head.fixed {
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
  }
  .h_nav {
    display: none;
  }
  .h_login {
    position: absolute;
    top: 15px;
    right: 60px;
    width: 60px;
    font-size: 1.0rem;
  }
  .h_login p {}
  .h_cart {
    position: absolute;
    top: 15px;
    right: 115px;
    width: 60px;
    font-size: 1.0rem;
  }
  .h_cart p {}
  .g-nav-list_txt_in {
    height: 100vh;
  }
  .g-nav-logo {
    width: 200px;
    margin: 6em auto 2em;
  }
  .g-nav-list3alist li span {
    font-size: 2.0rem;
  }
  .g-nav-list3a {
    width: 100%;
  }
  .g-nav-list3b {
    width: 100%;
    padding: 0 0 30px 0;
  }
  .g-nav-list3c {
    width: 100%;
    padding: 30px 0 8em 0px;
    border-top: 1px solid #fff;
    border-left: none;
    box-sizing: border-box;
  }
  /*========= ナビゲーションのためのCSS ===============*/
  /*========= ボタンのためのCSS ===============*/
  .openbtn {
    top: 8px;
    right: 10px;
    width: 50px;
    height: 60px;
  }
}