/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 10;
}

.header .logo {
    width: 306px;
    height: 100%;
    padding: 0 24px;
}

.header .logo h1 {
    font-size: 24px;
}

.header .menu {
    width: calc(100% - 306px);
    padding: 0 20px;
}

.header .menu .gnb,
.header .menu .user {
    gap: 20px;
}

.header .menu .gnb li a {
    padding: 16px;
    color: var(--color-gray_400);
    font-size: 16px;
}

.header .menu .gnb li.active a {
    color: var(--color-point);
    font-weight: bold;
}

.header .menu .user button {
    width: 86px;
    height: 38px;
    font-size: 15px;
}



/* side menu */
.side_gnb {
    position: fixed;
    top: 70px;
    left: 0;
    width: 306px;
    height: calc(100vh - 70px);
    /* ksw 구조적인 개선이 필요해보임. */
    z-index: 10;
    padding-bottom: 30px;
}

.side_gnb>div {
    height: calc(100% - 30px);
    padding: 0 24px 40px;
    margin-top: 30px;
}

.side_gnb .side_item {
    margin-bottom: 20px;
    padding-bottom: 6px;
}

.side_gnb .side_item .tit {
    padding: 12px 0;
    margin-bottom: 8px;
}

.side_gnb .side_item .tit span.img {
    background-image: var(--ico-arrow);
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(90deg);
    display: block;
    width: 16px;
    height: 16px;
}

.side_gnb .side_item .tit h2 {
    font-size: 18px;
}

.side_gnb .side_item a {
    display: block;
    padding: 13px 14px 14px;
    transition: all 0.4s;
}

.side_gnb .side_item a:hover {
    background-color: var(--color-secondary);
}

.side_gnb .side_item li.active {
    border-bottom: 1px solid var(--color-point);
}

.side_gnb .side_item li.active a {
    font-size: 17px;
    font-weight: bold;
    color: var(--color-point);
}



.side_gnb .side_item.dropdown ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.side_item.open .tit span.img {
    transform: rotate(-90deg);
}



/* modal popup (커스텀팝업) */
.modal_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30;
}

.modal_popup .modal_con {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-gray_100);
    background-color: var(--color-white);
    padding: 50px 30px 32px 30px;
    width: 380px;
    border-radius: 20px;
    text-align: center;
    z-index: 30;
}

.modal_popup .mainText {
    font-size: 16px;
    color: var(--color-black);
    font-weight: 700;
}

.modal_popup .subText {
    font-size: 15px;
    color: var(--color-gray_300);
    margin-top: 4px;
}

.modal_popup .btn_box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
}

.modal_popup button {
    display: block;
    width: 120px;
    height: 40px;
    border-radius: 6px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
}

.modal_popup button.cancel_btn {
    color: var(--color-primary);
    background-color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.modal_popup#cancel button.register_btn {
    background-color: #fff;
    color: #E80000;
    border: 1px solid #E80000;
}


/* toast popup */
#toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 18px;
    border-radius: 100px;
    z-index: 9999;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
    -webkit-transition: opacity 0.35s ease, -webkit-transform 0.35s ease, visibility 0s linear 0.35s;
    -moz-transition: opacity 0.35s ease, -moz-transform 0.35s ease, visibility 0s linear 0.35s;
    -o-transition: opacity 0.35s ease, -o-transform 0.35s ease, visibility 0s linear 0.35s;
    will-change: opacity, transform;
}

/* 보일 때 상태 */
#toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0s;
    -webkit-transform: translateX(-50%) translateY(20px);
    -moz-transform: translateX(-50%) translateY(20px);
    -o-transform: translateX(-50%) translateY(20px);
}



/* detail popup */
.popup_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.popup_bg.transparent {
    background-color: transparent;
}

.popup_con {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 21;
    width: calc(100% - 32px);
    max-width: 920px;
    padding: 14px 40px 40px;
}

.popup_con .pop_head {
    padding: 19px 0 20px;
    font-size: 20px;
    margin-bottom: 30px;
}

.popup_con .pop_head button {
    background-color: transparent;
    width: 40px;
    height: 40px;
}

.popup_con .pop_head span.img {
    display: block;
    background-image: var(--ico-close);
    width: 30px;
    height: 30px;
    margin: 0 auto;
}

.popup_con .pop_body ul {
    gap: 20px;
}

.popup_con .pop_body li {
    width: calc(50% - 10px);
}

.popup_con .pop_body li p {
    min-width: 90px;
    width: 90px;
}

.popup_con .pop_body li.w-full {
    margin-top: 16px;
}

.popup_con .pop_body li textarea {
    width: 100%;
    margin-top: 10px;
    height: 100px;
    padding: 12px;
}

.popup_con .user_out {
    margin: 12px 0 0 auto;
    width: 120px;
    font-size: 15px;
}

.table_pop {
    width: 100%;
    border-spacing: 0;
    margin-top: 30px;
}

.table_pop th {
    border-bottom: 1px solid var(--color-gray_400);
    font-size: 17px;
}

.table_pop td {
    border-bottom: 1px solid var(--color-gray_300);
    font-size: 15px;
}

.table_pop th, 
.table_pop td {
    height: 46px;
}




/* type 02 detail popup */
.type_02 .popup_con {
    box-shadow: -4px 0 10px rgba(0,0,0, 0.1);
    transform: translate(0);
    top: 70px;
    right: 0;
    left: auto;
    height: calc(100% - 70px);
    width: 370px;
    max-width: none;
    padding: 16px 24px;
}

.type_02 .popup_con .pop_body li {
    width: 100%;
    margin-bottom: 16px;
}

.type_02 .popup_con .pop_body li p {
    width: auto;
    margin-bottom: 4px;
}





@media (max-width: 1200px) {

    .header .logo,
    .side_gnb {
        width: 200px;
    }

    .header .menu {
        width: calc(100% - 230px);
    }

}