:root {
  --yellow: #ffd400;
  --yellow-soft: #fff6c2;
  --wine: #5a1a22;
  --ink: #1c1c1c;
  --gray: #666;
  --line: #e4e1da;
  --bg-alt: #f6f5f1;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { font-family: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--ink); background: #fff; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #e09b00; outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
br.m { display: none; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo b { font-size: 20px; font-weight: 800; color: var(--wine); letter-spacing: -.02em; }
.logo small { font-size: 11px; color: var(--gray); }
.nav { flex: 1; display: flex; justify-content: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--yellow); }
.top-call { flex: none; background: var(--wine); color: #fff; font-weight: 700; padding: 9px 16px; border-radius: 999px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 6px auto; transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: min(640px, 82vh); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--wine); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,8,10,.88) 0%, rgba(20,8,10,.6) 45%, rgba(20,8,10,.15) 100%); }
.hero-in { position: relative; z-index: 1; padding: 80px 0 72px; }
.kicker { font-weight: 700; color: var(--yellow); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.hero mark { background: none; color: var(--yellow); }
.lead { margin-top: 18px; font-size: clamp(16px, 1.7vw, 19px); opacity: .92; }
.hero-btns, .row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 2px solid transparent; }
.btn.yellow { background: var(--yellow); color: var(--ink); }
.btn.ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn.dark { background: var(--wine); color: #fff; }
.btn.line { border-color: var(--wine); color: var(--wine); }
.btn:hover { filter: brightness(1.06); }
a[href^="tel:"] { white-space: nowrap; }

/* notice */
.notice-box { position: relative; z-index: 2; margin-top: -36px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: 22px 28px; display: grid; grid-template-columns: 90px 1fr; gap: 16px; }
.notice-box h2 { font-size: 18px; color: var(--wine); padding-top: 6px; }
.notice-box ul { list-style: none; }
.notice-box li a, .notice-box li > span { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.notice-box li:last-child a, .notice-box li:last-child > span { border: 0; }
.notice-box .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-box .t::before { content: "공지"; color: #2f9e44; font-weight: 700; font-size: 13px; margin-right: 8px; }
.notice-box time { flex: none; color: #999; font-size: 14px; }
.notice-box a:hover .t { text-decoration: underline; }

/* sections */
.section { padding: 96px 0; }
.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-weight: 800; color: var(--wine); background: var(--yellow); padding: 2px 10px; border-radius: 6px; font-size: 14px; margin-bottom: 14px; }
.title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.02em; font-weight: 800; margin-bottom: 36px; }

.g5-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.g5-head .title { margin-bottom: 0; }
.g5-head img { width: 158px; height: 158px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 6px var(--yellow); }
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zone { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: #fff; transition: border-color .2s, transform .2s; }
.zone:hover { border-color: var(--wine); transform: translateY(-3px); }
.zone .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--yellow-soft); color: var(--wine); font-weight: 800; margin-bottom: 14px; }
.zone h3 { font-size: 19px; }
.zone p { color: var(--gray); font-size: 14px; margin-top: 6px; }
.zone .cnt { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--wine); }
.also { margin-top: 24px; color: var(--gray); }
.also b { color: var(--ink); }

/* listings */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; }
.tabs button[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; text-align: left; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.09); }
.card .pic { position: relative; aspect-ratio: 4 / 3; background: var(--yellow); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; color: var(--ink); }
.card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .pic.photo { color: #fff; background: #333; }
.card .pic.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,0) 75%); }
.card .pic > span { position: relative; }
.card .pic.photo .type { color: var(--yellow); }
.card.done .pic img { filter: grayscale(.85); opacity: .75; }
.card .pic .deal { position: absolute; top: 14px; left: 14px; background: var(--wine); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.card .pic .type { font-size: 14px; font-weight: 700; color: var(--wine); }
.card .pic .price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.card .pic small { font-size: 12px; opacity: .7; }
.card.done .pic { background: #e2e0db; }
.card.done .pic::after { content: "계약완료"; position: absolute; top: 14px; right: 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 17px; line-height: 1.4; }
.card .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.card .chips span { font-size: 12px; background: var(--bg-alt); padding: 2px 8px; border-radius: 5px; color: #555; }
.card .src { margin-top: auto; padding-top: 8px; font-size: 12px; color: #999; }
.empty { text-align: center; padding: 48px 20px; background: #fff; border-radius: var(--radius); }
.empty .row-btns { justify-content: center; }
.fine { margin-top: 22px; font-size: 13px; color: var(--gray); }

/* promise */
.promise { background: var(--wine); color: #fff; padding: 88px 0; }
.promise-in { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 20px; align-items: stretch; }
.note { background: #fff; color: var(--ink); border-radius: 6px; padding: 30px 26px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: 17px; box-shadow: 0 8px 0 rgba(0,0,0,.18); transform: rotate(-1deg); }
.note + .note { transform: rotate(1.2deg); }
.note em { font-style: normal; color: #c2410c; font-weight: 700; }
.promise-cta { padding: 10px 0 10px 20px; display: flex; flex-direction: column; justify-content: center; }
.promise-cta h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; }
.promise-cta p { opacity: .85; margin-top: 8px; }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.info { border-top: 2px solid var(--ink); margin-bottom: 4px; }
.info div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.info dt { color: var(--gray); }
.info dd { font-weight: 600; }
.info a { color: var(--wine); text-decoration: underline; }
.visit-photo img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.visit-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--gray); }

.blog-band { background: var(--yellow); padding: 48px 0; }
.blog-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.blog-in h2 { font-size: clamp(20px, 2.4vw, 28px); }
.blog-in p { color: #5a4a00; font-weight: 600; }
.blog-band .btn.yellow { background: var(--ink); color: #fff; }

.foot { background: #151515; color: #aaa; padding: 44px 0 52px; font-size: 13px; }
.foot strong { color: #fff; font-size: 16px; display: block; margin-bottom: 10px; }
.foot p { margin-bottom: 3px; }
.foot a { color: #fff; }
.copy { margin-top: 14px; color: #777; }

.dock { display: none; }

/* modal */
dialog { margin: auto; width: min(560px, 100% - 24px); max-height: min(88vh, 88dvh); border: 0; border-radius: var(--radius); padding: 0; overflow-y: auto; color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.6); }
dialog .close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: #fff; font-size: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
dialog .card { border: 0; border-radius: 0; }
dialog .card:hover { transform: none; box-shadow: none; }
dialog .card.done .pic::after { right: auto; left: 64px; }
.m-body { padding: 22px 24px 26px; }
.m-body h3 { font-size: 21px; line-height: 1.35; margin-bottom: 14px; }
.m-body ul { list-style: none; border-top: 1px solid var(--line); }
.m-body li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.m-body li::before { content: "☞"; color: #c2410c; margin-right: 8px; }
.m-body .meta { margin-top: 12px; font-size: 13px; color: var(--gray); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .top-call { display: none; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(0,0,0,.08); font-size: 17px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .zones { grid-template-columns: 1fr 1fr; }
  .promise-in { grid-template-columns: 1fr 1fr; }
  .promise-cta { grid-column: 1 / -1; padding: 24px 0 0; }
  .visit { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  br.m { display: inline; }
  .top-in { height: 60px; }
  .nav { top: 60px; }
  html { scroll-padding-top: 64px; }
  .logo b { font-size: 18px; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(0deg, rgba(20,8,10,.92) 0%, rgba(20,8,10,.7) 55%, rgba(20,8,10,.25) 100%); }
  .hero-in { padding: 160px 0 64px; }
  .hero-btns { flex-direction: column; }
  .notice-box { grid-template-columns: 1fr; gap: 4px; padding: 18px 18px; margin-top: -28px; }
  .notice-box h2 { padding: 0; }
  .notice-box li a, .notice-box li > span { flex-direction: column; gap: 0; font-size: 14px; }
  .notice-box .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .notice-box time { font-size: 12px; }
  .section { padding: 64px 0; }
  .title { margin-bottom: 26px; }
  .g5-head { gap: 14px; margin-bottom: 26px; }
  .g5-head img { width: 84px; height: 84px; box-shadow: 0 0 0 4px var(--yellow); }
  .zones { grid-template-columns: 1fr; gap: 10px; }
  .zone { padding: 18px; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
  .zone .n { margin: 0; grid-row: span 3; }
  .zone .cnt { margin-top: 6px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .promise { padding: 64px 0; }
  .promise-in { grid-template-columns: 1fr; gap: 16px; }
  .note { padding: 22px 18px; font-size: 16px; }
  .row-btns .btn { flex: 1 1 auto; }
  .info div { grid-template-columns: 88px 1fr; }
  .blog-band .btn { width: 100%; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--wine); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(0,0,0,.18); }
  .dock a { color: #fff; text-align: center; font-weight: 700; font-size: 15px; padding: 15px 4px; }
  .dock a + a { border-left: 1px solid rgba(255,255,255,.2); }
  .dock a:first-child { background: var(--yellow); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .zone { transition: none; }
}
