body.mobile #main-sidebar {
    position: fixed;
    width: auto;
    left: 20px;
}

body.tablet #main-sidebar {
    position: fixed;
    width: auto;
    left: 15px;
}

#main-sidebar {
    z-index: 1000;
    position: fixed;
    width: 220px;
    top: 115px;
    /* left: 40px; */
    margin-left: 5px;
}

#main-sidebar.hide {
    display: none;
}

#main-sidebar .wrap {
    position: relative;
    left: 0;
}

#main-sidebar .wrap > div {
    position: relative;
    width: max-content;
}

#main-sidebar .wrap .list {
    border-radius: 0.9375rem;
    background-color: #fff;
    padding: 1.25rem 13px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.06);
    min-width: 220px;
    filter: drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.06));
    transition: min-width 0.45s, padding 0.45s;
}

#main-sidebar .wrap .list > ul > li.depth1 {
    position: relative;
}

#main-sidebar .wrap .list > ul > li.depth1 + li {
    margin-top: 1px;
}

#main-sidebar .wrap .list > ul > li.depth1 > a {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    padding: 0.375rem 0.5rem;
    font-weight: 500;
    color: #121212;
    border: 2px solid transparent;
}

#main-sidebar .wrap .list > ul > li.depth1 > a > p {
    margin-left: 0.375rem;
    transition: opacity 0.45s;
}

/* ------------------------------------------------------------------------- */
/* 메뉴 아이콘 */
#main-sidebar .wrap .list > ul > li.depth1 > a:before {
    content: '';
    background: url("../images/common/menu-icon.svg")no-repeat top left /4rem 24rem;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
}

/* 메뉴 아이콘 선정 */

#main-sidebar .wrap .list > ul > li.depth1.textbook > a:before,
#main-sidebar .wrap .list > ul1 > li.depth1:nth-child(1) > a:before {
    background-position: top 0 left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_ebs > a:before {
    background-position: top -2rem left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_simul > a:before {
    background-position: top -4rem left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_aux > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_aux2 > a:before {
    background-position: top -6rem left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_make > a:before {
    background-position: top -8rem left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_ai_pass > a:before {
    background-position: top -10rem left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_gem > a:before {
    background-position: top -12rem left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_board > a:before {
    background-position: top -14rem left;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_customer > a:before {
    background-position: top -16rem left;
}

/* ------------------------------------------------------------------------- */
/* 색변화 유지 */

/* #main-sidebar .wrap .list > ul1 > li.depth1.active:nth-child(1) > a:before,
#main-sidebar .wrap .list > ul1 > li.depth1:nth-child(1) > a:hover:before, */
#main-sidebar .wrap .list > ul > li.depth1.menu_textbook.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_textbook > a:hover:before {
    background-position: top 0 right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_ebs.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_ebs > a:hover:before {
    background-position: top -2rem right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_simul.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_simul > a:hover:before {
    background-position: top -4rem right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_aux.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_aux > a:hover:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_aux2.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_aux2 > a:hover:before {
    background-position: top -6rem right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_make.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_make > a:hover:before {
    background-position: top -8rem right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_ai_pass.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_ai_pass > a:hover:before {
    background-position: top -10rem right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_gem.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_gem > a:hover:before {
    background-position: top -12rem right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_board.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_board > a:hover:before {
    background-position: top -14rem right;
}

#main-sidebar .wrap .list > ul > li.depth1.menu_customer.active > a:before,
#main-sidebar .wrap .list > ul > li.depth1.menu_customer > a:hover:before {
    background-position: top -16rem right;
}

/* ------------------------------------------------------------------------- */
#main-sidebar .wrap .list > ul > li.depth1.parent {
    position: relative;
}

#main-sidebar .wrap .list > ul > li.depth1.parent:before {
    content: '';
    width: 1px;
    height: 0.75rem;
    background-color: #D9D9D9;
    position: absolute;
    top: 18px;
    right: 1.21875rem;
    transition: transform 0.45s, opacity 1.25s ease;
}

#main-sidebar .wrap .list > ul > li.depth1.parent:after {
    content: '';
    width: 0.75rem;
    height: 1px;
    background-color: #D9D9D9;
    position: absolute;
    top: 23px;
    right: 0.875rem;
}

/* #main-sidebar .active {
    border-color: red !important;
    background-color: red !important;
} */

#main-sidebar .wrap .list > ul > li.depth1.parent.active:before {
    transform: rotate(90deg);
    opacity: 0;
}

#main-sidebar .wrap .list > ul > li.depth1.parent.active:after {
    background-color: #3B84FF;
}

#main-sidebar.active .wrap .list > ul > li.depth1.parent:before,
#main-sidebar.active .wrap .list > ul > li.depth1.parent:after {
    display: none;
}

#main-sidebar .wrap .list > ul > li.depth1.active > a {
    background-color: #E4F5FF;
    color: #3074F1;
    border: 2px solid #3B84FF;
}

#main-sidebar .wrap > div > .r-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #F2F1F1;
    width: 1.75rem;
    height: 1.75rem;
    position: absolute;
    right: -0.875rem;
    top: 0;
    background-color: #fff;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.06);
}

#main-sidebar .wrap > div > .r-btn:before {
    content: '';
    background: url("../images/common/r-menu-arrow.svg")no-repeat center/1.625rem auto;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-block;
}

#main-sidebar .wrap > div > .b-btn {
    width: 100%;
    height: 2rem;
    position: absolute;
    left: 0;
    top: calc(100% + 0.625rem);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-sidebar .wrap > div > .b-btn:before {
    content: '';
    background: url("../images/common/b-menu-arrow.svg")no-repeat center;
    width: 0.875rem;
    height: 0.5rem;
    display: inline-block;
}


#main-sidebar .wrap .list > ul > li.depth1 > a:hover {
    background-color: #3B84FF;
    color: #fff;
}

#main-sidebar .wrap .list > ul > li.depth1.active > a:hover {
    border: 2px solid #3B84FF;
    background-color: #E4F5FF;
    color: #3074F1;
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2 {
    padding: 0.3125rem 0 0.3125rem 2.6875rem;
    position: relative;
    display: none;
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2:before {
    content: '';
    background-color: #D9D9D9;
    position: absolute;
    left: 23px;
    top: 0;
    width: 1px;
    height: calc(100% - 1.5625rem);
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2 > ul > li > a {
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    position: relative;
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2 > ul > li + li {
    margin-top: 2px;
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2 > ul > li > a:before {
    content: '';
    background-color: #d9d9d9;
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 50%;
    z-index: 1;
    position: absolute;
    left: -0.625rem;
    top: 50%;
    transform: translateY(-50%);
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2 > ul > li > a:after {
    content: '';
    background: url("../images/common/naviagtor-border.svg")no-repeat;
    width: 12px;
    height: 7px;
    position: absolute;
    left: -1.21875rem;
    top: 0.65625rem;
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2 > ul > li > a:hover {
    background-color: #3B84FF;
    color: #fff;
}

#main-sidebar .wrap .list > ul > li.depth1 > div.depth2 > ul > li > a:hover:before {
    background-color: #3B84FF
}

#main-sidebar.active .wrap .list {
    min-width: auto;
    transition: min-width 0.45s, padding 0.45s;
}

#main-sidebar.active .wrap .list > ul > li.depth1 > a > p {
    display: none;
    transition: opacity 0.45s;
}

#main-sidebar.active .wrap > div > .r-btn:before {
    content: '';
    background: url("../images/common/r-menu-arrow.svg")no-repeat center/1.625rem auto;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-block;
    transform: rotate(180deg);
}