@charset "utf-8";

main {
    width: 100%;
}

/* 메인 section */
.mobile{
    display: none;
}
.main-area {
    position: relative;
    height: 100dvh;
    min-height: 800px;
    max-height: 1080px;
    background: #333;
    box-sizing: border-box;
}

.video-wrap{
    position: relative;
    width: 100%;
    height: 100%;
}
.video-wrap video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-wrap:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0,0,0,0.2);*/
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 68.27%);
}


.main-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) !important;
    left: clamp(5rem, -7.2917rem + 16.3889vw, 12.375rem);
    z-index: 1;
    color: #fff;
}
.main-text h4 {
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-weight: 500;
    font-size: var(--f48);
    margin-bottom: 32px;
}
.main-text h2 {
    font-size: var(--f36);
    font-weight: 300;
    line-height: 1.5em;
}

.main-swiper {
    height: 100%;
}

.main-swiper .swiper-slide {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.main-swiper .swiper-slide img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: -webkit-transform 3s;
    transition: -webkit-transform 3s;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.main-swiper .swiper-slide-active img {
    -webkit-transform: scale(1);
    transform: scale(1);
}

/*.bg1 {
    background-image: url('/images/img_main_01.jpg?v=1');
}

.bg2 {
    background-image: url('/images/img_main_02.jpg?v=1');
}

.bg3 {
    background-image: url('/images/img_main_03.jpg?v=1');
} */

.main-swiper-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0 16px;
    margin-top: 40px;
}

.main-swiper-nav .swiper-btn-prev,
.main-swiper-nav .swiper-btn-next {
    cursor: pointer;
    margin-top: 2px;
}

.swiper-pagination {
    position: relative;
    width: auto;
    font-weight: 800;
    font-family: var(--font-su);
    margin-top: 13px;
}

/* side toggle */
#sideMenu {
    position: absolute;
    bottom: 55px;
    left: 100%;
    height: 720px;
    background-color: rgba(0,0,0,0.6);
    z-index: 10;
    transform: none;
    transition: transform .5s ease;
    border-radius: 16px 0 0 16px;
    width: 424px;
    padding: 24px 36px;
}
#sideMenu.on {
    transform: translateX(-100%);
}

/* 버튼 */
#sideMenu .side_btn {
    position: absolute;
    top: 50%;
    right: 100%;
    width: 50px;
    height: 140px;
    margin-top: -30px;
    background: #000;
    transition:all 0.6s;
}
#sideMenu .side_btn p {
    color: #fff;
    margin-top: 18px;
}
#sideMenu .side_btn .blob {
    fill: #00b4ed;
    transition: all .5s;
}
#sideMenu .side_btn.on .blob {
    fill: rgba(0,0,0,0.3);
}
#sideMenu .side_btn.on::after {
    transform: translate(-50%, -50%) scaleX(-1);
}

/* 버튼 기본 설정 */
.side_btn .on {
    display: none;
}
.side_btn .off {
    display: block;
}
/* 토글 열렸을때 */
.side_btn.on .off {
    display: none;
}
.side_btn.on .on {
    display: block;
}
#sideMenu.on .side_btn {
    background:rgba(0, 0, 0, 0.6) !important;
    transition:all 0.6s;
}

/* 내부 패딩,스크롤 / 리스트 너비 등 */
#sideMenu #toggleSide {
    height: 100%;
    position: relative;
}
#sideMenu .inner {
    height: 100%;
}
#sideMenu .inner::-webkit-scrollbar {
    width: 5px;
    transform: scaleX(.5);
    transition: transform .25s;
}
#sideMenu .inner:hover::-webkit-scrollbar {
    transform: scaleX(1);
}
#sideMenu .inner::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.5);
    border-radius: 5px;
}

#sideMenu .side_box:first-child .side_tit {
    margin-top: 0;
}

/* 토글 내부 캘린더 */
.calendar-panel {
    min-height: 300px;
}

.main-calendar-box {
    position: relative;
}

.main-calendar-box .calendar-top {
    width: 100%;
    position: relative;
}

.main-calendar-box .calendar-top button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.main-calendar-box .calendar-top button.left {
    left: 0;
    color: #CBCBCB;
}

.main-calendar-box .calendar-top button.right {
    right: 0;
    color: var(--main-color);
}

.main-calendar-box .calendar-tit {
    font-size: var(--f24);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 16px 0;
}

.main-calendar-box table {
    width: 100%;
    position: relative;
    z-index: 0;
}

.main-calendar-box table thead th {
    font-weight: 700;
    color: #fff;
    padding: 12px 0;
    font-size: var(--f14);
}

.main-calendar-box table thead th:first-child {
    color: var(--red);
}

.main-calendar-box table thead th:last-child {
    color: var(--blue);
}

.main-calendar-box table tbody td {
    color: #999;
    padding: 7px 0;
    text-align: center;
    font-weight: 700;
    line-height: 1.2em;
    position: relative;
    vertical-align: top;
    height: 48px;
    font-size: var(--f16);
}

.main-calendar-box table tbody td.possible {
    color: #fff;
    cursor: pointer;
}

.main-calendar-box table tbody td.choice {
    font-weight: 700;
    color: #fff !important;
    cursor: pointer;
}

.main-calendar-box table tbody td.choice::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: var(--sub-color);
    z-index: -1;
}

.main-calendar-box table tbody td.choice .tee {
    color: #fff !important;
    font-size: var(--f13);
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-weight: 400;
}

.main-calendar-box table tbody td .tee {
    position: absolute;
    font-size: var(--f13);
    color: var(--sub-color) !important;
    line-height: 20px;
    width: 100%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 10;
    font-weight: 400;
}
.main-calendar-box table tbody td.impossible {
    color: #fff !important;
}
.main-calendar-box table tbody td.impossible::after {
    content: '마감';
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: -1;
    color: #fff;
    font-weight: 400;
    font-size: var(--f13);
}

.main-calendar-box table tbody td.holiday {
    color: var(--red);
}
.main-calendar-box table tbody td.holiday .tee {
    color: var(--red) !important;
}

.btn-calendar-wrap {
    display: flex;
    align-items: center;
    width: 466px;
    height: 48px;
    margin: auto;
    border-radius: 4px;
    font-weight: 300;
    overflow: hidden;
}

.btn-calendar-wrap button {
    height: 100%;
    color: #fff;
    font-weight: 300;
    font-size: var(--f18);
}

.btn-calendar-wrap .btn-select-day {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    gap: 0 14px;
    background: rgba(0, 0, 0, 0.80);
}

.btn-calendar-wrap .btn-move-reser {
    flex-grow: 1;
    background-color: var(--sub-color);
    min-width: 95px;
    max-width: 146px;
}

/* 토글 내부 배너 */
.banner-list {
    margin: 32px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    justify-content: center;
    text-align: center;
}
.banner-list li a {
    display: block;
    width: 100%;
    height: 100%;
}
.banner-list li img {
    border-radius: 8px;
    width: 100%;
    height: 78px;
    object-fit: cover;
}

/* 곻지섹션 */
.main-title-box {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: var( --default-color);
    max-width: 1520px;
    margin: 0 auto 56px;
}
.main-title-box h1 {
    font-size: var(--f48);
    font-family: var(--font-serif);
    font-weight: 500;
    text-transform: uppercase;
}
.main-title-box h1 span {
    display: block;
    margin-top: 32px;
    font-family: 'Pretendard Variable';
    font-weight: 300;
    text-transform: none;
}
.sub-title {
    text-align: right;
    font-weight: 400;
    font-size: 18px;
}
.sub-title p {
    line-height: 20px;
}
.sub-title a {
    display: inline-block;
    margin-top: 16px;
    border-bottom: 1px solid var(--default-color);
}

.m-visual-area {
    background-color: #fff;
    padding: 104px 50px 147px;
    position: relative;
}

.m-visual-area.wide {
    padding: 104px 0 147px 0;
}

.m-visual-area.wide::before {
    display: none;
}

.noti-list {
    display: flex;
    justify-content: flex-start;
    gap: 32px;
    align-items: center;
    max-width: 1520px;
    margin: 0 auto;
}
.noti-list li {
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    height: clamp(15.6875rem, 4.75rem + 14.5833vw, 22.25rem);
}
.noti-list li a {
    display: block;
    width: 100%;
    height: 100%;
}
.noti-list li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.noti-list li img {
    transition: transform 0.6s;
}

.noti-list li:hover img {
    transform: scale(1.15);
    transition: transform 0.6s;
}

/*부대시설*/
.facil-bg {
    position:relative;
    padding: 187px 50px 168px 50px;
}
.facil-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: clamp(40rem, 19.1667rem + 27.7778vw, 52.5rem);
    background: rgba(0, 0, 0, 0.6) url(/images/main-facil-bg.png) no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    background-position: 0 82%;
}
.facil-bg .main-title-box {
    color: #fff;
}
.facil-bg .sub-title a {
    border-bottom: 1px solid #fff;
}

.facil-list {
    display: flex;
    gap: 56.5px;
    justify-content: flex-start;
    max-width: 1520px;
    margin: 0 auto;
    width: 100%;
}
.facil-list li {
    position: relative;
    flex: 1;
}
.facil-list li:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('/images/layer-logo.svg') center center no-repeat;
    background-size: 180px 118px;
    width: 180px;
    height: 118px;
    z-index: 2;
    pointer-events: none;
}
.facil-list li figure {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: auto;
}
.facil-list li figure:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}
.facil-list li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:all 0.8s;
}
.facil-list li:hover img {
    transform:scale(1.15);
    transition:all 0.8s;
}
.facil-list li p {
    text-align: center;
    margin-top: 16px;
    font-size: var(--f20);
    font-weight: 400;
}

/*투어리스트*/
.m-visual-area.gray {
    background: #f9f9f9;
    padding: 80px 50px;
}
.tourist {
    display:flex;
    gap: 20px;
    justify-content:center;
    align-items:center;
    max-width: 1520px;
    margin: 0 auto;
}
.tourist li {
    overflow:hidden;
    flex: 1;
    cursor: pointer;
}
.tourist li img {
    width: 100%;
    height: 149px;
    border-radius:4px;
    display: block;
}

/*오시는길*/
.m-visual-area.pd0 {
    padding: 0;
}

.box-wrap {
    display: flex;
    flex-wrap: wrap;
}
.box-wrap .box {
    flex: 1 1 0;
    box-sizing: border-box;
    background: #f5f5f5;
    text-align: center;
    height: 231px;
    overflow: hidden;
    position: relative;
}
.box-wrap .box:before {
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    z-index:2;
}
.box-wrap .box:hover img {
    transform:scale(1.1);
    transition:all 0.6s;
}
.box-wrap .box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:all 0.6s;
}
.box-wrap .box img.top {
    object-position: 0 77%;
}
.box-wrap .box img.bottom {
    object-position: 0 37%;
}

.box-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: var(--f18);
    width: 100%;
    z-index: 3;
}
.box-text h1 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: var(--f36);
}
.box-text p {
    line-height: 27px;
    margin-top: 25px;
}

/* 메인 팝업 */
.main-pop-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 10px;
}

.main-pop {
    position: relative;
    width: 100%;
    max-width: 1160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pop-swiper {
    position: relative;
    width: 100%;
}

.pop-swiper .swiper-slide {
    position: relative;
}

.pop-swiper .swiper-slide img {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.main-pop .swiper-btn-prev,
.main-pop .swiper-btn-next {
    cursor: pointer;
}

.btn-pop-close {
    width: 100%;
    max-width: 1140px;
    text-align: right;
}

.btn-pop-close button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 400;
    font-size: var(--f18);
}

/* PC 환경에서는 스크롤바 숨김 */
.mobile-scroll::after {
    display: none;
}


@media (max-width: 1200px) {
    .mobile {
        display: block;
    }

    /*레이아웃*/
    .main-area {
        min-height: 670px;
    }
    .m-visual-area {
        padding: 48px 16px 80px;
    }
    .m-visual-area.gray {
        padding: 48px 16px 80px;
    }

    /*메인캘린더*/
    .main-calendar-wrap {
        bottom: 120px;
        width: 100%;
    }

    .calendar-panel {
        padding: 20px;
    }

    .calendar-panel .main-calendar-box:last-child {
        display: none;
    }

    .auto-hide-arrow {
        display: block;
    }

    .btn-calendar-wrap {
        width: 100%;
    }

    .btn-calendar-wrap button {
        font-size: var(--f16);
    }

    /*스와이퍼 네비 삭제*/
    .main-swiper-nav {
        display: none;
    }

    /*공지배너*/
    .banner-list {
        flex-direction: column;
        width: calc(100% - 46px);
        max-width: 288px;
        padding: 0 3px;
    }
    .banner-list li {
        width: 100%;
        height: 62px;
    }
    .banner-list li img {
        height: 100%;
    }

    /*토글영역제어*/
    #sideMenu {
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 10vh; /* 화면 높이에 따라 아래 여백 유지 */
        height: auto;
        padding: 0;
        background: transparent;
    }
    #sideMenu .inner > *:not(.banner-list) {
        display: none !important; /* 토글, 캘린더 등 숨김 */
    }
    .side_btn {
        display: none;
    }

    /*메인 첫페이지 텍스트*/
    .main-text {
        width: calc(100% - 46px);
        position: absolute;
        left: 50%;
        bottom: 50%;
        transform: translate(-50%, -180px) !important;
        text-align: center;
        height: 50%;
        max-width: 288px;
        margin: 0 auto;
    }
    .main-text h4 {
        font-size: var(--f32);
    }
    .main-text h2 {
        font-size: var(--f18);
        letter-spacing: -0.1px;
    }

    /*예약버튼 (모바일만 open)*/
    .main-reservation-btn {
        margin-top: 56px;
        display: flex;
        justify-content: center;
        gap: 6px;
        padding: 0 3px;
    }
    .main-reservation-btn a {
        border-radius: 4px;
        background: rgba(0, 0, 0, 0.6);
        padding: 12px 0;
        text-align: center;
        font-size: var(--f18);
        display: flex;
        gap: 4px;
        align-items: center;
        flex: 1;
        justify-content: center;
    }
    .main-reservation-btn a.on {
        background: #000;
    }

    /*메인 타이틀*/
    .main-title-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin: 0 auto 32px;
        max-width: 760px;
    }
    .main-title-box h1 {
        font-size: var(--f24);
    }
    .main-title-box h1 span {
        margin-top: 4px;
    }
    .sub-title {
        width: 100%;
        display: inline-block;
        text-align: right;
    }
    .sub-title p {
        display: none;
    }
    .sub-title a {
        font-size: var(--f14);
    }

    /*공지사항*/
    .noti-list {
        gap: 8px;
        justify-content: center;
    }
    .noti-list li {
        flex: 0 0 184px;
        height: 178px;
    }

    /*부대시설*/
    .facil-list {
        gap: 16px;
    }
    .facil-list li {
        flex: 0 0 264px;
        height: auto;
    }
    .facil-list li:before {
        width: 128px;
        height: 84px;
        background-size: 128px 84px;
    }
    .m-visual-area.facil-bg .main-title-box {
        max-width: 800px;
    }
    .facil-bg-img {
        height: 344px;
    }
    .facil-list li p {
        font-size: var(--f16);
    }

    /* 투어리스트 */
    .m-visual-area.gray .main-title-box {
        max-width: 490px;
    }
    .tourist {
        flex-direction: column;
        gap: 8px;
    }
    .tourist li {
        width: 100%;
    }
    .tourist li img {
        height: 104px;
        width: 100%;
        object-fit: cover;
    }

    /* 오시는길 */
    .box-wrap {
        flex-direction: column;
    }
    .box-wrap .box {
        flex: none;
        width: 100%;
        height: 180px; /* 원하는 높이 유지 */
    }
    .box-text h1 {
        font-size: var(--f20);
    }
    .box-text p {
        font-size: var(--f14);
        line-height: 21px;
    }

    /*모바일 스크롤*/
    .mobile-scroll {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        align-self: center;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 32px;
    }
    /* 크로스브라우징용 스크롤바*/
    .mobile-scroll::after {
        content: "";
        position: absolute;
        bottom: 8px;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--sub-color);
        pointer-events: none;
        opacity: 1;
    }

    /*모바일 스크롤바*/
    .mobile-scroll::-webkit-scrollbar {
        height:4px;
        z-index: 1;
    }

    .mobile-scroll::-webkit-scrollbar-thumb {
        background: var(--sub-color); /* 스크롤바 색상 */
    }

    .mobile-scroll::-webkit-scrollbar-track {
        background: #ddd;  /*스크롤바 뒷 배경 색상*/
    }
}

@media (max-width: 768px) {
    .main-title-area p {
        max-width: 80%;
    }
}
