/* 샘플2: 먹색 + 황동색, 명조 제목 */
:root {
  --ink: #15181d;
  --ink-deep: #0e1013;
  --paper: #f7f5f0;
  --text: #17191e;
  --muted: #5d5f66;
  --body: #4a4c52;
  --line: #e4dfd4;
  --line-soft: #ece8de;
  --head-bg: #efebe2;
  --brass: #c9a052;
  --brass-ink: #7a5716;
  --tag-line: #b7a274;
  --tag-text: #6b4c12;
  --on-ink: #f3efe6;
  --on-ink-muted: #c9c4b8;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  word-break: keep-all;
  padding-bottom: 72px;
}

a { color: var(--brass-ink); }
a:hover { color: #5c410f; }
img { max-width: 100%; height: auto; display: block; }
.serif, h1, h2 { font-family: var(--serif); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 24px; } }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px 32px; min-height: 68px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand b { font-family: var(--serif); font-size: 19px; }
.brand small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.brand { min-width: 0; }
@media (max-width: 380px) { .brand small { display: none; } }
.nav { display: none; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text); }
.nav a[aria-current="page"] { color: var(--brass-ink); font-weight: 700; }
.header-call {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 4px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.header-call:hover { color: #fff; }
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; max-width: 1200px; margin: 0 auto; }
.subnav a { flex: none; text-decoration: none; font-size: 14px; color: var(--muted); padding: 6px 12px; border-radius: 2px; background: var(--paper); border: 1px solid var(--line); }
.subnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

@media (min-width: 860px) {
  .site-header .wrap { min-height: 76px; }
  .brand img { width: 48px; height: 48px; }
  .brand b { font-size: 21px; }
  .brand small { font-size: 12px; }
  .nav { display: flex; }
  .header-call { margin-left: 8px; padding: 0 18px; font-size: 15px; }
  .site-header .subnav { display: none; }
  body { padding-bottom: 0; }
}

/* 공통 */
section { padding: 48px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--ink); color: var(--on-ink); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: 30px; letter-spacing: -0.02em; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--brass-ink); }
.lead { color: var(--body); margin: 0 0 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head .meta { margin: 0; font-size: 14px; color: var(--muted); }
.updated { font-size: 13px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
@media (min-width: 860px) {
  section { padding: 88px 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 34px; }
  .eyebrow { font-size: 13px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 22px; border-radius: 4px; border: 0;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2a2e36; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { color: var(--ink); background: #d6b06a; }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { color: #191919; }
.btn-line { background: #fff; color: var(--text); border: 1px solid var(--text); }
.btn-line:hover { color: var(--text); background: var(--paper); }
.btn-ghost { background: transparent; color: var(--on-ink); border: 1px solid #5b5e66; font-weight: 500; }
.btn-ghost:hover { color: #fff; border-color: #8a8d95; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 히어로 */
.hero { background: var(--ink); color: var(--on-ink); padding: 48px 0 56px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.hero-copy { flex: 999 1 480px; min-width: 0; }
.hero .eyebrow { color: var(--brass); letter-spacing: 0.12em; font-weight: 500; }
.hero h1 { font-size: 32px; line-height: 1.3; margin-bottom: 20px; }
.hero p.sub { margin: 0 0 32px; font-size: 16px; color: var(--on-ink-muted); max-width: 560px; }
.plaque { flex: 1 1 280px; max-width: 260px; margin: 0 auto; }
@media (min-width: 860px) { .plaque { max-width: 400px; } }
.plaque-frame { padding: 12px; background: #2a2118; border: 1px solid #4a3c2a; border-radius: 2px; }
.plaque-frame img { width: 100%; }
.plaque figcaption { margin-top: 12px; font-size: 13px; color: #a8a397; text-align: center; }
@media (min-width: 860px) {
  .hero { padding: 88px 0 96px; }
  .hero h1 { font-size: 52px; line-height: 1.28; }
  .hero p.sub { font-size: 18px; }
  .hero .btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
}

/* 신뢰 지표 */
.facts { background: #fff; border-bottom: 1px solid var(--line); padding: 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line-soft); }
.fact:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.fact:nth-child(even) { padding-left: 16px; }
.fact b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.fact b small { font-size: 14px; }
.fact span { font-size: 13px; color: var(--muted); }
@media (min-width: 860px) {
  .facts .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact, .fact:nth-child(even) { padding: 32px 24px; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
  .fact b { font-size: 34px; }
  .fact b small { font-size: 18px; }
  .fact span { font-size: 15px; }
}

/* 매물 장부형 목록 */
.ledger { background: #fff; border: 1px solid var(--line); }
.ledger-head { display: none; }
.row {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-top: 1px solid var(--line-soft);
  color: var(--text); text-decoration: none;
}
.row:first-of-type { border-top: 0; }
.row:hover { color: var(--text); background: #fbfaf6; }
.row .c-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.row .c-id { font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.row .c-avail { margin-left: auto; color: var(--muted); }
.row .c-place { font-size: 17px; font-weight: 700; display: flex; gap: 12px; align-items: center; }
.row .c-place img { width: 64px; height: 48px; object-fit: cover; flex: none; }
.row .c-desc { font-size: 14px; color: var(--body); }
.row .c-price { font-size: 15px; font-variant-numeric: tabular-nums; }
.row .c-price b { font-size: 16px; }
.row .c-cell { display: none; }
.row .c-go { display: none; }
.tag { font-size: 12px; font-weight: 700; padding: 0 7px; border: 1px solid var(--tag-line); color: var(--tag-text); border-radius: 2px; line-height: 1.6; }
.tag.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.ledger-foot { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

@media (min-width: 900px) {
  .ledger-head, .row {
    display: grid; grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr) 72px 104px;
    gap: 16px; align-items: center; padding: 18px 24px;
  }
  .ledger-head { padding: 14px 24px; background: var(--head-bg); font-size: 13px; font-weight: 700; color: var(--body); }
  .row { border-top: 1px solid var(--line-soft); font-size: 15px; }
  .row .c-top { display: contents; }
  .row .c-top .tag, .row .c-avail { display: none; }
  .row .c-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .row .c-tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .row .c-place { font-size: 16px; }
  .row .c-desc { font-size: 13px; }
  .row .c-price.m { display: none; }
  .row .c-cell { display: block; font-variant-numeric: tabular-nums; }
  .row .c-cell.strong { font-weight: 700; }
  .row .c-go {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    border: 1px solid var(--text); border-radius: 4px; font-size: 14px; font-weight: 700;
  }
  .row:hover .c-go { background: var(--ink); color: #fff; }
}
@media (max-width: 899px) { .row .c-tags { display: none; } }

.empty { background: #fff; border: 1px solid var(--line); padding: 32px 20px; text-align: center; color: var(--body); }

/* 필터 */
.filters { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); }
.filters > * { min-width: 0; }
.filters label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.filters select, .filters input {
  width: 100%; font: inherit; font-size: 15px; height: 44px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text);
}
.filters .check { flex-direction: row; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.filters .check input { width: 18px; height: 18px; }
@media (min-width: 860px) { .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; padding: 20px 24px; } }
.result-count { font-size: 14px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-count .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }

/* 상세 */
.crumbs { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.detail-grid { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.detail-main { flex: 999 1 560px; min-width: 0; }
.detail-side { flex: 1 1 320px; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 24px; }
@media (min-width: 900px) { .detail-side { position: sticky; top: 96px; padding: 28px; } }
.gallery { display: grid; gap: 8px; }
.photo { aspect-ratio: 16 / 10; background: #e9e4d8; border: 1px solid #ddd6c6; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; text-align: center; padding: 16px; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.has-img { padding: 0; }
.detail-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 10px; }
.detail-tags .c-id { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.detail-main h1 { font-size: 28px; margin-bottom: 8px; }
.detail-main .desc { margin: 0 0 32px; font-size: 17px; color: var(--body); }
@media (min-width: 860px) { .detail-main h1 { font-size: 38px; } }
.spec { margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 2px solid var(--text); font-size: 15px; column-gap: 32px; }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.detail-main h2 { font-family: inherit; font-size: 18px; margin: 0 0 12px; }
.office-box { margin: 0; font-size: 14px; color: var(--body); background: #fff; border: 1px solid var(--line); padding: 16px 20px; }
.side-label { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.side-price { margin: 0 0 20px; font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.side-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.side-sub p { margin: 0; font-weight: 700; }
.side-sub p.side-label { font-weight: 400; }
.side-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.side-actions .btn { min-height: 52px; font-size: 16px; }

/* 상담 흐름 */
.steps { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { border-top: 2px solid var(--text); padding-top: 20px; }
.step .num { margin: 0 0 10px; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--brass-ink); }
.step p { margin: 0; color: var(--body); }

/* 소개 */
.intro { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: center; }
.intro-photo { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.intro-photo img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 50% 40%; }
.intro-copy { flex: 999 1 400px; min-width: 0; }
.intro-copy p { color: var(--body); font-size: 16px; }
@media (min-width: 860px) { .intro-copy p { font-size: 17px; } }
.facts-list { margin: 0 0 28px; display: grid; grid-template-columns: 96px 1fr; gap: 10px 16px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; }
@media (min-width: 600px) { .facts-list { grid-template-columns: 120px 1fr; } }
.features { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { border-top: 2px solid var(--text); padding: 20px 0 8px; }
.feature p { margin: 0; color: var(--body); }
.info { width: 100%; border-collapse: collapse; border-top: 2px solid var(--text); background: transparent; }
.info th, .info td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { width: 30%; color: var(--muted); font-weight: 500; white-space: nowrap; padding-left: 0; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.certs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.cert { width: 104px; text-decoration: none; color: var(--muted); font-size: 12px; text-align: center; }
.cert img { width: 104px; height: auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 6px; }
.cert:hover img { border-color: var(--brass-ink); }
@media (min-width: 860px) { .cert, .cert img { width: 120px; } }
@media (min-width: 860px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 조건 남기기 띠 */
.cta { background: var(--ink); color: var(--on-ink); padding: 56px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta h2 { font-size: 24px; margin-bottom: 8px; }
.cta p { margin: 0; color: var(--on-ink-muted); }
.cta .copy { flex: 999 1 420px; min-width: 0; }
@media (min-width: 860px) { .cta { padding: 72px 0; } .cta h2 { font-size: 30px; } }

/* 푸터 */
.site-footer { background: var(--ink-deep); color: #a8a397; font-size: 13px; padding: 36px 0 44px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.site-footer .col { flex: 999 1 380px; min-width: 0; }
.site-footer .col.hours { flex: 1 1 240px; }
.site-footer b { display: block; margin-bottom: 6px; color: var(--on-ink); font-family: var(--serif); font-size: 16px; }
.site-footer .col.hours b { font-family: inherit; font-size: 13px; }
.site-footer a { color: var(--on-ink); }
.site-footer p { margin: 2px 0; }

/* 모바일 하단 고정 바 */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px; gap: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.bottom-bar .btn { min-height: 46px; font-size: 14px; padding: 0 8px; }
@media (min-width: 860px) { .bottom-bar { display: none; } }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.toast.show { opacity: 1; }
