@font-face {
  font-family: "SF Pro";
  src: url("../font/font/SF-Pro.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro";
  src: url("../font/font/SF-Pro-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ========== 남성역 헤머튼 퍼스널 컬러 (브랜드 팔레트) ========== */
  /* 메인 컬러 — 헤더·푸터·버튼·링크 강조·문의 CTA */
  --color-main: #0a1938;
  /* 메인 RGB — rgba(var(--color-main-rgb), alpha) 용 */
  --color-main-rgb: 10, 25, 56;
  /* 진한 톤 — 호버·보조 버튼·제목 강조 */
  --color-main-deep: #050f22;
  /* 연한 톤 — 카드 보더·모달 테두리 등 */
  --color-main-muted: #142d58;
  /* 배경 틴트 — 폼·서브 배경 (메인 8% 불투명에 가까운 베이지 혼합 대체용 단색) */
  --color-surface-brand: #f4f6fa;

  /* 하위 호환 · 컴포넌트에서 그대로 사용 중 */
  --brown: var(--color-main);
  --brown-deep: var(--color-main-deep);
  --brown-header: var(--color-main);
  --accent: var(--color-main);

  --mega-bg: #ffffff;
  --mega-text: #111111;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  /* PC 헤더 네비·메가메뉴 공통 간격·폭 */
  --header-nav-gap: 3rem;
  --header-nav-cluster: min(920px, calc(100vw - 4rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1a1a;
  background: #fff;
}

img,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== PC / Mobile visibility ========== */
.header--desktop,
.hero--desktop,
.footer--desktop {
  display: none;
}

.header--mobile,
.footer--mobile,
.mobile-home {
  display: block;
}

@media (min-width: 1025px) {
  .header--desktop,
  .hero--desktop,
  .footer--desktop {
    display: block;
  }

  .header--mobile,
  .footer--mobile,
  .mobile-home {
    display: none;
  }
}

/* 모바일 하단 고정 배너 → 방문예약 (m-banner.png) */
.m-fixed-banner {
  display: none;
}

@media (max-width: 1024px) {
  :root {
    --m-banner-slot: 60px;
  }

  .m-fixed-banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom) 0;
    min-height: calc(env(safe-area-inset-bottom) + var(--m-banner-slot));
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    line-height: 0;
  }

  .m-fixed-banner__link {
    display: block;
    flex-shrink: 0;
    width: 100%;
    overflow: hidden;
    background: #0a1938;
    -webkit-tap-highlight-color: transparent;
  }

  .m-fixed-banner__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }

  .m-fixed-banner img {
    display: block;
    width: 100%;
    max-width: none;
    height: var(--m-banner-slot);
    max-height: var(--m-banner-slot);
    object-fit: contain;
    object-position: center center;
    pointer-events: none;
    vertical-align: bottom;
  }

  /* 고정 배너 높이만큼 본문 하단 여백 (푸터·콘텐츠 가림 방지) */
  body {
    padding-bottom: calc(env(safe-area-inset-bottom) + var(--m-banner-slot));
  }
}

/* ========== PC Header ========== */
.header--desktop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: 1rem 2rem;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease;
  overflow: visible;
}

/* 스크롤 또는 네비(·메가메뉴) 호버 시 동일 스타일 */
.header--desktop.is-scrolled,
.header--desktop:has(.header__nav-wrap:hover),
.header--desktop:has(.header__nav-wrap:focus-within) {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.06);
}

.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__logo img {
  display: block;
  max-height: 44px;
  width: auto;
  transition: filter 0.28s ease;
  /* 히어로 위: 배경과 살짝 분리 */
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.header--desktop.is-scrolled .header__logo img,
.header--desktop:has(.header__nav-wrap:hover) .header__logo img,
.header--desktop:has(.header__nav-wrap:focus-within) .header__logo img {
  filter: none;
}

.header__nav-wrap {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

/* 네비 5열 = 메가메뉴 5열과 동일 그리드로 정렬 */
.header__nav-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--header-nav-gap);
  row-gap: 0;
  width: 100%;
  max-width: var(--header-nav-cluster);
  margin: 0 auto;
  justify-items: center;
}

.header__nav {
  display: contents;
}

.header__nav-list {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav-list > li {
  min-width: 0;
  text-align: center;
}

.header__nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  cursor: default;
  padding: 0.5rem 0.85rem;
  display: inline-block;
  transition: color 0.28s ease, text-shadow 0.28s ease;
}

.header--desktop.is-scrolled .header__nav-link,
.header--desktop:has(.header__nav-wrap:hover) .header__nav-link,
.header--desktop:has(.header__nav-wrap:focus-within) .header__nav-link {
  color: var(--brown-deep);
  text-shadow: none;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--brown);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.header__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.header__cta-tel {
  white-space: nowrap;
}

/* Mega menu — 전체 너비(뷰포트) 한 패널, 호버 시 자연스럽게 펼침 */
.header__nav-wrap:hover .mega,
.header__nav-wrap:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--mega-bg);
  color: var(--mega-text);
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 0;
  z-index: 120;
}

/* 모바일: 100vw 브레이크아웃이 가로 스크롤·우측 빈틈을 만들 수 있어 무력화 (PC 헤더는 숨김) */
@media (max-width: 1024px) {
  .mega {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    left: 0;
  }
}

/* 호버 끊김 방지 */
.mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.mega__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--header-nav-gap);
  row-gap: 0;
  align-items: start;
  width: 100%;
  max-width: var(--header-nav-cluster);
  margin: 0 auto;
  padding: 1.75rem 2rem 2.25rem;
  box-sizing: border-box;
}

.mega__col {
  padding: 0;
  min-height: 100%;
}

.mega__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega__sub li {
  margin-bottom: 0.5rem;
}

.mega__sub li:last-child {
  margin-bottom: 0;
}

.mega__sub a {
  font-size: 0.95rem;
  color: var(--brown-deep);
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.mega__sub a:hover {
  color: #fff;
  background: var(--brown);
}

/* ========== PC Hero (모바일에서는 표시 안 함 — display:flex가 none을 덮지 않도록 미디어쿼리 안에만 배치) */
@media (min-width: 1025px) {
  .hero--desktop {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 6rem 3rem 4rem;
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    background: url("../images/main-bg.jpg") center / cover no-repeat;
    z-index: 0;
    transform: scale(1.12);
    will-change: transform;
    animation: hero-bg-zoom-out 2.8s ease-out forwards;
  }

  @keyframes hero-bg-zoom-out {
    from {
      transform: scale(1.12);
    }

    to {
      transform: scale(1);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__bg {
      animation: none;
      transform: none;
      will-change: auto;
    }
  }

  .hero__content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .hero__card {
    max-width: min(800px, 92vw);
    padding: 2rem 2.25rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .hero__card-logo {
    margin-bottom: 0.75rem;
  }

  .hero__strong {
    margin: 0 0 1rem;
    font-size: 1.85rem;
    line-height: 1.35;
    font-weight: 800;
    color: var(--brown-deep);
    word-break: keep-all;
    white-space: nowrap;
  }

  .hero__sub {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    color: #555;
    word-break: keep-all;
  }

  @media (max-width: 1100px) {
    .hero__strong {
      font-size: 1.55rem;
      white-space: normal;
    }
    .hero__sub {
      font-size: 1.05rem;
    }
  }
}

/* ========== Mobile Header ========== */
.header--mobile {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--brown-header);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.header-m__inner {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.header-m__menu-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
}

.header-m__menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-m__menu-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

.header-m__logo {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-m__logo img {
  margin: 0 auto;
  max-height: 40px;
  width: auto;
}

.header-m__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
}

.header-m__phone-num {
  letter-spacing: -0.02em;
}

@media (max-width: 380px) {
  .header-m__phone-num {
    font-size: 0.68rem;
  }
}

.header-m__interest {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #ffffff;
  color: var(--brown-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  max-width: 100%;
}

.header-m__interest:active {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 380px) {
  .header-m__interest {
    padding: 0.45rem 0.55rem;
    font-size: 0.68rem;
  }
}

.header__cta-icon--sm {
  width: 26px;
  height: 26px;
  font-size: 0;
}

/* ========== Drawer ========== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(88vw, 320px);
  height: 100%;
  background: #faf8f6;
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: var(--brown-header);
  color: #fff;
}

.drawer__title {
  font-weight: 700;
  font-size: 1rem;
}

.drawer__close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown-deep);
  cursor: pointer;
  text-align: left;
}

.accordion__chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.accordion__item.is-open .accordion__chev {
  transform: rotate(225deg);
  margin-top: 4px;
}

.accordion__panel {
  display: none;
  flex-direction: column;
  padding: 0 1.1rem 0.85rem 1.5rem;
  gap: 0.5rem;
}

.accordion__item.is-open .accordion__panel {
  display: flex;
}

.accordion__panel a {
  font-size: 0.9rem;
  color: #333;
  padding: 0.25rem 0;
}

.accordion__panel a:hover {
  color: var(--accent);
}

.drawer__actions {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--outline {
  background: #fff;
  color: var(--brown-deep);
  border: 2px solid var(--brown);
}

.btn--gold {
  background: var(--brown);
  color: #fff;
}

.btn--dark {
  background: var(--brown-deep);
  color: #fff;
}

/* ========== Mobile sections & inquiry ========== */
.m-section {
  margin: 0;
  padding: 0;
  background: #fff;
}

/* 영상: 폭 100%, 세로는 원본 비율(잘림 없음). 모바일 홈 세부는 미디어쿼리 */
.m-section > video,
.m-section--stack > video {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  object-fit: contain;
  object-position: center center;
  vertical-align: top;
}

.m-section--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.m-section--stack > video {
  flex: 0 1 auto;
  align-self: stretch;
}

.inquiry--mobile {
  padding: 1.25rem 1rem 1.5rem;
  background: #f5f2ef;
}

/* 방문예약: 이미지(약 600×420) + 문의 폼 */
.visit-page {
  max-width: 640px;
  margin: 0 auto;
}

.visit-page__figure {
  margin: 0 auto 1.5rem;
  max-width: 600px;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(21, 42, 82, 0.06);
}

.visit-page__figure img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  margin: 0 auto;
}

.inquiry--visit {
  padding: 1.25rem 1rem 1.5rem;
  background: #f5f2ef;
  border-radius: 8px;
}

.inquiry__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brown-deep);
  text-align: center;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 480px;
  margin: 0 auto;
}

.inquiry-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #333;
}

.inquiry-form__row span {
  font-weight: 600;
}

.inquiry-form__row input,
.inquiry-form__row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.inquiry-form__row textarea {
  resize: vertical;
  min-height: 80px;
}

.inquiry-form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #444;
}

.inquiry-form__check input {
  margin-top: 0.2rem;
}

.inquiry-form__privacy-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  justify-content: center;
}

.inquiry-form__privacy-wrap .inquiry-form__check {
  flex: 1 1 auto;
  min-width: 0;
}

.inquiry-form__privacy-view {
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.inquiry-form__privacy-view:hover {
  color: var(--brown);
}

.btn--submit {
  margin-top: 0.25rem;
  background: var(--brown);
  color: #fff;
  padding: 0.85rem;
  font-size: 1rem;
}

.btn--submit:hover {
  filter: brightness(1.05);
}

/* 개인정보취급방침 모달 (문의 폼) */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.privacy-modal[hidden] {
  display: none !important;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.55);
  backdrop-filter: blur(2px);
}

.privacy-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(85vh, 560px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fff 0%, #faf7f3 100%);
  border: 1px solid rgba(21, 42, 82, 0.18);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.privacy-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 6px;
  background: rgba(21, 42, 82, 0.08);
  color: var(--brown-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.privacy-modal__close:hover {
  background: rgba(21, 42, 82, 0.15);
}

.privacy-modal__title {
  margin: 0;
  padding: 1.25rem 2.75rem 0.75rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brown-deep);
  border-bottom: 1px solid rgba(21, 42, 82, 0.1);
}

.privacy-modal__body {
  padding: 1rem 1.25rem 1.35rem;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #333;
}

.privacy-modal__lead {
  margin: 0 0 1rem;
  color: #444;
}

.privacy-modal__section {
  margin-bottom: 1.1rem;
}

.privacy-modal__section:last-child {
  margin-bottom: 0;
}

.privacy-modal__h {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brown-deep);
}

.privacy-modal__list {
  margin: 0;
  padding-left: 1.15rem;
}

.privacy-modal__list li {
  margin-bottom: 0.25rem;
}

body.modal-open {
  overflow: hidden;
}

/* 문의 결과 모달 */
.inquiry-result-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.inquiry-result-modal[hidden] {
  display: none !important;
}

.inquiry-result-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.6);
  backdrop-filter: blur(3px);
}

.inquiry-result-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #faf7f3 100%);
  border: 1px solid rgba(21, 42, 82, 0.15);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.inquiry-result-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.inquiry-result-modal__icon--success {
  background: linear-gradient(145deg, #2d8a4e 0%, #1f6b3a 100%);
  box-shadow: 0 8px 20px rgba(45, 138, 78, 0.35);
}

.inquiry-result-modal__icon--error {
  background: linear-gradient(145deg, #c45c4a 0%, #a33d2e 100%);
  box-shadow: 0 8px 20px rgba(196, 92, 74, 0.35);
}

.inquiry-result-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brown-deep);
}

.inquiry-result-modal__msg {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
  white-space: pre-line;
}

.inquiry-result-modal__btn {
  width: 100%;
  max-width: 200px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: var(--brown);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.inquiry-result-modal__btn:hover {
  filter: brightness(1.08);
}

/* Type slider — 6-1 / 6-2 (크로스페이드, 전환 구간을 넉넉히) */
.m-section--carousel {
  overflow: hidden;
  background: #000;
}

.type-slider {
  position: relative;
  width: 100%;
  line-height: 0;
}

.type-slider--fade img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.type-slider--fade img:first-child {
  position: relative;
  z-index: 1;
  animation: typeFadeA 12s ease-in-out infinite;
}

.type-slider--fade img:last-child {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  animation: typeFadeB 12s ease-in-out infinite;
}

@keyframes typeFadeA {
  0%,
  32% {
    opacity: 1;
  }
  38%,
  48% {
    opacity: 0;
  }
  54%,
  86% {
    opacity: 0;
  }
  92%,
  100% {
    opacity: 1;
  }
}

@keyframes typeFadeB {
  0%,
  32% {
    opacity: 0;
  }
  38%,
  48% {
    opacity: 1;
  }
  54%,
  86% {
    opacity: 1;
  }
  92%,
  100% {
    opacity: 0;
  }
}

.m-section--type-carousel {
  margin: 0;
  padding: 0;
  background: #0a1938;
}

.m-type-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.m-type-carousel__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.m-type-carousel__track {
  display: flex;
  width: 500%;
  transition: transform 0.45s ease;
  will-change: transform;
}

.m-type-carousel__slide {
  flex: 0 0 20%;
  width: 20%;
  max-width: 20%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

.m-type-carousel__slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: top;
}

.m-type-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 50%;
  background: rgba(10, 25, 56, 0.72);
  color: #f5e6b8;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.m-type-carousel__arrow:hover,
.m-type-carousel__arrow:focus-visible {
  background: rgba(10, 25, 56, 0.9);
  border-color: rgba(212, 175, 55, 0.85);
  outline: none;
}

.m-type-carousel__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.m-type-carousel__arrow--prev {
  left: 0.65rem;
}

.m-type-carousel__arrow--next {
  right: 0.65rem;
}

.inquiry--mobile-home {
  margin: 0;
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .type-slider--fade img {
    animation: none !important;
  }

  .type-slider--fade img:last-child {
    opacity: 0;
  }

  .m-type-carousel__track {
    transition: none !important;
  }

}

/* ========== Footer ========== */
.footer {
  background: var(--brown-deep);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.5rem 1.25rem 2rem;
}

@media (max-width: 1024px) {
  .footer--mobile.footer {
    padding-bottom: 1.25rem;
  }
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 2rem;
}

.footer__logo {
  flex-shrink: 0;
  display: block;
  width: auto;
  height: auto;
  max-height: 48px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

/* 모바일 푸터만: 이전처럼 로고 흰 플레이트 */
.footer--mobile .footer__logo-wrap {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.footer--mobile .footer__logo-wrap .footer__logo {
  filter: none;
  max-height: 32px;
}

.footer__info {
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer__info p {
  margin: 0;
}

.footer__label {
  display: inline-block;
  min-width: 5.5rem;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 0.35rem;
}

.footer__value {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.footer-site-anchor {
  height: 0;
  overflow: hidden;
  scroll-margin-top: 5.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

@media (min-width: 1025px) {
  .footer__inner {
    justify-content: space-between;
    align-items: center;
  }

  .footer__logo {
    max-height: 52px;
  }
}

body.drawer-open {
  overflow: hidden;
}

/* ========== 서브페이지: 사업개요 등 ========== */
.sub-main {
  padding-top: 5.25rem;
  min-height: 50vh;
  background: #f7f5f2;
}

@media (max-width: 1024px) {
  .sub-main {
    padding-top: 0;
  }
}

.sub-page-head {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  min-height: 260px;
  color: #fff;
}

/* 상단 배경: images/detail-bg.webp */
.sub-page-head__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--brown-deep);
  background-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(21, 42, 82, 0.55)),
    url("../images/detail-bg.webp");
  background-size: cover;
  background-position: center;
}

.sub-page-head__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  box-sizing: border-box;
}

.sub-page-head__breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.sub-page-head__breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sub-page-head__breadcrumb a:hover {
  text-decoration: underline;
}

.sub-page-head__breadcrumb-sep {
  display: inline-block;
  margin: 0 0.4rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

.sub-page-head__breadcrumb-current {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.sub-page-head__title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.sub-page-head__tagline {
  margin: 0 auto;
  max-width: 38em;
  font-size: clamp(0.88rem, 1.45vw, 1.02rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1025px) {
  .sub-page-head {
    min-height: 360px;
  }

  .sub-page-head__inner {
    min-height: 360px;
    padding: 3rem 2rem 3.25rem;
  }

  .sub-page-head__breadcrumb {
    font-size: 0.92rem;
    margin-bottom: 1.35rem;
  }

  .sub-page-head__title {
    margin-bottom: 1.15rem;
  }
}

@media (min-width: 1280px) {
  .sub-page-head {
    min-height: 420px;
  }

  .sub-page-head__inner {
    min-height: 420px;
  }
}

.sub-page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.sub-page-media {
  position: relative;
}

/* 중분류 탭: 이미지 위 직사각 플레이트(plate) 안에서만 사용 */
.sub-page-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  width: 100%;
  max-width: none;
}

.sub-page-tabs__btn {
  flex: 1 1 auto;
  min-width: 6.5rem;
  padding: 0.55rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brown-deep);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(21, 42, 82, 0.22);
  border-radius: 4px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sub-page-tabs__btn:hover {
  background: #fff;
  border-color: rgba(21, 42, 82, 0.38);
}

.sub-page-tabs__btn.is-active {
  color: #fff;
  background: var(--brown-deep);
  border-color: var(--brown-deep);
  box-shadow: 0 4px 16px rgba(21, 42, 82, 0.22);
  font-weight: 600;
}

@media (min-width: 1025px) {
  .sub-page-tabs__btn {
    font-size: 0.86rem;
    padding: 0.58rem 1.1rem;
    min-width: 7rem;
  }
}

/* 세대안내 > 타입안내: 59A·59B·84A·84B 서브 탭 */
.unit-type-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0 0.25rem;
}

.unit-type-tabs .sub-page-tabs__btn {
  flex: 0 1 auto;
  min-width: 4.25rem;
  padding: 0.48rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.unit-type-panel[hidden] {
  display: none !important;
}

.unit-type-panel {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sub-page-panels {
  width: 100%;
}

.sub-page-panel[hidden] {
  display: none !important;
}

/* 이미지 위: 직사각 플레이트 + 사업개요 */
.sub-page-media__deco {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.sub-page-media__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 280px);
  padding: 0.85rem 2rem;
  border: 1px solid rgba(21, 42, 82, 0.28);
  border-top: 3px solid #7a5c45;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f3 55%, #f5f0ea 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 36px rgba(21, 42, 82, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 플레이트 안에 탭만 넣을 때(제목 대신 버튼 행) */
.sub-page-media__plate--with-tabs {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: min(100%, 640px);
  padding: 1rem 1.15rem 1.05rem;
}

.sub-page-media__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--brown-deep);
  line-height: 1.3;
}

@media (min-width: 1025px) {
  .sub-page-media__deco {
    margin-bottom: 2rem;
  }

  .sub-page-media__plate {
    min-width: 320px;
    padding: 1rem 2.75rem 1.05rem;
    border-top-width: 4px;
  }

  .sub-page-media__plate--with-tabs {
    min-width: min(100%, 720px);
    padding: 1.1rem 1.5rem 1.1rem;
  }

  .sub-page-media__title {
    font-size: 1.4rem;
    letter-spacing: 0.48em;
    text-indent: 0.48em;
  }
}

.sub-page-figure {
  margin: 0 0 1.5rem;
  padding: 0;
  background: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(21, 42, 82, 0.06);
}

.sub-page-figure:last-child {
  margin-bottom: 0;
}

.sub-page-figure img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* 타입안내: t-1~t-5 세로 카드 중앙 정렬 */
.sub-page-figure--unit-type {
  width: 100%;
  max-width: min(100%, 420px);
  margin: 0 auto 1.5rem;
  background: #0a1938;
  border: none;
  box-shadow: 0 10px 36px rgba(10, 25, 56, 0.18);
}

.sub-page-figure--unit-type:last-child {
  margin-bottom: 0;
}

.sub-page-figure--unit-type img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* 사업개요·프리미엄·단지안내·세대안내 PC: 네비 텍스트 진한 갈색 + 헤더 밝은 배경 */
@media (min-width: 1025px) {
  .page-overview .header--desktop,
  .page-premium .header--desktop,
  .page-complex .header--desktop,
  .page-unit .header--desktop,
  .page-visit .header--desktop {
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.06);
  }

  .page-overview .header__logo img,
  .page-premium .header__logo img,
  .page-complex .header__logo img,
  .page-unit .header__logo img,
  .page-visit .header__logo img {
    filter: none;
  }

  .page-overview .header--desktop .header__nav-link,
  .page-premium .header--desktop .header__nav-link,
  .page-complex .header--desktop .header__nav-link,
  .page-unit .header--desktop .header__nav-link,
  .page-visit .header--desktop .header__nav-link {
    color: var(--brown-deep);
    text-shadow: none;
  }

  .page-overview .header--desktop.is-scrolled .header__nav-link,
  .page-overview .header--desktop:has(.header__nav-wrap:hover) .header__nav-link,
  .page-overview .header--desktop:has(.header__nav-wrap:focus-within) .header__nav-link,
  .page-premium .header--desktop.is-scrolled .header__nav-link,
  .page-premium .header--desktop:has(.header__nav-wrap:hover) .header__nav-link,
  .page-premium .header--desktop:has(.header__nav-wrap:focus-within) .header__nav-link,
  .page-complex .header--desktop.is-scrolled .header__nav-link,
  .page-complex .header--desktop:has(.header__nav-wrap:hover) .header__nav-link,
  .page-complex .header--desktop:has(.header__nav-wrap:focus-within) .header__nav-link,
  .page-unit .header--desktop.is-scrolled .header__nav-link,
  .page-unit .header--desktop:has(.header__nav-wrap:hover) .header__nav-link,
  .page-unit .header--desktop:has(.header__nav-wrap:focus-within) .header__nav-link,
  .page-visit .header--desktop.is-scrolled .header__nav-link,
  .page-visit .header--desktop:has(.header__nav-wrap:hover) .header__nav-link,
  .page-visit .header--desktop:has(.header__nav-wrap:focus-within) .header__nav-link {
    color: var(--brown-deep);
    text-shadow: none;
  }
}

/* ========== 모바일: 좌우 여백 없이 풀폭, 가로 스크롤 방지 ========== */
@media (max-width: 1024px) {
  .header--mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
  }

  html {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* yongin-iaan index와 동일: 헤더(고정+safe-area) 높이만큼만 밀어 여분 띠(흰/검) 최소화 */
  main {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding-top: calc(env(safe-area-inset-top, 0px) + 4.1rem);
  }

  .sub-main {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .mobile-home {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .m-section {
    max-width: 100%;
    min-width: 0;
  }

  .mobile-home .m-section:has(> video),
  .mobile-home .m-section--stack:has(> video) {
    margin-inline: 0;
    padding-inline: 0;
    background: #000;
  }

  .mobile-home .m-section > img,
  .mobile-home .m-section--stack > img,
  .mobile-home .m-type-carousel__slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* 모바일 홈 mp4: 가로 100%·원본 비율 전체 표시(cover/aspect 고정 시 상단이 잘리거나 헤더와 겹쳐 보일 수 있음) */
  .mobile-home .m-section > video,
  .mobile-home .m-section--stack > video {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    -webkit-transform: translateZ(0);
  }

  .m-fixed-banner,
  .m-fixed-banner__link {
    max-width: 100%;
  }

  .footer--mobile .footer__inner {
    max-width: 100%;
    min-width: 0;
  }

  .sub-page-body {
    max-width: 100%;
    box-sizing: border-box;
  }

  .sub-page-tabs {
    max-width: 100%;
    box-sizing: border-box;
  }

  .sub-page-tabs__btn {
    min-width: 0;
    flex: 1 1 calc(50% - 0.3rem);
  }
}

/* ========== 문의 접수 로딩 ========== */
.inquiry-loading {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  background: rgba(2, 8, 23, 0.42);
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease;
}
.inquiry-loading.is-active { pointer-events: auto; opacity: 1; }
.inquiry-loading__panel {
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 22px;
  color: var(--accent, #111);
  font-weight: 800;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  text-align: center;
}
.inquiry-loading__hint { margin: 10px 0 0; font-size: .88rem; font-weight: 500; color: #666; }
.inquiry-loading__bar { position: relative; height: 8px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: #edf0f5; }
.inquiry-loading__bar i {
  position: absolute; inset: 0 auto 0 0; width: 42%; border-radius: inherit;
  background: linear-gradient(135deg, var(--accent, #111), #1a2a4a);
  animation: inquiryLoadingBar .9s ease-in-out infinite;
}
.inquiry-form.is-submitting { pointer-events: none; }
body.inquiry-loading .m-fixed-banner { pointer-events: none; }
@keyframes inquiryLoadingBar { 0% { transform: translateX(-120%); } 100% { transform: translateX(280%); } }

