@charset "UTF-8";
header {
  position: fixed;
  top: 0;
  left: 0;
  height: 80px;
  z-index: 9999;
  width: 100%;
  border-bottom: solid 2px #111;
  background-color: #3d8dcc;
}
header h1 {
  margin: 0;
  width: 220px;
  position: absolute;
  top: 20px;
  left: 3%;
}
header h1 img {
  width: 100%;
}
/*----------------ナビ　メイン----------------*/
header nav {
  position: absolute;
  top: 18px;
  right: 2%;
}
header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
}
header nav ul li {
  font-size: 16px;
  margin: 0 0 0 30px;
}
header nav ul li a {
  display: block;
  text-decoration: none;
  color: #fff;
  position: relative;
}
header nav ul li a:hover {
  opacity: 1;
}
header nav ul li:not(.contact) a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: all .3s;
  transform: scale(0, 1);
  transform-origin: center top;
}
header nav ul li:not(.contact) a:hover:after {
  transform: scale(1, 1);
}
header nav ul li.contact {
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  width: 150px;
}
header nav ul li.contact a {
  padding: 10px 0 11px;
  color: #111;
  background-color: #febe69;
}
header nav ul li.contact a:hover {
  opacity: 0.8;
}
/*----------------トグル----------------*/
.nav-toggle {
  display: none;
}
@media screen and (max-width:1050px) {
  header {
    height: 70px;
  }
  header h1 {
    width: 190px;
    position: absolute;
    top: 17px;
    left: 3%;
  }
  /*----------------ナビ　メイン----------------*/
  header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: rgba(61, 141, 204, 0.9);
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
  }
  header nav ul {
    display: block;
    width: auto;
    margin: 80px auto 0;
    height: 70%;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    text-align: center;
  }
  header nav ul li {
    font-size: 18px;
    margin: 0 auto;
  }
  header nav ul li a {
    padding: 15px 0;
  }
  header nav ul li:not(.contact) a:after {
    display: none;
  }
  header nav ul li.contact {
    width: 200px;
    margin: 20px auto 0;
  }
  header nav ul li.contact a {
    padding: 10px 0 12px;
  }
  /*----------------トグル----------------*/
  .nav-toggle {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 9999;
    overflow: hidden;
  }
  .nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 30px;
    background: #fff;
    left: 20px;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
  }
  .nav-toggle span:nth-child(1) {
    top: 25px;
  }
  .nav-toggle span:nth-child(2) {
    top: 35px;
  }
  .nav-toggle span:nth-child(3) {
    top: 45px;
  }
  .open .nav-toggle span:nth-child(1) {
    top: 35px;
    transform: rotate(-45deg);
  }
  .open .nav-toggle span:nth-child(2) {
    left: 50%;
    opacity: 0;
    animation: active-menu-bar02 .8s forwards;
  }
  .open .nav-toggle span:nth-child(3) {
    top: 35px;
    transform: rotate(45deg);
  }
  .open nav {
    opacity: 1;
    pointer-events: auto;
    animation-duration: 0.6s;
    animation-name: slide-down;
  }
  @keyframes slide-down {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}