/* 기본 설정 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* 애니메이션 효과 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 네비게이션 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  color: white;
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.nav-links a:hover {
  color: #ffcc00;
}

/* Hero 섹션 */
.hero {
  height: 60vh; /* 화면 높이의 60% */
  min-height: 320px;
  max-height: 500px;
  background: url('images/hero.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px; /* navbar height */
  margin-bottom: 150px; /* hero와 다음 섹션 간격 */
}


/* 섹션 공통 */
section {
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: auto;
}

/* 소개 */
/* .intro .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.intro img {
  flex: 1;
  max-width: 500px;
  border-radius: 10px;
}
.intro div {
  flex: 1;
} */
 /* intro 섹션용 */
/* .intro .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  padding: 4rem 2rem;
}
.intro img {
  width: 50%;
  min-width: 280px;
  border-radius: 10px;
}
.intro div {
  flex: 1;
} */
/* 슬라이더 */
.slider-wrapper {
  position: relative;
  width: 400px;  /* ✅ 원하는 고정 폭 (예: 960px) */
  max-width: 960px;     /* ✅ 원하는 고정 폭 (예: 960px) */
  height: 500px;        /* ✅ 원하는 고정 높이 */
  margin: 0 auto;       /* ✅ 가운데 정렬 */
  overflow: hidden;
  border-radius: 10px;  /* (선택) 모서리 둥글게 */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px; /* 슬라이더 폭과 동일 */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: block;
  visibility: hidden;
}

.slide.active {
  opacity: 1;
  z-index: 1;
  visibility: visible;
}

/* intro 스타일 */
.intro-content {
  position: relative;
  margin-top: 50px;
  width: 100%;
  height: 500px; /* 고정 or 반응형 */
  overflow: hidden;
}
.intro .container {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  text-align: center;
  transition: opacity 1s ease-in-out;
}

.intro-text {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.intro img {
  width: 100%;
  height: 300px;           /* ✅ 고정 높이 */
  object-fit: cover;       /* ✅ 사진을 꽉 채우면서 잘라냄 */
  border-radius: 10px;
  display: block;
}

.business-link-group {
  background: none;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 50px auto 0;
  margin-top: 100px;      /* business-link-group 위쪽 여백 확보 */
  text-align: center;
  width: 100%;              /* ✅ 전체 폭 보장 */
}

.business-link-group .container {
  display: flex;
  flex-direction: column;   /* 세로로 쌓기 */
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 800px;         /* 카드 전체 폭 제한 */
  margin: 0 auto;
}

/* 밑줄 제거: .business-link 및 하위 a, span에 적용 */
.business-link, .business-link a, .business-link span {
  text-decoration: none !important;
}
.business-link {
  width: 100%;
  min-height: 200px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  opacity: 0;                        /* 처음엔 안 보이게 */
  transform: translateY(50px);       /* 아래에서 위로 슬라이드 */
  transition: all 0.8s ease;
}

.business-link::before {
  content: "";
  display: none;
}

.business-link span {
  display: inline-block;
}

.business-link:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.business-link.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.business-link[href*="guide"] {
  background-image: url('images/pension1.jpeg');
}
.business-link[href*="reservation"] {
  background-image: url('images/open2.jpg');
}
.business-link[href*="gallery"] {
  background-image: url('images/pension3.jpeg');
}
/* Quote Section */
.quote-section {
  padding-top: 50px; /* hero에서부터 quote-section까지 여백 */
  margin-bottom: 30px;   /* quote-section과 다음 섹션 사이 여백 */
  padding: 100px 100px;
  background: none; /* 배경 필요 시 색 지정 가능 */
  overflow: hidden; /* 슬라이드 애니메이션을 위해 */
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;  /* 최소 높이 확보 */
}

.quote-item {
  width: 100%;
  white-space: normal;    /* ✅ 줄바꿈 허용 */
  word-break: keep-all;   /* ✅ 한국어 단어 단위 줄바꿈 */
  overflow: visible;      /* ✅ 잘리지 않도록 */
  text-align: center;     /* 중앙 정렬 */
  margin-bottom: 1.5rem;  /* 항목 간격 */
}

.quote-section p:first-child {
  color: #e4b770;
}

.quote-section p {
  font-size: 1.3rem;
  font-weight: 500;
  color: #545353;
  /* white-space: nowrap; */ /* 줄 바꿈 방지 해제 */
  transform: translateX(-100%); /* 처음에는 왼쪽 밖 */
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  overflow: visible;
}


/* reveal.active일 때 애니메이션 및 시퀀스 */
.quote-section.reveal.active p {
  transform: translateX(0);
  opacity: 1;
}
.quote-section.reveal.active p:nth-child(1) { transition-delay: 0.2s; }
.quote-section.reveal.active p:nth-child(2) { transition-delay: 0.6s; }
.quote-section.reveal.active p:nth-child(3) { transition-delay: 1s; }

/* 객실 */
/* .rooms {
  background: #f7f7f7;
}
.room-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.room-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  background: white;
  padding: 1rem;
  border-radius: 10px;
}
.room-card img {
  width: 300px;
  border-radius: 10px;
  flex-shrink: 0;
}
.room-card div {
  flex: 1;
} */
/* 모자이크 그리드 스타일 */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* ✅ 최소 250px, 필요시 여러 컬럼 */
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
}

.room-tile {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1rem;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.room-tile:hover {
  transform: scale(1.02);
}

.room-tile img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.room-tile h3 {
  margin: 1rem 0 0.5rem;
}

.room-tile p {
  padding: 0 1rem;
  font-size: 0.95rem;
  color: #333;
}
/* 이용 안내 */
.info ul {
  list-style: none;
  padding-left: 0;
  font-size: 1.1rem;
  line-height: 2;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
  padding-top: 100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
/* 푸터 */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.page {
  max-width: 800px;
  margin: 100px auto;
  padding: 2rem;
  flex: 1 0 auto;
  padding-top: 100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.price-table th,
.price-table td {
  border: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
}

.price-table th {
  background: #f7f7f7;
}

/* 갤러리 영역 */
.gallery {
  padding: 6rem 2rem 2rem;
  background: #f9f9f9;
  margin-top: 150px; /* ✅ navbar와 겹치지 않도록 여백 추가 */
}
.gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2열 고정 */
  gap: 1rem;
  max-width: 1000px;
  margin: auto;
}
.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4/3; /* 비율 고정 (가로 4: 세로 3) */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}
.info-table {
  width: 100%;
  max-width: 600px;         /* 고정된 최대 폭 */
  margin: 1rem auto;
  border-collapse: collapse;
  table-layout: fixed;      /* 고정 너비 비율 적용 */
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;       /* 👉 줄바꿈 방지 */
  word-break: keep-all;      /* 👉 단어 안에서 줄 안 바꿈 */
}

.info-table th {
  background-color: #f4f4f4;
  width: 30%;
  min-width: 100px;          /* 👉 최소 너비 지정 */
}
.info-table td {
  width: 70%;
  word-break: break-word;   /* ✅ 핵심: 줄바꿈 허용 */
  white-space: normal;      /* ✅ 줄바꿈 허용 */
}
.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2열 고정 */
  gap: 1rem;
  margin: 1rem auto;
  max-width: 600px; /* 모바일 대응 */
  padding: 0;
}

.room-gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.roompage {
  padding-top: 100px; /* ✅ 메뉴 높이만큼 밀어주기 */
  padding-bottom: 0;
  margin-bottom: 0;
  flex: 1 0 auto;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.roompage h2 {
  margin-bottom: 0.5rem;  /* 기본보다 작게 설정 */
}

.facility-section {
  margin-top: 0.5rem; /* 간격 줄임 */
}

/* 🖼️ 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}
.modal-content {
  display: block;
  max-width: 80%;
  margin: auto;
  border-radius: 10px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
#modalCaption {
  color: #fff;
  text-align: center;
  margin-top: 10px;
}

/* 햄버거 버튼 */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* 슬라이드 메뉴 */
.side-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background-color: #333;
  color: white;
  padding: 2rem;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  z-index: 2000;
}
.side-menu ul {
  list-style: none;
  padding: 0;
}
.side-menu li {
  margin-bottom: 1.5rem;
}
.side-menu a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}
.close-btn {
  font-size: 2rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}
.side-menu.open {
  right: 0;
}

.tab-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  border-bottom: 2px solid #ddd;
  margin-top: 150px; /* ✅ 메뉴를 피해서 더 아래로 */
}

.tab-item {
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-weight: 500;
  color: #666;
}

.tab-item.active {
  border-bottom-color: #2196f3;
  color: #000;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.info-box {
  margin-top: 40px;
  font-size: 1rem;
  text-align: center;
}

.info-item {
  padding: 20px 0;
}

.info-divider {
  height: 1px;
  background-color: #ccc;
  margin: 0 auto;
  width: 60%;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: #0072e3;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin: 20px auto 0;
  text-align: center;
}
.btn:hover {
  background-color: #005bb5;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
  }
  main {
    margin-top: 90px;
  }
  .slider-wrapper {
    height: 300px;
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .intro .container, .room-card {
    flex-direction: column;
    text-align: center;
  }
  .room-card img {
    width: 100%;
    max-width: 400px;
  }
  main, .page, .roompage {
    padding-top: 120px;
  }
  .business-link-group {
    margin-top: 30px;  /* 기존보다 줄임 */
  }

  .quote-section {
    margin-bottom: 20px; /* quote-section과 business-link 간격 조절 */
  }
  .gallery {
    margin-top: 80px; /* 모바일 화면에서 여백 조정 */
  }      
}

@media (max-width: 399px) {
  .room-grid {
    grid-template-columns: 1fr; /* 진짜 작은 화면에선 1열 */
  }
  
}
@media (max-width: 3840px) {
  .room-grid {
    grid-template-columns: repeat(2, 1fr); /* 2열 고정 */
  }
  .slider-wrapper {
    max-width: 100%;
    height: 400px;
  }
}

/* 📱 반응형 */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1rem;
  }
  .overlay h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .quote-item p {
    font-size: 0.95rem;   /* 모바일에서 글자 크기 줄임 */
  }
}

