@charset "UTF-8";

.menu-btn {
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    margin-left: 20px;
}

.menu-btn span {
    width: 28px;
    height: 2px;
    background: #fff;
}

/* FULL MENU */
.full-menu {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: .4s;
}

.full-menu.active {
    opacity: 1;
    visibility: visible;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 2px;
    background: #fff;
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* MENU LIST */
.full-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.full-menu li {
    margin: 24px 0;
}

.full-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
}

.full-menu .section-list a {
    font-size: 2rem;
}

.menu-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-header {
    height: 110px;
    padding: 0 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    gap: 20px;
}

.header-right {
    gap: 16px;
    margin-right: -18px;
}

.menu-logo {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.logo img {
    height: 44px;
}

.menu-magazine {
    font-size: 22px;
    opacity: .8;
    color: #fff;
}

.menu-vol {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.menu-util {
    font-size: 22px;
    font-weight: 700;
}

.menu-util:hover {
    opacity: .7;
}

.menu-divider {
    color: rgba(255, 255, 255, .5);
    font-size: 1rem;
    font-weight: 300;
}

.menu-body {
    flex: 1;
    display: flex;
    padding: 70px 80px;
    gap: 100px;
}

.menu-section {
    width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-list {
    padding: 0;
    margin: 0;
}

.section-list li {
    margin-bottom: 40px;
}

.section-btn {
    font-size: 56px;
    font-weight: 800;
    opacity: .45;
    transition: .3s;
}

.section-btn.active,
.section-btn:hover {
    opacity: 1;
}

.sns-wrap {
    display: flex;
    gap: 24px;
}

.sns-wrap a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.menu-content {
    flex: 1;
    max-width: 1000px;
}

.menu-guide {
    font-size: 16px;
    font-weight: 600;
    opacity: 1;
    color: #fff;
    margin-bottom: 50px;
    text-align: right;
}

.depth-list {
    padding: 0;
    margin: 0;
}

.depth-list li {
    border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.depth-list a {
    display: block;
    padding: 26px 0;
}

.depth-list h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.depth-list p {
    font-size: 18px;
    opacity: .85;
    margin: 0;
}

.close-btn {
    position: relative;
    top: auto;
    right: auto;
    flex-shrink: 0;
}

.header_navi {
    align-items: center;
    gap: 32px;
}

.navi-item {
    position: relative;
}

.navi-item > a {
    display: block;
    padding: 24px 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
}

.navi-item > a:hover {
    color: #fff;
    text-decoration: underline;
}

.navi-depth {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 210px;
    padding: 14px 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 1000;
}

.navi-depth::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.navi-depth a {
    display: block;
    padding: 9px 18px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.navi-depth a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.navi-item.has-depth:hover .navi-depth,
.navi-item.has-depth:focus-within .navi-depth {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 991px) {
    .header_navi {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .menu-header {
        height: 80px;
        padding: 0 20px;
    }

    .menu-logo {
        font-size: 32px;
    }

    h1.logo {
        margin-bottom: 0;
    }

    .logo img {
        height: 26px;
        content: url('../images/common/img_logo_w_mobile.png?v=1');
    }

    .menu-magazine,
    .menu-vol,
    .menu-util {
        display: none;
    }

    .menu-body {
        display: none;
    }

    .menu-section {
        width: 100%;
        margin-bottom: 40px;
    }

    .section-list {
        display: flex;
        gap: 20px;
        overflow-x: auto;
    }

    .section-list li {
        margin-bottom: 0;
    }

    .section-btn {
        font-size: 28px;
        white-space: nowrap;
    }

    .menu-guide {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .depth-list h3 {
        font-size: 28px;
    }

    .depth-list p {
        font-size: 18px;
    }

    .header-right {
        gap: 6px;
        margin-right: 0px;
    }

    .header-right a {
        width: 50%;
        height: auto;
    }

    .header-right a.theme-btn img,
    .header-right a.font-btn img {
        width: 64px;
        height: 64px;
    }

    .menu-util,
    .menu-divider {
        font-size: 1rem;
        display: none;
    }

}

.menu-content {
    flex: 1;
    max-width: 1000px;
    height: calc(100vh - 250px);
    overflow-y: auto;
    padding-right: 20px;
    scroll-behavior: smooth;
}

.menu-content::-webkit-scrollbar {
    width: 6px;
}

.menu-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .3);
}

.depth-group {
    margin-bottom: 100px;
}

.group-title {
    font-weight: 800;
    margin-bottom: 30px;
    color: #fff;
}

/* 모바일 메뉴 기본 숨김 */
.mobile-menu {
    display: none;
}

/* 모바일 */
@media (max-width: 768px) {

    /* 기존 PC 메뉴 숨김 */
    .menu-section,
    .menu-content {
        display: none;
    }

    /* 모바일 메뉴 */
    .mobile-menu {
        display: block;
        padding: 20px;
    }

    .mobile-item {
        border-bottom: 1px solid rgba(255, 255, 255, .15);
    }

    .mobile-title {
        width: 100%;
        height: 72px;

        background: transparent;
        border: 0;

        color: #fff;

        font-size: 1.4rem;
        font-weight: 800;

        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0;

        cursor: pointer;
    }

    /* + 아이콘 */
    .mobile-title::after {
        content: '+';
        font-size: 28px;
        font-weight: 300;
        transition: .25s ease;
        padding-right: 10px;
    }

    .mobile-item.active .mobile-title::after {
        transform: rotate(45deg);
    }

    /* 내용 */
    .mobile-content {
        max-height: 0;
        overflow: hidden;

        transition: max-height .35s ease;
    }

    .mobile-item.active .mobile-content {
        max-height: 500px;
    }

    .mobile-content ul {
        padding-bottom: 20px;
    }

    .mobile-content li {
        margin-bottom: 14px;
    }

    .mobile-content a {
        color: rgba(255, 255, 255, .8);
        font-size: 18px;
        font-weight: 500;
    }

}

/* 모바일 SNS */
.mobile-sns {
    display: none;
}

@media (max-width: 768px) {

    .mobile-menu {
        height: calc(100vh - 80px);

        overflow-y: auto;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-sns {
        display: flex;

        gap: 14px;

        padding-top: 40px;
        padding-bottom: 30px;
    }

    .mobile-sns a {
        width: 52px;
        height: 52px;

        border-radius: 50%;

        border: 1px solid rgba(255, 255, 255, .2);

        display: flex;
        align-items: center;
        justify-content: center;

        color: #fff;

        font-size: 20px;
    }

    /* 메뉴 열리면 SNS 숨김 */
    .mobile-item.active~.mobile-sns {
        opacity: 0;
        visibility: hidden;
    }

}

/* 모바일 메뉴 내부만 스크롤 */
@media (max-width: 768px) {

    .full-menu {
        overflow: hidden;
    }

    .mobile-menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

}