* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 상단 메뉴 */
.header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding-bottom: 0px;
    padding-top: 20px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-left: 120px;
}

.logo-img {
    height: 65px;
    width: auto;
}

.nav-icons {
    display: flex;
    gap: 8px;
    margin-right: 120px;
}

.nav-icon {
    padding: 3px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.nav-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-icon:hover {
    transform: scale(1.1);
}

/* 구분선 */
.divider {
    height: 10px;
    background-color: #c1c8d0;
    width: 100%;
}

/* 메인 영역 */
.main-section {
    padding: 20px 0 60px 0;
    background-color: #ffffff;
    flex: 1;
}

.content-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    height: 500px;
}

.left-content {
    flex: 1;
    margin-left: 120px;
}

.left-content h1 {
    font-size: 2.3em;
    margin-bottom: 50px;
    color: #2c3e50;
    margin-top: 30px;
}

.left-content p {
    font-size: 1.2em;
    margin-bottom: 1px;
    color: #3c4b5b8e;
}

.ending-text {
    font-size: 1.1em;
    color: #3c4b5b8e;
    margin-top: 50px;
    margin-bottom: 60px;
}

.small-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 8px;
}

.right-content {
    flex: 1;
    margin-right: 120px;
}

.main-image {
    width: 85%;
    border-radius: 10px;
}

/* 버튼 섹션 */
.button-section {
    background-color: #2c3e50;
    padding: 60px 0;
}

.button-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.btn {
    width: 120px;
    height: 120px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn span {
    text-align: center;
    line-height: 1.2;
    font-size: 16px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* 각 버튼별 색상 */
.btn:nth-child(1) { background-color: #dedede; }
.btn:nth-child(1):hover { background-color: #ffcd68; }
.btn:nth-child(2) { background-color: #dedede; }
.btn:nth-child(2):hover { background-color: #97df88; }
.btn:nth-child(3) { background-color: #dedede; }
.btn:nth-child(3):hover { background-color: #70c2cd; }
.btn:nth-child(4) { background-color: #dedede; }
.btn:nth-child(4):hover { background-color: #2d8ede; }
.btn:nth-child(5) { background-color: #dedede; }
.btn:nth-child(5):hover { background-color: #cea7e0; }

.special-btn {
    background-color: #dedede;
}

.special-btn:hover {
    background-color: #ea8889;
}

.circle {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.circle span {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

/* 푸터 */
.footer {
    background-color: #2c3e50;
    padding: 50px 20px;
    font-family: Arial, sans-serif;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 35px;
}

.footer-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    padding: 0 25px;
    position: relative;
}

.footer-link:first-child {
    margin-left: -25px;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-link:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background-color: #ccc;
}

.footer-info {
    line-height: 1.8;
    color: #ffffff;
    font-size: 15px;
}


/* 태블릿 (768px ~ 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .logo, .left-content {
        margin-left: 60px;
    }
    
    .nav-icons, .right-content {
        margin-right: 60px;
    }
    
    .content-wrapper {
        gap: 30px;
        height: auto;
        min-height: 400px;
    }
    
    .left-content h1 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .left-content p {
        font-size: 1.1em;
    }
    
    .button-wrapper {
        gap: 30px;
    }
    
    .btn {
        width: 110px;
        height: 110px;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .logo {
        /*
        margin-left: 0;
        flex: 1;
        */
        display: none;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .nav-icons {
        margin-right: 0;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .nav-icon img {
        width: 28px;
        height: 28px;
    }
    
    /* 메인 콘텐츠 모바일 최적화 - 중앙 정렬 */
    .main-section {
        padding: 20px 0 40px 0;
    }
    
    .content-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center; 
        height: auto;
        gap: 20px;
    }
    
    .left-content {
        margin-left: 0;
        order: 2;
        width: 100%;
        max-width: 400px; 
        position: relative;
    }
    
    .left-content h1 {
        font-size: 1.4em;
        margin-bottom: 25px;
        margin-top: 15px;
        margin-left: 30px; 
        text-align: center; 
        position: relative;
        display: inline-block; 
        padding-left: 25px;
    }

    .left-content h1::before {
        content: '';
        position: absolute;
        left: -20px; 
        top: 50%;
        transform: translateY(-50%);
        width: 45px;
        height: 45px;
        background-image: url('mobile-logo.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .left-content p {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .ending-text {
        font-size: 0.95em;
        margin-top: 25px;
        margin-bottom: 30px;
    }
    
    .small-image {
        max-width: 350px;
        margin: 0 auto; 
        margin-left: 8px;
    }
    
    .right-content {
        margin-right: 0;
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center; 
    }
    
    .main-image {
        width: 90%;
        max-width: 400px;
    }
    
    /* 버튼 섹션 모바일 최적화 - 2x3 그리드 */
    .button-section {
        padding: 40px 0;
    }
    
    .button-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        grid-template-rows: repeat(2, 1fr); 
        gap: 15px;
        justify-items: center;
        max-width: 380px; 
        margin: 0 auto;
}
    
    .btn {
        width: 120px;  
        height: 120px;
    }
    
    .btn span {
        font-size: 14px;
    }
    
    .circle {
        width: 85px; 
        height: 85px;
    }
    
    .circle span {
        font-size: 14px;
    }
    
    /* 푸터 모바일 최적화 */
    .footer {
        padding: 30px 15px;
    }
    
    .footer-links {
        margin-bottom: 25px;
        text-align: center;
        white-space: nowrap;
    }
    
    .footer-link {
        font-size: 14px;
        padding: 0 15px;
        display: inline-block;
        margin-bottom: 0px;
        position: relative;
        white-space: nowrap;
    }
    
    .footer-link:first-child {
        margin-left: 0;
    }

    .footer-link:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -1px;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 12px;
        background-color: #ccc;
        display: block;
    }
    
    .footer-info {
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
    }
    
    .footer-info div {
        margin-bottom: 8px;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* 헤더 소형 모바일 */
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-icons {
        justify-content: center;
        gap: 15px;
    }
    
    .nav-icon img {
        width: 30px;
        height: 30px;
    }
    
    /* 메인 콘텐츠 소형 모바일 - 중앙 정렬 유지 */
    .left-content {
        max-width: 320px; 
    }
    
    .left-content h1 {
        font-size: 1.3em;
        padding-left: 22px; 
        margin-left: 45px;
    }

    .left-content h1::before {
        left: -50px; /* 텍스트에 더 가깝게 */
        width: 70px;
        height: 70px; 
    }
    
    .left-content p {
        font-size: 0.95em;
    }
    
    .small-image {
        max-width: 280px;
    }
    
    /* 버튼 2x3 그리드 크기 */
    .button-wrapper {
        max-width: 320px; 
        gap: 12px;
}
    
    .btn {
        width: 100px;
        height: 100px;
    }
    
    .btn span {
        font-size: 13px;
    }
    
    .circle {
        width: 70px;
        height: 70px;
    }
    
    .circle span {
        font-size: 12px;
    }
    
    /* 푸터 소형 모바일 */
    .footer-link {
        font-size: 13px; 
        padding: 0 12px;
        display: inline-block;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .footer-link:not(:last-child)::after {
        display: block;
    }
    
    .footer-info {
        font-size: 12px;
    }
}

/* 큰 모니터용 (1600px 이상) */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .left-content h1 {
        font-size: 2.8em;
    }
    
    .btn {
        width: 140px;
        height: 140px;
    }
    
    .btn span {
        font-size: 18px;
    }
    
    .circle {
        width: 100px;
        height: 100px;
    }
    
    .circle span {
        font-size: 18px;
    }
    
    .logo, .left-content {
        margin-left: 140px;
    }
    
    .nav-icons, .right-content {
        margin-right: 140px;
    }
}