@charset "UTF-8";
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 70px;
  z-index: 9999;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  background-color: #fff;
}
header.scroll-nav {
  height: 70px;
  background-color: rgba(255, 255, 255, 1);
  transition: all .3s;
  box-shadow: 0 0 10px #aaa;
}
header h1 {
  margin: 6px 0 0 2%;
  display: flex;
  align-items: center;
}
header .logo {
  width: 80px;
}
header .logo img {
  width: 100%;
}
/*----------------ナビ　メイン----------------*/
header nav {
  display: flex;
  margin-right: 3%;
}
header nav ul {
  margin: 0;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: right;
  align-items: center;
}
header nav ul li {
  position: relative;
}
header nav ul li:first-child:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1px;
  height: 14px;
  background-color: #fff;
}
header nav ul li:after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1px;
  height: 14px;
  background-color: #fff;
}
header nav ul li a {
  display: block;
  text-decoration: none;
  color: #fff;
  margin: 0 20px;
  font-size: 15px;
}
header nav ul li a:hover {
  opacity: 1;
  color: #3995c0;
}
header.scroll-nav nav ul li a {
  color: #000;
}
header.scroll-nav nav ul li a:hover {
  opacity: 1;
  color: #3995c0;
}
header.scroll-nav nav ul li:first-child:before {
  background-color: #ccc;
}
header.scroll-nav nav ul li:after {
  background-color: #ccc;
}
/*----------------トグル----------------*/
.nav-toggle {
  display: none;
}
@media screen and (max-width:1050px) {
  header {
    height: 60px;
  }
  header.scroll-nav {
    height: 60px;
  }
  header .logo img {
    width: 70px;
  }
  header nav {
    display: none;
  }
  /*----------------ナビ　メイン----------------*/
  header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(45deg, rgba(49, 77, 131, 0.9), rgba(57, 149, 192, 0.9), rgba(238, 149, 121, 0.9));
    display: none;
  }
  header nav ul {
    display: block;
    width: auto;
    margin: 80px auto 0;
    height: 70%;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 0 10%;
  }
  header nav ul li {
    position: static;
  }
  header nav ul li:first-child:before {
    display: none;
  }
  header nav ul li:after {
    display: none;
  }
  header nav ul li a {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    padding: 20px 0;
    border-bottom: solid 1px #fff;
  }
  header nav ul li a:hover {
    opacity: 0.8;
    color: #fff;
  }
  header.scroll-nav nav ul li a {
    color: #fff;
  }
  header.scroll-nav nav ul li a:hover {
    opacity: 0.8;
    color: #fff;
  }
  /*----------------トグル----------------*/
  .nav-toggle {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 70px;
    height: 60px;
    cursor: pointer;
    z-index: 9999;
    overflow: hidden;
  }
  .nav-toggle span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 35px;
    background-color: #fff;
    left: 15px;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
  }
  header.scroll-nav .nav-toggle span {
    background-color: #3995c0;
  }
  .nav-toggle span:nth-child(1) {
    top: 19px;
  }
  .nav-toggle span:nth-child(2) {
    top: 29px;
  }
  .nav-toggle span:nth-child(3) {
    top: 39px;
  }
  .open .nav-toggle span {
    background-color: #fff !important;
  }
  .open .nav-toggle span:nth-child(1) {
    top: 29px;
    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: 29px;
    transform: rotate(45deg);
  }
  .open nav {
    display: block;
    animation-duration: 0.6s;
    animation-name: fade-in;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}