/* 한정식 소반뜰 — 한정식 음식점 디자인 샘플 (디코랩)
   색은 상차림 실물에서: 백자 흰빛, 흑칠, 주칠 소반, 유기(놋), 모시, 보자기 쪽빛 */
:root {
  --color-baekja: #F2F2EE;      /* 배경 — 백자 */
  --color-heukchil: #231B17;    /* 본문 글자·선 — 흑칠 */
  --color-juchil: #A3321E;      /* 주칠 소반 — 상 면, 주 버튼 */
  --color-juchil-deep: #7E2414; /* 주칠 그늘 — 상 테두리, 버튼 눌림 */
  --color-yugi: #C29343;        /* 유기 — 그릇 그림 */
  --color-yugi-light: #F2D9A6;  /* 주칠 위 작은 글자 */
  --color-moshi: #E2E0D6;       /* 보조 면 */
  --color-jjok: #2E4A6B;        /* 보자기 쪽빛 — 상견례·추천 방 표시 */
  --color-muted: #5E5650;
  --color-rule: rgba(35, 27, 23, .18);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: "Diphylleia", "Pretendard Variable", Pretendard, serif;

  --fs-h1: clamp(2.4rem, 1.4rem + 4vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  --fs-h3: 1.3rem;
  --fs-body: 1rem;
  --fs-small: .875rem;

  --radius: 4px;
  --header-h: 64px;
  --gutter: 20px;
  --section-y: clamp(88px, 11vw, 160px);
  --stage-w: min(84vw, 400px);
  --track-pad: max(var(--gutter), calc((100% - 1200px) / 2)); /* 트랙·스크롤 패딩 모두 섹션 폭 기준 → 컨테이너 왼쪽 선과 맞는다 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-heukchil);
  background: var(--color-baekja);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--color-heukchil); color: #fff; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-jjok); outline-offset: 3px; }

/* 실제 정보 자리 */
.ph { display: inline-block; padding: 0 .4em; border: 1.5px dashed currentColor; border-radius: 3px; opacity: .8; font-size: .92em; line-height: 1.5; }

/* 샘플 안내 띠 */
.sample-banner { background: var(--color-heukchil); color: #ECE7E1; font-size: var(--fs-small); line-height: 1.6; }
.sample-banner__inner { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; }
.sample-banner__tag { flex: none; padding: 1px 8px; border-radius: 2px; background: var(--color-yugi); color: var(--color-heukchil); font-weight: 700; font-size: .78rem; }
.sample-banner a { color: var(--color-yugi-light); font-weight: 600; }

/* 헤더 — backdrop-filter 를 쓰지 않는다(모바일 메뉴가 헤더 높이로 잘리는 문제) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-baekja); border-bottom: 1px solid var(--color-heukchil); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 36px; height: 36px; }
.logo b { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: -.01em; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.logo small { font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--color-muted); letter-spacing: 0; }
.gnb { display: flex; align-items: center; gap: 2px; }
.gnb a { position: relative; padding: 8px 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.gnb a:not(.gnb__cta):hover { color: var(--color-juchil-deep); }
.gnb a.is-active:not(.gnb__cta)::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--color-heukchil); }
.gnb__cta { margin-left: 10px; background: var(--color-juchil); color: var(--color-baekja) !important; padding: 8px 16px !important; border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.gnb__cta:hover { background: var(--color-juchil-deep); }
.header-tel { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; background: var(--color-juchil); color: var(--color-baekja); }
.header-tel svg { width: 20px; height: 20px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; color: var(--color-heukchil); }
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .25s, opacity .2s; }
.menu-toggle__bar { top: 21px; }
.menu-toggle__bar::before { left: 0; top: -7px; }
.menu-toggle__bar::after { left: 0; top: 7px; }
.site-header.is-open .menu-toggle__bar { background: transparent; }
.site-header.is-open .menu-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background-color .18s ease, color .18s ease, transform .18s ease; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--juchil { background: var(--color-juchil); color: var(--color-baekja); }
.btn--juchil:hover { background: var(--color-juchil-deep); }
.btn--line { background: transparent; color: var(--color-heukchil); border-color: var(--color-heukchil); }
.btn--line:hover { background: var(--color-heukchil); color: var(--color-baekja); }
.btn--block { width: 100%; }
.text-link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* 섹션 공통 — 섹션 여백은 여기서만 정한다 */
.section { padding: var(--section-y) 0; }
.section-head { max-width: 34em; margin-bottom: 40px; }
.section-head__kicker { margin-bottom: 14px; font-weight: 700; font-size: var(--fs-small); color: var(--color-muted); display: flex; align-items: center; gap: 10px; }
.section-head__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); letter-spacing: -.02em; line-height: 1.25; margin-bottom: 16px; }
.section-head p:not(.section-head__kicker) { color: var(--color-muted); }

/* 1. 히어로 */
.hero { padding: 40px 0 64px; border-bottom: 1px solid var(--color-rule); }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__kicker { font-weight: 700; color: var(--color-muted); margin-bottom: 18px; display: flex; gap: 10px; align-items: center; }
.hero__kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.18; letter-spacing: -.03em; margin-bottom: 22px; }
.hero__lead { max-width: 30em; color: var(--color-muted); font-size: 1.05rem; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--color-heukchil); }
.hero__facts div { padding: 12px 22px 0 0; margin-right: 22px; }
.hero__facts div + div { padding-left: 22px; border-left: 1px solid var(--color-rule); }
.hero__facts dt { font-size: var(--fs-small); color: var(--color-muted); font-weight: 600; }
.hero__facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero__art { position: relative; max-width: 560px; width: 100%; margin-inline: auto; }
.soban { width: 100%; height: auto; overflow: visible; }
.soban__rim { fill: var(--color-juchil-deep); }
.soban__top { fill: var(--color-juchil); }
.soban__sheen { fill: none; stroke: #fff; stroke-opacity: .16; stroke-width: 10; stroke-linecap: round; }
.hero__caption { margin-top: 10px; text-align: right; font-size: var(--fs-small); color: var(--color-muted); }
.soban use, .board__svg use, .stage use { transform-box: fill-box; transform-origin: center; }

/* 등장: 보이는 상태가 기본, has-motion 일 때만 숨겼다 보여 준다 */
.has-motion [data-hero-item] { opacity: 0; transform: translateY(16px); }
.has-motion .is-ready [data-hero-item] { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.has-motion .is-ready [data-hero-item]:nth-child(2) { transition-delay: .08s; }
.has-motion .is-ready [data-hero-item]:nth-child(3) { transition-delay: .16s; }
.has-motion .is-ready [data-hero-item]:nth-child(4) { transition-delay: .24s; }
.has-motion .is-ready [data-hero-item]:nth-child(5) { transition-delay: .32s; }
.has-motion .hero .dishes use { opacity: 0; transform: translateY(-10px) scale(.86); }
.has-motion .hero.is-ready .dishes use { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.25,1.3,.5,1); }

.has-motion .reveal { opacity: 0; transform: translateY(22px); }
.has-motion .reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }

/* 2. 소반뜰의 상 */
.story__grid { display: grid; gap: 34px; }
.story__quote { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.3; letter-spacing: -.03em; }
.story__lead { font-size: 1.08rem; line-height: 1.85; margin-bottom: 36px; max-width: 34em; }
.promise { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-heukchil); }
.promise li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--color-rule); }
.promise b { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -.02em; }
.promise span { color: var(--color-muted); }

/* 3. 코스 흐름 — 가로로 흐르는 상 */
.course { border-top: 1px solid var(--color-rule); }
.course__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.course__head .section-head { margin-bottom: 0; }
.course__ctrl { display: none; gap: 8px; }
.js .course__ctrl { display: flex; }
.course__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--color-heukchil); background: transparent; color: var(--color-heukchil); display: grid; place-items: center; cursor: pointer; transition: background-color .18s, color .18s, opacity .18s; }
.course__btn svg { width: 22px; height: 22px; }
.course__btn:hover:not(:disabled) { background: var(--color-heukchil); color: var(--color-baekja); }
.course__btn:disabled { opacity: .3; cursor: default; }

.course__track { margin-top: 40px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--track-pad); padding: 0 var(--track-pad) 20px; scrollbar-width: thin; scrollbar-color: var(--color-heukchil) var(--color-moshi); }
.course__track:focus-visible { outline-offset: -3px; }
.course__track.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.course__list { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.stage { flex: none; width: var(--stage-w); scroll-snap-align: start; display: flex; flex-direction: column; }
.stage__table { background: var(--color-juchil); border-block: 8px solid var(--color-juchil-deep); position: relative; }
.stage + .stage .stage__table { box-shadow: inset 1px 0 0 rgba(35, 27, 23, .28); }
/* 상 양 끝 테두리는 그림자로 — border 를 주면 첫·끝 패널의 그림 높이가 달라진다 */
.stage:first-child .stage__table { box-shadow: inset 8px 0 0 var(--color-juchil-deep); border-radius: 6px 0 0 6px; }
.stage:nth-child(4) .stage__table { box-shadow: inset 1px 0 0 rgba(35, 27, 23, .28), inset -8px 0 0 var(--color-juchil-deep); border-radius: 0 6px 6px 0; }
.stage__table svg { width: 100%; height: auto; aspect-ratio: 400 / 190; }
.stage__text { padding: 24px 26px 8px 0; margin-left: 2px; }
.stage + .stage .stage__text { padding-left: 24px; border-left: 1px solid var(--color-rule); margin-left: 0; }
.stage__no { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 700; color: var(--color-muted); margin-bottom: 6px; }
.stage__no span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--color-heukchil); display: grid; place-items: center; color: var(--color-heukchil); font-variant-numeric: tabular-nums; }
.stage h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: -.02em; margin-bottom: 14px; }
.dish-list { list-style: none; margin: 0; padding: 0; }
.dish-list li { padding: 9px 0; border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: .95rem; line-height: 1.6; }
.dish-list b { display: block; color: var(--color-heukchil); font-size: 1.02rem; }
.stage--end { width: min(76vw, 300px); padding-left: 26px; justify-content: flex-start; }
.stage__end { padding: 26px 24px; background: var(--color-moshi); border-radius: var(--radius); display: grid; gap: 12px; margin-top: 0; }
.stage__end-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.stage__end p:not(.stage__end-title) { color: var(--color-muted); font-size: .95rem; }

.course__rail { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.course__rail a { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 12px 2px 4px; border-top: 2px solid var(--color-rule); text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.4; transition: border-color .2s; }
.course__rail span { font-variant-numeric: tabular-nums; color: var(--color-muted); }
.course__rail small { grid-column: 2; font-weight: 500; color: var(--color-muted); font-size: .8rem; }
.course__rail a[aria-current="step"] { border-top-color: var(--color-heukchil); }
.course__note { margin-top: 18px; font-size: var(--fs-small); color: var(--color-muted); }

/* 4. 상차림 미리보기 */
.setting { background: var(--color-moshi); }
.setting__grid { display: grid; gap: 22px; grid-template-areas: "picker" "board" "result"; grid-template-columns: minmax(0, 1fr); }
.picker { grid-area: picker; display: grid; gap: 22px; }
.board { grid-area: board; min-width: 0; }
.result { grid-area: result; }
.picker__group { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.picker__group legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.picker__group legend small { font-weight: 500; color: var(--color-muted); margin-left: 6px; }
.course-opt { position: relative; cursor: pointer; display: block; }
.course-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.course-opt span { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 14px 16px; border: 1px solid var(--color-heukchil); border-radius: var(--radius); background: var(--color-baekja); transition: background-color .18s, color .18s; }
.course-opt b { font-size: 1.05rem; }
.course-opt em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.course-opt small { grid-column: 1 / -1; color: var(--color-muted); font-size: .85rem; line-height: 1.5; margin-top: 2px; }
.course-opt input:checked + span { background: var(--color-heukchil); color: var(--color-baekja); }
.course-opt input:checked + span small { color: #CFC7BF; }
.course-opt--jjok input:checked + span { background: var(--color-jjok); border-color: var(--color-jjok); }
.course-opt input:focus-visible + span { outline: 3px solid var(--color-jjok); outline-offset: 2px; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 8px; }
.stepper button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--color-heukchil); background: var(--color-baekja); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-heukchil); transition: background-color .18s, color .18s, opacity .18s; }
.stepper button:hover:not(:disabled) { background: var(--color-heukchil); color: var(--color-baekja); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { text-align: center; font-weight: 700; font-size: 1.1rem; }
.stepper output b { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; margin-right: 2px; font-variant-numeric: tabular-nums; }
.stepper input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--color-heukchil); margin: 6px 0 0; height: 28px; }

.board__frame { background: var(--color-baekja); border-radius: var(--radius); padding: 10px 8px; }
.board__svg { width: 100%; height: auto; }
.board__rim { fill: var(--color-juchil-deep); }
.board__top { fill: var(--color-juchil); }
.board__chair { fill: #D6D1C3; stroke: rgba(35, 27, 23, .35); stroke-width: 1.5; }
.board__side { font: 700 17px var(--font); fill: var(--color-jjok); }
.board__legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-small); font-weight: 700; color: rgba(35, 27, 23, .38); }
.board__legend li { display: flex; align-items: center; gap: 6px; transition: color .25s; }
.board__legend li::before { content: attr(data-n); width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: .75rem; }
.board__legend li.is-on { color: var(--color-heukchil); }
.board__note { margin-top: 8px; font-size: var(--fs-small); color: var(--color-muted); }

.result { background: var(--color-baekja); border-radius: var(--radius); padding: 24px; display: grid; gap: 18px; align-content: start; }
.result__course { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.25; }
.result__nums { margin: 0; display: grid; grid-template-columns: 1fr 1.3fr; border-block: 1px solid var(--color-heukchil); }
.result__nums div { padding: 12px 0; }
.result__nums div + div { padding-left: 16px; border-left: 1px solid var(--color-rule); }
.result__nums dt { font-size: var(--fs-small); color: var(--color-muted); font-weight: 600; }
.result__nums dd { margin: 0; font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.result__nums div + div dd { font-size: 1.5rem; }
.result__label { font-size: var(--fs-small); color: var(--color-muted); font-weight: 600; }
.result__room-name { font-weight: 800; font-size: 1.25rem; color: var(--color-jjok); }
.result__room-name small { font-weight: 600; font-size: .85rem; color: var(--color-muted); margin-left: 4px; }
.result__room-desc { color: var(--color-muted); font-size: .95rem; margin-top: 2px; }
.result__actions { display: grid; gap: 8px; }
.result__fine { font-size: .8rem; color: var(--color-muted); }

/* 5. 방 안내 */
.rooms__grid { display: grid; gap: 30px; }
.plan__svg { width: 100%; height: auto; }
.plan__floor { fill: var(--color-moshi); }
.room rect { fill: var(--color-baekja); stroke: var(--color-heukchil); stroke-width: 1.5; transition: fill .3s ease; }
.room--util rect { fill: transparent; stroke-dasharray: 6 5; stroke-opacity: .5; }
.plan__tables rect { fill: var(--color-moshi); stroke: rgba(35, 27, 23, .35); stroke-width: 1; }
.room text { fill: var(--color-heukchil); transition: fill .3s ease; }
.room__name { font: 400 30px var(--font-display); }
.room__cap { font: 600 20px var(--font); fill: var(--color-muted) !important; }
.room__slide { stroke: var(--color-heukchil); stroke-width: 1.5; stroke-dasharray: 5 5; }
.room.is-reco rect { fill: var(--color-jjok); }
.room.is-reco text { fill: #fff; }
.room.is-reco .room__cap { fill: #D7E1EE !important; }
.room.is-reco .plan__tables rect { fill: #46638A; stroke: none; }
.room.is-reco .room__slide { stroke: #fff; }
.plan__legend { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--color-muted); }
.plan__legend i { width: 14px; height: 14px; background: var(--color-jjok); border-radius: 2px; }
.room-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-heukchil); }
.room-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 0 14px 0; border-bottom: 1px solid var(--color-rule); position: relative; }
.room-list b { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.3; }
.room-list__cap { font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; align-self: center; }
.room-list p { grid-column: 1 / -1; color: var(--color-muted); font-size: .95rem; }
.room-list li.is-reco { box-shadow: inset 4px 0 0 var(--color-jjok); padding-left: 16px; }
.room-list li.is-reco b::after { content: "추천"; display: inline-block; vertical-align: .3em; margin-left: 8px; padding: 0 7px; border-radius: 2px; background: var(--color-jjok); color: #fff; font: 700 .72rem/1.7 var(--font); }

/* 6. 예약 안내 */
.reserve { border-top: 1px solid var(--color-rule); }
.reserve__ways { display: grid; gap: 14px; margin-bottom: 56px; }
.way { border: 1px solid var(--color-heukchil); border-radius: var(--radius); padding: 26px 24px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.way h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.way__for { color: var(--color-muted); }
.way__time { font-size: var(--fs-small); color: var(--color-muted); }
.way--tel { background: var(--color-juchil); border-color: var(--color-juchil); color: var(--color-baekja); }
.way--tel .way__for, .way--tel .way__time { color: var(--color-yugi-light); }
.way__num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); line-height: 1.15; text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.way__num:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.reserve__detail { display: grid; gap: 40px; }
.reserve__detail h3 { font-size: var(--fs-h3); margin-bottom: 14px; }
.tell { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-heukchil); }
.tell li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--color-rule); position: relative; }
.tell li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 9px; height: 9px; border-radius: 50%; background: var(--color-yugi); }
.hours { margin: 0 0 18px; border-top: 1px solid var(--color-heukchil); }
.hours div { display: grid; grid-template-columns: 5em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--color-rule); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours small { color: var(--color-muted); margin-left: 6px; }
.cancel { font-size: .95rem; color: var(--color-muted); }

/* 7. FAQ */
.faq { background: var(--color-moshi); }
.faq__grid { display: grid; gap: 10px; }
.qa { border-bottom: 1px solid var(--color-heukchil); }
.qa:first-child { border-top: 1px solid var(--color-heukchil); }
.qa h3 { font-size: 1.08rem; }
.qa button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; text-align: left; padding: 20px 2px; border: 0; background: none; font: inherit; font-weight: 700; color: inherit; cursor: pointer; line-height: 1.45; }
.qa button::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform .25s ease; }
.qa button[aria-expanded="true"]::after { transform: rotate(45deg); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa__panel > div { overflow: hidden; min-height: 0; }
.qa__panel p { padding: 0 2px 20px; color: var(--color-muted); }
.qa h3:has(button[aria-expanded="true"]) + .qa__panel { grid-template-rows: 1fr; }

/* 8. 오시는 길 */
.location__grid { display: grid; gap: 36px; align-items: center; }
.location .section-head { margin-bottom: 24px; }
.info { margin: 0 0 26px; border-top: 1px solid var(--color-heukchil); }
.info div { display: grid; grid-template-columns: 6em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--color-rule); }
.info dt { font-weight: 700; }
.info dd { margin: 0; color: var(--color-muted); }
.map-art svg { width: 100%; height: auto; border-radius: var(--radius); }
.map-art__label { font: 400 26px var(--font-display); fill: var(--color-baekja); }
.map-art__p { font: 700 14px var(--font); fill: var(--color-baekja); }
.map-art__mark { font: 800 18px var(--font); fill: var(--color-heukchil); }
.map-art__sub { font: 600 16px var(--font); fill: var(--color-heukchil); }

/* 푸터 */
.site-footer { background: var(--color-heukchil); color: #CFC7BF; font-size: var(--fs-small); padding: 44px 0 calc(44px + 64px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer__logo { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 8px; }
.site-footer__biz { line-height: 1.9; }
.site-footer__links { margin-top: 10px; display: flex; gap: 16px; }
.site-footer__links .strong { font-weight: 800; color: #fff; }
.site-footer__credit a { color: var(--color-yugi-light); }

/* 모바일 하단 고정 바 */
.quickbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.2fr 1fr 1fr; background: var(--color-baekja); border-top: 1px solid var(--color-heukchil); padding-bottom: env(safe-area-inset-bottom); }
.quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 58px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.quickbar a + a { border-left: 1px solid var(--color-rule); }
.quickbar svg { width: 19px; height: 19px; }
.quickbar__cta { background: var(--color-juchil); color: var(--color-baekja); }
body.nav-open .quickbar { visibility: hidden; }

/* 샘플 링크 안내 */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: var(--radius); background: var(--color-heukchil); color: var(--color-baekja); font-size: .95rem; font-weight: 600; }

/* 모바일 메뉴 */
@media (max-width: 1023px) {
  .header-tel { display: grid; }
  .menu-toggle { display: block; }
  .gnb { position: fixed; z-index: 45; left: 0; right: 0; top: var(--menu-top, var(--header-h)); bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; background: var(--color-baekja); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
  .site-header.is-open .gnb { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .gnb a { padding: 16px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--color-rule); }
  .gnb a.is-active:not(.gnb__cta)::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 8px; height: 8px; border-radius: 50%; transform: translateY(-50%); }
  .gnb__cta { margin: 20px 0 0; text-align: center; padding: 15px 16px !important; }
}

@media (max-width: 719px) {
  .hero__facts { grid-template-columns: repeat(3, auto); }
  .hero__facts div { padding-right: 12px; margin-right: 0; }
  .hero__facts div + div { padding-left: 12px; }
  .hero__facts dd { font-size: .9rem; }
  .course__rail { gap: 4px; }
  .course__rail a { grid-template-columns: 1fr; font-size: .85rem; padding-top: 10px; }
  .course__rail small { grid-column: 1; display: none; }
  .stage h3 { font-size: 1.75rem; }
}

@media (min-width: 720px) {
  .reserve__ways { grid-template-columns: 1.1fr 1fr; }
  .reserve__detail { grid-template-columns: 1fr 1fr; gap: 56px; }
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; }
  .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 60px; align-items: start; }
  .promise li { grid-template-columns: 11em 1fr; gap: 20px; align-items: baseline; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; --stage-w: 400px; }
  .quickbar { display: none; }
  .toast { bottom: 32px; }
  .site-footer { padding-bottom: 44px; }
  .hero { padding: 72px 0 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; }
  .story__grid { gap: 96px; }
  .course__track { cursor: grab; }
  .setting__grid { grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "picker board" "result board"; column-gap: 40px; row-gap: 24px; }
  .board { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
  .rooms__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .rooms__grid .section-head { grid-column: 1 / -1; }
  .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
  .location__grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}

/* 동작 줄이기 — 마지막 안전망. 3단계(색·투명도 피드백)는 다시 살린다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:active { transform: none; }
  .btn, .course-opt span, .stepper button, .course__btn, .room rect, .room text, .board__legend li, .qa__panel, .course__rail a { transition-duration: .2s !important; }
}
