@charset "UTF-8";

.navham{
  position: fixed;
  width: 34px;
  height: 34px;
  top: 5px;
  right: 5px;
  display: none;
  background: #f5e3bc;
  z-index: 99;
  border: solid #ddd 2px;
  border-radius: 3px;
}
    @media screen and (max-width: 767px) {
      .navham{
        display: grid;
        place-items: center;
      }
    }
.navham li{
    line-height: 2;
}
.navham a{
  text-decoration: none;
  color: #333;
}
.navham .navtp a{
color: #965501;
}
.navham .navtp{
    margin-top: 5%;
    font-weight: bold;
    padding-bottom: 1%;
    border-bottom: dashed #965501 2px;
    margin-bottom: 1%;
    color: #965501;
}
#nav-drawer {
  position: relative;
  width: 25px;
}

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

/*アイコンのスペース*/
#nav-open {
  display: inline-block;
  width: 30px;
  height: 22px;
  vertical-align: middle;
}

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

/*閉じる用の薄黒カバー*/
#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;
  overflow: hidden;
}

/*中身*/
#nav-content {
  overflow: auto;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;/*最前面に*/
  width: 80%;/*右側に隙間を作る（閉じるカバーを表示）*/
  max-width: 330px;/*最大幅（調整してください）*/
  height: 100%;
  background: #fff;/*背景色*/
  transition: .8s ease-in-out;/*滑らかに表示*/
  -webkit-transform: translateX(200%);
  transform: translateX(200%);/*左に隠しておく*/
  padding: 2%;
}

/*チェックが入ったらもろもろ表示*/
#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);
}
