
header {
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: initial;
  z-index: 9;
  -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
  -moz-transform: matrix(1, 0, 0, 1, 0, 0);
  transform: matrix(1, 0, 0, 1, 0, 0);
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;

}

html.active header {
  -webkit-transform: matrix(1, 0, 0, 1, -320, 0);
  -moz-transform: matrix(1, 0, 0, 1, -320, 0);
  transform: matrix(1, 0, 0, 1, -320, 0);
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

/*#overlay {
  background: #000;
  bottom: 0;
  height: 100%;
  left: 0;
  opacity: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  visibility: hidden;
  width: 100%;
  z-index: 99;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

html.active #overlay {
  opacity: .65;
  visibility: visible;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}*/

#close-menu {
  color: #333;
  cursor: pointer;
  display: block;
  position: absolute;
  right: 20px;
  text-align: center;
  top: 10px;
  font-size:1.6em;
}

menu {
  background: #FFF;
  bottom: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  right: -320px;
  top: 0;
  width: 320px;
  z-index: 1000;
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

menu .container {
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 258px;
  -webkit-transform-origin: 0% 50% 0px;
  -moz-transform-origin: 0% 50% 0px;
  transform-origin: 0% 50% 0px;
  -webkit-transform: matrix(0.8, 0, 0, 0.9, 40, 0);
  -moz-transform: matrix(0.8, 0, 0, 0.9, 40, 0);
  transform: matrix(0.8, 0, 0, 0.9, 40, 0);
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

menu .container .box {
  border-top: 3px solid #434348;
  height: auto;
  overflow: visible;
  overflow-Y: scroll;
  padding: 0 0px 30px 0;
  position: relative;
  width: 275px;
}


menu .box ul:nth-child(1) {
  border-bottom: 3px solid #434348;
}

menu .box ul {
  padding: 10px 10px;
}
menu ul li {
  border-bottom: 1px solid #EDEDED;
  display: block;
  font-size: 1.15em;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 45px;
  text-transform: uppercase;
}

menu ul li a {font-family: 'Noto Sans KR', sans-serif; color:#434348;}

menu ul li a.log {font-size:1.05em; font-weight:500; letter-spacing: .5px; color:#fff; background:#434348; padding:4px 10px; border-radius:5px;}

menu ul li ul {background:#f7f7f7;}

menu ul li ul li a {color:#777;}
menu ul:nth-child(2) li {
  font-size: 0.9em;
  font-weight:400;
  letter-spacing: .5px;
  line-height:35px;
  padding:0 5px;
  border:none;
  border-bottom:1px dashed #ddd;
}


menu ul:nth-child(2) {

}


menu ul:nth-child(3){
  text-align:center;
}
menu ul:nth-child(3) li {
  border: 0;
  display: inline-block;
}

menu ul:nth-child(3) li > a {
  color: #ccc;
  display: block;
  font-size: 1.5em;
  margin:0 7px;
  text-align: center;
  transition: 0.3s;
}
menu ul:nth-child(3) li > a:hover {
  color:#222;
}

menu ul li:last-child {
  border: 0;
}

html.active menu {
  right: 0;
  z-index: 999;
}

html.active menu .container {
  -webkit-transform-origin: 0% 50% 0px;
  -moz-transform-origin: 0% 50% 0px;
  transform-origin: 0% 50% 0px;
  -webkit-transform: matrix(1, 0, 0, 1, 0, 0);
  -moz-transform: matrix(1, 0, 0, 1, 0, 0);
  transform: matrix(1, 0, 0, 1, 0, 0);
  -webkit-transition: all .5s ease-in-out;
  -moz-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

#menu {
  cursor: pointer;
  display: block;
  font-size: 1.75em;
  height: 47px;
  width:47px;
  border-radius: 50%;
  background:#fff;
  line-height: 40px;
  position: absolute;
  padding-top:2px;
  right: 60px;
  text-align: center;
  top: 56px;
  z-index: 10;transition: 0.9s;
}
html.active #menu {right:350px; 
  transition: 0.65s;}


/**/



@media screen and (max-width:1580px){
  #menu {
    right:30px;
  }
}
@media screen and (max-width:1400px){
  #menu {
    font-size: 1.7em;
    width:45px;
    height:45px;
    padding-top:0px;
    top:56px;
  }
}
@media screen and (max-height:992px){
}
@media screen and (max-width:550px){
  #menu {
    font-size: 1.5em;
    width:40px;
    height:40px;
    top:38px;
    right:15px;
  }
   #menu i {position:relative; top:-1px;}
}
