/* 분양 홍보관 스킨(showroom). 머리말·홈·하위 안내 화면·바닥글의 모양.
   모든 규칙은 .hx(블록 뿌리) 아래에만 걸어 기능 화면(champions에서 가져온 화면)과 섞이지 않게 한다.
   크기 단위: 참고 화면이 html 16px 기준 rem을 쓰므로 여기서는 같은 값을 px로 적는다(독자 글자 크기 설정과 무관하게 고정). */

/* ── 토큰 ─────────────────────────────────────────────────────────── */
:root {
  --hx-main1: #002f47;
  --hx-main2: #008ab4;
  --hx-main3: #00bae9;
  --hx-text: #111;
  --hx-bg: #fff;
  --hx-pc-header: 80px;
  --hx-mo-header: 15vw;
  --hx-maxw: 960px;
  --hx-line: #dbdbdb;
  --hx-footer-bg: #1b1b1b;
  --hx-footer-bg-mo: #f2f2f2;
  --hx-drawer-bg: #383a38;
  --hx-drawer-text: #c8b9af;
  --hx-font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", "Malgun Gothic", "맑은 고딕", Roboto, "Noto Sans KR", "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* ── CMS 뼈대 맞춤 ─────────────────────────────────────────────────── */
body.hx-skin #header-section > .layout-section-inner,
body.hx-skin #footer-section > .layout-section-inner { max-width: none; padding: 0; }
body.hx-skin #header-section .grid-masonry-layout,
body.hx-skin #footer-section .grid-masonry-layout { gap: 0; }
body.hx-skin .desktop-layout-wrapper { min-width: 0; }
body.hx-skin .layout-container { background: var(--hx-bg); }
/* 홈·하위 안내 화면: 본문을 화면 폭 그대로 쓴다 */
body.hx-wide .layout-main.constrained { width: 100%; max-width: none; margin: 0; padding: 0; }
body.hx-wide .layout-main .grid-masonry-layout { gap: 0; }
body.hx-wide main.layout-body { padding: 0; }
@media (min-width: 991px) {
  body.hx-wide { min-width: 1440px; max-width: 2560px; margin: 0 auto; }
  /* 기능 화면: 떠 있는 머리말 높이만큼 본문을 내린다 */
  body.hx-skin:not(.hx-wide) main.layout-body { padding-top: var(--hx-pc-header); }
}
@media (max-width: 990px) {
  body.hx-skin #header-section { position: sticky; top: 0; z-index: 20; }
}

/* ── 뿌리 초기화(참고 화면 common과 같은 값) ─────────────────────────── */
.hx { font-family: "Pretendard Variable"; font-size-adjust: 0.5; font-size: 16px; font-weight: 400; letter-spacing: -0.8px; line-height: normal; color: var(--hx-text); text-align: left; word-break: normal; }
/* 참고 화면의 * 초기화는 ::before·::after에 닿지 않는다(꾸밈 요소는 content-box) */
.hx *::before, .hx *::after { box-sizing: content-box; }
.hx, .hx * { box-sizing: border-box; margin: 0; padding: 0; border: 0; white-space: nowrap; -webkit-tap-highlight-color: transparent; outline: none; }
.hx :is(div, span, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, blockquote, p, address, pre, cite, form, fieldset, table, th, td, legend, label, button) { font-family: var(--hx-font); font-size-adjust: 0.5; font-size: 16px; letter-spacing: -0.05em; }
.hx :is(a, button) { cursor: pointer; background: transparent; }
.hx a { display: block; height: fit-content; text-decoration: none; color: inherit; }
.hx button { all: unset; box-sizing: border-box; display: inline-block; cursor: pointer; }
.hx :is(p, span, li, h1, h2, h3, h4, h5, h6) { font-size: 100%; font-weight: normal; line-height: 1.5; }
.hx :is(ol, ul, dl) { list-style: none; }
.hx img { display: block; width: 100%; height: auto; max-width: 100%; }
.hx video { width: 100%; height: auto; }
.hx b { font-weight: bolder; }
.hx svg { stroke-width: 1; }
.hx [hidden] { display: none !important; }
.hx .hx-pc { display: block; }
.hx .hx-mo { display: none; }
@media (max-width: 990px) {
  .hx .hx-pc { display: none; }
  .hx .hx-mo { display: block; }
}

/* ── 머리말 ────────────────────────────────────────────────────────── */
@media (min-width: 991px) {
  .hx .hx-header { position: fixed; top: 0; left: 0; width: 100%; max-width: 2560px; height: var(--hx-pc-header); background: rgb(0 0 0 / 8%); transition: 0.3s 0.4s; z-index: 50; }
  .hx .hx-header:hover { background: #fff; transition: 0s 0s; }
  /* 좌우 208px: 로고(176)·전화 단추 자리. 1440 이상에서는 메뉴 폭(960)에 닿지 않아 참고 화면과 같고, 그보다 좁으면 메뉴가 줄어 겹치지 않는다 */
  .hx .hx-gnb { display: flex; align-items: center; justify-content: center; max-width: 1400px; height: var(--hx-pc-header); margin: 0 auto; padding: 0 208px; }
  .hx .hx-logo { position: absolute; left: 160px; width: 176px; }
  .hx .hx-logo .hx-logo-white { display: none; }
  .hx .hx-logo img { width: 100%; }
  .hx .hx-nav { display: flex; width: 100%; max-width: var(--hx-maxw); height: var(--hx-pc-header); }
  .hx .hx-nav a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; text-align: center; }
  .hx .hx-nav a:hover { color: var(--hx-main1); }
  .hx .hx-nav a.active { font-weight: 700; }
  .hx .hx-number { position: absolute; right: 160px; white-space: nowrap; background-color: var(--hx-main1); border-radius: 100px; padding: 4px 22px; }
  .hx .hx-number svg { width: 22px; height: 22px; margin-top: 3px; fill: #fff; stroke-width: 0; }
  .hx .hx-number p { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 24px; color: #fff; }
  .hx .hx-menu-btn { display: none; }
  .hx .hx-mega-wrap { position: relative; z-index: 1; }
  .hx .hx-mega { position: absolute; left: 0; right: 0; top: 100%; background: #f5f5f5; max-height: 0; overflow: hidden; transition: 0.5s; }
  .hx .hx-header:hover .hx-mega { max-height: 1000px; border-bottom: 1px solid #eee; }
  .hx .hx-mega .hx-inner { display: grid; max-width: var(--hx-maxw); margin: 0 auto; }
  .hx .hx-mega .hx-col { border-left: 1px solid #ebebeb; }
  .hx .hx-mega .hx-col:last-child { border-right: 1px solid #ebebeb; }
  .hx .hx-mega .hx-col li { width: 100%; }
  .hx .hx-mega .hx-col h4 { display: none; }
  .hx .hx-depth2 > li:hover { background-color: var(--hx-main1); color: #fff; }
  .hx .hx-depth2 > li a { padding: 16px 12px; }
  .hx .hx-depth3 { display: none; }
  .hx .hx-header-bg { height: 100vh; background: #000; opacity: 0; pointer-events: none; transition: 0.3s; }
  .hx .hx-header:hover .hx-header-bg { opacity: 0.5; }
  .hx .hx-mo-gnb { display: none !important; }
}
@media (min-width: 991px) and (max-width: 1681px) {
  .hx .hx-logo { left: 80px; }
  .hx .hx-number { right: 80px; }
}
@media (min-width: 991px) and (max-width: 1441px) {
  .hx .hx-logo { left: 16px; }
  .hx .hx-number { right: 16px; }
}
@media (max-width: 990px) {
  .hx .hx-header { position: relative; background: var(--hx-main1); }
  .hx .hx-header-bg { display: none !important; }
  .hx .hx-gnb { position: relative; display: flex; justify-content: center; align-items: center; height: var(--hx-mo-header); }
  .hx .hx-logo { width: 34vw; height: auto; margin-right: 1vw; }
  .hx .hx-logo .hx-logo-color { display: none; }
  .hx .hx-logo img { width: 100%; }
  .hx .hx-number { position: absolute; display: flex; align-items: center; width: 25vw; right: 2vw; transition: 0.2s; }
  .hx .hx-number:hover { transform: scale(1.05); }
  .hx .hx-number img { width: 100%; }
  .hx .hx-nav { display: none; }
  .hx .hx-mega-wrap { position: absolute; width: 100%; height: 100vh; padding: 3vw 3vw 80vw 3vw; overflow-y: auto; background: var(--hx-drawer-bg); transform: translateX(-100%); transition: 0.3s ease; scrollbar-width: none; z-index: 1; }
  .hx .hx-header.open .hx-mega-wrap { transform: translateX(0%); }
  .hx .hx-mega .hx-inner { display: block; }
  .hx .hx-mega .hx-col { border-bottom: 1px solid #555; }
  .hx .hx-mega .hx-col a { position: relative; padding: 4vw 8vw; color: var(--hx-drawer-text); font-size: 4vw; }
  .hx .hx-mega .hx-col a:hover { background: rgb(0 0 0 / 10%); }
  .hx .hx-mega .hx-col h4 > a::after { content: ""; position: absolute; right: 6vw; top: 5vw; width: 1.8vw; height: 1.8vw; border-top: 0.6vw solid var(--hx-drawer-text); border-right: 0.6vw solid var(--hx-drawer-text); transform: rotate(135deg); transition: 0.3s; }
  .hx .hx-mega .hx-col.mo-open h4 a::after { transform: rotate(-45deg); }
  .hx .hx-depth2 { display: none; background: rgb(0 0 0 / 20%); }
  .hx .hx-depth3 { display: none; }
  .hx .hx-col.mo-open .hx-depth2 { display: block; }
  .hx .hx-menu-btn { position: absolute; display: block; top: 50%; left: 4vw; width: 26px; height: 20px; transform: translateY(-50%); transition: 0.2s; }
  .hx .hx-menu-btn:hover { transform: translateY(-50%) scale(1.2); }
  .hx .hx-menu-btn div { position: absolute; left: 0; width: 100%; height: 2px; background-color: #fff; border-radius: 4px; }
  .hx .hx-menu-btn div:nth-child(1) { top: 0; transform-origin: top left; transition: transform 0.2s ease; }
  .hx .hx-menu-btn div:nth-child(2) { top: 9px; }
  .hx .hx-menu-btn div:nth-child(3) { bottom: 0; transform-origin: bottom left; transition: transform 0.2s ease; }
  .hx .hx-header.open .hx-menu-btn div:nth-child(1) { transform: rotate(45deg); }
  .hx .hx-header.open .hx-menu-btn div:nth-child(2) { opacity: 0; }
  .hx .hx-header.open .hx-menu-btn div:nth-child(3) { transform: rotate(-45deg); }
  .hx .hx-mo-gnb li { position: relative; display: flex; width: 100%; }
  .hx .hx-mo-gnb li :is(a, span) { width: 100%; padding: 4vw 0; text-align: center; color: #fff; font-size: 4.5vw; font-weight: 600; }
  .hx .hx-mo-gnb .hx-m-number { margin-top: 60px; background: #4b5055; }
  .hx .hx-mo-gnb .hx-m-registration { background: var(--hx-main1); }
  .hx .hx-mo-gnb .hx-m-close { margin-top: 10px; background: #222; border-radius: 10px; cursor: pointer; }
}

/* ── 홈 ───────────────────────────────────────────────────────────── */
.hx .hx-home-pc { position: relative; width: 100%; }
.hx .hx-home-pc .hx-home-bg { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hx .hx-home-pc .hx-home-title { position: absolute; top: 30%; left: 10%; display: flex; flex-direction: column; gap: 20.8px; min-width: 380px; padding: 40px 30px; border-radius: 20px; background: rgb(255 255 255 / 80%); text-align: center; cursor: default; z-index: 1; }
.hx .hx-home-pc .hx-home-title .hx-sub-title { font-size: 20px; font-weight: 700; color: var(--hx-main1); }
.hx .hx-home-pc .hx-home-title .hx-main-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.hx .hx-home-pc .hx-home-title .hx-main-title b { padding: 0 5px; font-size: 40px; font-weight: 700; color: var(--hx-main1); }
.hx .hx-home-pc .hx-home-title img { width: 200px; margin: 0 auto; }
.hx .hx-home-pc .hx-home-title .hx-txt-box { width: 100%; padding: 16px 0; border-radius: 8px; background-color: var(--hx-main1); color: #fff; font-family: "GmarketSansBold"; font-size: 28px; font-weight: 700; }
.hx .hx-home-pc .hx-pc-bg-wrap { aspect-ratio: 21/9; }
.hx .hx-home-mo { display: none; flex-direction: column; width: 100%; }
.hx .hx-home-mo div { line-height: 0; }
.hx .hx-db-box { padding: 10px; background-color: color-mix(in srgb, var(--hx-main1) 60%, black 40%); }
.hx .hx-db-box iframe { width: 100%; }
@media (max-width: 990px) {
  .hx .hx-home-pc { display: none; }
  .hx .hx-home-mo { display: flex; }
  .hx .hx-db-box { padding: 2.5vw; }
}
/* 방문예약 안내 상자(참고 화면은 외부 접수 폼 iframe 자리) */
.hx .hx-db-card { display: flex; flex-direction: column; align-items: center; gap: 4vw; padding: 9vw 5vw; border-radius: 3vw; background: #fff; line-height: 1.5; text-align: center; }
.hx .hx-db-card * { white-space: normal; word-break: keep-all; }
.hx .hx-db-card .hx-db-title { font-size: 5.6vw; font-weight: 700; line-height: 1.35; color: var(--hx-main1); }
.hx .hx-db-card .hx-db-lead { font-size: 3.8vw; line-height: 1.5; color: #555; }
.hx .hx-db-card .hx-db-btn { width: 100%; padding: 4vw 0; border-radius: 2vw; background: var(--hx-main1); color: #fff; font-size: 4.5vw; font-weight: 700; line-height: 1.2; }
.hx .hx-db-card .hx-db-btn.hx-db-tel { background: #fff; color: var(--hx-main1); box-shadow: inset 0 0 0 1px var(--hx-main1); }

/* ── 하위 안내 화면 ─────────────────────────────────────────────────── */
.hx .hx-subtop { position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; height: 480px; text-align: center; overflow: hidden; }
.hx .hx-subtop-wrap { display: flex; flex-direction: column; gap: 16px; cursor: default; z-index: 1; }
.hx .hx-subtop-crumb { display: flex; justify-content: center; gap: 10px; opacity: 0.5; }
.hx .hx-subtop h1 { color: #333; font-size: 56px; font-weight: bold; letter-spacing: 30px; animation: hx-spacing 1.5s forwards; animation-delay: 0.4s; }
.hx .hx-subtop p { font-size: 20px; color: #666; }
.hx .hx-subtop-img { position: absolute; width: 100%; height: 100%; background-size: cover; animation: hx-subtop 1.5s 0.5s both; }
@keyframes hx-subtop { 0% { transform: scale(1.1); } 100% { transform: none; } }
@keyframes hx-spacing { from { letter-spacing: 30px; } to { letter-spacing: 5px; } }
.hx .hx-tab { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; }
.hx .hx-tab .hx-tab-btn { display: flex; align-items: center; justify-content: center; width: 50%; max-width: 200px; height: 100%; padding: 10px 12px; border: 1px solid var(--hx-line); background: #fff; transition: 0.2s; }
.hx .hx-tab .hx-tab-btn:hover { background: #f5f5f5; font-weight: bold; }
.hx .hx-subnav-wrap { margin: 48px 0; }
.hx .hx-tab .hx-tab-btn.active { background: var(--hx-main1); border-color: var(--hx-main1); color: #fff; }
.hx .hx-subnav-d3 { margin: 48px; }
.hx .hx-subnav-d3 .hx-tab { width: var(--hx-maxw); margin: 0 auto; padding-top: 48px; border-top: 1px solid #eee; }
.hx .hx-subnav-d3 .hx-tab .hx-tab-btn { border: 0; background: transparent; }
.hx .hx-subnav-d3 .hx-tab .hx-tab-btn.active { background: rgb(0 0 0 / 3%); color: var(--hx-main1); font-weight: bold; }
.hx .hx-contents { display: flex; flex-wrap: wrap; width: 100%; max-width: var(--hx-maxw); margin: 0 auto; padding-bottom: 160px; }
.hx .hx-contents-box { display: flex; flex-direction: column; width: 100%; height: auto; margin: 0 auto; }
.hx .hx-contents-box img { width: 100%; height: auto; }
.hx .hx-overview-txt { padding: 10px; border-radius: 10px; background: #f5f5f5; text-align: center; font-size: 24px; font-weight: 600; letter-spacing: 1px; }
.hx .hx-notfound { padding: 120px 16px; text-align: center; }
.hx .hx-notfound h1 { font-size: 28px; font-weight: 700; }
.hx .hx-notfound p { margin-top: 12px; color: #666; }
@media (min-width: 991px) {
  .hx .hx-pageview { position: relative; display: block; min-height: calc(100vh - 480px); }
}
@media (max-width: 990px) {
  .hx .hx-pageview { position: relative; display: block; min-height: 400px; }
  .hx .hx-contents { padding: 0 4vw 80px 4vw; }
  .hx .hx-subtop { height: 50vw; margin-bottom: 0; }
  .hx .hx-subtop-wrap { gap: 8px; }
  .hx .hx-subtop h1 { font-size: 8vw; color: #353535; }
  .hx .hx-subtop p { font-size: 3.2vw; color: #555; }
  .hx .hx-subtop-img { background-position: right; }
  .hx .hx-tab .hx-tab-btn:nth-last-child(1):nth-child(odd) { width: 100%; max-width: none; }
  .hx .hx-subnav { margin: 0 4vw; }
  .hx .hx-subnav .hx-tab .hx-tab-btn { max-width: inherit; }
  .hx .hx-subnav-d3 { margin: 4vw; }
  .hx .hx-subnav-d3 .hx-tab { width: 100%; padding-top: 4vw; }
  .hx .hx-overview-txt { font-size: 3.5vw; word-break: auto-phrase; white-space: pre-line; line-height: 1.1; }
}

/* ── 바닥글 ────────────────────────────────────────────────────────── */
.hx .hx-footer { width: 100%; background: var(--hx-footer-bg); cursor: default; }
.hx .hx-ft-wrap { position: relative; display: flex; width: 1400px; margin: 0 auto; padding: 48px 0 64px; color: #fff; }
.hx .hx-ft-box1 { display: flex; flex-direction: column; width: 70%; }
.hx .hx-ft-box1 .hx-logo-white { width: 144px; margin-bottom: 20px; }
.hx .hx-ft-box1 .hx-logo-color { display: none; }
.hx .hx-ft-box1 table { margin-bottom: 20px; border-collapse: separate; border-spacing: 2px; font-size: 16px; font-weight: 500; line-height: 1.75; }
.hx .hx-ft-box1 td { vertical-align: middle; font-weight: inherit; }
.hx .hx-ft-box1 tr td:nth-child(1) { width: 120px; font-weight: bold; }
.hx .hx-ft-box1 p { font-size: 12px; font-weight: 300; line-height: 1.75; opacity: 0.8; }
.hx .hx-ft-box2 { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; width: 30%; height: 100%; padding: 10px 0 0; }
.hx .hx-ft-number { display: flex; align-items: center; font-size: 24px; }
.hx .hx-ft-number a b { font-family: "GmarketSansBold"; font-size: 28.8px; }
/* 약관 링크(참고 화면에는 없다): 바닥글 높이를 바꾸지 않게 PC는 전화번호 아래에 띄워 둔다 */
.hx .hx-ft-links { position: absolute; top: 106px; right: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.hx .hx-ft-links :is(a, button) { font-size: 12px; font-weight: 300; line-height: 20px; letter-spacing: -0.6px; opacity: 0.8; }
.hx .hx-ft-links :is(a, button):hover { opacity: 1; text-decoration: underline; }
/* 기능 화면은 화면 폭을 1440으로 고정하지 않으므로 바닥글도 폭에 맞춘다 */
body.hx-skin:not(.hx-wide) .hx .hx-ft-wrap { width: auto; max-width: 1400px; padding-left: 20px; padding-right: 20px; }
body.hx-skin:not(.hx-wide) .hx .hx-ft-links { right: 20px; }
body.hx-skin:not(.hx-wide) .hx .hx-ft-box1 td:nth-child(2) { white-space: normal; word-break: keep-all; }
@media (max-width: 990px) {
  .hx .hx-footer { padding-bottom: 48vw; background: var(--hx-footer-bg-mo); }
  .hx .hx-ft-wrap { flex-direction: column-reverse; width: initial; padding: 0; color: #333; }
  .hx .hx-ft-box1 { width: initial; padding: 3vw 0 0 3vw; }
  .hx .hx-ft-box1 .hx-logo-color { display: block; width: 192px; }
  .hx .hx-ft-box1 .hx-logo-white { display: none; }
  .hx .hx-ft-box1 table { margin: 16px 0; line-height: 1.5; }
  .hx .hx-ft-box1 table tr td { font-size: 2.8vw; }
  .hx .hx-ft-box1 table tr td:nth-child(1) { width: 16vw; }
  .hx .hx-ft-box1 table tr td:nth-child(2) { white-space: normal; word-break: keep-all; }
  body.hx-skin:not(.hx-wide) .hx .hx-ft-wrap { padding: 0; }
  body.hx-skin:not(.hx-wide) .hx .hx-ft-links { right: auto; }
  .hx .hx-ft-box1 p { font-size: clamp(12px, 2vw, 14px); text-wrap: auto; white-space: normal; word-break: auto-phrase; }
  .hx .hx-ft-box1 .hx-copyright { padding-top: 0; padding-bottom: 20px; }
  .hx .hx-ft-box1 .hx-copyright:has(+ .hx-ft-links) { padding-bottom: 0; }
  .hx .hx-ft-links { position: static; justify-content: flex-start; }
  .hx .hx-ft-box2 { flex-direction: row; align-items: initial; width: initial; padding: 8vw 2.5vw 2.5vw; border-bottom: 1px solid #cdcdcd; }
  .hx .hx-ft-number { font-weight: 600; line-height: 1; }
  .hx .hx-scroll-top { display: flex; align-items: center; justify-content: center; width: 10vw; height: 10vw; border-radius: 100px; background: var(--hx-main1); }
  .hx .hx-scroll-top svg { width: 22px; height: 22px; padding-top: 0.5vw; color: #fff; fill: transparent; stroke-width: 3px; }
}

/* ── 모바일 하단 빠른 단추 ──────────────────────────────────────────── */
.hx .hx-quick { display: none; }
@media (max-width: 990px) {
  .hx .hx-quick { position: fixed; display: block; bottom: -1px; left: 0; width: 100%; pointer-events: none; z-index: 19; }
  .hx .hx-quick-btn { display: flex; flex-direction: column; width: fit-content; cursor: pointer; pointer-events: all; }
  .hx .hx-quick-btn img { width: 20vw; height: auto; }
  .hx .hx-quick-btn :is(a, button):hover { transition: 0.2s; transform: scale(1.05); }
  .hx .hx-quick-bubble { position: absolute; right: 0; bottom: 15vw; width: 93vw; pointer-events: none; }
  .hx .hx-quick-banner { pointer-events: all; cursor: pointer; }
}

/* 가로로 눕힌 휴대폰: 참고 화면과 같은 안내 */
@media (orientation: landscape) and (pointer: coarse) {
  .hx .hx-home-mo::before { content: "가로모드에서는 화면이 정상적으로 표시되지 않을 수 있습니다. 세로모드로 확인해 주세요."; position: sticky; top: 0; z-index: 99999; display: block; padding: 10px 12px; background: rgba(0, 0, 0, 0.78); color: #fff; font-size: 18px; line-height: 1.35; text-align: center; white-space: normal; backdrop-filter: blur(6px); }
}
