html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto !important;
  overflow-y: auto !important;
  font-family:  'Ddangsu Bold', sans-serif;
}

.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ccc;
  padding: 0 30px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-wrapper.shrink {
  height: 60px;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* shrink 상태일 때 폰트 컬러 바꾸기 */
.header-wrapper.shrink .nav-menu a {
  color: #fff; /* 원하는 색상 */
}

.header-wrapper.shrink .login a {
  color: #ddd; /* 원하는 색상 */
}

.header-wrapper.shrink .nav-menu a:hover::after {
  background-color: #ffffff; /* hover 밑줄 색 */
}

.logo img {
  height: 50px;   /* 원하는 높이 */
  width: auto;    /* 비율 유지 */
  display: block;
}


.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background-color: #000;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.login a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
}

footer {
  background-color: #20202b; /* 짙은 네이비 */
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #bdbdbd; /* 글자 흰색 */
}

.footer-links a {
  margin: 0 10px;
  color: #bdbdbd; /* 링크도 흰색 */
  text-decoration: none;
}

.footer-links a:hover {
  color: #50aaff; /* hover 시 포인트 컬러 */
}

.social-links a img {
  width: 24px;
  margin: 0 5px;
  filter: brightness(0) invert(1); /* 아이콘 흰색 계열로 보이게 */
}

.footer-links,
.social-links,
.contact-info,
copyright {
  margin: 10px 0;
}

.footer-links a {
  margin: 0 10px;
  color: #bdbdbd;
  text-decoration: none;
}


.social-links a img {
  width: 24px;
  margin: 0 5px;
}

/* ------------------ 공통 네비게이션 ------------------ */
.subnav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}
.subnav a {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  color: #e0e6f0;
  background: linear-gradient(90deg, #2a2a40, #1f1f2d);
  transition: all 0.2s ease-in-out;
}
.subnav a:hover {
  background: rgba(80,150,255,0.18);
  color: #50aaff;
  box-shadow: 0 0 8px rgba(80,150,255,0.55);
}
.subnav a.active {
  background: #50aaff;
  color: #fff;
}


@font-face {
  font-family: 'Ddangsu Bold';
  src: url('../font/Ddangsu-Bold.otf') format('opentype');
}

@media screen and (max-width: 768px) {
  .nav-menu {
    display: flex;
    flex-wrap: wrap; /* ✅ 한 줄이 안 되면 줄바꿈 허용 */
    justify-content: center;
    gap: 10px;
    overflow-x: visible; /* ✅ 스크롤 제거 */
  }

  .nav-menu a {
    font-size: 12px;
    white-space: normal; /* ✅ 줄바꿈 허용 */
    display: inline-block;
  }

  html {
    font-size: 14px;
  }

  .logo {
    font-size: 18px;
  }

  footer {
    font-size: 12px;
  }

  .login a {
    font-size: 14px;
  }
}

