/* =========================================================
   분양 홈페이지 · 프리미엄형 (다중 페이지)
   현장별 톤은 아래 :root 변수만 바꾼다.
   ========================================================= */
:root {
  --brand: #1f2a36;        /* 메인 컬러 (헤더 버튼, 제목 강조, 푸터) */
  --brand-dark: #141b23;   /* 메인 컬러 어두운 버전 */
  --accent: #a8875a;       /* 포인트 컬러 (CTA 버튼, 강조 수치) */
  --accent-ink: #ffffff;   /* 포인트 컬러 위 글자색 */
  --visit: #6e5636;        /* 방문예약 박스 색 (관심고객 박스는 --brand) */
  --header-bg: linear-gradient(90deg, rgba(34,38,43,.94) 0%, rgba(72,77,84,.88) 45%, rgba(98,103,110,.86) 70%, rgba(44,48,54,.94) 100%); /* 상단바 회색 그라데이션 */
  --header-point: #ffe36e; /* 상단바 전화번호 · 현재 메뉴 밑줄 */

  --ink: #1d1d1f;
  --ink-soft: #5f636a;
  --ink-mute: #8b8f96;
  --line: #e4e2dd;
  --bg: #ffffff;
  --bg-tint: #f6f3ee;      /* 섹션 교차 배경 (웜그레이) */
  --ph: #e7e3dc;           /* 이미지 자리표시 배경 */

  --radius: 8px;
  --container: 1200px;
  --narrow: 960px;
  --header-h: 76px;
  --quickbar-h: 60px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (max-width: 900px) { :root { --header-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; word-break: keep-all; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--narrow); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: opacity .2s, background-color .2s, color .2s;
}
.btn:hover { opacity: .88; }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--brand); opacity: 1; }

/* ---------- 이미지 자리표시 ---------- */
.media { position: relative; background: var(--ph); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img { visibility: hidden; }
.media.is-missing::after {
  content: attr(data-label); position: absolute; inset: 10px;
  display: grid; place-items: center; padding: 12px; text-align: center;
  border: 1px dashed #c4bdb1; border-radius: 4px; color: #8a8377; font-size: 14px;
}

/* 글자까지 들어간 완성형 이미지(시행사 홍보물 등): 자르지 않고 원본 비율 그대로 */
.media--full { background: none; }
.media--full img { height: auto; object-fit: initial; }
.media--full.is-missing { aspect-ratio: 16 / 9; background: var(--ph); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.notice { margin-top: 14px; font-size: 13px; color: var(--ink-mute); line-height: 1.55; }

/* ---------- 섹션 공통 ---------- */
main { padding-top: var(--header-h); }
.section { padding: 120px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__eyebrow { font-size: 15px; font-weight: 500; color: var(--accent); letter-spacing: .02em; }
.section__title { margin-top: 10px; font-size: 38px; font-weight: 400; line-height: 1.3; letter-spacing: -.03em; color: var(--ink); }
.section__title b { font-weight: 800; color: var(--brand); }
.section__title::after { content: ""; display: block; width: 40px; height: 2px; margin: 24px auto 0; background: var(--brand); }
.section__desc { max-width: 720px; margin: 24px auto 0; font-size: 17px; color: var(--ink-soft); }
.section__more { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .section__title { font-size: 27px; }
  .section__title::after { margin-top: 18px; }
  .section__desc { font-size: 15px; text-align: left; }
}

/* ---------- 프리미엄 · 커뮤니티 (통이미지) ---------- */
.feature__img.media--full { max-width: 1100px; margin-left: auto; margin-right: auto; }
.feature__img.media--full + .notice { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* ---------- 3. 사업개요 ---------- */
.overview__img { aspect-ratio: 16 / 8; border-radius: var(--radius); margin-bottom: 40px; }
.spec-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--brand); font-size: 16px; }
.spec-table th, .spec-table td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 200px; background: var(--bg-tint); font-weight: 700; color: var(--brand); text-align: center; }
.section--tint .spec-table th { background: #ece7df; }
.section--tint .spec-table td { background: #fff; }
@media (max-width: 900px) {
  .overview__img { margin-bottom: 24px; }
  .spec-table { font-size: 14px; }
  .spec-table th, .spec-table td { padding: 13px 12px; }
  .spec-table th { width: 92px; }
}

/* ---------- 4. 세대안내 ---------- */
.units__lead { margin-bottom: 28px; text-align: center; font-size: 17px; font-weight: 600; color: var(--brand); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tabs__btn {
  min-width: 84px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 15px; font-weight: 700; color: var(--ink-soft); transition: .2s;
}
.tabs__btn:hover { border-color: var(--brand); color: var(--brand); }
.tabs__btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.type-card { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.type-card__info { display: flex; flex-direction: column; justify-content: center; padding: 48px 40px; background: var(--brand); color: #fff; }
.type-card__name { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.type-card__name small { margin-left: 4px; font-size: 24px; font-weight: 600; }
.type-card__count { display: inline-block; align-self: flex-start; margin-top: 20px; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 15px; font-weight: 700; }
.type-card__spec { margin-top: 28px; font-size: 15px; }
.type-card__spec div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.18); }
.type-card__spec dt { opacity: .75; }
.type-card__spec dd { font-weight: 700; }
/* 평면도는 도면만 잘라 넣고(상단 홍보 영역·하단 주석 제외) 칸 너비에 맞춰 크게 보여준다 */
.type-card__plan { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; padding: 32px; background: #fff; }
.type-card__plan img { min-width: 0; }
.type-card__plan img { width: 100%; max-width: 960px; height: auto; object-fit: contain; }
.type-card__plan.is-missing { aspect-ratio: 1 / 1; background: var(--ph); }
/* 평면도 이미지에 면적·세대수가 이미 들어 있을 때: 정보 칸 없이 이미지만 */
.type-card--image { display: block; max-width: 900px; margin: 0 auto; border: 0; border-radius: 0; }
@media (max-width: 900px) {
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px 24px; padding: 0 20px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__btn { flex: none; min-width: 72px; height: 40px; font-size: 14px; }
  .type-card { grid-template-columns: 1fr; }
  .type-card__info { padding: 28px 24px; }
  .type-card__name { font-size: 44px; }
  .type-card__spec { margin-top: 20px; }
  .type-card__plan { padding: 12px; }
}

/* ---------- 7. 관심고객 등록 · 방문예약 (한 줄 박스 2개) ---------- */
#apply .section__desc { text-align: center; }
.apply__tel { font-weight: 800; color: var(--brand); }
.apply { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.apply__box {
  --box-bg: var(--brand); --box-btn: var(--accent); --box-btn-ink: var(--accent-ink);
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--box-bg); color: #fff; box-shadow: 0 20px 50px rgba(20,27,35,.12);
}
.apply__box--visit { --box-bg: var(--visit); --box-btn: #ffffff; --box-btn-ink: var(--visit); }
.apply__head { padding: 40px 40px 0; }
.apply__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; opacity: .65; }
.apply__title { margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.apply__desc { margin-top: 8px; font-size: 15px; opacity: .8; }
.apply__info { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; }
.apply__info div { display: flex; gap: 12px; margin-top: 4px; }
.apply__info dt { flex: none; width: 70px; opacity: .65; }
.apply__info a { text-decoration: underline; text-underline-offset: 3px; }
.apply__submit { margin-top: auto; background: var(--box-btn); color: var(--box-btn-ink); }
@media (max-width: 900px) {
  .apply { grid-template-columns: 1fr; gap: 20px; }
  .apply__head { padding: 28px 22px 0; }
  .apply__title { font-size: 25px; }
}

.form { padding: 48px 44px; }
.form__row { margin-bottom: 18px; }
.form__row > label, .form__label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.form__row > label em, .form__label em { color: var(--accent); font-style: normal; }
.form input[type="text"], .form input[type="tel"], .form input[type="date"], .form select {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 16px;
}
.form select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b8f96' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.form input:focus, .form select:focus { outline: none; border-color: var(--brand); }
.form [aria-invalid="true"] { border-color: #d14343 !important; }
.form__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__agree { margin: 26px 0 20px; }
.privacy-box {
  height: 120px; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-tint); font-size: 13px; color: var(--ink-soft); line-height: 1.6;
}
.privacy-box li { margin-top: 2px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.form__msg { min-height: 1.5em; margin-bottom: 10px; font-size: 14px; }
.form__msg.is-error { color: #d14343; }
.form__msg.is-ok { color: #2e7d4f; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* 색 박스 안의 폼 */
.apply__box .form { flex: 1; display: flex; flex-direction: column; padding: 28px 40px 40px; }
.apply__box .form__row > label, .apply__box .form__label { color: #fff; }
.apply__box .form__row > label em, .apply__box .form__label em { color: #f1d9b0; }
.apply__box .form input[type="text"], .apply__box .form input[type="tel"],
.apply__box .form input[type="date"], .apply__box .form select { border-color: transparent; color: var(--ink); }
.apply__box .form input:focus, .apply__box .form select:focus { border-color: var(--box-btn); box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.apply__box .privacy-box { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: rgba(255,255,255,.78); }
.apply__box .check { color: #fff; }
.apply__box .form__agree { margin-bottom: 16px; }
.apply__box .form__msg.is-error { color: #ffc2c2; }
.apply__box .form__msg.is-ok { color: #c6f1d3; }
@media (max-width: 900px) {
  .apply__box .form { padding: 22px 22px 28px; }
}

/* ---------- 푸터 ---------- */
.footer { padding: 56px 0 48px; background: var(--brand-dark); color: rgba(255,255,255,.62); font-size: 13px; }
.footer__name { font-size: 18px; font-weight: 800; color: #fff; }
.footer__links { display: flex; gap: 16px; margin-top: 14px; }
.footer__links button { padding: 0; border: 0; background: none; color: #fff; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer__info { margin-top: 16px; line-height: 1.9; }
.footer__info span + span::before { content: "|"; margin: 0 10px; opacity: .4; }
.footer__disclaimer { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); line-height: 1.7; }
.footer__copy { margin-top: 16px; opacity: .7; }
@media (max-width: 900px) {
  .footer { padding-bottom: calc(40px + var(--quickbar-h)); }
  .footer__info span { display: block; }
  .footer__info span + span::before { display: none; }
}

/* ---------- 개인정보처리방침 대화상자 ---------- */
.policy { width: min(640px, calc(100% - 32px)); max-height: 80vh; padding: 0; border: 0; border-radius: var(--radius); }
.policy::backdrop { background: rgba(0,0,0,.5); }
.policy__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.policy__head h2 { font-size: 18px; }
.policy__head button { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-soft); }
.policy__body { padding: 20px 24px 28px; font-size: 14px; color: var(--ink-soft); }
.policy__body h3 { margin: 18px 0 6px; font-size: 15px; color: var(--ink); }
.policy__body h3:first-child { margin-top: 0; }

/* ---------- 이벤트 팝업 (CONFIG.POPUP_ENABLED로 켜고 끔) ---------- */
.popup { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.55); }
.popup__box { width: min(420px, 100%); background: #fff; border-radius: var(--radius); overflow: hidden; }
.popup__img { display: block; }
.popup__img.is-missing { aspect-ratio: 4 / 5; }
.popup__body { padding: 28px 24px 20px; text-align: center; }
.popup__eyebrow { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.popup__title { margin: 8px 0 10px; font-size: 26px; line-height: 1.3; color: var(--brand); }
.popup__text { margin-bottom: 20px; font-size: 15px; color: var(--ink-soft); }
.popup__foot { display: flex; border-top: 1px solid var(--line); }
.popup__foot button { flex: 1; height: 48px; border: 0; background: #fff; font-size: 14px; color: var(--ink-soft); }
.popup__foot button + button { border-left: 1px solid var(--line); }

/* ---------- 모바일 하단 고정 바 ---------- */
.quickbar { display: none; }
@media (max-width: 900px) {
  .quickbar {
    position: fixed; inset: auto 0 0; z-index: 40; display: flex; height: var(--quickbar-h);
    background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .quickbar__item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--brand); }
  .quickbar__item svg { width: 18px; height: 18px; }
  .quickbar__item { font-size: 15px; }
  .quickbar__item--sub { background: var(--brand); color: #fff; }
  .quickbar__item--main { background: var(--accent); color: var(--accent-ink); }
}

/* ---------- 프리미엄형 현장 톤 (현장마다 이 값만 바꾼다) ---------- */
:root {
  --brand: #163a57;        /* 메인 컬러 (표 머리, 일정, 관심고객 박스) */
  --brand-dark: #0e2638;
  --accent: #a8875a;
  --visit: #6e5636;        /* 방문예약 박스 */
  --header-bg: #222222;    /* 상단바 */
  --gnb-active: #0b5d8f;   /* 상단 메뉴 선택 색 */
  --subnav-bg: #8a8a8a;    /* 하위 메뉴 바 */
  --header-point: #f3df6a; /* 상단바 전화번호 */
  --header-h: 64px;
  --subnav-h: 42px;
}
@media (max-width: 900px) { :root { --header-h: 58px; --subnav-h: 40px; } }
.footer__links a { color: #fff; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* =========================================================
   프리미엄형 전용 (다중 페이지)
   ========================================================= */

/* ---------- 헤더: 어두운 바 + 메인 메뉴 6개 + 하위 메뉴 ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: var(--header-bg); color: #fff;
}
.header__inner { display: flex; align-items: stretch; height: 100%; padding-left: 28px; }
.header__logo { display: inline-flex; align-items: center; gap: 10px; margin-right: 24px; font-size: 24px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.header__logo-mark { height: 22px; width: auto; }
.gnb { display: flex; margin: 0 auto; }
.gnb__item { position: static; }
.gnb__link {
  display: flex; align-items: center; height: 100%; padding: 0 22px;
  font-size: 16px; font-weight: 500; color: rgba(255,255,255,.88); white-space: nowrap; transition: background-color .2s, color .2s;
}
.gnb__item:hover > .gnb__link, .gnb__item:focus-within > .gnb__link, .gnb__item.is-current > .gnb__link { background: var(--gnb-active); color: #fff; }
/* 마우스를 올리면 그 메뉴의 하위 메뉴가 회색 바로 펼쳐진다 */
.gnb__sub {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 2;
  display: flex; justify-content: center; gap: 4px; height: var(--subnav-h); padding: 0 20px;
  background: var(--subnav-bg); opacity: 0; visibility: hidden; transition: opacity .15s;
}
.gnb__item:hover > .gnb__sub, .gnb__item:focus-within > .gnb__sub { opacity: 1; visibility: visible; }
.gnb__sub a { display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: #fff; white-space: nowrap; }
.gnb__sub a:hover { text-decoration: underline; text-underline-offset: 5px; }

.header__side { display: flex; align-items: stretch; margin-left: 12px; }
.header__tel {
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 30px;
  border-left: 1px solid rgba(255,255,255,.18); line-height: 1.15; white-space: nowrap;
}
.header__tel small { font-size: 12px; opacity: .85; }
.header__tel b { margin-top: 2px; font-size: 21px; font-weight: 600; color: var(--header-point); }
.header__tel svg { display: none; width: 18px; height: 18px; }
.header__cta {
  display: flex; align-items: center; gap: 7px; padding: 0 20px;
  border-left: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .2s;
}
.header__cta:hover { background: rgba(255,255,255,.08); }
.header__cta svg { width: 16px; height: 16px; }
.header__menu { display: none; }

/* 하위 페이지: 현재 메뉴의 하위 메뉴가 늘 보이는 회색 바 */
.subnav { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 40; height: var(--subnav-h); background: var(--subnav-bg); }
.subnav__list { display: flex; justify-content: center; height: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { position: relative; display: flex; align-items: center; padding: 0 16px; font-size: 14px; color: rgba(255,255,255,.9); white-space: nowrap; }
.subnav__list a.is-current { color: #fff; font-weight: 700; }
.subnav__list a.is-current::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; background: #fff; }

@media (max-width: 1500px) {
  .gnb__link { padding: 0 15px; }
  .header__tel { padding: 0 20px; }
  .header__cta { padding: 0 14px; }
}
/* 모바일 · 좁은 노트북: ☰ 전체 메뉴 */
@media (max-width: 1180px) {
  .header__logo { margin-right: auto; }
  .gnb {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; margin: 0;
    flex-direction: column; overflow-y: auto; padding: 8px 0 calc(var(--quickbar-h) + 20px);
    background: #262626; transform: translateX(100%); transition: transform .25s;
  }
  .gnb.is-open { transform: none; }
  .gnb__link { height: auto; padding: 17px 24px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 17px; font-weight: 700; justify-content: space-between; }
  .gnb__item.has-sub > .gnb__link::after { content: "+"; font-weight: 400; opacity: .6; }
  .gnb__item.has-sub.is-open > .gnb__link::after { content: "−"; }
  .gnb__item:hover > .gnb__link, .gnb__item:focus-within > .gnb__link { background: none; }
  .gnb__item.is-current > .gnb__link { background: none; color: var(--header-point); }
  .gnb__sub {
    position: static; display: none; flex-direction: column; gap: 0; height: auto; padding: 6px 0;
    opacity: 1; visibility: visible; background: #1c1c1c;
  }
  .gnb__item:hover > .gnb__sub, .gnb__item:focus-within > .gnb__sub { display: none; }
  .gnb__item.is-open > .gnb__sub { display: flex; }
  .gnb__sub a { padding: 12px 36px; font-size: 15px; color: rgba(255,255,255,.8); }
  .header__menu {
    display: grid; place-items: center; width: 44px; margin: 0 12px 0 4px; padding: 0; border: 0; background: none;
  }
  .header__menu span, .header__menu span::before, .header__menu span::after {
    display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s;
  }
  .header__menu span::before, .header__menu span::after { content: ""; position: absolute; left: 0; }
  .header__menu span::before { top: -7px; }
  .header__menu span::after { top: 7px; }
  .header__menu[aria-expanded="true"] span { background: transparent; }
  .header__menu[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .header__menu[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 900px) {
  .header__inner { padding-left: 16px; }
  .header__logo { font-size: 19px; gap: 8px; }
  .header__logo-mark { height: 18px; }
  .header__tel {
    flex-direction: row; align-self: center; width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.12);
  }
  .header__tel svg { display: block; color: var(--header-point); }
  .header__tel small, .header__tel b { display: none; }
  .header__cta { display: none; }
  .subnav__list { justify-content: flex-start; padding: 0 8px; }
  .subnav__list a { padding: 0 12px; font-size: 13px; }
}

/* ---------- 본문 위치 ---------- */
main { padding-top: var(--header-h); }
.sub-page main { padding-top: calc(var(--header-h) + var(--subnav-h)); }
html { scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 10px); }

/* ---------- 하위 페이지 공통 ---------- */
.sub-visual { position: relative; display: grid; place-items: center; height: 220px; overflow: hidden; background: var(--brand-dark); color: #fff; text-align: center; }
.sub-visual .media { position: absolute; inset: 0; background: transparent; }
.sub-visual .media.is-missing::after { display: none; }
.sub-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.45)); }
.sub-visual__text { position: relative; z-index: 1; }
.sub-visual__en { font-size: 13px; letter-spacing: .3em; opacity: .75; }
.sub-visual__title { margin-top: 6px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.page { padding: 70px 0 110px; }
.page__title { margin-bottom: 44px; text-align: center; font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.page__lead { max-width: 720px; margin: -24px auto 40px; text-align: center; font-size: 17px; color: var(--ink-soft); }
.page__body { max-width: 900px; margin: 0 auto; }
.page__body--wide { max-width: 1100px; }
.page__body > * + * { margin-top: 28px; }
.page .notice { text-align: left; }
@media (max-width: 900px) {
  .sub-visual { height: 150px; }
  .sub-visual__title { font-size: 26px; }
  .page { padding: 44px 0 80px; }
  .page__title { margin-bottom: 28px; font-size: 26px; }
  .page__lead { margin: -14px auto 28px; font-size: 15px; }
}

/* ---------- 분양일정 (왼쪽 제목 + 오른쪽 날짜 박스) ---------- */
.sched { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0 130px; color: #4a3b33; }
.sched::before { /* 배경: 메인 이미지를 흐리게 + 따뜻한 톤 */
  content: ""; position: absolute; inset: -60px; z-index: -2;
  background: url("../images/main-3.jpg") center / cover no-repeat; filter: blur(28px) saturate(.9);
}
.sched::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(214,232,226,.55), rgba(240,222,190,.55) 55%, rgba(222,176,138,.6)); }
.sched__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.sched__eyebrow { font-size: 64px; font-weight: 400; line-height: 1; letter-spacing: .01em; color: #4a3b33; }
.sched__title { margin-top: 20px; font-size: 20px; font-weight: 600; }
.sched__lead { margin-top: 8px; font-size: 15px; opacity: .8; }
.sched__body { padding-top: 120px; }
.sched__grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sched__item {
  flex: 1 1 calc((100% - (var(--cols, 3) - 1) * 10px) / var(--cols, 3));
  display: flex; flex-direction: column; justify-content: space-between; min-height: 142px; padding: 22px 20px;
  border: 1px solid rgba(74,59,51,.55); background: rgba(255,255,255,.12);
}
.sched__item time { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.sched__item span { align-self: flex-end; font-size: 16px; }
.sched .notice { margin-top: 20px; color: #5a4a40; }
@media (max-width: 900px) {
  .sched { padding: 56px 0 80px; }
  .sched__inner { grid-template-columns: 1fr; gap: 28px; }
  .sched__eyebrow { font-size: 40px; }
  .sched__body { padding-top: 0; }
  .sched__item { flex-basis: 100%; min-height: 104px; padding: 18px; }
  .sched__item time { font-size: 18px; }
}

/* 안내 카드 (오시는길 · 견본주택) */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card__label { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; }
.info-card__addr { margin-top: 14px; font-size: 18px; font-weight: 700; }
.info-card__meta { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.info-card__links { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .info-cards { grid-template-columns: 1fr; } .info-card { padding: 22px; } }

/* 영상 · 링크 박스 */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-grid .media { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.video-grid figcaption { margin-top: 10px; font-weight: 700; }
@media (max-width: 900px) { .video-grid { grid-template-columns: 1fr; } }
.cta-box { padding: 48px 24px; border-radius: var(--radius); background: var(--bg-tint); text-align: center; }
.cta-box p { margin-bottom: 20px; color: var(--ink-soft); }

/* ---------- 분양일정 달력 ---------- */
.calendar { max-width: 900px; margin: 0 auto; }
.calendar__month { margin-bottom: 16px; text-align: center; font-size: 22px; font-weight: 700; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--ink); }
.calendar__dow { padding: 12px 0; text-align: center; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); }
.calendar__dow:first-child, .calendar__day.is-sun .calendar__num { color: #e0663e; }
.calendar__dow:last-child, .calendar__day.is-sat .calendar__num { color: #2b8fd6; }
.calendar__day { position: relative; min-height: 104px; padding: 8px; border-bottom: 1px solid var(--line); }
.calendar__day.is-out .calendar__num { opacity: .3; }
.calendar__num { font-size: 15px; font-weight: 600; }
.calendar__event {
  display: block; margin-top: 6px; padding: 8px 6px; border-radius: 6px; background: var(--brand); color: #fff;
  text-align: center; font-size: 14px; font-weight: 800; line-height: 1.25;
}
.calendar__event small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--header-point); }
.calendar__list { display: none; }
@media (max-width: 900px) {
  .calendar__grid { display: none; }
  .calendar__list { display: block; border-top: 2px solid var(--ink); }
  .calendar__list li { display: flex; align-items: center; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .calendar__list time { flex: none; min-width: 110px; padding: 6px 10px; border-radius: 6px; background: var(--brand); color: var(--header-point); font-weight: 800; text-align: center; }
  .calendar__list b { font-size: 16px; }
}

/* ---------- 메인: 슬라이드 ---------- */
.slider { position: relative; height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 1000px; overflow: hidden; background: var(--brand-dark); }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s; }
.slider__slide.is-active { opacity: 1; z-index: 1; }
.slider__slide .media { width: 100%; height: 100%; background: var(--brand-dark); }
.slider__slide .media img { object-position: var(--focus, 50%) center; }
.slider__slide .media.is-missing::after { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.6); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 38px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.slider__dots button { width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); }
.slider__dots button.is-active { background: #fff; }
.slider__arrow {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.3); color: #fff; font-size: 22px; line-height: 1;
}
.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }
/* 메인(home)은 슬라이드 한 화면: 상단바 아래를 꽉 채운다 (푸터는 스크롤해야 보임) */
.home .slider { height: calc(100svh - var(--header-h)); min-height: 480px; max-height: none; }
@media (max-width: 900px) { .home .slider { height: calc(100svh - var(--header-h) - var(--quickbar-h)); min-height: 360px; } }
.slider__notice { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 3; text-align: center; font-size: 11px; color: rgba(255,255,255,.65); }
@media (max-width: 900px) {
  .slider { height: min(70svh, 560px); min-height: 0; }
  .slider__arrow { display: none; }
}

/* 메인: 핵심 수치 띠 */
.facts { background: var(--brand); color: #fff; }
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__list li { padding: 34px 10px; text-align: center; border-left: 1px solid rgba(255,255,255,.15); }
.facts__list li:first-child { border-left: 0; }
.facts__list strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.facts__list span { font-size: 14px; opacity: .75; }
@media (max-width: 900px) {
  .facts__list { grid-template-columns: 1fr 1fr; }
  .facts__list li { padding: 20px 8px; border-top: 1px solid rgba(255,255,255,.15); }
  .facts__list li:nth-child(odd) { border-left: 0; }
  .facts__list strong { font-size: 20px; }
}

/* 메인: 분양일정 단계 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 26px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.step time { display: block; font-size: 24px; font-weight: 800; color: var(--brand); }
.step b { display: block; margin-top: 4px; font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step time { font-size: 20px; } }

/* 메인: 메뉴 바로가기 카드 */
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shortcut { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: #fff; }
.shortcut .media { aspect-ratio: 4 / 3; background: var(--brand-dark); transition: transform .5s; }
.shortcut .media.is-missing::after { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.5); inset: auto 10px 10px auto; display: block; padding: 4px 8px; font-size: 11px; }
.shortcut:hover .media { transform: scale(1.04); }
.shortcut__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.shortcut__en { font-size: 12px; letter-spacing: .2em; opacity: .7; }
.shortcut__title { font-size: 22px; font-weight: 800; }
.shortcut__title::after { content: " →"; font-weight: 400; }
@media (max-width: 900px) { .shortcuts { grid-template-columns: 1fr 1fr; gap: 10px; } .shortcut__text { padding: 40px 14px 14px; } .shortcut__title { font-size: 17px; } }

/* 메인 섹션 간격 */
.home-section { padding: 100px 0; }
.home-section--tint { background: var(--bg-tint); }
@media (max-width: 900px) { .home-section { padding: 60px 0; } }

/* 혼자 쓰는 신청 박스 (관심고객등록 · 방문예약 페이지) */
.apply--single { grid-template-columns: minmax(0, 620px); justify-content: center; }

/* ---------- 포트폴리오 현장 톤 (제주 블루오션시티) ---------- */
:root { --brand: #0b3954; --brand-dark: #072536; --accent: #2f9cc4; --visit: #0b3954; --gnb-active: #2f9cc4; }
.header__logo-mark { height: 26px; width: auto; }
.video-embed { aspect-ratio: 16 / 9; }
.type-card__plan img { width: auto; max-width: 100%; max-height: 760px; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* 하위 배너 추가 요소: 기본은 숨김 (테마가 켬) */
.sub-visual__crumb, .sub-visual__page, .sub-visual__slogan { display: none; }


/* ---------- 제주 블루오션시티 추가 ---------- */
.footer__biz { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 -6px; font-size: 13px; opacity: .8; }
.sub-page:not(:has(.subnav)) main { padding-top: var(--header-h); }   /* 하위 메뉴가 1개인 페이지 (평면정보 · 홍보영상) */
.loc-block + .loc-block { margin-top: 56px; }
.loc-block__title { margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--accent); font-size: 22px; font-weight: 700; color: var(--brand); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.gallery__item { grid-column: span 2; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item:nth-child(n+5) { grid-column: span 3; }
.gallery .media { aspect-ratio: 697 / 547; border-radius: var(--radius); }
.gallery__item--wide .media { aspect-ratio: 1058 / 696; }
.gallery figcaption { margin-top: 8px; font-size: 15px; font-weight: 600; }
.video-embed video { width: 100%; height: 100%; display: block; background: #000; }
/* 페이지 상단 카피 (10-27, 리뉴얼 카피.txt) */
.page__title:has(+ .page__body .page-copy) { margin-bottom: 28px; }
.page-copy { margin: 0 auto 44px; text-align: center; word-break: keep-all; }
.page-copy::before { content: ""; display: block; width: 36px; height: 3px; margin: 0 auto 22px; border-radius: 2px; background: var(--accent); }
.page-copy__lead { margin: 0; font-size: 21px; font-weight: 400; color: #5a6874; letter-spacing: -.02em; line-height: 1.5; }
.page-copy__main { margin: 6px 0 0; font-size: 31px; font-weight: 700; color: var(--brand); letter-spacing: -.03em; line-height: 1.4; }
/* Unit: 아이소 + 평면 */
.type-card__visual { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; min-width: 0; padding: 32px; background: #fff; }
.type-card__visual figure { margin: 0; min-width: 0; }
.type-card__iso img { display: block; width: 100%; height: auto; }
.type-card__flat img { display: block; width: auto; height: 520px; max-width: 100%; object-fit: contain; }
@media (max-width: 900px) {
  .page-copy { margin-bottom: 28px; }
  .page-copy::before { margin-bottom: 16px; }
  .page-copy__lead { font-size: 15px; }
  .page-copy__main { font-size: 20px; }
  .type-card__visual { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .type-card__flat { justify-self: center; }
  .type-card__flat img { height: 380px; }
}
/* 헤더 흰색 (10-27, 파란 로고가 어두운 바에서 안 보여서) · 모바일 전체 메뉴 패널은 어두운 그대로 */
.header { background: #fff; color: #1d2a35; box-shadow: 0 1px 0 rgba(11,57,84,.1), 0 4px 14px rgba(11,57,84,.06); }
.gnb__link { color: #2b3a46; font-weight: 600; }
.header__tel { border-left-color: rgba(11,57,84,.12); }
.header__tel small { color: #5a6874; opacity: 1; }
.header__tel b { color: var(--brand); font-weight: 700; }
@media (max-width: 1180px) {
  .gnb__link { color: rgba(255,255,255,.88); border-bottom-color: rgba(255,255,255,.1); }
  .header__menu span, .header__menu span::before, .header__menu span::after { background: #1d2a35; }
  .header__menu[aria-expanded="true"] span { background: transparent; }
  .header__tel svg { color: var(--brand); }
}
/* 헤더 로고 (10-27, 글자 없이 이미지만) */
.header__logo { gap: 0; }
.header__logo-mark { height: 30px; }
@media (max-width: 900px) { .header__logo-mark { height: 22px; } }
/* 메인: 조감도 채도 30% 낮춤 (10-27) · 좌상단 카피 */
.slider__slide .media img { filter: saturate(.7); }
/* 카피 PNG에 어두운 타원 그림자가 들어 있음 (글자는 왼쪽 위 120px · 2432px 폭 기준) → 그림자 여백만큼 왼쪽 위로 당김 */
.main-copy { position: absolute; top: 0; left: 0; z-index: 3; width: min(46vw, 940px); margin: 0; line-height: 0; pointer-events: none; }
.main-copy img { width: 100%; height: auto; }
/* 음영 보강 (10-27): PNG의 타원 그림자 위에 같은 모양으로 한 겹 더 */
.main-copy::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(farthest-side at 32% 0%, rgba(3,20,45,.5) 0%, rgba(3,20,45,.28) 45%, rgba(3,20,45,0) 100%),   /* 위쪽 (SEOGWIPO 줄 · 첫 줄 카피) */
  radial-gradient(closest-side at 46% 44%, rgba(3,20,45,.5) 0%, rgba(3,20,45,.32) 55%, rgba(3,20,45,0) 100%); }
/* 메인: 회전 원형 아이콘 · 홍보영상 박스 */
.main-badges { position: absolute; top: 40px; right: 48px; z-index: 3; display: flex; flex-direction: column; gap: 18px; }
.main-badge { position: relative; width: 138px; height: 138px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.main-badge--profit { background: #a8865a; }
.main-badge--demand { background: var(--brand); }
.main-badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: badge-spin 14s linear infinite; }
.main-badge__ring text { fill: rgba(255,255,255,.85); font-size: 7.4px; font-weight: 600; letter-spacing: .9px; }
.main-badge__text { position: relative; margin: 0; text-align: center; font-size: 18px; font-weight: 800; line-height: 1.3; }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .main-badge__ring { animation: none; } }
.main-video { position: absolute; right: 48px; bottom: 44px; z-index: 3; width: 320px; padding: 16px 18px 18px; border-radius: 14px; background: rgba(20,30,50,.55); backdrop-filter: blur(6px); text-align: center; }
.main-video__title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #fff; }
.main-video__thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.main-video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.main-video__thumb:hover img { transform: scale(1.05); }
.main-video__play { position: absolute; left: 50%; top: 50%; width: 62px; height: 44px; margin: -22px 0 0 -31px; border-radius: 12px; background: #f00; }
.main-video__play::after { content: ""; position: absolute; left: 25px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.video-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.8); }
.video-modal[hidden] { display: none; }
.video-modal__box { position: relative; width: min(1100px, 100%); }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-modal__close { position: absolute; right: 0; bottom: 100%; padding: 4px 6px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) {
  .main-copy { top: 0; left: 0; width: 84vw; }
  .main-badges { top: 16px; right: 16px; gap: 10px; }
  .main-badge { width: 92px; height: 92px; }
  .main-badge__ring text { font-size: 7.8px; }
  .main-badge__text { font-size: 13px; }
  .main-video { right: 16px; bottom: 30px; width: 190px; padding: 10px 10px 12px; }
  .main-video__title { margin-bottom: 8px; font-size: 13px; }
  .main-video__play { transform: scale(.7); }
}
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; gap: 12px; } .gallery__item, .gallery__item:nth-child(n+5) { grid-column: auto; } .gallery__item--wide { grid-column: 1 / -1; } .loc-block__title { font-size: 19px; } }
