@charset "utf-8";
@import url(common.css);

html.lenis,
html.lenis body {
    height: auto;
}

.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

/* 커서사용할때 주석해제 */
html,
body,
a,
button {
    /* cursor: none !important; */
    /* 기본 마우스 숨김 */
}

/* body에 is-open 클래스가 붙으면 wrap 뒤에 딤 생성 */
body .dim {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
	display: none;
}
body.is-open .dim {display: block;}

.intro-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--red);
    /* 아까 설정하신 붉은 배경색 */
    z-index: 9999;
    /* 마우스 커서나 메뉴보다도 위에 오도록 가장 높게 설정 */
    transform-origin: top center;
}

/* 1등 가림막: 가장 앞에 보이는 빨간 배경 */
.red-curtain {
    background-color: var(--red);
    z-index: 9997;
}

/* 2등 가림막: 빨간 배경이 걷히면 드러날 검은 배경 */
.black-curtain {
    background-color: var(--black);
    transform: translateY(100vh);
    z-index: 9998;
    /* 빨간색보다는 낮고 본문 콘텐츠보다는 높게 */
}

.custom-cursor {
    width: 24px;
    height: 24px;
    border: 2px solid var(--red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    /* 여기에 있던 transition 속성은 삭제합니다! */
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

#content {
    height: var(--full-height);
    height: 100svh;
}
.BDC_CaptchaDiv {display: flex;height: 50px;}

/**********
 * HEADER *
 **********/
header {
    /* mix-blend-mode: difference; */
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100vw;
    left: 0;
    z-index: 200;
    pointer-events: none;
    mix-blend-mode: difference
}

header .container {
    display: flex;
    justify-content: space-between;
}

header h1 {
    font-size: 0;
    position: relative;
    z-index: 101;
    pointer-events: auto;
    width: clamp(5rem, 4.723vw + 3.3321rem, 9rem);
}

header ul {
    display: flex;
    gap: var(--gap-lg);
    font-size: 1.25rem;
    align-items: center;
    color: #fff;
    pointer-events: auto;
}

header ul li:nth-child(2) a {
    display: block;
    border-radius: 3rem;
    color: #fff;
    background-color: #fff;
    color: #000;
    padding: .35rem 1rem;
    mix-blend-mode: difference;
}

header ul li:last-child {
    display: none;
}

header ul li:last-child a {
    color: #fff;
    font-size: 2rem;
    mix-blend-mode: difference;
}

.all-menu {
    display: none;
}

/* ==========================================
    INDEX
========================================== */
.main-nav {
    height: var(--full-height);
    display: flex;
    align-items: center;
    padding: 0 13rem;
}

.main-nav ul {
    font-size: clamp(5rem, 3.542vw + 59.99px, 128px);;
    line-height: 1.1;
}

.main-nav li {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column
}

.main-nav li>a {
    font-family: 'TG', sans-serif;
    font-weight: 600;
}

.main-nav li:nth-child(even) .nav-hover {
    transform: rotate(3deg);
}

.nav-hover-wrap {
    justify-content: center;
    align-items: center;
    height: 50%;
    display: flex;
    left: -50%;
    position: absolute;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.main-nav li:hover .nav-hover-wrap {
    opacity: 1;
    visibility: visible;
}

.nav-hover {
    z-index: 1;
    background-color: var(--red);
    justify-content: flex-start;
    align-items: center;
    width: max-content;
    gap: var(--gap-xlg);
    display: flex;
    overflow: hidden;
    padding: 0 2.5rem;
    transform: rotate(-3deg);
    transform-origin: left center;
}

.nav-hover-track {
    height: 100%;
    color: var(--light-gray);
    align-items: center;
    padding-top: clamp(1.25rem, 0.886vw + 15px, 32px);;
    padding-bottom: clamp(1.25rem, 0.886vw + 15px, 32px);;
    display: flex;
    gap: var(--gap-xlg);
    animation: scroll-left-to-right 10s linear infinite;
}
.main-nav li:nth-child(1) .nav-hover-track {animation: scroll-left-to-right 40s linear infinite;}
.main-nav li:nth-child(2) .nav-hover-track,
.main-nav li:nth-child(3) .nav-hover-track {animation: scroll-left-to-right 20s linear infinite;}

.nav-hover-group {
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
}

.nav-track-title {
    text-transform: uppercase;
    flex: none;
    font-family: 'TG', sans-serif;
    font-size: clamp(5rem, 3.542vw + 59.99px, 128px);;
    font-weight: 600; line-height: 1;
}

.nav-track-text {
    flex: none;
    font-size: clamp(.875rem, 0.443vw + 11.5px, 20px);
    display: flex; max-width: 20rem;
    padding: .5rem 0;
    word-break: keep-all;
}

@keyframes scroll-left-to-right {
    0% {
        transform: translateX(-50%);
        /* 반대로 시작점을 밀어두어 좌->우 흐름 구현 */
    }

    100% {
        transform: translateX(0%);
    }
}

/* ==========================================
    SUB
========================================== */
/* 전체 아코디언을 감싸는 박스 (가로 배치) */
.accordion-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.expand-section {
    flex: 1;
    height: 100%;
    border-left: 1px solid #333;
    position: relative;
    cursor: pointer;
    color: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

.expand-section.active {
    cursor: default;
}

.section-column {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    line-height: 1;
    font-family: 'TG', sans-serif;
    mix-blend-mode: difference;
    pointer-events: none;
	/* word-break:break-all; */

    /* 💡 font-size 대신 transform을 부드럽게 변경 */
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 초기 상태: 크기를 작은 상태(약 0.6배)로 축소해 둠 */
    /* transform: scale(.6) translate3d(0, 0, 0); */ 
    transform-origin: left center; /* 💡 축소/확대 기준점 설정 (원하는 위치로 조정) */
    
    will-change: transform; /* 💡 이제 제대로 성능 최적화가 작동합니다 */
}
.section-title br {display: none;}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #000;
	overflow: hidden;
    width: 100%;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-bg img {
    width: 100%;
    height: 100%;
	max-width:100%;
    object-fit: cover;
    object-position: center center;
    /* 기본값이지만 명시해주면 확실 */
    opacity: .48;
    filter: grayscale(100%);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1);
    transform-origin: center center;
    pointer-events: none;
}

.section-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 4rem;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    margin-bottom: 3rem;
}

.section-content p {margin-bottom: 0;}

.text-line {
    width: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.text-line .text {
    margin: 0;
    transform: translateY(20%);
    opacity: 0;
}

.text-line .text.title {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.menu-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    width: 50%;
}

.menu-group p {
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-item span {
    font-size: .8125rem;
    color: var(--gray50);
    display: block;
}

.menu-item .line-bar {
    width: 0;
    height: 2px;
    background: var(--red);
    margin-bottom: .75rem;
}

.menu-item p {
    display: block;
    transform: translateY(-30%);
    opacity: 0;
    /* 처음엔 숨김 */
}

.section-column .counselBtn {display: none;border-radius:50%;width: 6rem;height: 6rem;font-size:1.25rem;position: absolute;right:2.5rem;bottom:2.5rem}

.expand-section.active .counselBtn {display: flex;align-items:center;justify-content: center;}

/* 활성화 상태에서는 레이아웃만 바꾸고 애니메이션 관련 속성은 빼야 함 */
.expand-section.active .section-column {
    padding: 2.5rem;
}

.expand-section.active .section-title {
    font-size: 4rem;
}
.expand-section.active .section-bg {
    left: 0;
    transform: none;
}

.expand-section.active .section-bg img {
    opacity: .9;
    transform: scale(1.5);
    filter: none;
}

.expand-section.active .section-content {
    visibility: visible;
}

.expand-section.active .text-line {
    height: auto;
}

/* info 레이어창 */
.layer-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90vw;
    max-width: 900px;
    transform: translate(-50%, -50%);
    background: #fff;
    z-index: 1001;
    padding: clamp(2rem, 1.181vw + 1.583rem, 3rem);
    color: #fff;

    background-color: var(--red);
}

.layer-popup .btn.closeBtn {
    font-size: 2rem;
    color: #fff;
    position: absolute;
    right: clamp(20px, 2.21vw + 7.4896px, 50px);
    top: clamp(20px, 2.21vw + 7.4896px, 50px);

}

.layer-popup h2 {
    font-family: 'TG';
    font-size: clamp(5rem, 5.904vw + 2.9151rem, 10rem);
    padding-right: 3rem;
    margin-bottom: clamp(1.5rem, 4.133vw + 0.0406rem, 5rem);
}
.layer-popup h2.small {font-size:clamp(2.5rem, 2.952vw + 1.4576rem, 5rem);}

.layer-popup__content {
    text-transform: uppercase;
    font-size: clamp(1rem, 0.30vw + 12.3296px, 18px); /* max-height: 50vh; overflow-y: auto;;overflow-x: hidden; */
}

.layer-popup__content small {
    display: block;
    margin-top: 1rem;
}

.layer-popup .checkbox:has(:checked) label:before {color:#fff}
/* talents */
body:has(#content.talents) {overflow: hidden;height: 100svh;}
.gallery-wrap-outer {
    display: flex;
    align-items: center;
    height: 100vh; overflow-y: hidden;
    height: 100svh;
    overflow: hidden;
    width: 100%;
    background-color: #000;
}

/* 2. 가림막: 화면 밖으로 삐져나가는 대기 아이템들을 완벽하게 숨김 */
.gallery-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    padding: 5rem 0 0;
    display: flex;
    align-items: center;
}

/* 3. 슬라이더 트랙: 가로로 길게 늘어나는 실제 기차 트랙 역할 */
.gallery {
    display: flex;
    flex-wrap: nowrap;
    /* 일렬 정렬 */
    position: relative;
    width: max-content;
    /* 자식들이 찌그러지지 않고 고유 크기를 유지하도록 고정 */
    will-change: transform;
}

/* 4. 개별 아이템: 화면 크기를 기준으로 정비율 계산 */
.item {
    /* 데스크톱: 화면 너비의 1/3 크기 (33.333vw) */
    width: 33.3333vw;
    padding: 0 var(--gap);
    filter: grayscale(1);
    transition: filter 0.3s ease;
    text-align: right;
    color: #fff;
    font-size: clamp(1.875rem, 2.509vw + 15.82px, 64px);
    font-family: 'TG';
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .gallery {
        width: 100%;
    }
}

/* 5. 이미지 종횡비 및 해상도 방어 */
.item img {
    width: 100%;
    display: block;
    aspect-ratio: 620/700;
    object-fit: cover;
    pointer-events: none;
    margin-bottom: 1rem;
}

/* 6. 가운데 도달한 아이템 강조 */
.item:hover,
.item.center {
    color: #33ccff;
    filter: grayscale(0);
    z-index: 10;
}

.talents-view-wrap {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.talents-view-wrap .img {
    width: 100%;
    height: calc(100% - 10rem);
    position: absolute;
    left: 0;
    top: 0;


}

.talents-view-wrap .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talents-view-wrap .name {
    position: relative;
    color: #fff;
    font-size: clamp(6.25rem, 14.76vw + 16.6096px, 250px);
    font-family: 'TG';
    mix-blend-mode: difference;
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    white-space: nowrap;
}

.talents-view-wrap .name span {
    padding: 0 var(--gap-xlg);
    flex-shrink: 0;
    transform: translateX(-100%);
}

.talents-view-wrap .bottom {
    position: relative;
    background-color: #000;
    color: #fff;
    padding: var(--gap-xlg);
    left: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    text-transform: uppercase;
    display: flex;
    white-space: nowrap;
}

.talents-view-wrap .bottom ul {
    display: flex;
    flex-shrink: 0;
    transform: translateX(-100%);
}

.talents-view-wrap .bottom ul li {
    font-size: clamp(1.0625rem, 0.59vw + 12.66px, 24px);
    padding: 0 var(--gap-xlg);
}

.talents-view-wrap .bottom ul span {
    color: var(--gray);
    display: block;
    font-size: 1rem;
}

/* 스키 */
.board .menu-group {
    gap: 1.5rem; /* flex-direction: column; */ align-items: flex-start
}

.board .menu-item .line-bar {
    background-color: #fff;
}

.board .menu-item.on .line-bar {
    background-color: var(--red);
}

.board .text-line .text.desc {
    pointer-events: auto;
    max-height: 30vh;
    /* min-height: 23.75rem; */
    overflow-y: auto;
}

.board .text-line .text.desc img {
    display: block;
    margin: 0 0 16px;

}

.board .section-content {margin-bottom: 2rem;}
.board .section-column .pagination {margin-left: 50%;text-align: center;margin-right: 0; margin-top: 0;}
.board .section-column .pagination a {background: none;color:#fff;border:0;width: auto;height: auto;}
.board .section-column .pagination a.active {color:var(--main)}
.board.active .section-bg img {opacity: .4;}
/* .board .section-content {margin-bottom: 2rem;} */

/* 스폰서 */
#sponsor.active .section-bg img {opacity: .35;}
.form .btn {font-size: 1.25rem; padding: .75rem 2rem;}
.form .form-row {align-items: center;}
.form .checkbox {margin: 1rem 0; display: flex; gap: .5rem;}
.form .checkbox label:before {order: 2;}
.form .form-row .form-control {background-color: rgba(0, 0, 0, 0.4); border: 0; color: #fff;}
.form .form-row .form-control::placeholder {
    color: #fff; /* 🔴 원하는 색상 코드로 변경하세요 */
    opacity: 1;    /* 파이어폭스(Firefox)에서 색상이 흐려지는 현상 방지 */
}
.form .form-row .form-control::-webkit-input-placeholder { color: #fff; } /* Chrome, Safari, Edge */
.form .form-row .form-control:-ms-input-placeholder { color: #fff; }         /* Internet Explorer 10-11 */
.form .form-row .form-control::-ms-input-placeholder { color: #fff; }
.section-content .form {width: 50%;transform: translateY(10%);}

@media (max-width: 992px) {
    header {background: rgba(0,0,0,0.4);mix-blend-mode:normal}
    #wrap:has(.index) header {mix-blend-mode:difference}
	header ul {
        font-size: 1rem;
    }

    header ul li:last-child {
        display: block;
    }

    .main-nav {padding: 0 2rem;}
    .all-menu {
        display: flex;
        position: fixed;
        width: 100%;
        left: 0;
        top: 0;
        max-width: 100vw;
        height: 1px;

        right: 0;
        align-items: flex-start;
        z-index: 25;
    }

    .all-menu .all-menu__inner {
        flex-grow: 1;
        display: flex;
        gap: var(--gap-lg);
        flex-direction: column;
        height: var(--full-height);
        background-color: var(--black);
        transform: translate(0, 100%);
        transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1);

    }

    .all-menu .all-menu__content {
        color: #fff;
        font-family: 'TG', sans-serif;
        font-size: 4rem;
        font-weight: 600;
        text-align: center;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .all-menu .all-menu__content li {
        line-height: 1.1;
        transition: opacity 0.2s;
        position: relative;
    }

    .all-menu .all-menu__content li:hover:after {
        width: 80vw;
        height: 1px;
    }

    .all-menu .all-menu__content ul:hover li {
        opacity: .17;
    }

    .all-menu .all-menu__content li:hover {
        opacity: 1 !important;
    }

    .all-menu .all-menu__content li:after {
        content: "";
        width: 1px;
        height: 4px;
        background-color: var(--red);
        position: absolute;
        left: 50%;
        top: 50%;
        margin-top: -2px;
        transform: translate(-50%);
        transition: width 0.3s ease-out;
        z-index: -1;
    }

    .all-menu .all-menu__content li:hover:after {
        width: 50vw;
    }
	.nav-hover-wrap {display: none;}

    body.open .all-menu__inner {
        transform: translate(0, 0);
    }

    .accordion-container {
        flex-direction: column;
        /* 가로 → 세로 */
        height: auto;
        /* 전체 높이 자동 */
    }

    .expand-section {
        width: 100%;
        /* 가로폭 전체 */
        height: auto;
        /* 높이 자동 */
        border-left: none;
        /* 좌측 경계선 제거 */
        border-top: 1px solid #333;
        /* 위쪽 경계선으로 구분 */
        justify-content: flex-start;
        align-items: flex-start;
    }

    .section-column {
        position: relative;
        /* absolute → relative */
        height: auto;
        padding: 2rem; gap: 2rem;
    }

    .expand-section.active .section-column {padding: 2.5rem;}

    .section-content {
        flex-direction: column;
        /* 메뉴와 텍스트 세로 배치 */
        gap: 2rem;
        align-items: flex-start;
        margin-bottom: 1rem;
        height: 5rem;
        padding-top: 5rem;
    }

    .section-title {/* font-size: clamp(1.5rem, 5.634vw - 0.4894rem, 3rem); */}

    .text-line {
        width: auto;
    }

    .menu-group {
        width: 100%;
        gap: .75rem;
        font-size: .8125rem;
    }

    .expand-section.active .section-content {
        height: auto;
    }

    .expand-section.active .section-title {
        font-size: 2.5rem
    }

    .item {
        flex: 0 0 85%;
        /* 1.5개 정도 보이게 */
    }

    .section-content .form {width: 100%}

	.text-line .text.title {/* overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
min-height: 3.6rem; */}
    .board .text-line .text.desc {min-height: 10rem; max-height: 10rem;}
	
	.section-column .counselBtn {width: 5rem;height: 5rem;font-size:1rem;}
	.expand-section#summer.active .section-title {padding-right: 7rem;}
	.expand-section#winter.active .section-title {padding-right: 7rem;}
	
	.board .section-column .pagination {margin-left: auto;margin-right: auto; margin-top: -2rem;}
	.talents-view-wrap .img {height: 100%;}

}