@charset "utf-8";
/* 기본설정 */
@import "default.css";
@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&display=swap');
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&family=Fredericka+the+Great&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');
a {
    color: inherit;
}
.header{
    width: 100%;
    height: 0px;
    background-color: rgba(255,255,255,0);
    position: fixed;
    z-index: 9999;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column; 
    align-items: center;
}
.header:hover {
    height: 500px;
    background-color: rgba(255,255,255,1);
}
.header .logo{
    width: 120px;
    margin: 14px auto 0;
}
.header .logo img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.header .gnb1{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 57%;
    height: 90px;
    margin: 0 auto;
    color: #464646;
}
/* 스크롤 내려갔을 때 변경 */
.header.scrolled {
    flex-direction: row;     
    align-items: center; 
    justify-content: space-between;
    padding: 0 5%;
    height: 90px;
    background-color: rgba(255,255,255,1);
}
.header.scrolled .logo {
    margin: 5px 0 0 0;    
}
.header.scrolled:hover {
    height: 400px;
    align-items: flex-start; 
}
.header .gnb1::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #fff;
    bottom: 0;
    left: 0;
}
.header .gnb1::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background-color: #464646;
    bottom: 0;
    left: 0;
    transition: 0.7s width ease-in-out;
}
.header:hover .gnb1::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #464646;
    bottom: 0;
    left: 0;
}
.header .gnb_Title{
    position: relative;
    height: 100%;
    width: 20%;
    text-align: center;
    line-height: 90px; 
    transition: all 0.2s;
    color: #fff;
    font-family: "nelp", "gowun02";
    letter-spacing: 1.8px;
}
.header .gnb_Title > span{
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: inline-block;
    font-weight: bold;
}
.header .gnb_Title ul{
    /* display: none;  */
    height: auto;
    display: flex;
    flex-wrap: wrap;
}
.header .gnb2 li{
    width: 100%;
    height: 45px;
    line-height: 45px;
    text-align: center;
    /* background-color: rgba(0,0,0,0.65); */
    padding: 3% 0;
    letter-spacing: 0px;
    font-family: 'gowun02', 'serif';
}
.header .gnb2.room li {
    display: inline-block;
    width: 50%;
}

.header .gnb2 li:first-child::before{
    display: none;
}
.header .gnb2 li a{
    position: relative;
    text-decoration: none;
    display: inline-block;
    width: max-content;
    height: 100%;
}
.header .gnb2 li a:hover{
    /* color: #FFBF94; */
}
.header .gnb2 li a::before { /*하위메뉴 마우스오버 밑줄*/
    position: absolute;
    content: '';
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    width: 0;
    height: 1px;
    background-color: #464646;
    transition: width 0.5s, left 0.5s; 
}
.header .gnb2 li:hover a::before {
    width: 100%; 
}


.header_wrap_m{
    display: none;
}

/* 헤더모바일 시작 */
.header_wrap_m{
background-color: rgba(255,255,255,1);
width: 100%;
height: 50px;

}
.header_m{
    width: 100%;
    height: 100%;
    position: relative;
}
.img_invert {
    filter: invert(0.6);
}
.nav{
    position: absolute;
    right: 4%;
    top: 30%;
    cursor: pointer;
}
.nav ul {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav .navbar {
    position: relative;
    width: 29px;
    height: 25px;
}
.nav .navbar span{
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #6D5D52;
    transition: all 0.3s ease-in-out;
}
.nav .navbar.active span { transition: all 0.6s ease-in-out;}
.nav .navbar .bar2 {
    top: 9px;
    opacity: 1;
}
.nav .navbar .bar3 {
    top: 18px;
}
/* 활성화 상태(X 모양) */
.nav .navbar.active .bar1 {
    transform: translateY(9px) rotate(45deg);
}

.nav .navbar.active .bar2 {
    opacity: 0; /* 가운데 줄 사라짐 */
}

.nav .navbar.active .bar3 {
    transform: translateY(-9px) rotate(-45deg);
}

.gnb_m{
    /* display: none; */
    width: 100%;
    background-color: rgba(255,255,255,1);
    height: 100%;
    position: fixed;
    right: 0;
    top: 50px;
    z-index: 10101;
    padding: 10% 5% 5% 10%;
    overflow-y: auto;
    clip-path: circle(0% at 90% 0%);
    -webkit-clip-path: circle(0% at 90% 0%);
    transition: clip-path 0.3s ease-in-out, -webkit-clip-path 0.3s ease-in-out;
}
.gnb_m.active{
    /* display: block; */
    clip-path: circle(150% at 90% 0%);
    -webkit-clip-path: circle(150% at 90% 0%);
    transition: clip-path 0.6s ease-in-out, -webkit-clip-path 0.6s ease-in-out;
}
.gnb_m .close{
    cursor: pointer;
    position: absolute;
    right: 5%; top: 1%;
}
.gnb1_m{
    width: 100%;
}
.gnb_Title_m{
    cursor: pointer;
    font-family:"nelp";
    font-size: 30px;
    line-height: 1.5em;
    margin-bottom: 12%;
    letter-spacing: 3px;
    color: #6D5D52;
    font-weight: 600;
    /* transition:all 0.7s ease-out; */
}
.gnb_Title_m i {
    display: inline-block;
    margin-left: 15px;
    font-size: 22px;
    font-style: normal;
    transform: rotate(90deg);
}
.gnb_Title_m .gnb2_m li a{
    font-family: "gowun02";
    font-size: 16px;
    letter-spacing: 0.2px;
    display: inline-block;
}
.gnb_Title_m .gnb2_m li a:hover{
    color: #FFBF94;
}
.gnb_Title_m .gnb2_m li{
    /* border-bottom: 1px solid #707070; */
}
.gnb_Title_m .gnb2_m li:last-child{
    border: none;
}
.gnb2_m {
    max-height: 0;
    padding: 10px 0 0 5px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out; /* 트랜지션 효과 적용 */
    display: block; /* 기본적으로 보이도록 설정 */
}
.gnb2_m.room.show {
    display: flex;
    flex-wrap: wrap;
}
.gnb2_m.room li {
    width: 33.333333%;
}
.gnb_Title_m.active i {
    transform: rotate(-90deg);
}
.gnb_Title_m.active .gnb2_m {
    max-height: 300px; /* 충분한 높이로 조절 (요구 사항에 맞게 조절) */
}
/* .gnb_m_wrap .gnb_Title_m:first-of-type.active {
    background-color: #CF9E6C;
}
.gnb_m_wrap .gnb_Title_m:nth-of-type(2).active {
    background-color: #B97A7A;
}
.gnb_m_wrap .gnb_Title_m:nth-of-type(3).active {
    background-color: #CBB767;
}
.gnb_m_wrap .gnb_Title_m:nth-of-type(4).active {
    background-color: #699173;
}
.gnb_m_wrap .gnb_Title_m:nth-of-type(5).active {
    background-color: #7E7463;
} 
.gnb_Title_m.active {
    color: #fff;
}*/

.show{
    display: block;
    transition:all 0.5s ease-in;
}
.hide{
    display: none;
    transition:all 0.5s ease-in;
}
@media(max-width:1200px){
    .header .gnb1{
        width: 60%;
    }
    .header .logo{
        left: 5%;
    }
}
@media(max-width:991px){

    .header_wrap{
        display: none;
    }
    .header_wrap_m{
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 50px;
        z-index: 10;
    }
    .header_m .logo_m{
        display: inline-block;
        position: absolute;
        top: 13%;
        left: 3%;
    }
    .logo_m img{
        width: 60px;
    }
}
@media(max-width:500px){
    .header_m .logo_m img{
        width: 60px;
    }
    .header_m .logo_m{
        top: 10%;
    }
}

@media(max-width:350px){
    .gnb_Title_m{
        font-size: 22px;
    }
}