/* 헤더 */
.index_header {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 80px;
    background: #fff;
    border-bottom: 1px solid #e5eaf6;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #333;
    transition: 0.3s ease-out;
}

.logo:hover {
    transform: translateY(-3px);
}

.header_icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header_icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.header_icon:hover img {
    transform: scale(1.06);
}

.nav_menu ul {
    display: flex;
    gap: 70px;
    font-size: 18px;
    color: #222;
    font-weight: 500;
}

.nav_menu li:hover {
    color: #4076d3;
}

/* 햄버거 버튼 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* X자로 변하는 효과 */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 반응형 */
/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .index_header {
        padding: 16px 40px;
    }

    .logo {
        font-size: 22px;
        letter-spacing: 0.5px;
    }

    .header_icon img {
        width: 32px;
        height: 32px;
    }

    .index_header {
        padding: 16px 40px;
        height: 70px;
    }

    .nav_menu ul {
        gap: 40px;
        font-size: 16px;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .index_header {
        padding: 14px 20px;
        height: 64px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 0px;
    }

    .logo:hover {
        transform: translateY(-2px);
    }

    .header_icon img {
        width: 28px;
        height: 28px;
    }

    /* 햄버거 버튼 보이게 */
    .hamburger {
        display: flex;
    }

    /* 네비 메뉴 숨기기 */
    .nav_menu {
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        background: #fff;
        border-left: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 20px 0;
        transform: translateX(100%);
        transition: 0.3s ease;
    }

    /* 메뉴가 보이도록 클래스 추가 시 0으로 */
    .nav_menu.active {
        transform: translateX(0);
    }

    .nav_menu ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-left: 20px;
    }
}