/* 기본 스타일 - 최소 코드 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: '맑은 고딕', 'Malgun Gothic', sans-serif;
    line-height: 1.5;
    background-color: #ffffff;
}

/* 헤더 스타일 */
.header {
    position: relative;
    height: 90px;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* 로고 스타일 */
.logo {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
}

.logo img {
    width: 80px;
    margin-right: 10px;
}

/* 데스크탑 메뉴 */
.desktop-menu {
    width: 60%;
    display: flex;
    justify-content: center;
}

.menu {
    display: flex;
    gap: 30px;
    font-size: 17px;
}

.menu-item {
    cursor: pointer;
    font-weight: normal; /* 기본 폰트 두께를 normal로 설정 */
    text-decoration: none;
    color: #000000;
}

.menu-item.active {
    color: #000000;
    font-weight: bold;
}

/* 모바일 메뉴 토글 버튼 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.menu-toggle span {
    height: 2px;
    background-color: #000;
    width: 100%;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 8px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0; /* 가운데 막대 숨김 */
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 8px;
}

/* 모바일 메뉴 스타일 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    background-color: white;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px;
    border-radius: 4px;
}

.mobile-menu.active {
    display: block !important;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* 푸터 */
footer {
    position: fixed; /* 화면에 고정 */
    bottom: 0; /* 화면 하단에 위치 */
    left: 0; /* 화면 왼쪽에 위치 */
    width: 100%; /* 화면 너비에 맞게 확장 */
    background-color: #f8f8f8; /* 배경색 */
    border-top: 0px solid #e7e7e7; /* 상단 경계선 */
    z-index: 1000; /* 다른 요소 위에 표시 */
}

.footer-content {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

/* 기존 푸터 스타일 다음에 추가 */

/* 중앙 정렬 푸터 스타일 */
.footer-centered {
    width: 100%;
    max-width: 800px; /* 원하는 최대 너비 설정 */
    margin: 0 auto; /* 좌우 마진 auto로 중앙 정렬 */
    display: flex;
    flex-direction: column; /* 세로 방향 배치로 변경 */
    align-items: center; /* 가운데 정렬 */
    text-align: center; /* 텍스트 중앙 정렬 */
    padding: 0 20px; /* 좌우 패딩 추가 */
}

.footer-centered .footer-left,
.footer-centered .footer-right {
    width: 100%; /* 전체 너비 사용 */
    text-align: center; /* 텍스트 중앙 정렬 */
    margin-bottom: 15px; /* 아래 여백 추가 */
}

/* 저작권 텍스트도 중앙 정렬 */
.copyright {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
    border-top: 1px solid #e7e7e7;
    font-size: 14px;
}

/* 반응형 */
@media (max-width: 768px) {
    /* 모바일 화면에서는 데스크톱 메뉴를 숨김 */
    .desktop-menu {
        display: none !important;
    }
    
    /* 모바일 메뉴 토글 버튼 표시 */
    .menu-toggle {
        display: flex !important;
    }

    .footer-centered {
        max-width: 95%; /* 모바일에서 너비 확장 */
    }

    .menu-toggle {
        display: flex; /* 모바일 화면에서만 보이도록 설정 */
    }

    .desktop-menu {
        display: none; /* 데스크톱 메뉴 숨김 */
    }

    .business-banner img {
        width: 100%; /* 모바일 화면에서 이미지가 전체 너비를 차지 */
        height: auto; /* 이미지 비율 유지 */
        margin: 0; /* 여백 제거 */
        padding: 0; /* 패딩 제거 */
    }

    .business-banner {
        width: 100%; /* 모바일 화면에서 부모 요소가 전체 너비를 차지 */
    }

    .business-banner img {
        width: 100%; /* 모바일 화면에서 이미지가 전체 너비를 차지 */
        height: auto; /* 이미지 비율 유지 */
    }
}

@media (min-width: 769px) {
    /* 데스크탑 화면에서는 모바일 메뉴와 토글 버튼을 숨김 */
    .mobile-menu {
        display: none !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
}

/* CSS로 메뉴 토글 처리 */
#menu-toggle-checkbox:checked ~ .mobile-menu {
    display: block !important;
}

#menu-toggle-checkbox:checked + .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle-checkbox:checked + .menu-toggle span:nth-child(2) {
    opacity: 0;
}

#menu-toggle-checkbox:checked + .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}