/* 느티재 철학관 — 세로쓰기 한지 두루마리 (디코랩 디자인 샘플)
   기본(모바일·스크립트 없음·동작 줄이기) = 가로쓰기 세로 나열.
   html.is-scroll(넓은 화면) = 화면에 붙은 무대 위로 세로쓰기(vertical-rl) 두루마리가 오른쪽→왼쪽으로 넘어간다. */

:root {
  --hanji: #F4EFE3;        /* 바탕 한지 */
  --hanji-deep: #E6DCC6;   /* 두루마리 받침·보조 면 */
  --paper: #F8F4EA;        /* 두루마리 종이 */
  --meok: #1E1C1A;         /* 먹: 글자·선 */
  --meok-soft: #5A544C;    /* 옅은 먹: 보조 글자 */
  --inju: #C0392B;         /* 인주: 주 버튼·도장·오늘 */
  --inju-deep: #9E2E22;
  --axis: #6B4A33;         /* 두루마리 축 나무 */
  --line: rgba(30, 28, 26, .16);
  --kakao: #FEE500;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Song Myung", "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;

  --header-h: 60px;
  --radius: 2px;

  /* 한지 결: 잔 섬유 + 긴 닥 섬유 */
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .26 0 0 0 .7 -.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-scroll) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--hanji) var(--tex);
  color: var(--meok);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2147483600; background: var(--meok); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--inju); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.ph { display: inline-block; padding: 0 .4em; border: 1px dashed currentColor; border-radius: 2px; color: var(--meok-soft); font-size: .92em; line-height: 1.5; }
.tcy { text-combine-upright: all; }
.hide-sm { display: none; }
@media (min-width: 420px) { .hide-sm { display: inline; } }

/* ── 안내 띠 ── */
.sample-banner { background: var(--meok); color: #EDE6D6; font-size: 13px; line-height: 1.55; }
.sample-banner__inner { max-width: 1240px; margin: 0 auto; padding: 8px 20px; display: flex; gap: 10px; align-items: baseline; }
.sample-banner__tag { flex: none; background: var(--inju); color: #fff; font-weight: 700; font-size: 12px; padding: 1px 8px; border-radius: 2px; }
.sample-banner a { color: #fff; font-weight: 600; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 20px;
  border: 1.5px solid var(--meok); border-radius: var(--radius);
  font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--meok);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--inju { background: var(--inju); border-color: var(--inju); color: #fff; }
.btn--inju:hover { background: var(--inju-deep); border-color: var(--inju-deep); }
.btn--line { background: var(--paper); }
.btn--line:hover { background: var(--meok); color: var(--paper); }
.btn--kakao { background: var(--kakao); border-color: var(--kakao); color: #191600; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--line:disabled:hover { background: var(--paper); color: var(--meok); }

/* ── 머리글 ── */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--hanji); border-bottom: 1px solid var(--meok); }
.site-header__inner { max-width: 1240px; height: var(--header-h); margin: 0 auto; padding: 0 16px 0 20px; display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.logo__seal { width: 34px; height: 34px; }
.logo__name { font-family: var(--serif); font-size: 23px; line-height: 1; }
.logo__sub { font-size: 14px; color: var(--meok-soft); font-weight: 600; }
.gnb { display: none; }
.gnb ul { display: flex; gap: 2px; }
.gnb a { display: block; padding: 8px 10px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--meok-soft); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.gnb a:hover { color: var(--meok); }
.gnb a.is-active { color: var(--meok); border-bottom-color: var(--inju); }
.header-tel { display: none; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 15px; }
.header-tel svg { width: 18px; height: 18px; color: var(--inju); }
.header-cta { display: none; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.menu-btn__bar, .menu-btn__bar::before, .menu-btn__bar::after { display: block; width: 22px; height: 2px; background: var(--meok); position: relative; transition: transform .2s, background-color .2s; }
.menu-btn__bar::before, .menu-btn__bar::after { content: ""; position: absolute; left: 0; }
.menu-btn__bar::before { top: -7px; }
.menu-btn__bar::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bar { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bar::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bar::after { transform: translateY(-7px) rotate(-45deg); }
.header-progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.header-progress span { display: block; height: 100%; background: var(--inju); transform-origin: right center; transform: scaleX(var(--p, 0)); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--menu-top, 100px); bottom: 0; z-index: 59;
  background: var(--hanji) var(--tex); padding: 8px 20px 28px; overflow-y: auto; border-top: 1px solid var(--meok);
}
.mobile-menu ul { margin-bottom: 18px; }
.mobile-menu a:not(.btn) { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 13px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-menu a span { font-family: var(--serif); font-size: 21px; }
.mobile-menu a small { color: var(--meok-soft); font-size: 13px; }
.mobile-menu a.is-active span { color: var(--inju); }

@media (min-width: 1100px) {
  :root { --header-h: 64px; }
  .gnb { display: block; }
  .menu-btn, .mobile-menu { display: none !important; }
  .header-tel, .header-cta { display: inline-flex; }
  .header-tel__num { display: none; }
}
@media (min-width: 1300px) { .header-tel__num { display: inline; } .gnb a { padding: 8px 12px; } }

/* ── 공통 조각 ── */
.seal-mini {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  background: var(--inju); color: #FBF6EA; font-family: var(--serif); font-size: 18px; line-height: 1;
  border-radius: 3px; box-shadow: inset 0 0 0 2px var(--inju), inset 0 0 0 3.5px #FBF6EA;
  writing-mode: horizontal-tb;
}
.sheet__head { display: flex; align-items: center; gap: 12px; }
.sheet__head h2 { font-size: clamp(28px, 6vw, 34px); }

/* ═════════ 기본: 가로쓰기 세로 나열 (모바일·스크립트 없음·동작 줄이기) ═════════ */
.roller { display: none; }
.sheet {
  position: relative;
  max-width: 1120px; margin: 0 auto;
  padding: 64px 20px;
  display: flex; flex-direction: column; gap: 20px;
  border-top: 1px solid var(--line);
}
.sheet > p { max-width: 38em; font-size: 17px; }
#greeting > p:not(.greeting__sign) { font-family: var(--serif); font-size: 19px; line-height: 1.85; }

/* 히어로 */
.sheet--hero { border-top: 0; padding-top: 28px; padding-bottom: 40px; }
.hero__place { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--meok-soft); font-size: 15px; }
.hero__place .seal-mini { width: 26px; height: 26px; font-size: 15px; }
.hero__title { font-size: clamp(31px, 8.4vw, 54px); line-height: 1.25; letter-spacing: -.02em; }
.hero__title span { display: inline; }
.hero__lead { font-size: 16.5px; color: var(--meok-soft); max-width: 32em; }
.hero__box { display: flex; flex-direction: column; gap: 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn { flex: 1 1 140px; }
.hero__today { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 12px 4px 10px; border: 1px solid var(--meok); border-radius: 2px; font-size: 14.5px; background: var(--paper); }
.hero__today::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--inju); }
.hero__today b { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.hero__hint { display: none; }
.hero__ink { margin: 8px 0 0; max-width: 420px; align-self: center; width: 100%; }
.hero__ink svg { width: 100%; height: auto; }

/* 인사 */
.greeting__sign { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 19px; }
.seal-sign {
  display: inline-grid; place-items: center; width: 54px; height: 54px; padding: 4px;
  background: var(--inju); color: #FBF6EA; font-family: var(--serif); font-size: 15px; line-height: 1.05; text-align: center;
  border-radius: 3px; box-shadow: inset 0 0 0 3px var(--inju), inset 0 0 0 4.5px #FBF6EA; transform: rotate(-3deg);
  writing-mode: vertical-rl;
}

/* 상담 종류: 끈에 매단 나무 패찰 */
.consult__lead { color: var(--meok-soft); font-size: 15.5px !important; }
.tags { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tag {
  position: relative; padding: 20px 20px 18px 22px;
  background: #EFE5CF var(--fiber); border: 1.5px solid var(--meok); border-radius: 3px 3px 10px 10px;
}
.tag::after { content: ""; position: absolute; top: 12px; right: 14px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--meok); background: var(--hanji); }
.tag h3 { font-size: 25px; margin-bottom: 6px; }
.tag p { font-size: 15.5px; }
.tag__price { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(30,28,26,.35); font-weight: 600; }
.tag__price b { font-size: 19px; margin: 0 .25em; }
.tag__time { color: var(--meok-soft); font-weight: 500; margin-left: .4em; }
@media (min-width: 640px) { .tags { grid-template-columns: 1fr 1fr; } }

/* 일진 달력 */
.cal__lead { color: var(--meok-soft); }
.cal { display: grid; gap: 16px; }
.cal__main { min-width: 0; }
.cal__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.cal__month { font-family: var(--serif); font-size: 24px; min-width: 7.2em; text-align: center; }
.cal__nav { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--meok); background: var(--paper); border-radius: 2px; cursor: pointer; }
.cal__nav svg { width: 18px; height: 18px; }
.cal__nav:hover { background: var(--meok); color: var(--paper); }
.cal__today-btn { margin-left: auto; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--meok); background: var(--paper); border-radius: 2px; font-weight: 700; cursor: pointer; }
.cal__today-btn:hover { background: var(--meok); color: var(--paper); }
.cal__table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--paper); border: 1.5px solid var(--meok); }
.cal__table th { padding: 6px 0; font-size: 13px; font-weight: 700; color: var(--meok-soft); border-bottom: 1.5px solid var(--meok); }
.cal__table th.is-sun { color: var(--inju); }
.cal__table td { padding: 0; border: 1px solid var(--line); height: var(--cell-h, 64px); vertical-align: top; }
.day {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  width: 100%; height: 100%; padding: 5px 5px 6px 7px; border: 0; background: transparent; cursor: pointer; text-align: left;
  transition: background-color .15s;
}
.day:hover { background: var(--hanji-deep); }
.day__num { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.day__gz { font-family: var(--serif); font-size: 15px; line-height: 1.1; }
.day__hz { font-size: 11px; color: var(--meok-soft); line-height: 1.1; font-family: "Noto Serif KR", "Batang", serif; }
.day.is-sun .day__num { color: var(--inju); }
.day.is-out { opacity: .38; }
.day.is-today .day__num { color: #fff; background: var(--inju); border-radius: 50%; width: 1.75em; height: 1.75em; display: grid; place-items: center; margin: -2px 0 0 -3px; }
.day[aria-pressed="true"] { background: var(--hanji-deep); box-shadow: inset 0 0 0 2px var(--meok); }
.day.is-gapja::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--inju); }
.cal__nojs { margin-top: 10px; color: var(--meok-soft); font-size: 14.5px; }
.js .cal__nojs { display: none; }
.cal__detail {
  position: relative; padding: 18px 18px 16px; background: var(--paper); border: 1.5px solid var(--meok);
  display: flex; flex-direction: column; gap: 8px;
}
.detail__date { font-weight: 700; color: var(--meok-soft); font-size: 14.5px; }
.detail__name b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin-right: 8px; }
.detail__name span { font-family: "Noto Serif KR", "Batang", serif; font-size: 18px; color: var(--meok-soft); }
.detail__chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.detail__chips span { font-size: 13px; font-weight: 600; padding: 1px 8px; border: 1px solid var(--meok); border-radius: 2px; }
.detail__line { font-family: var(--serif); font-size: 17.5px; line-height: 1.65; }
.detail__note { font-size: 13px; color: var(--meok-soft); line-height: 1.55; }
.detail__stamp {
  position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--inju); color: #FBF6EA; font-family: var(--serif); font-size: 26px; border-radius: 4px;
  box-shadow: inset 0 0 0 3px var(--inju), inset 0 0 0 4.5px #FBF6EA; opacity: 0; transform: rotate(-6deg);
}
.detail__stamp.is-on { opacity: .92; }
.has-motion .detail__stamp.is-stamp { animation: stamp .42s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-6deg) scale(1.6); } 60% { opacity: .95; transform: rotate(-6deg) scale(.94); } 100% { opacity: .92; transform: rotate(-6deg) scale(1); } }
.cal__basis { font-size: 13.5px !important; color: var(--meok-soft); }
@media (min-width: 760px) { .cal { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; } }

/* 상담 순서 */
.steps { display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: start; }
.steps__no { grid-row: span 2; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--meok); text-align: center; padding-top: 4px; border-right: 1px solid var(--line); }
.steps h3 { font-size: 22px; }
.steps p { color: var(--meok-soft); }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; column-gap: 30px; } }

/* 원장 */
.master__fig { margin: 0; width: 220px; }
.master__fig svg { width: 100%; height: auto; border: 1.5px solid var(--meok); }
.master__fig figcaption { margin-top: 8px; font-size: 15px; font-weight: 600; }
.vows { display: grid; gap: 6px; font-family: var(--serif); font-size: 18px; }
.vows li { padding-left: 1.3em; position: relative; }
.vows li::before { content: ""; position: absolute; left: .1em; top: .62em; width: .55em; height: .55em; background: var(--inju); border-radius: 1px; }

/* 묻는 말 */
.qa { display: grid; gap: 18px; }
.qa > div { padding-top: 14px; border-top: 1px dashed rgba(30,28,26,.3); }
.qa dt { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.qa dt::before { content: "問"; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-right: .4em; font-size: .8em; color: #FBF6EA; background: var(--meok); border-radius: 2px; vertical-align: .1em; }
.qa dd { color: var(--meok-soft); }
@media (min-width: 760px) { .qa { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* 예약 문의 */
.ask__lead { color: var(--meok-soft); }
.ask { display: grid; gap: 18px; }
.ask__fields { display: grid; gap: 14px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.field legend, .field > label { font-weight: 700; font-size: 14.5px; padding: 0; margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--meok); border-radius: 2px; background: var(--paper); font-weight: 600; transition: background-color .15s, color .15s; }
.chips input:checked + span { background: var(--meok); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--inju); outline-offset: 2px; }
input[type="date"], select {
  width: 100%; min-height: 46px; padding: 0 10px; font-size: 16px;
  border: 1.5px solid var(--meok); border-radius: 2px; background: var(--paper);
}
.ask__out { padding: 18px; background: var(--paper); border: 1.5px solid var(--meok); display: grid; gap: 10px; align-content: start; }
.out__label { font-weight: 700; font-size: 14px; color: var(--meok-soft); }
.out__msg { font-family: var(--serif); font-size: 18px; line-height: 1.7; padding: 12px 14px; background: var(--hanji) var(--fiber); border-left: 3px solid var(--inju); }
.out__fee { font-weight: 700; }
.out__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.out__actions .btn { flex: 1 1 120px; padding: 0 12px; }
.out__note { font-size: 13px; color: var(--meok-soft); }
.out__warn { font-size: 14px; font-weight: 600; color: var(--inju-deep); }
.cand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; margin-top: 4px; }
.cand b { font-family: var(--serif); font-weight: 400; font-size: 17px; padding: 0 8px; border-bottom: 2px solid var(--inju); }
.cand__clear { border: 1px solid var(--meok); background: var(--paper); border-radius: 2px; font-size: 13px; padding: 2px 8px; cursor: pointer; }
@media (min-width: 760px) { .ask { grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; } }

/* 오시는 길 */
.visit { display: grid; gap: 18px; }
.map { border: 1.5px solid var(--meok); background: var(--paper); }
.map svg { width: 100%; height: auto; }
.visit__info { display: grid; gap: 14px; align-content: start; }
.info { display: grid; gap: 8px; }
.info > div { display: grid; grid-template-columns: 4em 1fr; gap: 8px; }
.info dt { font-weight: 700; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours caption { text-align: left; font-weight: 700; margin-bottom: 6px; }
.hours th, .hours td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); font-weight: 500; }
.hours th { font-weight: 700; width: 9em; }
.hours tr.is-today { background: var(--hanji-deep); }
.hours tr.is-today th::after { content: " 오늘"; color: var(--inju); font-size: 12px; }
.hours__lunch { font-size: 14px; color: var(--meok-soft); }
@media (min-width: 760px) { .visit { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; } }

/* 넓은 화면인데 두루마리가 아닐 때(동작 줄이기·스크립트 없음): 히어로 2단 */
@media (min-width: 900px) {
  html:not(.is-scroll) .sheet--hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 40px; row-gap: 18px; align-items: start; }
  html:not(.is-scroll) .sheet--hero > :not(.hero__ink) { grid-column: 1; }
  html:not(.is-scroll) .sheet--hero .hero__ink { grid-column: 2; grid-row: 1 / span 4; max-width: 460px; }
  html:not(.is-scroll) .sheet__head h2 { font-size: 38px; }
}

/* ── 푸터 ── */
.site-footer { background: var(--meok); color: #D8D0BF; padding: 40px 0 120px; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; gap: 22px; }
.site-footer__logo { font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 8px; }
.site-footer__logo span { font-family: var(--font); font-size: 14px; color: #BDB4A3; }
.site-footer__biz { line-height: 1.9; }
.site-footer .ph { color: #CFC6B4; }
.site-footer__links { margin-top: 10px; display: flex; gap: 16px; }
.site-footer__links .strong { font-weight: 800; }
.site-footer__credit { color: #BDB4A3; font-size: 13px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 48px; } .site-footer__inner { grid-template-columns: 1fr auto; align-items: end; } .site-footer__credit { text-align: right; } }

/* ── 모바일 하단 연락 바 ── */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr 1fr 1.6fr;
  background: var(--meok); padding-bottom: env(safe-area-inset-bottom);
}
.quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 58px; color: #F4EFE3; text-decoration: none; font-weight: 700; font-size: 15px; border-right: 1px solid rgba(255,255,255,.12); }
.quickbar svg { width: 18px; height: 18px; }
.quickbar .quickbar__main { background: var(--inju); color: #fff; border-right: 0; }
body.nav-open .quickbar { visibility: hidden; }
body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .quickbar { display: none; } body { padding-bottom: 0; } }

/* 화면에 들어오면 살짝 떠오르기 (세로 나열일 때만, 한 번) */
.has-motion:not(.is-scroll) .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.has-motion:not(.is-scroll) .rv.is-in { opacity: 1; transform: none; }

/* ═════════ 두루마리 (html.is-scroll) ═════════ */
.is-scroll .header-progress { display: block; }
.is-scroll .quickbar { display: none; }
.is-scroll body { padding-bottom: 0; }

.is-scroll .scroll { position: relative; }
.is-scroll .scroll__stage {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h) - var(--sample-banner-h, 0px));
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(30,28,26,.10), rgba(30,28,26,0) 30px, rgba(30,28,26,0) calc(100% - 30px), rgba(30,28,26,.12)),
    #DDD1B8 var(--tex);
}
.is-scroll .scroll__track {
  position: absolute; inset: 0;
  writing-mode: vertical-rl;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  font-size: clamp(15px, 1.75vh, 19px);
}
.is-scroll .scroll__track::-webkit-scrollbar { display: none; }

/* 축: 시작 축(오른쪽 끝)·끝 축(왼쪽 끝)은 종이와 함께 움직이고, 말린 나머지 축은 무대 왼쪽에 머문다 */
.is-scroll .roller {
  display: block; width: 28px; flex: none; position: relative; z-index: 3;
  background:
    linear-gradient(180deg, #241811 0 26px, transparent 26px calc(100% - 26px), #241811 calc(100% - 26px)),
    linear-gradient(90deg, #2A1C12, #7C5A3E 30%, #A5805F 48%, #6B4A33 68%, #2A1C12);
  border-radius: 14px;
  margin: 4px 0;
}
.is-scroll .roller--rest {
  position: absolute; top: 0; bottom: 0; left: 0; width: 36px; margin: 4px 0 4px 6px; z-index: 5;
  box-shadow: 8px 0 14px -6px rgba(30,28,26,.45);
}
.is-scroll .roller--start { margin-right: 6px; box-shadow: -6px 0 12px -6px rgba(30,28,26,.4); }

.is-scroll .sheet {
  writing-mode: vertical-rl;
  margin: 26px 0;                     /* 위아래로 축 머리가 나오게 종이를 안쪽으로 */
  max-width: none;
  padding: clamp(30px, 5vh, 56px) 54px;
  display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start;
  gap: 40px;
  border: 0;
  border-left: 1px solid rgba(30,28,26,.10);    /* 종이 이음매 */
  background:
    linear-gradient(var(--meok), var(--meok)) left 0 top 14px / 100% 2px no-repeat,
    linear-gradient(var(--meok), var(--meok)) left 0 top 19px / 100% 1px no-repeat,
    linear-gradient(var(--meok), var(--meok)) left 0 bottom 14px / 100% 2px no-repeat,
    linear-gradient(var(--meok), var(--meok)) left 0 bottom 19px / 100% 1px no-repeat,
    var(--tex), var(--paper);
  font-size: 1em;
}
.is-scroll .sheet > p { max-width: none; max-height: 30em; font-size: 1.05em; line-height: 1.95; }
.is-scroll #greeting > p:not(.greeting__sign) { font-size: 1.2em; line-height: 2; max-height: 24em; }
.is-scroll .sheet__head { align-items: center; gap: 16px; }
.is-scroll .sheet__head h2 { font-size: clamp(30px, 4.2vh, 44px); line-height: 1.2; white-space: nowrap; }
.is-scroll .sheet__head .seal-mini { width: 34px; height: 34px; font-size: 20px; }

/* 세로쓰기 안의 가로쓰기 상자(달력·폼·약도) */
.is-scroll .hero__box,
.is-scroll .hero__ink,
.is-scroll .cal,
.is-scroll .ask,
.is-scroll .visit,
.is-scroll .master__fig,
.is-scroll .seal-sign,
.is-scroll .hero__today { writing-mode: horizontal-tb; }

/* 히어로 */
.is-scroll .sheet--hero { padding-right: 46px; gap: 34px; }
.is-scroll .hero__place { font-size: .95em; gap: 12px; }
.is-scroll .hero__place .seal-mini { width: 30px; height: 30px; font-size: 17px; }
.is-scroll .hero__title { font-size: clamp(34px, 5.6vh, 60px); line-height: 1.32; letter-spacing: .02em; }
.is-scroll .hero__title span { display: block; }
.is-scroll .hero__title span:nth-child(2) { padding-top: 1.4em; }
.is-scroll .hero__title span:nth-child(3) { padding-top: .7em; }
.is-scroll .hero__lead { max-height: 21em; font-size: 1.08em; line-height: 2; color: var(--meok-soft); margin-top: .4em; }
.is-scroll .hero__box { align-self: flex-end; width: 250px; gap: 10px; }
.is-scroll .hero__actions { flex-direction: column; }
.is-scroll .hero__actions .btn { flex: none; width: 100%; }
.is-scroll .hero__actions .hide-sm { display: inline; }
.is-scroll .hero__hint { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--meok-soft); line-height: 1.5; }
.is-scroll .hero__hint::before { content: ""; flex: none; width: 34px; height: 10px; background: linear-gradient(var(--meok-soft), var(--meok-soft)) center / 100% 1.5px no-repeat; clip-path: polygon(0 50%, 10px 0, 10px 4px, 100% 4px, 100% 6px, 10px 6px, 10px 100%); }
.is-scroll .hero__ink { align-self: center; margin: 0 10px 0 0; height: min(calc(100vh - 230px), 600px); width: auto; max-width: none; aspect-ratio: 520 / 560; }
.is-scroll .hero__ink svg { width: 100%; height: 100%; }

/* 인사 */
.is-scroll .greeting__sign { align-self: flex-end; gap: 14px; font-size: 1.15em; }
.is-scroll .seal-sign { transform: rotate(-4deg); writing-mode: vertical-rl; }

/* 상담 종류 */
.is-scroll .consult__lead { max-height: 18em; font-size: .92em !important; }
.is-scroll .tags {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding-top: 30px;
}
.is-scroll .tags::before { content: ""; position: absolute; top: 4px; left: -10px; right: -10px; height: 2px; background: var(--axis); border-radius: 2px; }
.is-scroll .tag { inline-size: 20.5em; padding: 30px 18px 18px; border-radius: 4px; }
.is-scroll .tag--long { inline-size: 23em; }
.is-scroll .tag--short { inline-size: 17.5em; }
.is-scroll .tag::before { content: ""; position: absolute; top: -27px; left: 50%; width: 1.5px; height: 30px; background: var(--axis); }
.is-scroll .tag::after { top: 12px; right: auto; left: calc(50% - 5px); }
.is-scroll .tag h3 { font-size: 1.55em; margin: 0 0 0 .4em; }
.is-scroll .tag p { font-size: .95em; line-height: 1.85; }
.is-scroll .tag__price { margin: 0 0 0 0; padding: 0 .6em 0 0; border-top: 0; border-right: 1px dashed rgba(30,28,26,.35); margin-right: .6em; }
.is-scroll .tag__price b { margin: .3em 0; }
.is-scroll .tag__time { margin: .4em 0 0; }

/* 달력 */
.is-scroll .sheet--cal { padding-top: clamp(22px, 3vh, 44px); padding-bottom: clamp(22px, 3vh, 44px); }
.is-scroll .cal__lead { max-height: 20em; font-size: .95em; }
.is-scroll .cal { align-self: center; width: auto; grid-template-columns: calc(var(--cell-w) * 7 + 3px) 280px; gap: 22px; align-items: start; font-size: 16px;
  --cell-h: clamp(48px, calc((100vh - 360px) / 6.3), 88px);
  --cell-w: clamp(64px, calc(var(--cell-h) * 1.18), 92px);
}
.is-scroll .cal__basis { max-height: 22em; font-size: .8em !important; line-height: 1.8; }

/* 상담 순서 */
.is-scroll .steps { display: flex; flex-direction: column; gap: 34px; }
.is-scroll .steps li { display: block; inline-size: 19em; }
.is-scroll .steps__no { display: block; font-size: 2.4em; border: 0; border-left: 1px solid var(--line); padding: 0 0 0 .3em; margin-left: .3em; text-align: start; text-combine-upright: none; }
.is-scroll .steps h3 { font-size: 1.4em; margin-left: .3em; }
.is-scroll .steps p { line-height: 1.9; font-size: .98em; }

/* 원장 */
.is-scroll .master__fig { align-self: center; width: min(250px, calc((100vh - 330px) * .83)); }
.is-scroll .vows { max-height: 24em; gap: 10px; font-size: 1.1em; }
.is-scroll .vows li { padding: 1.3em 0 0; }
.is-scroll .vows li::before { left: .25em; top: .15em; }

/* 묻는 말 */
.is-scroll .qa { display: flex; flex-direction: column; gap: 30px; }
.is-scroll .qa > div { inline-size: 24em; padding: 0 16px 0 0; border-top: 0; border-right: 1px dashed rgba(30,28,26,.3); }
.is-scroll .qa dt { font-size: 1.2em; margin: 0 0 0 .5em; line-height: 1.6; }
.is-scroll .qa dt::before { margin: 0 0 .4em; }
.is-scroll .qa dd { line-height: 1.9; font-size: .96em; }

/* 예약 문의 */
.is-scroll .ask__lead { max-height: 22em; font-size: .95em; }
.is-scroll .ask { align-self: center; width: 760px; grid-template-columns: 1fr 1fr; gap: 22px; font-size: 16px; }
.is-scroll .out__msg { font-size: 17px; }

/* 오시는 길 */
.is-scroll .sheet--visit { padding-left: 70px; }
.is-scroll .visit { align-self: center; width: 820px; grid-template-columns: 430px 1fr; gap: 26px; font-size: 15.5px; }

/* 처음 열 때 한 번 펼쳐짐 */
.is-scroll .scroll__stage.is-unrolling .scroll__track { animation: unroll 1.5s cubic-bezier(.62,.04,.26,1) both; }
.is-scroll .scroll__stage.is-unrolling .roller--rest { animation: roll-left 1.5s cubic-bezier(.62,.04,.26,1) both; }
@keyframes unroll { from { clip-path: inset(0 0 0 calc(100% - 60px)); } to { clip-path: inset(0 0 0 0); } }
@keyframes roll-left { from { transform: translateX(calc(100vw - 110px)); } to { transform: translateX(0); } }

/* 동작 줄이기 — 마지막 안전망 (두루마리 자체는 스크립트가 세로 나열로 되돌린다) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn, .chips span, .gnb a, .day { transition-duration: .2s !important; }
  .detail__stamp { transition: opacity .2s !important; }
}
