/* ==== main_sec ==== */
.main_sec {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}
.main_sec::after {
    position: absolute;
    top: 13.4%; left: 0; right: 0;
    height: 50%;
    content: '';
    display: block;
    background: linear-gradient(to top, transparent, white 40%);
    pointer-events: none;
    transform: translateY(0);
    transition: opacity .8s .8s ease, transform .8s ease;
    opacity: 1;
}
.main_sec.active::after {
    opacity: 0;
    transform: translateY(-100%);
}
.main_sec-bg {
    width: 100%;
    min-height: 900px;
    height: 110vh;
    /* aspect-ratio: 16 / 9; */
    clip-path: inset(13.4%);
    transition: clip-path 1s ease;
    overflow: hidden;
}
.main_sec-bg .bg_img {
    width: 100%;
    height: 100%;
    scale: 1.1;
    transition: scale 3s ease, filter .5s ease;
    filter: brightness(1);
    border-radius: 0;    
}
.main_sec.active .main_sec-bg {
    clip-path: inset(0);
}
.main_sec.active .bg_img {
    scale: 1;
    filter: brightness(0.6);
}

.main_sec .inner {
    position: absolute;
    /* background: red; */
    z-index: 2;
}
.main-title {
    transition: color 1s ease;
    margin-bottom: var(--con-gap);
}
.main-title .split {
    display: flex;
    flex-direction: column;
    gap:  80px;
    transition: gap 1s ease;
    opacity: 0;
}
.main-title .split span {
    opacity: 1;
    text-align: center;
}
.main_sec.active .main-title {
    color: white;
}
.main_sec.active .main-title .split {
    gap: 0;
}
.main-sub_title {
    color: var(--gray-100);
    opacity: 0;
    transform: translateY(50px);
    transition: transform .8s .8s ease, opacity .8s .8s ease;
}
.main_sec.active .main-sub_title {
    opacity: 1;
    transform: translateY(0);
}

/* ==== merit_sec ==== */
.merit_sec {
    padding-top: var(--sec-gap);
    --top: 100px;
}
.merit_sec .inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--con-gap);
}
.merit_sec .sec-title {
    position: sticky;
    top: var(--top);
    padding-bottom: var(--sec-gap);
}
.merit_sec .sec-content {
    padding-top: var(--con-gap);
}
.merit-list {
    display: flex;
    flex-direction: column;
}
.merit-item {
    padding-bottom: var(--sec-gap);
    border-top: 1px solid var(--gray-300);
    background: white;
    position: sticky;
    z-index: 1;
    top: var(--top);
}
.merit-item:last-child {
    border: 0;
    background: transparent;
}
.merit-item_header {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    align-items: center;
    height: 100px;    
}
.merit-item_header .con-title {
    font-size: var(--ft22);
    color: var(--ft-main);
    font-weight: var(--medium);
}
.merit-item_header .num {
    font-size: var(--ft22);
    color: var(--ft-main);
    font-weight: var(--medium);
    /* font-family: var(--ft-serif); */
}
.merit-item_desc {
    padding-left: 100px;
}
.merit-item_desc p {
    color: var(--ft-sub);
    font-size: var(--ft18);
}

/* ==== banner_sec ==== */
.banner_sec .sec-bg {    
    overflow: hidden;
    border-radius: var(--border-radius);
}

.banner_sec .sec-bg .bg_img {
    width: 100%;
    min-height: 400px;
    aspect-ratio: 2 / 1;
    filter: brightness(0.6);
}
.banner_sec .con-title_wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
}
.banner_sec .con-title {
    font-size: var(--ft32);
    font-family: var(--ft-serif);
    font-weight: var(--medium);
    color: white;
    display: block;    
}
.shrink_title .split {
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: gap 1s ease, opacity 1s ease;
}
.shrink_title .split span {
    min-width: .5ch;
}
.shrink_title.active .split {
    gap: 0px;
    opacity: 1;
}

/* ==== intro_sec ==== */
.intro_sec .sec-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: calc(var(--con-gap) * 2);
    padding-top: var(--sec-gap);
}
.intro_con {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--con-gap) * 2);
    align-items: center;
    justify-content: center;
}
.intro_con:nth-child(2n) .con-text_box {
    order: 2;
}
.intro_con .con-text_box {
    text-align: center;
}
.intro_con .con-title {
    font-size: var(--ft32);
    font-family: var(--ft-serif);
    font-weight: var(--medium);
    margin-bottom: 40px;
}
.intro_con .con-sub_title {
    font-size: var(--ft16);
    color: var(--ft-sub);
}
.intro_con .con-visual {
    width: 100%;
    max-width: 620px;
    height: auto;
    aspect-ratio: 1 / 1.2;    
}
.intro_con .con-visual.hori {
    aspect-ratio: 1.2 / 1;
}


/* ==== gallery_sec ==== */
.gallery_sec {
    padding: var(--sec-gap) 0;
    overflow: hidden;
}
.gallery_sec .sec-title {
    margin-bottom: calc(var(--sec-gap) / 2);
}
.burial_swiper {
    overflow: visible;
}
.burial_swiper .swiper-slide {
    width: 350px;
    height: fit-content;
    min-height: 200px;
}
.swiper-controller {
    position: absolute;
    top: calc(var(--sec-gap) / 2 * -1);
    right: 0;
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    gap: 10px;
}

.swiper-pagination {
    position: relative;
    bottom: unset !important;
    top: unset !important;
    left: unset !important;
}
.swiper-pagination-progressbar {
    min-width: 140px;
    margin-right: 30px;
}
.swiper-btn {
    flex-shrink: 0;
}


/* ==== tree_sec 수목장만 ==== */
.tree_sec {
    margin-top: var(--sec-gap);
}
.tree_sec .sec-title {
    text-align: center;    
    font-weight: var(--medium);    
}
.tree_sec .sec-bg {
    position: absolute;
    bottom: 0;
    left: 0;
}
.tree_sec .bg_img {
    width: 100%;
    height: auto;
    border-radius: 0;
}
.tree_sec .inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}
.tree_sec .inner::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 30%;
    background: linear-gradient(to bottom, transparent, black);
    pointer-events: none;
    z-index: 1;
}
.tree_sec .sec-content {
    width: 100%;
    margin-top: auto;    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0
}

.tree-img {
    width: 50%;
    height: 100%;
    margin-bottom: var(--con-gap);
}
.tree-img img {
    object-fit: contain;
}

.tree-desc {    
    bottom: var(--con-gap);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: var(--container-sm); 
    margin: 0 auto;
    text-align: center;
    width: 100%;
}
 


.tree-desc .con-sub_title {
    font-size: var(--ft20);
    color: var(--gray-100);
    font-weight: 300;
}




/* 분양안내 */
.price_sec {
    padding-bottom: var(--sec-gap);
    overflow: hidden;
}
.price_sec .sec-title {
    margin-bottom: calc(var(--sec-gap) / 2);
    text-align: center;
}
.price_sec .sec-content {
    width: 100%;
}
.price_swiper {
    margin-bottom: var(--con-gap);
    overflow: visible;
}

.price_swiper .swiper-slide:last-child {
    margin-right: 0 !important;
}
.price_swiper .swiper-btn {
    position: absolute;
    top: 50%;    
}
.price_swiper .swiper-prev {
    left: -6px;
    transform: translateY(-50%);
}
.price_swiper .swiper-next {
    right: -6px;
    transform: translateY(-50%);
}
.price_sec .con-visual {
    width: 100%;
    /* max-width: 420px; */
    height: auto;
    aspect-ratio: 1 / 1.2;
    background: var(--img);
    margin-bottom: 40px;
}
.price_sec .con-title {
    font-size: var(--ft24);
    font-weight: var(--medium);
    color: var(--ft-main);
    margin-bottom: 20px;
}
.price_sec .con-desc li {
    font-size: var(--ft16);
    margin-bottom: 10px;
    color: var(--ft-sub);
}
.price_sec .con-desc li::before {
    content: '-';
    display: inline-block;
    font-size: inherit;
    margin-right: 4px;
}
.price_sec .con-desc li:last-child {
    margin-bottom: 0;
}
.price_sec .con-price {
    font-size: var(--ft18);
    font-weight: var(--medium);
    color: var(--ft-main);
    margin-top: 34px;
}
/* .price_sec .con-note {
    border-top: 1px solid var(--primary-200);
    font-size: var(--ft16);
    color: var(--ft-sub);
    padding-top: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price_sec .con-note p {
    flex-shrink: 0;
} */
.con-note {
    border-top: 1px solid var(--primary-200);
    font-size: var(--ft16);
    color: var(--ft-sub);
    padding-top: 40px;    
}
.note-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.note-icon {
    width: 24px;
    display: block;
    margin-bottom: 10px;
}
.con-note li {
    color: var(--ft-sub);
}
.con-note li::before {
    content: '-';
    display: inline;
    margin-right: 4px;

}
.con-note p {
    flex-shrink: 0;
    font-size: 14px;
    display: inline;
}

.call-btn {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 999px;
    transition: all .3s ease;
  }
  
  .call-btn:hover {
    background-color: #725646; /* hover시 조금 밝게 */
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow);
  }
  .call-btn .icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
}
  .call-btn .btn-text {
    font-size: var(--ft14);
  }


  /* price_visual */
.price_visual-item {
    width: 66.666%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: var(--con-gap);
}
.price_visual-item:last-child {
    margin-bottom: 0;
}
.price_visual-item .con-visual {
    aspect-ratio: 1.2 / 1;
    margin-bottom: 0;
}
.price_visual.emhall {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* price-table */
.price_table-area {
    margin-top: calc(var(--sec-gap) / 2);
}
.table_wrap {
    overflow-x: auto;
    margin-bottom: 40px;
    display: flex;
    gap: 40px;
}
.table_wrap .table {
    flex: 1 0 0;
}
.price-table {
    border-top: 1px solid var(--primary-600);
    /* border-bottom: 1px solid var(--primary-300); */
}
.price-table th,
.price-table td {
    padding: 20px;
}

.price-table th {
    border-bottom: 1px solid var(--primary-300);
    font-size: var(--ft16);
    color: var(--gray-500);
    font-weight: 300;
}
.price-table th small {
    color: var(--primary-500);
}
.price-table tr:first-child th {
    font-size: var(--ft18);
    color: var(--gray-600);
    font-weight: 400;
}
.price-table td {
    font-size: var(--ft18);
    color: var(--gray-500);
    font-weight: 400;
    text-align: center;
    border-bottom: 1px solid var(--primary-200);
}
.price-table td.title {
    color: var(--primary-500);
}
.price-table tr.divider td {
    border-top: 1px solid var(--primary-300);
}
.price-table td span {
    color: var(--gray-400);
}
.table-unit {
    text-align: right;
    font-size: var(--ft14);
    color: var(--ft-sub);
    margin-bottom: 20px;
}
.table-note li {
    font-size: var(--ft16);
    color: var(--ft-sub);
    list-style: inside;
}
.price-table .highlight td {
  background-color: var(--primary-100);
  color: var(--parimary-500);
}
.price-table td:first-child {
    border-right: 1px solid var(--primary-300);
}






@media screen and (max-width: 1600px) {
    .tree-desc_area {
        bottom: 40px;
        z-index: 2;
    }
}
@media screen and (max-width: 1200px) {
    .merit-item_header {
        height: 80px;
    }
    .tree-desc_box li {
        padding: 24px;
    }
}

@media screen and (max-width: 960px) {
    .merit_sec .inner {
        grid-template-columns: 1fr;
    }
    .merit_sec {
        --top: 120px;
    }
    .merit_sec .sec-title {
        padding-bottom: 0;
    }
    .merit_sec .sec-header {
        position: sticky;
        top: calc(var(--top) / 2);
    }

    .banner_sec .con-title .split {
        display: flex;
        flex-wrap: wrap;
        opacity: 1;
        gap: 0;
        opacity: 1;
        transition: unset;
    }
    .intro_con .con-title {
        font-size: var(--ft28);
    }
    .intro_con {
        gap: var(--con-gap);
    }

    /* tree_sec */
    .tree_sec .sec-bg {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
    }
    .tree_sec .bg_img {
        height: 100%;
    }
    .tree_sec .inner {
        position: relative;
        overflow: hidden;
    }
    .tree-desc .con-sub_title {
        font-size: var(--ft16);
    }
    
    
    .gallery_sec .sec-title {
        margin-bottom: calc((var(--sec-gap) / 2) + 20px);
    }
    .swiper-controller {
        top: -20px;
        left: 0;
    }

    /* price */
    .table_wrap {
        gap: 20px;
    }
}
@media screen and (max-width: 600px) {
    .merit-item_header {
        grid-template-columns: 40px 1fr;
    }
    .merit-item_desc {
        padding-left: 60px;
    }
    .main-sub_title {
        font-size: var(--ft16);
    }
    .intro_con .con-title {
        font-size: var(--ft24);
    }
    .tree_sec .inner {
        overflow: visible;
    }
    .tree-desc_area {
        bottom: 0;
        transform: translate(-50%, 99%);
    }
    .intro_con .con-visual {
        width: 80%;
        margin: 0 auto;
    }
 
    .tree-desc_box {
        background: var(--gray-600);
        backdrop-filter: unset;
        border: 0;
    }
    

    .tree_sec + .gallery_sec {
        margin-top: var(--sec-gap);
    }


    /* 분양안내 */

      .page_content-area {
        overflow: hidden;
    }
    .page_con-title {
        margin-top: 40px;
    }
    .price_visual-item {
        width: 100%;
        gap: 20px;
    }
    .con-visual {
        margin-bottom: 30px;
    }
    .con-title {
        margin-bottom: 14px;
    }
    .con-desc li {
        margin-bottom: 6px;
    }
    .con-price {
        margin-top: 20px;
    }

    /* price */
    .table_wrap {
        flex-direction: column;
    }
    .table_wrap .table {
        flex: 1;
    }
    .price-table th, .price-table td {
        padding: 12px
    }

}
@media screen and (max-width: 500px){
    .intro_con {
        grid-template-columns: 1fr;
    }
    .intro_con:nth-child(2n) .con-text_box {
        order: 0;
    }
    .intro_con .con-title {
        margin-bottom: 20px;
    }
    .tree_sec .sec-header {
        margin-bottom: var(--con-gap);
    }
    .tree-img {
        margin-bottom: 30px;
    }
    .tree-desc {
        bottom: 0;
        transform: translate(-50%, 100%);
        padding-top: var(--con-gap);
    }
    .tree-desc .con-sub_title {
        color: var(--ft-main);
    }
    .tree_sec .inner::after {
        background: transparent;
    }
}