header{
    background-color: #fff;
    position: sticky;
    width: 100%;
    height: 80px;
    top: 0;
    z-index: 999;
    box-shadow: #e5e5e5 0 -1px 0 0 inset;
}


nav.container{
    height: 100%;
    position: relative;
    /* max-width: 1480px; */
    max-width: 1650px;
}

div.gnb-wrap{
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

div.gnb-content{
    display: flex;
    align-items: flex-end;
    width: 100%;
}

div.gnb-content h2 img{
    width: 200px;
}

div.gnb-content ul.gnb-home{
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    margin-left: 20px;
}

div.gnb-content ul.gnb-home li{
    display:inline-block;
    margin-right: 15px;
    position: relative;
}

div.gnb-content ul.gnb-home li:after{
    content:'';
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 4px;
    background-color:#fff;
    left: 0;
    display: none;
}

div.gnb-content ul.gnb-home li.on:after{
    display:block;
}

div.gnb-content ul.gnb-home li.on a{
    color:#fff;
}

div.gnb-content ul.gnb-home li:last-child{
    margin-right:0;
}

div.gnb-content ul.gnb-home a{
    font-size:16px;
    color:#333;
    text-decoration: none;
}

div.gnb-content ul.my-area {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

div.gnb-content ul.my-area li{
    display:inline-block;
    padding:0 8px;
    font-size:14px;
    position: relative;
}

div.gnb-content ul.my-area li::before{
    content:'';
    position: absolute;
    width: 1px;
    background-color: #333;
    height: 50%;
    right: 0;
    top: 50%;
    transform:translateY(-50%);
}

div.gnb-content ul.my-area li:first-child{
    padding-left:0;
    font-size: 0; /*-- inline-block 여백 제거 --*/
}

div.gnb-content ul.my-area li:last-child{
    padding-right:0;
}

div.gnb-content ul.my-area li:last-child::before{
    display: none;
}

div.gnb-content ul.my-area li a{
    color:#333;
    font-size: 14px;
    text-decoration: none;
}

div.gnb-content ul.my-area li a.user-name{
    max-width: 90px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color:#fff;
    /* margin-bottom: -6px; */
}


div.gnb-content ul.my-area li button{
    color:#fff;
    font-size: 14px;
    outline: none;
    position: relative;
    padding-left: 0;
}
div.gnb-content ul.my-area li button span.message-on{
    position: absolute;
    right: -1px;
    top: -1px;
    background-color: #fb4622;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

#menuToggle{
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
  display:none;
  position: absolute;
  z-index: 99999;
  right: 0;
}

#menuToggle a{
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

#menuToggle a:hover{
  color: #fff;
}

#menuToggle a.on{
    color:#fff;
}

#menuToggle input{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  -webkit-touch-callout: none;
}

#menuToggle span{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #333;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2){
  transform-origin: 0% 100%;
}

#menuToggle input:checked ~ span{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: #fff;
}

#menuToggle input:checked ~ span:nth-last-child(3){
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle input:checked ~ span:nth-last-child(2){
  transform: rotate(-45deg) translate(0, -1px);
}

#menu{
  position: fixed;
  right:0;
  top: 0;
  width: 300px;
  padding: 50px;
  padding-top: 80px;
  height: 100vh;
  background-color: #242424;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  transform-origin: 0% 0%;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li{
  padding: 10px 0;
  font-size: 16px;
}

#menu ul.user-info-top{
    display: flex;
}

#menu ul.user-info-top li{
    margin-right: 15px;
    height: fit-content;
    display: flex;
    align-items: center;
}

#menu ul.user-info-top li a.user-name{
    max-width: 100px;
    min-width: 100px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color:#fff;
}

#menu ul.user-info-top li:last-child{
    margin-right: 0;
}

#menu ul.user-info-top button{
    color:#fff;
    font-size: 16px;
    outline: none;
    position: relative;
}
#menu ul.user-info-top button span.message-on{
    position: absolute;
    right: -1px;
    top: -1px;
    background-color: #fb4622;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

#menuToggle input:checked ~ ul{
  transform: none;
}

@media (max-width: 900px) {

    div.gnb-content ul.gnb-home{
        width: auto;
        padding:0 30px;
        display: flex;
        flex: 1 1 auto;
    }

    div.gnb-content ul.gnb-home a{
        font-size: 16px;
    }


    div.gnb-content ul.my-area li a{
        font-size: 13px;
    }


}


@media (max-width: 768px) {
    header{
        height: 80px;
    }

    div.gnb-content h2.logo img{
        /* width: auto; */
    }

    div.gnb-content ul.gnb-home{
        display: none;
    }



    div.gnb-content ul.my-area{
        display:none;
    }


    #menuToggle{
        display:block;
    }

}
