@import url('./fonts.css');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: none;
    list-style: none;
    font-family: 'Pretendard';
    text-decoration: none;
}

html, body {
    overflow-x: hidden;
    background: #fff;
    /* overscroll-behavior: none; */
}

#header {
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 90px;
    z-index: 1000;
}

.header_logo a img {
    display: flex;
    width: 135px;
    height: 58px;
}

.gnb ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.gnb .gnb_1depth a {
    font-size: 18px;
    font-weight: 600;
    color: #08975D;
    cursor: pointer;
}

.gnb .gnb_1depth.active a {
    font-weight: 800;
}

.gnb .gnb_2depth_wrap {
    position: absolute;
    padding-top: 16px;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.gnb_1depth:hover .gnb_2depth_wrap {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gnb .gnb_2depth a {
    font-size: 16px;
    color: #08975D;
}

.gnb .gnb_other {
    display: flex;
    gap: 24px;
}

.header_shop_btn img {
    width: 184px;
    height: 46px;
}

.gnb_other .sound_btn {
    background: none;
    cursor: pointer;
}

.sound_btn img {
    width: 42px;
    height: 42px;
}

.main_background {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    transform: none !important; 
}

.main_background .main_bg_video,
.main_background .main_background_img {
    width: 100%;
    position: relative;
    z-index: 0;
}

.main_bg_video {
    position: absolute;
    inset: -1px;
    right: 0;
    width: calc(100vw + 2px) !important;
    height: calc(100% + 2px);
    object-fit: cover;
    display: block;
}

.main_background_index::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 4px;
    background: #08975D;
    pointer-events: none;
}

#footer {
    background-color: #08975D;
    padding: 38px 90px 78px;
}

.footer_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer_top_left {
    width: 916px;
    height: 54px;
}

.footer_top a img {
    width: 121px;
    height: 112px;
}

.footer_line {
    background-color: #BAFFE3;
    opacity: 0.4;
    height: 1.5px;
    width: 100%;
    margin: 28px 0 47px;
}

.footer_middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer_mid_left {
    display: flex;
}

.footer_item:first-child {
    width: 435px;
}

.footer_item:nth-child(2) {
    width: 195px;
    margin-left: 55px;
    margin-right: 17px;
}

.footer_item_head {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 25px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 9px;
}

.footer_item_contents p {
    font-size: 20px;
    font-weight: 500;
    line-height: 35px;
    color: #FFFFFF;
    opacity: 0.7;
}

.footer_item_head img {
    width: 18px;
    height: 18px;
}

.footer_mid_right {
    display: flex;
    align-items: center;
    gap: 29px;
}

.footer_mid_right a img {
    width: 35px;
    height: 35px;
}

.footer_bottom {
    margin-top: 70px;
}

.footer_info,
.footer_info_mo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer_info strong,
.footer_info_mo strong {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    opacity: 0.7;
    line-height: 35px;
}

.footer_info span,
.footer_info_mo span {
    font-size: 20px;
    font-weight: 300;
    color: #42A96F;
    opacity: 0.7;
    line-height: 35px;
}

.footer_info p,
.footer_info_mo p {
    font-size: 20px;
    font-weight: 500;
    color: #FFFFFF;
    opacity: 0.7;
    line-height: 35px;
}

.footer_info a {
    width: 131px;
    height: 31px;
    background-color: #00804C;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    margin-left: 6px;
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
    opacity: 0.7;
}

.section_title,
.section_title span {
    display: inline;
    font-size: 25px;
    font-weight: 600;
    color: #08975D;
    text-align: center;
}

.mobile_menu_btn,
.footer_info_mo,
.footer_mid_right_mo,
.sound_btn_mo,
.scroll_top_btn {
    display: none;
}

@media (max-width: 767px) {
    #header {
        padding: 30px;
    }

    .header_logo a img {
        width: 66px;
        height: 28px;
    }

    .mobile_menu_btn {
        display: block;
        position: relative;
        width: 16px;
        height: 12px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile_menu_btn span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: #08975D;
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .mobile_menu_btn span:nth-child(1) { top: 0; }
    .mobile_menu_btn span:nth-child(2) { top: 6px; }
    .mobile_menu_btn span:nth-child(3) { top: 12px; }

    .mobile_menu_btn.active span:nth-child(1) {
        top: 6px;
        transform: rotate(45deg);
    }

    .mobile_menu_btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile_menu_btn.active span:nth-child(3) {
        top: 6px;
        transform: rotate(-45deg);
    }

    .gnb {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        padding-top: 67px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: right 0.35s ease;
        z-index: 1000;
    }

    .gnb.active {
        right: 0;
    }

    .wrap.no-scroll {
        position: fixed;
        width: 100%;
        overflow: hidden;
        touch-action: none;
    }

    .gnb ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 26px;
    }

    .gnb ul > li {
        width: 100%;
        position: static !important;
        height: auto;
        min-height: auto;
        padding: 0;
    }

    .gnb_1depth > a {
        display: block;
        width: 100%;
        font-size: 16px;
        color: #08975D;
    }

    .gnb_1depth_head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .gnb_1depth_title {
        font-size: 16px;
        display: block;
        color: #08975D;
    }

    .depth_toggle {
        position: relative;
        width: 18px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        flex-shrink: 0;
    }

    .depth_toggle::before,
    .depth_toggle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 12px;
        height: 1px;
        background: #B5B5B5;
        transform: translate(-50%, -50%);
        transition: 0.25s ease;
    }

    .depth_toggle::after {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .gnb_1depth.open .depth_toggle::after {
        opacity: 0;
    }

    .gnb .gnb_2depth_wrap {
        position: static !important;
        display: block !important;
        height: 0;
        overflow: hidden;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding-top: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        padding: 0;
        transition: height 0.35s ease;
    }

    .gnb_1depth:nth-child(4) {
        margin-top: -12px;
    }

    .gnb_1depth.has_depth .gnb_1depth_head {
        padding-bottom: 12px;
    }

    .gnb_1depth.open .gnb_2depth_wrap {
        display: block !important;
    }

    .gnb_2depth:first-child {
        padding-bottom: 8px;
    }

    .gnb_2depth:last-child {
        padding-bottom: 12px;
    }

    .gnb_2depth a {
        font-size: 15px;
        color: #9e9e9e !important;
    }

    #header .sound_btn {
        display: none !important;
    }

    .sound_btn_mo {
        display: flex;
        position: absolute;
        right: 30px;
        bottom: 30px;
        z-index: 10;
        width: 43px;
        height: 43px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        pointer-events: auto;
        border: 1px solid #FFF;
    }

    .scroll_top_btn {
        display: flex;
        position: fixed;
        right: 30px;
        bottom: 30px;
        z-index: 10;
        width: 43px;
        height: 43px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        pointer-events: auto;
        border: 1px solid #FFF;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity .25s ease, transform .25s ease;
    }

    .scroll_top_btn.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .sound_btn_mo img,
    .scroll_top_btn img {
        width: 20px;
        height: 20px;
        margin-left: -2px;
    }

    .header_shop_btn img {
        content: url("/images/header_shop_btn_mo.png");
        width: 126px;
        height: 28px;
    }

    .main_bg_video {
        height: 100vh;
    }

    #footer {
        padding: 30px 40px;
    }

    .footer_line {
        margin: 20px 0 15px;
    }

    .footer_top_left {
        content: url("/images/footer_txt_m.png");
        width: 111px;
    }

    .footer_top a img {
        width: 58px;
        height: 54px;
    }

    .footer_middle {
        display: none;
    }

    .footer_bottom {
        margin-top: 0;
    }

    .footer_info:last-child {
        display: none;
    }

    .footer_info_mo {
        display: flex;
        font-size: 12px;
        line-height: 22px;
    }

    .footer_info_mo:first-child p {
        font-size: 13px;
        line-height: 27px;
        font-weight: 700;
        margin-bottom: 7px;
    }

    .footer_info strong,
    .footer_info span,
    .footer_info p,
    .footer_info_mo strong,
    .footer_info_mo span,
    .footer_info_mo p {
        font-size: 12px;
        line-height: 22px;
    }

    .footer_info a {
        display: none;
    }

    .footer_mid_right_mo {
        display: flex;
        gap: 16px;
        align-items: center;
        margin-top: 15px;
    }

    .footer_mid_right_mo a {
        width: 26px;
    }

    .footer_mid_right_mo img {
        width: 100%;
        height: auto;
    }

    .section_title,
    .section_title span {
        display: block;
        font-size: 13px;
    }
}