.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    border-bottom: 1px solid rgba(200, 230, 180, 0.16);
    backdrop-filter: blur(8px);
    background: linear-gradient(135deg, #0b2b26 0%, #0a1f1c 100%);
}

    .site-header .navbar {
        background: transparent;
        box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.16);
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        min-height: 60px;
        position: relative;
        z-index: 2001;
        overflow: visible;
    }

body {
    padding-top: 60px;
}

.site-header .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: relative;
    z-index: 2003;
}

    .site-header .navbar-brand:hover {
        transform: scale(1.02);
        opacity: 0.95;
    }

.site-header .logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.site-header .logo-text {
    background: linear-gradient(120deg, #e9f5e6, #cfe8cf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}

@media (prefers-color-scheme: dark) {
    .site-header .logo-text {
        background: none;
        -webkit-background-clip: initial;
        background-clip: initial;
        color: #ffffff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    }
}

.site-header .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 0.25rem 0.5rem;
    box-shadow: none;
    position: relative;
    z-index: 2004;
}

    .site-header .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(190, 225, 180, 0.18);
    }

.site-header .navbar-toggler-icon {
    background-image: var(--bs-navbar-toggler-icon-bg);
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
}

.site-header .navbar-collapse {
    position: relative;
    z-index: 2001;
    overflow: visible;
}

.site-header .nav-link {
    color: rgba(240, 248, 240, 0.86);
    font-weight: 500;
    font-size: 1rem;
    margin: 0 0.2rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

    .site-header .nav-link:hover {
        background-color: rgba(210, 240, 190, 0.16);
        color: #f5ffea;
        transform: translateY(-2px);
    }

    .site-header .nav-link.active {
        background-color: #2c7a47;
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    }

.site-header .nav-item.dropdown > .nav-link.dropdown-toggle {
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
}

    .site-header .nav-item.dropdown > .nav-link.dropdown-toggle:focus {
        outline: none;
        box-shadow: none;
    }

.site-header .dropdown {
    position: relative;
}

.site-header .dropdown-menu {
    background: #132f28;
    border: 1px solid rgba(180, 220, 140, 0.18);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
    z-index: 2100;
}

.site-header .dropdown-item {
    color: rgba(240, 248, 240, 0.88);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

    .site-header .dropdown-item:hover,
    .site-header .dropdown-item:focus {
        background-color: rgba(210, 240, 190, 0.16);
        color: #fff;
    }

    .site-header .dropdown-item.active,
    .site-header .dropdown-item:active {
        background-color: #2c7a47;
        color: #fff;
    }

.site-header .custom-dropdown {
    position: relative;
}

.site-header .custom-dropdown-toggle {
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    cursor: pointer;
}

    .site-header .custom-dropdown-toggle:focus {
        outline: none;
        box-shadow: none;
    }

.site-header .custom-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 220px;
    margin: 0;
    list-style: none;
    background: #132f28;
    border: 1px solid rgba(180, 220, 140, 0.18);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
    z-index: 2100;
}

.site-header .custom-dropdown.open .custom-dropdown-menu {
    display: block;
}

.site-footer {
    background: linear-gradient(135deg, #0b2b26 0%, #0a1f1c 100%);
}

.footer-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: 1rem;
        background: rgba(9, 26, 24, 0.98);
        border: 1px solid rgba(180, 220, 140, 0.15);
        border-radius: 18px;
        padding: 0.85rem;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .navbar-nav {
        align-items: stretch !important;
    }

    .site-header .nav-item {
        width: 100%;
    }

    .site-header .nav-link {
        margin: 0;
        width: 100%;
    }

    .site-header .dropdown-menu,
    .site-header .custom-dropdown-menu {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        float: none;
        width: 100%;
        min-width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border-radius: 14px;
    }

    .site-header .custom-dropdown-menu {
        top: auto;
        right: auto;
    }
}

.site-popup {
    position: fixed;
    z-index: 2000;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    border: 1px solid rgba(0,0,0,.08);
}

.site-popup-header {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background: #0b2b26;
    color: #fff;
}

.site-popup-body {
    overflow: auto;
    background: #fff;
}

.site-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .site-popup {
        left: 4vw !important;
        top: 10vh !important;
        width: 92vw !important;
        max-height: 90vh !important;
    }

    .site-popup-body {
        max-height: calc(80vh - 110px);
        overflow-y: auto;
    }
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

    .row > * {
        padding-left: calc(var(--bs-gutter-x) * .5);
        padding-right: calc(var(--bs-gutter-x) * .5);
    }

.par3-text-block {
    max-width: 720px;
    margin: 0 auto;
}

    .par3-text-block p {
        text-align: justify;
        line-height: 1.8;
        letter-spacing: -0.2px;
        word-break: normal; /* 핵심 */
        overflow-wrap: anywhere; /* 핵심 */

        font-size: 1.05rem;
        color: #555;
        margin-bottom: 1.2rem;
    }

        .par3-text-block p:last-child {
            margin-bottom: 0;
        }
/* =========================
   시작페이지 전용 헤더/히어로 override
========================= */

/* 기본적으로 공통 페이지는 기존 fixed header 유지 */
body {
    padding-top: 60px;
}

    /* 시작페이지에서만 body 상단 여백 제거 */
    body:has(.site-header.site-header-transparent) {
        padding-top: 0 !important;
    }

/* 시작페이지 투명 헤더 강제 */
.site-header.site-header-transparent,
.site-header.site-header-transparent::before,
.site-header.site-header-transparent::after,
.site-header.site-header-transparent .navbar,
.site-header.site-header-transparent .container,
.site-header.site-header-transparent .container-fluid {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
}

.site-header.site-header-transparent {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2100 !important;
    border-bottom: none !important;
}

    .site-header.site-header-transparent .navbar {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        min-height: 72px;
    }

    .site-header.site-header-transparent .navbar-brand,
    .site-header.site-header-transparent .logo-text,
    .site-header.site-header-transparent .nav-link,
    .site-header.site-header-transparent .custom-dropdown-toggle {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    }

    .site-header.site-header-transparent .logo-text {
        background: none !important;
        -webkit-background-clip: initial !important;
        background-clip: initial !important;
        color: #ffffff !important;
    }

    .site-header.site-header-transparent .nav-link.active,
    .site-header.site-header-transparent .nav-link:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .site-header.site-header-transparent .navbar-toggler {
        border-color: rgba(255,255,255,0.68) !important;
        background: transparent !important;
    }

        .site-header.site-header-transparent .navbar-toggler:focus {
            box-shadow: none !important;
        }

    .site-header.site-header-transparent .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }

/* 모바일: 메뉴 펼쳤을 때만 배경 */
@media (max-width: 991.98px) {
    .site-header.site-header-transparent .navbar-collapse {
        margin-top: 0.75rem;
        border-radius: 18px;
        padding: 0;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        max-height: none;
        overflow: visible;
    }

        .site-header.site-header-transparent .navbar-collapse.show,
        .site-header.site-header-transparent .navbar-collapse.collapsing {
            padding: 0.85rem;
            background: rgba(9, 26, 24, 0.76) !important;
            border: 1px solid rgba(255,255,255,0.12) !important;
            backdrop-filter: blur(10px);
        }
}

/* =========================
   시작페이지 풀스크린 비주얼
========================= */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home-hero {
    position: relative;
    min-height: 100svh;
    height: 100svh;
    margin-top: 0 !important;
    padding-top: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

    .home-hero-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1);
        animation: heroZoomIn 8s ease-out forwards;
        will-change: transform;
    }

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.45) 100% );
}

.home-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 980px;
    backdrop-filter: blur(1px);
    transform: translateY(12vh);
}

.home-hero-title {
    font-size: clamp(2.3rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.35);
}

.home-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.95;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.home-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
}

@keyframes heroZoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.12);
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 100svh;
        height: 100svh;
    }

    .home-hero-content {
        padding: 0 1.25rem;
    }

    .home-hero-title {
        font-size: clamp(2rem, 10vw, 3.4rem);
        line-height: 1.12;
        text-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.35);
    }

    .home-hero-subtitle {
        font-size: 0.98rem;
    }
}
/* Intro 페이지 전체 스크롤 잠금 */
body.intro-lock {
    overflow: hidden !important;
    height: 100vh;
    margin: 0;
    padding: 0;
}

html:has(body.intro-lock) {
    overflow: hidden;
}
/* main도 넘침 방지 */
body.intro-lock main {
    height: 100vh;
    overflow: hidden !important;
}
/* 모바일 햄버거 메뉴는 스크롤 허용 */
@media (max-width: 991.98px) {
    body.intro-lock .site-header.site-header-transparent .navbar-collapse,
    body.intro-lock .site-header.site-header-transparent .navbar-collapse.show,
    body.intro-lock .site-header.site-header-transparent .navbar-collapse.collapsing {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 90px) !important;
    }

    body.intro-lock .site-header.site-header-transparent .navbar-nav {
        max-height: none;
    }
}
/* =========================
   Intro 하단 카피 고정
========================= */
.intro-copy {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}
/* 모바일 */
@media (max-width: 768px) {
    .intro-copy {
        font-size: 0.7rem;
        bottom: 12px;
    }
}
/* =========================
   Hero text reveal (부드럽게)
========================= */
.hero-reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: heroTextRise 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

.hero-reveal-1 {
    animation-delay: 0.2s;
}

.hero-reveal-2 {
    animation-delay: 0.5s;
}

.hero-reveal-3 {
    animation-delay: 0.8s;
}

@keyframes heroTextRise {
    0% {
        opacity: 0;
        transform: translateY(22px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================
   Intro hero image slider
========================= */
.home-hero.intro-hero-slider {
    position: relative;
    min-height: 100svh;
    height: 100svh;
    overflow: hidden;
}

.intro-hero-slider .home-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.intro-hero-slider .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.6s ease, transform 7.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

    .intro-hero-slider .hero-slide.active {
        opacity: 1;
        transform: scale(1);
        z-index: 1;
    }
