/*--------------------------- inapp alert ---------------------------*/
.inapp-alert {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.inapp-alert-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
}
.inapp-alert-box button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
    font-size: var(--ft15);
}
/*--------------------------- header ---------------------------*/
/*-- h_top --*/
.h_top {
    width: 100%;
    padding: 10px 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    /* mix-blend-mode: difference; */
}
.h_top .no_blend {
    isolation: isolate;
    mix-blend-mode: normal;
  }
.h_inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.h_logo {
    width: 60px;
    height: auto;
    aspect-ratio: 1;
    position: relative;
}
.h_logo a::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    background: var(--gold) repeat center / 50% 50%;
    mask: url('/images/logo_front.png') no-repeat center / cover;
}
.h_logo a {
    position: relative;
}
.h_logo img {
    position: absolute;
    top: 0;
}
.h_top.white .h_logo img {
    filter: invert(1);
}

.gnb ul {
    display: flex;
    align-items: center;
    gap: 50px;
}
.gnb li {
    color: var(--gray-500);
    font-size: var(--ft20);
    position: relative;
}
.h_top.white .gnb li {
    color: white;
}

.gnb li a {
    overflow: hidden;
    position: relative;
}
.gnb li span {
    width: 100%;
    display: block;
    text-align: center;
    transition: transform .3s ease;
    font-size: inherit;
}
.gnb li span:last-child {
    position: absolute;
    top: 100%;
    font-weight: var(--bold);
}
.gnb li a:hover span {
    transform: translateY(-100%);
}
.gnb li.on span {
    font-style: italic;
}

.gnb li .floating {
    width: fit-content;
    height: fit-content;
    padding: 4px 6px;
    border-radius: 9999px;
    background: var(--gold);
    color: white;
    font-size: var(--ft13);
    position: absolute;
    left: 50%;
    bottom: -100%;
    transform: translateX(-50%);
    animation: floatingY 1.5s ease-in-out infinite ;
}
.gnb li .floating::before {
    width: 6px;
    height: 4px;
    content: '';
    display: block;
    clip-path: polygon(
        50% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(45deg, #C49746, #F9DB80, #BB8C34, #55381d, #C39738, #C39738);
    transform: translate(-50%, -100%);
    position: absolute;
    top: 0;
    left: 50%;
}
.gnb li.on .floating {
    display: none;
}
@keyframes floatingY {
    0% {
        transform: translateX(-50%) translateY(6px);
    }
    50% {
        transform: translateX(-50%) translateY(2px);
    }
    100% {
        transform: translateX(-50%) translateY(6px);
    }
}
.m_gnb_btn,
.m_gnb {
    display: none;
}

/* .gnb .point span,
.m_gnb .point span {
    background: var(--gold);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
} */


/* quick_menu */
.quick_menu_area {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 5;
    mix-blend-mode: normal;
    isolation: isolate;
}
.quick_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.quick_menu a {
    width: 40px;
    height: 40px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease;
    pointer-events: visible;
}
.quick_menu a:hover {
    border-radius: 50%;
    background: #1c1c1cce;
}
.quick_menu .quick_icon {
    width: 24px;
    height: auto;
    aspect-ratio: 1;
}



/*--------------------------- footer ---------------------------*/
footer {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 0;
}
footer .link {
    text-decoration: underline;
}
.f_bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}
.f_bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}
.f_top {
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.f_left {
    flex-grow: 1;
}
.f_logo {
    width: 400px;
    height: auto;
    margin-bottom: 60px;
}
.f_sns {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.f_sns a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    position: relative;
    
}
.f_sns a::after {
    content: '';    
    display: block;
    width: 0;
    height: 1px;
    background: var(--bg-dark);
    position: absolute;
    bottom: 0;
    right: 0;
    transition: width .3s ease;
}
.f_sns a:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}
.f_sns .icon {
    width: 28px;
    height: auto;
    aspect-ratio: 1;
    filter: invert(1);
}

.f_right {
    width: 30%;   
}

.f_info {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.f_info .list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.f_info li {
    font-size: var(--ft18);
}
.f_info dt {
    font-size: var(--ft20);
    font-weight: var(--bold);
}

.f_bot {
    padding: 80px 0;
}
.f_privacy {
    font-size: var(--ft18);
    font-weight: var(--medium);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.f_bot .copyright {
    font-size: var(--ft18);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 10px 30px;
    flex-wrap: wrap;
    padding-right: 60px;
}
.f_bot .copyright p,
.f_bot .copyright a {
    color: inherit;
    font-size: inherit;
    width: fit-content;
}
.f_bot .copyright p {
    flex-shrink: 0;
}
.f_bot .copyright a:hover {
    text-decoration: underline;
}

/*--------------------------- btn ---------------------------*/

/*-- btn --*/
.btn {
    font-size: var(--ft20);
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn span {
    display: block;
}
.btn .text_wrap {    
    height: 1em;
    display: flex;
    overflow: hidden;
    position: relative;
    font-weight: var(--bold);
    text-transform: uppercase;
}
.btn .text_wrap.center {
    justify-content: center;
}
.btn .text_wrap > span {
    text-align: center;
    display: flex;
    align-items: center; 
    line-height: 1em;
    font-size: inherit;
    font-weight: var(--bold);
}
.btn .text_wrap > span:last-child {
    position: absolute;
    top: 100%;
}
.btn:hover .text_wrap > span:not(.split) {
    transform: translateY(-100%);
    transition: transform .3s ease;
}

/* top_btn */
.top_btn {
    width: 80px;
    aspect-ratio: 1;
    background: var(--primary);
    color: white;
    font-size: var(--ft30);
    margin-left: auto;
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top_btn span {
    font-size: inherit;
}

/*--------------------------- page ---------------------------*/
.page {
    /* padding-bottom: clamp(600px, 100vmin, 1000px); */
    margin-bottom: 100vh;
}

/* main */
.main {
    width: 100%;
    height: 100vh;
    min-height: 900px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main_bg {
    width: 100%;
    height: 100%;
    background: var(--gray-200);
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: 0; 
}
.main_bg::after {
    content: '';
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(to top, var(--bg-white), #fff0 50%);
}
.main .inner {
    width: 100%;
    height: 100%;
    position: relative;
    padding-top: 200px;
    padding-bottom: 250px;
}
.main_text {
    width: 100%;
    text-align: left;
    font-size: var(--ft20);
}
.main_title {
    width: 100%;
    text-align: right;
    margin-top: 150px;
    font-size: var(--ft100);
    text-transform: uppercase;
}
.sec_wrap {
    margin-top: -250px;
}
.page_top_sec {
    margin-bottom: 100px;
}

/* tab_menu */
.tab_menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.tab_menu .btn span {
    padding: 10px 20px;
}
.tab_menu .btn.active {
    background: var(--primary);
    color: white;
}

/* pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}
.pagination_number {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination_btn a,
.pagination_number li a {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination_btn a:hover,
.pagination_number li a:hover {
    background: var(--gray-200);
}
.pagination_btn a {
    width: 36px;
    aspect-ratio: 1;
}
.pagination_number li a {
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: var(--ft18);  
}
.pagination_number li.active a {
    background: var(--bg-dark);
    color: white;
}

/* -------------------- drop down -------------------- */
.drop_down {
    width: auto;
    height: var(--input-height);
    min-width: fit-content;
    cursor: pointer;
    position: relative;
    padding: 0 16px;
    font-size: var(--ft18);
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--ft18);
    margin-left: auto;
}

.drop_down .icon {
    display: block;
}

.drop_down.active .icon {
    transform: rotate(180deg);
}

.drop_down_list {
    width: 100%;
    min-width: fit-content;
    padding: 6px 0;
    position: absolute;
    top: 100%;
    margin-top: 10px;
    padding: 6px;
    left: 0;
    color: var(--sub-ft);
    background-color: white;
    display: none;
    backdrop-filter: blur(4px);
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius-sm);
    z-index: 3;
}

.drop_down_list li {
    padding: 12px 20px;
    font-size: var(--ft16);
    border-radius: var(--border-radius-sm);
    color: inherit;
    text-wrap: nowrap;
    transition: .3s ease;
}

.drop_down_list li:hover {
    background-color: var(--hover);
    color: var(--primary);
}

/* ----------------search_input----------------- */
.search_input_box {
    width: fit-content;
    height: var(--input-height);
    display: flex;
    gap: 10px;
    align-items: center;
    background: rgba(255, 255, 255, 0.815);
    border: 1px solid white;
    padding: 0 20px;
    transition: transform .3s ease;
}

.search_input_box input[type="search"] {
    border: 0;
    padding: 0;
}

.search_input_box:has(input[type="search"]:focus) {
    background: white;
}
.search_btn {
    display: flex;
}
.search_btn i {
    color: var(--gray-500);
}

/* ----------------popup------------------- */
.popup {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.popup.show {
    /* display: flex; */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup_overlay,
.dimd {
    right: 0;
    bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(0 0 0 / 19%);
    backdrop-filter: blur(4px);
}

.popup_box {
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    transform: scale(0.95) translateY(50px);
    transform-origin: center;
    transition: .4s ease;
    background: white;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.popup.show .popup_box {
    transform: scale(1) translateY(0);
}

.popup.sm .popup_box {
    max-width: 360px;
}

.popup.md .popup_box {
    max-width: 600px;
   
}

.popup.lg .popup_box {
    max-width: 900px;
}
.popup_con {
    width: 100%;
    position: relative;
    max-width: var(--container-sm);
}
.popup_close {
    font-size: var(--ft18);
    color: white;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #0005;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* ------------layout-------------- */
.row {
    display: flex;
    align-items: center;
}


@media (hover:hover) and (pointer:fine) {
    /* ------------cursor-------------- */
    .cursor {
        width: 40px;
        height: 40px;
        /* aspect-ratio: 1 / 2; */
        background: white;
        mask: url('/images/cursor.svg') no-repeat center / cover;
        position: fixed;
        z-index: 99;
        pointer-events: none;
        opacity: 0;
        transform: translateX(-50%) rotateZ(-40deg) scale(0.9, 1.1);
        transform-origin: 50% 0%;
        transition: transform 0.1s ease, opacity 0.4s ease;
        mix-blend-mode: difference;
    }
    .cursor.play {
        opacity: 1;
        transform: translate(-100%, -50%) rotateZ(-30deg) scale(1.5);
    }
}
@media all and (max-width: 1200px) {
    .top_btn {
        width: 70px;
    }
}

@media all and (max-width: 960px) {
    /* header */
    .h_top {
        padding: 10px 20px;
    }
    .h_logo {
        width: 50px;
    }
    /* footer */
    .f_top {
        flex-direction: column;
        gap: 50px;
    }
    .f_bot {
        padding: 60px 0;
    }
    .f_right {
        width: 100%;
    }
    .f_logo {
        width: 300px;
        margin-bottom: 50px;
    }
    .f_sns {
        gap: 10px;
    }
    .f_info {
        gap: 30px;
    }
    .f_info .list {
        gap: 10px;
    }
    .top_btn {
        width: 50px;
    }

    /* tabmenu */
    .tab_menu {
        gap: 20px;
    }
    .tab_menu .btn span {
        padding: 6px 12px;
    }
    
   
}

@media all and (max-width: 600px) {

    .h_top {
        padding: 10px 16px;
    }
    .f_logo {
        width: 230px;
        margin-bottom: 50px;
    }
    .drop_down_list li {
        padding: 8px 16px;
    }
    
    
    /* 모바일 gnb */
    .gnb {
        display: none;
    }
    .m_gnb_btn,
    .m_gnb {
        display: flex;
        pointer-events: visible;
    }
    .m_gnb_btn {
        width: 40px;
        height: 40px;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-direction: column;
        position: relative;
        cursor: pointer;
        z-index: 99;
    }
    
    .m_gnb_btn > div {
        width: 80%;
        height: 4px;
        position: absolute;
        background: var(--bg-dark);
    }
    .h_top.white .m_gnb_btn > div {
        background: white;
    }
    header:has(.m_gnb.active) .h_top.white .m_gnb_btn > div {
        background: var(--bg-dark);
    }
    header:has(.m_gnb.active) .h_top.white .h_logo img {
        filter: invert(0);
    }
    .m_gnb_btn > div:first-child {
        transform: translateY(-5px);
    }
    .m_gnb_btn > div:last-child {
        transform: translateY(5px);
    }
    .m_gnb {
        position: fixed;
        top: 0;
        right: 0;
        width: 100dvw;
        height: 100dvh;
        background: var(--gray-200);
        z-index: 5;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 50px;
        padding: 100px 40px 40px;
        /* transform: translateX(100%); */
    }
    
    .m_gnb_menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        height: 100%;
    }
    .m_gnb_menu li {
        position: relative;
        width: fit-content;
    }
    .m_gnb_menu li.on::before {
        content: '';
        display: block;
        width: 8px;
        height: 6px;
        background: var(--primary);
        transform: rotateZ(-45deg) translateY(-50%);
        position: absolute;
        top: 50%;
        left: 0;
    }
    .m_gnb_menu li.on a {
        padding-left: 14px;
    }
    .m_gnb_menu li.on span {
        font-style: italic;
    }
    .m_gnb_menu a {
        padding: 10px 0;
        font-size: var(--ft24);
    }
    .m_gnb_menu .text_wrap {
        width: 100%;
    }
   
    .m_gnb_menu span.ko {
        font-weight: var(--bold);
    }
    .m_gnb_menu li .floating {
        width: fit-content;
        height: fit-content;
        padding: 4px 6px;
        border-radius: 9999px;
        background: var(--gold);
        color: white;
        font-size: var(--ft13);
        position: absolute;
        right: -60%;
        top: 50%;
        transform: translateY(-50%);
        animation: floatingX 1.5s ease-in-out infinite ;
    }
    .m_gnb_menu li .floating::before {
        width: 4px;
        height: 6px;
        content: '';
        display: block;
        clip-path: polygon(
            100% 0%, 100% 100%, 0% 50%);
        background: linear-gradient(45deg, #C49746, #F9DB80, #BB8C34, #55381d, #C39738, #C39738);
        transform: translate(-100%, -50%);
        position: absolute;
        top: 50%;
        left: 0;
    }
    .m_gnb_menu li.on .floating {
        display: none;
    }
    @keyframes floatingX {
        0% {
            transform: translateY(-50%) translateX(6px);
        }
        50% {
            transform: translateY(-50%) translateX(2px);
        }
        100% {
            transform: translateY(-50%) translateX(6px);
        }
    }

 
    .m_gnb_footer * {
        font-size: var(--ft16);
    }
    .m_gnb_info {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .m_gnb_info .list dt {
        font-weight: var(--bold);
        margin-bottom: 6px;
    }
    .m_gnb_copyright {
        margin-top: 30px;
    }
    .m_gnb_copyright .link {
        text-decoration: underline;
    }
    .quick_menu_area {
        right: 16px;
        bottom: 40px;
    }

    /* page */
    /* .page {
        margin-bottom: 0;
    } */
    .page {
        margin-bottom: calc(var(--vh) * 100);
    }


    /* footer */

    /* footer {
        height: auto;
        min-height: 0;
        padding: 80px 0 40px;
        position: relative;
    } */
    footer {
        height: calc(var(--vh) * 100);
    }

    .top_btn {
        width: 60px;
    }
    .f_info {
        gap: 20px;
    }
    .f_top {
        gap: 40px;
    }
    .f_bot {
        padding: 30px 0;
    }
    .f_sns .icon {
        width: 24px;
    }

    .f_privacy {
        gap: 20px;
        margin-bottom: 14px;
    }
    .f_bot .copyright {
        font-size: var(--ft18);
        row-gap: 4px;
    }
    
    
}
@media all and (max-width: 400px) {
    .top_btn {
        width: 50px;
    }
}