/* 메인 이미지 */
.contents {
    padding-top: 0;
}

.hero_banner {
    overflow: hidden;
    width: 100%;
    height: auto;
    position: relative;
    border-radius: 12px;
    padding: 0;
}

.hero_banner .text_case a:first-child:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: url('../images/main/hero_banner_mask.png') no-repeat 0 0 / 100% 100%;
}

.hero_banner .text_case div {
    position: absolute;
    left: 60px;
    bottom: 60px;
    color: #ffffff;
    z-index: 2;
}

.hero_banner .text_case div p {
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 24px;
}

.hero_banner .text_case div h3 {
    font-size: 28px;
    max-width: 300px;
    font-weight: bold;
    line-height: 42px;
}


.hero_banner img {
    object-fit: cover;
    width: 100%;
    height: auto;
}

.hero_banner .swiper-button-prev,
.hero_banner .swiper-button-next,
.category_banner .swiper-button-prev,
.category_banner .swiper-button-next,
.middle_banner .swiper-button-prev,
.middle_banner .swiper-button-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero_banner .swiper-button-prev {
    left: 10px;
}

.hero_banner .swiper-button-next {
    right: 10px;
}


@media (max-width: 768px) {
    .contents {
        padding: 0 0 10vh 0;
    }

    .contents > div {
        padding: 0 16px 3vh;
    }
    
    .contents .hero_banner {
    width: 100%;
    height: auto;
    border-radius: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    }
    
    .hero_banner .text_case {
        height: auto;
    }

    .hero_banner .text_case img {
        height: 100%;
    }
    .hero_banner .text_case div {
        left: 5%;
        bottom: 5%;
        padding-right: 5%;
    }

    .hero_banner .text_case div p {
    margin-bottom: 1vh;
    font-size: 1rem;
    line-height: 1.3;
    }

    .hero_banner .text_case div h3 {
    font-size: 1.8rem;
    max-width: 100%;
    line-height: 1.4;
    }
}

@media (max-width: 535px) {
    .hero_banner .text_case div {
        left: 8%;
        bottom: 8%;
    } 
    .hero_banner .text_case div p {
        margin-bottom: 0.5vh;
        font-size: 0.9rem;
        }
    
    .hero_banner .text_case div h3 {
        font-size: 1.3rem;
        line-height: 1.2;
        }
}


/* 제품유형 카테고리 */
.swiper_category {
    position: relative;
}

.swiper_category:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 100%;
    background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.swiper_category .swiper-slide {
    width: 98px;
}

.swiper_category .swiper-slide .prd_img {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 98px;
    border: 1px solid #F3F3F5;
    border-radius: 12px;
    background-color: #fff;
}

.swiper_category .swiper-slide .prd_txt {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #0a0a0c;
}

/* 중단배너 */

.category_banner, .middle_banner {
    height: auto;
}
.category_banner .swiper,
.middle_banner .swiper {
    border-radius: 12px;
}

.category_banner .swiper-slide img,
.middle_banner .swiper-slide img {
    border-radius: 12px;
}

@media all and (min-width: 765px) {
    
}

/* 인테리어 모아보기 */

.section_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section_header .tit {
    display: flex;
    align-items: center;
    font-size: 20px;
    line-height: 32px;
    font-weight: bold;
    color: #0a0a0c;
}

.section_header .btn_more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0;
}

.section_header .btn_more:after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background: url('../images/common_sub/ico_more.svg') no-repeat center center / 9px 16px;
}

@media all and (min-width: 765px) {
    .section_header .btn_more {
        width: 85px;
        height: 36px;
        gap: 4px;
        font-size: 14px;
        color: #41414c;
    }

    .section_header .btn_more:after {
        width: 16px;
        height: 16px;
        background-size: 6px 11px;
    }
}

@media (max-width: 575px) {
    .swiper_category .swiper-button-next,
    .swiper_category .swiper-button-prev {
        display: flex;
    }

}


/* 카드 리스트 작업 */
.list_card {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: -24px;
    margin-left: -16px;
}

.list_card li {
    position: relative;
    margin-top: 24px;
    padding-left: 16px;
}

.list_card li a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.list_card li .list_card_inner {
    position: relative;
}

.list_card li .img_box {
    position: relative;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.list_card li .img_box>img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list_card li .txt_box {
    margin-top: 12px;
}

.list_card li .txt_box .mark {
    margin-bottom: 8px;
}

.list_card li .txt_box .txt {
    font-size: 16px;
    color: #0a0a0c;
    line-height: 24px;
}

.list_card li .txt_box .txt.ellipsis {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list_card li .txt_box .profile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #68687A;
    font-size: 14px;
}

.list_card li .txt_box .profile .profile_img {
    width: 24px;
    height: 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #F3F3F5
}

.list_card li .new {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}


/* type2 */
.list_card.type2 li {
    width: 100%
}

.list_card.type2 li .img_box {
    padding-top: 47.76%;
}

@media all and (min-width: 765px) {
    .list_card.type2 li {
        width: 50%;
    }

    .list_card.type2 li .img_box {
        padding-top: 45%;
    }
}

@media all and (max-width: 764px) {
    .list_card.type2 {
        margin-top: -12px;
    }

    .list_card.type2 li {
        margin-top: 12px;
    }
}


/* type3 */
.list_card.type3 li {
    width: 100%;
}

.list_card.type3 li .img_box {
    padding-top: 68.47%;
}

.list_card.type3 li .list_info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-top: 8px;
}

.list_card.type3 li .list_info dt {
    color: #68687A;
    margin-left: 0
}

.list_card.type3 li .list_info dd {
    color: #7064FE;
    margin-left: 0;
}

@media all and (min-width: 765px) {
    .list_card.type3 li {
        width: 33.33%;
    }

    .list_card.type3 li .txt_box .txt {
        height: 48px;
    }
}


/* type4 */
.list_card.type4 li {
    width: 50%;
}

.list_card.type4 li .img_box {
    padding-top: 100%;
}

@media all and (min-width: 765px) {
    .list_card.type4 li {
        width: 25%;
    }

    .list_card.type4 li .img_box {
        padding-top: 68.38%;
    }
}

@media all and (min-width: 765px) {
    .list_card.type4.big li .img_box {
        padding-top: 100%;
    }
}