:root {
  /* ===== BRAND · 메인 #02254B (Deep Navy) =====
     브랜드 기준색. 다크면(헤더·상담 패널·CTA)과 밝은배경 위 텍스트 양쪽에 쓴다.
     900 딥톤 / 800 밝은배경 텍스트 / 700·600 hover·라인 / 400·200·100·050 틴트 면 */
  --brand: #02254B;
  --brand-900: #010f1e;
  --brand-800: #02254B;
  --brand-700: #0b3867;
  --brand-600: #2e5884;
  --brand-400: #8ba2ba;
  --brand-200: #c9d5e2;
  --brand-100: #eaeff4;
  --brand-050: #f5f8fa;

  /* ===== ACCENT · 서브 #F7F7F7 (Soft White) ===== */
  --accent: #F7F7F7;
  --accent-h: #e4e7ea;
  --accent-d: #02254B;
  --accent-soft: #b8c5d0;
  --accent-pale: #eff1f4;

  /* ===== NEUTRAL · 네이비 기운 중성색 ===== */
  --ink: #12202f;
  --sub: #55616e;
  --muted: #8e97a0;
  --paper: #ffffff;
  --bg: #F7F7F7;
  --surface: #eceef1;
  --line: #e3e6ea;
  --line-d: #cfd5db;

  /* ===== ICON (브랜드 컬러 고정 SVG) ===== */
  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2302254B'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  --icon-phone-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F7F7F7'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  --icon-phone-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  --icon-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2302254B'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");

  /* ===== HEADER ===== */
  --header-bg: rgba(247, 247, 247, .94);
  --header-bg-solid: #f7f7f7;
  --header-ink: var(--brand);

  /* ===== ELEVATION ===== */
  --shadow-sm: 0 2px 10px rgba(2, 37, 75, .07);
  --shadow-md: 0 10px 26px rgba(2, 37, 75, .16);
  --shadow-lg: 0 20px 44px rgba(2, 37, 75, .16);

  --radius: 3px;
  --radius-md: 6px;
  --maxw: 1180px;
  --shell: 768px;
  --cta-h: 60px;
  --header-h: 76px;
  --subnav-h: 50px;
  /* 전체 폰트를 Pretendard 로 통일 — serif/display/brush 이름은 남기고
     전부 --sans 를 가리키게 해서 사용처를 일일이 고치지 않아도 되게 했다 */
  --sans: 'Pretendard Variable', 'Pretendard', 'Nanum Gothic', 'NanumGothic', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --serif: var(--sans);
  --display: var(--sans);
  --brush: var(--sans);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 8px);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 5.14vw, 40px);
}

section {
  padding: 120px 0;
}

.html.js .reveal,
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   섹션 전체를 감싸는 뼈대 (헤더/CTA 바 사이 본문 영역)
   ============================================================ */
.blocks {
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .13em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: .25s;
  font-family: var(--sans);
}

.btn::after {
  content: "→";
  font-family: var(--serif);
  font-size: 15px;
  transition: transform .25s;
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent);
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 18px 38px;
}

.btn-primary:hover {
  background: var(--accent-h);
  color: var(--brand);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* padding(=높이)은 트랜지션에서 뺀다 — 여기 애니메이션이 걸려 있으면
     JS 가 스크롤 중간에 측정하는 --header-h 값이 실제 높이보다 뒤처져서
     바로 아래 붙는 서브 내비가 어긋나 보인다. 색/그림자만 부드럽게. */
  transition: background-color .4s, box-shadow .4s;
  padding: 18px 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(2, 37, 75, .1);
}

header.scrolled {
  background: var(--header-bg-solid);
  box-shadow: 0 1px 0 rgba(2, 37, 75, .14), var(--shadow-md);
  padding: 10px 0;
}

/* 로고 헤더 바로 아래 붙는 스티키 서브 내비게이션 — 6개 섹션 바로가기.
   탭 스타일: 배경 없이 텍스트만, 현재 섹션 탭에만 밑줄이 붙는다.
   항목이 셸 폭에 다 안 들어가면 가로 스크롤(스크롤바는 숨김)된다. */
.subnav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.subnav-inner {
  display: flex;
  padding-left: 0;
  padding-right: 0;
}

.subnav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 13px 2px 11px;
  color: var(--muted);
  font-size: clamp(10.5px, 3vw, 14px);
  font-weight: 600;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}

.subnav a:hover {
  color: var(--sub);
}

.subnav a.active {
  color: var(--ink);
  font-weight: 800;
  border-bottom-color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--header-ink);
  transition: .4s;
}

.logo-mark {
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 6px;
}

header.scrolled .logo-mark {
  width: 25px;
  height: 30px;
}

.logo-text {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
}

header.scrolled .logo-text {
  font-size: 20px;
}

@media (max-width:600px) {
  .logo-text {
    font-size: 19px;
  }

  header.scrolled .logo-text {
    font-size: 17px;
  }
}

/* ============================================================
   계약 조건 확인하기 — 메인컬러(#02254B) 다크면 + 서브컬러(#F7F7F7) 솔리드 구성
   ============================================================ */
.contact {
  background: var(--brand);
  color: var(--accent);
  position: relative;
  padding: 72px 0;
}

.contact .c-head {
  margin-bottom: 34px;
}

.contact .c-head::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 18px;
}

.contact .c-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
  color: var(--accent);
}

.contact .c-head p {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--accent);
}

.form {
  position: relative;
  z-index: 1;
}

.form .field {
  margin-bottom: 10px;
}

.form label.fl {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form input {
  width: 100%;
  padding: 19px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  transition: border-color .18s, box-shadow .18s;
}

.form input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(247, 247, 247, .5);
}

.form .agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
  margin: 16px 2px 18px;
  font-weight: 400;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.form .agree input {
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.form .agree .box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(247, 247, 247, .6);
  border-radius: 3px;
  background: transparent;
  position: relative;
  transition: .15s;
}

.form .agree:hover .box {
  border-color: var(--accent);
}

.form .agree input:checked+.box {
  background: var(--accent);
  border-color: var(--accent);
}

.form .agree input:checked+.box::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 2.5px;
  width: 5px;
  height: 10px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form .agree input:focus-visible+.box {
  outline: 2px solid rgba(247, 247, 247, .8);
  outline-offset: 2px;
}

.contact-tel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(247, 247, 247, .32);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  transition: border-color .18s, background-color .18s;
}

.contact-tel:hover {
  border-color: var(--accent);
  background: rgba(247, 247, 247, .1);
}

.contact-tel .ct-label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--accent);
  white-space: nowrap;
}

.contact-tel .ct-num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent);
  white-space: nowrap;
}

.contact-tel .ct-num::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  background: var(--icon-phone-a) center/contain no-repeat;
}

.done-panel {
  position: relative;
  z-index: 1;
  padding: 40px 24px 36px;
  text-align: center;
  background: rgba(247, 247, 247, .09);
  border-radius: var(--radius-md);
}

.done-panel h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.03em;
}

.done-panel p {
  margin: 12px 0 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--accent);
}

.form .btn::after,
.done-panel .btn::after {
  content: none;
}

.form .btn,
.done-panel .btn {
  width: 100%;
  justify-content: center;
  padding: 20px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  border-radius: var(--radius-md);
}

/* 상담 제출 버튼 — 고정 골드 바탕 + 기울어진 하이라이트가 훑고 지나가는
   반짝임(::before) + 테두리를 따라 도는 회전 광택(.spin-border/.spin-mask).
   네온 글로우(box-shadow 번짐)는 뺐다 — 모든 상담폼 공통 스타일. */
.form .btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
      #b8860b 0%,
      #e6c65a 30%,
      #fff6d5 50%,
      #e6c65a 70%,
      #b8860b 100%);
  color: #2b1e00;
  border-color: #caa020;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  animation: btn-bob 2.6s ease-in-out infinite, gold-glow-soft 2.4s ease-in-out infinite;
}

.form .btn-primary>span:last-child {
  position: relative;
  z-index: 1;
}

/* 회전하는 테두리 광택 — 바깥쪽 conic-gradient 링을 돌리고, 그 위를
   버튼과 같은 골드 그라데이션으로 다시 덮어(spin-mask) 테두리 두께만큼만
   빛이 새어나오게 만든다. 버튼 자체 background 는 이 mask 뒤에 가려진다. */
.form .btn-primary .spin-border {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.form .btn-primary .spin-border::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 300deg,
      #fff8dc 330deg,
      #fffef0 345deg,
      #fff8dc 355deg,
      transparent 360deg);
  animation: spin-border-rotate 2.4s linear infinite;
}

.form .btn-primary .spin-mask {
  position: absolute;
  inset: 3.5px;
  border-radius: calc(var(--radius-md) - 2px);
  background: linear-gradient(135deg,
      #b8860b 0%,
      #e6c65a 30%,
      #fff6d5 50%,
      #e6c65a 70%,
      #b8860b 100%);
  pointer-events: none;
}

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

.form .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -28%;
  width: 11%;
  background: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 253, 245, .92) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  animation: btn-sheen 3s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.form .btn-primary:hover {
  color: #2b1e00;
}

.form .btn-primary:active {
  animation: none;
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, .18),
    0 3px 8px rgba(140, 100, 0, .3);
}

@keyframes btn-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* 아주 좁고 옅은 골드 후광 — 번지는 범위를 작게 눌러서 은은하게만 보이게 */
@keyframes gold-glow-soft {

  0%,
  100% {
    box-shadow: 0 0 6px 0 rgba(230, 180, 40, .35);
  }

  50% {
    box-shadow: 0 0 10px 1px rgba(240, 195, 70, .55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form .btn-primary {
    animation: none;
  }

  .form .btn-primary .spin-border::before {
    animation: none;
  }
}

@keyframes btn-sheen {
  0% {
    left: -28%;
    animation-timing-function: cubic-bezier(.45, 0, .55, 1);
  }

  33% {
    left: 116%;
  }

  100% {
    left: 116%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .form .btn-primary {
    animation: none;
  }

  .form .btn-primary::before {
    animation: none;
    opacity: 0;
  }
}

/* 상단 첫 상담 폼(#contact-top)만 밝은 면으로 반전 */
#contact-top {
  background: linear-gradient(180deg, #FFFBF2 0%, #FAEFD8 100%);
  color: var(--brand);
}

#contact-top .c-head::before {
  background: #C9A257;
}

#contact-top .c-head h2 {
  color: var(--brand);
}

#contact-top .c-head p {
  color: #6B6153;
}

#contact-top .form input {
  border-color: rgba(2, 37, 75, .72);
}

#contact-top .form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(2, 37, 75, .14);
}

#contact-top .form .agree {
  color: #5C5446;
}

#contact-top .form .agree .box {
  border-color: rgba(2, 37, 75, .72);
  background: #fff;
}

#contact-top .form .agree:hover .box {
  border-color: var(--brand);
}

#contact-top .form .agree input:checked+.box {
  background: var(--brand);
  border-color: var(--brand);
}

#contact-top .form .agree input:checked+.box::after {
  border-color: #fff;
}

#contact-top .form .agree input:focus-visible+.box {
  outline-color: rgba(2, 37, 75, .55);
}

#contact-top .contact-tel {
  border-color: rgba(2, 37, 75, .72);
}

#contact-top .contact-tel:hover {
  border-color: var(--brand);
  background: rgba(2, 37, 75, .04);
}

#contact-top .contact-tel .ct-label {
  color: #6B6153;
}

#contact-top .contact-tel .ct-num {
  color: var(--brand);
}

#contact-top .contact-tel .ct-num::before {
  background-image: var(--icon-phone);
}

#contact-top .done-panel {
  background: rgba(255, 255, 255, .72);
  border: 1px solid #EFE2C8;
}

#contact-top .done-panel h3 {
  color: var(--brand);
}

#contact-top .done-panel p {
  color: #5C5446;
}

#contact-top .done-panel .btn-primary {
  background: var(--brand);
  color: var(--accent);
  border-color: var(--brand);
}

#contact-top .done-panel .btn-primary:hover {
  background: var(--brand-700);
  color: var(--accent);
  border-color: var(--brand-700);
}

/* 상시 노출 액션 — 전화 / 계약 조건 확인하기 */
.floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fab {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--accent);
  border: none;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  box-shadow: 0 10px 26px rgba(2, 37, 75, .34);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  transition: .25s;
}

.fab:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 14px 30px rgba(2, 37, 75, .42);
}

.fab.accent {
  position: relative;
  background: var(--accent);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(2, 37, 75, .34);
  border: 1px solid var(--line-d);
}

.fab.accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: fabPulse 2.4s cubic-bezier(.22, 1, .36, 1) infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: .7
  }

  70% {
    transform: scale(1.5);
    opacity: 0
  }

  100% {
    transform: scale(1.5);
    opacity: 0
  }
}

@media (prefers-reduced-motion:reduce) {
  .fab.accent::before {
    animation: none;
  }
}

.fab.top {
  width: 46px;
  height: 46px;
  margin-left: auto;
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line-d);
  font-family: var(--serif);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.site-foot {
  background: var(--brand-100);
  border-top: 1px solid var(--line);
  padding: 26px 0 30px;
}

.site-foot p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--sub);
  letter-spacing: -.01em;
}

.site-foot .foot-name {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--brand-800);
}

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: var(--brand);
  box-shadow: 0 -6px 22px rgba(2, 37, 75, .3);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.mobile-bar .mb-tel {
  color: var(--accent);
  font-weight: 800;
}

.mobile-bar .mb-tel::before {
  content: "";
  width: 17px;
  height: 17px;
  background: var(--icon-phone-a) center/contain no-repeat;
}

.mobile-bar .mb-cta {
  background: var(--accent);
  color: var(--brand);
  font-size: 16.5px;
  font-weight: 800;
}

/* ============================================================
   ★ 신규 섹션 — 기존에는 sec2~sec9 통이미지로만 채워져 있던 8개
   섹션을 실제 텍스트·선·도형(HTML+CSS)으로 재구성한 부분.
   사진이 필요한 자리는 전부 .photo 로 비워두고, 아래 스크립트의
   PHOTOS{} 객체에 경로만 넣으면 자동으로 채워지도록 만들었다.
   ============================================================ */

/* 사진 자리표시자 — PHOTOS[key] 가 비어 있으면 점선 박스 + 라벨,
   채워지면 실제 사진으로 자동 전환된다 */
.photo {
  position: relative;
  background: var(--surface) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--line-d);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px;
  overflow: hidden;
}

.photo.has-photo {
  border-color: transparent;
}

.photo.has-photo .ph-label {
  display: none;
}

/* 코너 리본 — "Point" / "선착순". 피그마 원본은 띠가 아니라 모서리를
   통째로 덮는 삼각형이라, clip-path 로 실제 삼각형을 채우고 그 위에
   문구를 대각선으로 얹는다. */
.corner-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(220px, 32vw, 260px);
  height: clamp(140px, 20.5vw, 165px);
  pointer-events: none;
  z-index: 2;
}

.corner-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fff6da, #e7c465);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, .2);
}

/* 삼각형을 가로지르며 반짝이는 골드 하이라이트 — 삼각형 자체보다
   훨씬 큰 사선 띠를 만들어 놓고 좌우로 쓸고 지나가게 한다 */
.corner-ribbon::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(115deg,
      transparent 30%,
      rgba(255, 255, 255, .85) 48%,
      rgba(255, 255, 255, .85) 52%,
      transparent 70%);
  background-size: 300% 300%;
  background-position: 120% 120%;
  animation: ribbon-shine 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ribbon-shine {

  0%,
  20% {
    background-position: 120% 120%;
  }

  60%,
  100% {
    background-position: -20% -20%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .corner-ribbon::after {
    animation: none;
    display: none;
  }
}

.corner-ribbon span {
  position: absolute;
  top: 30%;
  left: 10%;
  transform: rotate(-33.7deg);
  transform-origin: left center;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(19px, 3.6vw, 24px);
  letter-spacing: .01em;
  color: #4a3208;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}

/* 금색 그라데이션 텍스트 — 다크 네이비 배경 위 강조 문구 */
.gold-text {
  background: linear-gradient(180deg, #fff6d8 0%, #e9c46a 55%, #cfa94e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 두꺼운 구분선 */
.divider-thick {
  height: 4px;
  background: var(--brand);
}

/* 서브타이틀 바 — 다크 네이비 바탕 + 화이트 텍스트 (.hl 로 부분 강조)
   피그마 실측: 컨테이너 폭 전체를 채우는 사각 바, 텍스트는 왼쪽 정렬 */
.subbar {
  display: block;
  margin: 18px 0 0;
  width: 100%;
  padding: 15px 20px;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: clamp(15px, 4.2vw, 21px);
  font-weight: 700;
  line-height: 1.5;
}

.subbar .hl {
  color: #f0cf6e;
}

/* 섹션 대제목 — Pretendard Black 웨이트로 포스터 타이틀 느낌을 낸다.
   피그마 실측 기준 모든 대제목 크기를 이 값 하나로 통일한다
   (개별 섹션에서 font-size 를 다시 지정하지 않는다) */
.disp-h2 {
  font-family: var(--display);
  font-weight: 900;
  text-align: center;
  letter-spacing: -.03em;
  font-size: clamp(42px, 13.2vw, 102px);
  line-height: 1.15;
}


.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.5%;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  font-size: clamp(10px, 2.7vw, 11px);
  letter-spacing: -.01em;
  color: #f2ead8;
}

/* ---------- 03 · 체크 포인트 (10항목 · 색상별 배지) ----------
   피그마 "체크포인트" 컴포넌트 스펙을 그대로 이식 (1080px 프레임 기준
   값을 768px 셸 폭으로 환산: ×0.7111, 모바일은 vw 로 비례). 숫자
   배지만 디자인 그대로 세리프(Crimson Text)를 쓰고, 나머지는 Pretendard. */
.check-sec {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  padding: 60px 0 56px;
}

.check-sec::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(60% 45% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%);
}

.check-head {
  position: relative;
  z-index: 1;
  text-align: center;
}

.check-head .eyebrow {
  color: #fff;
  font-weight: 500;
  font-size: clamp(18px, 6.2vw, 47px);
  letter-spacing: -.02em;
  margin-top: 34px;
}

.check-head h2 {
  font-weight: 700;
  margin-top: 4px;
  background: linear-gradient(90deg, #fffbed 0%, #ffdd31 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.check-list {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.85vw, 14px);
}

.check-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1vw, 6px);
  text-align: center;
  background: #fff;
  border-radius: clamp(12px, 1.85vw, 15px);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 44, 72, .14);
  min-height: clamp(84px, 16.7vw, 128px);
  padding: clamp(14px, 3.2vw, 20px) 7%;
}

.check-item .num {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(52px, 12.6vw, 97px);
  height: clamp(40px, 7.5vw, 58px);
  border-radius: clamp(12px, 1.85vw, 15px) 0 clamp(12px, 1.85vw, 15px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Crimson Text', var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 4.5vw, 33px);
  letter-spacing: -.02em;
}

.check-item .txt {
  font-weight: 800;
  font-size: clamp(21px, 6.5vw, 51px);
  color: #142c48;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.check-item .sub {
  font-size: clamp(11px, 2.4vw, 17px);
  color: #142c48;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

/* 01~10번을 무지개(빨주노초파남보) 순서로 부드럽게 이어지도록 색상환을
   0°~300° 구간에서 균등 분할(각 33.3°씩)했다 — 인접 항목끼리 색상환
   바로 옆 색이라 "빨강 다음 초록" 같은 급격한 전환이 생기지 않는다 */
.check-item.c1 .num {
  background: linear-gradient(90deg, hsl(0, 75%, 22%) 0%, hsl(0, 80%, 45%) 53.365%, hsl(0, 75%, 22%) 100%);
}

.check-item.c2 .num {
  background: linear-gradient(90deg, hsl(33, 75%, 22%) 0%, hsl(33, 80%, 45%) 53.365%, hsl(33, 75%, 22%) 100%);
}

.check-item.c3 .num {
  background: linear-gradient(90deg, hsl(67, 75%, 22%) 0%, hsl(67, 80%, 45%) 53.365%, hsl(67, 75%, 22%) 100%);
}

.check-item.c4 .num {
  background: linear-gradient(90deg, hsl(100, 75%, 22%) 0%, hsl(100, 80%, 45%) 53.365%, hsl(100, 75%, 22%) 100%);
}

.check-item.c5 .num {
  background: linear-gradient(90deg, hsl(133, 75%, 22%) 0%, hsl(133, 80%, 45%) 53.365%, hsl(133, 75%, 22%) 100%);
}

.check-item.c6 .num {
  background: linear-gradient(90deg, hsl(167, 75%, 22%) 0%, hsl(167, 80%, 45%) 53.365%, hsl(167, 75%, 22%) 100%);
}

.check-item.c7 .num {
  background: linear-gradient(90deg, hsl(200, 75%, 22%) 0%, hsl(200, 80%, 45%) 53.365%, hsl(200, 75%, 22%) 100%);
}

.check-item.c8 .num {
  background: linear-gradient(90deg, hsl(233, 75%, 22%) 0%, hsl(233, 80%, 45%) 53.365%, hsl(233, 75%, 22%) 100%);
}

.check-item.c9 .num {
  background: linear-gradient(90deg, hsl(267, 75%, 22%) 0%, hsl(267, 80%, 45%) 53.365%, hsl(267, 75%, 22%) 100%);
}

.check-item.c10 .num {
  background: linear-gradient(90deg, hsl(300, 75%, 22%) 0%, hsl(300, 80%, 45%) 53.365%, hsl(300, 75%, 22%) 100%);
}

/* ---------- 04 · 입지환경 ---------- */
.loc-sec {
  background: var(--paper);
  padding: 64px 0;
}

.loc-sec h2 {
  color: var(--brand);
}

.loc-sec .divider-thick {
  margin-top: 28px;
}

/* 피그마 실측 비율: 사진이 카드 폭의 ~32%, 세로가 더 짧은 5:4 비율로
   본문 세로폭(사진+3줄 불릿)에 맞춰 훨씬 크게 들어간다 */
.loc-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 3vw, 20px);
  padding: 28px 0;
  border-bottom: 1px dashed var(--line-d);
}

.loc-row:last-of-type {
  border-bottom: none;
}

.loc-row .photo {
  flex: 0 0 32%;
  aspect-ratio: 5 / 4;
  border-radius: 6px;
  font-size: 9.5px;
}

.loc-row .col {
  flex: 1;
  min-width: 0;
}

.loc-row .col h3 {
  color: var(--brand);
  font-size: clamp(18px, 5.2vw, 21px);
  font-weight: 800;
}

.loc-row .col ul {
  margin-top: 10px;
  padding-left: 18px;
}

.loc-row .col li {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.loc-row .col li:last-child {
  margin-bottom: 0;
}

.loc-row .col li b {
  color: var(--brand);
}

.loc-caption {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  text-align: center;
}

/* 디자인이 촘촘히 얽힌 구간(커뮤니티·평면도)은 코드로 재조립하지 않고
   통이미지를 그대로 넣는다 — assets/*.jpg 로 교체 가능 */
.block-img img {
  display: block;
  width: 100%;
  height: auto;
}


/* ---------- 07 · 평면도 ---------- */
.plan-notes {
  margin-top: 32px;
  list-style: none;
}

.plan-notes li {
  position: relative;
  padding-left: 14px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.plan-notes li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* ---------- 08 · 사업개요 ---------- */
.overview-sec {
  background: var(--bg);
}

.overview-head {
  text-align: center;
  padding: 50px 0 0;
}

.overview-head h2 {
  color: var(--brand);
}

.overview-sec .divider-thick {
  margin: 26px 0 0;
}

.overview-table {
  padding-bottom: 60px;
}

.overview-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--line-d);
}

.overview-row:last-child {
  border-bottom: none;
}

.overview-row .k {
  flex: none;
  width: clamp(78px, 24vw, 108px);
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 12px 6px;
  border-radius: 8px;
  font-weight: 800;
  font-size: clamp(12px, 3.4vw, 16px);
}

.overview-row .v {
  font-size: clamp(13px, 3.6vw, 15px);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================================
   모바일 전용 레이아웃 (반응형 없음)
   ============================================================ */
html {
  background: var(--brand-100);
  scroll-padding-bottom: calc(var(--cta-h) + 16px);
}

body {
  max-width: var(--shell);
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 60px rgba(2, 37, 75, .18);
  padding-top: calc(var(--header-h) + var(--subnav-h));
  padding-bottom: calc(var(--cta-h) + 16px);
}

header,
.subnav,
.mobile-bar {
  left: 50%;
  right: auto;
  width: 100%;
  max-width: var(--shell);
  transform: translateX(-50%);
}

.floating {
  right: max(14px, calc(50% - var(--shell) / 2 + 14px));
  bottom: calc(var(--cta-h) + 16px);
}

section {
  padding: 80px 0;
}

.container {
  /* 피그마 1080px 프레임 기준 좌우 여백 비율(55.5px / 1080 ≈ 5.14vw)을
     그대로 유지 — 고정 px 이면 좁은 폰에서 여백 비중이 달라져 줄바꿈
     기준이 피그마와 어긋난다 */
  padding: 0 clamp(16px, 5.14vw, 40px);
}

.mobile-bar {
  display: flex;
}

.floating .fab:not(.top) {
  display: none;
}
