@charset "utf-8";

html, body {
    /* 폰트 및 기본 설정은 유지 */
    font: 20px/1.5 'Paperozi', Verdana, AppleGothic, Tahoma, sans-serif;
    color: #000;
    background: #fff;
    margin: 0;
    
    /* 🔥 수정 부분: 높이와 포지션 해제 */
    width: 100%;
    height: auto;      /* 100% 대신 auto로 변경 */
    min-height: 100vh; /* 최소 높이는 화면 꽉 차게 */
    position: static;  /* relative를 static으로 변경 (기본값) */
    
    /* 가로 스크롤 방지 */
    overflow-x: hidden;
}

body.main {
    display: inherit;
    flex-direction: column;
}
body.modal-open {
    overflow: hidden !important;
    touch-action: none; /* 모바일에서 터치 스크롤 방지 */
}

.body-hidden {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    touch-action: none; /* [보완] 모바일 터치 드래그 스크롤까지 완벽 방지 */
}

.main-wrapper {
    position: relative;
    width: 100%;
}

.main header {
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    border: 0;
    background-color: transparent;
}
.main header h1 {
    width: 165px;
    height: 100px;
    font-size: 0;
    background: url('../images/common/h1_logo_white.svg') no-repeat center;
    background-size: contain;
}
.main header.scrolled {
    background-color: #ffffff;
    top: 0;
    height: 100px;
    box-shadow: 0px 0px 15px 1px rgba(0, 0, 0, 0.15);
}
.main header.scrolled h1 {
    background-image: url('../images/common/h1_logo.svg');
    width: 130px;
}

.main header .header-product-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: 700;
    
    /* 처음에는 부드럽게 숨김 처리 */
    opacity: 0;
    visibility: hidden;
    /* transition: opacity 0.3s ease, visibility 0.3s ease, color 0.3s ease; */
    
    /* 왼쪽 로고(h1) 바로 옆에 밀착시키고 GNB만 우측 끝으로 밀어내기 위한 마진 설정 */
    margin-right: auto; 
}

/* 2. 스크롤되어 헤더에 .scrolled 클래스가 붙었을 때 변하는 스타일 */
.main header.scrolled .header-product-name {
    opacity: 1;
    visibility: visible;
}

/* 3. [보완] 스크롤 시 h1의 정렬 상태가 무너지지 않도록 중심축 정렬 보완 */
.main header.scrolled h1 {
    display: flex;
    align-items: center;
}

.main header h1 a {
    display: inline-block;
    width: 100%;
    height: 100%;
}
.main header .gnb {
    display: flex;
    justify-content: right;
    gap: 60px;
}
.main header .gnb .gnbMenu {
    display: flex;
    justify-content: left;
    gap: 40px;
}
.main header .gnb a {
    line-height: 100px;
    color: #ffffff;
    font-size: 1.1rem;
    position: relative;
    font-weight: 500;
    padding: 0;
}
.main header .gnb .gnbMenu a:hover {
    color: #ff7f2c;
}
.main header .gnb .gnbMenu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff7f2c;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.main header .gnb a:hover::after {
    transform: scaleX(1);
}
.main header .gnb .membership {
    display: flex;
    justify-content: left;
    gap: 40px;
}
.main header .gnb .membership a {
    display: inline-block;
    font-size: 0;
    width: 24px;
    height: 24px;
    margin: 38px 0;
    background-color: #ffffff;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.main header .gnb .membership a:hover {
    background-color: #ff7f2c;
}
.main header .gnb .membership a.search {
    -webkit-mask-image: url('../images/btn/btn_search.svg');
    mask-image: url('../images/btn/btn_search.svg');
}
.main header .gnb .membership a.login {
    -webkit-mask-image: url('../images/btn/btn_login.svg');
    mask-image: url('../images/btn/btn_login.svg');
}
.main header .gnb .membership a.member {
    -webkit-mask-image: url('../images/btn/btn_mypage.svg');
    mask-image: url('../images/btn/btn_mypage.svg');
}

/* 히어로 영역 */
.hero {
    width: 100%;
    height: 100vh;
    position: fixed; /* sticky 대신 fixed */
    top: 0;
    left: 0;
    z-index: 1;
}

/* Swiper */
.heroSwiper,
.swiper-wrapper,
.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

/* 텍스트 */
.hero-text {
    position: absolute;
    left: 80px;
    bottom: 200px;
    color: #fff;
    z-index: 10;
}
/* .hero-text .disc {
    font-size: 1.9rem;
    font-weight: 300;
} */
.hero-text .disc img {
    width: 250px;
}
.hero-text .title {
    font-size: 3.4rem;
    margin: 0 0 20px 0;
    font-weight: 500;
}
.hero-text .link a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 75px;
    /* border: 1px solid #fff; */
    color: #fff;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.hero-text .link a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
    border-radius: 100px;
}
.hero-text .link a:hover::after {
    background-color: #ff7f2c;
}

.scrolling-content {
    position: relative;
    z-index: 10;
    background: transparent;
    /* 중요: hero가 fixed라 공중에 떠 있으므로, 
       첫 화면에서는 안 보이다가 올라오게 하려면 hero 높이만큼 밀어줘야 합니다. */
    margin-top: calc(100vh - 150px);
}

/* 네비게이션이 슬라이더 바로 하단에 붙어있게 하려면 */
.hero-nav {
    background: #111; /* 네비게이션 배경색 */
    /* 기존 absolute 속성들은 모두 제거하거나 초기화하세요 */
}

/* 네비 */
.hero-nav {
    display: flex;
    gap: 40px;
    color: #aaa;
    padding: 60px 80px; /* margin-top 대신 여백으로 조정 */
    background: transparent;
}

.hero-nav div {
    cursor: pointer;
    /* font-size: 14px; */
    transition: 0.3s;
    width: 50%; /* 추후 20% 변경 */
    position: relative;
}

/* 전체 라인 (연한 배경) */
.hero-nav div::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.3);
}

/* JS로 제어하는 바 */
.hero-nav .progress-bar {
    position: absolute;
    top: -12px;
    left: 0;
    height: 5px;
    width: 0%;
    background: #fff;
    opacity: 0.4;
}

/* 활성 */
.hero-nav div.active .progress-bar {
    opacity: 1;
}

.hero-nav .active {
    color: #fff;
    font-weight: 500;
}

/* 어두운 오버레이 (가독성용) */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    pointer-events: none;
}

/* Footer */
.main footer {
    position: relative;
    /* background-color: rgba(51, 51, 51, 0.9); */
    background-color: rgba(0, 0, 0, 0.8);
    padding: 50px 80px 70px 80px;
    color: #8d8d8d;
}
.main footer .footerTop {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #515151;
    color: #ffffff;
    font-size: 0.8rem;
    padding-bottom: 20px;
}
.main footer .footerTop .CName {
    font-size: 1rem;
}
.main footer .footerTop .CLink {
    position: relative;
}
.main footer .footerTop .CLink ul {
    display: inline-block;
}
.main footer .footerTop .CLink ul li {
    float: left;
    padding: 0 0 0 30px;
}
.main footer .footerTop .CLink ul li a {
    position: relative;
    padding-bottom: 5px;
    color: #ffffff;
}
.main footer .footerTop .CLink a:hover {
    color: #ff7f2c;
}
.main footer .footerTop .CLink a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff7f2c;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
.main footer .footerTop .CLink a:hover::after {
    transform: scaleX(1);
}
.main footer .footerInfo {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    padding-top: 20px;
}

.main footer .footerCompanyInfo {
    display: flex;
    justify-content: left;
    gap: 40px;
    padding-bottom: 5px;
}
.main footer .footerCompanyInfo div {
    display: flex;
    gap: 10px;
}
.main footer .footerCompanyInfo div span {
    color: #c1c1c1;
}
.main footer .footerCompanyInfo div a {
    background-color: #656565;
    color: #acacac;
    font-size: 0.6rem;
    line-height: 1rem;
    padding: 0 10px;
    border-radius: 100px;
    height: 20px;
}
.main footer .footerCompanyInfo div a:hover {
    background-color:#ff7f2c;
    color: #fff;
}
.main footer .footerCompanyInfoCopy {
    font-size: 0.7rem;
    padding-top: 20px;
}
.main footer .footerCompanySNS {
    display: flex;
    justify-content: right;
    gap: 20px;
}
.main footer .footerCompanySNS a.sns {
    width: 34px;
    height: 34px;
    font-size: 0;
    background-color: #8d8d8d;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.main footer .footerCompanySNS a:hover.sns {
    background-color: #ff7f2c;
}
.main footer .footerCompanySNS a.youtube {
    -webkit-mask-image: url('../images/btn/btn_youtube.svg');
    mask-image: url('../images/btn/btn_youtube.svg');
}
.main footer .footerCompanySNS a.instargram {
    -webkit-mask-image: url('../images/btn/btn_instargram.svg');
    mask-image: url('../images/btn/btn_instargram.svg');
}
.main footer .footerCompanySNS a.facebook {
    -webkit-mask-image: url('../images/btn/btn_facebook.svg');
    mask-image: url('../images/btn/btn_facebook.svg');
}
.main footer .footerCompanySNS a.naverblog {
    -webkit-mask-image: url('../images/btn/btn_naverblog.svg');
    mask-image: url('../images/btn/btn_naverblog.svg');
}
.scroll-guide {
    display: none;
}

/* --- 모바일 반응형 (1024px 이하) --- */
@media (max-width: 1024px) {
    .main header {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
    }
    .main header h1 {
        width: 100px;
        height: 60px;
    }    
    /* GNB 레이어: 버블처럼 커지기 전 초기 상태 */
    .main header .gnb {
        position: fixed;
        top: 0;
        right: 0; /* 오른쪽 위에서 시작 */
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.9);
        flex-direction: column; /* 세로 정렬 */
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 100;
        
        /* 버블 효과 핵심: 원형 마스크 */
        clip-path: circle(0% at 94% 4%); /* 오른쪽 위 메뉴버튼 위치에서 시작 */
        transition: clip-path 0.3s ease-in-out;
        pointer-events: none; /* 닫혀있을 땐 클릭 안되게 */
    }

    /* 메뉴가 열렸을 때 클래스 */
    .main header .gnb.active {
        clip-path: circle(150% at 90% 5%); /* 화면 전체를 덮을 만큼 원이 커짐 */
        pointer-events: auto;
    }

    .main header .gnb .gnbMenu {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .main header .gnb .gnbMenu a::after {
        bottom: 0;
    }
    
    .main header .gnb a {
        font-size: 1.4rem; /* 모바일에서는 크게 */
        line-height: 1.4;
        font-weight: 400;
    }

    .main header .gnb .membership {
        justify-content: center;
        margin-top: 20px;
    }

    .main .hero-text {
        position: absolute;
        left: 0px;
        bottom: 100px;
        padding: 0 20px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    /* .main .hero-text .disc {
        font-size: 1.05rem;
        padding-bottom: 10px;
    } */
    .hero-text .disc {
        padding-bottom: 10px;
    }
    .hero-text .disc img {
        width: 120px;
    }
    .main .hero-text .title {
        font-size: 1.4rem;
        line-height: 1.7rem;
        margin: 0 0 10px 0;
    }
    .main .hero-text .link a {
        font-size: 0.8rem;
        padding: 8px 50px;
    }
    .main .hero-nav {
        gap: 20px;
        padding:50px 20px;
    }
    .main .hero-nav div {
        font-size: 0;
    }
    .main .scrolling-content {
        margin-top: calc(100vh - 100px);
    }
    .main footer {
        padding: 30px 20px 40px 20px;
    }
    .main footer .footerTop {
        flex-direction: column;
        padding-bottom: 10px;
    }
    .main footer .footerTop .CLink {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
        display: block;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 10px 0;
        position: relative;
        margin-top: 10px;
    }
    .main footer .footerTop .CLink::-webkit-scrollbar {
        display: none;
    }
    .main footer .footerTop .CLink ul {
        display: inline-flex; /* 자식 li들을 가로로 나열 */
        gap: 30px; /* 링크 사이의 간격 */
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .main footer .footerTop .CLink ul li {
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 0;
        float: inherit;
        padding: 0;
    }
    .main footer .footerCompany {
        width: 100%;
    }
    .main footer .footerCompanyInfo {
        flex-direction: column;
        gap: 0px;
        font-size: 0.6rem;
        padding-bottom: 0;
    }
    .main footer .footerCompanyInfo div {
        display: flex;
        gap: 10px;
    }
    .main footer .footerCompanyInfo div span {
        color: #c1c1c1;
    }
    .main footer .footerCompanyInfo div a {
        background-color: #656565;
        color: #acacac;
        font-size: 0.6rem;
        line-height: 1rem;
        padding: 0 10px;
        border-radius: 100px;
    }
    .main footer .footerCompanyInfoCopy {
        font-size: 0.6rem;
        padding-top: 20px;
        text-align: center;
    }
    .main footer .footerCompanySNS {
        position: absolute;
        top: 30px;
        right: 20px;
        gap: 15px;
    }
    .main footer .footerCompanySNS a.sns {
        width: 28px;
        height: 28px;
        font-size: 0;
        background-color: #8d8d8d;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
    }
    /* --- 스크롤 가이드 아이콘 (추가) --- */
    .main .scroll-guide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        color: #fff;
        pointer-events: none;

        /* 변경: 초기 상태는 투명하게 */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s;
    }
    .main .scroll-guide.active {
        opacity: 1;
        visibility: visible;
    }

    .main .scroll-guide.hide {
        opacity: 0;
        visibility: hidden;
    }

    .main .arrow-group {
        animation: slideMotion 1.5s infinite ease-in-out;
    }

    @keyframes slideMotion {
        0% { transform: translateX(10px); }
        50% { transform: translateX(-10px); }
        100% { transform: translateX(10px); }
    }
}
@media (pointer: fine) {
    .main footer .footerTop .CLink {
        scrollbar-width: thin;
        padding-bottom: 10px; /* 스크롤바 공간 확보 */
    }
    .main footer .footerTop .CLink::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    .main footer .footerTop .CLink::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }
}