input {
  position: fixed;
  opacity: 0;
}

label {
  position: absolute;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}

label::before {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(18, 67, 100, 0.6);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

label .burgerbox {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 3;
  width: 75px;
  height: 75px;
  margin: 0;
  background-color: #004588;
}

label .burger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 35px;
  height: 34px;
  margin: 0;
  padding: 0;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

label .burger::before,
label .burger .bar, label .burger::after {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 12%;
  background: white;
  content: "";
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

label .burger .bar {
  top: 44%;
}

label .burger::before {
  top: 0;
  transform-origin: top left;
}

label .burger::after {
  bottom: 0;
  transform-origin: bottom left;
}

input:focus+label .burger,
label:hover .burger {
  /*opacity: 0.75;*/
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: flex-start;
  transform: translate3d(0, 0, 0);
  /* material acceleration */
  transform: translateX(250%);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

nav::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: 1600px;
  background: #004588;
  content: "";
  transform: skewX(-15deg) translateX(100%);
  transform-origin: bottom left;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/*@media (min-width: 40rem) {
  nav::before {
    width: 40rem;
  }
}*/
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transform: translateX(-0%);
  transition: color 0.15s, transform 0.5s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}


nav>div {
  position: relative;
  /*追加*/
  width: 100%;
  padding: 15px 0;
  transform: translateX(0%);
  /*-100%→0% に変更*/
  transition: color 0.15s, transform 0.5s;
  transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

nav>div:nth-child(1) {
  transition-delay: 0s, 100ms;
}

nav>div:nth-child(2) {
  transition-delay: 0s, 150ms;
  left: -20px;
}

nav>div:nth-child(3) {
  transition-delay: 0s, 200ms;
  left: -40px;
}

nav>div:nth-child(4) {
  transition-delay: 0s, 250ms;
  left: -60px;
}

nav>div:nth-child(5) {
  transition-delay: 0s, 300ms;
  left: -80px;
}

nav>div:nth-child(6) {
  transition-delay: 0s, 350ms;
  left: -110px;
}

nav>div:nth-child(7) {
  transition-delay: 0s, 400ms;
  left: -130px;
}

nav>div:nth-child(7) {
  justify-content: flex-start;
}

nav .large-cate {
  width: 30%;
  color: #FFF;
  font-family: 'Mitr', sans-serif;
  font-size: 4.0rem;
  line-height: 1;
}

nav .small-cate {
  width: 70%;
  padding-left: 40px;
  font-size: 1.4rem;
}

nav .small-cate li {
  display: inline-block;
  width: 50%;
  float: left;
}

nav .small-cate li:first-of-type {
  width: 100%;
}

nav .small-cate li:before {
  content: "";
  /* 空の要素作成 */
  width: 10px;
  /* 幅指定 */
  height: 1px;
  /* 高さ指定 */
  display: inline-block;
  /* インラインブロックにする */
  background-color: #FFF;
  /* 背景色指定 */
  position: relative;
  /* 位置調整 */
  top: -5px;
  /* 位置調整 */
  margin-right: 5px;
  /* 余白指定 */
}

nav .btn02 {
  margin-left: 0 !important;
  margin-right: 20px !important;
}

nav .btn02::before {
  border-right: 10px solid #E4007F;
  /* ラベルの色はここで変更 */
}

nav .corp_link {
  padding: 15px 20px !important;
  margin: 35px auto 0 !important;
  width: 240px !important;
}

nav .corp_link:hover {
  opacity: 0.5;
}


@media screen and (max-width: 769px) {
  nav .corp_link {
    display: none;
  }

}


nav a:hover, nav a:focus {
  color: #CCC;
}

main {
  overflow: hidden;
}

main .content {
  transform: translate3d(0, 0, 0);
  /* material acceleration */
  will-change: transform, filter;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

[id=navcheck]:checked+label::before {
  opacity: 1;
  pointer-events: auto;
}

[id=navcheck]:checked+label .burger::before, [id=navcheck]:checked+label .burger::after {
  width: 141.42%;
}

[id=navcheck]:checked+label .burger::before {
  transform: rotate(45deg) translateY(-50%);
}

[id=navcheck]:checked+label .burger::after {
  transform: rotate(-45deg) translateY(50%);
}

[id=navcheck]:checked+label .burger .bar {
  transform: scale(0.1);
}

[id=navcheck]:checked~nav {
  transform: translateX(0%);
}

[id=navcheck]:checked~nav::before {
  transform: skewX(-15deg) translateX(-20%);
}

[id=navcheck]:checked~nav>div {
  transform: translateX(0%);
}

[id=navcheck]:checked~main .content {
  transform: translateX(-3em);
  transform-origin: left center;
  -webkit-filter: blur(2px);
  filter: blur(2px);
  /* quite laggy :S */
}

/* helper */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* misc */
body {
  overflow-x: hidden;
}

main {
  background: #3498db;
  padding: 5% 0;
}

#menu {
  width: 800px;
}


/* タブレット */
@media screen and (max-width: 769px) {

  nav>div {
    width: 80%;
  }

  nav>div:nth-child(1) {}

  nav>div:nth-child(2) {
    left: 0;
  }

  nav>div:nth-child(3) {
    left: 0;
  }

  nav>div:nth-child(4) {
    left: 0;
  }

  nav>div:nth-child(5) {
    left: 0;
  }

  nav>div:nth-child(6) {
    left: 0;
  }

  nav>div:nth-child(7) {
    left: 0;
  }

  nav .large-cate {
    width: 100%;
    color: #FFF;
    font-size: 2.5rem;
    line-height: 1;
  }

  nav .small-cate {
    width: 100%;
    padding-left: 40px;
    font-size: 1.6rem;
    margin-top: 5px;
  }

  nav .small-cate li {
    display: inline-block;
    width: 50%;
    float: left;
  }

  nav .small-cate li a {
    display: inline-block;
    padding-left: 3px;
  }

  #menu {
    width: 100%;
  }

}

/* スマホ */
@media screen and (max-width: 480px) {

  label .burgerbox {
    width: 50px;
    height: 50px;
  }

  label .burger {
    top: 11px;
    right: 11px;
    width: 28px;
    height: 28px;
  }

  nav .btn02 {
    margin: 10px auto !important;
  }

  nav>div {
    padding: 7px 0;
  }

  nav .small-cate {
    padding-left: 10px;
    line-height: 1.5;
  }

  nav .small-cate li {
    width: 100%;
  }

  .large-cate:after {
    content: "";
    position: absolute;
    right: 25px;
    top: 15px;
    transition: all 0.2s ease-in-out;
    /*   要素の動きを指定 */

    display: block;
    width: 8px;
    height: 8px;
    border-top: solid 4px #FFF;
    border-right: solid 4px #FFF;

    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    /* transform: rotateで要素の角度を指定 */

  }

  .large-cate.open:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 20px;
    /*   .openクラスがついた時の要素の角度を指定 */
  }

}


/* スマホ iPhoneSE以下 */
@media screen and (max-width: 320px) {

  nav>div {
    padding: 5px 0;
  }

  nav .large-cate {
    font-size: 2.5rem;
  }

  .large-cate:after {
    top: 10px;
  }

  nav .small-cate {
    font-size: 1.3rem;
    margin-top: 5px;
  }

  nav .small-cate li a {
    display: inline-block;
    padding: 0px;
  }

}