:root {
  --ink: #16181d; --body: #3d424c; --mut: #6b7180; --line: #e4e6ea; --soft: #f4f5f7; --bg: #ffffff;
  --area: #16181d;
  --display: "Bricolage Grotesque", "Pretendard", system-ui, sans-serif;
  --text: "Instrument Sans", "Pretendard", system-ui, -apple-system, sans-serif;
  --ko: "Pretendard", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 16px/1.6 var(--text); }
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
[lang="ko"], .ko { font-family: var(--ko); }
.i { width: 18px; height: 18px; flex: none; }

/* 언어 — 일본어·중국어는 한자·가나 글꼴을 명시(Windows에서 중국어가 일본 글꼴로 뜨는 것 방지) */
html:lang(ja) { --text: "Instrument Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; --display: "Bricolage Grotesque", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif; }
html:lang(zh-Hans) { --text: "Instrument Sans", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; --display: "Bricolage Grotesque", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(ja) body, html:lang(zh-Hans) body { line-height: 1.75; }
html:lang(ja) h1, html:lang(zh-Hans) h1, html:lang(ja) h2, html:lang(zh-Hans) h2 { letter-spacing: 0; }
html:lang(ja) .hero h1, html:lang(zh-Hans) .hero h1 { max-width: 13em; line-height: 1.2; }
html:lang(ja) .shop-head h1, html:lang(zh-Hans) .shop-head h1, html:lang(ja) .guide h1, html:lang(zh-Hans) .guide h1 { line-height: 1.25; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) .gcard b { word-break: auto-phrase; }
html:lang(ja) .eyebrow, html:lang(zh-Hans) .eyebrow { letter-spacing: .02em; }
.langbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.langbar-in { display: flex; justify-content: flex-end; gap: 16px; height: 32px; align-items: center; }
.langbar a { color: var(--mut); text-decoration: none; }
.langbar a:hover { color: var(--ink); text-decoration: underline; }
.langbar [aria-current] { color: var(--ink); font-weight: 600; }

/* 머리 */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.mark { white-space: nowrap; font: 700 18px/1 var(--display); letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.mark-dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(#00a84d 0 25%, #00a5de 0 50%, #ef7c1c 0 75%, #0b8f87 0); }
.top nav { display: flex; gap: 22px; font-weight: 500; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--body); white-space: nowrap; }
.top nav a:hover { color: var(--ink); }

/* 첫 화면 */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
h1, h2 { font-family: var(--display); color: var(--ink); letter-spacing: -.02em; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 0 0 20px; max-width: 14ch; }
.lede { font-size: 18px; max-width: 60ch; margin: 0 0 8px; }
.how { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: n; }
.how li { padding: 18px 20px 0 0; counter-increment: n; display: grid; gap: 4px; }
.how li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.how b { color: var(--ink); font-weight: 600; }
.how b::before { content: counter(n) "  "; font-family: var(--display); color: var(--mut); }
.how span { font-size: 14px; color: var(--mut); }

/* 목록 */
.list { padding-top: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; position: sticky; top: 58px; background: #fff; padding: 12px 0; z-index: 4; }
.f { font: 500 14px/1 var(--text); border: 1px solid var(--line); background: #fff; color: var(--body); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.f span { color: var(--mut); margin-left: 4px; font-variant-numeric: tabular-nums; }
.f.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.f.on span { color: #c5c8cf; }
.area { margin-top: 36px; }
.area-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; padding-bottom: 12px; border-bottom: 3px solid var(--area); }
.area-head h2 { margin: 0; font-size: 28px; }
.area-head h2 .ko { font-size: 16px; color: var(--mut); font-weight: 500; margin-left: 6px; }
.area-head p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--mut); font-size: 15px; }
.line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); justify-self: start; }
.line b { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 700 12px/1 var(--text); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 250px 270px 1fr; gap: 8px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.row[hidden] { display: none; }
.row-name a { font: 600 19px/1.25 var(--display); text-decoration: none; letter-spacing: -.01em; }
.row-name a:hover { text-decoration: underline; }
.row-name .ko { display: block; font-size: 13px; color: var(--mut); margin-top: 2px; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; }
.cat { color: var(--body); }
.langs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 4px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.chip-muted { color: var(--mut); background: transparent; border: 1px dashed var(--line); }
.contacts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink); background: #fff; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn .i { width: 15px; height: 15px; }
.btn-ask { background: var(--ink); color: #fff; border-color: var(--ink); }
.contacts.big { justify-content: flex-start; }
.contacts.big .btn { padding: 11px 15px; font-size: 15px; }
.note { color: var(--mut); font-size: 14px; margin: 24px 0 0; }

/* 안내 글 띠 */
.guides-strip { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.guides-strip h2 { font-size: 28px; margin: 0 0 16px; }
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gcards.col { grid-template-columns: 1fr; margin-top: 20px; }
.gcard { position: relative; display: grid; gap: 6px; padding: 18px 44px 18px 18px; background: var(--soft); border-radius: 10px; text-decoration: none; color: var(--body); }
.gcard b { font: 600 17px/1.3 var(--display); color: var(--ink); }
.gcard span { font-size: 14px; }
.gcard .i { position: absolute; right: 16px; top: 18px; color: var(--ink); }
.gcard:hover b { text-decoration: underline; }

/* 가게 페이지 */
.shop, .guide { padding-top: 28px; padding-bottom: 24px; max-width: 820px; }
.back { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; text-decoration: none; color: var(--mut); }
.back:hover { color: var(--ink); }
.shop-head { margin: 24px 0 8px; padding-top: 20px; border-top: 4px solid var(--area); }
.shop-head h1, .guide h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.05; margin: 0; }
.ko.big { font-size: 18px; color: var(--mut); margin: 6px 0 16px; }
.small { font-size: 13px; color: var(--mut); margin: 8px 0 0; }
.block { margin-top: 36px; }
.block h2 { font-size: 20px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card p { margin: 0 0 6px; }
.ko-addr { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.4; margin: 10px 0 12px !important; }
.msg { display: grid; gap: 10px; font-size: 15px; background: var(--soft); border-radius: 8px; padding: 14px; margin: 0 0 12px !important; }
.copy { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--text); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.copy.done { background: #fff; color: var(--ink); }
.prose { max-width: 66ch; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p { margin: 0 0 12px; }
.mini { padding-left: 18px; }
.mini li { margin: 6px 0; }

/* 숫자 띠 */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); margin: 32px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stats div { padding: 14px 16px; display: flex; flex-direction: column-reverse; gap: 2px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--mut); }
.stats dd { margin: 0; font: 700 30px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats-note { margin-top: 10px; }
.small-stats { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.small-stats div { padding: 12px 14px; }
.small-stats dd { font-size: 26px; }
.area-head h2 a { text-decoration: none; }
.area-head h2 a:hover { text-decoration: underline; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.more .i { width: 14px; height: 14px; }

/* 지역 페이지 */
.area-hero { padding: 28px 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--area) 7%, #fff), #fff 70%); }
.area-hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.02; margin: 18px 0 12px; }
.area-hero h1 .ko { font-size: .4em; color: var(--mut); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.area-hero .line { margin-bottom: 14px; }
.area-hero .lede { margin-top: 12px; }
.acards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 20px; }
.acard { display: grid; gap: 6px; padding: 18px; border-radius: 12px; border: 1px solid var(--line); border-top: 4px solid var(--area); text-decoration: none; color: var(--body); }
.acard b { font: 600 22px/1.2 var(--display); color: var(--ink); }
.acard b .ko { font-size: 14px; color: var(--mut); font-weight: 500; margin-left: 4px; }
.acard span { font-size: 14px; }
.acard em { font-style: normal; font-size: 13px; color: var(--mut); }
.acard:hover b { text-decoration: underline; }

.eb { color: inherit; text-decoration: none; }
.eb:hover { text-decoration: underline; color: var(--ink); }
.sub-h { font-size: 22px; margin: 36px 0 12px; }
.svc { display: flex; flex-wrap: wrap; gap: 8px; }
.svc a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; }
.svc a span { color: var(--mut); margin-left: 4px; }
.svc a:hover { border-color: var(--ink); }

/* 가게 한눈에 · 근처 */
.glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.glance div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.glance dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); margin-bottom: 4px; }
.glance dt .i { width: 15px; height: 15px; }
.glance dd { margin: 0; color: var(--ink); font-size: 15px; }
.nearby { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nearby a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--soft); text-decoration: none; height: 100%; }
.nearby b { font: 600 15px/1.3 var(--display); color: var(--ink); }
.nearby span { font-size: 13px; color: var(--mut); }
.nearby a:hover b { text-decoration: underline; }

/* 사장님 페이지 */
.owners .stats { margin: 20px 0 8px; }
.owners h3 { font: 600 18px/1.3 var(--display); color: var(--ink); margin: 24px 0 8px; }
.owner-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.owner-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.owner-list li > span { font-size: 13px; color: var(--mut); }
.owner-list .lk { display: flex; gap: 10px; }
.owner-list .lk a { font-size: 13px; color: var(--mut); }
.biz p { font-size: 14px; color: var(--mut); }
@media (max-width: 760px) { .owner-list li { grid-template-columns: 1fr auto; } .owner-list .lk { grid-column: 1 / -1; } }

/* 안내 글 표·문장 카드·출처 */
.ptable { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.ptable th, .ptable td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { font-size: 13px; color: var(--mut); font-weight: 600; }
.ptable td:first-child { color: var(--ink); font-weight: 500; }
.ptable td:last-child { color: var(--mut); font-size: 13px; white-space: nowrap; }
.phrases { padding: 0; list-style: none; counter-reset: ph; display: grid; gap: 8px; }
.phrases li { counter-increment: ph; display: grid; gap: 2px; padding: 12px 14px 12px 44px; background: var(--soft); border-radius: 10px; position: relative; }
.phrases li::before { content: counter(ph); position: absolute; left: 14px; top: 12px; font: 700 15px/1.4 var(--display); color: var(--mut); }
.phrases span { font-size: 14px; color: var(--mut); }
.phrases b { font: 600 20px/1.4 var(--ko); color: var(--ink); }
.src { font-size: 13px; color: var(--mut); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px !important; }
@media (max-width: 760px) { .ptable td:last-child { white-space: normal; } }

/* 바닥 */
.foot { margin-top: 72px; border-top: 1px solid var(--line); background: var(--soft); }
.foot-in { padding: 28px 20px 40px; font-size: 14px; color: var(--mut); }
.foot strong { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 28px; }
  .how { grid-template-columns: 1fr; }
  .how li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 14px; }
  .row { grid-template-columns: 1fr; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 8px; padding: 12px 20px; }
  .f { flex: none; }
  .contacts { justify-content: flex-start; }
  .gcards, .two, .acards, .glance { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(4) { border-left: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .nearby { grid-template-columns: 1fr 1fr; }
  .top nav { gap: 14px; font-size: 14px; }
  .mark { font-size: 16px; }
}
@media (max-width: 440px) {
  .top-in { gap: 10px; }
  .top nav { gap: 11px; font-size: 13px; }
  .mark { font-size: 14px; gap: 6px; }
  .mark-dot { width: 12px; height: 12px; }
  .ptable th:last-child, .ptable td:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
