/*
** The Header Media Queries **
** Tweak as per your needs **
*/

.site-header {
  position: fixed;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: #000;
  width: 100vw;
  height:104px;
  z-index: 10;
  border-top:6px solid #005eae;
}


header h1 a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap:24px;
  color:#fff;
  font-size:19px;
  white-space:nowrap;
  font-weight:600;
}

header h1 a span {
  width:1px;
  height:24px;
  background:#fff;
}

header h1 img {
  position:relative;
  top:-4px;
  width: 222px;
  min-width:120px;
  object-fit:contain;
}

  .nav__wrapper {
    display: flex;
    gap:2.4rem;
  }

.nav__wrapper li.active a {
  color: #005eae;
}

.nav__item a {
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  height:100%;
  white-space:nowrap;
  font-size:14px;
}

.nav__item.contact a {
  background: #005eae;
  color: #fff;
  padding: 1.3rem 2rem;
  margin-right: 0;
  font-size: 15px;
}


.dropdown__lists {
  display: none;
  width: fit-content;
  position: absolute;
  top: 85px;
  margin: 0 0 0 -2em;
  background-color: #5a5b60;
  opacity: 0.9;
  padding: 1.2em 0;
}

.dropdown__lists_home {
  margin: 0 0 0 -4.5em;
}

.gnavi__list:hover .dropdown__lists {
  display: block;
}

.dropdown__list {
  height: fit-content;
  transition: all .3s;
  position: relative;
}


.dropdown__list:hover {
  background-color: #666;
}

.dropdown__list a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 0.5em 1.5em;
  margin: 0 !important;
}

.dropdown__list a:hover {
  opacity: 0.6;
}

@media (max-width: 1279px) {
  header h1 a {
    gap:1rem;
    font-size:1rem;

  }
  header h1 img {
    width:160px;
    top:-1px;
  }
    .nav__wrapper {
    gap:1rem;
  }
}

@media (max-width: 1079px) {
.nav__item a {
  font-size:0.8rem;
}
  .nav__item.contact a {
  background: #005eae;
  color: #fff;
  padding: 1.4rem 1rem;
  font-size: 0.8rem;
}
}


@media (min-width: 960px) {
  .site-header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 100vw;
  }

.nav_mail_icon {
  display: block;
  margin: 0 auto;
  width: 28px;
  margin-top: 9px;
  margin-bottom: 2px;
}

  #nav-toggle {
  display: none;
}
}

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

  .site-header {
    height:64px;
  }
  .site-header__wrapper {
    margin:0;
  }

    .nav__wrapper {
    display: block;
    position: absolute;
    top: 100%;
    height: 100vh;
    right: 0;
    left: 0;
    padding-bottom: 200px;
    overflow-y: scroll;
    z-index: 10;
    color: #fff;
    background-color: #000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  }

  .nav__wrapper.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .nav_mail_icon {
    display:none;
  }

  header nav ul.nav__wrapper .gnavi__list:after {
    content: "";
    display: inline-block;
    background: url("../common/images/arrow_wh.png") no-repeat;
    background-size: contain;
    width: 13px;
    height: 20px;
    position: absolute;
    top: 11%;
    right: 5.3333333333vw;
    transform: translateY(-50%);
  }

  header nav ul.nav__wrapper .gnavi__list:first-child::after {
    content: "";
    display: inline-block;
    background: url("../common/images/arrow_wh.png") no-repeat;
    background-size: contain;
    width: 13px;
    height: 20px;
    position: absolute;
    top: 13%;
    right: 5.3333333333vw;
    transform: translateY(-50%);
  }

  .dropdown__lists {
    display: block;
    width: 100%;
    position: static;
    top: 85px;
    margin: 0 0 0 0em;
    font-weight: 300;
    font-size: 1em;
    background-color: #000;
    padding: 0;
  }

  .dropdown__list {
    background-color: #000;
  }

  .nav__wrapper.active {
    font-weight: 600;
  }

  header nav ul.nav__wrapper li {
    margin-right: auto;
    border-bottom: 1px solid #fff;
    text-align: left;
    position: relative;
  }

  header nav ul.nav__wrapper .dropdown__list {
    margin-right: auto;
    border-top: 1px solid #fff;
    text-align: left;
    position: relative;
    border-bottom: none;
  }

  header nav ul.nav__wrapper li:after {
    content: "";
    display: inline-block;
    background: url("../common/images/arrow_wh.png") no-repeat;
    background-size: contain;
    width: 13px;
    height: 20px;
    position: absolute;
    top: 50%;
    right: 5.3333333333vw;
    transform: translateY(-50%);
  }

  header nav ul.nav__wrapper li a {
    display: block;
    padding: 1rem 1.5rem;
  }

  header nav ul.nav__wrapper .dropdown__list a {
    padding: 1rem 2.5rem;
  }

  header nav ul.nav__wrapper li a p {
    margin-left: 5px;
    margin-left: 5px;
    display: inline;
    position: relative;
    top: 7px;
  }

  header nav ul.nav__wrapper .contact a {
    padding: 1rem 1.5rem;
    background: #000;
  }

  #nav-toggle {
    display: block;
    position: absolute;
    right:0;
    top: -2px;
    width: 64px;
    height: 60px;
  padding: 13px 10px;
  background: #005eae;
    cursor: pointer;
    z-index: 101;
  }
  #nav-toggle div {
  position: relative;
}
  #nav-toggle span {
    display: block;
    position: absolute;
    height: 4px;
    width: 80%;
    background: #fff;
    left: 4px;
    transition: 0.35s ease-in-out;
  }

  #nav-toggle span:nth-child(1) {
    top: 4px;
  }

  #nav-toggle span:nth-child(2) {
    top: 15px;
  }

  #nav-toggle span:nth-child(3) {
    top: 26px;
  }

  #nav-toggle.open span:nth-child(1) {
    top: 15px;
    transform: rotate(315deg);
  }

  #nav-toggle.open span:nth-child(2) {
    width: 0;
    left: 50%;
  }

  #nav-toggle.open span:nth-child(3) {
    top: 15px;
    transform: rotate(-315deg);
  }


}
@media screen and (max-width: 480px) {
  header h1 a {
    gap:20px;
  }
header h1 img {
  width:140px;
  top:4px;
}
}

@media screen and (max-width: 345px) {
header h1 a {
  gap:16px;
  font-size:14px;
}
}


/*JSを使いfixedクラスが付与された際の設定*/
header.fixed {
  width: 100%;
  position: fixed;
  /*fixedを設定して固定*/
  z-index: 999;
  /*最前面へ*/
  top: 0;
  /*位置指定*/
  left: 0;
  /*位置指定*/
}