@charset "UTF-8";
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  height: 150px;
  z-index: 9999;
}
header h1 {
  margin: 0;
  width: 150px;
  height: 150px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  padding: 10px 20px;
}
header h1 img {
  width: 100%;
}
/*----------------ナビ　メイン----------------*/
header nav {
  position: fixed;
  top: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background-color: #fff100;
  overflow: hidden;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
}
header nav:after {
  content: "";
  width: 2000%;
  height: 2000%;
  background-image: url("../img/bg_logo_yellow.png");
  background-size: 200px;
  background-position: center;
  background-repeat: repeat;
  animation: bgscroll 300s linear infinite;
  position: absolute;
  top: -1000%;
  left: -1000%;
  z-index: 1;
  transform: rotate(-30deg);
}
header nav ul {
  margin: 0;
  padding: 0 15%;
  list-style: none;
  width: 100%;
  height: 90%;
  max-height: 500px;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
header nav ul li {
  width: 47%;
  position: relative;
  padding-left: 20px;
}
header nav ul li:before {
  position: absolute;
  top: 33px;
  left: 0;
  width: 0;
  height: 0;
  content: '';
  border: 5px solid transparent;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  border-left-color: #e60012;
}
header nav ul li a {
  display: block;
  text-decoration: none;
  padding: 20px 0;
  font-size: 24px;
  font-weight: 700;
  color: #172a88;
}
header figure {
  width: 200px;
  position: absolute;
  right: 10%;
  bottom: 50px;
  z-index: 2;
}
header .entry a {
  display: block;
  text-decoration: none;
  background-color: #e60012;
  border: solid 3px #fff;
  color: #fff;
  text-align: center;
  border-radius: 50px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 5px;
  writing-mode: vertical-rl;
  padding: 20px 0;
  line-height: 80px;
  width: 80px;
  height: 240px;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 2%;
  margin: auto;
}
/*----------------トグル----------------*/
.nav-toggle {
  display: block;
  position: fixed;
  top: 30px;
  right: 2%;
  width: 80px;
  height: 80px;
  cursor: pointer;
  background-color: #e60012;
  border-radius: 80px;
  z-index: 9999;
  overflow: hidden;
}
.nav-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 30px;
  background-color: #fff;
  left: 25.5px;
  -webkit-transition: .35s ease-in-out;
  -moz-transition: .35s ease-in-out;
  transition: .35s ease-in-out;
}
.nav-toggle span:nth-child(1) {
  top: 35px;
}
.nav-toggle span:nth-child(2) {
  top: 45px;
}
.open .nav-toggle span:nth-child(1) {
  top: 40px;
  transform: rotate(-35deg);
}
.open .nav-toggle span:nth-child(2) {
  top: 40px;
  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);
  }
}
@media screen and (max-width:1050px) {
  header {
    height: 80px;
  }
  header h1 {
    width: 70px;
    height: 70px;
    padding: 5px 10px;
  }
  /*----------------ナビ　メイン----------------*/
  header nav:after {
    background-size: 150px;
  }
  header nav ul {
    margin: 90px auto 0;
    padding: 0 5%;
    list-style: none;
    width: 100%;
    height: 55%;
    max-height: 55%;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }
  header nav ul li {
    width: 100%;
    padding-left: 15px;
  }
  header nav ul li:before {
    position: absolute;
    top: 20px;
    left: 0;
    width: 0;
    height: 0;
    content: '';
    border: 4px solid transparent;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-left-color: #e60012;
  }
  header nav ul li a {
    padding: 10px 0;
    font-size: 18px;
  }
  header figure {
    width: 100px;
    position: absolute;
    right: 3%;
    bottom: 180px;
  }
  header .entry a {
    font-size: 20px;
    letter-spacing:normal;
    writing-mode: horizontal-tb;
    padding: 13px 0 15px;
    line-height: normal;
    width: 240px;
    height: auto;
    position: fixed;
    top: auto;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: auto;
  }
  /*----------------トグル----------------*/
  .nav-toggle {
    position: fixed;
    top: 10px;
    right: 3%;
    width: 60px;
    height: 60px;
    border-radius: 60px;
  }
  .nav-toggle span {
    position: absolute;
    left: 15px;
  }
  .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;
  }
  .open .nav-toggle span:nth-child(2) {
    top: 29px;
  }
}