*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e94e5c;
  --white: #ffffff;
  --black: #212121;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;

  /* 모바일 초기 헤더 배경 – 연한 크림/베이지 */
  --mobile-bg: #fffaef;

  /* ★ 드로어 배경 – 첨부 이미지와 동일한 붉은 핑크 레드 */
  --drawer-bg: #e8606e;
  --drawer-border: #d94f5c;
}

body {
  font-family: "Pretendard", sans-serif;
  font-size: 14px;
}

/* ====================================================
   PC HEADER
==================================================== */
.pc-header {
  display: block;
}
.mobile-header {
  display: none;
}

/* 상단 레드 바 */
.top-bar {
  background: var(--red);
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 2.5px;
}

/* 메인 헤더 행 */
.pc-header {
  border-bottom: 1px solid var(--border);
}

.main-header {
  margin: 0 auto;
  background: var(--white);
  height: 104px;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 11vw, 230px);
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* 스크롤 시 반투명 배경 */
.main-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(224, 224, 224, 0.5);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 로고 */
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
  flex-shrink: 0;
}

.fixed_transform {
  width: clamp(64px, 5.1vw, 75px);
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}
.logo-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 38px;
  height: 38px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo-text img {
  width: clamp(152px, 12.1vw, 178px);
}

.logo-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.3px;
}

.logo-subtitle {
  font-size: clamp(14px, 1.2vw, 18px);
  color: #676767;
}

.logo-subtitle strong {
  font-weight: 700;
}

/* GNB */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 24px;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 22px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
  user-select: none;
}

.nav-link:hover,
.nav-item.active > .nav-link {
  color: var(--red);
}

/* GNB 드롭다운 (클릭 토글) */
.dropdown,
.lang-dropdown {
  position: absolute;
  top: 70%;
  left: 0;
  background: var(--white);
  min-width: 160px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  border: 1px solid rgba(229, 229, 229, 0.35);
  display: none;
  z-index: 2000;
  border-radius: 5px;
  overflow: hidden;
}

.main-nav .nav-item:hover .dropdown {
  display: block;
}

.nav-item.active .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 15px 20px;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}

.dropdown a:last-child,
.lang-dropdown a:last-child {
  border-bottom: none;
}

.dropdown a,
.lang-dropdown a {
  border-bottom: 1px solid #e5e7eb;
}

.dropdown a:hover {
  background: var(--red);
  color: var(--white);
}

/* 언어 선택 (클릭 토글) */
.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #626262;
  user-select: none;
  flex-shrink: 0;
}

.lang-selector:hover {
  color: var(--red);
}

.lang-selector .globe-icon {
  width: 18px;
  height: 18px;
}
.lang-selector .arrow {
  font-size: 10px;
  margin-left: 2px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  min-width: 110px;
  display: none;
  z-index: 3000;
}

.lang-selector.open .lang-dropdown {
  display: block;
}

.lang-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #777;
  text-decoration: none;
  transition: background 0.15s;
}

.lang-dropdown a:hover {
  color: #505050;
}

/* ====================================================
   MOBILE HEADER  (초기 – 크림/베이지 배경)
==================================================== */
.mobile-header {
  background: var(--mobile-bg);
  position: relative;
  z-index: 1000;
}

.mobile-top-bar {
  background: var(--mobile-bg);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.mobile-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.mobile-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
}

.mobile-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-logo svg {
  width: 38px;
  height: 38px;
}

.mobile-date-info {
  text-align: right;
  font-size: 11px;
  color: var(--black);
  line-height: 1.4;
  flex-shrink: 0;
}

.mobile-date-info .date {
  font-weight: 500;
  font-size: 13px;
}

.mobile-nav-bar {
  display: flex;
  background: var(--mobile-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-bar a {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  transition: color 0.2s;
}

.mobile-nav-bar a:last-child {
  border-right: none;
}
.mobile-nav-bar a:focus {
  color: var(--white);
  background: var(--red);
}

/* ====================================================
   MOBILE DRAWER  ★ 연한 베이지 배경 (이미지와 동일)
==================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -270px;
  width: 260px;
  height: 100vh;
  background: var(--red); /* ★ 베이지 배경 */
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.open {
  left: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  display: none;
}

.drawer-overlay.show {
  display: block;
}

/* 닫기 버튼 행 */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  border-bottom: 1px solid #f3f3f3;
  height: 50px;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--white); /* ★ 흰색 X */
  line-height: 1;
  padding: 4px;
}

/* 드로어 내부 공통 */
.drawer-nav {
  padding-bottom: 8px;
}

.drawer-section {
  border-bottom: 1px solid #f3f3f3;
}

/* depth-1 제목 */
.drawer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white); /* ★ 흰색 */
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.drawer-section-title:hover {
  color: rgba(255, 255, 255, 0.75);
}

.drawer-section-title .chevron {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85); /* ★ 흰색 chevron */
}

/* depth-1 자식 영역 */
.drawer-sub {
  display: none;
  padding-bottom: 6px;
}

.drawer-sub.open {
  display: block;
}

/* depth-2 직접 링크 */
.drawer-sub > a {
  display: block;
  padding: 10px 20px 10px 30px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9); /* ★ 흰색 계열 */
  text-decoration: none;
  transition: color 0.15s;
}

.drawer-sub > a:hover {
  color: var(--white);
}

/* depth-2 아코디언 제목 */
.drawer-sub-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white); /* ★ 흰색 */
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.drawer-sub-title:hover {
  color: rgba(255, 255, 255, 0.75);
}

.drawer-sub-title .chevron {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
}

/* depth-2 자식 영역 */
.drawer-sub-sub {
  display: none;
  padding-bottom: 2px;
}

.drawer-sub-sub.open {
  display: block;
}

.drawer-sub-sub > a {
  display: block;
  padding: 8px 20px 8px 44px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.15s;
}

.drawer-sub-sub > a:hover {
  color: var(--white);
}

/* depth-3 아코디언 제목 */
.drawer-depth3-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 8px 44px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.drawer-depth3-title:hover {
  color: var(--white);
}

.drawer-depth3-title .chevron {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
}

/* depth-3 자식 영역 */
.drawer-depth3-sub {
  display: none;
  padding-bottom: 2px;
}

.drawer-depth3-sub.open {
  display: block;
}

.drawer-depth3-sub > a {
  display: block;
  padding: 7px 20px 7px 58px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s;
}

.drawer-depth3-sub > a:hover {
  color: var(--white);
}

/* 드로어 하단 언어 선택 */
.drawer-lang {
  padding: 16px 20px 24px;
  margin-top: 4px;
}

.drawer-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--white); /* ★ 흰색 */
  user-select: none;
}

/* 언어 옵션 박스 – 이미지처럼 흰 카드형 */
.drawer-lang-options {
  margin-top: 10px;
  background: var(--white);
  border: none;
  border-radius: 6px;
  display: none;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.drawer-lang-options.open {
  display: block;
}

.drawer-lang-options a {
  display: block;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.drawer-lang-options a:last-child {
  border-bottom: none;
}

.drawer-lang-options a:hover {
  background: var(--light-gray);
  color: var(--red);
}

/* ====================================================
   RESPONSIVE
==================================================== */
@media (max-width: 768px) {
  .pc-header {
    display: none;
  }
  .mobile-header {
    display: block;
  }

  .mobile-logo {
    display: block;
    height: 37px;
  }
  .mobile-logo img {
    width: 100%;
    height: 100%;
  }

  /* 드로어 flex 구조로 변경 */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
  }

  .drawer-nav {
    flex: 1; /* 남은 공간 모두 차지 */
  }

  /* 언어 선택 맨 아래 고정 */
  .drawer-lang {
    position: sticky;
    bottom: 0;
    background: var(--red);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: auto;
  }
}
