/* 기본 초기화 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
}
.header {
  width: 100%;
  background: #fff;
  border-bottom: 2px solid #2196f3;
  margin-bottom: 32px;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  position: relative;
}
.logo img {
  height: 36px;
  vertical-align: middle;
}
/* nav 기본 스타일 */
.nav {
  display: none;
  gap: 32px;
  align-items: center;
}
.nav a {
  color: #002855;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav a:hover {
  color: #e53935;
}
/* 모든 화면에서 .nav.open일 때는 보여지도록 */
.nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 0;
  width: 180px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 0 0 8px 8px;
  padding: 12px 0;
  z-index: 10;
  animation: fadeIn 0.3s ease forwards;
  gap: 15px;
}

/* 햄버거 버튼 기본은 숨김 (PC) */
.hamburger {
  background: none;
  border: none;
  font-size: 35px;
  cursor: pointer;
}
/* 오버레이 기본 상태 숨김 */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9;
}
/* 오픈 시 표시 */
.nav-overlay.open {
  display: block;
}

/* 모바일 스타일 */
@media (max-width: 768px) {
  .hamburger {
    position: absolute;
    right: 16px;
    top: 18px;
    z-index: 20;
    font-size: 28px;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 180px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    padding: 12px 0;
    z-index: 10;
    animation: fadeIn 0.3s ease forwards;
  }
  .nav.open {
    gap: 5px;
  }
  .nav a {
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
    text-align: right;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
