#header {
  position: absolute;
  top: 46px;
  background: #000000;
  transition: .4s;
  z-index: 9999;
}

#header.fixed {
  position: fixed;
  top: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, .125);
}

#header.hidd {
  top: -61px;
}

#header.fixed.hidd {
  position: fixed;
  box-shadow: none;
}

@media screen and (max-width: 599px) {
  #header {
    top: 65px;
  }
}



/* glbnav */
#header #glbnav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: #000;
  width: 100%;
  height: 60px;
  margin: 0 auto;
  transition: 0;
}

#header #glbnav a {
  font-family: "UD Shin Go Conde90 B", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

#header #glbnav #logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 40px;
  transition: 0s;
}

#header.fixed #glbnav #logo {
  margin-left: 80px;
}

#header.fixed hidd #glbnav #logo {
  opacity: 0;
}

#header #glbnav #logo strong img {
  height: 26px;
}

#header #glbnav #logo:hover strong img {
  opacity: .7;
}

#header #glbnav #site_name {
  font-family: "UD Shin Go Conde90 B", sans-serif;
  color: #fff;
  font-size: 18px;
  margin-left: 40px;
}

#header #glbnav #glbnavlist {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 545px;
  height: 60px;
}

#header #glbnav #glbnavlist li {
  position: relative;
}

#header #glbnav #glbnavlist li a {
  font-size: 14.4px;
}

#header #glbnav #glbnavlist::after,
#header #glbnav #glbnavlist li::before {
  content: "";
  display: block;
  position: absolute;
  left: -90px;
  top: 0;
  bottom: 0;
  height: 18px;
  margin: auto 0;
  border-left: solid 1px #000;
}

#header #glbnav #glbnavlist li:first-of-type::before,
#header #glbnav #glbnavlist::after {
  content: none;
}

#header #glbnav #inquiry {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #FF8C00;
  width: 287px;
  height: 60px;
  font-family: noto-sans-cjk-jp, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  line-height: 2.2;
}



/* hidden spnav */
#spnav {
  display: none;
  opacity: 0;
  transition: .5s;
}

#nav_switch {
  display: none;
}


@media screen and (max-width: 812px) {

  /* iphone 横向きまで対応させる */
  /*@media screen and (max-width: 767px) {*/
  /* header */
  #header {
    background: #333;
  }

  #header #glbnav,
  #header #glbnav #logo,
  #spnav,
  #spnav .inner,
  #spnav .inner #spnavlist,
  #spnav .inner #spinquiry {
    width: 100%;
    color: #fff;
  }

  #spnav .inner #spnavlist li a,
  #spnav .inner #spinquiry {
    display: block;
    color: #fff;
    width: 100%;
    padding: 8px;
    text-align: center;
  }

  #header #glbnav #glbnavlist,
  #header #glbnav #inquiry,
  #main #mainheader #orange {
    display: none;
  }

  #header #glbnav #logo strong img,
  #header #glbnav #logo strong {
    height: 26px;
  }

  #header #glbnav #logo,
  #header #glbnav {
    position: relative;
    height: 60px;
    z-index: 998;
  }

  #header #glbnav #logo,
  #header.fixed #glbnav #logo {
    width: 100%;
  }


  /* spnav */
  #spnav {
    display: block;
    position: absolute;
    top: 0;
    left: -100%;
    height: 100vh;
    opacity: 1;
    transition: .3s;
  }

  #header.open #spnav {
    left: 0;
    background: rgba(0, 0, 0, .8);
  }

  #spnav .inner {
    padding: 100px 0 0;
  }



  /* nav_switch */
  #nav_switch {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 30px;
    height: 100%;
    margin: auto;
    z-index: 999;
  }

  #nav_switch .inner {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 2px;
    background: #fff;
    width: 100%;
    height: 3px;
    margin: auto;
  }

  #nav_switch .inner::before,
  #nav_switch .inner::after {
    content: "";
    position: absolute;
    border-radius: 2px;
    background: #fff;
    width: 100%;
    height: 100%;
    transition: .3s;
  }

  #nav_switch .inner::before {
    top: -9px;
  }

  #nav_switch .inner::after {
    bottom: -9px;
  }

  #header.open #nav_switch .inner {
    background: rgba(255, 255, 255, 0);
  }

  #header.open #nav_switch .inner::before,
  #header.open #nav_switch .inner::after {
    top: 0;
    bottom: 0;
    margin: auto;
  }

  #header.open #nav_switch .inner::before {
    transform: rotate(45deg);
  }

  #header.open #nav_switch .inner::after {
    transform: rotate(-45deg);
  }
}



/* 資料ページの文字サイズとレイアウトに合わせる */
#header {
  width: 100%;
}

#header a {
  text-decoration: none;
}

#header #spnavlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

#header #spnav {
  font-size: 16px;
  visibility: hidden;
}

#header.open #spnav {
  visibility: visible;
}

#header #logo strong {
  display: block;
}

#header #logo strong img {
  width: auto;
}

#nav_switch {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#header+.l-main {
  margin-top: 70px;
}

.excursion {
  flex-shrink: 0;
}

@media screen and (max-width: 812px) {
  #header #glbnav #logo {
    margin-left: 0;
  }
}
/* 他のヘッダー用スタイルとの競合を防ぐ。 */
@media screen and (max-width: 812px) {
  #header { height: 60px; padding: 0; }
  #header #glbnav { position: relative; top: 0; left: 0; padding: 0; margin: 0; opacity: 1; transform: none; pointer-events: auto; height: 60px; }
  #header #glbnav #logo { width: 100%; margin: 0; padding: 0 64px; }
  #header #glbnav #logo strong { display: block; height: 26px; }
  #header #glbnav #logo strong img { display: block; width: auto; height: 26px; max-width: 100%; }
  #header #nav_switch { top: 0; bottom: auto; left: 12px; width: 44px; height: 60px; margin: 0; }
  #header #nav_switch .inner { left: 7px; right: auto; width: 30px; height: 3px; padding: 0; border: 0; }
  #header #nav_switch .inner::before,
  #header #nav_switch .inner::after { left: 0; right: auto; width: 100%; }
  #header #spnav { top: 0; padding: 0; margin: 0; transform: none; opacity: 1; pointer-events: none; height: 100dvh; overflow-y: auto; }
  #header.open #spnav { pointer-events: auto; }
  #header #spnav .inner { width: 100%; padding: 80px 16px 24px; margin: 0; }
  #header #spnavlist { display: block; width: 100%; margin: 0; padding: 0; list-style: none; }
  #header #spnavlist li { width: 100%; margin: 0; padding: 0; }
  #header #spnavlist li a,
  #header #spinquiry { font-size: 16px; line-height: 1.5; }
}