/* -----------------------
    기본 색상변수
------------------------ */
:root {
  --color-primary: #4600ed;
  --color-text: #000;
  --color-subtext: #808080;
  --border-light: #CFCFCF;
}

/* -----------------------
    RESET
------------------------ */
html,body{height:100%}
body{
  margin:0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color:var(--color-text);
  background-color: #fff; 
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

input,
textarea {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}


/* -----------------------
    공통 이너 컨테이너
------------------------ */
.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 16px;
  margin: 0 auto;
}

/* -----------------------
    헤더 & 내비게이션
------------------------ */
.header {
  /* position: sticky; */
  top: 0;
  z-index: 20;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  height: 70%;
}

.logo img {
  height: 70%;
}

.nav-desktop {
  display: none;
  gap: 24px;
}

.nav-desktop a {
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.2s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.active-menu {
  color: var(--color-primary);
  font-weight: 600;
}

.hamburger {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.hamburger-line {
  height: 2px;
  border-radius: 999px;
  background-color: #000;
}

/* -----------------------
    드로어 (모바일 메뉴)
------------------------ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 30;
}

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

.drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
}

.drawer-overlay.open .drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.drawer-close {
  font-size: 22px;
}

.drawer-body {
  padding: 16px;
  font-size: 15px;
}

.drawer-menu {
  list-style: none;
}

.drawer-item + .drawer-item {
  margin-top: 32px;
}

.drawer-link {
  width: 100%;
  text-align: left;
}

.drawer-link.main {
  font-weight: 600;
}

/* -----------------------
    게시판 등 컨텐트 공통
------------------------ */
.content {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  margin: 64px auto;
}

.content-title {
  display: block;
  margin: 24px auto;
  text-align: center;
}

.content-title h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
/* -----------------------
    푸터
------------------------ */
.footer {
  padding: 32px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
  color: #777;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-logo {
  padding: 10px 0;
}

.footer-logo img {
  width: 100px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
}


/* -----------------------
    데스크톱 레이아웃
    (768px 이상)
------------------------ */
@media (min-width: 768px) {
  .header-inner {
    height: 100px;
    padding: 32px 16px;
    align-items: flex-end;
  }

  .logo {
    height: 100%;
  }

  .logo img {
    height: 100%;
  }

  .nav-desktop {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .content-title h1 {
    font-size: 24px;
  }
  
}