/*-------------------------------------------------------------------------------*/
/*    $Megamen2-Mobile                                                           */
/*-------------------------------------------------------------------------------*/
.megamenu {
  position: absolute;
  top: 0;
  z-index: 9;
  width: 100%;
  pointer-events: none;
}
@media (max-width: 767px) {
  .megamenu {
    z-index: 9;
  }
  .megamenu > .container {
    padding: 0;
  }
}
@media (max-width: 1399px) {
  .megamenu > .container {
    width: 100%;
  }
}
@media (min-width: 768px) {
  .megamenu {
    position: fixed;
    top: 120px;
    -webkit-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
  }
}
@media (min-width: 992px) {
  .megamenu {
    top: 67px;
  }
}

/*-----menu button-----*/
.mobile-nav-link {
  display: block;
  width: 50px;
  height: 50px;
  font-size: 0em;
  background: url(../../../images/mobile-menu-btn1.svg) no-repeat center/50px;
  cursor: pointer;
  pointer-events: auto;
}

#mobile-nav-wrap {
  z-index: 9;
}
#mobile-nav-wrap a:focus {
  outline: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}
#mobile-nav-wrap > a.active {
  background: url(../../../images/mobile-menu-btn2.svg) no-repeat center/50px;
}
@media (min-width: 768px) {
  #mobile-nav-wrap {
    display: none;
  }
}

.mobile-nav,
.sub-menu,
.third-menu {
  overflow: hidden;
  max-height: 0;
  background: white;
}
.mobile-nav.active,
.sub-menu.active,
.third-menu.active {
  max-height: 100%;
}

/*-----first-----*/
.mobile-nav {
  float: none;
  clear: both;
  -webkit-box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
          box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.2);
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.mobile-nav > ul {
  border-top: 1px solid rgba(230, 227, 227, 0.5);
}
.mobile-nav li a {
  display: block;
  position: relative;
  padding: 1.25rem 2rem 1.25rem 1rem;
  color: black;
  pointer-events: auto;
  word-wrap: break-word;
  word-break: break-all;
}

.has-submenu {
  position: relative;
}
.has-submenu > a {
  font-weight: bold;
}
.has-submenu > a.active, .has-submenu > a:hover, .has-submenu > a:focus {
  background-color: #d6e8ff;
}

/*--------sub-------*/
.sub-menu {
  background: #f5f5f5;
}
.sub-menu a {
  padding: 1.25rem 2rem !important;
}
.sub-menu a:hover, .sub-menu a:focus {
  background: #aedaff;
}

.third-menu {
  background: #e6e3e3;
}
.third-menu a {
  padding: 1rem 2rem 1rem 3rem !important;
}
.third-menu a:hover, .third-menu a:focus {
  background: #8bcaff;
}

.sub-menu:after,
.third-menu:after {
  content: "";
  position: absolute;
  z-index: 99;
  top: 1rem;
  right: 0.35rem;
  display: block;
  width: 30px;
  height: 30px;
  background: url(../../../images/navicon.svg) no-repeat;
  -webkit-transform: rotate(0deg);
      -ms-transform: rotate(0deg);
          transform: rotate(0deg);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  pointer-events: none;
}
.sub-menu.active:after,
.third-menu.active:after {
  -webkit-transform: rotate(90deg);
      -ms-transform: rotate(90deg);
          transform: rotate(90deg);
}

.mobile-subnav {
  pointer-events: auto;
  padding: 1rem;
  background-color: white;
  border-top: 1px solid #d3d0d0;
}
.mobile-subnav a {
  display: block;
  margin: 0.5rem 0;
  padding: 0.75rem;
  text-align: center;
  color: white;
  background-color: #0074d3;
}
.mobile-subnav a:hover {
  font-weight: bold;
  background-color: #005bb5;
}