 /* --------- PC HEADER(상단 네비게이션) --------- */

/* 헤더 전체(고정 상단, 어두운 배경) */
.site-header {
  background-color: #121212;
  color: #fff;
  padding: 32px 24px;          /* 헤더 패딩: 위아래32px, 좌우24px */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* 메뉴+로고 전체 감싸는 래퍼(플렉스 중앙정렬) */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;     /* 메뉴를 수평 중앙 정렬 */
  gap: 60px;
  position: relative;
}

/* 로고(왼쪽 고정 위치) */
.logo {
  position: absolute;
  left: 24px;
  font-size: 0;
}
.logo a {
  font-size: 2.6rem;
  font-weight: 800;
  color: #80ffff;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  display: inline-block;
}
/* 로고 클릭 시 색상 효과 */
.logo a:active {
  color: #ffcc00;
}

/* 메뉴 바(수평 플렉스) */
.nav {
  display: flex;
  align-items: center;
  gap: 60px;
}
.nav-item {
  position: relative;
}

/* 각 메뉴버튼(디자인/정렬/애니/블럭 등) */
.has-sub {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  padding: 6px 26px;
  border-radius: 18px;
  background: linear-gradient(90deg, #222235 0%, #595b6c 100%);
  box-shadow: 0 2px 14px 0 rgba(60,80,110,0.16);
  text-shadow: 0 2px 8px rgba(0,40,120,0.16);
  cursor: pointer;
  transition:
    background 0.3s cubic-bezier(.65,.05,.36,1),
    color 0.22s,
    box-shadow 0.22s;
  position: relative;
  display: inline-block;
  min-width: 130px;          /* 4개 메뉴 동일폭 */
  text-align: center;        /* 글자 중앙정렬 */
}

/* ▼ 화살표(드롭다운 아이콘) */
.has-sub::after {
  content: " ▼";
  font-size: 23px;
  margin-left: 6px;
  color: #ffe082;
  transition: transform 0.18s;
}

/* 메뉴버튼 hover시 효과 */
.has-sub:hover {
  background: linear-gradient(90deg, #373770 0%, #727396 100%);
  color: #ffcf40;
  box-shadow: 0 6px 20px 0 rgba(120,120,180,0.18);
  letter-spacing: 2px;
}
.has-sub:hover::after {
  transform: translateY(2px) scale(1.08);
  color: #ffe47a;
}

/* ▼ 서브메뉴(중앙 정렬/부드러운 등장) */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 5px);
  background-color: #fff;
  min-width: 160px;
  border-radius: 4px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}
.nav-item:hover .submenu {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 서브메뉴 항목(링크) */
.submenu a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 19px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s;
}
.submenu a:hover {
  background-color: #F97BBA;
}

/* 메뉴 클릭시(활성시) 효과 */
.has-sub:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* --------- 모바일(햄버거) 드로어 메뉴 --------- */

/* 상단 고정 헤더 (모바일 only) */
.header {
  background: #171924;
  color: #80ffff;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  display: none;                /* PC에선 숨김, 모바일에서만 flex */
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 22px;
  z-index: 101;
  position: relative;
}

/* 햄버거 버튼 */
.burger-btn {
  display: flex;
  background: none;
  border: none;
  font-size: 1.6em;
  color: #80ffff;
  cursor: pointer;
  align-items: center;
  border-radius: 8px;
  padding: 4px 10px;
  transition: color 0.14s, background 0.13s;
}
.burger-btn:hover {
  background: #2b3350;
  color: #ffe67a;
}

/* 메뉴 오버레이(뒷배경 블러 효과) */
.drawer-overlay {
  display: none;
  position: fixed;
  z-index: 111;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,28,44,0.36);
  opacity: 0;
  transition: opacity 0.18s;
}
.drawer-overlay.active {
  display: block;
  opacity: 1;
}

/* 슬라이드 드로어 메뉴(오른쪽에서 등장) */
.drawer-menu {
  position: fixed;
  top: 0;
  right: -80vw;                 /* 기본 오른쪽 바깥에 숨김 */
  width: 62vw;
  max-width: 350px;
  height: 50vh;
  background: #222235;
  color: #fff;
  box-shadow: -3px 0 30px rgba(40,40,90,0.14);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  transition: right 0.22s cubic-bezier(.73,.16,.22,1);
}
.drawer-menu.active {
  right: 0;                     /* 메뉴 열기(슬라이드 인) */
}

/* 드로어 헤더(닫기버튼, 타이틀) */
.drawer-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 28px;
  font-size: 1.1em;
  font-weight: 900;
  border-bottom: 1px solid #303344;
  background: #18191e;
  color: #80ffff;
}

/* 드로어 닫기 버튼 */
.drawer-close {
  background: none;
  border: none;
  font-size: 1.13em;
  color: #fff;
  cursor: pointer;
  padding: 0 7px;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
.drawer-close:hover {
  background: #262d46;
  color: #ffe67a;
}

/* 메뉴 리스트 */
.drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}
.drawer-list > li {
  border-bottom: 1px solid #292c3a;
}

/* 드로어 1차 메뉴(아코디언 버튼) */
.drawer-link {
  display: flex;
  align-items: center;
  padding: 17px 22px 17px 28px;
  color: #fff;
  font-size: 1.09em;
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.13s;
}
.drawer-link .chev {
  margin-left: auto;
  font-size: 1.03em;
  color: #ffe082;
}
.drawer-link:hover, .drawer-link.active {
  background: #23263b;
  color: #ffe67a;
}

/* 서브메뉴(아코디언 펼침) */
.drawer-submenu {
  display: none;
  flex-direction: column;
  background: #26263d;
  padding-left: 8px;
  border-radius: 0 0 10px 10px;
}
.drawer-submenu.open {
  display: flex;
}
.drawer-submenu a {
  color: #bcefff;
  font-size: 1.03em;
  text-decoration: none;
  padding: 14px 28px 14px 40px;
  transition: background 0.13s, color 0.13s;
  border-bottom: 1px solid #31374c;
}
.drawer-submenu a:last-child {
  border-bottom: 0;
}
.drawer-submenu a:hover {
  background: #334080;
  color: #ffe67a;
}

/* --------- 반응형 분기: PC/모바일 별로 노출 --------- */
@media (max-width: 1024px) {
  .site-header { display: none; }             /* 모바일: PC헤더 숨김 */
  .header { display: flex; }                  /* 모바일: 드로어 헤더/버튼 보임 */
}
@media (min-width: 1025px) {
  .drawer-overlay, .drawer-menu, .header { display: none !important; }
  .site-header { display: block; }
}
