@charset "utf-8";

/* =========================
공통
========================= */
html {
    min-width: 320px;
    font-size: 10px;
}

body {
    min-width: 320px;
}
#page-main .section-inner {
    width: min(168rem, calc(100% - clamp(4.8rem, 6.25vw, 12rem)));
    margin: 0 auto;
    padding: clamp(8rem, 8.3333vw, 16rem) 0 0;
}
#page-main .section-title {
    color: #222;
    font-family: "TwaySky", sans-serif;
    font-size: clamp(3.2rem, 2.3958vw, 4.6rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
/* =========================
메인 비주얼
========================= */
#page-main .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 890;
    padding-top: clamp(6.4rem, 5vw, 9.6rem);
    background: #f5f2ee;
    box-sizing: border-box;
}

#page-main .hero::before,
#page-main .hero::after {
    content: none;
}

#page-main .hero-media-wrap {
    z-index: 0;
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

#page-main .hero-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#page-main .hero-inner {
    z-index: 1;
    position: relative;
    display: flex;
    width: min(168rem, calc(100% - clamp(4.8rem, 6.25vw, 12rem)));
    height: 100%;
    margin: 0 auto;
}

#page-main .hero-copy {
    margin-top: clamp(6rem, 9.8958vw, 19rem);
}

#page-main .hero-label {
    margin-bottom: clamp(1.8rem, 1.875vw, 3.6rem);
    color: #926539;
    font-size: clamp(1.2rem, 0.7292vw, 1.4rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.18em;
}

#page-main .hero-title {
    color: #222;
    font-family: "TwaySky", sans-serif;
    font-size: clamp(3.6rem, 2.8125vw, 5.4rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

@media (prefers-reduced-motion: no-preference) {
    #page-main .hero-media {
        opacity: 0;
        transform: scale(1.035);
        transform-origin: center center;
        animation: hero-media-in 1.6s cubic-bezier(0.22, 1, 0.36, 1)
            0.05s forwards;
        will-change: opacity, transform;
        backface-visibility: hidden;
    }
}

@keyframes hero-media-in {
    from {
        opacity: 0;
        transform: scale(1.035);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =========================
제품 소개
========================= */
#page-main .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.2rem, 1.0417vw, 2rem);
    margin-top: clamp(3rem, 2.6042vw, 5rem);
}


/* 제품 카드 공통 */
#page-main .product-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 0;
    height: clamp(50rem, 43.75vw, 84rem);
    border-radius: clamp(1.4rem, 1.0417vw, 2rem);
    box-sizing: border-box;
}
#page-main .product-swiper,
#page-main .product-wrapper,
#page-main .product-slide {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
}
#page-main .product-left > *,
#page-main .product-right > * {
    z-index: 1;
    position: relative;
}


/* 제품 카드 장식 배경 */
#page-main .product-left {
    background: linear-gradient(
        180deg,
        #f5f2ee 0%,
        #f1ece6 100%
    );
}
#page-main .product-right {
    container-name: product-right;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(1.6rem, 1.5625vw, 3rem);
    padding: clamp(3.2rem, 3.125vw, 6rem) clamp(2rem, 1.8229vw, 3.5rem) clamp(1.8rem, 1.5625vw, 3rem);
    background: #926539;
    color: #fff;
}
#page-main .product-left::before,
#page-main .product-right::before {
    content: "";
    z-index: 0;
    position: absolute;
    width: clamp(38rem, 34.8958vw, 67rem);
    height: clamp(38rem, 34.8958vw, 67rem);
    border-radius: 50%;
    background: #d8b994;
    opacity: 0.2;
    filter: blur(clamp(6rem, 5.2083vw, 10rem));
    pointer-events: none;
}
#page-main .product-left::before {
    bottom: clamp(-25rem, -13.0208vw, -14rem);
    left: clamp(-22rem, -11.4583vw, -12rem);
}
#page-main .product-right::before {
    top: clamp(-25rem, -13.0208vw, -14rem);
    right: clamp(-22rem, -11.4583vw, -12rem);
}
#page-main .product-left::after {
    content: "";
    z-index: 0;
    position: absolute;
    top: clamp(-20rem, -10.4167vw, -11rem);
    right: clamp(-16rem, -8.3333vw, -9rem);
    width: clamp(30rem, 27.0833vw, 52rem);
    height: clamp(30rem, 27.0833vw, 52rem);
    border-radius: 50%;
    background: #dde8d8;
    opacity: 0.2;
    filter: blur(clamp(6rem, 5.2083vw, 10rem));
    pointer-events: none;
}


/* 왼쪽 제품 */
#page-main .pack {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    justify-items: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding:
        clamp(3.6rem, 4.3229vw, 8.3rem)
        clamp(3rem, 4.3229vw, 8.3rem)
        clamp(8rem, 5.2083vw, 10rem);
    text-align: center;
    box-sizing: border-box;
}
#page-main .pack-img {
    display: block;
    align-self: center;
    width: min(72%, 52rem);
    max-width: 100%;
    height: clamp(36rem, 27.0833vw, 52rem);
    max-height: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}
#page-main .pack-title {
    color: #222;
    font-family: "TwaySky", sans-serif;
    font-size: clamp(2.4rem, 1.875vw, 3.6rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
#page-main .pack-text {
    margin-top: clamp(0.8rem, 0.7292vw, 1.4rem);
    color: #444;
    font-size: clamp(1.3rem, 0.8333vw, 1.6rem);
    line-height: 1.5;
}


/* 슬라이드 버튼 */
#page-main .slider-btn {
    z-index: 5;
    position: absolute;
    top: 39.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(4.2rem, 3.6458vw, 7rem);
    height: clamp(4.2rem, 3.6458vw, 7rem);
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}
#page-main .slider-btn:focus:not(:focus-visible) {
    outline: none;
}
#page-main .slider-btn:focus-visible {
    outline: 2px solid rgba(22, 88, 61, 0.6);
    outline-offset: 0.3rem;
}
#page-main .slider-prev {
    left: clamp(0.6rem, 0.5208vw, 1rem);
}
#page-main .slider-next {
    right: clamp(0.6rem, 0.5208vw, 1rem);
}
#page-main .slider-icon {
    display: block;
    width: clamp(1.3rem, 0.9375vw, 1.8rem);
    height: auto;
    object-fit: contain;
}
#page-main .slider-btn.swiper-button-disabled,
#page-main .slider-btn.swiper-button-lock {
    display: flex;
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}


/* 제품 컨트롤 */
#page-main .product-left .product-control {
    z-index: 6;
    position: absolute;
    right: 0;
    bottom: clamp(1.6rem, 1.5625vw, 3rem);
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
#page-main .product-right .product-control {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#page-main .product-count {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.2rem, 0.2083vw, 0.4rem);
    min-width: clamp(6.8rem, 4.4792vw, 8.6rem);
    height: clamp(3.2rem, 1.9792vw, 3.8rem);
    margin-right: clamp(0.8rem, 0.625vw, 1.2rem);
    padding: 0 clamp(1.4rem, 1.25vw, 2.4rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: clamp(2.8rem, 2.0833vw, 4rem);
    background: rgba(255, 255, 255, 0.14);
    color: #999;
    font-size: clamp(1.2rem, 0.7292vw, 1.4rem);
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.1);
}
#page-main .count-current,
#page-main .count-slash,
#page-main .count-total {
    display: inline-block;
}
#page-main .count-current {
    color: #926539;
    font-weight: 600;
}
#page-main .count-slash {
    color: #999;
    opacity: 0.6;
}
#page-main .product-right .count-current {
    color: #fff;
}
#page-main .product-right .count-slash,
#page-main .product-right .count-total {
    color: #ccc;
}


/* 상세보기 버튼 */
#page-main .detail-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
}
#page-main .detail-text,
#page-main .detail-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: clamp(3.8rem, 2.2917vw, 4.4rem);
    background: #16583d;
    color: #fff;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}
#page-main .detail-text {
    min-width: clamp(8.8rem, 5.625vw, 10.8rem);
    padding: 0 clamp(1.4rem, 1.0417vw, 2rem);
    border-radius: clamp(2.8rem, 2.0833vw, 4rem);
    font-size: clamp(1.3rem, 0.7813vw, 1.5rem);
    font-weight: 500;
    line-height: 1;
    box-sizing: border-box;
}
#page-main .detail-arrow {
    flex-shrink: 0;
    width: clamp(3.8rem, 2.2917vw, 4.4rem);
    border-radius: 50%;
}
#page-main .detail-arrow::before {
    content: "";
    display: block;
    width: clamp(0.6rem, 0.3646vw, 0.7rem);
    height: clamp(0.6rem, 0.3646vw, 0.7rem);
    background: currentColor;
    -webkit-mask: url("/images/main/renew/hm-arr.svg") no-repeat center / contain;
    mask: url("/images/main/renew/hm-arr.svg") no-repeat center / contain;
}
#page-main .detail-link:hover .detail-text,
#page-main .detail-link:hover .detail-arrow {
    background: #222;
}
#page-main .detail-link:hover .detail-arrow {
    transform: rotate(45deg);
}


/* 오른쪽 제품 정보 */
#page-main .product-head {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(3rem, 5.2083vw, 10rem);
}
#page-main .product-name {
    color: #f7f1e8;
    font-family: "TwaySky", sans-serif;
    font-size: clamp(2.4rem, 1.875vw, 3.6rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
#page-main .product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: clamp(1.6rem, 3vw, 6rem);
}
#page-main .product-copy {
    flex: 1;
    min-width: 0;
}
#page-main .product-kicker {
    margin: 0 0 clamp(0.8rem, 0.7813vw, 1.5rem);
    color: #fff;
    font-size: clamp(1.8rem, 1.25vw, 2.4rem);
    font-weight: 600;
    line-height: 1;
}
#page-main .product-text {
    min-height: clamp(3.8rem, 2.5vw, 4.8rem);
    color: #f7f1e8;
    font-size: clamp(1.3rem, 0.8333vw, 1.6rem);
    font-weight: 400;
    line-height: 1.5;
    word-break: keep-all;
}
#page-main .product-right .detail-text,
#page-main .product-right .detail-arrow {
    background: #fff;
    color: #222;
}
#page-main .product-right .detail-link:hover .detail-text,
#page-main .product-right .detail-link:hover .detail-arrow {
    background: #222;
    color: #fff;
}


/* 오른쪽 제품 이미지 */
#page-main .product-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: clamp(1.4rem, 1.0417vw, 2rem);
}
#page-main .product-image .product-swiper,
#page-main .product-image .product-slide {
    overflow: hidden;
    border-radius: clamp(1.4rem, 1.0417vw, 2rem);
}
#page-main .product-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#page-main .product-right .slider-btn {
    top: 50%;
    height: clamp(4.2rem, 3.6458vw, 7rem);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0.5rem 1.8rem rgba(30, 20, 10, 0.12);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
#page-main .product-right .slider-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0.8rem 2.2rem rgba(30, 20, 10, 0.17);
}
#page-main .product-right .slider-prev {
    left: clamp(0.8rem, 0.625vw, 1.2rem);
}
#page-main .product-right .slider-next {
    right: clamp(0.8rem, 0.625vw, 1.2rem);
}


/* =========================
Why Haesarang
========================= */
#page-main .why {
    padding-bottom: clamp(8rem, 8.3333vw, 16rem);
    text-align: center;
}
#page-main .why-lead {
    margin: clamp(2.8rem, 2.3958vw, 4.6rem) 0 clamp(1rem, 0.7813vw, 1.5rem);
    color: #444;
    font-size: clamp(1.8rem, 1.25vw, 2.4rem);
    font-weight: 600;
}
#page-main .why-desc {
    color: #666;
    font-size: clamp(1.3rem, 0.8333vw, 1.6rem);
    line-height: 1.5;
}
#page-main .why-list {
    display: flex;
    justify-content: center;
    gap: clamp(1.2rem, 1.0417vw, 2rem);
    margin-top: clamp(4rem, 3.8542vw, 7.4rem);
}
#page-main .why-card {
    flex: 1;
    max-width: clamp(28rem, 23.9583vw, 46rem);
    margin: 0;
}
#page-main .why-image {
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #e7ddd1;
    border-radius: clamp(1.4rem, 1.0417vw, 2rem);
}
#page-main .why-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#page-main .why-caption {
    padding-top: clamp(1.8rem, 1.5625vw, 3rem);
}
#page-main .why-label {
    margin: 0 0 clamp(0.5rem, 0.4167vw, 0.8rem);
    color: #926539;
    font-size: clamp(1.2rem, 0.7292vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.18em;
}
#page-main .why-name {
    color: #222;
    font-size: clamp(1.6rem, 1.0417vw, 2rem);
    font-weight: 600;
}


/* =========================
문의 영역
========================= */
#page-main .contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(40rem, 30.2083vw, 58rem);
}
#page-main .contact::after {
    content: "";
    z-index: 1;
    position: absolute;
    inset: 0;
    background: #fff;
    pointer-events: none;
}
#page-main .contact::before {
    content: "";
    z-index: 0;
    position: absolute;
    inset: 0;
    background: url("/images/main/renew/hm-contact.jpg") no-repeat center center / cover;
    pointer-events: none;
}
#page-main .contact .section-inner {
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(6rem, 5.7292vw, 11rem) 0 0;
    box-sizing: border-box;
}
#page-main .contact-lead {
    margin: clamp(3rem, 2.6042vw, 5rem) 0 clamp(1.2rem, 1.0417vw, 2rem);
    color: #444;
    font-size: clamp(1.8rem, 1.25vw, 2.4rem);
    font-weight: 600;
    line-height: 1.5;
}
#page-main .contact-desc {
    color: #666;
    font-size: clamp(1.3rem, 0.8333vw, 1.6rem);
    line-height: 1.5;
}
#page-main .contact .detail-link {
    margin-top: clamp(3rem, 2.8125vw, 5.4rem);
}
#page-main .contact .detail-text,
#page-main .contact .detail-arrow {
    background: #222;
    color: #fff;
}
#page-main .contact .detail-link:hover .detail-text,
#page-main .contact .detail-link:hover .detail-arrow {
    background: #16583d;
}

/* 효과 */
@media (prefers-reduced-motion: no-preference) {
    html.js #page-main .contact::after {
        transform: translate3d(0, 0, 0);
        transition:
            transform 1.25s cubic-bezier(0.76, 0, 0.24, 1);
        will-change: transform;
        backface-visibility: hidden;
    }

    html.js #page-main .contact.is-bg-show::after {
        transform: translate3d(101%, 0, 0);
    }

    html.js #page-main .reveal {
        opacity: 0;
        transform: translate3d(0, 2.8rem, 0);
        transition:
            opacity 0.8s ease var(--reveal-delay, 0ms),
            transform 0.95s cubic-bezier(0.22, 1, 0.36, 1)
                var(--reveal-delay, 0ms);
        will-change: opacity, transform;
        backface-visibility: hidden;
    }

    html.js #page-main .reveal-left {
        transform: translate3d(-2.8rem, 1.5rem, 0);
    }

    html.js #page-main .reveal-right {
        transform: translate3d(2.8rem, 1.5rem, 0);
    }

    html.js #page-main .reveal-card {
        transform: translate3d(0, 3.2rem, 0) scale(0.99);
    }

    html.js #page-main .reveal.is-show {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

/* 모션 최소화 설정 */
@media (prefers-reduced-motion: reduce) {
    #page-main .hero-media,
    #page-main .hero-copy,
    #page-main .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #page-main .contact::after {
        display: none;
    }
}



/* 오른쪽 제품 카드 내부 공간이 부족할 때만 세로 배치 */
@container product-right (max-width: 58rem) {
    #page-main .product-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    #page-main .product-copy {
        width: 100%;
    }
}

/* =========================
필요한 구조 변경만 반응형 처리
기본 크기·간격·폰트는 위의 clamp()가 담당
========================= */

/* Tablet: 태블릿 전용 히어로 이미지 비율만 변경 */
@media (max-width: 1023px) {
    #page-main .hero {
        aspect-ratio: 1536 / 1024;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* 모바일 전용 히어로 이미지 비율 */
    #page-main .hero {
        aspect-ratio: 750 / 1000;
    }

    /* 제품 카드 2열 → 1열 */
    #page-main .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* 고정형 카드 높이 해제 */
    #page-main .product-card {
        height: auto;
    }

    /* 왼쪽 카드 하단의 절대배치 컨트롤 공간 확보 */
    #page-main .pack {
        padding-bottom: 8rem;
    }

    /* 오른쪽 카드는 내부 콘텐츠 높이에 맞춤 */
    #page-main .product-right {
        min-height: 0;
    }

    /* 강제 줄바꿈 제거 */
    #page-main .product-text br,
    #page-main .why-desc br,
    #page-main .contact-desc br {
        display: none;
    }

    /* Why 카드 가로 배열 → 세로 배열 */
    #page-main .why-list {
        flex-direction: column;
        align-items: center;
    }

    #page-main .why-card {
        width: 100%;
        max-width: 36rem;
    }

    /* 모바일 이미지 중심 위치 */
    #page-main .contact::before {
        background-position: 66% center;
    }
}

/* Small Mobile */
@media (max-width: 479px) {
    /* 상세보기 컨트롤이 카드 너비를 넘지 않도록 처리 */
    #page-main .product-right .product-control {
        max-width: 100%;
    }
}