/* 밍글스테이 구미 v6 — 책으로 시작하는 집. 아이보리 종이 + 잉크 블루, 제목 세리프 */
:root {
  --paper: #f6f1e6; --paper-2: #efe6d4; --card: #fbf8f1; --line: rgba(31, 51, 84, .16);
  --ink: #1f3354; --ink-2: #2f4c7a; --ink-deep: #16243d; --text: #1d2433; --muted: #535b6b;
  --oak: #7d5733; --walnut: #5a3f36; --sage: #56664d; --brick: #9c4a35;
  --serif: "Newsreader", "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --wrap: 1200px; --hd: 72px;
}
:lang(zh-Hans) { --serif: "Newsreader", "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif; --sans: "Pretendard Variable", Pretendard, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
:lang(ja) { --serif: "Newsreader", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; --sans: "Pretendard Variable", Pretendard, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
:lang(ko) { --serif: "Newsreader", "Noto Serif KR", serif; }

/* 언어: 지금 언어 글만 보인다 */
html[data-lang="ko"] .t:not([data-l="ko"]), html[data-lang="en"] .t:not([data-l="en"]),
html[data-lang="zh"] .t:not([data-l="zh"]), html[data-lang="ja"] .t:not([data-l="ja"]),
html[data-lang="ko"] .only-fx { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16.5px/1.75 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
html[data-lang="en"] body { word-break: normal; overflow-wrap: break-word; }
/* 중국어·일본어는 글자 사이에서 줄을 나누고 금칙(。、 줄머리 금지)을 지킨다. 한글(병기·주소)만 낱말 단위 */
:lang(zh-Hans), :lang(ja) { word-break: normal; line-break: strict; }
[lang="ko"] { word-break: keep-all; }
h1, h2, h3, .hero__title, .ch-hd__t { text-wrap: balance; }
h1:lang(ja), h2:lang(ja), h3:lang(ja), h1 :lang(ja), h2 :lang(ja), h3 :lang(ja) { word-break: auto-phrase; }  /* 일본어 제목은 낱말 덩어리로 줄바꿈 */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.kn { font-family: var(--sans); font-size: max(.62em, 12px); font-weight: 500; color: var(--muted); margin: 0 .25em 0 .35em; letter-spacing: 0; white-space: nowrap; vertical-align: .08em; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; flex: none; }
.ic--lg { width: 30px; height: 30px; }

/* ── 머리 ─────────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 230, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.hd__row { height: var(--hd); display: flex; align-items: center; gap: 28px; max-width: 1360px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: var(--ink); flex: none; }
.brand b { font: 700 21px/1.15 "Noto Serif KR", serif; letter-spacing: -.02em; }
.brand small { font: 500 12px/1.4 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.hd__nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.hd__nav ul { display: flex; gap: 4px; width: max-content; }
.hd__nav a { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; border-radius: 2px; }
.hd__nav a i { font: italic 400 14px/1 var(--serif); color: var(--oak); }
html[data-lang="en"] .hd__nav a { padding: 8px 8px; }
.hd__nav a:hover { color: var(--ink); background: rgba(31, 51, 84, .06); }
.hd__tools { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 2px; background: var(--card); }
.lang button { min-width: 40px; height: 36px; padding: 0 9px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 2px; background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 1.6px; background: var(--ink); position: relative; transition: transform .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
/* 접힘: 차례가 한 줄에 다 안 들어가면(좁은 폭·긴 외국어) 햄버거로 — 재기 위해 숨긴 채 자리만 0 */
.hd.is-fold .hd__nav { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; }
.hd.is-fold .burger { display: flex; }
@media (max-width: 899px) {
  .hd__nav { position: absolute; width: 0; height: 0; overflow: hidden; visibility: hidden; }
  .burger { display: flex; }
}
.menu { position: fixed; inset: var(--hd) 0 0 0; z-index: 49; background: var(--paper); overflow-y: auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); }
.menu > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.menu[hidden] { display: none; }
.menu__cap { font: italic 400 15px var(--serif); color: var(--oak); margin-bottom: 8px; }
.menu__cap .t:not([data-l="en"]) { font-style: normal; }
.menu ol { border-top: 1px solid var(--line); margin-bottom: 28px; }
.menu li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 21px/1.35 var(--serif); }
.menu li a i { font: italic 400 17px var(--serif); color: var(--oak); min-width: 16px; }
.menu li a:not(:has(> i)) { padding-left: 34px; }  /* 번호 없는 장(오시는 길·외국어 안내)도 글 줄을 맞춘다 */

/* ── 단추: 책갈피(리본) · 선 ─────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px; font-size: 15.5px; font-weight: 600; text-decoration: none; border-radius: 2px; transition: background .2s, color .2s; }
.btn--ribbon { background: var(--ink); color: var(--paper); padding-right: 36px; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }
.btn--ribbon:hover { background: var(--ink-deep); }
.btn--line { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn__sub { font-weight: 500; opacity: .8; font-variant-numeric: tabular-nums; }
.btn--sm { min-height: 44px; font-size: 14.5px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.acts__way { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 14.5px; min-height: 44px; }
.acts__way > .ic { color: var(--ink); }
.acts__way a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; padding: 10px 6px; }
.acts--menu .btn { flex: 1 1 240px; justify-content: center; }
.acts__way a + a::before { content: "·"; display: inline-block; color: var(--muted); margin-right: 10px; font-weight: 400; text-decoration: none; }

/* ── 첫 화면: 넓은 거실 사진(3:2 이상) + 속표지, 아래 띠지 ───────────────────── */
.hero { background: var(--paper); }
.hero__top { display: grid; grid-template-columns: 64fr 36fr; min-height: clamp(460px, min(42.7vw, 100vh - var(--hd) - 96px), 900px); }
.hero__plate { position: relative; overflow: hidden; background: var(--paper-2); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; }
.hero__plate::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 46px; background: linear-gradient(90deg, rgba(22, 36, 61, 0), rgba(22, 36, 61, .16)); pointer-events: none; }
.hero__page { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 44px;
  background: linear-gradient(90deg, rgba(31, 51, 84, .07), rgba(31, 51, 84, 0) 60px), var(--paper); }
.hero__page::before { content: ""; position: absolute; inset: 22px; border: 1px solid var(--line); pointer-events: none; }
.hero__page::after { content: ""; position: absolute; inset: 28px; border: 1px solid rgba(31, 51, 84, .08); pointer-events: none; }
.hero__inner { position: relative; max-width: 470px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-block; padding: 6px 14px; border: 1px solid var(--ink); color: var(--ink); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; border-radius: 999px; }
.badge .kn { color: var(--ink-2); }
.hero__title { margin-top: 28px; font-size: clamp(34px, 3.1vw, 52px); line-height: 1.24; font-weight: 700; letter-spacing: -.025em; }
html[data-lang="en"] .hero__title { font-weight: 500; letter-spacing: -.015em; font-size: clamp(30px, 2.9vw, 48px); }
.hero__title .kn { font-size: 15px; vertical-align: .55em; }
.hero__orn { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--oak); }
.hero__orn span { width: 54px; height: 1px; background: currentColor; opacity: .6; }
.orn { width: 10px; height: 10px; flex: none; }
.hero__sub { font-size: 16.5px; color: var(--text); line-height: 1.75; }
.hero__imprint { margin-top: 26px; font: 500 12.5px/1.5 var(--sans); letter-spacing: .06em; color: var(--muted); }
/* 띠지: 잉크 띠 위에 시간·역 거리와 행동 버튼 */
.hero__band { background: var(--ink); color: #e9e2d2; }
.hero__band-in { max-width: 1360px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ic { color: #c9a57a; }
.hero__band .kn { color: #b9b09c; }

/* ── 차례 = 책등 ──────────────────────────────────────── */
.shelfnav { padding: 54px 0 0; }
.shelfnav__in { display: grid; grid-template-columns: 160px 1fr; align-items: end; gap: 24px; }
.shelfnav__h { font: 500 30px/1 var(--serif); color: var(--oak); padding-bottom: 18px; }
.spines { display: flex; align-items: flex-end; gap: 6px; height: 290px; border-bottom: 9px solid var(--walnut); padding: 0 8px; box-shadow: 0 9px 0 -4px rgba(0, 0, 0, .08); }
.sp { height: var(--h); width: 68px; flex: none; }
.sp:nth-child(3n) { width: 58px; } .sp:nth-child(4n) { width: 74px; }
.sp a { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 14px 0 16px; text-decoration: none; color: var(--paper);
  background: var(--c); border-radius: 3px 3px 0 0; box-shadow: inset -6px 0 0 rgba(0, 0, 0, .12), inset 2px 0 0 rgba(255, 255, 255, .12); transition: transform .25s ease; }
.sp a::before, .sp a::after { content: ""; position: absolute; left: 8px; right: 10px; height: 2px; background: currentColor; opacity: .45; }
.sp a::before { top: 40px; } .sp a::after { bottom: 34px; }
.sp a:hover, .sp a:focus-visible { transform: translateY(-14px); }
.sp-stack { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding-right: 18px; }
.sp-stack span { display: block; height: 24px; border-radius: 2px 4px 4px 2px; box-shadow: inset -6px 0 0 rgba(0, 0, 0, .12); }
.sp-stack span:nth-child(1) { width: 150px; background: #56664d; margin-right: 14px; }
.sp-stack span:nth-child(2) { width: 176px; background: #e4d8bf; }
.sp-stack span:nth-child(3) { width: 162px; background: #1f3354; margin-right: 6px; }
.sp i { font: italic 500 17px/1 var(--serif); margin-bottom: 26px; }
.sp i .orn { display: block; margin-top: 3px; }
.sp__t { writing-mode: vertical-rl; font: 600 16px/1.2 var(--serif); letter-spacing: .06em; white-space: nowrap; }
html[data-lang="ko"] .sp__t, html[data-lang="zh"] .sp__t, html[data-lang="ja"] .sp__t { text-orientation: upright; letter-spacing: .12em; }
.sp--ink { --c: #1f3354; } .sp--oak { --c: #8a6239; } .sp--walnut { --c: #5a3f36; } .sp--sage { --c: #56664d; }
.sp--slate { --c: #3d5679; } .sp--brick { --c: #8f4431; } .sp--paper a { color: var(--ink); --c: #e4d8bf; }

/* ── 장(章) 머리 ──────────────────────────────────────── */
.ch { padding: 110px 0; }
.ch-hd { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: end; margin-bottom: 36px; }
.ch-hd__no { grid-row: span 2; font: italic 400 96px/.8 var(--serif); color: var(--oak); }
.ch-hd__lab { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--oak); }
.ch-hd__lab::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: currentColor; opacity: .5; }
.ch-hd__t { margin-top: 8px; font-size: clamp(28px, 2.9vw, 42px); font-weight: 700; }
html[data-lang="en"] .ch-hd__t { font-weight: 500; }
.ch-hd__t .kn { font-size: 16px; vertical-align: .3em; }
.lead { font-size: 19px; line-height: 1.8; color: var(--text); }

/* 외국어 판 먼저 보는 안내 */
.before { padding: 72px 0 8px; }
.sec-h { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 26px; }
.before__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.before__list > li { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--ink); padding: 24px 22px 26px; }
.before__list .ic--lg { color: var(--ink); }
.before__list h3 { font-size: 20px; margin: 12px 0 8px; }
.before__list p { font-size: 15.5px; line-height: 1.7; }
.before__list .small { font-size: 14px; color: var(--muted); margin-top: 8px; }
.addr-ko { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.addr-ko__cap { display: block; font-size: 13px; color: var(--muted); }
.addr-ko > span[lang] { font-weight: 600; color: var(--ink); }

/* ── 1 책장 ──────────────────────────────────────────── */
.ch-shelf { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.ch-shelf__txt > p + p { margin-top: 16px; }
.ch-shelf__fig { position: sticky; top: calc(var(--hd) + 24px); }
.ch-shelf__fig img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 42% 50%; box-shadow: 18px 18px 0 var(--paper-2); }
figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.ch-shelf__fig figcaption { margin-top: 26px; }
.card-lib { position: relative; margin-top: 40px; background: #fdfbf5; border: 1px solid #d9cdb4; padding: 22px 26px 84px 54px; box-shadow: 0 1px 0 #e7dcc6, 0 10px 24px -14px rgba(31, 51, 84, .35);
  background-image: linear-gradient(#fdfbf5, #fdfbf5), repeating-linear-gradient(180deg, transparent 0 33px, rgba(31, 51, 84, .12) 33px 34px);
  background-size: 100% 64px, auto; background-repeat: no-repeat, repeat; background-position: 0 0, 0 64px; }
.card-lib::before { content: ""; position: absolute; left: 38px; top: 0; bottom: 0; width: 1px; background: rgba(156, 74, 53, .45); }
.card-lib::after { content: ""; position: absolute; left: 14px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.card-lib__hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; height: 42px; font: 600 17px/1.4 var(--serif); color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.card-lib__no { font: 500 13px/1.6 var(--sans); color: var(--muted); }
.card-lib ol { counter-reset: c; }
.card-lib li { counter-increment: c; position: relative; font-size: 15.5px; line-height: 34px; }
.card-lib li::before { content: counter(c); position: absolute; left: -38px; width: 22px; text-align: center; font: italic 400 15px/34px var(--serif); color: var(--brick); top: 0; }
.stamp { position: absolute; right: 26px; bottom: -18px; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--brick); color: var(--brick);
  display: flex; align-items: center; justify-content: center; text-align: center; font: 700 14px/1.25 var(--serif); transform: rotate(-12deg); background: rgba(253, 251, 245, .7);
  box-shadow: inset 0 0 0 4px rgba(253, 251, 245, .9), inset 0 0 0 5px rgba(156, 74, 53, .55); }

/* ── 2 두 층(평면 카드) ──────────────────────────────────── */
.ch--floors { background: var(--paper-2); }
.plans { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; }
.plan { position: relative; background: var(--card); border: 1.5px solid var(--ink); padding: 34px 34px 32px;
  background-image: linear-gradient(rgba(31, 51, 84, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 51, 84, .055) 1px, transparent 1px); background-size: 22px 22px; }
.plan::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(31, 51, 84, .25); pointer-events: none; }
.plan__fl { position: absolute; top: -1px; right: 28px; padding: 6px 12px 10px; background: var(--ink); color: var(--paper); font: 500 20px/1 var(--serif); letter-spacing: .04em; }
.plan__t { font-size: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-right: 64px; }
.plan__t b { font-size: clamp(34px, 3.3vw, 48px); font-weight: 700; color: var(--ink); line-height: 1.1; }
.plan__tok { display: flex; gap: 8px; margin: 20px 0 6px; }
.tok { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
.tok .ic { width: 24px; height: 24px; }
.tok--bath { border-style: dashed; color: var(--ink-2); }
.plan__rooms { font-weight: 600; color: var(--ink); }
.plan__dl { margin: 22px 0 18px; border-top: 1px solid var(--line); }
.plan__dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan__dl dt { color: var(--muted); }
.plan__dl dd { margin: 0; font-weight: 500; }
.plan__lead { font: 600 18px/1.55 var(--serif); color: var(--ink); }
.plan__pts { margin: 10px 0 18px; }
.plan__pts li { position: relative; padding: 3px 0 3px 20px; font-size: 15.5px; }
.plan__pts li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border: 1.5px solid var(--brick); transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips li { padding: 5px 12px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; border-radius: 999px; }
.plan__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.plan__figs img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.plan__figs figcaption { margin-top: 8px; }
.plans__side { display: grid; grid-template-rows: auto 1fr auto; gap: 22px; }
.plans__side .notes { margin-top: 6px; }
.both { display: grid; grid-template-columns: 112px 1fr; gap: 26px; align-items: center; padding: 28px 30px; background: var(--ink); color: #e9e2d2; }
.house { display: grid; gap: 4px; }
.house__roof { height: 34px; margin: 0 -8px 2px; background: var(--brick); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.house__fl { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 12px; border: 1.5px solid rgba(233, 226, 210, .7); }
.house__fl b { font: 500 14px/1 var(--serif); letter-spacing: .06em; color: #c9a57a; }
.house__fl em { font: 600 28px/1 var(--serif); font-style: normal; color: #fbf6ea; }
.both__t { color: #fbf6ea; font-size: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; }
.both__t b { font-size: 34px; line-height: 1.15; }
.both p { font-size: 15px; color: #d6cebd; }
.notes { margin-top: 28px; display: grid; gap: 6px; }
.notes li { position: relative; padding-left: 18px; font-size: 15px; color: var(--muted); }
.notes li::before { content: "※"; position: absolute; left: 0; color: var(--oak); }

/* ── 3 금리단길 ──────────────────────────────────────── */
.ch-walk { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.ch-walk__txt > p + p { margin-top: 14px; }
.ladder { --km: 96px; --gap: 36px; position: relative; background: #fdfbf5; border: 1px solid #d9cdb4; padding: 28px 32px 24px; box-shadow: 0 18px 30px -22px rgba(31, 51, 84, .4);
  background-image: linear-gradient(rgba(31, 51, 84, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 51, 84, .055) 1px, transparent 1px); background-size: 24px 24px; }
.ladder__h { font-size: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 14px; }
.ladder__list { position: relative; }
.ladder__list::before { content: ""; position: absolute; left: calc(var(--km) + var(--gap) / 2 - 1.5px); top: 24px; bottom: 26px; border-left: 3px dotted var(--ink); }
.stop { position: relative; display: grid; grid-template-columns: var(--km) 1fr; column-gap: var(--gap); padding: 10px 0; }
.stop::before { content: ""; position: absolute; left: calc(var(--km) + var(--gap) / 2 - 7px); top: 20px; width: 14px; height: 14px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 4px #fdfbf5; }
.stop--home::before { left: calc(var(--km) + var(--gap) / 2 - 11px); top: 15px; width: 22px; height: 22px; border-radius: 0; background: var(--ink); clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); box-shadow: none; }
.stop--far { margin-top: 34px; }
.stop--far::after { content: ""; position: absolute; left: calc(var(--km) + var(--gap) / 2 - 11px); top: -24px; width: 22px; height: 9px; background: #fdfbf5; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: skewY(-28deg); }
.stop__km { text-align: right; font: 600 18px/1.5 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 4px; white-space: nowrap; }
.stop--home .stop__km { font-size: 15px; color: var(--muted); padding-top: 6px; }
.stop__names { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.stop__names li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 4px 0; }
.stop__type { flex: none; font-size: 12.5px; font-weight: 600; color: var(--brick); border: 1px solid currentColor; padding: 0 8px; border-radius: 999px; line-height: 1.7; }
.stop__n { font: 600 19px/1.45 var(--serif); color: var(--ink); }
.stop--home .stop__n { padding-top: 4px; }
.stop__n .kn { font-size: 13px; }
.ladder figcaption { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }

/* ── 4 갖춘 것: 책 끝 색인 ──────────────────────────────── */
.ch--amen { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ch-amen { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.idx { margin: 0; }
.idx__row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.idx__row:first-child { border-top: 2px solid var(--ink); }
.idx dt { font: 600 18px/1.5 var(--serif); color: var(--ink); }
.idx dd { margin: 0; font-size: 15.5px; line-height: 1.85; }
.idx .sep { color: var(--oak); }
.idx__note { display: block; margin-top: 6px; font-size: 14px; color: var(--brick); font-weight: 600; }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.gal__it img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal figcaption { margin-top: 8px; }

/* ── 5 이용 규칙: 잉크 면 ──────────────────────────────── */
.ch--rules { background: var(--ink-deep); color: #e9e2d2; }
.ch--rules h2, .ch--rules h3 { color: #fbf6ea; }
.ch--rules .ch-hd__no, .ch--rules .ch-hd__lab { color: #c9a57a; }
.rules { display: grid; gap: 52px; }
.rules__time { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px 48px; align-items: end; }
.rules__notes .rules__note:first-child { margin-top: 0; }
.ttable { width: 100%; border-collapse: collapse; background: var(--paper); color: var(--text); }
.ttable caption { caption-side: top; text-align: left; padding: 0 0 12px; font: 600 18px var(--serif); color: #fbf6ea; }
.ttable th, .ttable td { padding: 14px 20px; text-align: left; }
.ttable th + th, .ttable td + td { border-left: 1px solid var(--line); }
.ttable thead th { background: var(--paper-2); font-size: 14px; color: var(--ink); font-weight: 600; }
.ttable td { font: 600 clamp(19px, 1.9vw, 26px)/1.3 var(--serif); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; padding-top: 18px; padding-bottom: 18px; }
.rules__note { margin-top: 14px; font-size: 14.5px; color: #cfc6b3; line-height: 1.7; }
.rules__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.rules__col h3 { font-size: 19px; padding-bottom: 10px; border-bottom: 1px solid rgba(233, 226, 210, .25); margin-bottom: 6px; }
.rules__col ol { counter-reset: r; }
.rules__col li { counter-increment: r; position: relative; padding: 8px 0 8px 32px; font-size: 15.5px; line-height: 1.7; border-bottom: 1px dotted rgba(233, 226, 210, .18); }
.rules__col li b { color: #fbf6ea; font-weight: 600; }
.rules__col li::before { content: counter(r); position: absolute; left: 0; top: 8px; font: italic 400 18px/1.5 var(--serif); color: #c9a57a; }

/* ── 6 리뷰 키워드: 대출 도장 칸 ───────────────────────────── */
.rv-cap { margin: -18px 0 28px; color: var(--muted); font-size: 15px; }
.rvs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 2px solid var(--ink); }
.rv { display: grid; grid-template-columns: 1fr auto 64px; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rv__t { font-weight: 600; font-size: 16px; }
.rv__cells { display: flex; gap: 4px; }
.rv__cells i { width: 15px; height: 15px; border: 1px solid rgba(31, 51, 84, .3); border-radius: 50%; }
.rv__cells i.on { background: var(--ink); border-color: var(--ink); }
.rv:nth-child(-n+2) .rv__cells i.on { background: var(--brick); border-color: var(--brick); }
.rv__n { text-align: right; font: 600 17px var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── 오시는 길 ───────────────────────────────────────── */
.ch--access { background: var(--paper-2); }
.ch-access { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.ch--access .ch-hd { grid-template-columns: 1fr; }
.addr { font: 600 clamp(22px, 2.2vw, 28px)/1.4 "Noto Serif KR", serif; color: var(--ink); }
.addr__hint { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.access__pts { margin: 20px 0 22px; display: grid; gap: 6px; }
.access__pts li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.access__pts .ic { color: var(--ink); }
.access__pts a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tel { display: inline-flex; align-items: center; min-height: 40px; }
.maplinks { display: flex; flex-wrap: wrap; gap: 10px; }
.coords { margin-top: 16px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ptable { width: 100%; border-collapse: collapse; background: var(--card); }
.ptable caption { caption-side: top; text-align: left; padding-bottom: 12px; font: 600 20px var(--serif); color: var(--ink); }
.ptable caption .ic { vertical-align: -3px; margin-right: 8px; width: 22px; height: 22px; }
.ptable th, .ptable td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15.5px; }
.ptable thead th { border-top: 2px solid var(--ink); font-size: 13.5px; color: var(--muted); font-weight: 600; background: var(--paper); }
.ptable tbody th { font-weight: 600; color: var(--ink); }
.ptable .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable__note { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--brick); background: rgba(156, 74, 53, .07); font-size: 15px; color: var(--text); }

/* ── 꼬리 ───────────────────────────────────────────── */
.ft { background: var(--ink-deep); color: #e9e2d2; padding: 96px 0 56px; }
.ft__line { font: 600 clamp(28px, 3.2vw, 46px)/1.3 var(--serif); color: #fbf6ea; margin-bottom: 34px; }
html[data-lang="en"] .ft__line { font-weight: 500; }
.ft .btn--ribbon, .hero__band .btn--ribbon { background: var(--paper); color: var(--ink); }
.ft .btn--ribbon:hover, .hero__band .btn--ribbon:hover { background: #fff; }
.ft .btn--line, .hero__band .btn--line { border-color: rgba(251, 246, 234, .7); color: #fbf6ea; }
.ft .btn--line:hover, .hero__band .btn--line:hover { background: #fbf6ea; color: var(--ink); }
.ft .acts__way, .hero__band .acts__way { color: #cfc6b3; }
.ft .acts__way > .ic, .ft .acts__way a, .hero__band .acts__way > .ic, .hero__band .acts__way a { color: #fbf6ea; }
.ft__info { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(233, 226, 210, .2); display: grid; gap: 4px; font-size: 14.5px; }
.ft__info b { color: #fbf6ea; font-family: "Noto Serif KR", serif; }
.ft__info a { color: #fbf6ea; }
.ft__credit { margin-top: 12px; font-size: 13px; color: #b9b09c; }
.ft .kn { color: #b9b09c; }

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 1180px) {
  .before__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .ch-shelf, .ch-walk, .ch-amen, .ch-access { grid-template-columns: 1fr; gap: 44px; }
  .ch-shelf__fig { position: static; }
  .sp-stack { display: none; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .hero__top { grid-template-columns: 60fr 40fr; }
  .hero__page { padding: 44px 34px; }
}
@media (max-width: 900px) {
  .hero__top { grid-template-columns: 1fr; min-height: 0; }
  .hero__plate { aspect-ratio: 16 / 9; max-height: 70vh; width: 100%; }
  .hero__img { object-position: 28% 62%; }
  .hero__plate::after { inset: auto 0 0 0; width: auto; height: 30px; background: linear-gradient(180deg, rgba(22, 36, 61, 0), rgba(22, 36, 61, .14)); }
  .hero__page { padding: 56px 32px 52px; background: linear-gradient(180deg, rgba(31, 51, 84, .07), rgba(31, 51, 84, 0) 40px), var(--paper); }
  .hero__page::before { inset: 14px; } .hero__page::after { inset: 19px; }
  .hero__title { font-size: clamp(32px, 5vw, 48px); }
}
@media (max-width: 900px) {
  :root { --hd: 64px; }
  .rules__time { grid-template-columns: 1fr; }
  .shelfnav__in { grid-template-columns: 1fr; gap: 10px; }
  .shelfnav__h { padding-bottom: 0; font-size: 26px; }
  .ch { padding: 80px 0; }
  .rules__cols { grid-template-columns: 1fr; }
  .rvs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hd__row { gap: 8px; padding: 0 12px; }
  .brand b { font-size: 17px; }
  .brand small { font-size: 12px; letter-spacing: .08em; }
  .lang button { min-width: 40px; padding: 0 6px; font-size: 12.5px; height: 40px; }
  .burger { width: 42px; height: 42px; }
  .hero__img { object-position: 24% 62%; }
  .hero__page { padding: 22px 20px 20px; }
  .hero__page::before { inset: 8px; } .hero__page::after { inset: 12px; }
  .badge { font-size: 12.5px; padding: 4px 12px; }
  .hero__title { margin-top: 12px; }
  .hero__orn { margin: 10px 0 8px; }
  .hero__sub { font-size: 15px; line-height: 1.6; }
  .hero__imprint { display: none; }  /* 주소는 오시는 길·꼬리에 있다 */
  .hero__title .kn { font-size: 13px; }
  .hero__band-in { padding-top: 14px; padding-bottom: 18px; gap: 12px; }
  .hero__facts { order: 1; font-size: 14.5px; }
  .acts--hero { width: 100%; gap: 8px 10px; }
  .acts--hero .btn { flex: 1 1 0; justify-content: center; padding: 0 12px; white-space: nowrap; }
  .acts--hero .btn--ribbon { padding-right: 24px; }
  .acts--hero .btn__sub { display: none; }  /* 번호는 차례·오시는 길·꼬리 단추에 */
  .acts--hero .acts__way { flex: 1 1 100%; min-height: 40px; }
  .ch-shelf__fig img { aspect-ratio: 4 / 3; }
  .ladder { --km: 64px; --gap: 28px; padding: 22px 16px 18px; }
  .stop__km { font-size: 15px; }
  .stop--home .stop__km { font-size: 13px; }
  .stop__n { font-size: 17px; }
  .spines { height: 228px; gap: 4px; padding: 0 2px; overflow: hidden; }
  .sp, .sp:nth-child(3n), .sp:nth-child(4n) { width: auto; flex: 1 1 0; min-width: 0; }
  .sp a { padding-top: 10px; }
  .sp a::before { top: 32px; left: 5px; right: 6px; } .sp a::after { bottom: 22px; left: 5px; right: 6px; }
  .sp i { font-size: 14px; margin-bottom: 18px; }
  .sp__t { font-size: 13.5px; }
  html[data-lang="en"] .sp__t { font-size: 13px; letter-spacing: .02em; }
  .ch { padding: 64px 0; }
  .ch-hd { column-gap: 14px; margin-bottom: 26px; }
  .ch-hd__no { font-size: 64px; }
  .ch-hd__t .kn { font-size: 13px; }
  .lead { font-size: 17.5px; }
  .before__list { grid-template-columns: 1fr; }
  .card-lib { padding: 22px 18px 74px 46px; }
  .card-lib::before { left: 32px; } .card-lib::after { left: 11px; }
  .card-lib li::before { left: -34px; }
  .stamp { width: 82px; height: 82px; right: 14px; bottom: -16px; font-size: 12.5px; }
  .ch-shelf__fig img { box-shadow: 10px 10px 0 var(--paper-2); }
  .plan { padding: 28px 18px 24px; }
  .plan__fl { right: 14px; }
  .both { grid-template-columns: 84px 1fr; gap: 18px; padding: 22px 20px; }
  .house__fl { padding: 6px 8px; }
  .house__fl em { font-size: 22px; }
  .both__t b { font-size: 28px; }
  .plan__dl > div { grid-template-columns: 1fr; gap: 0; }
  .tok { width: 40px; height: 40px; }
  .idx__row { grid-template-columns: 1fr; gap: 4px; }
  .gal { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .gal figcaption { font-size: 13px; margin-top: 6px; }
  .plan__figs { gap: 10px; }
  .rv { grid-template-columns: 1fr auto minmax(44px, auto); gap: 10px; padding: 11px 0; }
  .rv__cells { gap: 3px; }
  .rv__cells i { width: 8px; height: 8px; }
  .rv__t { font-size: 15px; line-height: 1.45; }
  .rv__n { font-size: 15px; }
  .ttable th, .ttable td { padding: 11px 8px; }
  .ttable thead th { white-space: nowrap; font-size: 13px; }
  .ttable td { font-size: 16px; }
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: 100%; }
  .ptable tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .ptable tbody tr:first-child { border-top: 2px solid var(--ink); }
  .ptable th, .ptable td { padding: 0; border: 0; }
  .ptable caption { display: flex; align-items: center; width: 100%; }
  .ptable td.num { color: var(--oak); font-weight: 600; margin: 2px 0 4px; }
  .ft { padding: 72px 0 44px; }
  .ft .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .brand small { display: none; }
  .hd__row { padding: 0 10px; }
  .hd__tools { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__inner > :nth-child(2) { animation-delay: .08s; } .hero__inner > :nth-child(3) { animation-delay: .16s; }
  .hero__inner > :nth-child(4) { animation-delay: .22s; } .hero__inner > :nth-child(n+5) { animation-delay: .3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
