/* ══════════════════════════════════════════════════════════════
   2026-11-23 펼침 메뉴 — 부산 워케이션 방식 (대장 지시)
   메뉴에 커서를 대면 판이 내려오며 모든 하위 메뉴가 세로로 펼쳐진다
   대장 「불투명 그대로 살려」 : 사진 위에서는 헤더와 같은 반투명 검은 판(0.5),
   스크롤 뒤 크림 헤더에서는 크림 판
══════════════════════════════════════════════════════════════ */
.nav-main > ul { gap: 0; }
.nav-main > ul > li { position: relative; flex-direction: column; width: 132px; align-items: center; }
.nav-main .sub {
  display: none;
  position: absolute;
  top: calc(100% + 26px);
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0; padding: 0;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}
.nav-main .sub li { display: block; }
.nav-main .sub a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  letter-spacing: 0;
  color: rgba(253,251,248,0.72);
}
.nav-main .sub a::after { display: none; }
.nav-main .sub a:hover { color: #fff; }

/* 내려오는 판 : 헤더 음영과 같은 반투명 */
#header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 0;
  background: rgba(0, 0, 0, 0.5); /* 헤더 음영과 똑같이, 흐림 없이 */
  opacity: 0;
  transition: height 0.25s ease, opacity 0.2s ease;
  pointer-events: none;
}
#header:has(.nav-main:hover)::after { height: 270px; opacity: 1; }
.nav-main:hover .sub { display: block; }

/* 스크롤 뒤(크림 헤더)에는 크림 판 + 짙은 글자 */
#header.is-scrolled::after { background: rgba(244,241,236,0.97); border-top: 1px solid var(--c-border); }
#header.is-scrolled .nav-main .sub a { color: var(--c-text-muted); }
#header.is-scrolled .nav-main .sub a:hover { color: var(--c-dark); }

/* 메뉴에서 판으로 커서를 옮길 때 끊기지 않게 */
.nav-main > ul > li::after { content: ''; position: absolute; left: -18px; right: -18px; top: 100%; height: 280px; }
.nav-main:not(:hover) > ul > li::after { display: none; }

/* 2026-11-23 대장 「글자 크기 조금 더 키워」 : 위 메뉴 14→16px, 펼침 메뉴 14→15px */
.nav-main > ul > li > a { font-size: 16px; }
.nav-main .sub a { font-size: 15px; padding: 10px 0; }

/* 2026-11-23 대장 「폰 메뉴판도 어둡게, 데스크탑이랑 똑같게 — 대신 어둠 농도 더 높게」 */
.mobile-nav { background: rgba(0,0,0,0.82); backdrop-filter: none; -webkit-backdrop-filter: none; border-top: 0; }
.mobile-nav a { color: rgba(253,251,248,0.88); border-bottom-color: rgba(253,251,248,0.12); }
.mobile-nav a:hover { color: #fff; }
.mobile-nav .mobile-contact-btn { background: transparent; color: var(--c-cream); border: 1px solid rgba(253,251,248,0.6); }
/* 스크롤 뒤(크림 헤더)에는 데스크탑처럼 크림 판 */
#header.is-scrolled ~ .mobile-nav { background: rgba(244,241,236,0.98); }
#header.is-scrolled ~ .mobile-nav a { color: var(--c-text); border-bottom-color: var(--c-border); }
#header.is-scrolled ~ .mobile-nav .mobile-contact-btn { background: var(--c-dark); color: var(--c-cream); border: 0; }
/* 대장 11-23 「헤더랑 내려오는 메뉴 사이 경계 없애」 : 폰 메뉴를 열면 머리글도 같은 농도로, 판은 머리글 바로 밑에 붙여 한 장처럼 */
body:has(.mobile-nav.is-open) #header:not(.is-scrolled)::before { background: rgba(0,0,0,0.82); }   /* 대장 : 메뉴를 열면 머리글 농도를 메뉴판(0.82)과 똑같이 */
.mobile-nav { top: 72px; }
.mobile-nav.is-open { transform: none; }
@media (max-width: 768px) { .mobile-nav { top: 64px; } }   /* 폰 머리글 높이(64)에 딱 붙임 — 72 였을 때 8px 틈이 생겨 경계가 보였음 */
