/* ============================================================================
   sub — 서브페이지 공통 쉘. 출처: 오산 서브 실측(실측/오산서브-3종 desktop-1440,
   01-style.css의 subtop·tab·subnav·contents_wrap·news-board + 라이브 rect).
   ⚠ 주석에 경로 글롭( 별표 슬래시 )을 쓰면 주석이 조기 종료돼 다음 블록을 삼킨다 — 실사고.
   원페이지 전용 desktop.css는 서브에서 로드하지 않는다(html overflow:hidden 충돌).
   ============================================================================ */

/* ---------- 데스크톱: 헤더 fixed 보정 + 서브 헤더 흰 배경 (원본 서브 동일) ---------- */
@media (min-width: 991px) {
  body.sub { padding-top: var(--pc-header-height); }
  .sub .site-header { background: #fff; border-bottom: 1px solid #eee; }
  /* 모바일 전용 퀵바는 데스크톱 완전 숨김 (모바일 마크업 데스크톱 격리 — 1번 수정과 동일 규칙) */
  .sub .mo-quick { display: none; }
}

/* ---------- 서브 비주얼 (실측: height 30rem · h1 3.5rem bold 자간 30→5px 1.5s ·
             배경 scale 1.1→1 1.5s delay .5s · 크럼 gap10 op.5 · 서브카피 1.25rem #666) ---------- */
.subtop {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  width: 100%; height: 30rem;
  text-align: center;
  overflow: hidden;
}
.subtop-img {
  position: absolute; inset: 0;
  background: url(../img/sub_visual.jpg) center / cover no-repeat;
  animation: subTopScale 1.5s 0.5s both;
}
.subtop-wrap { position: relative; display: flex; flex-direction: column; gap: 1rem; z-index: 1; }
.subtop-crumb { display: flex; justify-content: center; gap: 10px; opacity: .5; font-size: var(--fs-16); }
.subtop h1 {
  color: #333;
  font-size: 3.5rem;
  font-weight: var(--fw-head);
  letter-spacing: 30px;
  animation: subSpacing 1.5s forwards;
  animation-delay: 0.4s;
}
.subtop p { font-size: var(--fs-20); color: #666; }

@keyframes subSpacing  { from { letter-spacing: 30px; } to { letter-spacing: 5px; } }
@keyframes subTopScale { 0% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ---------- 탭 depth2 (실측: 50%/max200 · border #dbdbdb · pad 10/12 · active 네이비) ---------- */
.subnav-wrap { margin: 3rem 0; }
.tab { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; }
.tab a, .tab button {
  display: flex; align-items: center; justify-content: center;
  width: 50%; max-width: 200px;
  padding: 10px 12px;
  border: 1px solid #dbdbdb;
  background: #fff;
  transition: 0.2s;
}
.tab a:hover, .tab button:hover { background: #f5f5f5; font-weight: var(--fw-head); }
.tab a.is-active { background: var(--color-main1); border-color: var(--color-main1); color: #fff; pointer-events: none; }

/* depth3 (실측: 상단 보더 #eee · 투명 버튼 · active rgba(0,0,0,.03)+main1+bold) */
.subnav--depth3 { margin: 3rem 0; }
.subnav--depth3 .tab { padding-top: 3rem; width: var(--maxw); max-width: 100%; border-top: 1px solid #eee; margin: 0 auto; }
.subnav--depth3 .tab a, .subnav--depth3 .tab button { border: 0; background: transparent; }
.subnav--depth3 .tab a.is-active,
.subnav--depth3 .tab button.is-current { background: rgba(0, 0, 0, .03); color: var(--color-main1); font-weight: var(--fw-head); }

/* ---------- 본문 (실측: max-width 1000 · padding-bottom 10rem) ---------- */
.contents-wrap {
  width: 100%; max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--sp-16) 10rem;
  display: flex; flex-direction: column; gap: var(--sp-24);
}
.contents-wrap img { width: 100%; height: auto; }
.contents-wrap h3 { font-size: 2rem; }
/* 섹션 밴드 (실측: h2 1.5rem bold pad3% center #3a3a3a bg #ebebeb) */
.contents-band { font-size: var(--fs-24); font-weight: var(--fw-head); padding: 3%; text-align: center; color: #3a3a3a; background: #ebebeb; }
/* 마무리 카피 (실측: overview-txt #f5f5f5 center 1.5rem 600 r10 ls1) */
.contents-closing { background: #f5f5f5; text-align: center; font-size: var(--fs-24); padding: var(--sp-10); border-radius: 10px; font-weight: var(--fw-emph); letter-spacing: 1px; }
.contents-note { font-size: var(--fs-14); color: var(--color-gray-3); line-height: 1.6; }

/* 정보 표 (근사 — 오산 서브 스크린샷 대조: 라벨 셀 회색 · 1px 행 보더) */
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid #dbdbdb; }
.info-table th, .info-table td { border-bottom: 1px solid #dbdbdb; padding: 18px 24px; font-size: var(--fs-16); text-align: left; vertical-align: top; }
.info-table th { width: 240px; background: #f5f5f5; font-weight: var(--fw-head); text-align: center; }

/* 게시판 아코디언 (실측: li pad18 · 보더 #dbdbdb · 셰브론 8px · .on 회전·본문 펼침) */
.news-board { width: 100%; }
.news-board li { position: relative; border-bottom: 1px solid #dbdbdb; padding: 18px; cursor: pointer; }
.news-board li:first-child { border-top: 1px solid #dbdbdb; }
.news-board li::after {
  content: '';
  position: absolute; right: 30px; top: 30px;
  width: 8px; height: 8px;
  border-right: 1px solid #333; border-top: 1px solid #333;
  transform: translateY(-50%) rotate(135deg);
  transition: .3s;
}
.news-board li.on::after { transform: translateY(-50%) rotate(315deg); }
.news-board .news-title { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-board li.on .news-title { font-weight: var(--fw-head); }
.news-board .acd-body { display: inline-block; width: 100%; height: 0; overflow: hidden; transition: .3s; }
.news-board li.on .acd-body { height: fit-content; padding: 22px 0 0; }
.news-board .acd-body span { display: block; white-space: normal; line-height: 1.5; color: #555; }

/* 자리표시 슬롯 (카피·자산 수급 전) */
.slot-box {
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  border: 1px dashed #bbb;
  color: #888;
  font-size: var(--fs-16);
  text-align: center;
  padding: var(--sp-16);
}

/* ---------- 자료 이미지 블록 (공홈 전용 자산 투입분) ---------- */
.doc-fig { margin: 0; }
.doc-fig img { width: 100%; height: auto; }
.doc-fig figcaption {
  margin-top: var(--sp-10);
  font-size: var(--fs-14); color: var(--color-gray-3); text-align: center;
}
/* 투시도·조감도처럼 짝으로 보는 것은 2열, 배치도처럼 정독하는 것은 1열 세로 */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-24); }
.doc-stack { display: flex; flex-direction: column; gap: var(--sp-24); }
.doc-subhead {
  margin-top: var(--sp-16);
  font-size: var(--fs-24); font-weight: var(--fw-head); color: var(--color-main1); text-align: center;
}
/* 수상 배지는 원본 185×260 래스터라 확대하면 열화 — 원 크기로 나열만 한다 */
.award-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-16); }
.award-row .doc-fig { flex: 0 0 auto; width: 170px; }   /* 185×5+간격이 본문 1000px를 넘어 4+1로 접혔다 */

@media (max-width: 990px) {
  .doc-grid { grid-template-columns: 1fr; gap: var(--sp-16); }
  .doc-stack { gap: var(--sp-16); }
  .award-row .doc-fig { width: 44%; }
}

/* 본문 카피 — 읽기 폭은 한 줄 40자 안팎으로 묶는다(본문 max-w 1000 전폭은 눈이 줄을 놓친다) */
.sub-copy {
  max-width: 42em; margin: 0 auto;
  font-size: var(--fs-19); line-height: 1.9; color: var(--color-text);
  text-align: center; word-break: keep-all;
}
.sub-copy b { font-weight: var(--fw-head); color: var(--color-main1); display: block; margin-bottom: var(--sp-12); font-size: var(--fs-24); line-height: 1.6; }
.sub-copy small { display: block; margin-top: var(--sp-16); font-size: var(--fs-14); color: var(--color-gray-3); line-height: 1.7; }

/* 유튜브 임베드 — 16:9 반응형 */
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.yt-frame iframe, .yt-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-frame + .doc-subhead { margin-top: var(--sp-32); }

/* ---------- E-모델하우스 (VR 임베드 — 원본 iframe 1320×800 실측 비율) ---------- */
.vr-frame { position: relative; width: 100%; aspect-ratio: 1320 / 800; background: #000; }
.vr-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vr-frame iframe[hidden] { display: none; }   /* keep-alive: 감춰만 두고 파괴하지 않음 */
/* 탭이 6개면 200px×6=1200px라 본문 1000px를 넘어 두 줄로 접힌다 — 6개짜리는 폭을 줄여 한 줄로 */
.vr-tabs button, .u-tabs button { max-width: 160px; }
.vr-cta { display: flex; justify-content: center; gap: var(--sp-16); }
.vr-cta a {
  display: flex; align-items: center; justify-content: center;
  min-width: 220px; height: 56px;
  background: var(--color-main1); color: var(--color-text-invert);
  font-size: var(--fs-17); font-weight: var(--fw-emph);
}
.vr-cta a.is-line { background: #fff; color: var(--color-main1); border: 1px solid var(--color-main1); }

/* ---------- 방문예약(등록형) — 접수 UI는 레퍼런스 미차용 원칙, Tally 자리 ---------- */
.visit-box { background: #f5f5f5; padding: var(--sp-40) var(--sp-24); display: flex; flex-direction: column; gap: var(--sp-16); align-items: center; }
.visit-box .slot-box { width: 100%; max-width: 560px; background: #fff; }
.visit-box .v-tel { font-size: var(--fs-24); font-weight: var(--fw-head); color: var(--color-main1); }

/* 관심고객등록 폼 — 밝은 배경용(원페이지 mo-form은 어두운 배경용이라 별도) */
.visit-form { width: 100%; max-width: 560px; background: #fff; padding: var(--sp-32) var(--sp-24); display: flex; flex-direction: column; gap: var(--sp-16); }
.visit-form .vf-row { display: flex; flex-direction: column; gap: var(--sp-8); }
.visit-form label { font-size: var(--fs-16); font-weight: var(--fw-btn); }
.visit-form label.required::after { content: " *"; color: var(--color-main1); }
/* 체크박스·라디오는 제외한다 — width:100%가 걸리면 동의 체크박스가 한 줄을 다 먹어
   글자가 오른쪽 끝으로 밀린다(기존 버그) */
.visit-form input:not([type="checkbox"]):not([type="radio"]), .visit-form textarea, .visit-form select {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-16);
  color: var(--color-text); background: #fff;
  border: 1px solid #d5d5d5; border-radius: 2px; padding: var(--sp-12); outline: none;
}
.visit-form input:focus, .visit-form textarea:focus, .visit-form select:focus { border-color: var(--color-main1); }
.visit-form input::placeholder, .visit-form textarea::placeholder { color: #aaa; font-weight: var(--fw-light); }
.visit-form textarea { resize: vertical; }
/* 개인정보 동의 — 체크박스와 [보기]를 한 줄에 */
.visit-form .agree-row { display: flex; align-items: center; gap: var(--sp-8); flex-wrap: wrap; }
.visit-form .agree-row .vf-agree { margin: 0; }
.visit-form .agree-view {
  background: none; border: 0; padding: 2px 0;
  color: var(--color-main1); font-size: var(--fs-14);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.visit-form .agree-body {
  margin-top: var(--sp-8);
  background: #f7f8fa; border: 1px solid #e2e5ea; border-radius: 4px;
  padding: var(--sp-16); line-height: 1.7; font-size: var(--fs-14); color: var(--color-gray-3);
}
.visit-form .agree-body dl { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 5px var(--sp-12); }
.visit-form .agree-body dt { font-weight: var(--fw-head); color: var(--color-text); }
.visit-form .agree-body dd { margin: 0; }
.visit-form .agree-body p { margin: var(--sp-12) 0 0; color: var(--color-gray-3); }

.visit-form .vf-agree input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--color-main1); }
.visit-form .vf-agree { display: flex; align-items: center; gap: 8px; font-size: var(--fs-14); font-weight: var(--fw-regular); }
.visit-form button.btn-img {
  background: none; border: 0; padding: 0; width: 100%; height: auto;
  display: block; filter: drop-shadow(0 4px 12px rgba(0, 9, 33, .25));
}
.visit-form button.btn-img img { display: block; width: 100%; height: auto; }
.visit-form button.btn-img:disabled { opacity: .5; }
.visit-form button[type="submit"]:not(.btn-img) {
  height: 64px; background: var(--color-main1); color: var(--color-text-invert);
  font-size: var(--fs-19); font-weight: var(--fw-emph); border-radius: var(--radius-btn);
  display: flex; align-items: center; justify-content: center;
}
.visit-form button[type="submit"]:disabled { opacity: .5; cursor: default; }

/* 접수 상태 문구 — 비어 있으면 자리 차지하지 않음(허위 성공 표시 금지) */
.form-status { font-size: var(--fs-14); line-height: 1.6; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--color-main1); font-weight: var(--fw-head); }
.form-status.is-warn { color: #c0392b; font-weight: var(--fw-btn); }

/* ---------- 유닛(평면) ---------- */
.unit-plan-img { max-width: 760px; margin: 0 auto; }
.unit-type-meta { text-align: center; font-size: var(--fs-17); color: var(--color-gray-3); }

/* ---------- 커뮤니티 그리드 ---------- */
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-12); }
.comm-grid figure { position: relative; margin: 0; }
.comm-grid figcaption { position: absolute; left: 0; bottom: 0; background: var(--color-overlay-60); color: #fff; font-size: var(--fs-14); padding: var(--sp-4) var(--sp-12); }

/* ---------- 990px↓ ---------- */
@media (max-width: 990px) {
  .subtop { height: 18rem; }
  .subtop h1 { font-size: 2rem; letter-spacing: 12px; animation: none; }
  .subtop-crumb, .subtop p { font-size: var(--fs-14); }
  .info-table th { width: 96px; padding: 12px; }
  .info-table td { padding: 12px; }
  .contents-wrap { padding-bottom: 5rem; }
  .comm-grid { grid-template-columns: 1fr 1fr; }
  .subnav--depth3 { margin: 1.5rem 0; }
  .vr-frame { aspect-ratio: 39 / 66; } /* 모바일은 세로 화면에 맞게 */
  .vr-cta { flex-direction: column; align-items: stretch; }
  .vr-cta a { min-width: 0; }
}

/* ---------- 모션 축소 ---------- */
@media (prefers-reduced-motion: reduce) {
  .subtop h1 { letter-spacing: 5px !important; animation: none !important; }
  .subtop-img { animation: none !important; }
}
