@charset "UTF-8";
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 80px;
  z-index: 9999;
}
header h1 {
  width: 180px;
  height: 180px;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  background-color: #fff;
  padding: 0 5px;
}
header h1 img {
  width: 100%;
}
/*----------------ナビ　メイン----------------*/
header nav {
  position: absolute;
  top: 40px;
  right: 5%;
}
header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  font-family: shippori-antique, sans-serif;
  font-weight: 400;
  font-style: normal;
}
header nav ul li {
  font-size: 18px;
  letter-spacing: 2px;
  padding: 0 0 0 40px;
  writing-mode: vertical-rl;
}
header nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  position: relative;
}
header nav ul li a:hover {
  opacity: 1;
  color: #ed250e;
}
header nav ul li a:after {
  content: '';
  position: absolute;
  top: 0;
  right: -5px;
  width: 1px;
  height: 100%;
  background: #ed250e;
  transition: all .3s;
  transform: scale(1, 0);
  transform-origin: left top;
}
header nav ul li a:hover:after {
  transform: scale(1, 1);
}
header.scroll-nav nav ul li a {
  color: #111;
}
header.scroll-nav nav ul li a:hover {
  color: #ed250e;
}
/*----------------トグル----------------*/
.nav-toggle {
  display: none;
}
@media screen and (max-width:1050px) {
  header h1 {
    width: 100px;
    height: 100px;
    padding: 0 3px;
  }
  /*----------------ナビ　メイン----------------*/
  header nav {
    opacity: 0;
  }
  header nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: -1;
    opacity: 0;
    transition: all .3s;
    pointer-events: none;
  }
  header nav ul {
    display: block;
    margin: 100px auto 0;
    height: 70%;
    overflow-x: hidden;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding: 0 10%;
    position: relative;
    z-index: 1;
  }
  header nav ul li {
    font-size: 18px;
    margin: 30px auto;
    padding: 0;
    writing-mode: horizontal-tb;
  }
  header nav ul li a {
    display: block;
    color: #111;
  }
  header nav ul li a:after {
    display: none;
  }
  header nav span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 80px;
    margin: auto;
    width: 10px;
    height: 10px;
    background-color: #ed250e;
  }
  header nav span:before {
    content: "";
    position: absolute;
    left: -25px;
    right: auto;
    bottom: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: #77b351;
  }
  header nav span:after {
    content: "";
    position: absolute;
    left: auto;
    right: -25px;
    bottom: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: #316a4a;
  }
  /*----------------トグル----------------*/
  .nav-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 3%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #77B351;
    border: solid 2px #111;
    cursor: pointer;
    z-index: 9999;
    overflow: hidden;
  }
  .nav-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 30px;
    background-color: #fff;
    left: 15px;
    -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;
  }
  .open .nav-toggle span:nth-child(1) {
    top: 30px;
    transform: rotate(-35deg);
  }
  .open .nav-toggle span:nth-child(2) {
    top: 30px;
    transform: rotate(35deg);
  }
  .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);
    }
  }
}