* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    background-color: #f5f7f8; /* 배경색 변경 */
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; /* 가로 스크롤 방지 */
}

.main-container {
    position: relative;
    width: 100%; /* 95%에서 100%로 변경 */
    max-width: 100%; /* 95%에서 100%로 변경 */
    height: 100vh; /* 95vh에서 100vh로 변경 */
    margin: 0; /* margin 제거 */
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo {
    position: absolute;
    left: 30%; 
    top: 8%; /* 메인 이미지 수직 중앙 */
    transform: translate(-50%, -50%); /* 정확한 중앙 배치 */
    width: 15%; /* 크기 약간 증가 */
    z-index: 100;
}

.logo img {
    width: 100%; /* 너비 증가 */
    height: auto;
    max-width: 180px; 
}

.image-container {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 100%; /* 95%에서 100%로 변경 */
    height: 100vh; /* 89h에서 100vh로 변경 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f7f8; /* 배경색 추가 */
 }

.image-container img {
    width: 100%; 
    height: 100vh; /* 85vh에서 100vh로 변경 */
    object-fit: contain; /* contain으로 변경하여 화면 전체를 채우도록 함 */
}

.side-image {
    position: absolute;
    width: 13%; /* 10%에서 13%로 1.3배 증가 */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.side-image:hover {
    transform: scale(1.05);
}

.side-image-1 {
    right: 29%;
    top: 43%;
}

.side-image-2 {
    right: 15%;
    top: 33%;
}

.side-image-3 {
    right: 15%;
    top: calc(48% + 30px + 10%); /* side-image-2 위치 + 30px 간격 + 이미지 높이 */
}

.footer {
    position: absolute;
    left: 15%; /* 좌측에서 15% 떨어진 위치로 변경 */
    bottom: 5%; /* 하단에 배치 */
    transform: none;
    width: auto;
    padding: 10px;
    background-color: transparent;
    color: #333333;
    font-family: 'NanumSquare', sans-serif;
    font-size: 13pt;
    text-align: left; /* 텍스트 좌측 정렬로 변경 */
    border-radius: 8px;
}

.footer a {
    color: #0563c1;
    text-decoration: underline;
}

.footer .copyright {
    color: #333333; /* 저작권 글자색도 변경 */
    font-size: 11pt; /* 저작권 폰트 크기도 축소 */
}

.main-text {
    position: absolute;
    left: 27%;
    top: 20%;
    right: 20%;
    z-index: 90;
    color: #ffffff; /* 글자색 흰색으로 변경 */
    font-family: 'NanumSquare', sans-serif; /* 푸터와 동일한 폰트 */
    font-size: 18pt;
    line-height: 1.5;
    text-align: left;
    font-weight: 600;
    background-color: transparent; /* 배경색 제거 */
    padding: 10px 15px;
    border-radius: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 가독성을 위한 텍스트 그림자 추가 */
}

@media (max-width: 1024px) {
    .logo {
        width: 12%;
    }
    
    .side-image {
        width: 18.2%; /* 14%에서 18.2%로 1.3배 증가 */
    }
    
    .footer {
        width: 80%;
        font-size: 1.4vw;
    }
    
    .footer .copyright {
        font-size: 1.1vw;
    }
    
    .main-text {
        font-size: 16pt;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 20%;
        left: 50%;
        top: 2%;
        transform: translateX(-50%);
    }
    
    .image-container {
        width: 90%;
        top: 45%;
    }
    
    .side-image {
        position: relative;
        width: 39%; /* 30%에서 39%로 1.3배 증가 */
        display: inline-block;
        margin: 10px;
    }
    
    .side-image-1, .side-image-2, .side-image-3 {
        position: static;
    }
    
    .footer {
        position: relative;
        margin-top: 30px;
        font-size: 3vw;
        width: 90%;
    }
    
    .footer .copyright {
        font-size: 2.5vw;
    }
    
    .main-text {
        position: relative;
        left: auto;
        top: auto;
        right: auto;
        width: 90%;
        margin: 0 auto;
        font-size: 14pt;
    }
}

.side-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.side-image .image-normal {
    display: block;
    width: 100%;
}

.side-image .image-hover {
    display: none;
    width: 100%;
}

.side-image:hover .image-normal {
    display: none;
}

.side-image:hover .image-hover {
    display: block;
}

/* 데스크탑 대형 화면 (1920px 이상) */
@media (min-width: 1921px) {
    .main-text {
        font-size: 24pt;
    }
    
    .logo img {
        max-width: 220px;
    }
}

/* 데스크탑 일반 화면 (1366px - 1920px) */
@media (max-width: 1920px) {
    .main-text {
        font-size: 20pt;
    }
}

/* 노트북 화면 (1024px - 1365px) */
@media (max-width: 1366px) {
    .logo {
        width: 12%;
    }
    
    .side-image {
        width: 15%;
    }
    
    .main-text {
        font-size: 18pt;
        left: 25%;
    }
}

/* 태블릿 화면 (768px - 1023px) */
@media (max-width: 1024px) {
    .logo {
        width: 12%;
        left: 25%;
    }
    
    .side-image {
        width: 18.2%;
    }
    
    .side-image-1 {
        right: 25%;
    }
    
    .side-image-2 {
        right: 12%;
    }
    
    .side-image-3 {
        right: 12%;
    }
    
    .footer {
        width: auto;
        font-size: 12pt;
    }
    
    .footer .copyright {
        font-size: 10pt;
    }
    
    .main-text {
        font-size: 16pt;
        left: 22%;
    }
}

/* 태블릿 세로 및 대형 모바일 (481px - 767px) */
@media (max-width: 768px) {
    /* 기존 설정 유지 */
    .main-container {
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-bottom: 30px;
        position: relative;
    }
    
    .logo {
        position: relative;
        width: 40%;
        left: auto;
        top: auto;
        transform: none;
        margin: 20px auto;
        z-index: 1;
    }
    
    .image-container {
        position: relative;
        width: 90%;
        height: auto;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        margin-top: 10px;
    }
    
    .image-container img {
        height: auto;
        max-height: 60vh;
        width: 100%;
    }
    
    .main-text {
        position: absolute;
        left: 5%;
        top: 30%; /* 40%에서 30%로 변경하여 더 위로 올림 */
        transform: translateY(-50%);
        width: 90%;
        color: #ffffff;
        font-size: 10pt;
        text-align: center;
        z-index: 95;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
        background-color: transparent;
        padding: 8px;
        border-radius: 8px;
        margin: 0;
    }
    
    /* 기존 설정 유지 */
    .side-image {
        position: relative;
        width: 50%; /* 39%에서 50%로 증가하여 더 크게 표시 */
        display: inline-block;
        margin: 10px;
    }
    
    .side-image-1, .side-image-2, .side-image-3 {
        position: static;
    }
    
    .footer {
        position: relative;
        margin-top: 30px;
        font-size: 3vw;
        width: 90%;
    }
    
    .footer .copyright {
        font-size: 2.5vw;
    }
}