/* 헤더 */
header{
    width: 100%;
    height: 60px;
    background-color: #fff;
    filter: drop-shadow(0px 1px 4px #81808024);
    position: fixed;
    transition: all 0.3s ease 0s, transform 0.3s ease 0s;
    z-index: 10000;
}
.heroList{
    margin-top: 60px;
}

/* 스크롤 시 헤더 스타일 */
header.scrolled{
    background-color: #ffffff37;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* mob버전 헤더 안보이게 */
.mobHeader{
    display: none;
}
.gnbBack{
    display: none;
}

/* pc버전 헤더 */
.pcHeader{
    width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 7px;
    transition: all 0.3s ease 0s;
}

/* 로고 */
.logo{
    width: 136px;
    margin-top: 0.5rem;
    transition: all 0.3s ease 0s;
}

/* 메뉴 */
.pcGnb{
    display: flex;
    height: 50px;
    overflow: hidden;    
    transition: all 0.4s linear 0s;
}

.pcGnb a{
    width: 110px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease 0s;
}
.pcGnb ul{
    padding-top: 1rem;
}
.pcGnb>li>a{
    font-size: var(--button);

    font-weight: 700;
}
.pcGnb ul a{
    font-size: 0.7rem;
    height: 30px;
    /* font-weight: 700; */
}
.pcGnb li:hover>a{
    color: var(--main-color);
    font-weight: 700;
}
.pcHeader::after{
    content: "";
    width: 100%;
    height: 0px;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1;
    transition: all 0.5s ease 0s;
}
.pcHeader.on::after{
    height: 180px;
}

.pcHeader.on .pcGnb{
    height:  220px;
    z-index: 2;
}

/* 로그인 마이페이지 등 */

.pcHeader .gnb2{
    display: flex;
    gap: 0.5rem;
    padding-top: 10px;
    font-size: 0.8rem;
    align-items: center;
    transition: all 0.3s ease 0s;
}

/* 검색창 */
.searchPc{
    width: 100%;
    background-color: #fff;
    padding-bottom: 4rem;
    position: fixed;
    right: 0;
    top: 0;
    filter: drop-shadow(0px 1px 4px #81808024);
    z-index: 9000;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.8s ease 0s, visibility 0s 0.8s;
}
.searchPc.on{
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.8s ease 0s, visibility 0s;
}
.searchPc .seapcWrap{
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    padding-top: 8rem;
    transform: translateY(-20px);
    transition: transform 0.8s ease 0s;
}
.searchPc.on .seapcWrap{
    transform: translateY(0);
}
.searchPc .searchPcBar{
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.searchPc .searchPcBar img[alt="지우기 버튼"]{
    cursor: pointer;
    flex-shrink: 0;
    width: 24px;
    height: 1.2rem;
    min-width: 24px;
    min-height: 1.2rem;
}
.searchPc .searchPcBar a[href="#"]{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}
.searchPc .searBarInput{
    display: flex;
    border: 1px solid #d9d9d9;
    gap: var(--space-small);
    padding: 0.7rem 0.9rem;
    border-radius: 40px;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 40px);
    max-width: 880px;
    margin: 0 auto;
}
.searchPc #search_bar{
    width: 100%;
    min-width: 0;
    border: none;
}

.searchPc .searchPcBar{
    margin-bottom: 3rem;
}
.searchPc .popSearWrap p{
    font-size: var(--button);
    margin-bottom: 1rem;
    font-weight: 700;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
} 
.searchPc .popSearWrap div{
    display: flex;
    gap: 4rem;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.searchPc .popSear1{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: var(--button);
}

@media (max-width:768px){
    /* pc버전 헤더 */
    .pcHeader{
        display: none;
    }
    header{
        height: 50px; 
    }
    .heroList{
        margin-top: 50px;
    }
    /* mob버전 헤더 */
    .mobHeader{
        display: block;
    }
    .mobHeader>div:nth-of-type(1){
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 0 10px;
    }
    .mobHeader h1 img{
        width: 120px;
    }
    .gnb_open{
        padding: 0.3rem;
        cursor: pointer;
        transition: all 0.3s ease 0s;
    }
    
    /* 메뉴가 열렸을 때 gnb_open 버튼 스타일 */
    .gnb_open.on{
        transform: rotate(180deg);
    }

    .gnbBack{
        width: 70%;
        height: 700px;
        position: fixed;
        left: -100%;
        top: 50px;
        padding: 14px;
        background-color: #fff;
        display: block;
        transition: all 1s ease 0s;
        z-index: 1000;
    }
    .gnbBack div:nth-of-type(1){
        display: flex;
        justify-content: space-between;
        padding-bottom: 1rem;
    }
    .gnbBack .gnb2{
        display: flex;
        gap: 1rem;
    }
    .gnbBack .gnb2 a{
        white-space: nowrap;
    }
    .gnbBack .gnb2 li:last-child select{
        width: 100%;
    }
    .modal{
        position: fixed;
        left: -100%;
        top: 50px;
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0.5;
        z-index: 1000;
    }
    .gnbBack.on,
    .modal.on{
        left: 0;
    }

    /* 스크롤 시 헤더가 올라갔을 때 메뉴창도 함께 올라가도록 */
    header.scrolled .gnbBack,
    header.scrolled .modal {
        top: 0;
    }

    /* 모바일 메뉴 */
    .gnbMo{
        display: flex;
        flex-direction: column;
        width: 100%;
        position: relative;
    }

    /* 메뉴 타이틀 */
    .gnbMo>li{
        display: flex;
        align-items: start;
    }
    .mo1deps{
        font-weight: bold;
        font-size: var(--heading3);
        padding: var( --space-x-small);
        /* min-width: 120px; */
        z-index: 2;
        background-color: #fff;
        gap: 1rem;
    }

    .mo1deps a{
        display: flex;
        gap: 0.5rem;
    }
    .mo1deps a.on{
        color: var(--main-color);
    }
    .gnbMo li:hover>a{
        color: var(--main-color);
    }
    /* 메뉴 타이틀>서브타이틀 */
    .gnbMo>li>ul{
        position: absolute;
        left: 0;
        top: 10px;
        opacity: 0;
        min-width: 140px;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 10px;
        /* transition: all 0.5s ease 0s; */
        pointer-events: none;
    }
    .gnbMo>li.on>ul{
        position: absolute;
        left: 50%;
        top: 10px;
        opacity: 1;
        pointer-events: auto;
    }

    /* 검색창 */
    .searchPc{
        width: 100%;
        background-color: #fff;
        padding-bottom: 4rem;
        position: fixed;
        right: 0;
        top: 0;
        filter: drop-shadow(0px 1px 4px #81808024);
        z-index: 9000;
        visibility: hidden;
        transform: translateY(-100%);
        transition: transform 0.8s ease 0s, visibility 0s 0.8s;
    }
    .searchPc.on{
        visibility: visible;
        transform: translateY(0);
        transition: transform 0.8s ease 0s, visibility 0s;
    }
    .searchPc .seapcWrap{
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }
    .searchPc .searchPcBar{
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    .searchPc .searchPcBar img[alt="지우기 버튼"]{
        cursor: pointer;
        width: 20px;
        height: 1.2rem;
        flex-shrink: 0;
        min-width: 20px;
        min-height: 1.2rem;
    }
    .searchPc .searchPcBar a[href="#"]{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
    }
    .searchPc .searBarInput{
        padding: 0.5rem 0.7rem;
        max-width: calc(100% - 30px); /* 작은 화면에서 지우기 버튼 공간 조정 */
        max-width: 880px;
        margin: 0 auto;
    }
    .searchPc #search_bar{
        width: 100%;
        min-width: 0;
        border: none;
    }

    .searchPc .searchPcBar{
        margin-bottom: 3rem;
    }
    .searchPc .popSearWrap p{
        font-size: var(--button);
        margin-bottom: 1rem;
        font-weight: 700;
    } 
    .searchPc .popSearWrap div{
        display: flex;
        gap: 4rem;
    }
    .searchPc .popSear1{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        font-size: var(--button);
    }

    /* 모바일에서는 스크롤 시에도 높이 고정 */
    header.scrolled{
        height: 50px; /* 모바일 기본 높이 유지 */
    }
}

/* 280px 정도의 매우 작은 화면용 */
@media (max-width: 320px) {
    .searchPc .seapcWrap{
        padding: 0.5rem;
        padding-top: 6rem;
    }
    .searchPc .searchPcBar{
        gap: 0.5rem;
    }
    .searchPc .searchPcBar img[alt="지우기 버튼"]{
        cursor: pointer;
        width: 20px;
        height: 1.2rem;
        flex-shrink: 0;
        min-width: 20px;
        min-height: 1.2rem;
    }
    .searchPc .searchPcBar a[href="#"]{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
    }
    .searchPc .searBarInput{
        padding: 0.5rem 0.7rem;
        max-width: calc(100% - 30px); /* 작은 화면에서 지우기 버튼 공간 조정 */
    }
    .searchPc #search_bar{
        font-size: 14px;
    }
}

.searchPc .searchPcBar img[alt="지우기 버튼"]{
    cursor: pointer;
    flex-shrink: 0;
    width: 24px;
    height: 1.2rem;
    min-width: 24px;
    min-height: 1.2rem;
}
.searchPc .searBarInput a[href="#"]{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

