/* --- Global & Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');


/* CSS 변수 및 기본 설정 */
:root {
    --brand-color: #b50000;
    --brand-color-hover: #9d0000;
    --text-gray-primary: #1f2937;
    --text-gray-secondary: #4b5563;
    --text-gray-light: #d1d5db;
    --text-white: #ffffff;
    --bg-dark: #151515;
    --bg-light: #f9fafb;
    --border-color: #d1d5db;
}


/* ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ Sticky Footer를 위한 코드 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼ */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
}

/* body 바로 아래의 main 태그가 남는 공간을 모두 차지하도록 함 */
body > main {
    flex-grow: 1;
}
/* ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲ */



/* 네비게이션 */
/* 기본 네비게이션 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    z-index: 1000;
    font-family: sans-serif;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0));
}

nav .logo img {
    height: 20px;
}

nav .menu {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s;
    border-bottom: 2px solid transparent; /* 밑줄이 생길 공간을 미리 확보 */
}

nav a.btn-contact {
    background-color: #fff;
    color: #b50000;
    border: 1px solid #b50000; /* btn-contact는 기존 테두리 유지 */
    border-radius: 100px;
    padding: 8px 16px;
}

nav a.btn-contact:hover {
    background-color: #b50000;
    color: #fff;
    border-color: #b50000;
}

/* --- START: 네비게이션 활성 링크 스타일 추가 --- */
/* 일반 메뉴 활성 스타일 */
nav .menu a.active {
  color: #b50000;
  /* font-weight: bold; 주석 처리하여 레이아웃 밀림 방지 */
  border-bottom-color: #b50000; /* 활성 상태 표시를 위해 밑줄 색상 변경 */
}
/* Contact US 버튼 활성 스타일 */
nav .menu a.btn-contact.active,
nav .mobile-menu a.btn-contact.active {
  background-color: #b50000;
  color: #fff;
}
/* --- END: 네비게이션 활성 링크 스타일 추가 --- */


/* 햄버거 아이콘 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* 모바일 메뉴 오버레이 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 2000;
}

.mobile-menu .close-btn {
    color: #000;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    cursor: pointer;
}

.mobile-menu a {
    font-size: 24px;
    color: #000;
    text-decoration: none;
}

.mobile-menu a.btn-contact {
    background-color: #fff;
    color: #b50000;
    border: 1px solid #b50000;
    border-radius: 5px;
    padding: 10px 20px;
}

.mobile-menu a.btn-contact:hover {
    background-color: #b50000;
    color: #fff;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    nav .menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}




/*footer*/
footer {
  background-color: #222;
  padding: 20px 40px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-left .button a{
  text-decoration: none;
  color:#fff;
}

.footer-left p {
  margin: 4px 0;
  color:#a7a7a7;
}

.footer-right {
  position: relative;
  display: flex; /* 자식 요소(Family Site, SNS 아이콘)를 가로로 배치 */
  align-items: flex-end; /* 아래쪽 정렬 */
  gap: 15px; /* Family Site 버튼과 SNS 아이콘 사이 간격 */
}

.family-site button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  min-width: 120px; /* 버튼 최소 width */
  width: 150px;     /* 버튼 고정 width */
  text-align: center;
}

.family-site button:hover {
  background-color: #666;
}

.dropdown {
  position: absolute;
  bottom: 38px; /* 버튼 위로 나옴 */
  right: 0;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 4px;
  overflow: hidden;

  width: 150px; /* 버튼 width와 동일 */
  max-height: 0; /* 애니메이션 초기 상태 */
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.dropdown.show {
  max-height: 500px; /* 충분히 큰 값으로 열림 */
  opacity: 1;
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
}

.dropdown a:hover {
  background-color: #555;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    margin-bottom: 20px;
  }

  .footer-right {
    width: 100%;
  }

  .family-site {
    align-items: center;
    margin-bottom:20px;
  }

  .dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px; /* 버튼 위로 조정 */
  }
}

/* ▼▼▼▼▼▼▼▼▼▼ SNS Links 수정 ▼▼▼▼▼▼▼▼▼▼ */
.sns-links {
  display: flex;
  gap: 10px; /* 아이콘 사이의 간격 */
  align-items: center;
  padding-bottom: 4px; /*family site 버튼이랑 비슷하게 높이 조절*/
}

.sns-links a {
  display: inline-block;
  width: 24px; /* 아이콘 크기 (이 크기를 조절하면 이미지도 따라 조절됩니다) */
  height: 24px;
  transition: opacity 0.3s ease;
}

.sns-links a:hover {
  opacity: 0.7; /* 마우스 오버 시 투명도 조절 */
}

.sns-links img {
  width: 100%;
  height: 100%;
  display: block; /* 이미지 아래 불필요한 여백 제거 */
}

/* 모바일 대응 */
@media (max-width: 768px) {
  /* 푸터 오른쪽 컨텐츠 중앙 정렬 */
  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sns-links {
    justify-content: center; /* 모바일에서 중앙 정렬 */
  }
}