span.menu-text{
  display: none;
}

#pageTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

#pageTop i {
  padding-top: 6px
}

#pageTop a {
  display: block;
  z-index: 999;
  padding: 5px 10px;
  border-radius: 5px;
  background-color: #314465;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

#pageTop a:hover {
  text-decoration: none;
  opacity: 0.7;
}
.nav-unshown {
    display: none;
}

@media screen and (max-width:500px){

  ul.topnav li{
    float: none;
  }

  ul.topnav li a {
    display: block;
    margin: 0 20px;
    padding: 15px 0 15px 10px;; /*15を変えることでメニューの高さが変わる 10を変えると左の隙間が変わる*/
    border-bottom: 1px solid #a9a9a9;
    text-align: left;
    text-decoration: none;
    color: black;
  }

  ul.topnav{
    background-color: #ffffff;
    margin-top: 50px;
  }

  header {
    padding: 10px 12px 23px;
    background: #d6d6d6b8;
    border-radius: 5px;
    position: fixed;
    top: 13px;
  }

  #nav-drawer {
    position: relative;
  }

  a.border {
    border-top: 1px solid #a9a9a9;
  }

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

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

  span.menu-text {
    display: block;
    position: absolute;
    top: 24px;
    left: -6px;
    font-weight: 600;
    background: none;
    color: #555555;
    font-size: 10px;
    width: 45px;
  }

  #nav-open span, #nav-open span:before, #nav-open span:after, #nav-close2 span:before, #nav-close2 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;
  }

  #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;
  }

  .close_btn{
    position: relative;
  }

  #nav-close2 {
    display: none;
    position: absolute;
    top: -23px;
    left: -5px;
    width: 26px;
    height: 20px;
    vertical-align: middle;
  }

  #nav-close2 span:before {
  bottom: -8px;
  background: #555;
  transform: rotate(-45deg);
  }
  #nav-close2 span:after {
    bottom: -8px;
    background: #555;
    transform: rotate(45deg);
  }

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

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

  #nav-input:checked ~ #nav-close2{
    display: inline-block;
    opacity: .5;
    z-index: 999;
  }

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