@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; }

/* ─── 기존 PC 상단 헤더 ─── */
.header {
    width: 100%; height: 90px;
    background-color: rgba(255,255,255,0.5);
    position: fixed; z-index: 9999;
    transition: all 0.4s ease-in-out;
    display: flex; justify-content: space-between;
}
.header:hover { height: 360px; background-color: rgba(255,255,255,1); }
.header .logo { width: 120px; margin: 10px auto; }
.header .logo img { display: block; width: 100%; height: auto; object-fit: cover; }
.header .gnb1 {
    position: relative; display: flex;
    justify-content: space-between;
    width: 57%; margin: 0 auto; 
}
.header.scrolled {
    flex-direction: row; align-items: center;
    justify-content: space-between; padding: 0 5%;
    background-color: rgba(255,255,255,1); height: 70px;
}
.header.scrolled .logo { margin: 5px 0 0 0; }
.header.scrolled:hover { height: 360px; align-items: flex-start; }
.header .gnb1::before {
    content: ''; position: absolute;
    width: 100%; height: 1px;
    background-color: #fff; top: 90px; left: 0;
}
.header.scrolled .gnb1::before { top: 70px; }
.header .gnb1::after {
    content: ''; position: absolute;
    width: 0; height: 1px;
    background-color: #464646; top: 90px; left: 0;
    transition: 0.7s width ease-in-out;
}
.header:hover .gnb1::after { width: 100%; bottom: 0; left: 0; }
.header .gnb_Title {
    position: relative; width: 20%; text-align: center;
    line-height: 90px; transition: all 0.2s;
    color: #BE9A71; letter-spacing: 1.8px;
}
.header .gnb_Title > span { text-decoration: none; width: 100%; display: inline-block; font-weight: bold; }
.header .gnb_Title ul { height: auto; display: flex; flex-wrap: wrap; }
.header .gnb2 li { width: 100%; height: 37px; line-height: 45px; text-align: center; padding: 3% 0; }
.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%; color: #000; }
.header .gnb2 li:hover a { color: #BB7E56; }
.header_wrap { display: none; }

/* ─── 모바일 헤더 wrapper ─── */
.header_wrap_m {
    display: block; position: fixed;
    top: 0; left: 0; width: 100%; height: 100px;
    z-index: 10160; pointer-events: none;
}
.header_m {
    width: 100%; height: 100%;
    position: relative; display: flex;
    flex-direction: column; pointer-events: none;
}
.header_m .logo_m {
    pointer-events: auto;
    width: 148px; position: absolute;
    top: 70%; left: 50%;
    transform: translate(-50%, -50%);
}
@media (min-width:769px) {
    .header_m.scrolled .logo_m {
        left: 20px;
        transform: translate(0%, -46%);
        filter: invert(0.9);
    }
}

.logo_m img { width: 100%; }

/* ─── 햄버거/닫기 버튼 ─── */
.nav {
    pointer-events: auto; cursor: pointer;
    position: fixed; right: 60px; top: 0;
    z-index: 10300;
    display: flex; align-items: center; justify-content: center;
    width: 51px; height: 51px;
    border-radius: 0 0 0 15px;
}
.nav ul {
    display: flex; justify-content: center;
    align-items: center; height: 100%;
    gap: 10px; list-style: none; margin: 0; padding: 0;
}
.nav .navbar { position: relative; width: 32px; height: 25px; }
.nav .navbar span {
    position: absolute; width: 100%; height: 2px;
    background-color: #333; transition: all 1s ease; 
    mix-blend-mode: exclusion;
}
.nav .navbar.active span { transition: all 0.6s ease; background-color: #222; }
.nav .navbar .bar1 { transition-delay: 0s; }
.nav .navbar .bar2 { top: 11px; opacity: 1; }
.nav .navbar .bar3 { top: 22px; }
.nav .navbar.active .bar1 { 
    transform: translateY(11px) rotate(45deg); 
    /* transition-delay: 0.6s; */
}
.nav .navbar.active .bar2 { left: 0; opacity: 0; }
.nav .navbar.active .bar3 { left: 0; transform: translateY(-11px) rotate(-45deg); }

/* ─── GNB 오버레이 ─── */
.gnb_m {
    position: fixed; inset: 0;
    z-index: 10150; pointer-events: none;
}
.gnb_m.active { pointer-events: auto; }

/* ─── 원형 배경: 우측 상단 기준 clip-path ─── */
.gnb_circle_bg {
    position: fixed;
    /* 원의 지름 = 화면 대각선보다 크게 */
    width: 1800px;
    height: 1800px;
    /* 원 중심 */
    top: 40px;
    right: -5px;

    transform: translate(50%, -50%);
    border-radius: 50%;
    background-color: #FBFAF8;
    clip-path: circle(0% at 50% 50%);
    -webkit-clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.77,0,0.18,1),
                -webkit-clip-path 0.8s cubic-bezier(0.77,0,0.18,1);
    overflow: visible;
    cursor: none;
}
.gnb_m.active .gnb_circle_bg {
    clip-path: circle(50% at 50% 50%);
    -webkit-clip-path: circle(50% at 50% 50%);
}

/* 커스텀 커서 */
.gnb_circle_bg {
  cursor: none; /* 기본 커서 숨기기 */
  position: relative;
}

.custom-cursor {
  position: fixed;
  top: -50px;
  left: -50px;
  width: 44px;
  height: 44px;
  border: 2px solid #333;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* 커서가 클릭 이벤트를 방해하지 않도록 */
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  /* opacity: 0; */
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.custom-cursor.active {
  opacity: 1;
  top: 0;
  left: 0;
}

/* 모바일 제거 */
@media all and (max-width:1024px){
    .gnb_circle_bg{
        cursor:auto;
    }

    .custom-cursor{
        display:none;
    }
}



/* ─── 휠 컨테이너: 원의 중심(우측 상단 꼭짓점)에 고정 ─── */
.gnb_wheel {
    position: absolute;
    /* 원 div 내부에서 원의 중심 = 원 div의 우측상단 꼭짓점
       원 div는 translate(50%,-50%)로 이동해 있으므로
       원 내부에서의 중심 좌표: left=50%, top=50% */
    left: 50%; top: 50%;
    width: 0; height: 0;
    /* JS가 rotate로 휠 전체를 회전 */
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ─── 개별 아이템: 중심에서 뻗어나가는 팔 ─── */
.gnb_item {
    position: absolute;
    /* transform-origin은 (0,0) = 원의 중심 */
    transform-origin: 0 0;
    left: 0; top: 0;
    display: flex;
    flex-direction: column-reverse;
    /* align-items: baseline; */
    gap: 16px;
    cursor: default;
    white-space: nowrap;
}

.gnb_title {
    font-size: clamp(32px, 3.5vw, 66px);
    color: var(--main-gold);
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
    position: relative;
}
.gnb_title::after {
    content: '';
    display: block;
    margin-top: 3px;
    width: 133px;
    height: 4px;
    background: var(--main-gold);
}
.gnb_title:hover { color: #776009; }

.gnb_subs {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 2px;
}
.gnb_subs a {
    font-size: clamp(18px, 1.5vw, 27px);
    color: #707070;
    text-decoration: none;
    line-height: 1.9;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    display: block;
}
.gnb_subs a:hover { color: #776009; }

@media(max-width:1200px) {
    .header_wrap_m {
        display: block; position: fixed;
        top: 0; left: 0; width: 100%; height: 57px;
        z-index: 10160; pointer-events: none;
    }
    .header_m .logo_m {
        pointer-events: auto;
        width: 90px;
        top: 90%;
    }
}

/* ─── 모바일 768px 이하 ─── */
@media (max-width: 768px) {

    .header_m .logo_m {
        width: 45px;
        top: 48%;
        left: 30px;
        filter: invert(0.8);
    }

    .nav { 
        width: 51px; 
        height: 51px;
        justify-content: flex-start;
        right: 0;
    }


    .gnb_circle_bg {
        width: 100% !important; height: 100% !important;
        top: 0 !important; right: 0 !important;
        transform: translateX(0) !important;
        border-radius: 0 !important;
        transition: all 1s ease !important;
        overflow-y: auto;
        clip-path: circle(0% at 100% 4%);
        -webkit-clip-path: circle(0% at 100% 4%);
    }
    .gnb_m.active .gnb_circle_bg {
        /* transform: translateX(0) !important; */
        clip-path: circle(123% at 100% 4%);
        -webkit-clip-path: circle(123% at 100% 4%);
    }
    .gnb_wheel {
        position: relative;
        z-index: 1;
        left: auto; top: auto;
        width: 100%; height: auto;
        display: flex; flex-direction: column;
        padding: 55px 10% 40px 16%;
        transform: none !important;
        transition: none;
    }
    .gnb_item {
        position: relative;
        transform: none !important;
        transform-origin: unset !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 16px 0;
        white-space: normal;
        width: 100%;
    }
    .gnb_item:last-child { border-bottom: none; }

    .gnb_title::after {
        margin-top: 7px;
        width: 100%;
        height: 2px;
    }

    .gnb_subs { display: none; flex-direction: column; }
    .gnb_item.open .gnb_subs { 
        display: flex; 
        margin: 12px 0 0 12px;
    }
}

/* ─── PC 769px 이상 ─── */
@media (min-width: 769px) {
    .nav { width: 89px; height: 89px; border-radius: 0 0 0 20px; }
    .nav .navbar { width: 45px; height: 34px; }
    .nav .navbar .bar2 { top: 17px;  }
    .nav .navbar .bar3 { top: 34px;  }
    .nav .navbar.active .bar1 { transform: translateY(17px) rotate(45deg); transition-delay: 0.4s; }
    .nav .navbar.active .bar3 { transform: translateY(-17px) rotate(-45deg); transition-delay: 0.4s; }
    /* .header_m .logo_m { height: 119px; } */
}