/* 공통 스타일 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; color: #333333; background-color: #ffffff; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 50px; font-weight: 700; }

/* 1. Header (Full-width) */
header {
    width: 100%; position: fixed; top: 0; background: #fff;
    z-index: 3000; border-bottom: 1px solid #f0f0f0;
}
.header_wrapper {position: relative; width: 100%; display: flex; justify-content: space-between; align-items: center; margin:0 auto; box-sizing: border-box; padding: 10px 20px; }
.logo {width: auto; height: 20px; text-align: center;}
.logo a {display: block;}
.logo a img{width: auto; height: 20px;}
nav {display: flex; align-items: center; gap: 10px;}
nav a {margin: 0 10px; padding: 5px 15px; display: block; text-decoration: none; color: #333; font-weight: 500; font-size: 0.9rem; }
#mainNav a:hover {color: #ff4d4d;}
/* --- 공통 모바일 메뉴 버튼 (X 애니메이션) --- */
.menu-trigger {
    display: none; 
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    
}

.menu-trigger span:nth-child(1) { top: 9px; }
.menu-trigger span:nth-child(2) { top: 9px; }

.menu-trigger.active span:nth-child(1) { transform: rotate(45deg); }
.menu-trigger.active span:nth-child(2) { transform: rotate(-45deg); }

 footer { height: 50px;  background-color: #ffffff;  padding: 20px; text-align: center; border-top: 1px solid #eee; font-size: 0.85rem; color: #999; } 

/* ============================================================
   1. 태블릿 및 작은 데스크탑 (1024px 이하)
   ============================================================ */
@media (max-width: 1024px) {
    .container { padding: 50px 30px; }
}

@media (max-width: 768px) {
    .header_wrapper {height: 100%;}
    /* 네비게이션 메뉴 활성화 */
    .menu-trigger { display: block; cursor: pointer; z-index: 100; transition: all 0.3s ease-in-out;}

 #mainNav {
    position: absolute;
    top: 100%; 
    left: 0;
    margin-top: 0 !important;
    width: 100%;
    height: auto;
    padding: 5px 0;
    
    background-color: rgba(255, 255, 255, 1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2px; /* 모서리를 둥글게 하여 박스 느낌 강조 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;

    /* 애니메이션 설정 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden !important;
}

    #mainNav.active {
    top: 99%; /* 70px에서 80px로 살짝 내려오는 모션 */
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    
}
    #mainNav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    }

    
    .container { padding: 50px 15px; }
}