 /* Base Variables & Reset */
 :root {
     --primary: #1a1a1a;
     --secondary: #D31334;/*#D31334*/
     --text: #1a1a1a;
     --text-light: #666666;
     --border: #e5e5e5;
     --bg-light: #f8f8f8;
     --white: #ffffff;
     --gray-50: #f9fafb;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-400: #9ca3af;
     --gray-500: #6b7280;
     --gray-600: #4b5563;
     --success: #059669;
 }

 /* Reset & Base Styles */
 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
     line-height: 1.5;
     color: var(--text);
     background: var(--white);
     -webkit-font-smoothing: antialiased;
 }
 
 
 
 html {
    background-color: #ffffff;
}

body {
    background-color: #ffffff;
}

* {
    -webkit-tap-highlight-color: transparent;  /* 탭 하이라이트 제거 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

/* 링크 파란색 제거 */
a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* 버튼 파란색 제거 */
button, input[type="button"], input[type="submit"] {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* 입력 필드 선택 허용 */
input, textarea {
    -webkit-user-select: auto;
}
 

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

 /* 기존 nav 스타일은 유지하고 드롭다운 관련 스타일 추가 */
    .nav-item {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        min-width: 180px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        border-radius: 8px;
        padding: 8px 0;
        z-index: 1001;
        opacity: 0;
        transform: translateY(12px);
        transition: all 0.3s ease;
    }

    .nav-item:hover .dropdown-content {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown-content a {
        color: var(--text);
        padding: 12px 20px;
        text-decoration: none;
        display: block;
        font-size: 0.95rem;
        transition: all 0.3s ease;
    }

    .dropdown-content a:hover {
        background: var(--gray-50);
        color: var(--secondary);
        padding-left: 24px;
    }
/* 기존 nav 스타일은 유지 */
.nav-item {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 20px); /* 상단에서 20px 더 아래로 조정 */
    left: 0;
    background: var(--white);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* 드롭다운 메뉴가 표시되기 전의 투명한 영역 추가 */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* 상단 여백과 동일한 높이 */
    background: transparent;
}

/* 드롭다운 화살표 추가 */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0,0,0,0.04);
}

.nav-item:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--secondary);
    padding-left: 24px;
}

/* 호버 시 nav-link 스타일 수정 */
.nav-item:hover .nav-link {
    color: var(--secondary);
}

/* 모바일 대응 스타일 */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
        background: var(--gray-50);
        margin: 8px 0;
        transform: none;
    }

    .dropdown-content::before {
        display: none;
    }

    .nav-item.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px 20px;
    }

    .nav-item::after {
        display: none;
    }
}


/* Mobile Menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}




.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-container {
    padding: 2rem;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
}