.header{
  position: fixed;
  z-index: 100;
  background-color: #264F96;
  left: 0;
  top: 0;
  width: 100%;
  height: 60px;
}
.header_inner {
  position: relative;
  padding: 15px;
}
.logo{
  position: absolute;
  top: 0;
  left: 0;
  padding-top:12px;
}
.logoimg{
  height: 40px;
}


/* header固定のため余白をつける。メニューのCSSには関係ない */
.main{  
  margin-top: 60px;
}


@media screen and (max-width: 1040px) {
  .logo{
    padding-left:12px;
  }
}


  
@media only screen and (max-width: 768px) {
  .nav {
    position: fixed;
    right: -320px; /* 右から出てくる */
    top: 0;
    width: 300px; /* スマホに収まるサイズ */
    height: 100vh;
    padding-top: 60px;
    background-color: #fff;
    transition: all .6s;
    z-index: 200;
    overflow-y: auto; /* メニューが多くなったらスクロールできるように */
  }
  .hamburger {
    position: absolute;
    right: 15px;
    top: 8px;
    width: 40px; /* クリックしやすい幅 */
    height: 40px; /* クリックしやすい高さ */
    cursor: pointer;
    z-index: 300;
  }
  .nav_list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav_item {
    text-align: center;
    padding: 0 14px;
  }
  .nav_item a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
  }
  .nav_item a:hover {
    background-color: #eee;
  }
  .hamburger_border {
    position: absolute;
    left: 11px;
    width: 18px;
    height: 2px;
    background-color: #fff;
    transition: all .6s;
  }
  .hamburger_border_top {
    top: 14px;
  }
  .hamburger_border_center {
    top: 20px;
  }
  .hamburger_border_bottom {
    top: 26px;
  }
  .nav-open .hamburger_border{
    background-color: #222;
  }


  .black_bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    background-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all .6s;
    cursor: pointer;
  }

  /* 表示された時用のCSS */
  .nav-open .nav {
    right: 0;
  }
  .nav-open .black_bg {
    opacity: .8;
    visibility: visible;
  }
  .nav-open .hamburger_border_top {
    transform: rotate(45deg);
    top: 20px;
  }
  .nav-open .hamburger_border_center {
    width: 0;
    left: 50%;
  }
  .nav-open .hamburger_border_bottom {
    transform: rotate(-45deg);
    top: 20px;
  }
}/* sp */


.nav{
  font-size: 14px;
}


  
@media only screen and (min-width: 769px) {
  .header_inner{
    max-width: 1000px;
    width: 100%;
    padding: 17px 30px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .nav_list{
    text-align: right;
  }
  .nav_list li{
    display: inline-block;
    text-align: right;
    padding: 0 10px;
    border-left: rgba(255,255,255,0.2) 1px solid;
  }
  .nav_list li:last-child{
    padding-right: 0;
  }
  .nav_list li a{
    color: #fff;
    text-decoration: none;
  }
}


@media screen and (min-width: 961px) {
  .nav{
    font-size: 16px;
  }
  .nav_list li{
    padding: 0 20px;
    
  }
}