/*まずはお決まりのボックスサイズ算出をborer-boxに */
*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

#menu {
  width: 210px;
  margin: 0 ;
}
#menu-btn {
  display: none;
}
#menu-content {
  margin: 0 0 15px;
  list-style-type: none;
}
#menu-content > li {
  position: relative;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
#menu-content > li > a.btn-flat {
  overflow: hidden;
  padding: 1.4rem 0.5rem;
  color: #FFF;
  border-radius: 0;
  background: #000035;
  margin-bottom: 10px;
  border-bottom-right-radius: 10px;
}
#menu-content > li > a.btn-flat span {
  position: relative;
}
#menu-content > li > a.btn-flat:before {
  position: absolute;
  top: 0;
  left: 30px;
  width: 120%;
  height: 440%;
  content: '';
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  -webkit-transform: translateX(-98%) translateY(-70%) rotate(135deg);
  transform: translateX(-98%) translateY(-70%) rotate(135deg);
  background: #fff100;
  color: #000035;
}
#menu-content > li > a.btn-flat:hover:before {
  -webkit-transform: translateX(-9%) translateY(-25%) rotate(135deg);
  transform: translateX(-9%) translateY(-25%) rotate(135deg);
  color: #000035;
}
#menu-content > li > a.btn-flat:hover {
  opacity: 1.0;
  color: #000035;
}
#navArea figure{
  box-shadow: 0px 4px 5px -5px rgba(0, 0, 0, 0.6);
}
@media screen and (max-width: 960px) {
  nav {
    position: fixed;
    top: 0;
    left: -75%;
    bottom: 0;
    width: 75%;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    z-index: 3;
    opacity: 0;
  }
  .open nav {
    left: 0;
    opacity: 1;
  }
  nav .inner {
    padding: 25px;
  }
  nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  nav ul li {
    position: relative;
    margin: 0;
  }
  nav ul li a {
    display: block;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    -webkit-transition-duration: 0.2s;
            transition-duration: 0.2s;
  }
  .toggle_btn {
    display: block;
    position: fixed;
    top: 20px;
    right: 2%;
    width: 40px;
    height: 30px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 3;
    background-color: #101254;
    padding: 5px 15px;
    border-radius: 4px;
    box-sizing: border-box;
  }
  .toggle_btn span {
    position: absolute;
    left: 7px;
    width: 26px;
    height: 2px;
    background-color: #FFF;
    border-radius: 4px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  .toggle_btn span:nth-child(1) {
    top: 6px;
  }
  .toggle_btn span:nth-child(2) {
    top: 14px;
  }
  .toggle_btn span:nth-child(3) {
    bottom: 6px;
  }
  .open .toggle_btn span {
    background-color: #fff;
  }
  .open .toggle_btn span:nth-child(1) {
    -webkit-transform: translateY(8px) rotate(-315deg);
    transform: translateY(8px) rotate(-45deg);
  }
  .open .toggle_btn span:nth-child(2) {
    opacity: 0;
  }
  .open .toggle_btn span:nth-child(3) {
    -webkit-transform: translateY(-8px) rotate(315deg);
    transform: translateY(-8px) rotate(45deg);
  }
  #mask {
    display: none;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
  }
  .open #mask {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.9;
    z-index: 2;
    cursor: pointer;
  }
  #menu-content {
    display: block;
    padding-top: 20px;
  }
  #menu-content > li {
    width: 90%;
    margin: 0 auto 0;
  }
  #menu-content > li:hover {
    background: none;
  }
  #menu-content > li > a {
    color: #111;
    height: 100%;
    padding: 6px 0px 2px;
    font-size: 100%;
    background-image: none;
    border-radius: 0;
  }
}
@media screen and (max-width: 768px) {
  .toggle_btn {
    display: block;
    position: fixed;
    top: 20px;
    right: 2%;
    width: 40px;
    height: 30px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 3;
    background-color: #101254;
    padding: 5px 15px;
    border-radius: 4px;
    box-sizing: border-box;
  }
}
@media screen and (max-width: 480px) {
  .toggle_btn {
    display: block;
    position: fixed;
    top: 18px;
    right: 2%;
    width: 40px;
    height: 30px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    cursor: pointer;
    z-index: 3;
    box-sizing: border-box;
  }
}

/* SP用スタイル */
@media screen and (max-width: 959px) {
  .toggle_btn {
    display: block;
  }
  #mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    background-color: rgba(0,0,0,0.60);
    z-index: 10;
  }
  #navArea.open #mask {
    display: block;
  }
  #navArea figure{
    width: 92%;
    margin: 15px auto 0;
  }
}

#menu .btn,
#menu a.btn,
#menu button.btn {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 0.8rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  color: #000035;
  border-radius: 0.5rem;
  box-sizing: border-box;
  width: 100%;
}