/* 색상을 바꾸려면 아래 :root 값만 고치면 됩니다 (A안: 흰 배경 + 클리어 블루 #1F5EDB + 네이비 #14213D) */
:root {
  --green: #14213d;      /* 제목·진한 글자·진한 면 (변수 이름은 예전 것을 그대로 씁니다) */
  --green-2: #26365a;
  --green-soft: #eaf0fd; /* 포인트 색의 아주 연한 배경 */
  --beige: #f5f8fd;      /* 연한 배경 */
  --beige-2: #e3e9f4;
  --gold: #1f5edb;       /* 포인트(클리어 블루) */
  --gold-light: #9fbaf5;
  --accent: #1f5edb;
  --ink: #1b2338;
  --muted: #5a6478;
  --line: #e1e6ef;
  --white: #fff;
  --red: #c2412d;
  --radius: 16px;
  --header: 64px;
  --blue: #1f5edb;
  --blue-dark: #1849ae;
  --navy-deep: #0e1830;  /* 바닥글·빠른 메뉴 */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Site Sans", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif; color: var(--ink); background: var(--white); line-height: 1.7; font-size: 16px; word-break: keep-all; overflow-wrap: break-word; padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; }
table { border-collapse: collapse; width: 100%; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 800px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
mark.verify { background: #fde9a8; color: #6a4a00; font-size: .85em; font-weight: 700; padding: 0 .3em; border-radius: 3px; white-space: nowrap; }

/* 헤더 */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 10px; height: var(--header); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; color: var(--green); letter-spacing: -.03em; font-size: 14.5px; line-height: 1.2; flex: 1 1 auto; min-width: 0; }
.logo svg { flex: none; }
.nav { display: none; position: absolute; top: var(--header); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(27,43,75,.1); max-height: calc(100vh - var(--header)); overflow: auto; }
.nav.open { display: block; }
.nav > ul { padding: 8px 18px 14px; }
.nav a { display: block; padding: 10px 2px; text-decoration: none; font-weight: 600; }
.nav a[aria-current="page"] { color: var(--gold); }
.st { font-weight: 600; font-size: .86em; margin-left: 2px; }
.st-open { color: #1f7a5a; }
.st-closed { color: #7b807d; }
.st-new { color: var(--gold); }
.nav-etc:first-of-type, .nav-site + .nav-etc { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; flex: none; }
.menu-btn span { width: 18px; height: 2px; background: var(--green); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.3; transition: background .15s, color .15s, border-color .15s; }
.btn-lg { padding: 14px 22px; font-size: 16.5px; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-2); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-call { background: var(--green); color: var(--white); }
.btn-call:hover { background: var(--green-2); }
.btn-gold { background: var(--blue); color: var(--white); }
.btn-gold:hover { background: var(--blue-dark); }
.btn-beige { background: var(--beige-2); color: var(--green); }
.btn-beige:hover { background: var(--green-soft); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-line { border-color: var(--green); color: var(--green); background: transparent; }
.btn-line:hover { background: var(--green-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.header-call { padding: 8px 11px; font-size: 14px; flex: none; white-space: nowrap; }
.header-call svg { width: 15px; height: 15px; }

/* 배지 */
.badges { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.badge-open { background: #13795b; color: var(--white); } /* 계약가능: 초록 */
.badge-closed { background: #4b5568; color: var(--white); } /* 마감: 회색 */
.badge-new { background: var(--gold); color: var(--white); }
.badge-hot { background: var(--red); color: var(--white); }
.badge-soon { background: #d9480f; color: var(--white); } /* 마감임박: 주황 */
.tag-soon { font-style: normal; font-size: 12px; font-weight: 700; color: #3d2a06; background: var(--gold-light); padding: 1px 7px; border-radius: 999px; }

/* 메인 히어로: 사진의 밝은 왼쪽에 글자를 올리고 '보증금 0원'을 가장 크게 보여 줍니다.
   휴대폰은 사진이 위, 글자가 아래입니다. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--white); color: var(--ink); }
.hero-bg { position: relative; overflow: hidden; }
.hero-bg picture { display: block; height: 100%; }
.hero-bg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% center; }
.hero-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.photo-note { position: absolute; right: 10px; bottom: 6px; z-index: 1; font-size: 11px; line-height: 1.4; color: rgba(255,255,255,.82); text-shadow: 0 0 3px rgba(0,0,0,.55); }
.hero-bg .photo-note { bottom: 19%; }
.hero-in { position: relative; padding-top: 4px; padding-bottom: 42px; }
.eyebrow { color: var(--green-2); font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.hero h1 { font-size: clamp(26px, 7vw, 46px); font-weight: 800; color: var(--green); }
/* h1의 약 2배 크기 */
.hero-big { font-size: clamp(52px, 15vw, 96px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; color: var(--accent); margin-top: 8px; white-space: nowrap; }
.hero-big em { font-style: normal; }
.hero-big::after { content: ""; display: block; width: 92px; height: 4px; margin-top: 12px; background: var(--accent); transform-origin: left center; }
.hero-lead { margin-top: 14px; font-size: 17px; }
.hero .hero-lead { color: var(--ink); max-width: 620px; }
/* 첫 화면 조건 띠: 처음 크기(20px)의 1.5배, 가운데 정렬 */
.terms-band { background: var(--green); color: var(--beige); text-align: center; padding: 22px 0 18px; }
.terms-wrap { max-width: 1280px; margin: 0 auto; padding: 0 18px; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 8px; }
.terms > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.terms > div { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.terms .emoji { font-size: 22px; line-height: 1.2; }
.terms dt { font-size: 15px; font-weight: 700; color: var(--beige-2); margin-top: 1px; }
.terms dd { font-size: 30px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; color: var(--gold-light); }
.term-line { display: block; white-space: nowrap; }
.term-line small { font-size: .5em; font-weight: 700; letter-spacing: -.01em; color: var(--beige); margin-left: .18em; }
.count { display: inline-block; }
.count .c { display: inline-grid; justify-items: center; }
.count .c::before { content: attr(data-c); visibility: hidden; grid-area: 1 / 1; }
.count .c i { font-style: normal; grid-area: 1 / 1; }
.terms-note { margin-top: 14px; font-size: 14.5px; font-weight: 600; }
.terms-band .disclaimer { margin-top: 4px; }
/* 섹션 위 사진 */
.section-photo { position: relative; margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; }
.section-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-process img { object-position: 50% 25%; }
.photo-faq img { object-position: 50% 8%; }
.emoji { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-style: normal; }
.icon-chip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--beige); font-size: 23px; line-height: 1; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; margin-bottom: 10px; }
.section-beige .icon-chip { background: var(--white); }
.card .icon-chip { background: var(--beige); }

.disclaimer { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.disclaimer-dark { color: var(--beige-2); }

/* 섹션 */
.section { padding: 46px 0; }
/* 메인 첫 화면 아래 구역은 화면에 가까워질 때 그립니다. 첫 로딩 계산을 줄입니다 */
.later { content-visibility: auto; contain-intrinsic-size: auto 900px; }
#sites.later { contain-intrinsic-size: auto 4050px; }
html.drawn .later { content-visibility: visible; }
@media (min-width: 960px) {
  .later { contain-intrinsic-size: auto 700px; }
  #sites.later { contain-intrinsic-size: auto 1330px; }
  .card-meta { min-height: 3em; }
}
.section-beige { background: var(--beige); }
.section-title { font-size: clamp(23px, 5.4vw, 31px); font-weight: 800; color: var(--green); margin-bottom: 18px; }
.section-lead { color: var(--muted); margin: -8px 0 20px; }
.more { margin-top: 18px; }
.more a { color: var(--green); font-weight: 700; }
.grid { display: grid; gap: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 18px; }
.card-pad h3 { font-size: 17.5px; color: var(--green); margin-bottom: 6px; }
.card-pad p { color: var(--muted); font-size: 15px; }
.two-col { display: grid; gap: 26px; }

/* 현장 카드 */
.site-card { display: flex; flex-direction: column; overflow: hidden; }
.card-media { position: relative; display: block; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-media .badges { position: absolute; left: 10px; top: 10px; pointer-events: none; }
/* 카드 사진: 옆으로 넘김 */
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; background: var(--beige-2); }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide .zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slide figcaption { position: absolute; right: 8px; bottom: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(18,29,51,.72); color: var(--white); font-size: 12px; pointer-events: none; }
.slide-dots { display: flex; justify-content: center; gap: 2px; padding-top: 4px; }
.slide-dots button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.slide-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3cbd9; transition: background-color .25s ease; }
.slide-dots button[aria-current="true"]::before { background: var(--green); }
@media (prefers-reduced-motion: no-preference) { .slides { scroll-behavior: smooth; } }
.card-body { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 18.5px; }
.card-body h3 a { text-decoration: none; color: var(--green); }
.nowrap { white-space: nowrap; }
.kind-tag { align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 700; }
.card-meta { font-size: 13.5px; color: var(--muted); }
.card-costs { border-top: 1px solid var(--line); }
.card-costs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.card-costs dt { flex: none; font-size: 14px; color: var(--muted); }
.card-costs dd { font-size: 14.5px; font-weight: 700; text-align: right; }
.card-costs dd small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.card-block { display: flex; flex-direction: column; }
.card-sub { margin-bottom: 4px; font-size: 13.5px; font-weight: 800; color: var(--green); }
.type-list { border-top: 1px solid var(--line); }
.type-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.type-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 5px; margin-bottom: 5px; font-size: 14px; }
.type-head b { font-weight: 800; color: var(--green); }
.type-head small { font-size: 12px; color: var(--muted); }
.type-rent { font-weight: 600; white-space: nowrap; }
.type-state { margin-left: auto; }
.type-row { display: flex; align-items: center; gap: 8px; }
.type-row .bar { flex: 1; min-width: 0; height: 10px; }
.type-row strong { flex: none; min-width: 4.4em; text-align: right; font-size: 15.5px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.card-block .bar-legend { margin-top: 6px; font-size: 12.5px; }
.card-opt { display: block !important; }
.card-opt dd { margin-top: 6px; text-align: left; }
.btn-wait { background: var(--accent); border-color: var(--accent); color: var(--white); }
.tag-closed { font-style: normal; font-size: 12px; font-weight: 700; color: var(--white); background: #000; padding: 1px 7px; border-radius: 999px; }
/* 메인 비용 탭 */
.tab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; }
.tab-list button { font: inherit; font-weight: 700; font-size: 15.5px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--green); cursor: pointer; transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.tab-list button:hover { background: var(--green-soft); }
.tab-list button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--white); }
.tabs-ready .is-off { display: none; }
.tab-panel + .tab-panel { margin-top: 28px; }
.tabs-ready .tab-panel + .tab-panel { margin-top: 0; }
.tab-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 19px; color: var(--green); margin-bottom: 12px; }
.tab-title a { text-decoration: none; }
.cost-types { display: grid; gap: 14px; }
.cost-type { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--white); box-shadow: 0 6px 18px rgba(27,43,75,.05); }
.cost-type.is-closed { background: #f6f7fa; }
.cost-type h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.cost-type h4 b { font-size: 19px; font-weight: 800; color: var(--green); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile { background: var(--beige); border-radius: 10px; padding: 9px 11px; }
.cost-type.is-closed .tile { background: #eceff4; }
.tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile .emoji { font-size: 16px; float: right; }
.tile dt { font-size: 13px; color: var(--muted); }
.tile dd { font-size: 16px; font-weight: 700; color: var(--ink); }
.tile dd small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.total-box { margin-top: 14px; }
.total-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.total-head span { font-size: 15px; font-weight: 700; color: var(--green); }
/* 주변 글자(16px)의 1.5배 이상, 별도 색상 */
.total-head strong { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--accent); }
.bar { height: 16px; border-radius: 999px; background: #e6ebf4; overflow: hidden; }
.bar-fill { display: flex; height: 100%; border-radius: 999px; overflow: hidden; transform-origin: left center; }
.bar-fill i { display: block; height: 100%; }
.seg-rent { background: var(--accent); }
.seg-mgmt { background: var(--gold-light); }
.bar-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 13px; color: var(--muted); }
.bar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.bar-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.site-extra { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.site-extra > div { padding: 12px 0; }
.site-extra > div + div { border-top: 1px solid var(--line); }
.site-extra dt { font-weight: 700; color: var(--green); margin-bottom: 5px; }
.site-extra dd { font-size: 15px; }
.option-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.option-chips li { padding: 4px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 600; }
.option-chips li::before { content: "✓ "; font-weight: 800; }
.option-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 10px; }
.option-card h3 a { text-decoration: none; }
@media (min-width: 600px) {
  .tab-list { grid-template-columns: repeat(4, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tiles .tile:last-child { grid-column: span 2; }
}
@media (min-width: 960px) {
  .cost-types { grid-template-columns: repeat(2, 1fr); }
  .cost-types > :only-child { grid-column: 1 / -1; }
  .site-extra { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 4px 18px; }
  .site-extra > div + div { border-top: 0; border-left: 1px solid var(--line); padding-left: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tabs-ready .bar-fill, .bars-ready .site-card .bar-fill { transform: scaleX(0); }
  .tabs-ready .bars-in .bar-fill, .bars-ready .site-card .bars-in .bar-fill { transform: none; transition: transform 1.3s cubic-bezier(.22,.61,.36,1); }
}
/* 유튜브 영상 */
.video-section { background: var(--green); color: var(--beige); }
.video-section .section-title { color: var(--white); }
.video-section .section-lead { color: var(--beige-2); }
.yt-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0e1830; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(18,29,51,.78); color: var(--white); border: 2px solid rgba(255,255,255,.85); transition: background-color .3s ease, transform .3s ease; }
.video-card .yt-icon { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.video-card .yt-icon svg { width: 22px; height: 22px; }
.video-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.video-card { display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: var(--radius); overflow: hidden; text-decoration: none; padding-bottom: 12px; }
.video-card strong { padding: 10px 12px 2px; color: var(--green); font-size: 16px; }
.video-summary { padding: 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.video-wrap { max-width: 1016px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; border: 0; cursor: pointer; height: 100%; }
.yt-frame .yt-icon { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.yt-frame .yt-icon svg { width: 38px; height: 38px; }
@media (hover: hover) {
  .yt-play:hover .yt-icon, .video-card:hover .yt-icon { background: var(--accent); transform: scale(1.07); }
  .yt-play:hover img, .video-card:hover img { transform: scale(1.03); }
}
.video-cta { margin-top: 14px; }
.video-title { margin-top: 18px; font-size: 19px; font-weight: 700; color: var(--white); }
.video-desc { margin-top: 6px; }
.video-date { margin-top: 4px; font-size: 13.5px; color: var(--beige-2); }
.video-noscript { margin-top: 8px; font-size: 14px; color: var(--beige-2); }
.more-videos { margin-top: 20px; border-top: 1px solid rgba(214,222,235,.28); padding-top: 12px; }
.more-videos summary { cursor: pointer; font-weight: 700; color: var(--gold-light); padding: 6px 0; }
.more-list { display: grid; gap: 22px; margin-top: 12px; }
.video-section .disclaimer { margin-top: 18px; }
@media (min-width: 960px) {
  .video-cards { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .more-list { grid-template-columns: repeat(2, 1fr); }
}
/* 현장 페이지 주요 공간 안내 */
.space-lead { margin-bottom: 8px; font-weight: 600; color: var(--green); }
.space-notes { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.space-notes b { display: block; color: var(--green); }
@media (min-width: 600px) { .space-notes { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
/* 현장 카드 옵션: 반려동물 표시(녹색)와 구별되는 색 하나로 통일 */
.card-options { gap: 4px; }
.card-options li { padding: 2px 9px; background: var(--green-soft); color: var(--blue-dark); font-size: 12.5px; }
.card-options li::before { content: none; }
.badge-wait { background: var(--accent); color: var(--white); font-weight: 800; box-shadow: 0 2px 8px rgba(31,94,219,.35); }
/* 반려동물 표시 */
.pet-chip { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; width: fit-content; padding: 3px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0 6px; }
/* 휴대폰 첫 화면: 글꼴이 바뀌어도 줄 수가 달라지지 않게 칩을 항상 두 줄로 둡니다 */
@media (max-width: 599px) { .hero .chip-row { flex-direction: column; align-items: flex-start; } }
.pet-chip-lg { margin-top: 8px; font-size: 15.5px; padding: 5px 14px; }
.site-hero .pet-chip { margin-top: 12px; }
/* 이런 분께 추천합니다: 카드뉴스 구도 (왼쪽 인물, 오른쪽 카드) */
.rec-panel { position: relative; overflow: hidden; padding: 26px 18px 18px; border-radius: 22px; background: linear-gradient(135deg, #e7ecf5 0%, #f3f6fa 100%); }
.rec-side { display: flex; flex-direction: column; }
.rec-side .section-title { margin-bottom: 6px; }
.rec-lead { color: var(--muted); font-size: 15.5px; }
.rec-person { position: relative; z-index: 0; width: min(78%, 330px); margin: 10px auto 0; }
.rec-person img { width: 100%; height: auto; }
.rec-person .photo-note { right: 47%; bottom: 5px; }
.rec-cards { position: relative; z-index: 1; gap: 10px; }
.rec-cards .card { display: flex; gap: 12px; padding: 14px; border-color: rgba(27,43,75,.1); box-shadow: 0 6px 18px rgba(27,43,75,.07); }
.rec-cards .icon-chip { width: 42px; height: 42px; font-size: 21px; margin: 0; }
.rec-cards h3 { font-size: 16px; color: var(--green); margin-bottom: 3px; }
.rec-cards p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.card-body .btn { margin-top: auto; }
.option-note { margin-top: 20px; font-size: 15px; }

/* 장점 */
.benefit-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.benefit-list .icon-chip { margin-bottom: 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; }
.steps .icon-chip { margin-bottom: 8px; }
.check-box .emoji { flex: none; }
.home-check { display: flex; }
.benefit-list h3 { font-size: 17.5px; color: var(--green); margin-bottom: 3px; }
.benefit-list p { color: var(--muted); font-size: 15px; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--beige-2); color: var(--green); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.check-box { background: var(--beige); border-radius: var(--radius); padding: 22px; align-self: start; border-left: 4px solid var(--gold); }
.check-box h2 { font-size: 20px; color: var(--green); margin-bottom: 10px; }
.check-box li { display: flex; gap: 9px; padding: 7px 0; font-size: 15.5px; }
.section-beige .check-box { background: var(--white); }
.caution li { position: relative; padding: 6px 0 6px 18px; font-size: 15.5px; }
.caution li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* 절차 */
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.step-no { font-weight: 800; color: var(--gold); font-size: 15px; }
.steps h3 { font-size: 17.5px; color: var(--green); margin: 2px 0 5px; }
.steps p { font-size: 15px; color: var(--muted); }
.timeline li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline h2 { font-size: 19px; color: var(--green); margin-bottom: 4px; }
.timeline p { color: var(--muted); }
.timeline .step-no { font-size: 20px; flex: none; width: 34px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 15px 28px 15px 34px; font-weight: 700; cursor: pointer; list-style: none; position: relative; color: var(--green); }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 15px; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.faq-a { padding-left: 34px !important; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font-size: 22px; color: var(--gold); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 16px; color: var(--muted); }
.faq-site { margin-top: 36px; font-size: 21px; }
.faq-site a { text-decoration: none; }

/* 예약 띠 */
.reserve { background: var(--green); color: var(--beige); }
.reserve h2 { font-size: clamp(23px, 5.2vw, 30px); color: var(--white); margin-bottom: 10px; }
.reserve-hours { margin-top: 8px; font-size: 14.5px; color: var(--beige-2); }
.reserve .btn-call { background: var(--white); color: var(--green); }
.reserve .btn-call:hover { background: var(--beige); }

/* 현장 상세 */
.crumb { padding-top: 12px; padding-bottom: 8px; font-size: 13.5px; color: var(--muted); }
.crumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.crumb li + li::before { content: "›"; margin-right: 4px; }
.site-hero-in { display: grid; gap: 22px; padding-top: 8px; padding-bottom: 24px; }
.site-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.site-hero h1 { font-size: clamp(27px, 6.6vw, 42px); font-weight: 800; color: var(--green); }
.site-hero .hero-lead { color: var(--muted); }
.status-note { margin-top: 14px; padding: 10px 14px; background: var(--green-soft); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--green); }
.status-note.is-closed { background: #eceff4; color: #3f4859; }
.site-hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.jump { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--green); }
.jump a:hover { background: var(--green-soft); }
.prose h2 { font-size: clamp(23px, 5.4vw, 31px); font-weight: 800; color: var(--green); margin-bottom: 14px; }
.prose h3 { font-size: 17.5px; color: var(--green); margin: 18px 0 6px; }
.prose p { margin-bottom: 13px; }
.dash li { position: relative; padding: 2px 0 2px 15px; }
.dash li::before { content: "–"; position: absolute; left: 0; color: var(--gold); }
.address-list { margin-bottom: 8px; font-weight: 600; }
.fact-box { background: var(--beige); border-radius: var(--radius); padding: 20px; align-self: start; }
.section-beige .fact-box { background: var(--white); }
.fact-box h2, .fact-box h3 { color: var(--green); font-size: 18.5px; margin-bottom: 10px; }
.fact-box p { margin-bottom: 8px; }
.fact-box dl > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.fact-box dl > div:last-child { border-bottom: 0; }
.fact-box dt { font-size: 13.5px; color: var(--muted); }
.fact-box dd { font-weight: 600; font-size: 15px; }
.highlight { margin-top: 26px; }
.status-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.status-list a { font-weight: 700; color: var(--green); }
.status-list small { flex-basis: 100%; color: var(--muted); }

/* 표: 모바일은 카드로 쌓입니다 */
.table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.stack thead { position: absolute; left: -9999px; }
table.stack tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.stack tr:last-child { border-bottom: 0; }
table.stack th[scope="row"] { display: block; text-align: left; font-size: 17.5px; color: var(--green); padding-bottom: 6px; }
table.stack th a { color: inherit; }
table.stack th small { margin-left: 7px; color: var(--muted); font-size: 13.5px; font-weight: 500; }
table.stack td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; text-align: right; font-size: 15px; }
table.stack td::before { content: attr(data-label); color: var(--muted); text-align: left; flex: none; }
table.stack td b { color: var(--green); }
table.stack td.sum { font-weight: 800; color: var(--green); font-size: 17px; }
.m-only { display: none; }
/* 휴대폰: 항목 이름은 왼쪽, 값은 한 덩어리로 오른쪽에 붙입니다. 배지끼리는 나란히 둡니다 */
@media (max-width: 767px) {
  table.stack td { align-items: center; }
  table.stack .cv { text-align: right; }
  table.stack .cv br { display: none; }
  table.stack .cv br + small::before, table.stack th[data-label] small::before { content: " ("; }
  table.stack .cv br + small::after, table.stack th[data-label] small::after { content: ")"; }
  table.stack .cv .badge + .badge { margin-left: 4px; }
  table.stack th[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 5px; font-size: 15px; color: var(--ink); }
  table.stack th[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font-weight: 400; }
  table.stack th[data-label] .cv { font-weight: 700; color: var(--green); }
  table.stack th[data-label] small { margin-left: 0; font-size: inherit; color: inherit; font-weight: inherit; }
  .m-only { display: inline; }
}
.cost-card dt small { display: block; font-size: 12.5px; color: var(--muted); }
.row-closed { background: #f6f7fa; }
.size-note { margin-top: 10px; font-size: 14.5px; }
.term-list { margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; }
.term-list > div { display: grid; grid-template-columns: 94px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.term-list > div:last-child { border-bottom: 0; }
.term-list dt { color: var(--muted); }
.caution { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--gold); background: rgba(255,255,255,.65); border-radius: 0 10px 10px 0; }
.caution h3 { color: var(--green); font-size: 17px; margin-bottom: 4px; }

/* 비용 카드 */
.cost-card { padding: 18px; }
.cost-card h3 { font-size: 17.5px; color: var(--green); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cost-card dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cost-card dt { color: var(--muted); }
.cost-card dd { font-weight: 600; white-space: nowrap; }
.cost-card .total { border-bottom: 0; padding-top: 12px; align-items: baseline; }
.cost-card .total dt { color: var(--green); font-weight: 700; }
.cost-card .total dd { font-size: 24px; font-weight: 800; color: var(--green); }
.cost-month { font-size: 14px; color: var(--muted); margin-top: 6px; }
.cost-card.is-closed { background: #f6f7fa; }

/* 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
/* 평면도·배치도·지도: 한 줄에 1장씩 크게 */
.gallery-doc { display: grid; gap: 26px; }
.gallery-doc .zoom { background: var(--white); border: 1px solid var(--line); }
.gallery-doc img { width: 100%; }
.gallery-doc .photo { scroll-margin-top: calc(var(--header) + 12px); }
.gallery-doc figcaption { font-size: 15px; font-weight: 700; color: var(--green); margin-top: 7px; }
.section-sub { font-size: clamp(19px, 4.4vw, 23px); font-weight: 800; color: var(--green); margin: 40px 0 14px; }
.plan-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.plan-jump a { padding: 6px 13px; background: var(--green-soft); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--green); text-decoration: none; }
.plan-jump a:hover { background: var(--beige-2); }
.prose-wide { margin: 0 0 22px; }
.photo .zoom { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; border-radius: 10px; overflow: hidden; }
.gallery .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo figcaption { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.life li { font-weight: 600; color: var(--green); }
.other { text-decoration: none; display: block; }
.other h3 { margin-top: 8px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(10,15,28,.86); }
.lightbox img { max-width: 96vw; max-height: 84vh; width: auto; margin: 0 auto; border-radius: 8px; background: #fff; }
.lightbox p { color: #fff; text-align: center; margin-top: 8px; }
.lightbox-close { position: fixed; right: 12px; top: 12px; width: 44px; height: 44px; font-size: 28px; line-height: 1; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; }

/* 휴대폰에서 도면을 누르면 글자가 읽히는 크기로 열고 좌우로 밀어서 봅니다 */
@media (max-width: 767px) {
  .lightbox.is-doc { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; overflow: auto; background: #fff; }
  .lightbox.is-doc img { width: 1100px; max-width: none; max-height: none; margin: 0; border-radius: 0; }
  .lightbox.is-doc p { position: sticky; left: 0; width: 100vw; color: var(--green); font-weight: 700; padding: 8px 12px; text-align: left; margin: 0; }
  .lightbox.is-doc .lightbox-close { background: var(--green); color: #fff; }
}

/* 일반 페이지 머리 */
.page-head { background: var(--beige); padding: 30px 0 34px; }
.page-head h1 { font-size: clamp(28px, 6.6vw, 42px); font-weight: 800; color: var(--green); }
.page-head .hero-lead { color: var(--muted); }

/* 폼 */
.form-card { padding: 20px; }
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 15px; }
.field label i, .check i { font-style: normal; font-size: 12px; color: var(--red); margin-left: 3px; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #c3ccdb; border-radius: 10px; background: var(--white); color: var(--ink); min-height: 48px; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.consent-box { background: var(--beige); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; font-size: 14.5px; color: var(--muted); }
.consent-title { font-weight: 700; color: var(--green); margin-bottom: 6px; }
.privacy-items > div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.privacy-items dt { font-weight: 700; color: var(--green); }
.privacy-items dd { margin: 0; }
.consent-box .privacy-items { margin-bottom: 8px; }
.prose .privacy-items { margin-bottom: 14px; }
.check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 700; cursor: pointer; }
.check input { width: 20px !important; height: 20px; min-height: 0 !important; margin: 3px 0 0; flex: none; accent-color: var(--green); }
.interest { border: 0; padding: 0; margin: 0; min-width: 0; }
.interest legend { display: block; font-weight: 700; margin-bottom: 7px; font-size: 15px; padding: 0; }
.interest legend i { font-style: normal; font-size: 12px; color: var(--red); margin-left: 3px; }
.interest legend small { font-weight: 500; color: var(--muted); }
.interest legend i.opt { color: var(--muted); }
.interest-list { display: grid; gap: 4px 14px; }
.interest-list .check { font-weight: 600; padding: 6px 0; }
@media (min-width: 600px) { .interest-list { grid-template-columns: 1fr 1fr; } }
.form-msg { color: var(--red); font-weight: 600; min-height: 1.2em; font-size: 15px; margin: 0; }
.form-notice { background: var(--green-soft); color: var(--green); padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; }
.form-card .btn { width: 100%; }
.done { border: 0; border-radius: var(--radius); padding: 26px; max-width: 420px; }
.done::backdrop { background: rgba(10,15,28,.6); }
.done h2 { color: var(--green); margin-bottom: 8px; }
.done .btn { margin-top: 16px; }

/* 푸터 */
.footer { background: #121d33; color: #cfd8d2; font-size: 14.5px; padding: 36px 0 18px; }
.footer a { color: inherit; }
.footer-in { display: grid; gap: 22px; }
.footer-brand { font-weight: 800; font-size: 17px; color: var(--white); margin-bottom: 6px; }
.footer-h { font-weight: 700; color: var(--white); margin-bottom: 6px; }
.footer-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; color: #a7b5ad; }
.footer mark.verify { font-size: 12px; }

/* 빠른 메뉴: 작은 화면은 하단 고정 바, 큰 화면은 우측 하단 버튼 */
.quick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.3fr .7fr; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.quick a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 56px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--green); }
.quick .q-reg { background: var(--green); color: var(--white); }
.quick .lb-d { display: none; }
.footer-sites li { margin-bottom: 6px; }

@media (max-width: 379px) {
  .logo span { font-size: 13px; }
  .header-call span { display: none; }
  .header-call { padding: 9px 10px; }
}
@media (min-width: 600px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .form { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --header: 70px; }
  body { font-size: 17px; }
  .logo { font-size: 18px; }
  .header-call { padding: 10px 15px; font-size: 15.5px; }
  .hero-bg { position: absolute; inset: 0; z-index: -2; }
  .hero-bg img { height: 100%; aspect-ratio: auto; object-position: 70% 60%; }
  .hero-bg::after { top: 0; right: auto; width: 72%; height: auto; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 62%, rgba(255,255,255,0) 100%); }
  .hero-bg .photo-note { bottom: 6px; right: 12px; }
  .hero-in { padding-top: 50px; padding-bottom: 54px; }
  .hero-bg img { object-position: 70% 60%; transform-origin: 80% 30%; }
  .terms-band { padding: 24px 0 18px; }
  .terms { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .terms > div:last-child:nth-child(odd) { grid-column: auto; }
  .terms > div + div { border-left: 1px solid rgba(214,222,235,.25); }
  /* 이런 분께 추천합니다: 인물은 패널 아래에 붙이고, 카드는 2칸 3줄 */
  .rec-panel { display: grid; grid-template-columns: 340px 1fr; gap: 12px; padding: 38px 34px 34px 38px; align-items: stretch; }
  .rec-side { padding-bottom: 322px; }
  .rec-person { position: absolute; left: 22px; bottom: 0; width: 368px; margin: 0; pointer-events: none; }
  .rec-person .photo-note { right: 47%; bottom: 5px; }
  .rec-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-photo img { aspect-ratio: 21 / 8; }
  .photo-faq img { aspect-ratio: 21 / 9; }
  .section { padding: 70px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  /* 표가 들어가는 메인 현장 카드는 폭이 넉넉할 때만 4열로 둡니다 */
  #sites .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .two-col-wide { grid-template-columns: 1.4fr 1fr; }
  .contact-grid { grid-template-columns: 1.5fr 1fr; }
  .site-hero-in { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 44px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .footer-in { grid-template-columns: 1fr 2fr .8fr; gap: 40px; }
  /* 넓은 화면에서는 일반 표 */
  table.stack thead { position: static; background: var(--green); color: var(--white); display: table-header-group; }
  table.stack thead th { padding: 11px 12px; font-size: 14.5px; text-align: left; white-space: nowrap; }
  table.stack tr { display: table-row; padding: 0; }
  table.stack th[scope="row"], table.stack td { display: table-cell; padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
  table.stack tr:last-child th, table.stack tr:last-child td { border-bottom: 0; }
  table.stack td::before { content: none; }
  table.stack th small { display: block; margin-left: 0; }
  table.compare th[scope="row"], table.compare td { padding: 11px 9px; font-size: 14.5px; }
  table.compare thead th { padding: 11px 9px; font-size: 13.5px; }
}
/* 메뉴가 빠듯한 폭: 글꼴을 받기 전 기본 글꼴로 보여도 넘치지 않게 합니다 */
@media (min-width: 1240px) and (max-width: 1340px) {
  .logo { font-size: 15.5px; }
  .nav li { padding: 0 6px !important; }
  .nav a { font-size: 13.5px !important; }
  .header-call { padding: 9px 12px; font-size: 14.5px; }
}
/* 아주 넓은 화면: 사진이 커지므로 인물 머리가 잘리지 않게 위쪽을 보여 줍니다 */
@media (min-width: 1600px) {
  .hero-bg img { object-position: 70% 38%; }
}
/* 넓은 화면: 메뉴를 한 줄로 펼치고, 빠른 메뉴는 우측 하단 버튼으로 바뀝니다 */
@media (min-width: 1240px) {
  body { padding-bottom: 0; }
  .header .wrap { max-width: 1340px; }
  .menu-btn { display: none; }
  .logo { flex: none; font-size: 17px; }
  .nav { display: block; position: static; box-shadow: none; border: 0; overflow: visible; flex: 1; max-height: none; }
  .nav > ul { display: flex; justify-content: flex-end; align-items: center; padding: 0; margin-right: 10px; }
  .nav a { padding: 8px 0; font-size: 14.5px; white-space: nowrap; }
  .nav li { padding: 0 10px; }
  .nav-etc:first-of-type, .nav-site + .nav-etc { border-top: 0; margin-top: 0; padding-top: 0; }
  .quick { left: auto; right: 14px; bottom: 26px; grid-template-columns: 72px; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 26px rgba(18,29,51,.28); }
  .quick a { flex-direction: column; gap: 3px; height: 68px; font-size: 12.5px; color: var(--white); background: var(--green); transition: background-color .5s ease; }
  .quick a:hover { background: var(--green-2); }
  .quick .q-reg { order: 1; background: var(--gold-light); color: #1c2333; }
  .quick .q-reg:hover { background: var(--blue-dark); }
  .quick .q-tel { order: 2; border-top: 1px solid rgba(255,255,255,.14); }
  .quick .q-top { order: 3; background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.14); }
  .quick .lb-m { display: none; }
  .quick .lb-d { display: inline; }
}

/* 움직임: opacity와 transform만 사용해 내용이 밀리지 않습니다. '동작 줄이기' 설정이면 전부 꺼집니다. */
.header { transition: box-shadow .6s ease; }
.header.is-scrolled { box-shadow: 0 6px 22px rgba(18,29,51,.1); }
@media (prefers-reduced-motion: no-preference) {
  /* 첫 화면 글자는 처음부터 보입니다(LCP 지연 방지). 위치만 살짝 움직입니다. */
  @keyframes heroRise { from { transform: translateY(10px); } to { transform: none; } }
  @keyframes drawLine { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes kenburns { from { transform: none; } to { transform: scale(1.07) translate(-1%, -1%); } }
  /* 사진이 천천히 커지는 효과는 PC에서만 */
  @media (min-width: 960px) {
    .hero-bg img { transform-origin: 80% 55%; will-change: transform; animation: kenburns 22s ease-in-out infinite alternate; }
  }
  .hero-in > *, .page-head .wrap > *, .site-hero-in > div > * { animation: heroRise .8s cubic-bezier(.22,.61,.36,1) both; }
  .hero-in > :nth-child(2) { animation-delay: .08s; }
  .hero-in > :nth-child(3) { animation-delay: .18s; }
  .hero-in > :nth-child(4) { animation-delay: .28s; }
  .hero-in > :nth-child(5) { animation-delay: .36s; }
  .hero-in > :nth-child(n+6) { animation-delay: .44s; }
  /* 큰 제목은 움직임 없이 바로 표시 */
  .hero-in > h1, .hero-in > .hero-big, .page-head .wrap > h1, .site-hero-in > div > h1 { animation: none; }
  .hero-big::after { animation: drawLine 1.1s cubic-bezier(.22,.61,.36,1) .55s both; }

  /* 스크롤 등장 */
  .js .section-title, .js .section-lead, .js .prose, .js .fact-box, .js .check-box, .js .benefit-list > li, .js .grid > *, .js .steps > li, .js .timeline > li, .js .faq, .js .table-wrap, .js .term-list, .js .caution, .js .gallery > .photo, .js .gallery-doc > .photo, .js .section-photo, .js .rec-person, .js .reserve-in {
    opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  }
  .js .rv-in { opacity: 1 !important; transform: none !important; }

  /* 버튼: 색이 왼쪽에서 천천히 차오릅니다 */
  .btn { position: relative; isolation: isolate; overflow: hidden; transition: color .5s ease, border-color .5s ease; }
  .btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; transform: scaleX(0); transform-origin: left center; transition: transform .6s cubic-bezier(.22,.61,.36,1); background: var(--green-2); }
  .btn-gold::before { background: var(--blue-dark); }
  .btn-beige::before { background: var(--beige-2); }
  .btn-ghost::before { background: rgba(255,255,255,.16); }
  .btn-line::before { background: var(--green); }
  .reserve .btn-call::before { background: var(--beige); }
  @media (hover: hover) {
    .btn:hover::before { transform: scaleX(1); }
    .btn-line:hover { color: var(--white); background: transparent; }
    .card-media img, .photo .zoom img { transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
    .card-media { overflow: hidden; }
    .site-card:hover .card-media img, .photo .zoom:hover img { transform: scale(1.035); }
    .card.other, .site-card { transition: box-shadow .6s ease, opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); }
    .site-card:hover, .card.other:hover { box-shadow: 0 14px 32px rgba(18,29,51,.13); }
  }
}
@media print { .js * { opacity: 1 !important; transform: none !important; } .quick { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (min-width: 1200px) { #sites .grid-4 { grid-template-columns: repeat(4, 1fr); } }


/* =====================================================================
   센트레빌 테마: 흰 배경 + 클리어 블루 + 네이비.
   메인 페이지 구조는 src/templates.js의 home(), 아래 .cv- 로 시작하는 규칙이 그 모양입니다.
   ===================================================================== */
body { background: #fff; }
.header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.logo { color: var(--green); }
.logo svg rect { fill: var(--blue); }
.logo svg path { fill: #fff; }
.nav a[aria-current="page"] { color: var(--blue); }
.btn { border-radius: 999px; }
.btn-primary, .btn-call { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-call:hover { background: var(--blue-dark); }
.btn-line { border-color: var(--line); color: var(--green); background: #fff; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-wait { background: var(--green); border-color: var(--green); }
.section-title { letter-spacing: -.03em; }
.section-lead { color: var(--muted); }
.section-beige { background: var(--beige); }
.cv-label { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; color: var(--blue); margin-bottom: 8px; }
.cv-sec { padding: 56px 0; }
@media (min-width: 960px) { .cv-sec { padding: 88px 0; } }
.cv-tint { background: var(--beige); }

/* 첫 화면: 왼쪽 글, 오른쪽 둥근 사진 */
.cv-hero { background: linear-gradient(180deg, #f3f6fd 0%, #fff 100%); overflow: hidden; }
.cv-hero-in { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 44px; }
.cv-pill { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--blue); background: var(--green-soft); border-radius: 999px; padding: 6px 14px; }
.cv-hero h1 { font-size: 17px; font-weight: 700; color: var(--muted); margin-top: 18px; letter-spacing: 0; }
.cv-hero-big { font-size: clamp(32px, 8.4vw, 58px); font-weight: 800; line-height: 1.18; letter-spacing: -.04em; color: var(--green); margin-top: 6px; }
.cv-hero-big em { font-style: normal; color: var(--blue); }
.cv-hero-lead { margin-top: 16px; color: var(--muted); font-size: 16.5px; max-width: 560px; }
/* 첫 화면 조건 4칸: 같은 너비·같은 높이의 흰 카드. 휴대폰(600px 미만)은 2칸 × 2줄 */
.cv-stats { display: grid; grid-template-columns: repeat(2, 1fr); align-items: stretch; gap: 10px; margin-top: 26px; }
@media (min-width: 600px) { .cv-stats { grid-template-columns: repeat(4, 1fr); } }
.cv-stats > div { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-width: 0; padding: 18px 20px; background: var(--green-soft); border: 1px solid #c9d8f8; border-radius: 14px; } /* 4칸 모두 같은 배경·테두리 */
.cv-stats dt { font-size: 13px; line-height: 1.4; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.cv-stats dd { margin: 0; font-size: 20px; font-weight: 800; color: var(--green); line-height: 1.35; letter-spacing: -.03em; }
.cv-stats dd span { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 4px; } /* 줄마다 가운데 */
.cv-stats dd b { font-weight: inherit; white-space: nowrap; } /* 큰 값은 줄바꿈하지 않음 */
.cv-stats dd small { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; white-space: nowrap; }
@media (min-width: 600px) and (max-width: 959px) { .cv-stats dd { font-size: clamp(16px, 2.6vw, 20px); } }
@media (min-width: 960px) { .cv-stats dd { font-size: 19px; } }
.cv-hero-note { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--green-2); }
.cv-hero .btn-row { margin-top: 22px; }
.cv-hero .disclaimer { margin-top: 12px; }
.cv-hero-media { position: relative; }
.cv-hero-photo { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(22,26,34,.16); }
.cv-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 75%; } /* 4:3으로 잘릴 때 건물이 보이게 아래쪽 기준 */
.cv-hero-photo .photo-note { position: absolute; right: 12px; bottom: 10px; color: rgba(255,255,255,.85); font-size: 11px; }
.cv-hero-badge { position: absolute; left: 16px; bottom: -18px; background: #fff; border-radius: 18px; padding: 12px 18px; box-shadow: 0 12px 30px rgba(22,26,34,.14); }
.cv-hero-badge b { display: block; font-size: 20px; color: var(--blue); letter-spacing: -.03em; }
.cv-hero-badge span { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (min-width: 960px) {
  .cv-hero-in { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 84px; }
  .cv-hero-photo img { aspect-ratio: 4 / 5; }
  .cv-hero-badge { left: -28px; bottom: 40px; }
}

/* 현장: 가로형 카드 */
.cv-site-list { display: grid; gap: 22px; margin-top: 8px; }
.cv-site { display: grid; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.cv-site:hover { border-color: #c9d4ec; box-shadow: 0 16px 40px rgba(22,26,34,.08); }
.cv-site-photo { position: relative; display: block; }
.cv-site-photo img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cv-site-photo .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.cv-site.is-closed .cv-site-photo img { filter: grayscale(.55); }
.cv-site-body { padding: 20px 20px 22px; }
.cv-site-kind { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.cv-site h3 { font-size: 22px; margin-top: 4px; letter-spacing: -.03em; }
.cv-site h3 a { text-decoration: none; }
.cv-site-text { margin-top: 4px; color: var(--green-2); }
.cv-mini { margin-top: 14px; font-size: 14.5px; }
.cv-mini th, .cv-mini td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cv-mini thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom-color: var(--green); }
.cv-mini tbody th { font-weight: 700; }
.cv-mini tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.cv-mini b { color: var(--blue); font-size: 16px; }
.cv-site-meta { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.cv-site-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (min-width: 960px) {
  .cv-site-list { grid-template-columns: 1fr 1fr; }
  .cv-site { grid-template-rows: auto 1fr; }
}
@media (min-width: 1240px) {
  .cv-site-list { grid-template-columns: 1fr; }
  .cv-site { grid-template-columns: 440px 1fr; grid-template-rows: none; }
  .cv-site-photo img { aspect-ratio: auto; min-height: 100%; }
  .cv-site-body { padding: 28px 32px; }
}

/* 추천 대상: 번호 목록 */
.cv-split { display: grid; gap: 22px; }
@media (min-width: 960px) { .cv-split { grid-template-columns: 340px 1fr; gap: 56px; } .cv-split-head { position: sticky; top: calc(var(--header) + 24px); align-self: start; } }
.cv-for { display: grid; gap: 12px; }
@media (min-width: 700px) { .cv-for { grid-template-columns: 1fr 1fr; } }
.cv-for li { display: flex; gap: 14px; background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.cv-no { flex: none; font-size: 15px; font-weight: 800; color: var(--blue); width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; }
.cv-for h3 { font-size: 17px; }
.cv-for p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* 장점: 진한 배경 */
.cv-dark { background: var(--green); color: #c9cfdb; }
.cv-dark .section-title { color: #fff; }
.cv-dark .section-lead { color: #aab2c2; }
.cv-dark .cv-label { color: var(--gold-light); }
.cv-why { display: grid; gap: 1px; background: rgba(255,255,255,.12); border-radius: 20px; overflow: hidden; margin-top: 10px; }
@media (min-width: 600px) { .cv-why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cv-why { grid-template-columns: repeat(4, 1fr); } }
.cv-why li { background: var(--green); padding: 26px 22px; }
.cv-why-key { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.03em; margin-bottom: 8px; }
.cv-check { margin-top: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 20px 22px; }
.cv-check h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.cv-check li { position: relative; padding-left: 18px; margin-top: 6px; font-size: 15px; }
.cv-check li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-light); }

/* 입주 절차: 가로 단계 */
.cv-flow { display: grid; gap: 14px; margin-top: 10px; counter-reset: f; }
@media (min-width: 800px) { .cv-flow { grid-template-columns: repeat(3, 1fr); gap: 0; } .cv-flow li + li { border-left: 0; } }
.cv-flow li { position: relative; border: 1px solid var(--line); padding: 24px 22px; background: #fff; }
.cv-flow li:first-child { border-radius: 18px 18px 0 0; }
.cv-flow li:last-child { border-radius: 0 0 18px 18px; }
@media (min-width: 800px) { .cv-flow li:first-child { border-radius: 18px 0 0 18px; } .cv-flow li:last-child { border-radius: 0 18px 18px 0; } }
.cv-flow-no { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; color: var(--blue); }
.cv-flow h3 { font-size: 18px; margin: 6px 0; }
.cv-flow p { color: var(--muted); font-size: 15px; }

/* FAQ */
.cv-tint .faq details { background: #fff; }

/* 하단 예약 */
.reserve { background: var(--blue); color: #e7edff; }
.reserve h2 { color: #fff; }
.reserve-hours { color: #c7d5ff; }
.reserve .btn-call { background: #fff; color: var(--blue); }
.reserve .btn-beige { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.footer { background: var(--navy-deep); }
.quick .q-reg { background: var(--blue); color: #fff; }

/* 현장 상세 첫 화면: 사진 왼쪽, 글 오른쪽, 연한 배경 */
.site-hero { background: var(--beige); }
.site-hero h1 { color: var(--green); }
@media (min-width: 960px) {
  .site-hero-in { grid-template-columns: 1.05fr 1fr; }
  .site-hero-in > div { order: 2; }
  .site-hero-photo { order: 1; }
}
.site-hero-photo img { border-radius: 24px; }
.jump a { border-radius: 999px; }
.status-note { border-radius: 14px; }

/* ---------- 2026-11-09 개편: 메인 첫 화면 4칸, 현장 카드 규모·태그, 계약 시 비용 표 ---------- */
.cv-hero-photo .photo-note { left: 12px; right: auto; top: 12px; bottom: auto; background: rgba(14,24,48,.55); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.cv-kind { display: inline-block; font-size: 12px; font-weight: 800; padding: 1px 9px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }
.cv-kind-apt { background: var(--green); color: #fff; }
.cv-kind-off { background: var(--green-soft); color: var(--blue-dark); }
.cv-site-scale { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cv-tags li { font-size: 13px; font-weight: 600; color: var(--green-2); background: var(--beige); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.cv-site.is-closed .cv-site-btns .btn-wait { color: #fff; }
.cv-for-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.cv-for-link:hover { text-decoration: underline; }
.cv-formula { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px dashed #b9c8ea; font-size: 14.5px; font-weight: 600; color: var(--green-2); }
.cv-costsum .sum { font-weight: 800; color: var(--blue); }
.cv-tint .table-wrap { background: #fff; border-radius: 16px; }
.cv-check .disclaimer-dark { margin-top: 12px; color: #aab2c2; }

/* 첫 화면 조건 4칸 아래 공통 칩 (반려동물·전기차). 조건 4칸보다 덜 눈에 띄게 */
.cv-hero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cv-hero-chips li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; background: var(--green-soft); color: var(--blue-dark); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
