html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #111;
  background: #fff;
  font-family: Arial, sans-serif;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  font-size: 12px;
}

button {
  font: inherit;
}

.inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.section {
  padding: 48px 0;
}

/* header — sticky */
.header {
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.header .inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-left {
  justify-self: start;
}

.nav-right {
  justify-self: end;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  white-space: nowrap;
  justify-self: center;
}

/* ✅ 이슈 4 수정: menu-btn을 헤더 그리드 안에 자연스럽게 배치 */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mobile-menu {
  display: none;
}

/* hero */
.hero-image-wrap {
  position: relative;
}

.hero-image-wrap img {
  height: 760px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  width: calc(100% - 32px);
}

.hero-overlay h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

.hero-overlay p {
  font-size: 12px;
  line-height: 1.5;
}

/* intro */
.intro-layout {
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  margin-top: 24px;
  margin-bottom: 24px;
}

.intro-title h2 {
  font-size: 24px;
  font-weight: bold;
}

.intro-text p {
  font-size: 12px;
  line-height: 1.5;
}

/* section title */
.section-title {
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  font-weight: 300;
}

/* gallery slider */
.gallery-slider {
  position: relative;
}

.gallery-viewport {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc((100% - 32px) / 3);
  margin-right: 16px;
}

.gallery-item:last-child {
  margin-right: 0;
}

.gallery-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 1;
}

.slider-btn.prev {
  left: 16px;
}

.slider-btn.next {
  right: 16px;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn:disabled {
  cursor: default;
}

/* feature */
.feature-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.feature-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.feature-text {
  text-align: center;
  line-height: 1.8;
}

.feature-text h3 {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 96px;
}

.feature-text p {
  font-size: 14px;
  line-height: 2.5;
}

/* footer */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.7;
}

/* tablet */
@media (max-width: 1024px) {
  .inner {
    max-width: 100%;
    padding: 0 24px;
  }

  .header .inner {
    height: 64px;
  }

  .nav {
    gap: 20px;
  }

  .hero-image-wrap img {
    height: 620px;
  }

  .hero-overlay {
    bottom: 48px;
  }

  .intro-layout {
    gap: 40px;
    padding: 56px 0;
  }

  .intro-title h2 {
    font-size: 22px;
  }

  .gallery-item {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .gallery-item img {
    height: 360px;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-text h3 {
    margin-bottom: 32px;
  }
}

/* ✅ 이슈 3,4 수정: 모바일 전체 폰트 축소 + 메뉴 버튼 위치 정상화 */
@media (max-width: 768px) {
  /* 전체 기본 폰트 크기 축소 */
  html {
    font-size: 14px;
  }

  .inner {
    padding: 0 16px;
  }

  .section {
    padding: 28px 0;
  }

  /* ✅ 이슈 4 수정: 헤더를 flex로 변경해 메뉴버튼 자연스럽게 배치 */
  .header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
  }

  /* ✅ 이슈 4 수정: menu-btn — position:absolute 제거, flex 아이템으로 배치 */
  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;       /* absolute 제거 */
    font-size: 22px;
    flex-shrink: 0;
    order: 0;
  }

  /* 로고는 flex 중앙 정렬 */
  .logo {
    position: static;
    transform: none;
    font-size: 14px;
    flex: 1;
    text-align: center;
    order: 1;
  }

  /* 데스크탑 nav 숨김 */
  .nav {
    display: none;
  }

  /* 모바일 메뉴 */
  .mobile-menu {
    display: none;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
    background: #fff;
  }

  .mobile-menu a {
    display: block;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
  }

  .header.nav-open .mobile-menu {
    display: block;
  }

  /* 헤더 우측 여백 균형 (메뉴버튼 너비만큼) */
  .header .inner::after {
    content: '';
    display: block;
    width: 22px;
    flex-shrink: 0;
    order: 2;
  }

  .hero-image-wrap img {
    height: 380px;
  }

  .hero-overlay {
    bottom: 24px;
  }

  .hero-overlay h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .hero-overlay p {
    font-size: 10px;
    line-height: 1.6;
  }

  .intro-layout {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 32px 0;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .intro-title h2 {
    font-size: 17px;
  }

  .intro-text p {
    font-size: 11px;
  }

  .section-title {
    margin-bottom: 20px;
    padding-top: 14px;
    font-size: 12px;
  }

  .gallery-item {
    flex: 0 0 100%;
    margin-right: 0;
  }

  .gallery-item img {
    height: 340px;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .slider-btn.prev {
    left: 6px;
  }

  .slider-btn.next {
    right: 6px;
  }

  .feature-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-text h3 {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .feature-text p {
    font-size: 12px;
    line-height: 1.9;
  }

  .footer {
    padding: 28px 0 40px;
    font-size: 11px;
    line-height: 1.7;
  }

  /* footer 내부 글자 크기 */
  .footer-inner h2 {
    font-size: 16px;
    margin-bottom: 14px;
  }

  .footer-links {
    gap: 20px;
    margin-bottom: 14px;
  }

  .footer-links a {
    font-size: 11px;
  }

  .footer-info p,
  .copyright {
    font-size: 10px;
    line-height: 1.7;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
