@charset "utf-8";

main {
    width: 100%;
    position: relative;
}

/* 메인 section */
.main-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 810px;
    max-height: 910px;
    overflow: hidden;
}

.main-section .bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.main-section::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 294px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 68.27%);
    pointer-events: none;
}

.main-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 230px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* Calendar */
.calendar {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1296px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

.calendar .nav {
    flex: 0 0 auto;
    padding: 0 8px;
}

.days {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    height: 77px;
    align-content: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.day {
    flex: 0 0 60px;
    width: 60px;
    height: 77px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #fff;
}

.dow, .date {
    margin: 0;
    display: block;
}

.day .dow {
    display: block;
    font-size: var(--f14);
    font-weight: 400;
}

.day .date {
    display: block;
    font-size: var(--f24);
    font-weight: 700;
}

.day .state {
    position: relative;
    display: block;
    font-size: var(--f16);
    font-weight: 300;
    padding-bottom: 7px;
}

.day .state::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    background-color: var(--main-color);
    height: 12px;
    z-index: -1;
}

.day .state.deadline {
    opacity: 0.6;
}

.day .state.pre-opening {
    opacity: 0.6;
}

.day.sat .dow,
.day.sat .date {
    color: #638CFF;
}

.day.sun .dow,
.day.sun .date {
    color: #E65454;
}

/* 메인 배너 게시판리스트 */
.main-list-wrap {
    display: flex;
}

.banners {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 0;
    background-color: #4e573a;
    z-index: 1;
}

.banners li {
    flex: 1;
    height: 242px;
    position: relative;
    overflow: hidden;
}

.banners li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    gap: 12px;
    font-size: var(--f18);
    font-weight: 500;
}

.banners li a span {
    font-size: var(--f24);
    font-weight: 700;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banners li a:hover span {
    transform: translateY(-3px);
}

.banners li a em {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.banners li a:hover em {
    transform: translateY(3px);
}

.banners li a::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.banners li a:hover::before {
    transform: scale(1.05);
}

.banners li:nth-child(1) a::before {
    background-image: url('/images/bg_bn_menu01.jpg');
}

.banners li:nth-child(2) a::before {
    background-image: url('/images/bg_bn_menu02.jpg');
}

.banners li:nth-child(3) a::before {
    background-image: url('/images/bg_bn_menu03.jpg');
}

.banners li:nth-child(4) a::before {
    background-image: url('/images/bg_bn_menu04.jpg');
}

.banners strong {
    font-size: 24px;
}

.banners span {
    margin-top: 8px;
}

.board {
    flex: 0 0 740px;
    padding: 16px 55px;
    max-width: 740px;
}

.board li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
    font-size: var(--f20);
}

.board li:last-child a {
    padding-top: 20px;
    border-bottom: 0;
}

.board li a .tag {
    border-radius: 4px;
    background: #BCB093;
    color: #fff;
    font-size: var(--f16);
    width: 72px;
    line-height: 32px;
    text-align: center;
}

.board li a .tag.event {
    background: var(--main-color);
}

.board li a em {
    font-size: var(--f16);
    color: #999;
}

.board li a i {
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.board li a:hover i {
    transform: translateX(5px);
}

.board li a i img {
    display: block;
}

.board li a p {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* aside */
aside {
    position: fixed;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    z-index: 15;
}

.fab-links {
    display: contents
}

aside a, aside button {
    display: flex;
    align-items: center;
    justify-content:flex-end;
    height: 60px;
    width: 60px;
    background: var(--main-color);
    color: #fff;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    transition: width .35s cubic-bezier(.22, 1, .36, 1), background .25s;
    white-space: nowrap;
}

aside button{
    background: rgba(34, 34, 34, 0.6);
}

aside h3 {
    flex: 1;
    text-align: center;
    font-size: var(--f18);
    font-weight: 600;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .25s ease, transform .3s ease;
}

aside span {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

aside img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

aside a:hover {
    width: 156px
}

aside a:hover h3 {
    opacity: 1;
    transform: translateX(0);
    padding-left: 20px;
}

/* 메인 팝업 */
.main-pop-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 24px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

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

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

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

.pop-swiper .swiper-slide img {
    width: 100%;
}

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

.btn-pop-close {
    width: 100%;
    max-width: 1144px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.btn-pop-close button {
    cursor: pointer;
    background-color: #222;
    line-height: 35px;
    border-radius: 60px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: var(--f16);
}

@media (max-width: 1320px) {
    .main-list-wrap {
        flex-direction: column;
    }

    .main-sec {
        flex-direction: column;
    }

    .banners {
        flex-wrap: wrap;
    }

    .banners li {
        flex: 0 0 50%;
        aspect-ratio: 1/1;
    }

    .board {
        flex: 1;
        padding: 0 16px;
        max-width: 100%;
    }

    .board li a {
        padding: 20px 0;
    }

    aside {
        gap: 8px;
        right: 16px;
    }

    aside a, aside button {
        height: 50px;
        width: 50px;
    }

    aside h3 {
        font-size: var(--f18);
    }

    aside span {
        width: 50px;
        height: 50px;
    }

    aside img {
        width: 24px;
        height: 24px;
    }

    aside a:hover {
        width: 50px;
    }

    aside a:hover h3 {
        opacity: 0;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .main-section {
        height: 100dvh;
        min-height: 500px;
    }

    .calendar {
        bottom: 20px;
        padding: 0 3px;
        gap: 0;
    }

    .calendar .nav {
        padding: 0;
    }

    .days {
        gap: 4px;
    }

    .day {
        min-width: 50px;
        flex: 0 0 50px;
        width: 50px;
    }

    .day .date {
        font-size: var(--f20);
    }

    .day .state {
        font-size: var(--f14);
    }

    .banners li a {
        font-size: var(--f14);
    }

    .banners li a span {
        font-size: var(--f18);
    }

    .board li a {
        font-size: var(--f16);
        gap: 4px;
    }

    .board li a .tag {
        font-size: var(--f12);
        width: 50px;
        line-height: 22px;
    }

    .board li a em {
        font-size: var(--f12);
    }
}

@media (max-width: 479px) {
    .btn-pop-close {
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .banners li {
        height: 154px;
    }
}
