* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 헤더 */
header {
    background: white;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    position: relative;
    //max-width: 1200px;
    //margin: 0 auto;
    //padding: 1rem 1rem;
    display: flex;
    display:block;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    border-bottom: 1px solid #ddd;
    //border:1px solid red !important;
    height:115px;
}

.logo {
    max-width: 1200px;
    margin: 0 auto;
    //border:1px solid red;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 15px;
    padding-top:10px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.1rem;
    line-height: 1.3;
}

.logo-text strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2px;
}

/* 네비게이션 */
.main-nav-container{
    width:100%;
    //border:1px solid red;
    padding-top:20px;
    padding-bottom:20px;
    border-top:1px solid #ccc;
    border-bottom:1px solid #ccc;
    margin-top:20px;
    top:64px;
    height:60px;
    background: #fff;
    z-index: 1000;
}
.main-nav {
    display: flex;
    //gap: 1rem;
    //position: relative;
    height: 100%;
    padding-left:10px;
    align-items: center;
    max-width:1100px;
    font-size:19px;
    margin:0 auto;
}

.nav-item {
    //border:1px solid red;
    width:17.4%;
    position: static;
    height: 100%;
    background: #fff;
}

.nav-item > span {
    cursor:pointer !important;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: default;
}

.nav-item:hover > span {
    color: #007bff;
}

/* 메가메뉴 스타일 */
.mega-menu {
    position: absolute;
    top: 120px;
    border:0px solid red;
    left: -20px;
    right: 0; /* 추가 */
    //width: 100%;
    background: white;
    //box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    padding: 20px 0;
    z-index: 1000;
    //border-top: 1px solid #ddd;
    transition: opacity 0.3s, visibility 0.3s;
    /* border:3px solid red; <-- 디버깅용이라면 삭제 */
}

.main-nav:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

/* 이건 그대로 유지 */
.mega-menu-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 1.3rem;
}


.mega-menu-column {
    flex: 1;
    padding: 0 20px;
    min-width: 80px;
}

.mega-menu-column h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    white-space: nowrap;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 10px;
    white-space: nowrap;
}

.mega-menu-column ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.mega-menu-column ul li a:hover {
    color: #007bff;
}

/* 푸터 */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    z-index: 1000000;
}

/* 헤더와 배너 사이 간격 제거 */
.header-content + div {
    display: none;
}

/* 메가메뉴가 표시될 때 헤더에 그림자 추가 */
/* header:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
} */

/* 로그인 버튼 스타일 */
.login-btn {
    margin-left: 1rem;
}

.login-btn a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.login-btn a:hover {
    background: #0056b3;
}