@charset "UTF-8";

body { text-align: center; font-family: var(--primary-font-ko); margin: 0; }
html, body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
/* ===== Header (공통) ===== */


header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  background: transparent;
}


header .go-to-top {
  display: flex; align-items: center; justify-content: flex-start;
  margin-right: auto;
}

/* 로고: 데스크톱(흰색) */
header .go-to-top .logo {
  display: block;
  width: 140px;
  height: 40px;
  margin-top: 10px; /* 필요 없으면 제거 OK */
  background-image: url('../../images/logo_white.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

/* 데스크톱 메뉴 */
header .menu {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex: 0 0 auto;
  width: 50%;
}
header .menu li { list-style: none; width: 100%; height: 100%; }
header .menu li a { display: block; line-height: 40px; text-decoration: none; color: inherit; }
header .menu li a:hover { font-weight: bold; }

/* 모바일 버튼(초기: 숨겨두고 미디어쿼리에서 표시) */
.menu-toggle {
  display: none;
}

/* 모바일 드로어 (JS로 active 토글) */
.mobile-drawer {
  display: none; /* 모바일에서만 보이게 미디어쿼리에서 block */
}

/* ===== Mobile (≤768px) ===== */
@media (max-width: 768px) {
  /* 데스크톱 메뉴 숨김 */
  header .menu { display: none; }

  /* 로고: 모바일에서 검정 로고 */
  header .go-to-top .logo {
    background-image: url('../../images/logo_black.png');
  }

  /* MENU 버튼 */
  .menu-toggle {
    display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem; color: #000;
    cursor: pointer; position: relative; z-index: 1100;
    background: none; border: 0; padding: 8px 10px;
    transition: all .3s ease;
  }
  /* MENU → X (active일 때) */
  .menu-toggle.active { color: transparent; }
  .menu-toggle.active::after {
    content: "✕";
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 1.5rem; color: #000;
  }

  /* 드롭다운 박스 */
  .mobile-drawer {
    display: block;
    position: absolute;
    top: 80px;          /* 헤더 아래 */
    right: 8%;          /* 헤더 padding과 맞춤 */
    width: 50%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(115, 115, 115, 0.159);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 1000;
  }
  .mobile-drawer.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu { list-style: none; margin: 0; padding: 10px 0; }
  .mobile-menu li + li { border-top: 1px solid #eee; }
  .mobile-menu a {
    display: block; padding: 12px 18px;
    color: #111; text-decoration: none; font-weight: 600;
  }
  .mobile-menu a:hover { background: #f5f5f5; }
}



