/* 공통 헤더 및 네비게이션 스타일 */
header {
  min-height: 80px; /* 또는 더 크게, 필요에 따라 조절 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.jp-logo {
  font-size: 35px;
  font-weight: 900;
  font-family: 'Arial Black', 'Noto Sans JP', sans-serif;
  letter-spacing: -2px;
  color: #111;
  transform: skewX(-5deg);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.jp-logo a {
  text-decoration: none;
  color: inherit;
}

nav {
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

nav ul li {
  text-align: center;
}

nav ul li a {
  font-weight: bold;
  color: #006400;
  transition: color 0.3s;
  text-decoration: none; /* 밑선 제거 */
}

nav ul li a:hover {
  color: #228B22;
  text-decoration: none; /* hover 상태에서도 밑선 제거 */
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #006400;
  margin: 4px 0;
}

/* 햄버거 메뉴의 스타일 */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: fixed;
    top: 60px;
    right: 0;
    width: 220px;
    max-width: 90%;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 10px 0 0 10px;
    z-index: 1001;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* QnA 섹션 스타일 (기존 내용 포함) */

body {
  padding-top: 80px; /* 헤더 높이와 일치 */
  font-family: 'Arial', sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  line-height: 1.6;
  color: #333;
}


/* main 태그와 섹션 */
main {
  padding-top: 80px; /* 헤더 높이와 맞춤 */
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 80px;
}

/* QNA 섹션 */
.qna-title {
  font-size: 3rem; /* 크고 세련된 폰트 */
  color: #2e7d32; /* 초록색 */
  text-align: center;
  margin-bottom: 30px;
}

/* 질문 리스트 */
.qna-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* 질문 카드 */
.qna-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 15px 20px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

/* 질문 영역 (Q) 레이블, 텍스트 */
.question {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000080; /* 기본 남색에서 초록색으로 변경될 것 */
  transition: color 0.3s;
}
/* 마우스 오버 효과 */
.question:hover {
  color: #388E3C; /* 초록색으로 변경 */
}

/* 레이블 */
.question-label {
  font-weight: bold;
  font-size: 1.2rem;
  color: #2e7d32; /* 초록색 레이블 */
  margin-right: 8px;
}

/* 답변 영역 */
.answer {
  margin-top: 10px;
  font-size: 1rem;
  color: #555;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  padding-left: 25px; /* 레이블과 구분 */
  border-left: 4px solid #2e7d32; /* 초록색 세로선 */
}

/* 답변 열림 상태 */
.qna-card.open .answer {
  max-height: 300px; /* 충분히 큰 값으로 */
  opacity: 1;
}

/* 애니메이션 빠르게 답변 열기 */
.qna-card .answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* 화살표 아이콘 (Optional) */
.arrow {
  font-size: 1.2rem;
  margin-left: 8px;
  transition: transform 0.3s;
}
.qna-card.open .arrow {
  transform: rotate(180deg);
  color: #2e7d32;
}
/* 푸터 스타일 */
.site-footer {
  background: #f9f9f9;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}

.site-footer .footer-top {
  margin-bottom: 10px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.site-footer .footer-info,
.site-footer .footer-links {
  margin-bottom: 5px;
}

.site-footer a {
  color: #444;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
}
/* 모바일 대응 */
@media(max-width: 768px) {
  body {
    padding-left: 20px;
    padding-right: 20px;
 main {
   padding-left: 20px;
    padding-right: 20px;
  }
  .qna-title {
    font-size: 2rem;
  }
  .question {
    font-size: 1rem;
  }
  .answer {
    font-size: 0.9rem;
  }
}

