/* グローバルメニュー */
.global-nav-header {
  display: inline-block;
}

.global-nav {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 29px 0 0;
  position: relative;
  display: inline-block;
  clear: both;
  float: right;
}

.global-nav .nav-list {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;

}

.global-nav .nav-list .nav-item {
}

.global-nav .nav-list .nav-item a {
/*  border-right: 1px solid #ccc; */
  color: #333;
  display: inline-block;
  padding: 0.6em 1.2em;
  text-align: center;
  text-decoration: none;
}
.global-nav .nav-list  .nav-item a:hover {
    color: #a51502 ;
}


.global-nav .nav-list .nav-item:nth-last-child(2) a {
  border-right: none;
  padding-right: 1em;
}
.global-nav .nav-list .nav-item:last-child a {
  font-size: 0.8em;
  color: #fff;
  margin: 5px 0 0 3em;
  padding: 0.3em 1em 0.7em 2.8em;
  background: url("../images/mark_siteback.jpg") 0 0 no-repeat;
}

/* サブナビゲーション */
@media screen and (min-width: 768px) {
  .nav-list {
    position: relative;
  }

  .nav-item_sub {
    background: #a51502;
    left: 0;
    margin: 0 calc(8% - 51vw);
    opacity: 0;
    position: absolute;
    top: 35px;
    transition: all 0.2s ease;
    visibility: hidden;
    width: 120vw;
    Z-index: 5;
  }
  .nav-item_sub_member {
    background: #a51502;
    left: 0;
    margin: 0 calc(8% - 51vw);
    opacity: 0;
    position: absolute;
    top: 35px;
    transition: all 0.2s ease;
    visibility: hidden;
    width: 120vw;
    Z-index: 5;
  }

  .nav-item_sub_member .inner ,
  .nav-item_sub .inner {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
  }

  .nav-item_sub_member .inner div ,
  .nav-item_sub .inner div {
    margin: 20px auto;
    display: flex;
    width: calc(100% / 2 - 20px);
    max-width: 1000px;
    background-color:#ffffff;
  }

  .nav-item_sub_member .inner div.sd_dv ,
  .nav-item_sub .inner div.sd_dv {
    align-items: center;
  }

  .nav-item_sub_member .inner div.sd_dv {
    margin:10px auto 5px;
}
  .nav-item_sub_member .inner div img ,
  .nav-item_sub .inner div img {
    width: 100%;
    max-width: 140px;
  }
  .global-nav .nav-list .nav-item_sub_member a ,
  .global-nav .nav-list .nav-item_sub a {
    text-align: left;
  }

  .nav-item:hover .nav-item_sub_member ,
  .nav-item:hover .nav-item_sub {
    opacity: 1;
    visibility: visible;
  }
}

/* SP時：ハンバーガーメニューボタン */
.global-nav-icon {
  display: none;
}

@media screen and (max-width: 768px) {
  .global-nav-header {
    height: 50px;
  }

  .global-nav .nav-list_member ,
  .global-nav .nav-list {
    background: rgba(135,26,32, 0.8);
    display: none;
    left: 50%;
    margin-top: 2px;
    padding: 10px;
    position: absolute;
    transform: translate(-50%, 0%);
    width: 100%;
  }
  .nav-item_sub_member .inner div ,
  .nav-item_sub .inner div {
    background: rgba(255,223,224, 0.8);
  }

  .nav-item_sub_member .inner div img ,
  .nav-item_sub .inner div img {
    display: none;
}
  .global-nav .nav-list .nav-item a {
    display: block;
    border-bottom: 1px solid #e0adae;
    border-right: none;
    color: #fff;
    padding: 1rem 1rem;
    text-align: left;
  }

.global-nav .nav-list  .nav-item a:visited ,
.global-nav .nav-list  .nav-item a:hover ,
.global-nav .nav-list  .nav-item a:active {
    color: #ffffff ;
}

  .global-nav .nav-list .nav-item:last-child a {
    background: initial;
    border-radius: initial;
    border-right: nonet;
    font-size: initial;
    margin: initial;
    padding: 1rem 1rem;

    border-bottom: 1px solid #e0adae;
  }

  .nav-item_sub_member .inner div.sd_dv ,
  .nav-item_sub .inner div.sd_dv {
    margin-top: -8px;
    align-items: center;
  }

  .nav-item_sub_member .inner div a ,
  .nav-item_sub .inner div a {
    border-bottom: 1px solid #871a20 !important;
    color: #333 !important;
}
  .nav-item_sub_member .inner div:last-child a ,
  .nav-item_sub .inner div:last-child a {
    border-bottom: none ;
}

  .global-nav-icon {
    color: #999;
    cursor: pointer;
    display: inline-block;
    font-size: 28px;
    position: absolute;
    right: 5px;
    top: 15px;
    z-index: 2;
  }
}

@media screen and (max-width: 768px) {
  .nav-item_sub_member ,
  .nav-item_sub {
    display: none;
  }

  .global-nav {
    margin: 0 0 0;
    height: 100%;
    left: 0;
    position: relative;
    top: 0;
    width: 100%;
  }

  .nav-list {
    height: 100vh;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }
}
