/* 🎨 초기화 및 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #00d4ff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 🔝 헤더 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: relative;  /* sticky 대신 relative */
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo {
    flex: 0 0 200px;
}

.logo img {
    width: 100%;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box form {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.search-box button {
    padding: 0.75rem 2rem;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 🎯 히어로 섹션 - 이미지 전체 표시! */
.hero {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

/* 📦 카테고리 섹션 */
.categories {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    overflow: hidden;
    padding-top: 75%;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 📞 푸터 */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 데스크탑 */
@media screen and (min-width:1200px) {
    #top_menu #top_logo {
        width: 20%;  /* 15% → 20% */
    }
}

/* 📱 반응형 - 태블릿 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        flex: 0 0 120px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .nav-menu {
        justify-content: center;
        width: 100%;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

/* 📱 반응형 - 모바일 */
@media (max-width: 480px) {
    .header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        gap: 1rem;
    }
    
    .logo