:root {
  --black: #0A0A0A;
  --dark: #1A1A1A;
  --mid: #555555;
  --light: #999999;
  --border: #E0E0E0;
  --bg: #FFFFFF;
  --bg-gray: #F5F5F5;
  --accent: #FF6B2B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a, button, input, select, textarea, label, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo .brand {
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: 1px;
}

.nav-logo .sub {
  font-size: 12px;
  color: var(--mid);
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 16.5px;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); font-weight: 700; }

/* ── NAV DROPDOWN ── */
.nav-has-drop { position: relative; }
/* hover 브릿지: nav 항목과 드롭다운 사이 공백을 투명하게 덮어 hover 끊김 방지 */
.nav-has-drop::after {
  content: '';
  position: absolute;
  top: 100%; left: -10px; right: -10px;
  height: 16px;
}
.nav-drop {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 0;
  min-width: 120px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  list-style: none;
  display: none;
  z-index: 1001;
}
.nav-drop::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav-has-drop:hover .nav-drop { display: block; }
.nav-drop li { list-style: none; }
.nav-drop li a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: var(--mid) !important;
  background: none !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  border-radius: 8px;
}
.nav-drop li a:hover { color: var(--black) !important; background: var(--bg-gray) !important; }
.nav-drop li a.active { color: var(--black) !important; font-weight: 700 !important; }
.nav-arrow { font-size: 10px; color: var(--light); margin-left: 2px; }

.nav-links .contact-btn {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff !important;
  background: var(--black);
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links .contact-btn:hover { background: var(--accent); }
.nav-links .contact-btn.active { background: var(--accent); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

/* ── PAGE HEADER (서브페이지 공통) ── */
.page-header {
  padding: 140px 5% 80px;
  background: var(--black);
}

.page-header .ph-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(35px, 5.5vw, 66px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.page-header h1 em {
  font-style: normal;
  color: var(--accent);
}

.page-header p {
  font-size: 16.5px;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  line-height: 1.8;
  font-weight: 300;
}

/* ── SECTION ── */
.section-wrap {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28.5px, 4vw, 44px);
  font-weight: 800;
  color: var(--black);
  line-height: 1.25;
  letter-spacing: -1px;
}

.divider { border: none; border-top: 1px solid var(--border); margin: 0 5%; }

/* ── FOOTER ── */
footer {
  background: #050505;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-sitemap {
  padding: 64px 5% 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.fs-brand .fsb-logo { font-size: 22px; font-weight: 900; color: rgba(255,255,255,0.7); letter-spacing: 1px; margin-bottom: 6px; }
.fs-brand .fsb-sub { font-size: 12px; color: rgba(255,255,255,0.25); margin-bottom: 20px; }
.fs-brand .fsb-desc { font-size: 13px; color: rgba(255,255,255,0.2); line-height: 1.8; margin-bottom: 20px; }
.fs-brand .fsb-contact { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.9; }
.fs-brand .fsb-contact a { color: rgba(255,255,255,0.3); text-decoration: none; }
.fs-brand .fsb-contact a:hover { color: rgba(255,255,255,0.6); }

.fs-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 18px; }
.fs-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fs-col ul a { font-size: 14.5px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.fs-col ul a:hover { color: rgba(255,255,255,0.75); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .fb-info { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-bottom .fb-info span { font-size: 12px; color: rgba(255,255,255,0.18); }
.footer-bottom .fb-copy { font-size: 12px; color: rgba(255,255,255,0.15); }

@media (max-width: 1000px) { .footer-sitemap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-sitemap { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ── BOTTOM BAR ── */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 990;
}

.bb-text {
  font-size: 15.5px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bb-text .bb-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.5px;
}

.bb-sep { color: rgba(255,255,255,0.25); }

.bb-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 18px;
  border-radius: 20px;
  transition: all 0.2s;
  white-space: nowrap;
}

.bb-portfolio:hover { border-color: var(--accent); background: var(--accent); }

body { padding-bottom: 50px; }

/* ── PHOTO SLIDER ── */
.photo-slider {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 420px;
  background: var(--bg-gray);
}

.ps-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.ps-slide.active { opacity: 1; }

.ps-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ps-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.ps-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}

.ps-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ── PAGE TRANSITION ── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body { animation: pageFadeIn 0.2s ease forwards; }

/* 페이지 나갈 때 페이드아웃 */
body.page-leaving {
  opacity: 0;
  transition: opacity 0.08s ease;
}

/* 아임웹 이동 로딩 오버레이 */
.imweb-overlay {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.imweb-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.imweb-overlay .io-logo {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.imweb-overlay .io-msg {
  font-size: 14.5px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

.imweb-overlay .io-spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── FLOATING CONTACT ── */
.float-contact-fixed {
  position: fixed !important;
  top: auto !important;
  right: 20px !important;
  bottom: 2cm !important;
  left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
}

.fc-btn {
  position: static !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 28px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }

.fc-kakao {
  background: #FEE500;
  color: #3A1D1D;
}

.fc-contact {
  background: var(--accent);
  color: #fff;
}

.fc-phone {
  background: #222;
  color: #fff;
}

.fc-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.fc-text-mobile { display: none; }
.hero-portfolio-mobile { display: none; }

/* ── MOBILE ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* 모바일 메뉴 오픈 — 3열 그리드 */
  .nav-links.mobile-open {
    display: flex !important;
    position: fixed;
    top: 60px; left: 0; right: 0;
    transform: none;
    background: rgba(255,255,255,0.99);
    backdrop-filter: blur(8px);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 998;
    gap: 0;
  }

  .nav-links.mobile-open li {
    flex: 0 0 33.333%;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.mobile-open li:nth-child(3n) { border-right: none; }
  .nav-links.mobile-open li:last-child { border-right: none; }
  .nav-links.mobile-open li:nth-last-child(-n+3) { border-bottom: none; }
  /* 모바일 드롭다운 비활성화 — 서브 항목을 인라인으로 보이게 */
  .nav-has-drop:hover .nav-drop { display: none; }
  .nav-drop { display: none !important; }
  .nav-arrow { display: none; }
  /* 계약현황 모바일 전용 노출 */
  .nav-mobile-contract { display: block !important; }

  .nav-links.mobile-open a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 8px;
    font-size: 15.5px;
    text-align: center;
    color: var(--dark) !important;
    font-weight: 500;
    background: none !important;
    border-radius: 0 !important;
  }

  .nav-links.mobile-open .contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 8px;
    background: var(--black) !important;
    color: #fff !important;
    border-radius: 0 !important;
    margin: 0;
    text-align: center;
  }

  /* 햄버거 → X */
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 3.5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -3.5px); }

  /* 섹션/헤더 */
  .section-wrap { padding: 48px 5%; }
  .page-header { padding: 100px 5% 48px; }

  /* 플로팅 버튼 — 모바일: 하단 가로 2개 배치 */
  .float-contact-fixed {
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border-top: none !important;
  }
  .fc-contact { display: none !important; }
  .fc-btn {
    flex: 1 !important;
    height: 46px !important;
    padding: 0 10px !important;
    border-radius: 23px !important;
    gap: 6px !important;
    justify-content: center !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  }
  .fc-icon { font-size: 18.5px !important; }
  .fc-text-mobile { display: inline !important; }
  .fc-text-desktop { display: none !important; }
  .hero-services-desktop { display: none !important; }
  .hero-portfolio-mobile { display: inline-flex !important; }

  /* 하단 바 — 모바일에서 숨김 (플로팅 버튼이 대체) */
  .bottom-bar { display: none !important; }
  .bb-text { font-size: 12px; gap: 5px; }
  .bb-sep { display: none; }
  .bb-text span:not(.bb-tag):not(:first-of-type) { display: none; }

  /* 푸터 2열 */
  .footer-sitemap { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
  /* 주소 1층 모바일 숨김 */
  .addr-floor { display: none; }
}

/* ── GOPLAN additions (hbplan 디자인 체계 확장) ── */
#hero { background: #0A0A0A; }
#hero .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.8)); }
.gp-values { display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; margin-top:32px; }
.gp-value { border:1px solid var(--border); padding:28px 24px; background:#fff; }
.gp-value .gp-tag { display:inline-block; font-size:13px; font-weight:700; letter-spacing:1px; color:var(--accent); margin-bottom:12px; }
.gp-value h3 { font-size:20px; font-weight:700; margin-bottom:10px; line-height:1.4; }
.gp-value p { color:var(--mid); font-size:15.5px; }
.gp-programs { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; margin-top:32px; }
.gp-program { display:block; border:1px solid var(--border); padding:22px 20px; text-decoration:none; color:var(--dark); background:#fff; transition: border-color .2s; }
.gp-program:hover { border-color: var(--black); }
.gp-program h3 { font-size:17.5px; font-weight:700; margin-bottom:8px; }
.gp-program p { font-size:14.5px; color:var(--mid); }
.gp-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:28px; }
.gp-card-item { display:block; text-decoration:none; color:var(--dark); border:1px solid var(--border); background:#fff; overflow:hidden; }
.gp-card-item img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; background:var(--bg-gray); }
.gp-card-item .gp-ci-body { padding:14px 16px; }
.gp-card-item .gp-ci-cat { font-size:13px; color:var(--accent); font-weight:700; }
.gp-card-item .gp-ci-title { font-size:16.5px; font-weight:700; margin-top:4px; }
.gp-two { display:grid; grid-template-columns: 1fr 1fr; gap:40px; align-items:start; }
.gp-list { list-style:none; margin-top:20px; }
.gp-list li { border-bottom:1px solid var(--border); padding:14px 0; font-size:16.5px; }
.gp-list-box { margin-top:12px; }
.gp-item { border-bottom:1px solid var(--border); padding:22px 0; }
.gp-item h3 { font-size:18.5px; font-weight:700; margin:6px 0; }
.gp-item p { color:var(--mid); font-size:15.5px; white-space:pre-line; }
.gp-item-date { font-size:14.5px; color:var(--muted); }
.gp-card { border:1px solid var(--border); background:#fff; padding:28px; }
.gp-card h3 { font-size:20px; font-weight:700; margin-bottom:12px; }
.gp-info { list-style:none; }
.gp-info li { display:flex; gap:16px; padding:12px 0; border-bottom:1px solid var(--border); font-size:16.5px; }
.gp-info li strong { min-width:110px; color:var(--black); font-weight:600; }
.gp-btn { display:inline-block; margin-top:18px; padding:13px 22px; background:var(--black); color:#fff; text-decoration:none; font-weight:600; border:0; cursor:pointer; font-size:16.5px; }
.gp-btn:disabled { background:#888; }
.gp-text { color:var(--mid); margin-top:14px; font-size:17.5px; }
.gp-muted { color:var(--light); font-size:15.5px; margin-top:14px; }
.gp-empty { color:var(--light); padding:24px 0; font-size:16.5px; }
.gp-prow { display:grid; grid-template-columns: 1fr 2fr; gap:32px; padding:28px 0; border-bottom:1px solid var(--border); }
.gp-prow h3 { font-size:22px; font-weight:700; }
.gp-prow p { color:var(--mid); font-size:16.5px; }
.gp-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.gp-tag-sm { font-size:13px; color:var(--mid); border:1px solid var(--border); padding:4px 10px; border-radius:999px; }
.gp-cta { background:var(--black); color:#fff; padding:64px 6%; text-align:center; }
.gp-cta h2 { font-size:28.5px; font-weight:700; margin-bottom:12px; }
.gp-cta p { color:#cfcfcf; margin-bottom:24px; }
.gp-cta .primary { background:#fff; color:var(--black); }
.gp-cta .secondary { color:#fff; border-color:#fff; }
.gp-form { max-width:820px; }
.gp-form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px 24px; }
.gp-form label { display:flex; flex-direction:column; gap:8px; font-size:15.5px; font-weight:600; color:var(--dark); }
.gp-form input, .gp-form select, .gp-form textarea { font:inherit; font-size:16.5px; font-weight:400; padding:12px 14px; border:1px solid var(--border); background:#fff; color:var(--dark); }
.gp-form .gp-full { margin-top:18px; }
.gp-form .gp-check { flex-direction:row; align-items:center; font-weight:400; margin-top:18px; }
.gp-form .gp-check a { color:var(--dark); }
.gp-msg { margin-top:14px; font-size:16.5px; color:var(--mid); }
.gp-prose { max-width:880px; font-size:16.5px; color:var(--mid); }
.gp-prose h2, .gp-prose h3 { color:var(--dark); margin:28px 0 10px; }
@media (max-width: 900px) {
  .gp-values, .gp-grid { grid-template-columns: 1fr 1fr; }
  .gp-programs { grid-template-columns: 1fr 1fr; }
  .gp-two, .gp-prow, .gp-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gp-values, .gp-grid, .gp-programs { grid-template-columns: 1fr; }
  .gp-info li { flex-direction:column; gap:4px; }
  .gp-info li strong { min-width:0; }
}

/* ── GOPLAN 이미지/플로팅 상담 ── */
.gp-vimg { width:100%; aspect-ratio:16/10; object-fit:cover; display:block; margin-bottom:16px; }
.gp-pimg { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; margin-bottom:12px; }
.gp-rimg { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; margin-bottom:14px; }
.gp-wide { width:100%; max-height:420px; object-fit:cover; display:block; margin-bottom:28px; }
.gp-float { position:fixed; right:18px; bottom:18px; z-index:900; display:flex; flex-direction:column; gap:8px; }
.gp-float-btn { display:block; padding:12px 16px; font-size:15.5px; font-weight:600; text-decoration:none; background:var(--black); color:#fff; text-align:center; min-width:150px; }
.gp-float-btn.kakao { background:#FEE500; color:#191919; }
.gp-float-btn.phone { background:#fff; color:var(--black); border:1px solid var(--black); }
@media (max-width: 560px) { .gp-float { right:10px; bottom:10px; } .gp-float-btn { min-width:0; padding:10px 12px; font-size:14.5px; } }

/* ════════════════════════════════════════════
   v2 리뉴얼 (2026-10) — 전 페이지 공통
   무채색 바탕 + 로고 초록 포인트, Pretendard
   ════════════════════════════════════════════ */
:root {
  --ink: #0D0E10;
  --ink-2: #50545C;
  --ink-3: #8E929A;
  --line: #E8E9EC;
  --mist: #F4F4F5;
  --leaf: #2BC25B;
  --leaf-dark: #17923F;
  --night: #0D0E10;
  --forest: #0D0E10;
  --black: #0D0E10;
  --dark: #0D0E10;
  --mid: #50545C;
  --light: #8E929A;
  --border: #E8E9EC;
  --bg-gray: #F4F4F5;
  --accent: #17923F;
  --muted: #8E929A;
}
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  font-feature-settings: 'ss06';
}
body { padding-bottom: 0; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

/* NAV */
nav { height: 64px; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(26,29,26,.06); padding: 0 clamp(20px, 4vw, 48px); }
.nav-logo .brand { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.nav-logo .brand b, .fsb-logo b { color: var(--leaf); font-weight: 800; }
.nav-logo .sub { font-size: 12px; color: var(--ink-3); letter-spacing: 0; }
.nav-links { gap: 30px; }
.nav-links a { font-size: 16.5px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links .contact-btn { background: var(--ink) !important; color: #fff !important; border-radius: 999px !important; padding: 9px 18px !important; font-weight: 600 !important; }
.nav-links .contact-btn:hover { background: var(--leaf-dark) !important; }
button.hamburger { background: none; border: 0; cursor: pointer; padding: 8px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--leaf-dark); }
.btn-kakao { background: #FEE500; color: #191600; }
.btn-kakao:hover { background: #F2D900; }
.btn-light { background: #fff; color: var(--night); }
.btn-leaf { background: var(--leaf); color: #04140a; }
.btn-leaf:hover { background: #4fd679; }
.btn-light:hover { background: var(--mist); }
.btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line:hover { border-color: #fff; }

/* FOOTER */
footer { background: var(--forest); border-top: 0; }
.fs-brand .fsb-logo { color: #fff; font-weight: 800; letter-spacing: -0.01em; font-size: 24px; }
.fs-brand .fsb-sub, .fs-brand .fsb-desc, .fs-brand .fsb-contact, .fs-brand .fsb-contact a { color: rgba(255,255,255,.62); }
.fs-brand .fsb-desc { font-size: 15.5px; }
.fs-brand .fsb-contact { font-size: 15px; }
.fs-col h4 { color: rgba(255,255,255,.9); font-size: 15.5px; letter-spacing: -0.01em; text-transform: none; font-weight: 700; }
.fs-col ul a { color: rgba(255,255,255,.62); font-size: 15.5px; }
.fs-col ul a:hover, .fs-brand .fsb-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
footer .fsb-logo b { color: var(--leaf); }
.footer-bottom .fb-info span, .footer-bottom .fb-copy { color: rgba(255,255,255,.5); font-size: 14px; }

/* 떠 있는 상담 버튼: 작은 알약 두 개 */
.gp-float { right: 18px; bottom: 18px; gap: 8px; }
.gp-float-btn { border-radius: 999px; min-width: 0; padding: 12px 18px; font-size: 15.5px; font-weight: 600; box-shadow: 0 6px 20px rgba(13,14,16,.18); border: 0 !important; }
.gp-float-btn.kakao { background: #FEE500; color: #191600; }
.gp-float-btn.phone { background: var(--ink); color: #fff; }
@media (min-width: 1001px) { .gp-float-btn.phone { display: none; } }
@media (max-width: 560px) {
  .gp-float { left: 12px; right: 12px; bottom: 12px; flex-direction: row; }
  .gp-float-btn { flex: 1; text-align: center; padding: 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { body { animation: none; } html { scroll-behavior: auto; } }

/* NAV v3 — 로고 옆에 메뉴, 오른쪽에 전화·상담 */
nav { justify-content: flex-start; gap: 44px; padding: 0 max(clamp(20px, 4vw, 48px), calc((100vw - 1200px) / 2 + 24px)); }
.nav-logo { flex-shrink: 0; }
.nav-links { position: static; left: auto; transform: none; flex: 1; gap: 28px; margin: 0; padding: 0; }
.nav-links > li:last-child { margin-left: auto; }
.nav-tel { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 38px; padding: 0 15px; border-radius: 999px; background: rgba(43,194,91,.1); color: var(--leaf-dark); font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; margin-left: -30px; }
.nav-tel svg { width: 15px; height: 15px; }
.nav-tel:hover { background: var(--leaf); color: #04140a; }
@media (max-width: 1100px) { nav { gap: 30px; } .nav-links { gap: 20px; } .nav-logo .sub { display: none; } }
@media (max-width: 900px) {
  nav { gap: 12px; }
  .nav-links { display: none; }
  .hamburger { display: flex; margin-left: 4px; }
  .nav-tel { margin-left: auto; height: 34px; padding: 0 12px; font-size: 15.5px; }
  .nav-links.mobile-open { display: flex !important; position: fixed; top: 64px; left: 0; right: 0; transform: none; background: rgba(255,255,255,.99); flex-direction: row; flex-wrap: wrap; padding: 0; gap: 0; border-bottom: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 998; }
  .nav-links.mobile-open li { flex: 0 0 33.333%; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0; }
  .nav-links.mobile-open li:nth-child(3n) { border-right: none; }
  .nav-links.mobile-open li:nth-last-child(-n+3) { border-bottom: none; }
  .nav-links.mobile-open a { display: flex; align-items: center; justify-content: center; padding: 22px 8px; font-size: 15.5px; text-align: center; color: var(--ink) !important; }
  .nav-links.mobile-open .contact-btn { height: 100%; border-radius: 0 !important; padding: 22px 8px !important; }
}
@media (max-width: 380px) { .nav-tel { font-size: 14.5px; padding: 0 10px; } .nav-tel svg { display: none; } }

/* 파트너사 */
.gp-partners { padding: clamp(56px, 7vw, 88px) 0 clamp(24px, 3vw, 40px); background: #fff; overflow: hidden; }
.gp-partners .pt-head { max-width: 1200px; margin: 0 auto 32px; padding: 0 5%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gp-partners .pt-head p { margin: 0; font-size: 16.5px; color: var(--ink-2); }
.pt-row { display: flex; width: max-content; gap: 12px; animation: ptRun 46s linear infinite; }
.pt-row + .pt-row { margin-top: 12px; animation-direction: reverse; animation-duration: 52s; }
.pt-track { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pt-track:hover .pt-row { animation-play-state: paused; }
.pt-logo { flex: 0 0 auto; width: 176px; height: 84px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.pt-logo img { width: 150px; height: 75px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.pt-logo:hover img { filter: none; opacity: 1; }
@keyframes ptRun { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
.pt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.pt-grid .pt-logo { width: auto; height: 96px; }
.pt-grid .pt-logo img { width: 80%; height: 70px; filter: none; opacity: 1; }
@media (max-width: 760px) { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pt-logo { width: 140px; height: 70px; } .pt-logo img { width: 120px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .pt-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 5%; } .pt-row + .pt-row { display: none; } }

/* 오시는 길 */
.gp-loc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; margin-top: 28px; }
.gp-loc-info h3 { margin: 0 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.gp-loc-info .addr { margin: 0 0 22px; font-size: 17.5px; color: var(--ink-2); line-height: 1.6; }
.gp-loc-info dl { margin: 0; display: grid; grid-template-columns: 76px 1fr; border-top: 1px solid var(--line); }
.gp-loc-info dt, .gp-loc-info dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.gp-loc-info dt { color: var(--ink-3); }
.gp-loc-info dd a { color: var(--ink); text-decoration: none; font-weight: 600; }
.gp-loc-info dd a:hover { color: var(--leaf-dark); }
.gp-loc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.gp-loc-btns a { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15.5px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.gp-loc-btns a:hover { border-color: var(--ink); }
.gp-loc-btns a.naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.gp-loc-map { position: relative; min-height: 340px; background: var(--mist); }
.gp-loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .gp-loc { grid-template-columns: 1fr; } .gp-loc-map { min-height: 280px; } }

/* 전체 글자 10% 키움 (2026-10-30) */
html { font-size: 110%; }

/* 페이지 제목을 아래 본문 시작선에 맞춤 (2026-10-30) */
.page-header { padding-left: calc(max(0px, (100% - 1200px) / 2) + 5%); padding-right: calc(max(0px, (100% - 1200px) / 2) + 5%); }
.page-header > * { max-width: 1200px; }

/* ── 서브 페이지 제목 v3: 고플랜 전용 (밝은 바탕 + 현장 사진) 2026-10-30 ── */
.page-header {
  background: var(--mist);
  color: var(--ink);
  padding-top: 112px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: end;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.page-header > * { grid-column: 1; max-width: none; }
.page-header .ph-label, .page-header .ph-crumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--ink-3); margin: 0 0 18px;
}
.page-header .ph-crumb a { color: var(--ink-3); text-decoration: none; }
.page-header .ph-crumb a:hover { color: var(--ink); }
.page-header .ph-crumb i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); display: inline-block; }
.page-header .ph-crumb b { color: var(--ink); font-weight: 600; }
.page-header h1 {
  color: var(--ink); margin: 0;
  font-size: clamp(38px, 4.6vw, 64px); font-weight: 800; line-height: 1.12; letter-spacing: -0.045em;
}
.page-header h1 em {
  font-style: normal; color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(43,194,91,.35) 62%);
}
.page-header p { color: var(--ink-2); margin: 18px 0 0; font-size: 17.5px; line-height: 1.7; max-width: 34em; }
.page-header .ph-photo {
  grid-column: 2; grid-row: 1 / span 3; align-self: stretch;
  margin: 0; min-height: 200px; max-height: 260px; overflow: hidden; background: var(--line);
}
.page-header .ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .page-header { grid-template-columns: 1fr; padding-top: 104px; padding-bottom: 36px; }
  .page-header .ph-photo { display: none; }
}

/* 섹션 라벨: 영문 대문자 대신 초록 점 + 한글 (2026-10-30) */
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--leaf-dark); margin-bottom: 14px; }
.section-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.h-works .section-label, .gp-cta .section-label { color: var(--leaf); }

/* 서브 페이지 제목 v4: 사진 없이 글자만 — 제목 왼쪽, 설명 오른쪽 (2026-10-30) */
.page-header { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: clamp(32px, 6vw, 96px); row-gap: 0; align-items: end; padding-top: 120px; padding-bottom: 52px; }
.page-header .ph-crumb, .page-header .ph-label { grid-column: 1 / -1; grid-row: 1; }
.page-header h1 { grid-column: 1; grid-row: 2; }
.page-header p { grid-column: 2; grid-row: 2; margin: 0; padding-bottom: 6px; max-width: 30em; justify-self: end; }
@media (max-width: 860px) {
  .page-header { grid-template-columns: 1fr; padding-top: 104px; padding-bottom: 36px; }
  .page-header h1, .page-header p { grid-column: 1; grid-row: auto; }
  .page-header p { margin-top: 16px; justify-self: start; }
}

/* 서브 페이지 제목 v5: 한 줄 흐름으로 정리 — 경로 · 제목 · 설명을 왼쪽 기준선에 차례로 (2026-10-30) */
.page-header { display: block; padding-top: 124px; padding-bottom: 56px; }
.page-header .ph-crumb, .page-header .ph-label { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(36px, 4vw, 56px); line-height: 1.18; }
.page-header p { margin: 20px 0 0; padding: 0; max-width: 40em; justify-self: auto; }
@media (max-width: 860px) { .page-header { padding-top: 104px; padding-bottom: 40px; } }

/* 서브 페이지 제목 v6: 여백 축소 + 모든 페이지 같은 간격 (2026-10-30) */
.page-header { padding-top: 92px !important; padding-bottom: 30px !important; }
.page-header .ph-crumb, .page-header .ph-label { margin: 0 0 12px !important; }
.page-header h1 { margin: 0 !important; font-size: clamp(32px, 3.4vw, 46px) !important; line-height: 1.2 !important; }
.page-header p { margin: 12px 0 0 !important; font-size: 16.5px !important; }
.page-header + section.section-wrap, .page-header + .section-wrap { padding-top: 40px; }
@media (max-width: 860px) { .page-header { padding-top: 84px !important; padding-bottom: 24px !important; } .page-header + section.section-wrap { padding-top: 28px; } }

/* 서브 페이지 제목 v7: 위아래 여백 최소화 (메뉴 아래 약 0.5cm) 2026-10-30 */
.page-header { padding-top: 84px !important; padding-bottom: 20px !important; }
.page-header .ph-crumb, .page-header .ph-label { margin: 0 0 8px !important; }
.page-header p { margin: 8px 0 0 !important; }
.page-header + section.section-wrap, .page-header + .section-wrap { padding-top: 24px; }
@media (max-width: 860px) { .page-header { padding-top: 80px !important; padding-bottom: 18px !important; } .page-header + section.section-wrap { padding-top: 20px; } }
/* 제목 설명 한 줄 */
@media (min-width: 861px) { .page-header p { max-width: none !important; white-space: nowrap; } }
