/* 원조꼬리곰집 공통 스타일 — DESIGN-SPEC.md 토큰 기준 */
:root {
  --hanji: #F5F0E6;
  --hanji-deep: #E6DED0;
  --ink: #1F1B18;
  --ink-deep: #171310;
  --ink-soft: #5E554C;
  --ink-body: #3B342E;
  --line: #DDD3C3;
  --dot: #A89B88;
  --accent: #B83A0E;
  --accent-on-dark: #E9A07F;
  --serif: 'Noto Serif KR', 'Noto Serif CJK KR', serif;
  --sans: system-ui, sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(72px, 9vw, 128px);
  --header-h: 56px;
  --bar-h: 0px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --header-h: 72px; } }
@media (max-width: 767px) { :root { --bar-h: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--hanji); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
body.lock { overflow: hidden; }
img { max-width: 100%; }
picture.wp { display: contents; }
picture.wp source { display: none; }
a { color: inherit; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja), :lang(zh-Hans), :lang(zh-Hant) { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
h1, h2, h3, .balance { text-wrap: balance; }
p, dd, li, figcaption { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.serif { font-family: var(--serif); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--hanji); color: var(--ink); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; }
.section { padding: var(--pad-y) var(--pad-x); }
.section + .section.ruled { border-top: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--hanji); }

/* 섹션 머리 */
.head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.label { font-size: 12px; letter-spacing: 0.42em; color: var(--accent); }
.dark .label { color: var(--accent-on-dark); }
.head h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.3; letter-spacing: 0.08em; }
.head .rule { width: 36px; height: 1px; background: currentColor; margin: 6px 0; }
.head .note { margin: 0; max-width: 34em; font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.dark .head .note { color: rgba(245, 240, 230, 0.8); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; text-decoration: none; font-size: 15px; letter-spacing: 0.06em; border: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; font-family: inherit; }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--hanji); }
.btn.light { color: var(--hanji); border-color: rgba(245, 240, 230, 0.7); }
.btn.ink { color: var(--ink); border-color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btns.center { justify-content: center; }
.link-line { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding: 8px 0; }

/* 머리글 */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--hanji); transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.solid { background: rgba(23, 19, 16, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad-x); max-width: 1440px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.brand img { display: block; width: 120px; height: auto; }
@media (min-width: 768px) { .brand img { width: 150px; } }
.nav-desk { display: none; }
.nav-desk a { white-space: nowrap; color: var(--hanji); text-decoration: none; padding: 10px 0; font-size: 14px; letter-spacing: 0.06em; border-bottom: 1px solid transparent; }
.nav-desk a[aria-current="page"] { border-bottom-color: var(--hanji); }
.nav-desk .langs { display: inline-flex; gap: 12px; padding-left: 18px; border-left: 1px solid rgba(245, 240, 230, 0.4); }
.nav-desk .langs a { color: rgba(245, 240, 230, 0.8); }
.nav-desk .langs a[aria-current="true"] { color: var(--hanji); border-bottom-color: var(--hanji); }
.nav-desk .contact { display: inline-flex; align-items: center; gap: 14px; padding-left: 18px; border-left: 1px solid rgba(245, 240, 230, 0.4); }
.nav-desk .contact .tel { font-variant-numeric: tabular-nums; }
.nav-desk .contact .btn { min-height: 40px; padding: 0 16px; font-size: 13px; border-color: var(--accent-on-dark); color: var(--hanji); }
@media (min-width: 1360px) { .nav-desk { display: flex; align-items: center; gap: 20px; } .mob-ctrl { display: none; } }
@media (min-width: 768px) and (max-width: 1359px) { .nav-desk { display: flex; align-items: center; gap: 16px; } .nav-desk .pages { display: none; } .nav-desk .contact { display: none; } }
.nav-desk .pages { display: inline-flex; gap: 18px; }
.mob-ctrl { display: flex; align-items: center; gap: 4px; }
.mob-ctrl button { appearance: none; background: transparent; border: 0; color: var(--hanji); font: inherit; font-size: 14px; letter-spacing: 0.06em; min-width: 44px; min-height: 44px; padding: 0 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.burger { width: 20px; height: 14px; position: relative; display: inline-block; }
.burger::before, .burger::after, .burger span { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; }
.burger::before { top: 0; } .burger span { top: 6px; } .burger::after { bottom: 0; }
.lang-pop { position: absolute; right: var(--pad-x); top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); background: var(--ink-deep); border: 1px solid rgba(245, 240, 230, 0.2); padding: 6px 0; min-width: 150px; display: none; }
.lang-pop.open { display: block; }
.lang-pop a { display: block; padding: 10px 18px; color: var(--hanji); text-decoration: none; font-size: 15px; }
.lang-pop a[aria-current="true"] { color: var(--accent-on-dark); }
@media (min-width: 768px) { .mob-ctrl .lang-btn { display: none; } }

/* 전체 화면 메뉴 패널 */
.panel { position: fixed; inset: 0; z-index: 60; background: var(--ink-deep); color: var(--hanji); display: none; flex-direction: column; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); overflow-y: auto; }
.panel.open { display: flex; }
.panel .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad-x); }
.panel .close { appearance: none; background: transparent; border: 0; color: var(--hanji); min-width: 44px; min-height: 44px; font-size: 28px; line-height: 1; cursor: pointer; }
.panel nav { padding: 24px var(--pad-x) 32px; display: flex; flex-direction: column; }
.panel nav a { color: var(--hanji); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: 0.08em; padding: 14px 0; border-bottom: 1px solid rgba(245, 240, 230, 0.14); }
.panel nav a[aria-current="page"] { color: var(--accent-on-dark); }
.panel .langs { padding: 0 var(--pad-x) 24px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.panel .langs a { color: rgba(245, 240, 230, 0.8); text-decoration: none; padding: 10px 0; font-size: 15px; }
.panel .langs a[aria-current="true"] { color: var(--hanji); border-bottom: 1px solid var(--hanji); }
.panel .contact { margin-top: auto; padding: 24px var(--pad-x) 32px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid rgba(245, 240, 230, 0.14); }
.panel .contact .tel { font-family: var(--serif); font-size: 26px; color: var(--hanji); text-decoration: none; font-variant-numeric: tabular-nums; }

/* 첫 화면 */
.hero { position: relative; min-height: 780px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--hanji); }
.hero .bg, .hero .bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .bg img { object-fit: cover; object-position: 50% 55%; }
.hero .shade { position: absolute; inset: 0; background: rgba(20, 15, 12, 0.56); }
.hero .in { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(40px, 6vw, 80px)) var(--pad-x) clamp(48px, 7vw, 96px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px clamp(20px, 4vw, 56px); }
.hero .title { display: flex; align-items: flex-start; gap: 22px; }
.hero h1 { margin: 0; line-height: 0; }
.hero h1 img { display: block; max-width: none; width: clamp(66px, 6.93vw, 100.5px); height: auto; }
.hero .seal { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 6px; }
.hero .seal img { display: block; width: 72px; height: 72px; }
.hero .since { writing-mode: vertical-rl; font-size: 13px; letter-spacing: 0.32em; color: rgba(245, 240, 230, 0.88); }
.hero .creds { flex: 1 1 150px; align-self: flex-start; display: flex; justify-content: flex-end; padding-top: 6px; }
.creds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 28px; }
.creds-list li { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 2px 14px; border-left: 1px solid rgba(245, 240, 230, 0.38); min-width: 120px; }
.creds-list .org { font-size: 11px; letter-spacing: 0.14em; color: rgba(245, 240, 230, 0.72); }
.creds-list .name { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.45; letter-spacing: 0.06em; }
.creds-list .sub { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.06em; color: rgba(245, 240, 230, 0.85); }
.hero .copy { flex: 0 1 470px; display: flex; flex-direction: column; gap: 18px; }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.28em; color: rgba(245, 240, 230, 0.85); }
.hero .lead { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.6; }
.hero .sub { margin: 0; font-size: 16px; line-height: 1.85; color: rgba(245, 240, 230, 0.88); }
.hero .info { margin: 0; font-size: 14px; letter-spacing: 0.04em; color: rgba(245, 240, 230, 0.82); }
.hero .btns { margin-top: 8px; }

/* 하위 페이지 머리 띠 */
.page-band { background: var(--ink); color: var(--hanji); padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 56px) var(--pad-x) 56px; text-align: center; }
.page-band .label { color: var(--accent-on-dark); display: block; margin-bottom: 12px; }
.page-band h1 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.3; letter-spacing: 0.1em; }
.crumbs { margin: 14px 0 0; font-size: 13px; color: rgba(245, 240, 230, 0.7); }
.crumbs a { color: rgba(245, 240, 230, 0.85); text-decoration: none; border-bottom: 1px solid rgba(245, 240, 230, 0.4); }

/* 음식 안내 */
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 5vw, 72px); margin-top: 56px; }
.feature .ph { flex: 1 1 520px; min-width: 0; }
.feature .txt { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.tag { align-self: flex-start; font-size: 12px; letter-spacing: 0.16em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 10px; }
.feature h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: 0.06em; }
.feature .meta { margin: 0; font-size: 14px; letter-spacing: 0.06em; color: var(--ink-soft); }
.feature .p1 { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-body); }
.feature .p2 { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-soft); }
.ph img, .card img, .figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 32px; margin-top: 72px; }
.card { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 6px; border-top: 1px solid var(--ink); }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.4; letter-spacing: 0.04em; }
.card .price { font-size: 14px; color: var(--ink-body); }
.card p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-body); }
.card .size { font-size: 13px; letter-spacing: 0.04em; color: var(--ink-soft); }
.more { margin-top: 56px; }

/* 메뉴판 */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px clamp(48px, 7vw, 104px); margin-top: 64px; }
.menu-col .mh { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.menu-col h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: 0.2em; }
.menu-col .cols { font-size: 13px; letter-spacing: 0.12em; color: var(--ink-soft); }
.mi { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mi .nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mi .n { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.5; }
.mi .b { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; color: var(--accent); border: 1px solid var(--accent); padding: 1px 7px; line-height: 1.6; }
.mi .t { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.mi .dots { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted var(--dot); transform: translateY(-6px); }
.mi .p { font-size: 16px; letter-spacing: 0.02em; }
.menu-col .fine { margin: 20px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.boards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 64px; font-size: 14px; letter-spacing: 0.06em; }

/* 국물 */
.broth { margin: 40px auto 0; max-width: 34em; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.broth .lead { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.9; }
.broth p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-body); }

/* 역사 */
.intro { margin: 0 auto; max-width: 30em; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.9; text-align: center; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 56px; }
.figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.figure img { aspect-ratio: 10 / 9; }
.figure img.muted { filter: saturate(0.85); }
.figure figcaption { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }
.before { margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 16px 48px; }
.before h2 { flex: 0 0 auto; margin: 0; font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.16em; }
.before div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.9; color: var(--ink-body); }
.before p { margin: 0; }
.timeline { list-style: none; margin: 56px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: clamp(100px, 24vw, 200px) minmax(0, 1fr); gap: 8px clamp(20px, 4vw, 56px); padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .y { font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 3vw, 38px); line-height: 1.2; color: var(--accent); }
.timeline p { margin: 0; font-size: 16px; line-height: 1.9; }
.creds-block { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--ink); }
.creds-block h2 { margin: 0 0 28px; font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: 0.16em; }
.creds-block ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 32px; }
.creds-block li { display: flex; flex-direction: column; gap: 4px; padding: 4px 0 4px 18px; border-left: 1px solid var(--ink); }
.creds-block .imgs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 68px; margin-bottom: 12px; }
.creds-block .imgs img { display: block; height: 68px; width: auto; }
.creds-block .imgs img.sq { height: 52px; width: 52px; }
.creds-block .imgs img.framed { height: auto; width: 64px; border: 1px solid var(--line); }
.creds-block .org { font-size: 12px; letter-spacing: 0.14em; color: var(--ink-soft); }
.creds-block .name { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.45; letter-spacing: 0.06em; }
.creds-block .sub { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-body); }
.teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 5vw, 72px); }
.teaser .figure { flex: 1 1 420px; }
.teaser .txt { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; }
.teaser h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.35; letter-spacing: 0.06em; }
.teaser p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-body); }

/* 방문 안내 */
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px clamp(48px, 7vw, 104px); margin-top: 56px; }
.info-list { margin: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 24px; font-size: 16px; line-height: 1.8; }
.info-list dt, .info-list dd { padding: 14px 0; border-bottom: 1px solid rgba(245, 240, 230, 0.16); }
.info-list dt { color: rgba(245, 240, 230, 0.72); font-size: 14px; letter-spacing: 0.1em; }
.info-list dd { margin: 0; }
.info-list dt:nth-last-of-type(1), .info-list dd:last-of-type { border-bottom: 0; }
.visit-side { display: flex; flex-direction: column; gap: 28px; }
.visit-side h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.12em; }
.visit-side p { margin: 0; font-size: 16px; line-height: 1.9; color: rgba(245, 240, 230, 0.88); }
.visit-side .btn { min-height: 48px; padding: 0 20px; color: var(--hanji); border-color: rgba(245, 240, 230, 0.6); }
.visit-side .btn.solid { border-color: var(--accent); }
.call { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1px solid rgba(245, 240, 230, 0.16); }
.call .k { font-size: 14px; letter-spacing: 0.1em; color: rgba(245, 240, 230, 0.72); }
.call .tel { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); color: var(--hanji); text-decoration: none; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* 밀키트 */
.kit { display: flex; flex-wrap: wrap; align-items: center; gap: 40px clamp(40px, 6vw, 88px); }
.kit img { flex: 1 1 480px; min-width: 0; width: 100%; height: auto; display: block; }
.kit .txt { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.kit h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: 0.06em; }
.kit p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-body); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.55; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-family: var(--sans); font-weight: 300; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 0 22px; font-size: 16px; line-height: 1.9; color: var(--ink-body); }

/* 하단 */
.site-footer { padding: 56px var(--pad-x) 64px; background: var(--ink-deep); color: rgba(245, 240, 230, 0.78); font-size: 14px; line-height: 1.9; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 22px; }
.site-footer .logo img { display: block; width: 230px; height: auto; }
.site-footer p { margin: 0; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-footer .links a { color: rgba(245, 240, 230, 0.9); text-decoration: underline; text-underline-offset: 4px; }
.site-footer .copy { padding-top: 18px; border-top: 1px solid rgba(245, 240, 230, 0.14); font-size: 13px; color: rgba(245, 240, 230, 0.6); }

/* 휴대폰 하단 고정 버튼 줄 */
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--hanji); border-top: 1px solid var(--ink); padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
  .mbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; color: var(--ink); font-size: 15px; letter-spacing: 0.04em; }
  .mbar a.solid { background: var(--accent); color: var(--hanji); }
}

/* 404 */
.nf { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: calc(var(--header-h) + 80px) var(--pad-x) 80px; }
.nf h1 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); }
.nf p { margin: 0; max-width: 30em; color: var(--ink-body); }

/* 넓은 화면에서는 메뉴 버튼 숨김 (위 .mob-ctrl 기본값보다 뒤에 두어야 적용됨) */
@media (min-width: 1360px) { .site-header .mob-ctrl { display: none; } }

/* 주변 명소 */
.places { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); margin-top: 64px; }
.place { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(32px, 5vw, 72px); }
.place.rev { flex-direction: row-reverse; }
.place .ph { flex: 1 1 460px; min-width: 0; }
.place .txt { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.place h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.35; letter-spacing: 0.04em; }
.place p { margin: 0; font-size: 16px; line-height: 1.9; color: var(--ink-body); }
.facts { margin: 4px 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 18px; font-size: 14px; line-height: 1.7; border-top: 1px solid var(--ink); }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); letter-spacing: 0.08em; }
.facts dd { margin: 0; }
.with { margin-top: 6px; padding: 18px 20px; background: var(--hanji-deep); border-left: 2px solid var(--accent); }
.with .k { display: block; font-size: 12px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 6px; }
.with p { color: var(--ink); }
.place .foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: 4px; font-size: 14px; }
.place .src { font-size: 12px; color: var(--ink-soft); }
.ph-empty { aspect-ratio: 4 / 3; background: var(--hanji-deep); border: 1px solid #D3C8B6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px; text-align: center; color: var(--ink-soft); }
.ph-empty span { font-family: var(--serif); font-size: 17px; }
.ph-empty small { font-size: 12px; max-width: 24em; }
.around-note { margin: 72px auto 0; max-width: 34em; text-align: center; font-size: 13px; color: var(--ink-soft); }

.around-fig img { aspect-ratio: 4 / 3; }
.around-fig figcaption { font-size: 12px; }
