@charset "utf-8";

/*========= ナビゲーションのためのCSS ===============*/

#g-nav{
    /*position:fixed;にし、z-indexの数値を小さくして最背面へ*/
    position:
    fixed;
    z-index: -5;
    opacity: 0;/*はじめは透過0*/
    /*ナビの位置と形状*/
    top:0;
    width:100%;
    height: 0;/*ナビの高さ*/
    background: #009fb9f2;
    /*動き*/
    transition: all 0.3s;
    pointer-events: none;
}

/*アクティブクラスがついたら透過なしにして最前面へ*/
#g-nav.panelactive{
  opacity: 1;
  z-index: 999;
  height: 100%;
  min-height: 600px;
  pointer-events: inherit;
}

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

/*ナビゲーション*/
#g-nav ul {
    display: none;
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top: 160px;
    left: 0;
    right: 0;
    margin: auto;
    /* transform: translate(-50%,-50%); */
}

#g-nav.panelactive ul {
    display: block;
    padding: 0;
    margin: 0 auto;
    width: 90%;
}

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

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

#g-nav li a{
  color: #fff;
  text-decoration: none;
  padding:10px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 20px;
  transition: 0.5s;
  position:
  relative;
  border-bottom: 1px solid hsl(0deg 0% 70%);
}
#g-nav li a:hover{
 opacity:0.6;
}
#g-nav li a:before{
  content:
  "";
  position:
  absolute;
  width: 30px;
  height: 30px;
  /* background-color: #ccc; */
  right: 10px;
  background-position: center;
  background-image: url(../img/common/navi_link_wh.png);
  background-size: 21px;
  background-repeat: no-repeat;
}
#g-nav li a.search:before{
  content:
  "";
  position:
  absolute;
  width: 30px;
  height: 30px;
  /* background-color: #ccc; */
  right: 10px;
  background-position: center;
  background-image: url(../img/common/icon_search.png);
  background-size: 29px;
  background-repeat: no-repeat;
}
#g-nav li a.contact:before{
  content:
  "";
  position:
  absolute;
  width: 30px;
  height: 30px;
  /* background-color: #ccc; */
  right: 10px;
  background-position: center;
  /* background-image: url(../img/common/icon_mail_bk.png);*/
  background-size: 29px;
  background-repeat: no-repeat;
}
/*========= ボタンのためのCSS ===============*/
.openbtn1{
  position: absolute;
  z-index: 9999;/*ボタンを最前面に*/
  top: 6px;
  right: 0px;
  cursor: pointer;
  width: 110px;
  height: 80px;
  /* background-color: #fff; */
  border-left: 2px solid #ffffff;
}
  
/*×に変化*/  
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px;
    background-color: #ffffff;
    width: 45%;
  }

.openbtn1 span:nth-of-type(1) {
  top: 22px;
}

.openbtn1 span:nth-of-type(2) {
  top: 37px;
}

.openbtn1 span:nth-of-type(3) {
  top: 52px;
}
.openbtn1.active {
  border-left: none;
  height: 90px !important;
}
.openbtn1.active span:nth-of-type(1) {
    top: 33px !important;
    left: 3px;
    transform: translateY(6px) rotate(-45deg);
    width: 45%;
}

.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
  top: 37px !important;
}

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



/*========= レイアウトのためのCSS ===============*/

#header{
  width:100%;
  background:#333;
  color:#fff;
  text-align: center;
  padding: 20px;
}

