@charset "UTF-8";
header {
  position: fixed;
  top: 0;
  left: 0;
  height: 70px;
  width: 100%;
  background-color: #fff;
  z-index: 9999;
}
header:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(45deg, rgba(0, 70, 109, 1), rgba(7, 116, 139, 1), rgba(16, 250, 254, 1));
}
header h1 {
  margin: 0;
  width: 240px;
  position: absolute;
  top: 17px;
  left: 3%;
}
header h1 img {
  width: 100%;
}
/*----------------ナビ　メイン----------------*/
header nav {
  position: absolute;
  top: 16px;
  right: 3%;
}
header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}
header nav ul li {
  font-size: 15px;
  margin: 0 30px 0 0;
}
header nav ul li a {
  display: block;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  position: relative;
}
header nav ul li:not(.link) a:hover {
  opacity: 1;
}
header nav ul li:not(.link) a:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(45deg, rgba(0, 70, 109, 1), rgba(7, 116, 139, 1), rgba(16, 250, 254, 1));
  transition: all .3s;
  transform: scale(0, 1);
  transform-origin: left top;
}
header nav ul li:not(.link) a:hover:after {
  transform: scale(1, 1);
}
header nav ul li.link {
  width: 140px;
  margin: 0 0 0 10px;
}
header nav ul li.link a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 8px 0 9px;
  border-radius: 50px;
  text-align: center;
  background: linear-gradient(45deg, rgba(0, 70, 109, 1), rgba(7, 116, 139, 1), rgba(16, 250, 254, 1));
  background-position: 1% 50%;
  background-size: 200% auto;
  font-size: 14px;
}
header nav ul li.link a:hover {
  opacity: 1;
  background-position: 99% 50%;
}
/*----------------トグル----------------*/
.nav-toggle {
  display: none;
}
@media screen and (max-width:1050px) {
  header {
    height: 60px;
  }
  header h1 {
    width: 200px;
    position: absolute;
    top: 15px;
    left: 5%;
  }
  /*----------------ナビ　メイン----------------*/
  header nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, rgba(0, 70, 109, 0.9), rgba(7, 116, 139, 0.9), rgba(16, 250, 254, 0.9));
    display: none;
  }
  header nav ul {
    display: block;
    margin: 30px auto 0;
    height: 70%;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 0 5%;
  }
  header nav ul li {
    font-size: 18px;
  }
  header nav ul li a {
    padding: 10px 0;
    color: #fff;
  }
  header nav ul li a:after {
    display: none;
  }
  header nav ul li.link {
    width: 300px;
    margin: 15px auto;
  }
  header nav ul li.link:last-child {
    margin: 15px auto;
  }
  /*----------------トグル----------------*/
  .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;
    background: linear-gradient(45deg, rgba(0, 70, 109, 1), rgba(7, 116, 139, 1), rgba(16, 250, 254, 1));
    position: absolute;
    height: 3px;
    width: 30px;
    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: 24px;
  }
  .nav-toggle span:nth-child(2) {
    top: 34px;
  }
  .open .nav-toggle span:nth-child(1) {
    top: 29px;
    transform: rotate(-45deg);
  }
  .open .nav-toggle span:nth-child(2) {
    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;
    }
  }
}