/* ========================================
   Header
======================================== */

/* --------------------
   Header Common
-------------------- */

.header {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;


}

.header a {
    display: block;


}



/* --------------------
   Header Top
-------------------- */


.header-top {
    width: 100%;
    height: 40px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 52px;

}

.header-top .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}


/* Header Top - Left */

.header-top_left {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 16px;

}

.header-top_left>* {
    display: flex;
    align-items: center;
}

.app {
    width: 124px;
    height: 40px;
    border: 1px solid #ddd;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: relative;


}

.app a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 6px;


}


.notice {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-label {
    padding: 2px 12px;
    background: #4e5dd4;
    border-radius: 100px;
    color: #fff;
    font-size: 11px;
    font-weight: 500;

}

.notice-more {
    margin-left: 8px;
    font-size: 20px;

}



/* Header Top - Right */

.header-top_right ul {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
}

.header-top_right ul li {
    position: relative;

}

.header-top_right ul  .join{
   color: var(--color-primary);

}

.header-top_right ul li:not(:first-child)::before {
    position: absolute;
    content: '';
    width: 1px;
    height: 14px;
    background: #ccc;
    top: 50%;
    transform: translateY(-50%);
    left: -20px;
}




/* --------------------
   Header Main
-------------------- */



.header-main .inner {
    position: relative;
    display: flex;
    align-items: center;
    height: 38px;
}


/* --------------------
   Logo
-------------------- */



/* --------------------
   GNB
-------------------- */

.gnb {
    margin-left: auto;

}

.gnb_list {
    display: flex;
    align-items: center;
    gap: 52px;

}

.gnb_list li a {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;

    white-space: nowrap;
    transition: color 0.2s ease;

}


.gnb_list li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -14px;

    width: 100%;
    height: 3px;

    background-color: var(--color-primary);

    opacity: 0;
    transform: scaleX(0);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}





/* Hover */
.gnb_list li a:hover{
    color: var(--color-primary);
}

.gnb_list li a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}


/* --------------------
  메뉴 카테고리 버튼
-------------------- */

/* ========================================
   Menu Toggle
======================================== */

.menu-toggle {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    width: 40px;
    height: 40px;

    margin-left: 30px;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    background-color: #222;

     transition: transform 0.25s ease, width 0.25s ease;
}




/* ----------------------------------------
   메뉴 열림 → X 버튼
---------------------------------------- */

.menu-toggle.is-active span {
    width: 30px;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}


/* ========================================
   All Menu
======================================== */

.all-menu {
    position: absolute;
    top: calc(100% + 24px);
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;

    background-color: #fff;
    border: 1px solid #dededf;
    border-top: 2px solid var(--color-primary);

    font-size: var(--fs-13);
    font-weight: 600;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 999;
  
}

/* 메뉴 열림 */

.all-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(20px);
    height: 422px;
}

/* 메뉴 컬럼 */


.all-menu_column {
    flex: 1;
}




.all-menu_column strong {
    display: block;
    height: 56px;
    background: #f9f9f9;
    font-size: var(--fs-14);
    font-weight: 700;
    display: flex;
    align-items: center;
    padding-left: 20px;

}

.all-menu_column ul {
    border-top: 1px solid #ededed;
    border-right: 1px solid #ededed;
    padding: 14px 0 40px 20px;


}

.all-menu_column:first-child strong,
.all-menu_column:first-child ul {
    padding-left: 50px;
}


.all-menu_column li+li {
    margin-top: 11px;
}

.all-menu_column a {
    color: #787879;
}



.all-menu_column .add a {
    margin-top: 32px;
    color: #111;
    text-decoration: underline;
    /* text-underline-offset: 1px; */

}






/* ========================================
  실시간 인기 키워드
======================================== */

.keyword .inner {
    position: relative;

}


/* ========================================
   실시간 검색어
======================================== */



.keyword_btn {
    position: absolute;
    right: 32px;
    top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 174px;
    height: 28px;

}

.keyword_rank {
    font-size: 13px;
    font-weight: 800;

}

.keyword_keyword {
    font-size: 13px;
    font-weight: 600;

}

.keyword_arrow {
    margin-left: auto;
    font-size: 9px;
    color: #39bdf5;
    transform: translateY(-1px);
}