/* HB STUDIO — 화이트 갤러리 */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f3;
  --line: #e4e4e0;
  --ink: #141414;
  --ink-2: #555552;
  --ink-3: #8a8a86;
  --accent: #141414;
  --point: #c8a46a;
  --radius: 4px;
  --wrap: 1200px;
  --head: 68px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 헤더 ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.logo img { height: 36px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }
.btn.kakao { background: #fee500; border-color: #fee500; color: #191919; }
.btn.kakao:hover { background: #ffd800; }
.nav .btn { min-height: 40px; padding: 0 18px; color: #fff; }
.nav .btn:hover { color: var(--ink); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- 첫 화면 ---------- */
.hero { position: relative; height: min(86vh, 820px); min-height: 520px; color: #fff; overflow: hidden; background: #222; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.6) 100%); }
.hero .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 72px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); margin: 14px 0 16px; font-weight: 800; }
.hero p { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.92); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 110px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 48px; max-width: 760px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-2); }
.page-head { padding: 84px 0 56px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); margin-top: 10px; }
.page-head p { margin-top: 14px; color: var(--ink-2); max-width: 720px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* 숫자 띠 */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 30px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts b { display: block; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; }
.facts span { font-size: 14px; color: var(--ink-2); }

/* 공간 카드 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { text-decoration: none; display: block; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.04); }
.card h3 { font-size: 20px; margin-top: 18px; }
.card .en { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }
.card p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }

/* 두 칸 (사진 + 글) */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split .ph { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--bg-soft); }
.split .ph img { width: 100%; height: 100%; object-fit: cover; }
.split h2, .split h3 { font-size: clamp(24px, 2.8vw, 34px); margin: 10px 0 16px; }
.split p { color: var(--ink-2); }
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* 사진 그리드 (현장) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery button { padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery button:hover img { opacity: .85; }
.gallery .hidden { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; width: 56px; height: 56px; }
.lightbox .close { top: 12px; right: 12px; }
.lightbox .prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 8px; top: 50%; transform: translateY(-50%); }

/* 공간 상세 */
.space { padding: 96px 0; border-bottom: 1px solid var(--line); }
.space:last-of-type { border-bottom: 0; }
.space-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.space h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 8px; }
.space .desc { color: var(--ink-2); margin-top: 16px; }
.spec { margin-top: 24px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--ink-3); }
.spec dd { margin: 0; }
.shots { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; gap: 8px; }
.shots img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; aspect-ratio: 3 / 2; }
.shots img:first-child { grid-row: span 2; aspect-ratio: auto; }
.subnav { position: sticky; top: var(--head); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 16px 0; text-decoration: none; color: var(--ink-2); font-size: 15px; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-color: var(--ink); }

/* 목록·표 */
.grid-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-list li { background: #fff; padding: 18px 20px; font-size: 15px; }
.grid-list li small { display: block; color: var(--ink-3); font-size: 13px; }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.item .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); border-radius: var(--radius); }
.item .ph img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { font-size: 18px; margin-top: 14px; }
.item p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink-3); font-weight: 500; width: 34%; }
.note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* 이용안내 */
.guide { display: grid; grid-template-columns: 220px 1fr; gap: 64px; }
.guide nav { position: sticky; top: calc(var(--head) + 32px); align-self: start; display: grid; gap: 10px; }
.guide nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.guide nav a:hover { color: var(--ink); }
.guide article + article { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.guide h2 { font-size: 26px; margin-bottom: 24px; }
.guide ol, .guide .bul { padding-left: 0; margin: 0; counter-reset: n; display: grid; gap: 12px; list-style: none; }
.guide ol li { counter-increment: n; position: relative; padding-left: 40px; color: var(--ink-2); }
.guide ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ink); font-size: 14px; line-height: 1.9; }
.guide .bul li { position: relative; padding-left: 18px; color: var(--ink-2); }
.guide .bul li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 5px; height: 5px; background: var(--ink); border-radius: 50%; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }
.steps li { border: 1px solid var(--line); padding: 22px 20px; border-radius: var(--radius); }
.steps b { display: block; font-size: 13px; color: var(--ink-3); letter-spacing: .1em; }
.steps strong { display: block; font-size: 17px; margin: 6px 0 4px; }
.steps span { font-size: 14px; color: var(--ink-2); }
.refund { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.refund div { padding: 20px; border-left: 1px solid var(--line); text-align: center; }
.refund div:first-child { border-left: 0; }
.refund small { display: block; color: var(--ink-3); font-size: 13px; }
.refund b { display: block; font-size: 22px; margin: 4px 0; }
.refund span { font-size: 13px; color: var(--ink-2); }

/* CTA 띠 */
.cta { background: var(--ink); color: #fff; padding: 88px 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 36px); }
.cta p { color: rgba(255,255,255,.75); margin-top: 10px; }
.cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 오시는 길 */
.map { aspect-ratio: 16 / 9; background: var(--bg-soft); border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* 예약 폼 */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.contact-side { position: sticky; top: calc(var(--head) + 24px); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-side h3 { font-size: 18px; margin-bottom: 14px; }
.contact-side .tel { font-size: 26px; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.contact-side .btn { width: 100%; margin-top: 10px; }
.contact-side p { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.form legend { font-size: 20px; font-weight: 700; margin-bottom: 18px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row.time-row { gap: 8px; }
.field { display: block; margin-bottom: 18px; }
.field > span, .field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.req::after { content: " *"; color: #c0392b; }
.field small, .hint { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], textarea, select { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfcfca; border-radius: var(--radius); font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid #cfcfca; border-radius: 999px; font-size: 15px; cursor: pointer; background: #fff; transition: all .15s; }
.opts input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opts input:focus-visible + span { outline: 2px solid var(--point); outline-offset: 2px; }
.other-input { margin-top: 10px; display: none; }
.other-input.show { display: block; }
.terms { background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; font-size: 14px; color: var(--ink-2); max-height: 200px; overflow-y: auto; margin-bottom: 14px; }
.terms p + p { margin-top: 8px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-top: 10px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--ink); }
.form .submit { width: 100%; min-height: 56px; font-size: 17px; }
.form-msg { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); display: none; font-size: 15px; }
.form-msg.ok { display: block; background: #eef6ee; color: #1e5a24; }
.form-msg.err { display: block; background: #fbeeee; color: #8a1f1f; }
.field.invalid input, .field.invalid textarea, .field.invalid .opts span { border-color: #c0392b; }

/* ---------- 푸터 ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 120px; font-size: 14px; color: var(--ink-2); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.foot-top .logo img { height: 40px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.biz { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-3); font-size: 13px; }
.copy { margin-top: 18px; color: var(--ink-3); font-size: 13px; }
.copy a { text-decoration: none; }

/* 모바일 하단 바 */
.mbar { display: none; }

/* 나타나는 효과 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .cards, .items { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts li:nth-child(4) { border-left: 0; }
  .facts li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .grid-list { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .guide { grid-template-columns: 1fr; gap: 0; }
  .guide nav { display: none; }
}
@media (max-width: 820px) {
  :root { --head: 60px; }
  .menu-btn { display: block; }
  .nav { position: fixed; top: var(--head); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px; transform: translateX(100%); transition: transform .25s; margin: 0; }
  .nav a { padding: 18px 0; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav .btn { margin-top: 20px; min-height: 52px; font-size: 17px; }
  .menu-open .nav { transform: none; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .space { padding: 64px 0; }
  .split, .space-top { grid-template-columns: 1fr; gap: 28px; }
  .split.rev > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .refund { grid-template-columns: 1fr 1fr; }
  .refund div:nth-child(3) { border-left: 0; }
  .refund div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--line); }
  .mbar .k { background: #fee500; border-color: #fee500; }
  .mbar .r { background: var(--ink); color: #fff; border-color: var(--ink); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { height: 78vh; min-height: 480px; }
  .hero .wrap { padding-bottom: 48px; }
  .hero .actions .btn { flex: 1; }
  .cards, .items { grid-template-columns: 1fr; gap: 36px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: 20px 14px; }
  .facts li:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .facts li:nth-child(odd) { border-left: 0; }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts li:last-child { grid-column: span 2; border-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .grid-list { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .row.time-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero img { object-position: 50% 78%; }
  .spec div { grid-template-columns: 96px 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .steps { grid-template-columns: 1fr; }
  .page-head { padding: 56px 0 40px; }
  .cta { padding: 64px 0; }
  .cta .actions, .cta .actions .btn { width: 100%; }
}
