/* 기본 리셋 및 폰트 설정 */


:root {
    --primary-color: #ffffff;
    /* 전체 배경을 화이트로 통일하여 회색빛 사각지대 제거 */
    --text-main: #333333;
    --text-muted: #666666;
    --accent-color: #a3b899;
    /* 차분한 그린 포인트 */
    --logo-blue: #547b91;
    /* 소나기 로고 블루 */
    --nav-hover: #6c8ea4;
    /* 로고 블루에 맞춘 호버 색상 */
    --border-color: #e5e5e5;

    --font-sans: 'Gowun Dodum', 'Noto Sans KR', sans-serif;
    --font-serif: 'Nanum Myeongjo', 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--primary-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header 설정 */
.header {
    width: 100%;
    padding: 1.5rem 0;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* 상위 위치 지정 (모바일 메뉴 위치 기준) */
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    /* 이미지와 텍스트 사이 간격 */
}

.logo-text {
    font-size: 1.15rem;
    /* 글자 크기 축소 */
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 1px;
}

.logo-image {
    height: 60px;
    /* 로고 높이를 한 번 더 축소 */
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* 모바일 햄버거 메뉴 버튼 (기본 숨김) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    /* 메뉴보다 위에 위치 */
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 햄버거 메뉴 애니메이션 (열렸을 때 X 모양) */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.main-nav a {
    font-family: var(--font-sans);
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--nav-hover);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--logo-blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    background-color: var(--logo-blue);
}

/* Sub Navigation Menu */
.sub-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sub-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    background-color: #f7f6f2;
    /* 연한 배경 */
    transition: all 0.3s ease;
}

.sub-nav a.active,
.sub-nav a:hover {
    background-color: var(--logo-blue);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .sub-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Page Header Soft TextStyle Override */
.page-header p {
    font-family: var(--font-sans) !important;
    font-size: 1.4rem !important;
    /* 가독성을 위해 크기 확대 */
    font-weight: 400 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.7 !important;
    color: #555 !important;
}

/* Main Content Layout */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    position: relative;
    padding: 2.5rem 5rem;
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

/* 이미지 위에 올라가는 세로 텍스트 */
.hero-overlay-text {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: nowrap;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 25px;
    color: var(--text-main);
    text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.9), 0px 0px 10px rgba(255, 255, 255, 0.8), 2px 2px 4px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* 반응형 처리 */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 1.5rem;
    }

    .hero-section {
        padding: 2.5rem 5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 40px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: auto;
        padding: 100px 40px 40px;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        border-bottom-left-radius: 30px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 100;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        width: 100%;
        padding: 0 40px;
    }

    .main-nav a {
        font-size: 1.4rem;
        display: inline-block;
        width: 100%;
        padding: 5px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .main-content {
        margin-top: 100px;
        min-height: calc(100vh - 100px);
        padding: 1rem 2rem;
    }

    .hero-image-container {
        aspect-ratio: 4 / 3;
    }

    .hero-overlay-text {
        font-size: 1.5rem;
        letter-spacing: 15px;
        left: 5%;
    }
}

/* Footer 설정 */
.footer {
    width: 100%;
    background-color: #ffffff;
    padding: 60px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.footer-info {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-info p {
    margin-bottom: 2px;
}

.footer-copyright {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #999;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px 20px;
    }
    
    .footer-container {
        padding: 30px 20px;
        align-items: flex-start;
        text-align: left;
    }
}