/* 덕실 와이너리 — N12 풀스크린 스냅 섹션: 다섯 장, 휠 한 번에 한 장(CSS scroll-snap, 스크롤 재킹 없음) */
:root {
  --grape: #3A1626;
  --grape-2: #5A2236;
  --paper: #F2ECE2;
  --paper-2: #E6DCCD;
  --ink: #261B18;
  --muted: #6E605A;
  --leaf: #6A7A4A;
  --line: rgba(38, 27, 24, .16);
  --bar: 38px;
  --serif: 'Diphylleia', 'Nanum Myeongjo', serif;
  --num: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-snap-type: y proximity; }
@media (min-width: 761px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.5px; }
.sbp-demo-bar { scroll-snap-align: start; }
.sbp-demo-addons { scroll-snap-align: end; }

/* ── 장(章) 공통 ─────────────────────────── */
.ch { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: var(--grape); }
.ch--cover { height: calc(100svh - var(--bar)); min-height: 520px; scroll-snap-align: none; }
.ch__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ch__body { position: absolute; left: 56px; bottom: 56px; width: min(470px, calc(100% - 200px)); padding: 34px 36px 32px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.ch--right .ch__body { left: auto; right: 210px; }
.ch__no { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .6px; color: var(--leaf); }
.ch__no i { font: italic 500 30px/1 var(--num); color: var(--grape-2); letter-spacing: 0; }
.ch h2 { font-size: 30px; line-height: 1.32; margin-bottom: 14px; color: var(--grape); }
.ch__lead { margin: 0 0 18px; color: var(--ink); }
.note { margin: 14px 0 0; padding-left: 12px; border-left: 2px solid var(--leaf); font-size: 14px; line-height: 1.65; color: var(--muted); }
.ch__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; background: var(--grape); color: var(--paper); font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--grape); transition: background .2s; }
.btn:hover { background: var(--grape-2); }
.btn--line { background: transparent; color: var(--grape); }
.btn--line:hover { background: var(--paper-2); }

/* ── 1장 표지 ─────────────────────────── */
.ch--cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 10, 12, .78) 0%, rgba(20, 10, 12, .32) 46%, rgba(20, 10, 12, 0) 72%); }
.ch--cover .ch__body { z-index: 1; background: none; box-shadow: none; padding: 0; width: min(640px, calc(100% - 200px)); color: #F7F1E8; }
.ch--cover .ch__no { color: #CFD7B3; }
.ch--cover .ch__no i { color: #F2D9C9; }
.cover__place { margin: 0 0 4px; font-size: 15px; opacity: .88; }
.ch--cover h1 { font-size: clamp(48px, 7vw, 92px); line-height: 1.08; margin-bottom: 18px; }
.ch--cover .ch__lead { color: #F7F1E8; font-size: 17px; max-width: 34em; }
.cover__info { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14px; }
.cover__info span:not(:first-child)::before { content: ''; }
.open { font-weight: 600; }
.open.is-open::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #9DC271; vertical-align: 1px; }
.ch--cover .btn { background: var(--paper); color: var(--grape); border-color: var(--paper); }
.ch--cover .btn--line { background: transparent; color: var(--paper); }
.ch--cover .btn--line:hover { background: rgba(255,255,255,.12); }
.cover__next { position: absolute; z-index: 1; right: 210px; bottom: 60px; font-size: 13px; color: #F7F1E8; text-decoration: none; opacity: .8; }
.cover__next::after { content: ' ↓'; }

/* ── 2장 양조 단계 ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 12px 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.steps b { display: block; font: 500 19px/1.2 var(--num); color: var(--grape); margin-bottom: 4px; }
.steps li + li { padding-left: 10px; border-left: 1px solid var(--line); }

/* ── 3장 시음 차림 ─────────────────────────── */
.price { width: 100%; border-collapse: collapse; }
.price caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.price th, .price td { padding: 11px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.price th { text-align: left; font-weight: 600; font-size: 15.5px; }
.price th small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.price td { text-align: right; white-space: nowrap; font: 500 20px/1 var(--num); color: var(--grape); }

/* ── 4장 숙박 ─────────────────────────── */
.rooms { margin: 0; border-top: 1px solid var(--line); }
.rooms div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rooms dt { font-weight: 600; }
.rooms dt small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.rooms dd { margin: 0; font: 500 20px/1 var(--num); color: var(--grape); white-space: nowrap; }

/* ── 5장 오시는 길 ─────────────────────────── */
.ch--visit { height: auto; min-height: 100svh; overflow: visible; display: flex; flex-direction: column; color: var(--paper); }
.visit { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; max-width: 1120px; width: 100%; margin: 0 auto; padding: 72px 140px 40px 56px; }
.ch--visit .ch__no { color: #C3CC9E; }
.ch--visit .ch__no i { color: #F2D9C9; }
.ch--visit h2 { color: var(--paper); font-size: 34px; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 12px; font-size: 18px; font-weight: 600; }
.copy { min-height: 32px; padding: 0 12px; font: 500 13px var(--sans); color: var(--paper); background: transparent; border: 1px solid rgba(242,236,226,.4); cursor: pointer; }
.copy:hover { background: rgba(242,236,226,.1); }
.ways { margin: 0; padding: 0; list-style: none; color: rgba(242,236,226,.82); font-size: 15px; }
.ways li { padding: 8px 0; border-top: 1px solid rgba(242,236,226,.16); }
.ch--visit .btn { background: var(--paper); color: var(--grape); border-color: var(--paper); }
.ch--visit .btn--line { background: transparent; color: var(--paper); border-color: rgba(242,236,226,.5); }
.ch--visit .btn--line:hover { background: rgba(242,236,226,.1); }
.visit__side { padding: 28px 30px; background: rgba(0,0,0,.18); }
.visit__side h3 { font-size: 20px; margin-bottom: 8px; color: #F2D9C9; }
.visit__side h3 + * { margin-top: 0; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 7px 0; border-bottom: 1px solid rgba(242,236,226,.16); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .off { color: #E9B3A3; }
.month { margin: 10px 0 22px; font-size: 13.5px; color: rgba(242,236,226,.72); }
.news { margin: 0 0 18px; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.6; }
.news li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(242,236,226,.16); }
.news time { font: 500 16px/1.5 var(--num); color: #C3CC9E; }
.mail { margin: 0; font-size: 14px; color: rgba(242,236,226,.8); }
.foot { padding: 18px 140px 26px 56px; border-top: 1px solid rgba(242,236,226,.14); font-size: 12.5px; line-height: 1.7; color: rgba(242,236,226,.6); }
.foot p { margin: 0; max-width: 1120px; }

/* ── 오른쪽 점 내비 ─────────────────────────── */
.dots { position: fixed; z-index: 40; right: 30px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.dots__count { margin: 0; font: italic 500 15px/1 var(--num); color: var(--paper); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.dots__count b { font-size: 26px; font-weight: 500; }
.dots__count span { margin-left: 4px; opacity: .75; }
.dots ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dots a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 26px; text-decoration: none; }
.dots a::after { content: ''; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--paper); box-shadow: 0 0 6px rgba(0,0,0,.35); transition: background .2s, transform .2s; }
.dots a.is-on::after { background: var(--paper); transform: scale(1.25); }
.dots span { font-size: 13px; font-weight: 600; color: var(--paper); text-shadow: 0 1px 6px rgba(0,0,0,.6); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; }
.dots a:hover span, .dots a:focus-visible span, .dots a.is-on span { opacity: 1; transform: none; }

/* ── 퀵메뉴(PC: 오른쪽 아래 세로) ─────────────────────────── */
.quick { position: fixed; z-index: 50; right: 24px; bottom: 24px; display: flex; flex-direction: column; width: 172px; background: var(--paper); box-shadow: 0 6px 24px rgba(20,10,12,.22); }
.quick a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 6px 14px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--grape); border-bottom: 1px solid var(--line); }
.quick a:hover { background: var(--paper-2); }
.quick__tel { background: var(--grape); color: var(--paper) !important; }
.quick__tel:hover { background: var(--grape-2) !important; }
.quick__tel span { font-size: 12px; font-weight: 500; opacity: .8; }
.quick__tel b { font: 600 15px/1.3 var(--sans); }
.quick__hours { margin: 0; padding: 8px 14px; font-size: 12px; line-height: 1.45; color: var(--muted); }

/* ── 등장 연출(사용자 스크롤에만 반응, 동작 줄이기면 정지) ── */
@media (prefers-reduced-motion: no-preference) {
  .js .ch:not(.ch--cover) .ch__body, .js .visit > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .ch.is-in .ch__body, .js .ch.is-in .visit > * { opacity: 1; transform: none; }
  .js .ch.is-in .visit__side { transition-delay: .12s; }
}

/* ── 태블릿 ─────────────────────────── */
@media (max-width: 1080px) {
  .visit { grid-template-columns: 1fr; gap: 36px; padding: 72px 200px 40px 40px; }
  .ch__body { left: 40px; bottom: 40px; }
  .ch--right .ch__body { right: 200px; left: auto; }
  .cover__next { display: none; }
  .foot { padding: 18px 200px 26px 40px; }
}

/* ── 모바일 ─────────────────────────── */
@media (max-width: 760px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .dots { display: none; }
  .ch { height: auto; min-height: 100svh; overflow: visible; display: flex; flex-direction: column; background: var(--paper); }
  .ch__img { position: relative; height: 44svh; min-height: 260px; flex: none; }
  .ch__body, .ch--right .ch__body { position: static; width: auto; flex: 1; padding: 24px 20px 32px; box-shadow: none; }
  .ch h2 { font-size: 25px; }
  .ch__no i { font-size: 26px; }
  .btn { flex: 1 1 auto; justify-content: center; padding: 0 16px; }
  .ch--cover { height: auto; min-height: calc(100svh - var(--bar) - 60px); justify-content: flex-end; background: #1D1012; }
  .ch--cover .ch__img { position: absolute; height: 100%; }
  .ch--cover .ch__body { position: relative; left: auto; bottom: auto; flex: none; width: auto; padding: 120px 20px 28px; }
  .ch--cover h1 { font-size: 46px; }
  .ch--cover .ch__lead { font-size: 16px; }
  .cover__info { flex-direction: column; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li { padding-bottom: 12px; }
  .ch--visit { background: var(--grape); }
  .visit { padding: 40px 20px 28px; gap: 28px; }
  .ch--visit h2 { font-size: 27px; }
  .visit__side { padding: 22px 18px; }
  .foot { padding: 18px 20px 24px; }
  .quick { left: 0; right: 0; bottom: 0; width: auto; flex-direction: row; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 14px rgba(20,10,12,.18); }
  .quick a { flex: 1; align-items: center; min-height: 58px; border-bottom: 0; border-left: 1px solid var(--line); font-size: 15px; }
  .quick__tel { flex: 1.3 !important; }
  .quick__tel b { font-size: 13px; }
  .quick__hours { display: none; }
}
