@charset "UTF-8";

/* Header Style */
.header {
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 130px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
}

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navigation */
.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-size: 20px;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

.nav-list a:hover {
    color: var(--color-pink-dark);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-pink);
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* Hamburger Menu Active State */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================
   모바일 반응형 스타일
================================ */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .header {
        height: 80px;
    }

    .header-inner {
        height: 80px;
        padding: 0 15px;
    }

    .logo img {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-list {
        display: flex;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 99;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .nav-list.active {
        max-height: 400px;
        opacity: 1;
    }

    .nav-list li {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-list.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-list.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-list.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-list.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-list.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-list.active li:nth-child(6) { transition-delay: 0.3s; }

    .nav-list a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 16px;
    }

    .nav-list a:hover {
        background: #fdf8f8;
    }

    .nav-list a::after {
        display: none;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .header {
        height: 60px;
    }

    .header-inner {
        height: 60px;
    }

    .logo img {
        height: 50px;
    }

    .nav-list {
        top: 60px;
    }

    .nav-list a {
        padding: 12px 15px;
        font-size: 15px;
    }
}
