/* ---------------- 기본 설정 ---------------- */
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #fff;
  color: #333;
}

/* ---------------- 헤더 ---------------- */
header {
  background: #3c3f58;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
}

header p {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  opacity: 0.9;
}

/* ---------------- 언어 전환 버튼 ---------------- */
.language-switch {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.language-switch .btn {
  background-color: #3c3f58;
  color: white;
  border: none;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.language-switch .btn:hover {
  background-color: #2a2d42;
  transform: translateY(-2px);
}

/* ---------------- 네비게이션 ---------------- */
nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.2s;
}

nav a:hover {
  background: #eee;
}

/* ---------------- 모바일 네비게이션 ---------------- */
@media (max-width: 768px) {
  nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f8f8f8;
    border: none;
    border-radius: 0;
    flex-direction: row;
    justify-content: space-around;
    padding: 0.8rem 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  nav a {
    padding: 0.6rem;
    font-size: 1rem;
  }
}

/* ---------------- 섹션 ---------------- */
section {
  padding: 3rem 1.2rem 2.5rem;
  max-width: 900px;
  margin: auto;
}

section:nth-child(even) {
  background: #fafafa; /* 구분용 연한 회색 배경 */
}

section h2 {
  font-size: 1.7rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #3c3f58;
}

/* 홈 섹션 - 네비게이션 겹침 방지 */
#home {
  padding-top: 5rem;
}

/* ---------------- 메뉴 ---------------- */
#menu ul {
  list-style: none;
  padding: 0;
}

#menu li {
  margin-bottom: 2rem;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#menu h3 {
  margin: 0.3rem 0;
  font-size: 1.3rem;
  color: #2a2d42;
}

#menu p {
  margin: 0.2rem 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* ---------------- 지도 ---------------- */
iframe {
  width: 100%;
  height: 320px;
  border: none;
  margin-top: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 지도 버튼 */
.map-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.map-button {
  text-decoration: none;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.map-button:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.map-button.google { background: #4285F4; }
.map-button.naver { background: #2DB400; }

/* ---------------- 문의 ---------------- */
#contact p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ---------------- 푸터 ---------------- */
footer {
  background: #3c3f58;
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

.footer-lang-switch {
  margin-top: 1rem;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.footer-lang-switch button {
  padding: 6px 12px;
  font-size: 0.85rem;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.footer-lang-switch button:hover {
  background-color: #777;
}

/* 메인 배너 (Hero Section) */
.hero {
  position: relative;
  height: 60vh; /* 화면의 60% 차지 */
  background: url("main-image.jpg") no-repeat center center / cover; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* 어두운 오버레이 */
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* ===================== */
/* PC용 햄버거 + 사이드네비 */
/* ===================== */

/* 햄버거 버튼 */
.menu-btn {
  position: fixed;
  top: 18px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  z-index: 1200;
  display: none;                /* 데스크탑에서만 보임 (미디어쿼리에서 override) */
  color: #3c3f58;
  background: #ffffff;
  border: 2px solid #3c3f58;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.menu-btn:hover {
  background: #3c3f58;
  color: #fff;
  transform: translateY(-2px);
}

/* 우측 사이드 네비 */
.side-nav {
  position: fixed;
  top: 0;
  right: -280px;    /* 숨김 상태 */
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -6px 0 20px rgba(0,0,0,0.12);
  transition: right 0.28s cubic-bezier(.2,.9,.3,1);
  z-index: 1190;
  padding-top: 3.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: 'Noto Sans KR', sans-serif;
}
.side-nav.open { right: 0; }

.side-nav a {
  display: block;
  padding: 1rem 1.2rem;
  color: #333;
  font-weight: 700;
  border-bottom: 1px solid #f0f0f0;
}
.side-nav a:hover { background: #fafafa; }

/* 데스크탑 전용 */
@media (min-width: 768px) {
  nav.mobile-nav { display: none; } /* 기존 nav 숨김 */
  .menu-btn { display: block; }
}

/* 모바일에서는 기존 nav 유지 */
@media (max-width: 767px) {
  .side-nav { display: none; }
}
