/* =====================
   DOTS & SCROLL ARROW
===================== */

/* 1. 점 메뉴 위치 조정 (하단에서 50px 위로 올려 화살표와 겹치지 않게 배치) */
.navigation-dots {
    position: absolute;
    bottom: 50px !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

/* 2. 하단 화살표 (뷰포트 및 브라우저 하단 영역 안전 기준 적용) */
.scroll-indicator {
    position: absolute;
    /* safe-area 기본값 20px 적용 및 하단 패딩 확보 */
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    z-index: 5;
    pointer-events: none;
}

.scroll-indicator span {
    display: block;
    width: 100%;
    height: 100%;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    /* 이미지 배경에서도 뚜렷하게 보이도록 그림자 적용 */
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.7));
    animation: arrowMove 1.6s ease-in-out infinite;
}

@keyframes arrowMove {
    0% { 
        transform: translateY(0) rotate(-45deg); 
        opacity: 0.4; 
    }
    50% { 
        transform: translateY(6px) rotate(-45deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(0) rotate(-45deg); 
        opacity: 0.4; 
    }
}

div a:hover {
  text-decoration: none;
}

a:focus {
    outline: none !important;
}

@media (max-width: 1250px) {
  .arrow {
    display: none;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(50px);
}

/* 실제 실행 클래스 */
.fade-up.show {
  animation: fadeUp 1s ease forwards;
}

.delay-1.show {
  animation-delay: 0.2s;
}
.delay-2.show {
  animation-delay: 0.4s;
}
.delay-3.show {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn1,
.btn1:visited,
.btn1:active,
.btn1:focus {
    color: #fff !important;
    text-decoration: none !important;
}

.btn1:hover {
    color: #111 !important;
    text-decoration: none !important;
}

/* 기본 슬라이더 컨테이너 */
.slider {
    position: relative;
    width: 100%;
    height: 100vh; 
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden !important; 
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: pan-y;
}

.slider.dragging {
    cursor: grabbing;
}

/* 모든 슬라이드를 감싸는 단일 트랙 */
.slides-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 개별 슬라이드 요소 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
}

/* 활성화된 슬라이드만 보이게 함 */
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* --- 1. 기본 컨텐츠 배치 (중앙 정렬) --- */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1100px;
    color: white;
    z-index: 4;
    text-align: left;
    pointer-events: none;
}

/* --- 2. 애니메이션: 부드러운 순차 등장 --- */
@keyframes simpleFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 메인 타이틀 */
.main-titles {
    font-size: 70px;
    font-weight: 500;
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    margin: 0;
    padding-bottom: 20px;
    letter-spacing: 0.03em;
    line-height: 120%;
    opacity: 0;
    animation: simpleFadeUp 1s ease-out 0.3s forwards;
    text-shadow: 0 0px 2px rgba(0, 0, 0, 0.6);
}

/* 상단 문구 */
.sub-text1 {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-family: 'NanumSquareNeo', sans-serif;
    word-break: keep-all;
    letter-spacing: 0.1em;
    line-height: 30px;
    opacity: 0;
    animation: simpleFadeUp 1s ease-out 0.6s forwards;
    text-shadow: 0 0px 2px rgba(0, 0, 0, 0.6);
}

.sub-text2 {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-family: 'NanumSquareNeo', sans-serif;
    word-break: keep-all;
    letter-spacing: 0.1em;
    opacity: 0;
    animation: simpleFadeUp 1s ease-out 0.6s forwards;
    text-shadow: 0 0px 2px rgba(0, 0, 0, 0.6);
}

/* 버튼 컨테이너 */
.main-btn-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
    opacity: 0;
    animation: simpleFadeUp 1s ease-out 0.9s forwards;
}

.btn-new {
    display: inline-block;
    width: 220px;
    height: 65px;
    line-height: 65px;
    text-align: center;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-family: 'NanumSquareNeo', sans-serif;
    pointer-events: auto;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-apply {
    background-color: #a97478;
    color: #ffffff;
    border: 2px solid #a97478;
}

.btn-apply:hover {
    color: #fff !important;
    background-color: transparent !important;
    border: 2px solid #fff !important;
}

.btn-kakao {
    color: #fff !important;
    background-color: transparent !important;
    border: 2px solid #fff !important;
}

.btn-kakao:hover {
    color: #fff !important;
    background-color: #a97478 !important;
    border: 2px solid #a97478 !important;
}

.arrow {
    position: absolute;
    top: 50%;
    color: #fff;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0);
    border: none;
    font-size: 40px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.3s;
    pointer-events: auto;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 0);
    color: #f3f3f3;
}

.arrow.left { left: 10px; }
.arrow.right { right: 10px; }

.dot {
    height: 15px;
    width: 15px;
    background-color: #ffffff;
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
    background-color: #333;
}

/* --- 태블릿 반응형 (1200px 이하) --- */
@media (max-width: 1024px) {
    .jj-header-wrap,
    .jj-mobile-wrap {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
        background: transparent !important;
    }

    /* 슬라이더 전체 영역을 화면보다 5% 더 키우고, 넘치는 부분을 숨겨 하단 여백 원천 차단 */
    .slider { 
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: 101vh !important;
        height: calc(var(--vh, 1vh) * 101) !important; /* 화면보다 살짝 크게 잡아 빈틈 방어 */
        max-height: none !important;
        overflow: hidden !important; 
    }

    /* 슬라이드 트랙 설정 (100px 내린 만큼 높이 보정) */
    .slides-track {
        top: 100px !important;
        height: calc(100% - 100px) !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* 개별 슬라이드 설정 */
    .slide {
        top: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        background-position: top center !important; 
    }

    /* 이미지를 상단에 딱 붙이고, 화면을 가득 채우면서 아래로 살짝 넘치게 처리하여 1px 여백 박멸 */
    .slide img {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        object-fit: cover !important;        /* 빈틈없이 꽉 채우기 */
        object-position: top center !important; /* 상단이 잘리지 않게 고정 */
    }

    .title { font-size: 40px; }
    .subtitle { font-size: 25px; }
    .btn1 { font-size: 25px; padding: 10px 24px; }
    .content {
        width: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .main-titles { 
        font-size: 60px; 
        text-shadow: 1.5px 1.5px 6px rgba(0, 0, 0, 0.5);
    }
    .sub-text1 { 
        font-size: 20px; 
        text-shadow: 1.5px 1.5px 6px rgba(0, 0, 0, 0.5);
    }
    .sub-text2 { 
        font-size: 20px; 
        text-shadow: 1.5px 1.5px 6px rgba(0, 0, 0, 0.5);
    }
}

/* --- 모바일 반응형 (768px 이하) --- */
@media (max-width: 768px) {
    .jj-header-wrap,
    .jj-mobile-wrap {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 100 !important;
        background: transparent !important;
    }

    .main-btn-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .btn-new {
        margin: 0 auto 0 0;
        width: 200px !important;
        height: 55px;
        line-height: 55px;
        font-size: 18px;
    }
    .title { font-size: 28px; }
    .subtitle { font-size: 16px; }
    .btn1 { font-size: 20px; padding: 10px 24px; }
    .content {
        width: 85%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .main-titles { 
        font-size: 40px; 
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    .sub-text1 { 
        font-size: 16px; 
        margin-bottom: 20px;
        line-height: 25px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    .sub-text2 { 
        font-size: 14px; 
        margin-bottom: 20px;
        line-height: 1.4;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    .arrow { font-size: 24px; }
}