/* =========================================================
   SUB : 입지환경 (sub_입지환경.psd, 1920 기준)
   ========================================================= */
body.sub { background: #fff; }
.gnb a.is-current::after { width: 100%; left: 0; }

/* 상단 비주얼 */
.sub-top {
  position: relative; height: clamp(300px, 26.15vw, 502px); overflow: hidden;
  display: grid; place-items: center; color: #fff; background: #8c7f70;
}
/* 배경 사진은 별도 레이어로 두고 줌아웃 (transform이라 부드러움) */
.sub-top__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url(../assets/img/location_top.jpg) center top / cover no-repeat;
  transform-origin: 60% 40%; will-change: transform;
}
.sub-top::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.4); }
.sub-top > :not(.sub-top__bg) { z-index: 2; }
.sub-top__title span { display: inline-block; will-change: transform, opacity, filter; }
.js .sub-top__title span { opacity: 0; }

/* 스크롤하면 흰 배경 메뉴 */
body.sub .header.is-solid { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.sub-top { grid-template-rows: auto auto; align-content: center; gap: 14px; }
.sub-top__en { position: relative; margin-top: 40px; font-family: var(--label); font-weight: 500; font-size: clamp(13px, .9vw, 17px); letter-spacing: .35em; opacity: .85; }
.js .sub-top__en { opacity: 0; }
.sub-top__title {
  position: relative;
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.9vw, 56px); letter-spacing: .02em;
}
.sub-top .hero__badge { top: 150px; }

/* LOCATION 인트로 */
.loc { padding-bottom: 160px; }
.loc-intro { text-align: center; padding: 160px 20px 0; }
.loc-intro__en { font-family: var(--label); font-weight: 500; font-size: 22px; letter-spacing: .08em; color: var(--green); }
.loc-intro__title { margin-top: 34px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.1vw, 40px); line-height: 1.4; color: #4a4a48; }
.loc-intro__title strong { font-weight: 600; color: var(--green); }
.loc-intro__desc { margin-top: 44px; font-size: 20px; line-height: 1.7; color: #6b6760; }

/* 공용 패널 */
.loc-panel { position: relative; width: min(1202px, calc(100% - 80px)); margin: 80px auto 0; background: #f1efe2; }
.loc-label {
  display: flex; align-items: center; gap: 0;
  font-family: var(--label); font-weight: 500; font-size: 16px; letter-spacing: .12em; color: var(--green);
}
.loc-label .cond { margin-right: 22px; }
.loc-label i { width: 5px; height: 5px; border-radius: 50%; background: #7d8a83; margin-left: 9px; }
.loc-label i:last-child { background: var(--green); }

/* 광역 지역도 */
.loc-map { position: relative; padding: 123px 19px 45px 25px; }
.loc-map__arch {
  position: absolute; left: -17px; top: 0; bottom: 0; width: 260px;
  background: #004538; border-top-left-radius: 260px 260px;
}
.loc-map .loc-label { position: absolute; right: 36px; top: 60px; }
.loc-map__img { position: relative; width: 100%; height: auto; }

/* Enhance Your Life + 카드 4 */
.loc-premium { padding: 111px 6.7% 116px 7%; }
.loc-premium__head { display: flex; align-items: flex-end; justify-content: space-between; margin-left: -1.6%; }
.loc-premium__head .loc-label { margin-bottom: 14px; margin-right: -2.5%; }
.loc-premium__title { font-family: var(--label); font-weight: 600; font-size: clamp(40px, 3vw, 58px); line-height: 1; color: var(--green-deep); }
.loc-cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16.5%; row-gap: 120px; margin-top: 150px; }

.loc-card__visual { position: relative; aspect-ratio: 434 / 584; }
.loc-card__frame { position: absolute; left: 53.2%; top: 0; width: 46.8%; height: 100%; }
.loc-card--green .loc-card__frame { background: #004538; }
.loc-card--brown .loc-card__frame { background: #866e48; }
.loc-card__media { position: absolute; left: 0; top: 4.45%; width: 93.1%; height: 82.7%; }
.loc-card__script {
  position: absolute; left: 59%; top: 74%; z-index: 2;
  font-family: var(--script); font-size: clamp(56px, 4.4vw, 86px); line-height: 1; color: #fff;
  transform: rotate(-12deg); transform-origin: left bottom; white-space: nowrap;
  text-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.loc-card__text { position: relative; margin-top: -30px; margin-right: -25%; padding-right: 0; }
.loc-card__text small { display: block; font-family: var(--label); font-weight: 500; font-size: 16px; color: #8a8478; }
.loc-card__text h3 { margin-top: 12px; font-size: 25px; font-weight: 700; color: #222; }
.loc-card__text p { margin-top: 18px; font-size: 19px; line-height: 1.75; color: #6b6760; }

/* 안내 문구 */
.loc-note { display: flex; align-items: center; gap: 24px; width: min(1202px, calc(100% - 80px)); margin: 33px auto 0; padding: 22px 27px; }
.loc-note__icon { flex: 0 0 59px; width: 59px; height: 59px; fill: none; stroke: #bdbab3; stroke-width: 1.6; stroke-linecap: round; }
.loc-note p { word-break: keep-all; font-size: 16px; line-height: 1.75; color: #8a8478; }

/* =========================================================
   사업개요
   ========================================================= */
.sum-visual { position: relative; padding: 123px 19px 45px 25px; }
.sum-visual .loc-label { position: absolute; right: 36px; top: 60px; }
.sum-visual__photo { position: relative; aspect-ratio: 1200 / 601; background: #e4ded0; }
.sum-spec { padding: 90px 7% 116px; }
.sum-spec__title { display: flex; align-items: baseline; gap: 18px; font-family: var(--label); font-weight: 600; font-size: clamp(34px, 2.6vw, 50px); line-height: 1; color: var(--green-deep); }
.sum-spec__title small { font-family: var(--sans); font-size: 18px; font-weight: 600; color: #8a8478; }
.sum-spec__table { margin-top: 50px; border-top: 2px solid var(--green-deep); }
.sum-spec__row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #d9d3c3; }
.sum-spec__cell { display: flex; align-items: center; min-height: 74px; }
.sum-spec__cell + .sum-spec__cell { border-left: 1px solid #d9d3c3; }
.sum-spec__cell.is-full { grid-column: 1 / -1; }
.sum-spec__cell dt { flex: 0 0 160px; padding-left: 34px; font-size: 17px; font-weight: 700; color: var(--green); white-space: pre; }
.sum-spec__cell dd { padding: 0 24px; font-size: 18px; color: #3d3b37; }

/* =========================================================
   프리미엄
   ========================================================= */
.prm-visual { position: relative; padding: 123px 25px 45px; }
.prm-visual .loc-label { position: absolute; right: 36px; top: 60px; }
.prm-visual__img { display: block; width: 100%; height: auto; }
.prm-list { padding: 100px 7% 116px; }
.prm-cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 7%; row-gap: 90px; margin-top: 80px; }
.prm-card__img { aspect-ratio: 556 / 354; background: #e4ded0; }
.prm-card__txt { position: relative; padding: 34px 0 0 74px; }
.prm-card__no { position: absolute; left: 0; top: 30px; font-family: var(--label); font-weight: 600; font-size: 38px; line-height: 1; color: var(--green-deep); }
.prm-card__no::after { content: ""; position: absolute; left: 2px; top: calc(100% + 10px); width: 26px; height: 2px; background: #866e48; }
.prm-card__txt h3 { font-size: 25px; font-weight: 700; color: #222; }
.prm-card__txt p { margin-top: 14px; font-size: 19px; line-height: 1.75; color: #6b6760; }

/* =========================================================
   오시는길
   ========================================================= */
.dir-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 30px; color: var(--green-deep); }
.dir-logo .elif-logo { width: clamp(150px, 11vw, 210px); }
.dir-logo span { font-size: 19px; font-weight: 700; color: #3d3b37; }
.dir-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 90px 7% 0; }
/* 현장 = 회갈색, 견본주택 = 진초록 카드 (지도 둘레에 같은 색 테두리) */
.dir-card { --c: #797168; padding: 4px; background: var(--c); color: #fff; text-align: center; box-shadow: 0 24px 50px rgba(40,34,24,.12); }
.dir-card--model { --c: #174538; }
.dir-card__map { aspect-ratio: 589 / 480; background: #fff; }
.dir-card__info { padding: 44px 30px 50px; }
.dir-card__info h3 { display: inline-flex; align-items: center; gap: 26px; font-size: 24px; font-weight: 700; letter-spacing: .25em; text-indent: .25em; }
.dir-card__info h3::before, .dir-card__info h3::after { content: ""; width: 1px; height: 22px; background: rgba(255,255,255,.75); }
.dir-card__info p { margin-top: 20px; min-height: 3.4em; font-size: 19px; line-height: 1.7; color: rgba(255,255,255,.92); }
.dir-card__btns { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.dir-card__btns a { flex: 0 1 220px; padding: 14px 10px; border: 1px solid rgba(255,255,255,.55); font-size: 16.5px; color: #fff; transition: background .3s, color .3s, border-color .3s; }
.dir-card__btns a:hover { background: #fff; border-color: #fff; color: var(--c); }
.dir-call { padding: 100px 20px 116px; text-align: center; }
.dir-call__label { font-size: 18px; font-weight: 600; color: #8a8478; }
.dir-call__tel { display: inline-block; margin-top: 10px; font-family: var(--label); font-weight: 600; font-size: clamp(48px, 4.4vw, 84px); line-height: 1.1; letter-spacing: .02em; color: var(--green-deep); }
.dir-call__sub { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; font-size: 19px; font-weight: 600; color: #3d3b37; }
.dir-call__sub i { width: 1px; height: 14px; background: #bdb6a6; }

/* =========================================================
   관심고객등록
   ========================================================= */
.cu-panel { padding: 60px 7% 80px; }
.cu-frame { display: block; width: 100%; min-height: 400px; border: 0; background: #fff; }
/* customer.php : 메뉴 없이 로고 / 관심고객등록 / 전화번호만 있는 상단바 */
.cu-header {
  position: relative; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  height: 120px; padding: 0 62px 0 70px; background: #1b453d; color: #fff;
}
.cu-header__logo { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 700; }
.cu-header__logo .elif-logo { width: 120px; }
.cu-header__util { display: flex; align-items: center; gap: 36px; }
.cu-header__reg { display: inline-flex; align-items: center; justify-content: center; width: 220px; height: 54px; border: 2px solid #d9d3c4; border-radius: 27px; font-size: 20px; font-weight: 500; color: #d9d3c4; transition: background .3s, color .3s; }
.cu-header__reg:hover, .cu-header__reg[aria-current] { background: #d9d3c4; color: #1b453d; }
.cu-header__tel { display: inline-flex; align-items: center; gap: 8px; font-size: 38px; font-weight: 700; letter-spacing: -.02em; }
.cu-header__tel svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body.page-customer .sub-top { height: clamp(220px, 18vw, 340px); }

/* 등장 모션 초기값 (JS가 있을 때만) */
.js .loc-card__frame { clip-path: inset(100% 0 0 0); }
.js .loc-card__media { clip-path: inset(0 0 100% 0); }
.js .loc-card__script { clip-path: inset(-40% 100% -40% -10%); }

@media (max-width: 1024px) {
  .sub-top .hero__badge { display: none; }
  .loc { padding-bottom: 80px; }
  .loc-intro { padding-top: 70px; }
  .loc-intro__en { font-size: 16px; }
  .loc-intro__title { margin-top: 20px; font-size: 24px; }
  .loc-intro__desc { margin-top: 20px; font-size: 17px; line-height: 1.7; }
  .loc-panel { width: 100%; margin-top: 40px; }
  .loc-map { padding: 64px 4px 30px 10px; }
  .loc-map__arch { left: 0; width: 25vw; border-top-left-radius: 25vw 25vw; }
  .loc-map .loc-label { right: 16px; top: 26px; font-size: 11px; }
  .loc-premium { padding: 70px 9% 70px; }
  .loc-premium__head { justify-content: center; margin: 0; }
  .loc-premium__head .loc-label { display: none; }
  .loc-premium__title { font-size: clamp(30px, 8vw, 44px); }
  .loc-cards { grid-template-columns: 1fr; row-gap: 70px; margin-top: 50px; }
  .loc-card__script { font-size: clamp(44px, 12vw, 70px); }
  .loc-card__text { margin-top: -20px; margin-right: 0; padding-right: 0; }
  .loc-card__text small { font-size: 14px; }
  .loc-card__text h3 { font-size: 21px; }
  .loc-card__text p { font-size: 17px; }
  .loc-card__text p br { display: none; }
  .loc-note { width: calc(100% - 40px); padding: 20px 0; align-items: flex-start; gap: 14px; }
  .loc-note__icon { flex-basis: 34px; width: 34px; height: 34px; }
  .loc-note p { font-size: 14px; }

  .sum-visual, .prm-visual { padding: 64px 10px 30px; }
  .sum-visual .loc-label, .prm-visual .loc-label { right: 16px; top: 26px; font-size: 11px; }
  .sum-spec { padding: 60px 20px 70px; }
  .sum-spec__title { flex-direction: column; gap: 8px; font-size: 30px; }
  .sum-spec__table { margin-top: 30px; }
  .sum-spec__row { grid-template-columns: 1fr; }
  .sum-spec__cell { min-height: 56px; }
  .sum-spec__cell + .sum-spec__cell { border-left: 0; border-top: 1px solid #e3ddcf; }
  .sum-spec__cell dt { flex-basis: 100px; padding-left: 12px; font-size: 14.5px; }
  .sum-spec__cell dd { padding: 10px 12px 10px 0; font-size: 15.5px; }
  .prm-list { padding: 60px 9% 70px; }
  .prm-cards { grid-template-columns: 1fr; row-gap: 56px; margin-top: 40px; }
  .prm-card__txt { padding: 24px 0 0 58px; }
  .prm-card__no { top: 22px; font-size: 30px; }
  .prm-card__txt p br { display: none; }
  .prm-card__txt h3 { font-size: 21px; }
  .prm-card__txt p { font-size: 17px; }
  .dir-cards { grid-template-columns: 1fr; gap: 30px; padding: 50px 20px 0; }
  .dir-card__info { padding: 30px 18px 34px; }
  .dir-card__info h3 { font-size: 19px; gap: 18px; }
  .dir-card__info p { font-size: 16px; }
  .dir-call { padding: 60px 20px 70px; }
  .cu-panel { padding: 30px 12px 40px; }
  .cu-header { height: 64px; padding: 0 16px; }
  .cu-header__logo { font-size: 13px; gap: 8px; }
  .cu-header__logo .elif-logo { width: 60px; }
  .cu-header__util { gap: 12px; }
  .cu-header__reg { width: auto; height: 32px; padding: 0 12px; border-width: 1.5px; font-size: 13px; }
  .cu-header__tel { font-size: 17px; gap: 4px; }
  .cu-header__tel svg { width: 14px; height: 14px; }
}
@media (max-width: 380px) { .cu-header__tel span { display: none; } }
