:root {
  --c-bg: #fbf8f3;          /* 바탕 */
  --c-surface: #ffffff;     /* 카드 바탕 */
  --c-text: #2b2622;        /* 본문 글자 */
  --c-muted: #62594f;       /* 보조 글자 */
  --c-line: #e3d9cc;        /* 구분선 */
  --c-accent: #8a4b2a;      /* 대표색(버튼·제목 강조) */
  --c-accent-ink: #ffffff;  /* 대표색 위 글자 */
  --c-accent-soft: #f3e8dc; /* 대표색 옅은 바탕 */
  --c-demo-bg: #2b2622;     /* 데모 띠 */
  --c-demo-ink: #ffe9a8;
  --font-base: -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --radius: 12px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 72px; /* 휴대폰 하단 고정 버튼 높이 */
}
a { color: var(--c-accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--c-surface); padding: 8px 12px; }

.demo-bar {
  background: var(--c-demo-bg);
  color: var(--c-demo-ink);
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
  padding: 8px 12px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 머리 */
.site-head { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--c-text); text-decoration: none; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--c-muted); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--c-accent); }

/* 첫 화면 */
.hero { padding: 32px 0 24px; }
.hero .wrap { display: grid; gap: 24px; }
.hero h1 { font-size: 2rem; }
.hero .lead { font-size: 1.05rem; color: var(--c-muted); }
.hero-art { width: 120px; height: 120px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 20px;
  border-radius: var(--radius); border: 2px solid var(--c-accent);
  font-weight: 700; text-decoration: none;
}
.btn-main { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-sub { background: transparent; color: var(--c-accent); }

/* 사진·지도 자리 */
.slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 200px; padding: 16px;
  border: 2px dashed var(--c-line); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--c-accent-soft) 0 12px, var(--c-bg) 12px 24px);
  color: var(--c-muted); font-size: .9rem; font-weight: 700;
}
.slot span { background: var(--c-surface); padding: 6px 10px; border-radius: 8px; }
.slot-map { min-height: 240px; }

/* 구역 */
.section { padding: 36px 0; border-top: 1px solid var(--c-line); }
.note { font-size: .9rem; color: var(--c-muted); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--c-accent-soft); color: var(--c-accent);
  vertical-align: middle;
}
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }

/* 메뉴 */
.menu-grid { display: grid; gap: 16px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list .name { font-weight: 700; }
.menu-list .desc { display: block; font-weight: 400; font-size: .9rem; color: var(--c-muted); }
.menu-list .price { white-space: nowrap; font-weight: 700; }
.photo-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.photo-row .slot { min-height: 140px; }

/* 영업시간 */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.hours th { width: 7em; font-weight: 700; }

/* 위치·연락 */
.info-grid { display: grid; gap: 16px; }
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.channel-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: 52px; padding: 10px 16px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  color: var(--c-text); text-decoration: none; font-weight: 700;
}
.channel-list a:hover { border-color: var(--c-accent); }
.todo { font-size: .75rem; font-weight: 700; color: #8a2a2a; background: #fdecec; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* 바닥 */
.site-foot { padding: 28px 0 36px; border-top: 1px solid var(--c-line); font-size: .85rem; color: var(--c-muted); }
.site-foot p { margin: 0 0 .4em; }

/* 휴대폰 하단 고정 버튼 */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: var(--c-surface); border-top: 1px solid var(--c-line);
}
.quickbar .btn { min-height: 48px; padding: 8px; }

/* 404 */
.notfound { padding: 64px 0; text-align: center; }

/* 태블릿 이상 */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .quickbar { display: none; }
  .hero { padding: 56px 0 40px; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .hero h1 { font-size: 2.6rem; }
  .menu-grid, .info-grid { grid-template-columns: 1fr 1fr; }
  .slot-map { min-height: 320px; }
}

/* PC */
@media (min-width: 1024px) {
  .section { padding: 56px 0; }
  .photo-row .slot { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
