header{
  /* float:left; */
  display:inline-block;
  position:absolute;
}
nav{
    /* position: absolute; */
    clear:right;
    float:right;
    width:0px;
    height:460px;
    /* display:none; */
    /* top:70px; */
    overflow: hidden;
    z-index: 10;
    /* margin-top: 70px; */
    transition:all 1s;
}
nav.active{
  width:300px;
}
nav ul{
	list-style: none;
}

nav li{
    background-color:  rgb(209, 248, 209);
    box-shadow: 0 -1px 0 #dddddd;
}
nav li ul{
    background:  white;
}
nav li ul li{
    background-color: white;
    box-shadow: 0 -1px 0 #dddddd;
}
nav a{
    text-transform: none;
    text-decoration: none;
}
#gnavi{
  position: relative;
  width:300px;
  left:300px;
  transition:all 1s;
  z-index:10;
   /* display: none; */
/* visibility: hidden; */
}
#gnavi.active{
  /* visibility: visible; */
/* display:block; */
  transform: translateX(-300px);
}

.openbtn4{
    position: relative;/*ボタン内側の基点となるためrelativeを指定*/
    top:10px;
    clear:right;
    float:right;
    background:rgb(231, 248, 231);
    cursor: pointer;
      width: 50px;
      height:50px;
    border-radius: 5px;
    z-index:10;
  }
  
  /*ボタン内側*/
  .openbtn4 span{
      display: inline-block;
      transition:all .4s;/*top .4s,transform 0.4s 0.4s*/
      /*アニメーションの設定*/
      position: absolute;
      left: 14px;
      height: 2px;
      border-radius: 5px;
      background:darkgreen;
    /* background: #fff; */
      width: 45%;
    }
  
  
  .openbtn4 span:nth-of-type(1) {
    top:13px; 
  }
  
  .openbtn4 span:nth-of-type(2) {
    top:19px;
  }
  
  .openbtn4 span:nth-of-type(3) {
    top:25px;
  }
  
  .openbtn4 span:nth-of-type(3)::before {
    content:"Menu";/*3つ目の要素のafterにMenu表示を指定*/
    position: absolute;
    top:5px;
    left:-2px;
    /* color: #fff; */
    color:darkgreen;
    font-size: 0.6rem;
    text-transform: uppercase;
  }
  
  /*activeクラスが付与されると線が回転して×になり、Menu⇒Closeに変更*/
  .openbtn4.active span{
    transition:transform 0.4s 0.4s ,top .4s;
  }
  .openbtn4.active span:nth-of-type(1) {
      top:19px;  
    /* top: 14px; */
      /* left: 18px; */
      transform: rotate(-45deg);
      /* width: 30%; translateY(6px) */
  }
  
  .openbtn4.active span:nth-of-type(2) {
    opacity: 0;
  }
  
  .openbtn4.active span:nth-of-type(3){
      top:19px;  
    /* top: 26px; */
      /* left: 18px; */
      transform:  rotate(45deg);
      /*translateY(-6px) width: 30%; */
  }
  
  .openbtn4.active span:nth-of-type(3)::before {
    content:"Close";/*3つ目の要素のafterにClose表示を指定*/
      transform: translateY(0) rotate(-45deg); 
    top:5px;
    left:4px;
  }
  