@font-face {
    font-family: 'OneStoreMobilePop';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/ONE-Mobile-POP.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@media screen and (min-width:1025px) {
    .main_header {
        display: flex;
        width: 100vw;
        aspect-ratio: 18 / 1;
        background: #3c668f;
        justify-content: space-between;
    }

    .logo {
        display: block;
        height: 100%;
        aspect-ratio: 1 / 1;
        margin-left: 5vw;
    }

    .logo img {
        width: 100%;
        object-fit: cover;
    }

    .menu_icon {
        display: none;
    }

    .main_category {
        width: max-content;
        height: 100%;
        align-content: center;
        margin-right: 5vw;
    }

    .small_category {
        font-family: 'OnestoreMobilePop','Pretendard';
        width: 4rem;
        color: #fff;
        padding: 0 1rem;
        text-decoration: none;
        transition: all 0.5s ease;
        font-size: 1.2rem;
    }

    .small_category:hover {
        color: #ffdb83;
    }
}

/* 태블릿 */
@media (max-width:1024px) {
    .main_header {
        display: flex;
        width: 100vw;
        aspect-ratio: 10 / 1;
        background: #3c668f;
        justify-content: space-between;
    }

    .logo {
        display: block;
        height: 100%;
        aspect-ratio: 1 / 1;
        margin-left: 5vw;
    }

    .logo img {
        width: 100%;
        object-fit: cover;
    }

    .menu_icon {
        display: none;
    }

    .main_category {
        width: max-content;
        height: 100%;
        align-content: center;
        margin-right: 5vw;
    }

    .small_category {
        font-family: 'OnestoreMobilePop','Pretendard';
        width: 1.5rem;
        color: #fff;
        padding: 0 1rem;
        text-decoration: none;
        transition: all 0.5s ease;
        font-size: 1.2rem;
    }

    .small_category:hover {
        color: #ffdb83;
    }
}

/* 모바일 */
@media (max-width:768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }
    .main_header {
        /* position: relative; */
        /* display: flex; */
        width: 100%;
        height: 10vh;
        background: #3c668f;
    }

    .logo {
        display: block;
        height: 100%;
        aspect-ratio: 1 / 1;
        margin:0 auto;
    }

    .logo img {
        width: 100%;
        object-fit: cover;
    }

    .menu_icon {
        display: block;
        width: 40px;
        height: 5px;
        border-radius: 2.5px;
        background: #fff;
        position: absolute;
        top: 5vh;
        right: 1rem;
        cursor: pointer;
    }

    .menu_icon::before {
        display: block;
        width: 40px;
        height: 5px;
        border-radius: 2.5px;
        content: '';
        background: #fff;
        position: absolute;
        top: -1.5vh;
    }

    .menu_icon::after {
        display: block;
        width: 40px;
        height: 5px;
        border-radius: 2.5px;
        content: '';
        background: #fff;
        position: absolute;
        top: 1.5vh;
    }

    .main_category {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        background: #3c668f;
        gap: 4rem;
        padding: 4rem;
        position: fixed;
        right: 0;
        transform: translateX(100%);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .show {
        animation: show 1s linear;
        animation-fill-mode: forwards;
    }

    @keyframes show {
        0% {
            transform: translateX(100%);
            opacity: 0;
            visibility: hidden;
        }
        100% {
            transform: translateX(5%);
            opacity: 1;
            visibility: visible;
        }   
    }

    .close {
        position: absolute;
        top: 2rem;
        right: 4rem;
        cursor: pointer;
    }

    .close::before {
        display: block;
        width: 40px;
        height: 5px;
        border-radius: 2.5px;
        content: '';
        background: #fff;
        position: absolute;
        top: 1.5vh;
        transform: rotate(-45deg);
    }
    .close::after {
        display: block;
        width: 40px;
        height: 5px;
        border-radius: 2.5px;
        content: '';
        background: #fff;
        position: absolute;
        top: 1.5vh;
        transform: rotate(45deg);
    }

    .small_category {
        font-family: 'OnestoreMobilePop','Pretendard';
        width: 100%;
        color: #fff;
        padding: 0 1rem;
        text-decoration: none;
        transition: all 0.5s ease;
        font-size: 2rem;
    }

    .small_category:hover {
        color: #ffdb83;
    }
}