/*ヘッダーまわりはサイトに合わせて調整してください*/

#nav-drawer {
  width: 100%;
  position: relative;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}
@media (min-width: 1025px) {
  #nav-drawer {
    display: none;
  }
}


/*チェックボックス等は非表示に*/
.nav-unshown {
  display:none;
}

/*アイコンのスペース*/
#nav-open {
  position: fixed;
  right: 0;
  top: 0;
  display: inline-block;
  width: 30px;
  height: 22px;
  vertical-align: middle;
  margin: 5px 0px 0px 10px;
}

@media (max-width: 640px) {
  #nav-open {
    width: 30px;
    height: 22px;
    margin: 5px 0px 0px 10px;
  }
}
@media (min-width: 641px) {
  #nav-open {
    width: 60px;
    height: 44px;
    margin: 10px 0px 0px 10px;
  }
}


/*ハンバーガーアイコンをCSSだけで表現*/
#nav-open span,
#nav-open span:before,
#nav-open span:after {
  position: absolute;
  height: 3px;/*線の太さ*/
  width: 40px;/*長さ*/
  border-radius: 5px;
  background: #6cb92c;
  display: block;
  content: '';
  cursor: pointer;
}
#nav-open span:before {
  bottom: -12px;
}
#nav-open span:after {
  bottom: -24px;
}

@media (min-width: 641px) {
  #nav-open span,
  #nav-open span:before,
  #nav-open span:after {
    position: absolute;
    height: 4px;/*線の太さ*/
    width: 50px;/*長さ*/
    border-radius: 6px;
    background: #6cb92c;
    display: block;
    content: '';
    cursor: pointer;
  }
  #nav-open span:before {
    bottom: -16px;
  }
  #nav-open span:after {
    bottom: -32px;
  }
}


/*閉じる用の薄黒カバー*/
#nav-close {
  display: none;/*はじめは隠しておく*/
  position: fixed;
  z-index: 99;
  top: 0;/*全体に広がるように*/
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  transition: .3s ease-in-out;
}

/*中身*/
#nav-content {
  overflow: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;/*最前面に*/
  width: 80%;/*右側に隙間を作る（閉じるカバーを表示）*/
  max-width: 700px;/*最大幅（調整してください）*/
  height: 1200px;
  font-size: 110%;
  line-height: 140%;
  letter-spacing: 2px;
  text-align: left;
  padding: 5px 0px 0px 20px;
  background: #dbebc4;
  opacity: 1;
  transition: .3s ease-in-out;/*滑らかに表示*/
  -webkit-transform: translateX(-105%);
  transform: translateX(-105%);/*左に隠しておく*/
}

#nav-content ul {
  width: 80%;
  margin: 0px auto 0px auto;
  padding: 0px 0px 0px 0px;
}

#nav-content li {
  list-style-type: none;
  text-align: center;
  font-size: 1.5rem;
  border-style: solid;
  border-color: silver;
  border-width: 1px;
  border-radius: 100vh;
  margin: 0px 0px 10px 0px;
  padding: 5px 0px 5px 0px;
}

#nav-content li a {
  text-decoration: none;
}

#nav-content li a:visited,
#nav-content li a:link {
  color: #000000;
  }
#nav-content li a:hover,
#nav-content li a:active {
  color: #800000;
}


/*チェックが入ったらもろもろ表示*/
#nav-input:checked ~ #nav-close {
  display: block;/*カバーを表示*/
  opacity: .5;
}

#nav-input:checked ~ #nav-content {
  -webkit-transform: translateX(0%);
  transform: translateX(0%);/*中身を表示（右へスライド）*/
  box-shadow: 6px 0 25px rgba(0,0,0,.15);
}
