/* 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", Arial, sans-serif;
  line-height: 1.6;
  color: #2b2118;
  background: #f8f3ea;
}

/* 상단 메뉴 */
.site-header {
  width: 100%;
  background: rgba(54, 35, 20, 0.95);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #f7d27a;
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  transition: 0.25s;
}

.main-nav a:hover {
  color: #f7d27a;
}

/* 메인 배너 */
.hero {
  height: 430px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url("../images/main-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay h1 {
  font-size: 46px;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-overlay p {
  font-size: 22px;
  margin-bottom: 28px;
}

.hero-button {
  display: inline-block;
  padding: 14px 30px;
  background: #b8860b;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  transition: 0.25s;
}

.hero-button:hover {
  background: #8b6508;
  transform: translateY(-2px);
}

/* 공통 섹션 */
.section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.section h2 {
  font-size: 30px;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 6px solid #b8860b;
  color: #3a2818;
}

/* 공지사항 */
.notice-list {
  list-style: none;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.notice-list li {
  padding: 14px 8px;
  border-bottom: 1px solid #eee2d0;
  font-size: 18px;
}

.notice-list li:last-child {
  border-bottom: none;
}

/* 행사 카드 */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
  border-top: 5px solid #b8860b;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #3a2818;
}

.card p {
  font-size: 17px;
  color: #5a4a3c;
}

/* 소개 영역 */
.about-section p {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  font-size: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* 바로가기 */
.quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-menu a {
  display: block;
  text-align: center;
  padding: 22px;
  background: #3a2818;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  transition: 0.25s;
}

.quick-menu a:hover {
  background: #b8860b;
}

/* 하단 */
.site-footer {
  background: #2b2118;
  color: #ddd;
  text-align: center;
  padding: 34px 20px;
  margin-top: 70px;
  font-size: 15px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 14px;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .main-nav a {
    font-size: 15px;
  }

  .hero {
    height: 360px;
  }

  .hero-overlay h1 {
    font-size: 34px;
  }

  .hero-overlay p {
    font-size: 18px;
  }

  .card-container,
  .quick-menu {
    grid-template-columns: 1fr;
  }

  .section {
    margin: 42px auto;
  }

  .section h2 {
    font-size: 25px;
  }
}/* 모바일 메뉴 버튼 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #f7d27a;
  font-size: 30px;
  cursor: pointer;
}

/* 모바일 햄버거 메뉴 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 0;
    padding-top: 12px;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 17px;
  }
}/* 서브페이지 공통 상단 */
.sub-hero {
  height: 260px;
  background:
    linear-gradient(rgba(43, 33, 24, 0.65), rgba(43, 33, 24, 0.65)),
    url("../images/main-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.sub-hero-inner h1 {
  font-size: 42px;
  margin-bottom: 12px;
  font-weight: 800;
}

.sub-hero-inner p {
  font-size: 18px;
}

/* 서브페이지 본문 */
.sub-content {
  margin-top: 50px;
}

.content-box {
  background: #fff;
  padding: 34px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  font-size: 18px;
  line-height: 1.9;
}

.content-box p {
  margin-bottom: 18px;
}

.content-box p:last-child {
  margin-bottom: 0;
}

/* 모바일 서브페이지 */
@media (max-width: 768px) {
  .sub-hero {
    height: 220px;
  }

  .sub-hero-inner h1 {
    font-size: 32px;
  }

  .sub-hero-inner p {
    font-size: 16px;
    padding: 0 20px;
  }

  .content-box {
    padding: 26px;
    font-size: 17px;
  }
}/* 서명 문구 */
.signature {
  margin-top: 30px;
  text-align: right;
  font-weight: 700;
  color: #3a2818;
}/* 공지사항 게시판 */
.notice-board {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 24px 28px;
  border-radius: 16px;
  text-decoration: none;
  color: #2b2118;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.notice-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.notice-title {
  font-size: 19px;
  font-weight: 700;
}

.notice-date {
  font-size: 15px;
  color: #888;
}

/* 모바일 공지사항 */
@media (max-width: 768px) {
  .notice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .notice-title {
    font-size: 17px;
  }

  .notice-date {
    font-size: 14px;
  }
}/* 행사 사진 갤러리 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.gallery-image {
  height: 220px;
  background: #e8dcc8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b4a2b;
  font-size: 20px;
  font-weight: 700;
}

.gallery-info {
  padding: 24px;
}

.gallery-info h3 {
  font-size: 21px;
  margin-bottom: 8px;
  color: #3a2818;
}

.gallery-info p {
  font-size: 16px;
  color: #5a4a3c;
}

/* 모바일 갤러리 */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image {
    height: 190px;
  }
}/* 자료실 */
.library-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.library-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.library-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.file-icon {
  width: 60px;
  height: 60px;
  background: #3a2818;
  color: #f7d27a;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.file-info h3 {
  font-size: 19px;
  margin-bottom: 6px;
  color: #3a2818;
}

.file-info p {
  font-size: 15px;
  color: #5a4a3c;
}

.download-btn {
  padding: 12px 18px;
  background: #b8860b;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s;
}

.download-btn:hover {
  background: #8b6508;
}

/* 모바일 자료실 */
@media (max-width: 768px) {
  .library-item {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .download-btn {
    text-align: center;
  }
}/* 회원 안내 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.member-card {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border-top: 5px solid #b8860b;
}

.member-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #3a2818;
}

.member-card p,
.member-card li {
  font-size: 17px;
  line-height: 1.8;
  color: #4a3a2d;
}

.member-card ol {
  padding-left: 22px;
}

/* 모바일 회원 안내 */
@media (max-width: 768px) {
  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    padding: 26px;
  }
}

/* 문중의 뿌리 */
.intro-box {
  margin-bottom: 28px;
}

.roots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.roots-card {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  border-top: 5px solid #b8860b;
}

.roots-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #3a2818;
  color: #f7d27a;
  font-weight: 800;
}

.roots-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #3a2818;
}

.roots-card p {
  font-size: 17px;
  line-height: 1.8;
  color: #4a3a2d;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  background: #fff;
  padding: 22px 26px;
  border-left: 5px solid #b8860b;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  color: #3a2818;
  font-size: 18px;
}

.timeline-item p {
  color: #4a3a2d;
  font-size: 16px;
}

@media (max-width: 768px) {
  .roots-grid {
    grid-template-columns: 1fr;
  }

  .roots-card {
    padding: 26px;
  }
/* PC 화면 미세 조정 */
body {
  min-height: 100vh;
  font-size: 16px;
}

main {
  min-height: 420px;
}
}

/* 메뉴 간격 및 글자 크기 조정 */
.main-nav {
  gap: 18px;
}

.main-nav a {
  font-size: 14px;
  white-space: nowrap;
}

/* 하위 페이지 본문 영역 안정화 */
.sub-page-content,
.content-section,
.page-section,
.container {
  min-height: 360px;
}

/* 카드 및 본문 가독성 향상 */
.card p,
.info-card p,
.notice-item,
.library-item {
  font-size: 15px;
  line-height: 1.8;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  main {
    min-height: 360px;
  }

  .main-nav {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav a {
    font-size: 15px;
  }

  .sub-page-content,
  .content-section,
  .page-section,
  .container {
    min-height: 300px;
  }
}
/* =========================
   Footer 하단 여백 정리
========================= */

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
}

/* 모바일에서 footer 위치 안정화 */
@media (max-width: 768px) {
  body {
    min-height: 100vh;
  }

  main {
    flex: 1;
  }

  footer {
    margin-top: auto;
  }
}
/* =========================
   종친회 소개 페이지 보강
========================= */

.about-detail .intro-card {
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.about-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border-top: 3px solid #c58b00;
}

.about-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #3a2416;
  color: #f6c65b;
  font-size: 13px;
  font-weight: 700;
}

.about-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #2d1f16;
}

.about-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #333333;
}

.about-message {
  margin-top: 28px;
  padding: 24px;
  background: #ffffff;
  border-left: 4px solid #c58b00;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.about-message h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #2d1f16;
}

.about-message ul {
  margin: 0;
  padding-left: 20px;
}

.about-message li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.7;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    padding: 22px 20px;
  }

  .about-card h3,
  .about-message h3 {
    font-size: 17px;
  }

  .about-card p,
  .about-message li {
    font-size: 14px;
  }
}
/* =========================
   종친회 소개 페이지 폭 정리
========================= */

.about-detail {
  width: 90%;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.about-detail h2 {
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .about-detail {
    width: 90%;
    padding: 28px 0 40px;
  }
}
/* =========================
   회장 인사말 페이지 보강
========================= */

.greeting-detail {
  width: 90%;
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 0 60px;
}

.greeting-message {
  padding: 30px;
  margin-bottom: 28px;
  line-height: 1.9;
}

.greeting-message p {
  margin-bottom: 16px;
  font-size: 16px;
}

.greeting-message .signature {
  margin-top: 28px;
  text-align: right;
  font-weight: 700;
  color: #2d1f16;
}

@media (max-width: 768px) {
  .greeting-detail {
    width: 90%;
    padding: 28px 0 40px;
  }

  .greeting-message {
    padding: 22px 20px;
  }

  .greeting-message p {
    font-size: 14px;
    line-height: 1.8;
  }
}/* 공지사항 페이지 정렬 */
.notice-detail {
  max-width: 720px;
  margin: 48px auto 80px;
  padding: 0 20px;
}

.notice-detail h2 {
  font-size: 24px;
  margin-bottom: 22px;
  padding-left: 12px;
  border-left: 4px solid #c58b00;
  color: #2d1f16;
}

.notice-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notice-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: #2d1f16;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-title {
  font-size: 15px;
  font-weight: 700;
}

.notice-date {
  font-size: 13px;
  color: #777;
}

/* 모바일 공지사항 */
@media (max-width: 768px) {
  .notice-detail {
    max-width: 100%;
    margin: 28px auto 60px;
    padding: 0 12px;
  }

  .notice-item {
    display: block;
    padding: 18px 16px;
  }

  .notice-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .notice-date {
    font-size: 12px;
  }
}/* ===============================
   Mobile Final Adjustment
   =============================== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.7;
  }

  .header-inner {
    padding: 0 18px;
    height: 64px;
  }

  .logo a {
    font-size: 17px;
  }

  .menu-toggle {
    font-size: 24px;
    padding: 8px;
  }

  .main-nav {
    padding: 12px 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 14px;
    text-align: center;
  }

  .hero,
  .sub-hero {
    min-height: 180px;
  }

  .hero h1,
  .sub-hero h1 {
    font-size: 26px;
  }

  .hero p,
  .sub-hero p {
    font-size: 13px;
  }

  main,
  .content-section,
  .section,
  .notice-section,
  .event-section,
  .about-section,
  .quick-section {
    width: 100%;
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    box-sizing: border-box;
  }

  h2 {
    font-size: 21px;
    margin-bottom: 18px;
  }

  .card,
  .about-card,
  .roots-card,
  .member-card,
  .gallery-card,
  .library-item,
  .notice-item,
  .intro-card,
  .content-box {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .card-container,
  .about-grid,
  .roots-grid,
  .member-grid,
  .gallery-grid,
  .quick-menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quick-menu a,
  .download-btn,
  .hero-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .gallery-image {
    min-height: 150px;
  }

  .site-footer {
    padding: 24px 12px;
    font-size: 12px;
    text-align: center;
  }
}/* ===============================
   Mobile Hamburger Menu Fix
   =============================== */
@media (max-width: 768px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #3a2416;
  }

  .header-inner {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 64px;
    padding: 0 18px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #3a2416;
  }

  .logo a {
    font-size: 17px;
    color: #f7d27a;
  }

  .menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: #f7d27a;
    font-size: 24px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
    z-index: 10001;
  }

  .main-nav {
    display: none;
    width: 100%;
    background: #3a2416;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    margin: 0;
    text-align: center;
    z-index: 10000;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 13px 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav a:hover {
    color: #f7d27a;
    background: rgba(255, 255, 255, 0.05);
  }
}/* =========================
   모바일 햄버거 메뉴 최종 보정
========================= */
@media (max-width: 768px) {
  .site-header {
    position: relative;
    z-index: 999;
  }

  .header-inner {
    width: 100%;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #f6c65b;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #3a2416;
    margin-top: 12px;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 13px 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a:hover {
    color: #f6c65b;
  }
}