﻿body {
    margin: 0;
    padding: 0;
    /*    margin: 0;
    font-family: sans-serif;*/
    background: #111;
}

/* ===== HERO ===== */
.hero {
    width: 100%;
    height: 100vh; /**/
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%; 
/*    height: auto !important;*/
}

.swiper-wrapper {
    height: 100%; 
/*    height: auto !important;*/
}

.swiper-slide {
    height: 100% !important;
    /*    height: auto !important;*/
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slide img,
    .swiper-slide video {
        width: 100% !important;
        height: 100% !important;
        /*        height: auto;*/
/*        object-fit: fill;*/
        /*        object-fit: cover;*/
        /*        object-fit: contain;*/
    }

    .swiper-slide video {
        object-fit: fill;
    }

/* 슬라이드 텍스트 */
.sub-text {
    font-size: 40px !important;
    letter-spacing: 2px;
    opacity: 0.8;
}

.main-text {
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.main-sub {
    margin-top: 10px;
    font-size: 40px !important;
    font-weight: 700;
    opacity: 0.9;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .main-text {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .main-text {
        font-size: 30px;
    }

    .main-sub {
        font-size: 16px;
    }

    .sub-text {
        font-size: 14px;
    }
}

/* 공통 초기 상태 */
.slide-text .line {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

    /* ===== 1번: 아래 → 위 ===== */
    .slide-text .line:nth-child(1) {
        transform: translateY(40px);
    }

    /* ===== 2번: 오른쪽 → 왼쪽 ===== */
    .slide-text .line:nth-child(2) {
        transform: translateX(60px);
    }

    /* ===== 3번: 오른쪽 → 왼쪽 + 더 멀리 ===== */
    .slide-text .line:nth-child(3) {
        transform: translateX(80px);
    }

/* ===== 활성 슬라이드 ===== */
.swiper-slide-active .slide-text .line {
    opacity: 1;
    transform: translate(0, 0);
}

    /* ===== 딜레이 ===== */
    .swiper-slide-active .slide-text .line:nth-child(1) {
        transition-delay: 0.5s;
    }

    .swiper-slide-active .slide-text .line:nth-child(2) {
        transition-delay: 2s;
    }

    .swiper-slide-active .slide-text .line:nth-child(3) {
        transition-delay: 4s; /* 🔥 요청사항 */
    }

.slide-text .loop-text {
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
/*    transition: opacity 0.8s ease, transform 0.8s ease;*/
}

/*.sub-text {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.main-text, .main-sub {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}*/
/*.loop-text {
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}*/

/* 네비 전체 라인 */
.nav-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.swiper-button-next,
.swiper-button-prev {
    position: static; /* 🔥 absolute 제거 */
    width: 22px;
    height: 22px;
    color: #fff;
    margin: 0;
    /*    color: #fff;
    width: 44px;
    height: 44px;
    z-index: 30;
    top: 50%;
    transform: translateY(-50%);*/
}

    /* 아이콘 크기 */
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 10px;
        /*        font-size: 28px;
        font-weight: bold;*/
    }

/* 👉 슬라이드 안쪽으로 넣기 */
.swiper-button-prev {
    left: 30px; /* 바깥 → 안쪽 */
}

.swiper-button-next {
    right: 130px; /* 바깥 → 안쪽 */
}

/* ===== overlay 위 UI ===== */
.overlay-ui {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    height: 36%;
/*    background: gray;*/
    /*    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 20;*/
}

/* ===== overlay ===== */
.overlay-box {
    position: relative; /* 🔥 absolute 제거 */
    width: 900px; /* 필요에 맞게 */
    max-width: 90vw;
    background: transparent;
    border: none;
    /*    background: rgba(0,0,0,0.5);*/
    border-radius: 12px;
/*    backdrop-filter: blur(10px);*/
    padding: 20px;
    /*    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 120px;
    background: rgba(0,0,0,0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 10;*/
}

/* 프로그레스 */
.progress-container {
    width: 300px;
    height: 3px; /* 기존 4px → 6px */
    background: gray; /* rgba(255,255,255,0.15); */
/* ?    overflow: hidden;*/
    border-radius: 10px;
}

.progress-bar {
    width: 100%; /* container 전체 기준 */
    height: 3px;
    background: #fff;
    transform-origin: left;
    transform: scaleX(0); /* 초기 상태 */
}

    /* 진행 끝 동그라미 */
    .progress-bar::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(50%, -50%);
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 50%;
    }

/* 번호 */
.slide-nav {
    display: flex;
    gap: 18px;
/*    gap: 14px;*/

/*    color: #aaa;*/
/*    font-size: 16px;*/
}

    .slide-nav span {
        /* 도트 */
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #fff;  기본 흰색 
        opacity: 0.5;
        cursor: pointer;
        transition: 0.3s;

        font-size: 0px;

        /* 숫자 */
/*        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: rgba(0,0,0,0.35); 살짝 연하게

        color: #fff;
        font-size: 13px;
        cursor: pointer;
        transition: 0.3s;*/
    }

        .slide-nav span.active {
            /* 도트 */
            /* 노란색 */
            background: #ffd400; 
            opacity: 1;
            transform: scale(1.2);
            /*color: #ffd400;
            background: rgba(0,0,0,0.35);*/
        }

/* ===== CONTENT ===== */
            .content {
    padding: 80px 20px;
    background: #fff;
    color: #111;
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/*인트로 오버레이*/
.intro-cover {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}