.btn_allmenu {
    display: none;
    width: 24px;
    height: 24px;
    background: url('../images/ic_menu.svg') no-repeat center center;
    background-size: 100%;
    text-indent: -999px;
    overflow: hidden;
    cursor: pointer;
}
.allmenu_wrap {
    position: absolute;
    top:0;
    left: 0;
    bottom: 0;
    width: 100%;
    display: none;
}

.allmenu_wrap.open {
    display: block;
}

.allmenu_wrap .mask {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.75);
        z-index: 9999;
        opacity: 0;
        transform: translateX(-101%);
        transition: opacity .3s;
    }

    .allmenu_wrap.open .mask {
        opacity: 1;
        transform: translateX(0);
    }

    .allmenu_wrap .allmenu {
        position: absolute;
        top: 0;
        left: 0;
        width: 81%;
        max-width: 390px;
        min-height: 100vh;
        padding-bottom: 168px;
        background: #fff;
        z-index: 10000;
        transform: translateX(-101%);
        transition: all .3s;
    }

    .allmenu_wrap .allmenu .menu_list {
        padding: 20px;
    }

    .allmenu_wrap .allmenu .menu_list > li {
        border-bottom: 1px solid #e8e8e8;
    }

    .allmenu_wrap.open .allmenu {
        transform: translateX(0);
    }

    .allmenu_wrap .allmenu .close_allmenu {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 20px;
        height: 20px;
        background: url('../images/ic_men_close.svg') no-repeat center center;
        background-size: 100%;
        text-indent: -999px;
        overflow: hidden;
        cursor: pointer;
    }

    .allmenu_wrap .allmenu .am_logo {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        text-align: left;
    }

    .allmenu_wrap .allmenu .am_logo img {
        height: 25px;
    }

    .allmenu_wrap .allmenu .am_txt {
        margin-top: 15px;
        padding: 0 20px;
        color: #fff;
        font-size: 12px;
        line-height: 18px;
        text-align: center;
    }

    .allmenu_wrap .allmenu .btns {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 16px 20px 20px;
    }

    .allmenu_wrap .allmenu .btns a {
        display: block;
        width: calc(50% - 6px);
        height: 36px;
        border: 1px solid #777;
        border-radius: 40px;
        color: #777;
        font-size: 16px;
        line-height: 34px;
        text-align: center;
    }

    .allmenu_wrap .allmenu .menu_list > li > a {
        display: block;
        position: relative;
        height: 64px;
        padding: 25px 0;
        color: #222;
        font-size: 20px;
        font-weight: 700;
        line-height: 24px;
    }

    .allmenu_wrap .allmenu .menu_list > li > a:before {
        content: '';
        position: absolute;
        top: 50%;
        right: 20px;
        width: 20px;
        height: 20px;
        margin-top: -4px;
        background: url('../images/ic_sub_menu.svg') no-repeat center center;
        background-size: 100%;
        transition: all .3s;
    }

    .allmenu_wrap .allmenu .menu_list > li.on > a:before {
        background-image: url(../images/ic_sub_menu_close.svg);
    }

    .allmenu_wrap .allmenu .menu_list > li.ul_none > a:before {
        display: none;
    }


    .allmenu_wrap .allmenu .menu_list > li > .depth > li > a {
        display: block;
        position: relative;
        padding: 12px 0;
        color: #222;
        font-size: 18px;
        line-height: 24px;
    }

    .allmenu_wrap .allmenu .btn_tel {
        position: absolute;
        right: 20px;
        bottom: 100px;
        left: 20px;
        padding: 12px 12px 12px 45px;
        border: 1px solid #ccc;
        background: url('../images/ic_phone.svg') no-repeat 20px center;
        background-size: 14px;
        border-radius: 40px;
    }

    .allmenu_wrap .allmenu .btn_tel dl {
        font-size: 16px;
        line-height: 24px;
        overflow: hidden;
    }

    .allmenu_wrap .allmenu .btn_tel dl dt {
        float: left;
        color: #eaeaea;
        font-weight: 700;
    }

    .allmenu_wrap .allmenu .btn_tel dl dd {
        padding-left: 75px;
        color: #222;
    }
@media (max-width:1000px) {
    section.recommend-container .swiper-category-container {
        margin-right: 10px;
    }
}
@media (max-width:880px) {
 header .head {
    padding : 10px;
 }

 header .head .menu{
    display: none;
 }

 .btn_allmenu {
    display: block;
 }

 
#hero .text-container ul {
    flex-wrap: wrap;
}

#hero .text-container ul li {
    margin-bottom: 10px;
}

    section.gallery ul {
        grid-template-columns: 1fr 1fr 1fr;
    }

    section.gallery ul li:nth-child(n+10) {
        display: none;
    }

    section.recommend-container .contents-container {
        grid-template-columns: 100%;
        gap:0;
    }

    section.recommend-container .contents {
        background-color: #fff;
    }

    section.recommend-container .contents-container .swiper-slide {
        width: 80% !important;
    }

 .detail .result:has(.card) {
    grid-template-columns: 1fr 1fr;
 }
 .detail .gallery .list {
    grid-template-columns: 1fr 1fr;
 }

 footer .footer {
    padding-left: 10px;
 }
}

@media (max-width:640px) {
    html {font-size:62.5%}

    
    section .contents-container {
        width: 100%;
        padding: 0 20px;
    }

    section.gallery ul li:nth-child(n+7) {
        display: none;
    }

    section.recommend-container .contents-container { 
        padding:0;
    }

    section.recommend-container .layout-d > ul {
        padding: 0 20px;
    }

    
    section.recommend-container .layout-d {
        border-radius: 0;
    }
    section.recommend-container .swiper-category-container {
        margin:0;
        margin-top: 45px;
    }

    section.recommend-container .swiper-nav {
        margin-top: 20px;
        padding: 0 20px;
    }

    section.recommend-container .contents {
        padding: 0;
        margin-top: 20px;
    }

    section.gallery a.artsarchive {
        border-radius: 15px;
        background-image: none;
    }

    section.gallery a.artsarchive span {
        margin-left: 0;
    }

    section.gallery ul {
        grid-template-columns: 1fr 1fr;
    }

    section.links ul {
        flex-direction: column;
        height: auto;
    }

    section.links ul li {
        height: 50px;
        justify-content: center;
    }

    section.artist_space {
        border-radius: 0;
    }

    section.artist_space .space {
        grid-template-columns: 1fr;
    }

    .detail .contents-search .select select {
        line-height: 3.75rem;
    }

    .detail .contents-search:has(> .select:nth-child(1)):not(:has(> .select:nth-child(2))) {
        grid-template-columns: 100px 1fr 84px;
    }

    .detail .summary {
        grid-template-columns: 1fr;
    }

    .detail .gallery .list {
        grid-template-columns: 1fr;
    }

    .detail .contents-wrapper .content .pagination a {
        display: none;
    }

    .detail .contents-wrapper .content .pagination a.prev,
    .detail .contents-wrapper .content .pagination a.next {
        display: block;
    }

    .detail .audio .card {
        grid-template-columns: 1fr;
    }
    
    .introduce .video-event {
        grid-template-columns: 1fr;
    }

    .want_step {
        flex-direction: column;
    }

    .want_step li .imgbox:after {
        display: none;
    }

    footer .footer .footer-contents {
        padding: 0 10px;
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }
}