/* 청풍-블루아이 메인 스타일시트 */

/* CSS Variables */
:root {
    --font-family-primary: 'SUIT', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-family-korean: 'SUIT', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-family-english: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-kr: 'SUIT', sans-serif;
    --font-en: 'Outfit', sans-serif;
}

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

html, body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* 컨테이너 & 레이아웃 */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
}

#wrapper {
    display: flex;
    flex-direction: column;
}

#container_wr {
    flex: 1;
}

/* 숨김 텍스트 */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ============================
   Fullpage Scroll Snap
============================ */
html {
    scroll-padding-top: 0;
}

.section {
    min-height: auto;
    /* padding-left: 20px;
    padding-right: 20px; */
}


/* 빠른 스크롤을 위한 커스텀 스크롤 타이밍 */
* {
    scroll-margin-top: 0;
}

/* ============================
   헤더 스타일
============================ */
/* 헤더 - fixed로 설정 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

/* 스크롤 시 헤더 스타일 */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    transition: all 0.3s ease;
}

@media (min-width: 1401px) {
    .header-container {
        padding: 2.5vh 5vw;
        margin-top: 4vh;
        gap: 2vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .header-container {
        padding: 25px 70px;
        margin-top: 40px;
        gap: 30px;
    }
}

/* 스크롤 시 헤더 컨테이너 스타일 */
.header.scrolled .header-container {
    margin-top: 0;
}

@media (min-width: 1401px) {
    .header.scrolled .header-container {
        padding: 1.7vh 2vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .header.scrolled .header-container {
        padding: 17px 28px;
    }
}

.logo {
    position: relative;
    order: -1;
}

.logo img {
    width: auto;
}

@media (min-width: 1401px) {
    .logo img {
        height: 2.6vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .logo img {
        height: 36px;
    }
}

.header[data-theme="dark"] .nav-link {
    color: #000;
}

.header[data-theme="dark"] .hamburger-menu span {
    background: #000;
}

.header[data-theme="light"] .nav-link {
    color: #fff;
}

.header[data-theme="light"] .hamburger-menu span {
    background: #fff;
}

.header.in-footer {
    background-color: transparent;
    border-bottom-color: transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* PC 전용: 푸터 영역에서 헤더 로고와 메뉴 흰색으로 변경 */
@media (min-width: 769px) {
    .header.in-footer .logo-black {
        display: none !important;
    }

    .header.in-footer .logo-white {
        display: block !important;
    }

    .header.in-footer .nav-link {
        color: #ffffff !important;
    }

    .header.in-footer .hamburger-menu span {
        background-color: #ffffff !important;
    }
}

/* 기본 로고 스타일은 위의 .logo-white, .logo-black에서 처리 */

/* 게시판에서 메인 헤더 숨기기 (게시판 전용 헤더 사용) */
/* 게시판 페이지는 board-head.php 사용하므로 이 규칙 불필요 */

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@media (min-width: 1401px) {
    .nav-list {
        gap: 1.5vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .nav-list {
        gap: 22px;
    }
}

.nav-item {
    position: relative;
    flex-shrink: 0;
}

.nav-link {
    font-weight: 500;
    color: white;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
    font-family: var(--font-family-korean);
    display: block; /* block으로 변경하여 전체 영역 클릭 가능 */
    text-align: center; /* 텍스트 중앙 정렬 */
}

@media (min-width: 1401px) {
    .nav-link {
        font-size: 1vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .nav-link {
        font-size: 17px;
    }
}

/* 모바일(768px 이하)에서 중앙 메뉴 숨기기, 햄버거 표시 */
@media (max-width: 768px) {
    .main-nav {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
    }
}

/* 햄버거 메뉴 */
.hamburger-menu {
    display: none; /* PC에서 숨김 */
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    align-items: flex-start;
}

@media (min-width: 1401px) {
    .hamburger-menu {
        gap: 0.35vh;
        width: 1.8vw;
        height: 1.6vh;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .hamburger-menu {
        gap: 4px;
        width: 25px;
        height: 16px;
    }
}

.hamburger-menu span {
    background: white;
    transition: all 0.3s ease;
}

@media (min-width: 1401px) {
    .hamburger-menu span {
        height: 0.25vh;
        border-radius: 0.12vh;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .hamburger-menu span {
        height: 3px;
        border-radius: 1.5px;
    }
}

.hamburger-menu span:nth-child(1) {
    /* 제일 짧음 */
}

@media (min-width: 1401px) {
    .hamburger-menu span:nth-child(1) {
        width: 0.9vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .hamburger-menu span:nth-child(1) {
        width: 13px;
    }
}

.hamburger-menu span:nth-child(2) {
    /* 제일 김 */
}

@media (min-width: 1401px) {
    .hamburger-menu span:nth-child(2) {
        width: 1.8vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .hamburger-menu span:nth-child(2) {
        width: 25px;
    }
}

.hamburger-menu span:nth-child(3) {
    /* 중간 길이 */
}

@media (min-width: 1401px) {
    .hamburger-menu span:nth-child(3) {
        width: 1.3vw;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .hamburger-menu span:nth-child(3) {
        width: 18px;
    }
}

.sub-nav {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-nav li {
    padding: 0 20px;
}

.sub-nav a {
    display: block;
    padding: 8px 0;
    color: #666;
    font-weight: 400;
}

.sub-nav a:hover {
    color: #2563eb;
}

/* ========================================
   메가 메뉴 스타일
   ======================================== */

/* 메가 메뉴 컨테이너 */
.mega-menu {
    position: absolute;
    top: calc(100% + 1px); /* 헤더 하단 보더(1px) 아래로 배치 */
    left: 0;
    right: 0;
    width: 100%;
    /* 헤더보다 약간 더 진한 배경 (가독성 향상하면서도 블러 효과 유지) */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    /* 그림자 제거 - 헤더와 하나의 박스로 보이도록 */
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 990; /* 헤더(1000)보다 낮게 설정 */
    /* 기본적으로 숨김 - 스티키 헤더에서만 표시 */
    display: none;
}

/* 스티키 헤더에서만 메가 메뉴 활성화 */
.header.scrolled .mega-menu {
    display: block;
}

/* 스티키 헤더 호버 시 메가 메뉴 표시 */
.header.scrolled:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

/* 메가 메뉴 내부 컨테이너 - header-container와 동일한 구조 */
.mega-menu-container {
    width: 100%;
    padding: 1.7vh 2vw; /* 스티키 헤더와 동일한 패딩 */
    display: flex;
    align-items: center;
    justify-content: space-between; /* header-container와 동일 */
    transition: all 0.3s ease;
}

/* 좌측 여백 (햄버거 메뉴 영역과 동일한 공간 확보) */
.mega-menu-spacer {
    width: 1.8vw; /* hamburger-menu width와 동일 */
    flex-shrink: 0;
}

/* 메가 메뉴 네비게이션 - main-nav와 동일한 정렬 */
.mega-menu-nav {
    display: flex;
    justify-content: flex-end;
    margin-left: auto; /* ⭐ main-nav와 동일한 정렬 방식 */
}

/* 메가 메뉴 컬럼 컨테이너 */
.mega-menu-columns {
    display: flex;
    gap: 0.3vw; /* ⭐ nav-list와 동일한 gap (더 축소) */
    align-items: flex-start;
}

/* 메가 메뉴 각 컬럼 */
.mega-menu-column {
    display: flex;
    flex-direction: column;
    width: 5vw; /* ⭐ nav-item과 동일한 고정 너비 (더 축소) */
    text-align: center; /* 텍스트 중앙 정렬 */
}

/* 메가 메뉴 리스트 */
.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-menu-column li {
    padding: 0;
}

/* 메가 메뉴 링크 */
.mega-menu-column a {
    display: block;
    padding: 6px 0; /* 상하 패딩 약간 줄임 */
    color: #64748B;
    font-size: 0.85vw;
    font-weight: 400;
    line-height: 1.4;
    transition: all 0.2s ease;
    font-family: var(--font-family-korean);
    white-space: nowrap;
    position: relative;
    text-align: center; /* 텍스트 중앙 정렬 */
}

.mega-menu-column a:hover {
    color: #6699cc;
}

.mega-menu-column a:hover::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #6699cc;
}

/* 메가 메뉴와 메인 메뉴 수직 정렬 미세 조정 */
.mega-menu-column:first-child {
    /* 첫 번째 컬럼의 시작 위치를 미세 조정할 수 있음 */
}

/* 메가 메뉴가 메인 메뉴 항목 하단에 정확히 위치하도록 */
.header.scrolled .mega-menu {
    margin-top: 0; /* 헤더 바로 아래에 위치 */
}

/* 모바일에서 메가 메뉴 숨김 */
@media (max-width: 768px) {
    .mega-menu {
        display: none !important; /* 모바일에서 완전히 숨김 */
    }
}

/* 작은 데스크탑 */
@media (max-width: 1600px) {
    .mega-menu-column a {
        font-size: 12px;
    }

    .mega-menu-spacer {
        width: 1.8vw;
    }
}

/* 대형 데스크탑에서 메가 메뉴 추가 조정 */
@media (min-width: 1920px) {
    .mega-menu-column a {
        font-size: 0.8vw; /* 대형 화면에서 폰트 크기 조정 */
    }
}

/* 기존 user-menu 스타일 제거됨 - 햄버거 메뉴로 대체 */

.login-btn {
    background: #2563eb;
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}

.login-btn:hover {
    background: #1d4ed8;
}

/* 모바일 메뉴 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ============================
   히어로 섹션
============================ */
/* 히어로 섹션 - 시안에 맞는 디자인 */
.hero-wrapper {
    padding: 1.75vh 1vw;
    display: block;
    position: relative;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 4vh);
    border-radius: 2.4vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-masked {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-masked video,
.hero-image-masked img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 3;
    text-align: right;
    max-width: 72vw;
    /* margin-left: auto; */
    /* margin-right: 0; */
    margin-top: 31vh;
}

.hero-main-text {
    opacity: 0;
    transform: translateY(3vh);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-main-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    opacity: 0;
    transform: translateY(3vh);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-description.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(3vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main-text h1 {
    font-family: var(--font-family-korean);
    font-weight: 600;
    line-height: 1.1;
    color: white;
    letter-spacing: -0.02em;
    word-break: keep-all;
    overflow-wrap: break-word;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 8px 60px rgba(0, 0, 0, 0.15), 0 12px 90px rgba(0, 0, 0, 0.1);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (min-width: 1501px) {
    .hero-main-text h1 {
        font-size: 3.3vw;
        margin: 0 0 3vh 0;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .hero-main-text h1 {
        font-size: 60px;
        margin: 0 0 35px 0;
    }
}

.hero-description p {
    font-family: var(--font-family-korean);
    font-weight: 400;
    line-height: 1.5;
    color: white;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 0;
    text-shadow: 0 3px 25px rgba(0, 0, 0, 0.18), 0 6px 50px rgba(0, 0, 0, 0.12), 0 9px 75px rgba(0, 0, 0, 0.08);
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (min-width: 1501px) {
    .hero-description p {
        font-size: 1.1vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .hero-description p {
        font-size: 19px;
    }
}

/* 우측 하단 브랜딩 영역 */
.hero-branding {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    padding: 2vh 2.5vw;
    border-top-left-radius: 2.4vh;
    border-bottom-right-radius: 2.4vh;
}

.branding-text {
    font-family: var(--font-family-english);
    font-size: 1.2vw;
    font-weight: 700;
    color: #6699cc;
    letter-spacing: 0.1em;
}

/* 히어로 하단 통계 */
.hero-stats {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroStatsFadeIn 1s ease-out 0.7s forwards;
}

@media (min-width: 1501px) {
    .hero-stats {
        bottom: 4.8vh;
        max-width: 72vw;
        gap: 3vw;
        padding: 0 6vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .hero-stats {
        bottom: 55px;
        max-width: 1080px;
        gap: 45px;
        padding: 0 90px;
    }
}

@keyframes heroStatsFadeIn {
    from {
        opacity: 0;
        transform: translateY(2vh);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

@media (min-width: 1501px) {
    .hero-stat-item {
        min-width: 8vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .hero-stat-item {
        min-width: 120px;
    }
}

.hero-stat-number {
    font-family: 'Outfit', var(--font-family-english);
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    will-change: contents;
    transform: translateZ(0);
}

.hero-stat-unit {
    font-size: 1.2vw;
    font-weight: 600;
    margin-left: 0.2vw;
}

.hero-stat-prefix {
    font-size: 1.2vw;
    font-weight: 600;
    margin-right: 0.2vw;
    font-family: 'SUIT', var(--font-family-korean);
}

.hero-stat-label {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 0.85vw;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    opacity: 0.9;
}

.hero-stat-divider {
    color: #ffffff;
    font-size: 0.6vw;
    opacity: 0.5;
}

/* ============================
   공통 섹션 헤더
============================ */
.section-header {
    text-align: center;
    margin-bottom: 5vh;
}

.section-category {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(102, 153, 204, 0.12);
    color: #4977b5;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 1501px) {
    .section-category {
        gap: 0.8vw;
        padding: 0.6vh 1vw;
        font-size: 0.65vw;
        margin-bottom: 1.5vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .section-category {
        gap: 12px;
        padding: 8px 15px;
        font-size: 12px;
        margin-bottom: 18px;
    }
}

.category-dot {
    border-radius: 50%;
    background: #6699cc;
}

@media (min-width: 1501px) {
    .category-dot {
        width: 0.6vw;
        height: 0.6vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .category-dot {
        width: 9px;
        height: 9px;
    }
}

.category-text {
    font-family: 'Outfit', var(--font-family-english);
    letter-spacing: 0.08em;
}

.section-title {
    font-family: 'SUIT', var(--font-family-korean);
    font-weight: 600;
    line-height: 1.18;
    color: #0f172a;
}

@media (min-width: 1501px) {
    .section-title {
        font-size: 2.2vw;
        margin: 0 0 1.2vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .section-title {
        font-size: 33px;
        margin: 0 0 15px;
    }
}

.section-subtitle {
    font-family: 'SUIT', var(--font-family-korean);
    font-weight: 400;
    color: #656565;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 1501px) {
    .section-subtitle {
        font-size: 1vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .section-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 4vh;
    }

    .section-category {
        font-size: 12px;
        gap: 2vw;
        padding: 10px 15px;
    }

    .category-dot {
        width: 1.5vw;
        height: 1.5vw;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 3vw;
    }

    .section-category {
        margin-bottom: 16px;
    }
}

/* ============================
   투자진행현황 섹션
============================ */
@media (min-width: 1501px) {
    .stats-section {
        padding: 10vh 5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stats-section {
        padding: 100px 75px;
    }
}

.stats-section {
    background: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* 패딩 래퍼: 외부 여백 담당 */
.stats-section__padding-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* 컨테이너: 헤더 + 컨텐츠 중앙정렬 */
.stats-section__container {
    display: flex;
    flex-direction: column;
}

/* 새로운 좌우 레이아웃 */
@media (min-width: 1501px) {
    .stats-grid-layout {
        gap: 2vw;
        max-width: 71vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stats-grid-layout {
        gap: 30px;
        max-width: 1400px;
        padding: 0 40px;
    }
}

.stats-grid-layout {
    display: flex;
    width: 100%;
    margin: 0 auto;
    align-items: start;
    min-height: 400px;
}

/* 좌측: 도넛 차트 영역 */
@media (min-width: 1501px) {
    .stats-chart-area {
        min-width: 20vw;
        gap: 1vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stats-chart-area {
        min-width: 300px;
        gap: 15px;
    }
}

.stats-chart-area {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 25%;
}

@media (min-width: 1501px) {
    .chart-wrapper {
        height: 32vh;
        max-height: 32vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .chart-wrapper {
        height: 320px;
        max-height: 320px;
    }
}

.chart-wrapper {
    width: 100%;
    min-height: 250px;
    position: relative;
}

.chart-info {
    text-align: left;
    width: 100%;
}

@media (min-width: 1501px) {
    .chart-info h3 {
        font-size: 1.5vw;
        margin-bottom: 1.5vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .chart-info h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }
}

.chart-info h3 {
    font-family: var(--font-kr);
    font-weight: 700;
    color: #000000;
}

@media (min-width: 1501px) {
    .chart-info .stat-description {
        font-size: 0.9vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .chart-info .stat-description {
        font-size: 13px;
    }
}

.chart-info .stat-description {
    font-family: var(--font-kr);
    color: #686868;
    line-height: 1.2;
}

/* 우측: 프로그레스 바 영역 */
@media (min-width: 1501px) {
    .stats-progress-area {
        gap: 8vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stats-progress-area {
        gap: 80px;
    }
}

.stats-progress-area {
    display: flex;
    flex-direction: column;
    width: 75%;
}

@media (min-width: 1501px) {
    .stats-grid {
        gap: 3vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stats-grid {
        gap: 30px;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1501px) {
    .stat-item {
        gap: 1.5vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stat-item {
        gap: 15px;
    }
}

.stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1501px) {
    .stat-item h3 {
        font-size: 1.5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stat-item h3 {
        font-size: 22px;
    }
}

.stat-item h3 {
    font-family: var(--font-kr);
    font-weight: 700;
    color: #000000;
    margin-bottom: 0;
    text-align: left;
}

.stat-value {
    color: #6699cc;
    font-family: var(--font-en);
    font-variant-numeric: tabular-nums;
}

.stat-value .count {
    display: inline-block;
    min-width: 2ch;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 1501px) {
    .stat-description {
        font-size: 0.9vw;
        margin-bottom: 3vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .stat-description {
        font-size: 13px;
        margin-bottom: 30px;
    }
}

.stat-description {
    font-family: var(--font-kr);
    color: #686868;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.2;
}

@media (min-width: 1501px) {
    .progress-bar {
        height: 3.6vh;
        border-radius: 99vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .progress-bar {
        height: 36px;
        border-radius: 990px;
    }
}

.progress-bar {
    width: 100%;
    background: #E2E8F0;
    overflow: hidden;
    position: relative;
}

@media (min-width: 1501px) {
    .progress-fill {
        border-radius: 99vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .progress-fill {
        border-radius: 990px;
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #795fff, #409bff);
    width: 0%;
    position: relative;
}


/* 모바일 대응 */
@media (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
        height: auto;
        margin-top: 0;
    }

    .stats-section__padding-wrapper {
        padding: 0;
    }

    .stats-section .section-header {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .stats-section .section-category {
        font-size: 2.5vw;
    }

    .stats-section .section-title {
        font-size: 5vw;
    }

    .stats-section .section-subtitle {
        font-size: 3.8vw;
        line-height: 1.6;
    }

    .stats-grid-layout {
        flex-direction: column;
        gap: 40px;
        max-width: 100%;
        padding: 0 20px;
    }

    .stats-chart-area {
        width: 100%;
        min-width: 100%;
        align-items: center;
        gap: 10px;
    }

    .chart-wrapper {
        max-width: 200px;
        margin-bottom: 0;
    }

    .chart-info {
        text-align: center;
    }

    .chart-info h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .chart-info .stat-description {
        font-size: 13px;
    }

    .stats-progress-area {
        width: 100%;
        gap: 30px;
    }

    .stats-grid {
        gap: 30px;
        padding: 0;
    }

    .stat-item {
        gap: 0;
        align-items: center;
        text-align: center;
        height: auto;
    }

    .stat-item h3 {
        font-size: 20px;
        margin: 0;
        text-align: center;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-description {
        font-size: 13px;
        margin: 0 0 4px 0;
        text-align: center;
    }

    .progress-bar {
        margin-top: 0;
    }

    .stat-number {
        font-size: 32px;
        top: -70px;
    }

    .stat-number .unit {
        font-size: 16px;
    }

    .progress-bar {
        height: 22px;
        border-radius: 11px;
        margin-top: 20px;
    }

    .progress-fill {
        border-radius: 11px;
    }

    .stat-number::after {
        bottom: -20px;
        border-top: 8px solid #000000;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }
    .chart-wrapper {
            height: 30vh;
    }
}

/* ============================
   투자 통계 풀페이지 섹션
============================ */
.investment-stats-fullpage {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Large Desktop (1501px+): 23vh 패딩 (230px 기준) */
@media (min-width: 1501px) {
    .investment-stats-fullpage {
        padding: 23vh 0;
    }
}

/* Tablet (769px~1500px): 230px */
@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stats-fullpage {
        padding: 230px 0;
    }
}

.stats-fullpage-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 히어로 스타일 재사용 - 프라이머리 색상으로 변경 */
.investment-stats-fullpage .hero-stats {
    position: static;
    opacity: 1;
    animation: none;
    padding: 0;
}

/* 숫자 스타일 */
.investment-stats-fullpage .hero-stat-number {
    color: #6699cc;
}

@media (min-width: 1501px) {
    .investment-stats-fullpage .hero-stat-number {
        font-size: 4vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stats-fullpage .hero-stat-number {
        font-size: 60px;
    }
}

.investment-stats-fullpage .hero-stat-unit {
}

@media (min-width: 1501px) {
    .investment-stats-fullpage .hero-stat-unit {
        font-size: 2vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stats-fullpage .hero-stat-unit {
        font-size: 30px;
    }
}

.investment-stats-fullpage .hero-stat-prefix {
}

@media (min-width: 1501px) {
    .investment-stats-fullpage .hero-stat-prefix {
        font-size: 2vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stats-fullpage .hero-stat-prefix {
        font-size: 30px;
    }
}

.investment-stats-fullpage .hero-stat-label {
    color: #000000;
}

@media (min-width: 1501px) {
    .investment-stats-fullpage .hero-stat-label {
        font-size: 1.2vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stats-fullpage .hero-stat-label {
        font-size: 18px;
    }
}

.investment-stats-fullpage .hero-stat-divider {
    color: #000000;
}

@media (min-width: 1501px) {
    .investment-stats-fullpage .hero-stat-divider {
        font-size: 1.5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .investment-stats-fullpage .hero-stat-divider {
        font-size: 22px;
    }
}

/* 태블릿 - 2열*2행 레이아웃, 점 숨김 */
@media (max-width: 1024px) {
    .investment-stats-fullpage .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .investment-stats-fullpage .hero-stat-divider {
        display: none;
    }

    .investment-stats-fullpage .hero-stat-number {
        font-size: 48px;
    }

    .investment-stats-fullpage .hero-stat-unit {
        font-size: 24px;
    }

    .investment-stats-fullpage .hero-stat-prefix {
        font-size: 24px;
    }

    .investment-stats-fullpage .hero-stat-label {
        font-size: 16px;
    }
}

/* 모바일 - 2열*2행 유지 */
@media (max-width: 768px) {
    .investment-stats-fullpage .hero-stats {
        gap: 30px;
        padding: 80px 20px;
    }

    .investment-stats-fullpage .hero-stat-number {
        font-size: 36px;
    }

    .investment-stats-fullpage .hero-stat-unit {
        font-size: 18px;
    }

    .investment-stats-fullpage .hero-stat-prefix {
        font-size: 18px;
    }

    .investment-stats-fullpage .hero-stat-label {
        font-size: 14px;
    }
}

/* ============================
   소개 섹션
============================ */
.intro-section {
    padding: 80px 0;
    text-align: center;
    background: white;
}

.intro-section h2 {
    font-size: clamp(2rem, 2.8vw, 3rem);
    font-weight: 600;
    line-height: 1.18;
    color: #1e293b;
    margin-bottom: 15px;
}

.intro-section p {
    font-size: 1.1rem;
    color: #64748b;
}

/* ============================
   프로젝트 정보 섹션
============================ */
.project-info-section {
    padding: 100px 0;
    background: #f8fafc;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.project-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
}

.project-details ul {
    margin-bottom: 40px;
}

.project-details li {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.project-details li::before {
    content: '•';
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.btn-more {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-more:hover {
    background: #1d4ed8;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    text-align: center;
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-weight: 700;
    color: #1e293b;
}

/* ============================
   갤러리 섹션
============================ */
.project-gallery-section {
    background: white;
    display: flex;
    flex-direction: column;
    padding: 10vh 0;
    justify-content: center;
    position: relative;
}

/* 패딩 래퍼: 헤더만 좌우 패딩 */
.project-gallery-section__padding-wrapper {
    padding: 0 5vw;
}

/* 빈 메시지 래퍼 */
.project-gallery-section__empty-wrapper {
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
    gap: 2vw;
}

/* ============================
   Business Stability 섹션
============================ */
.business-stability-section {
    padding: 100px 0;
}


/* 카드 그리드 */
.business-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 공통 카드 스타일 */
.business-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

/* 큰 카드 (제천시 공식 협약) */
.business-card-large {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
    position: relative;
    background-image: url('../img/bento-img-1.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}


.business-card-large .card-content {
    position: relative;
}

.business-card-large .card-title {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 8px 0;
}

.business-card-large .card-subtitle {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
}

.business-card-large .card-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-card-large .card-details li {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 8px;
}


/* 실시설계 진행 (1행 우측) */
.business-card-small:nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
    background: #f3f2f2;
    text-align: center;
}

/* 검증된 시공사 (2행 좌측) */
.business-card-small:nth-child(3) {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    background: #f3f2f2;
    text-align: center;
}

/* 사유지 무상사용 (2행 가운데) */
.business-card-small:nth-child(4) {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    background: #f3f2f2;
    text-align: center;
}

/* 작은 카드들 공통 스타일 */
.business-card-small {
    background: #f3f2f2;
    text-align: center;
}

.business-card-small .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
}

.business-card-small .card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.business-card-small .card-title {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.business-card-small .card-subtitle {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 16px 0;
}

.business-card-small .card-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-card-small .card-details li {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.2;
    margin-bottom: 4px;
}


/* AAA 등급 카드 */
.business-card-aaa {
    grid-row: 2 / 3;
    grid-column: 3 / 4;
    background: #6699cc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    border: none;
}

.business-card-aaa .card-content {
    text-align: center;
}

.business-card-aaa .card-rating {
    font-family: 'Outfit', var(--font-family-english);
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1;
    letter-spacing: 0.1em;
}

.business-card-aaa .card-title {
    font-family: 'SUIT', var(--font-family-korean);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}


/* ============================
   정보 카드 섹션 (기존)
============================ */
.info-cards-section {
    padding: 100px 0;
    background: #f8fafc;
}

.info-cards-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
}

.info-cards-section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-card p {
    color: #64748b;
    line-height: 1.6;
}

.card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-primary p {
    color: rgba(255, 255, 255, 0.9);
}

.card-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.card-secondary p {
    color: rgba(255, 255, 255, 0.9);
}

.card-accent {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.card-accent p {
    color: rgba(255, 255, 255, 0.9);
}

.card-accent h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* ============================
   푸터 (새로운 디자인)
============================ */
.footer {
    padding: 0;
    background: #000000;
}

/* PC 전용: 메인 랜딩 푸터 - 투자랜딩처럼 자동 높이 조절 */
@media (min-width: 769px) {
    /* 메인 랜딩 페이지만 적용 (.main-landing-page 클래스 기반) */
    body.main-landing-page .footer-main-landing {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
}

/* 첫 번째 섹션: 동영상 배경 */
/* 푸터 비디오 섹션 */
@media (min-width: 1501px) {
    .footer-video-section {
        height: 64vh;
        padding-top: 10vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-video-section {
        height: 640px;
        padding-top: 100px;
    }
}

.footer-video-section {
    position: relative;
    overflow: hidden;
}

.footer-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.footer-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.footer-video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
}

/* 푸터 비디오 컨텐츠 */
@media (min-width: 1501px) {
    .footer-video-content {
        max-width: 71vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-video-content {
        max-width: 1400px;
        padding: 0 40px;
    }
}

.footer-video-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    color: white;
}

.video-play-button {
    flex-shrink: 0;
}

/* 재생 버튼 이미지 */
@media (min-width: 1501px) {
    .video-play-button img {
        width: 5vw;
        height: 5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .video-play-button img {
        width: 75px;
        height: 75px;
    }
}

.video-play-button img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-play-button img:hover {
    transform: scale(1.1);
}

.video-text {
    text-align: right;
}

/* 비디오 타이틀 (슬로건) */
@media (min-width: 1501px) {
    .video-title {
        font-size: 2.8vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .video-title {
        font-size: 42px;
    }
}

.video-title {
    font-family: var(--font-family-korean);
    font-weight: 400;
    color: white;
    line-height: 1.18;
}

/* 비디오 서브타이틀 */
@media (min-width: 1501px) {
    .video-subtitle {
        font-size: 2.8vw;
        margin: 0 0 3vh 0;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .video-subtitle {
        font-size: 42px;
        margin: 0 0 30px 0;
    }
}

.video-subtitle {
    font-family: var(--font-family-korean);
    font-weight: 400;
    color: white;
    line-height: 1.18;
}

/* 비디오 설명 */
@media (min-width: 1501px) {
    .video-description {
        font-size: 1vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .video-description {
        font-size: 17px;
    }
}

.video-description {
    font-family: var(--font-family-korean);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    letter-spacing: -0.02em;
}

/* 두 번째 섹션: 정보 섹션 */
.footer-info-section {
    background: #000000;
    color: white;
}

@media (min-width: 1501px) {
    .footer-info-section {
        padding: 4vh 0 3vh;
        padding-bottom: calc(var(--inquiry-form-height, 0px) + 3vh);
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-info-section {
        padding: 40px 0 30px;
        padding-bottom: calc(var(--inquiry-form-height, 0px) + 30px);
    }
}

.footer-info-grid {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1501px) {
    .footer-info-grid {
        max-width: 71vw;
        margin-bottom: 2vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-info-grid {
        max-width: 1400px;
        padding: 0 40px;
        margin-bottom: 20px;
    }
}

.footer-info-column h4 {
    font-family: var(--font-family-korean);
    font-weight: 700;
    color: #6699cc;
}

@media (min-width: 1501px) {
    .footer-info-column h4 {
        font-size: 0.9vw;
        margin: 0 0 1.2vh 0;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-info-column h4 {
        font-size: 16px;
        margin: 0 0 12px 0;
    }
}

.footer-info-column {
    flex: 0 0 auto;
}

.footer-info-column p {
    font-family: var(--font-family-korean);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.6;
}

@media (min-width: 1501px) {
    .footer-info-column p {
        font-size: 0.75vw;
        margin: 0 0 0.6vh 0;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-info-column p {
        font-size: 13px;
        margin: 0 0 6px 0;
    }
}

.footer-bottom {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1501px) {
    .footer-bottom {
        max-width: 71vw;
        padding-top: 1.5vh;
        gap: 1.5vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-bottom {
        max-width: 1400px;
        padding: 15px 40px 0;
        gap: 22px;
    }
}

.footer-bottom-links {
    display: flex;
    align-items: center;
}

@media (min-width: 1501px) {
    .footer-bottom-links {
        gap: 1vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-bottom-links {
        gap: 15px;
    }
}

.footer-bottom-links span {
    font-family: var(--font-family-korean);
    font-weight: 400;
    color: #ffffff;
}

@media (min-width: 1501px) {
    .footer-bottom-links span {
        font-size: 0.75vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-bottom-links span {
        font-size: 13px;
    }
}

.footer-copyright p,
.footer-copyright-text {
    font-family: var(--font-family-korean);
    font-weight: 400;
    color: #ffffff;
    margin: 0;
}

@media (min-width: 1501px) {
    .footer-copyright p,
    .footer-copyright-text {
        font-size: 0.75vw;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .footer-copyright p,
    .footer-copyright-text {
        font-size: 13px;
    }
}

.admin-login-btn {
    font-family: var(--font-family-korean);
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
}

@media (min-width: 1501px) {
    .admin-login-btn {
        font-size: 0.75vw;
        padding: 0.5vh 1vw;
        border-radius: 0.4vh;
    }
}

@media (min-width: 769px) and (max-width: 1500px) {
    .admin-login-btn {
        font-size: 11px;
        padding: 5px 15px;
        border-radius: 4px;
    }
}

.admin-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================
   반응형 디자인
============================ */

/* 태블릿 */
@media (max-width: 1400px) and (min-width: 1025px) {
    .footer {
        padding: 0;
    }

    /* 헤더 스티키 강화 - 태블릿에서도 fixed 유지 */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
    }

    .header-container {
        padding: 15px 60px;
    }

    .main-nav {
        display: none;
    }

    /* 히어로 섹션 높이 100dvh 꽉 채우기 */
    .hero-wrapper {
        padding: 0;
        min-height: 100dvh;
        height: 100dvh;
        display: flex;
        align-items: stretch;
        z-index: 1;
    }

    .hero-section {
        height: 100%;
        min-height: 100%;
        border-radius: 0;
        margin: 0;
    }

    /* 나머지 섹션들도 z-index 보장 */
    .section {
        position: relative;
        z-index: 2;
    }

    /* 투자진행현황 섹션 - 히어로 위로 올라오도록 */
    .stats-section {
        position: relative;
        background: white;
        z-index: 2;
        margin-top: -8vh;
        padding-top: calc(8vh + 40px);
    }

    /* 청풍블루아이란 섹션 - 히어로 위로 올라오도록 (투자진행현황 주석 시) */
    .investment-point-section {
        position: relative;
        background: white;
        z-index: 2;
        margin-top: -8vh;
        padding-top: calc(8vh + 40px);
    }

    .hero-main-text h1 {
        font-size: 52px;
    }

    .hero-description p {
        font-size: 1.3rem;
    }

    .hero-container {
        padding: 30px 40px;
    }

    .hero-wrapper {
        padding: 0;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-section {
        height: 100vh;
        border-radius: 0;
    }

    .branding-text {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-content {
        gap: 40px;
    }

    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid .info-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Business Stability 섹션 태블릿 대응 */
    .business-cards-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 20px;
    }

    .business-card-large {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    .business-card-small:nth-child(2) {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    .business-card-small:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }

    .business-card-small:nth-child(4) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }

    .business-card-aaa {
        grid-row: 3 / 4;
        grid-column: 2 / 3;
    }

    /* 푸터 태블릿 대응 */
    .footer-video-section {
        height: 60vh;
    }

    .footer-video-content {
        gap: 40px;
        padding: 0 80px;
    }


    .video-play-button img {
        width: 60px;
        height: 60px;
    }

    .footer-info-section {
        padding: 30px 80px 20px;
        /* 태블릿: 하단 문의폼 높이만큼 여백 추가 */
        padding-bottom: calc(var(--inquiry-form-height, 0px) + 20px);
    }

    .footer-info-grid {
        flex-direction: column;
        gap: 20px;
    }
}

/* 모바일 */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body {
        position: relative !important;
    }

    /* 섹션 패딩 제거 */
    .section {
        padding-left: 0;
        padding-right: 0;
        position: relative;
        z-index: 2;
        min-height: 400px;
    }

    .container {
        padding: 0 20px;
    }

    /* 헤더 스티키 강화 - 모바일에서도 fixed 유지 */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        width: 100% !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .header-container {
        padding: 7px 15px;
        margin-top: 5px;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        position: static;
        transform: none;
        order: 1;
    }

    .logo img {
        height: 40px;
        width: auto;
    }

    .hamburger-menu {
        width: 28px;
        height: 24px;
        gap: 6px;
        align-items: flex-start;
    }

    .hamburger-menu span {
        height: 3px;
    }

    .hamburger-menu span:nth-child(1) {
        width: 14px;
    }

    .hamburger-menu span:nth-child(2) {
        width: 28px;
    }

    .hamburger-menu span:nth-child(3) {
        width: 20px;
    }

    .main-nav {
        display: none;
    }

    .hero-wrapper {
        padding: 0 !important;
        min-height: 100dvh;
        height: 100dvh;
        margin: 0;
        overflow: hidden;
        background: #75ace3;
    }

    .hero-section {
        border-radius: 0 !important;
        height: 100dvh;
        min-height: 100dvh;
        background: #75ace3;
    }

    .hero-image-masked img {
        content: url('../img/main-hero-img-sub.jpg');
        object-position: 35% center;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.2);
    }

    .hero-content {
        padding: 0 30px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        transform: translateY(-80px);
        margin-top: 629px;
    }

    /* 모바일 스크롤 시 헤더 스타일 */
    .header.scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .header.scrolled .header-container {
        padding: 10px 15px !important;
        margin-top: 0 !important;
    }

    /* 모바일 스크롤 시 로고 변경 */
    .header.scrolled .logo img {
        content: url('../img/logo-bk.png') !important;
        filter: none !important;
    }

    /* 모바일 스크롤 시 햄버거 메뉴 색상 변경 */
    .header.scrolled .hamburger-menu span {
        background: #000 !important;
    }

    .header.scrolled .hamburger-menu span:nth-child(1),
    .header.scrolled .hamburger-menu span:nth-child(2),
    .header.scrolled .hamburger-menu span:nth-child(3) {
        background: #000 !important;
    }

    .hero-main-text {
        text-align: center;
        width: 100%;
    }

    .hero-main-text h1 {
        font-size: 48px;
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .hero-description {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
        margin-top: -13px;
    }

    .hero-description p {
        font-size: 1rem;
        line-height: 1.4;
        text-align: center;
    }

    /* 히어로 하단 통계 - 모바일에서 2x2 그리드로 */
    .hero-stats {
        position: absolute;
        bottom: 120px;
        left: 0;
        right: 0;
        padding: 0 30px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 24px 16px;
        max-width: 100%;
    }

    /* 구분선 숨기기 */
    .hero-stat-divider {
        display: none;
    }

    .hero-stat-item {
        min-width: auto;
        flex: none;
    }

    .hero-stat-number {
        font-size: 32px;
        margin-bottom: 6px;
        will-change: contents;
        transform: translateZ(0);
        -webkit-font-smoothing: antialiased;
    }

    .hero-stat-unit {
        font-size: 16px;
        margin-left: 2px;
    }

    .hero-stat-prefix {
        font-size: 16px;
        margin-right: 2px;
    }

    .hero-stat-label {
        font-size: 11px;
        font-weight: 500;
        opacity: 1;
    }

    .hero-stat-space {
        display: inline-block;
        width: 0;
    }

    .hero-branding {
        padding: 15px 20px;
    }

    .branding-text {
        font-size: 1.2rem;
    }

    .stats-section,
    .project-info-section,
    .project-gallery-section,
    .info-cards-section {
        padding: 60px 0;
    }

    .stats-section h2,
    .info-cards-section h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid .stat-item:last-child {
        grid-column: auto;
        max-width: none;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-details h3 {
        font-size: 1.5rem;
    }

    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid .info-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    /* Business Stability 섹션 모바일 대응 */
    .business-stability-section {
        padding: 60px 0;
    }


    .section-subtitle {
        font-size: 15px;
        margin-top: 7px;
    }

    .business-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        gap: 20px;
    }

    .business-card-large {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        min-height: 300px;
    }

    .business-card-small:nth-child(2) {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    .business-card-small:nth-child(3) {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
    }

    .business-card-small:nth-child(4) {
        grid-row: 4 / 5;
        grid-column: 1 / 2;
    }

    .business-card-aaa {
        grid-row: 5 / 6;
        grid-column: 1 / 2;
    }

    .business-card-large .card-content {
        padding: 20px;
    }

    .business-card-large .card-title {
        font-size: 1.25rem;
    }

    .business-card-large .card-subtitle {
        font-size: 0.9rem;
    }

    .business-card-large .card-details li {
        font-size: 0.8rem;
    }

    .business-card-small {
        padding: 20px;
    }

    .business-card-small .card-icon {
        width: 50px;
        height: 50px;
    }

    .business-card-small .card-icon img {
        width: 28px;
        height: 28px;
    }

    .business-card-small .card-title {
        font-size: 1.1rem;
    }

    .business-card-small .card-subtitle {
        font-size: 0.85rem;
    }

    .business-card-small .card-details li {
        font-size: 0.8rem;
    }

    .business-card-aaa .card-rating {
        font-size: 3rem;
    }

    .business-card-aaa .card-title {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 푸터 모바일 대응 */
    .footer {
        padding: 0;
    }

    .footer-video-section {
        height: 400px;
        padding: 0;
    }

    .footer-bg-video,
    .footer-video-background {
        display: block;
    }

    .footer-video-background img {
        display: none;
    }

    .footer-video-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .footer-video-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }

    .video-play-button {
        order: -1;
    }

    .video-play-button img {
        width: 70px;
        height: 70px;
    }

    .video-text {
        text-align: center;
    }

    .video-title {
        font-size: 28px;
        margin: 0 0 4px 0;
        line-height: 1.2;
    }

    .video-subtitle {
        font-size: 28px;
        margin: 0 0 16px 0;
        line-height: 1.2;
    }

    .video-description {
        font-size: 14px;
        line-height: 1.5;
    }

    .footer-info-section {
        padding: 40px 20px 20px;
        /* 모바일: 하단 문의폼 높이만큼 여백 추가 */
        padding-bottom: calc(var(--inquiry-form-height, 0px) + 20px);
    }

    .footer-info-grid {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-info-column h4 {
        font-size: 16px;
        margin-bottom: 12px;
        color: #6699cc;
    }

    .footer-info-column p {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.5;
        color: #ffffff;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #333;
    }

    .footer-bottom-links {
        gap: 8px;
        order: -1;
    }

    .footer-bottom-links span {
        font-size: 12px;
        color: #ffffff;
    }

    .footer-copyright p,
    .footer-copyright-text {
        font-size: 12px;
        color: #ffffff;
    }

    .admin-login-btn {
        font-size: 12px;
        color: #ffffff;
        text-decoration: none;
        padding: 2px 10px;
    }
}


@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 15px 40px;
    }

    .hero-wrapper {
        padding: 10px;
    }

    .hero-container {
        padding: 40px 0;
    }

    .hero-content {
        padding: 0;
    }

    /* 스티키 헤더는 섹션과 맞춤 */
    .header.scrolled .header-container {
        padding: 15px 15px;
    }
}

@media (max-width: 500px) {
    .hero-container {
        padding: 40px 0;
    }

    .hero-main-text h1 {
        font-size: 36px;
    }

    .hero-description p {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .branding-text {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-number .unit {
        font-size: 12px;
    }

    .stat-number .count-text {
        font-size: 1.8rem;
    }

    .project-stats {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 0;
    }
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item,
.info-card {
    animation: fadeInUp 1.2s ease-out;
}

.stat-item:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* 스크롤 애니메이션을 위한 기본 설정 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 섹션 헤더 공통 스타일 */
.section-header {
    text-align: center;
}

/* 그누보드 기본 요소 숨김 */
#hd_login_msg {
    display: none;
}

#container_title {
    display: none;
}

/* ====================================
   게시판 페이지는 board-style.css 사용
   메인 style.css에서는 게시판 스타일 완전 제거
==================================== */

/* ====================================
   데스크톱: AOS 풀페이지 스크롤 모드 (섹션 진입 시 refresh)
==================================== */
@media (min-width: 769px) {
    /* PC에서는 IntersectionObserver + AOS.refresh() 방식 사용 */
    /* once: true 설정이므로 기본 동작만 허용 */
}

/* ====================================
   태블릿/모바일: AOS mirror 양방향 재실행 모드
==================================== */
@media (max-width: 1024px) {
    /* 태블릿/모바일에서 AOS mirror 기능 활성화 */
    /* once: false, mirror: true 설정으로 양방향 재실행 */

    /* AOS 초기 상태: 숨김 (mirror 기능을 위해 필수) */
    [data-aos]:not(.aos-animate) {
        opacity: 0;
    }

    /* AOS 애니메이션 실행 시 */
    [data-aos].aos-animate {
        opacity: 1;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
}

@media (max-width: 768px) {
    /* 모바일도 동일하게 AOS mirror 기능 사용 */
    [data-aos].aos-animate {
        animation: mobileFadeIn 0.2s ease !important;
    }
}

@keyframes mobileFadeIn {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}
