@charset "utf-8";

/* ---------------------------------------------------------------------------------------------

　   メニュー

--------------------------------------------------------------------------------------------- */
#nav li a {
  display: block;
  color: #fff;
  position: relative;
}
#nav .menu-item-has-children > a:after, #nav .menu-item-has-children > a:before {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  right: 20px;
  margin: auto;
  width: 10px;
  height: 3px;
  background: #fff;
  transition: .2s;
}
#nav .menu-item-has-children > a:after {
  transform: rotate(90deg);
  -webkit-transform: rotate(90deg);
}
#nav .menu-item-has-children > a.open:before {
  transform: rotate(0deg);
  -webkit-transform: rotate(0deg);
}
#nav .menu-item-has-children > a.open:after {
  background: transparent;
}
#nav .menu-item-has-children .sub-menu {
  display: none;
}

@media only screen and (max-width : 767px) {
 #menu_btn {
    top: 12px;
    right: 15px;
    transition: .3s;
    cursor: pointer;
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .menu-trigger {
    width: 18px;
    height: 16px;
    position: relative;
  }
  .menu-trigger span {
    display: inline-block;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    transition: all .5s;
  }
  .menu-trigger span:nth-of-type(1) {
    top: 0;
  }
  .menu-trigger span:nth-of-type(2) {
    width: 70%;
    top: 7px;
  }
  .menu-trigger span:nth-of-type(3) {
    bottom: 0;
  }
  #menu_btn.active .menu-trigger span:nth-of-type(1) {
    transform: translateY(7px) rotate(-45deg);
  }
  #menu_btn.active .menu-trigger span:nth-of-type(2) {
    opacity: 0;
  }
  #menu_btn.active .menu-trigger span:nth-of-type(3) {
    transform: translateY(-7px) rotate(45deg);
  }
  #nav {
    width: 280px;
    height: 100%;
    overflow: auto;
    padding: 90px 0;
    background: #000;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 12;
    transform: translate(280px);
    transition: all .5s;
  }
  #nav.open {
    transform: translateZ(0);
  }
  #nav li {
    padding: 0 20px;
    border-bottom: 1px solid #e2e2e2;
  }
  #nav li a {
    position: relative;
    padding: 20px;
    color: #fff;
  }
  #nav .menu-item-has-children .sub-menu {
    padding: 20px;
  }
  #nav .menu-item-has-children > a.open:first-of-type {
    color: #dad4ec;
  }
  #nav .menu-item-has-children .sub-menu li {
    padding: 0;
    margin-bottom: 20px;
  }
  #nav .menu-item-has-children .sub-menu li:last-child {
    margin-bottom: 0;
  }
  #nav .menu-item-has-children .sub-menu li a {
    padding: 0;
  }
}
@media print, screen and (min-width : 768px) {
  
  #menu_btn, .overlay {
    display: none;
  }
  #nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  #nav li {
    position: relative;
  }
  #nav li a {
    padding: 20px;
  }
  #nav .menu-item-has-children > a {
    padding-right: 40px;
  }
  #nav .menu-item-has-children > a.open:first-of-type, #nav .current-menu-item a {}
  #nav .current-menu-item li a {
    color: #fff;
  }
  #nav li ul.sub-menu {
    flex-direction: column;
    background: #363636;
    position: absolute;
    width: 220px;
    left: 50%;
    top: 100%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  #nav li ul.sub-menu li {
    width: 100%;
  }
  #nav li ul.sub-menu li a {
      margin: 0;
    line-height: 1.6em;
    color: #e2e2e2;
    padding: 10px 20px;
    border-bottom: 1px solid #474747;
  }
  #nav li ul.sub-menu li a:hover {
    color: #dad4ec;
      background: black;
  }
  
}


@media print, screen and (min-width : 1200px) {
  
  #nav li {
    padding: 0 20px;
    width: 100%;
    border-bottom: 1px solid #ccc;
  }
  #nav li a {
    position: relative;
    padding: 20px;
    color: #454545;
  }
  #nav .menu-item-has-children .sub-menu {
    padding: 0px;
    background: #eee;
    margin-bottom: 20px;
  }
  #nav .menu-item-has-children > a.open:first-of-type {
    color: #454545;
  }
  #nav .menu-item-has-children .sub-menu li {
    padding: 0;
    margin-bottom: 0px;
  }
  #nav .menu-item-has-children .sub-menu li:last-child {
    margin-bottom: 0;
  }
  #nav .menu-item-has-children .sub-menu li a {
    margin: 0;
    padding: 10px;
    color: #555;
border-bottom: 1px solid white;
  }
 #nav li ul.sub-menu li a:hover {
    background: gray;
    color: white;
  }
  #nav li ul.sub-menu {
    flex-direction: column;
    background: #fff;
    position: sticky;
    width: 100%;
    /* left: 50%; */
    /* top: 100%; */
    -webkit-transform: translateX(0%);
    transform: translateX(0%);
    /* padding: 10px 0; */
  }
  #nav .menu-item-has-children > a:after, #nav .menu-item-has-children > a:before {
    background: #058ccf;
  }
  
}

