/* 공통 */
:root {
    --background-color1: #fff;
    --background-color2: #141414;
    --background-color3: #434343;
    --text-color1: #fff;
    --text-color2: #e1e1e1;
    --text-color3: #141414;
    --line-color1: #ffd700;
    --line-color2: #e1e1e1;
    --line-color3: #434343;
    /* 글씨도 같이 빛남 */
    --filter1: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    /* 요소만 빛남 */
    --box-shadow1: 0 0 2px rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 255, 255, 0.7);
    --font-size0: 24px;
    --font-size1: 16px;
    --font-size2: 14px;
    --font-size3: 12px;
    --font-size4: 10px;
    --border-radius1: 6px;
    --transition1: all 0.3s ease-in-out;
}

@font-face {
    font-family: SCDream1;
    src: url(/item/font/SCDream1.otf);
}

@font-face {
    font-family: SCDream2;
    src: url(/item/font/SCDream2.otf);
}

@font-face {
    font-family: SCDream3;
    src: url(/item/font/SCDream3.otf);
}

@font-face {
    font-family: SCDream4;
    src: url(/item/font/SCDream4.otf);
}

@font-face {
    font-family: SCDream5;
    src: url(/item/font/SCDream5.otf);
}

@font-face {
    font-family: SCDream6;
    src: url(/item/font/SCDream6.otf);
}

@font-face {
    font-family: SCDream7;
    src: url(/item/font/SCDream7.otf);
}

@font-face {
    font-family: SCDream8;
    src: url(/item/font/SCDream8.otf);
}

@font-face {
    font-family: SCDream9;
    src: url(/item/font/SCDream9.otf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

a {
    text-decoration: none;
}

.wrapper {
    width: 100%;
    height: 100%;
}

/* 상단바 */
.nav {
    position: relative;
    height: 84px;
    background-color: var(--background-color2);
    display: flex;
    align-items: center;
    color: var(--text-color1);
    transition: height 0.5s;
}

.logo {
    position: absolute;
    display: flex;
    width: 250px;
    height: auto;
    margin-left: 30px;
    z-index: 1001;
    cursor: pointer;
}

.logo img {
    width: 100%;
    height: 100%;
}

.logo_text {
    position: absolute;
    margin-left: 30px;
    display: none;
}

.top {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    font-family: SCDream4;
    font-size: var(--font-size1);
}

.top_item {
    position: relative;
    width: 130px;
    height: 100%;
    color: var(--text-color1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top_item::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 15px;
    width: 0%;
    height: 1px;
    background: var(--line-color1);
}

.top_item:hover::after {
    width: 90px;
}

.add {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-color2);
    width: 100%;
    z-index: 1000;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-color1);
}

.menus {
    display: flex;
    justify-content: center;
    width: 100%;
    height: auto;
}

.menu {
    display: flex;
    flex-direction: column;
    width: 130px;
    height: auto;
}

.menu a {
    position: relative;
    width: 100%;
    padding: 10px 0;
    color: var(--text-color2);
    text-align: center;
    font-family: SCDream3;
    font-size: var(--font-size3);
}

.menu a::after {
    content: "";
    position: absolute;
    width: 0%;
    left: 30px;
    bottom: 0px;
    height: 1px;
    background: var(--line-color1);
    transition: var(--transition1);
}

.menu a:hover::after {
    width: 70px;
}

.right {
    position: absolute;
    right: 30px;
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu_icon {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    margin-left: 30px;
}

.menu_icon div {
    background-color: var(--text-color1);
    height: 2px;
    width: 100%;
    transition: all 0.3s ease;
}

/* 사이드바 */
.side_bar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1005;
}

.side_bar.active {
    right: 0;
}

.side_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 84px;
}

.top_title {
    font-family: SCDream6;
    font-size: var(--font-size0);
    padding-left: 30px;
    margin-bottom: 3px;
    color: var(--text-color3);
}

.btn_close {
    display: flex;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 30px;
    margin-right: 20px;
}

.side_item {
    padding-left: 30px;
    border-bottom: 1px solid var(--line-color2);
}

.side_title {
    font-size: var(--font-size1);
    font-family: SCDream6;
    cursor: pointer;
    padding: 20px 0;
    color: var(--text-color3);
}

.side_sub {
    display: none;
}

.side_sub a {
    padding-left: 20px;
    font-size: var(--font-size2);
    font-family: SCDream4;
    cursor: pointer;
    padding: 10px 0;
    border-top: 1px solid var(--line-color2);
    color: var(--text-color3);
}

.side_item.active .side_sub {
    display: flex;
    flex-direction: column;
}

/* 모바일 반응형 */
@media screen and (max-width: 1024px) {
    .nav {
        height: 55px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        /* 추가 */
        padding: 0;
        /* 추가 */
    }

    .logo {
        position: relative;
        width: auto;
        height: 100%;
        margin: 0;
        padding: 0;
        /* 추가 */
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
        /* 추가 */
    }

    .logo img {
        height: 100%;
        width: auto;
        object-fit: contain;
        display: block;
        /* 추가 */
        margin: 0;
        /* 추가 */
        padding: 0;
        /* 추가 */
    }

    .top {
        display: none;
    }

    .add {
        display: none;
    }

    .menu_icon {
        display: flex;
        position: absolute;
        /* 햄버거 메뉴 위치 고정 */
        right: 15px;
    }

    .right {
        right: 15px;
    }
}

@media screen and (max-width: 768px) {
    .nav {
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .logo {
        position: relative;
        width: auto;
        height: 100%;
        /* 40px에서 100%로 변경 */
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
    }

    .logo img {
        height: 100%;
        width: auto;
        object-fit: contain;
        display: block;
        margin: 0;
        padding: 0;
    }

    .menu_icon {
        width: 25px;
        height: 20px;
        margin-left: 20px;
    }

    .side_bar {
        width: 100%;
        z-index: 1005;
    }

    .side_top {
        height: 60px;
    }

    .top_title {
        font-size: var(--font-size1);
        padding-left: 20px;
    }

    .side_item {
        padding-left: 20px;
    }

    .side_title {
        font-size: var(--font-size2);
        padding: 15px 0;
    }

    .side_sub a {
        font-size: var(--font-size3);
        padding: 8px 0;
    }

    .btn_close {
        font-size: 24px;
        margin-right: 15px;
    }
}

@media screen and (max-width: 480px) {
    .nav {
        height: 35px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .logo {
        position: relative;
        width: auto;
        height: 100%;
        /* 35px에서 100%로 변경 */
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
    }

    .logo img {
        height: 100%;
        width: auto;
        object-fit: contain;
        display: block;
        margin: 0;
        padding: 0;
    }

    .menu_icon {
        width: 20px;
        height: 16px;
        right: 10px;
    }
}