/* 맥적 3안 — 오늘 가기 좋은 맥적 (실용형) */
:root {
  --ink: #222;
  --fire: #D60909;
  --soil: #745C4F;
  --paper: #F4E4B1;
  --white: #fff;
  --ink-2: rgba(34, 34, 34, .74);
  --line: rgba(34, 34, 34, .14);
  --paper-soft: rgba(244, 228, 177, .34);
  --hd-h: 76px;
  --wrap: 1200px;
  --pad: 40px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--fire); outline-offset: 3px; }

.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 8px; border: 1.5px solid transparent;
  font-size: 16px; font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-fire { background: var(--fire); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-fire:hover, .btn-ink:hover { opacity: .9; }
  .btn-line:hover { transform: translateY(-1px); }
}

.tag-ready {
  display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 7px 2px;
  border-radius: 4px; background: var(--paper); color: var(--soil);
  font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: 0;
}
.tag-lg { font-size: 15px; padding: 3px 10px 4px; margin-left: 10px; }

/* ───────── 머리글 ───────── */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hd-h);
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
  transition: transform .32s var(--ease);
}
.hd.is-hidden { transform: translateY(-100%); }
.hd-in { height: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.hd-logo { flex: none; display: block; }
.hd-logo img { height: 52px; width: auto; }
.gnb { flex: 1; height: 100%; }
.gnb-list { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; justify-content: center; gap: 4px; }
.gnb-item { position: relative; height: 100%; }
.gnb-top {
  display: flex; align-items: center; height: 100%; padding: 0 16px;
  font-size: 17px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.gnb-top .tag-ready { font-size: 11px; }
.gnb-sub {
  list-style: none; margin: 0; padding: 18px 16px 26px; position: absolute; left: 0; top: 100%; min-width: 172px; z-index: 2;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.gnb-sub a { display: block; padding: 8px 0; font-size: 15.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.mega-bg {
  position: absolute; left: 0; right: 0; top: 100%; height: 206px; background: #fff; border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), visibility 0s linear .2s;
}
.gnb:hover .gnb-sub, .gnb:focus-within .gnb-sub, .gnb:hover .mega-bg, .gnb:focus-within .mega-bg {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
@media (hover: hover) and (pointer: fine) {
  .gnb-top:hover, .gnb-sub a:hover { color: var(--fire); }
}
.hd-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hd-call { min-height: 46px; padding: 0 16px; font-size: 15.5px; }
.hd-call .ic { width: 20px; height: 20px; }
.hd-fr { min-height: 46px; padding: 0 16px; font-size: 15.5px; }
.hd-burger { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 0; align-items: center; justify-content: center; margin-right: -10px; }
.hd-burger .ic { width: 26px; height: 26px; }

/* 폰 전체 메뉴 */
.mnav {
  position: fixed; inset: 0; z-index: 80; background: #fff; display: flex; flex-direction: column;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
}
.mnav[hidden] { display: none; }
.mnav-top { height: 64px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.mnav-top img { height: 42px; width: auto; }
.mnav-close { width: 48px; height: 48px; border: 0; background: none; margin-right: -10px; display: flex; align-items: center; justify-content: center; }
.mnav-close .ic { width: 26px; height: 26px; }
.mnav-body { flex: 1; padding-top: 8px; }
.mnav-group { border-top: 1px solid var(--line); padding: 14px 0 12px; display: grid; grid-template-columns: 124px 1fr; gap: 8px 12px; }
.mnav-group > a { font-size: 18px; font-weight: 700; text-decoration: none; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 2px 4px; }
.mnav-group > a .tag-ready { margin-left: 0; }
.mnav-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; }
.mnav-group ul a { display: flex; align-items: center; min-height: 44px; font-size: 16px; color: var(--ink-2); text-decoration: none; }
.mnav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; flex: none; }

/* ───────── 첫 화면 ───────── */
.hero {
  --hero-gutter: max(var(--pad), calc((100vw - var(--wrap)) / 2));
  display: grid; grid-template-columns: calc(var(--hero-gutter) + clamp(440px, 40vw, 600px)) 1fr; min-height: max(640px, 100svh);
  padding-top: var(--hd-h);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 56px 64px var(--hero-gutter);
}
.hero-kicker { margin: 0 0 18px; font-size: 16px; font-weight: 600; color: var(--soil); }
.hero-title { margin: 0; font-size: clamp(54px, 5.6vw, 84px); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .ln > span { display: block; white-space: nowrap; animation: rise .9s var(--ease) both; }
.hero-title .ln + .ln > span { animation-delay: .12s; color: var(--fire); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-sub { margin: 18px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.hero-desc { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); max-width: 26em; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-addr { margin: 20px 0 0; font-size: 15px; color: var(--ink-2); }

.hero-visual { position: relative; overflow: hidden; background: #2b2723; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* 오늘의 맥적 카드 */
.today {
  position: absolute; left: 32px; bottom: 32px; width: 372px; z-index: 2;
  background: #fff; border-radius: 12px; padding: 22px 22px 18px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.today-head h2 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.today-date { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.today-status { margin: 14px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.today-status strong { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; }
.today-when { font-size: 15.5px; color: var(--ink-2); flex-basis: 100%; }
.today-status[data-state="open"] strong { color: var(--fire); }
.today-info { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.today-info > div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 15.5px; line-height: 1.45; }
.today-info dt { color: var(--ink-2); }
.today-info dd { margin: 0; font-weight: 600; }
.today-btns { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tbtn {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 8px;
  border: 1.5px solid var(--line); font-size: 15.5px; font-weight: 650; text-decoration: none; background: #fff;
  transition: transform .18s var(--ease);
}
.tbtn .ic { width: 20px; height: 20px; }
.tbtn:active { transform: scale(.96); }
.tbtn-fire { background: var(--fire); border-color: var(--fire); color: #fff; }

/* ───────── 공통 구역 ───────── */
.sec { padding: 96px 0; }
.h2 { margin: 0; font-size: 42px; line-height: 1.24; font-weight: 800; letter-spacing: -0.03em; }
.h3 { margin: 0 0 16px; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.lead { margin: 12px 0 0; font-size: 18px; color: var(--ink-2); max-width: 40em; }
.sec-head { margin-bottom: 40px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ───────── 메뉴 ───────── */
.menu { padding-top: 112px; }
.menu-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.tabs { display: flex; gap: 6px; background: rgba(34, 34, 34, .06); padding: 5px; border-radius: 10px; }
.tab {
  min-height: 46px; min-width: 92px; padding: 0 18px; border: 0; border-radius: 7px; background: transparent;
  font-size: 16.5px; font-weight: 650; color: var(--ink-2); transition: transform .18s var(--ease);
}
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.tab[aria-selected="true"]::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fire); margin-left: 7px; vertical-align: 3px; }
.tab:active { transform: scale(.96); }

.panel { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; }
.panel[hidden] { display: none; }
.panel[data-n="2"] { --n: 2; }
.panel[data-n="3"] { --n: 3; }
.panel[data-n="4"] { --n: 4; }
/* 메뉴 카드: 상에 접시를 내려놓듯(살짝 지나쳤다 제자리) — 탭 바꿀 때도 같은 방식 */
.panel.is-in .dish { animation: plate .78s cubic-bezier(.2, .7, .2, 1) both; }
.panel.is-in .dish:nth-child(2) { animation-delay: 70ms; }
.panel.is-in .dish:nth-child(3) { animation-delay: 140ms; }
.panel.is-in .dish:nth-child(4) { animation-delay: 210ms; }
@keyframes plate {
  0% { opacity: 0; translate: 0 calc(var(--pd, 26px) * -1); }
  55% { opacity: 1; translate: 0 calc(var(--pd, 26px) * .16); }
  80% { translate: 0 calc(var(--pd, 26px) * -.04); }
  100% { opacity: 1; translate: 0 0; }
}
html.mo .panel:not([hidden]):not(.is-in) .dish { opacity: 0; }
.dish { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.dish img, .dish-ph { width: 100%; height: 260px; object-fit: cover; border-radius: 6px; background: #ece7df; }
.dish-ph { display: flex; align-items: center; justify-content: center; background: var(--paper); }
.dish-ph span { font-size: 30px; font-weight: 800; color: var(--soil); letter-spacing: -0.02em; }
.dish-body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.dish h3 { margin: 0; font-size: 19px; font-weight: 750; line-height: 1.35; letter-spacing: -0.02em; }
.dish h3 .g { font-weight: 500; color: var(--soil); font-size: 16px; margin-left: 2px; }
.dish-body > p:not(.price) { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.price { margin: auto 0 0; padding-top: 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.price span { font-size: 16px; font-weight: 600; margin-left: 2px; }

.menu-notes { margin-top: 28px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-notes p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.menu-notes strong { color: var(--ink); margin-right: 8px; }

/* ───────── 한 쌈 싸기 ───────── */
.ssam {
  margin-top: 48px; display: grid; grid-template-columns: 330px 1fr; gap: 0;
  background: var(--paper-soft); border-radius: 14px; overflow: hidden;
}
.ssam-text { padding: 36px 8px 32px 36px; display: flex; flex-direction: column; }
.ssam-h { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.ssam-quote { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }
.ssam-how { margin: 14px 0 0; font-size: 16px; font-weight: 650; }
.ssam-legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; }
.ssam-legend li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--ink-2); transition: transform .25s var(--ease); }
.ssam-legend .lg { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed rgba(34, 34, 34, .55); background: transparent; position: relative; overflow: hidden; }
.ssam-legend li.on .lg { border-style: solid; border-color: var(--ink); }
.ssam-legend .lg::after { content: ""; position: absolute; inset: 0; background: var(--c); border-radius: 50%; transform: scale(0); transition: transform .3s var(--ease); }
.ssam-legend li.on { color: var(--ink); font-weight: 650; }
.ssam-legend li.on .lg::after { transform: scale(1); }
.ssam-count { margin: auto 0 0; padding-top: 18px; font-size: 15px; color: var(--ink-2); }
.ssam-count .num { font-size: 28px; font-weight: 800; color: var(--ink); }

.ssam-stage {
  position: relative; height: 540px; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  overflow: hidden; contain: layout paint;
}
.ssam-meat {
  position: absolute; left: 0; top: 0; z-index: 3; border-radius: 0;
  background: url(../assets/photo/stone_pork_s.jpg) 52% 60% / 250% no-repeat;
  will-change: transform;
}
.piece {
  position: absolute; left: 0; top: 0; z-index: 8; padding: 0; margin: 0; border: 0; background: none;
  touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; will-change: transform;
}
.piece::after { content: ""; position: absolute; inset: -10px; }
.piece img { width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.piece-fb { position: absolute; inset: 12%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(34, 34, 34, .2); }
.piece.has-img .piece-fb { display: none; }
.piece.no-img img { display: none; }
.piece.is-drag { cursor: grabbing; }
.piece.is-placed { cursor: default; }
.piece:focus-visible { outline-offset: 6px; }

.ssam-done {
  position: absolute; left: 50%; bottom: 22px; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 20px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.ssam-done.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ssam-done-t { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.ssam-again { min-height: 44px; padding: 0 18px; }

/* ───────── 굽는 법 ───────── */
.grill { padding-top: 120px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { margin: 0; }
.step img { width: 100%; height: 340px; object-fit: cover; border-radius: 6px; }
.step-n { margin: 14px 0 0; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 750; }
.step-n .num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 700;
}
.step:nth-child(3) .step-n .num { background: var(--fire); }
.grill-notes { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grill-notes > p { margin: 0; font-size: 18px; line-height: 1.7; }
.mural { margin: 0; display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.mural img { width: 220px; height: auto; border-radius: 4px; }
.mural figcaption p { margin: 0; font-size: 16px; color: var(--ink); }
.mural small { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-2); }

/* ───────── 공간 ───────── */
.rail-btns { display: flex; gap: 8px; flex: none; }
.rbtn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; transition: transform .18s var(--ease); }
.rbtn:active { transform: scale(.94); }
.rail {
  list-style: none; margin: 0; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--pad), calc((100vw - var(--wrap)) / 2)); scroll-padding: 0 max(var(--pad), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail li { flex: none; width: min(560px, 46vw); scroll-snap-align: start; }
.rail img { width: 100%; height: 380px; object-fit: cover; border-radius: 6px; }
.rail p { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); }

/* ───────── 회사와 사업 ───────── */
.co-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.vision { padding: 24px 26px; background: var(--paper-soft); border-radius: 10px; }
.vision h3 { margin: 0 0 6px; font-size: 16px; color: var(--soil); font-weight: 700; }
.vision p { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.55; }
.biz { list-style: none; margin: 0 0 56px; padding: 0; border-top: 2px solid var(--ink); }
.biz li { display: grid; grid-template-columns: 240px 1fr 88px; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.biz h4 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.biz p { margin: 0; font-size: 16px; color: var(--ink-2); }
.st { justify-self: end; font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 5px; background: var(--paper); color: var(--soil); white-space: nowrap; }
.st-now { background: var(--fire); color: #fff; }
.hist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.hist li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hist .num { color: var(--soil); font-weight: 650; }

/* ───────── 프랜차이즈 ───────── */
.fr { background: var(--paper-soft); }
.fr-grid { display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: start; }
.fr-info { display: grid; gap: 40px; }
.fr-block p { margin: 0; font-size: 17px; }
.fr-logo { width: 150px; height: auto; margin: 0 0 16px; }
.fr-block .btn { margin-top: 18px; }
.cform { background: #fff; border-radius: 12px; padding: 28px; display: grid; gap: 14px; }
.cform .h3 { margin-bottom: 4px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 15px; font-weight: 650; }
.fld input, .fld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: 16px;
}
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--ink); }
.fld input::placeholder, .fld textarea::placeholder { color: rgba(34, 34, 34, .5); }
.agree { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.agree input { width: 22px; height: 22px; accent-color: var(--fire); flex: none; }
.cform-msg { margin: 0; font-size: 15px; font-weight: 650; min-height: 0; }
.cform-msg:empty { display: none; }
.cform-msg.err { color: var(--fire); }
.is-done .fld, .is-done .agree, .is-done button[type="submit"] { display: none; }
.is-done .cform-msg { font-size: 18px; padding: 12px 0; }

/* ───────── 커뮤니티 ───────── */
.comm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.comm-grid > *, .fr-grid > *, .co-top > *, .grill-notes > *, .hero > * { min-width: 0; }
.comm-left { display: grid; gap: 48px; }
.notice { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.notice a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.nt { font-size: 16.5px; font-weight: 600; }
.nd { font-size: 15px; color: var(--ink-2); flex: none; }
@media (hover: hover) and (pointer: fine) { .notice a:hover .nt { color: var(--fire); } }
.voice p { margin: 0 0 14px; font-size: 16px; color: var(--ink-2); }
.voice-form { margin-top: 16px; display: grid; gap: 12px; }
.voice-form[hidden] { display: none; }
.voice-form .btn { justify-self: start; }
.store-card { border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.store-card img { width: 100%; height: 220px; object-fit: cover; }
.store-body { padding: 22px 24px 24px; }
.store-body h4 { margin: 0; font-size: 22px; font-weight: 800; }
.store-addr { margin: 6px 0 14px; font-size: 16px; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours caption { text-align: left; font-size: 14.5px; font-weight: 700; color: var(--soil); padding-bottom: 4px; }
.hours th { text-align: left; font-weight: 600; width: 96px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--fire); font-weight: 750; }
.hours tr.is-today th::after { content: " 오늘"; font-size: 13px; }
.store-small { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.store-small strong { color: var(--ink); margin-right: 6px; }
.store-btns { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ───────── 꼬리말 ───────── */
.ft { background: var(--ink); color: #fff; padding: 56px 0 64px; }
.ft-in { display: grid; grid-template-columns: 160px 1fr auto; gap: 40px; align-items: start; }
.ft-logo { width: 140px; height: auto; }
.ft-info { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 6px 40px; justify-content: start; font-size: 15px; }
.ft-info > div { display: flex; gap: 10px; }
.ft-info dt { color: rgba(255, 255, 255, .72); flex: none; }
.ft-info dd { margin: 0; }
.ft-info a { text-decoration: none; }
.ft-copy { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); }

/* ───────── PC 아래 고정 창업 상담 줄 ───────── */
.cbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: #fff;
  transform: translateY(105%); transition: transform .38s var(--ease);
}
.cbar.on { transform: none; }
.cbar-in { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 10px; min-height: 72px; }
.cbar-t { margin: 0 8px 0 0; font-size: 17px; font-weight: 750; white-space: nowrap; }
.cbar-t .tag-ready { background: rgba(255, 255, 255, .14); color: #fff; }
.cbar-f { flex: 1; min-width: 0; }
.cbar-f input { width: 100%; height: 46px; border: 0; border-radius: 7px; padding: 0 14px; background: #fff; color: var(--ink); font-size: 15.5px; }
.cbar-f input::placeholder { color: rgba(34, 34, 34, .6); }
.cbar-agree { display: flex; align-items: center; gap: 8px; font-size: 14.5px; white-space: nowrap; min-height: 44px; cursor: pointer; }
.cbar-agree input { width: 20px; height: 20px; accent-color: var(--fire); }
.cbar .btn { min-height: 46px; }
.cbar-msg { color: #fff; font-size: 16px; }
.cbar-msg.err { color: #fff; text-decoration: underline; text-decoration-color: var(--fire); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.cbar .is-done .cbar-f, .cbar .is-done .cbar-agree, .cbar .is-done .btn { display: none; }
body.cbar-on .ft { padding-bottom: 136px; }

/* ───────── 폰 창업 문의 창 ───────── */
.sheet { position: fixed; inset: 0; z-index: 90; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .44); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 16px 16px 0 0; padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .38s var(--ease);
}
.sheet.on .sheet-bg { opacity: 1; }
.sheet.on .sheet-panel { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(34, 34, 34, .2); margin: 4px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font-size: 21px; font-weight: 800; }
.sheet-x { width: 48px; height: 48px; border: 0; background: none; display: flex; align-items: center; justify-content: center; margin-right: -12px; }
.sheet-note { margin: 2px 0 6px; font-size: 15px; color: var(--ink-2); }
.sheet .cform { padding: 6px 0 0; }

/* ───────── 폰 앱바 ───────── */
.appbar { display: none; }

/* ═════════ 반응형 ═════════ */
@media (max-width: 1199px) {
  .hd-in { gap: 16px; }
  .gnb-top { padding: 0 11px; font-size: 16px; }
  .hd-fr { display: none; }
  .ssam { grid-template-columns: 290px 1fr; }
  .panel { gap: 14px; }
  .dish img, .dish-ph { height: 220px; }
}
@media (max-width: 1023px) {
  :root { --hd-h: 68px; --pad: 28px; }
  .gnb, .hd-actions { display: none; }
  .hd-in { justify-content: space-between; }
  .hd-logo img { height: 46px; }
  .hd-burger { display: flex; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 40px 32px 48px var(--pad); }
  .today { left: 20px; right: 20px; bottom: 20px; width: auto; }
  .h2 { font-size: 36px; }
  .panel[data-n="4"] { --n: 2; }
  .steps img { height: 280px; }
  .grill-notes { grid-template-columns: 1fr; gap: 28px; }
  .co-top { grid-template-columns: 1fr; gap: 28px; }
  .fr-grid { grid-template-columns: 1fr 400px; gap: 40px; }
  .comm-grid { gap: 40px; }
  .cbar-agree span { display: none; }
  .ft-in { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { display: contents; }
  .hero-img { position: static; order: -1; width: 100%; height: 46svh; min-height: 300px; }
  .hero-copy { order: 0; padding: 28px var(--pad) 8px; }
  .today { order: 1; position: relative; left: auto; right: auto; bottom: auto; margin: 16px var(--pad) 0; width: auto; box-shadow: none; border: 1.5px solid var(--ink); }
  .ssam { grid-template-columns: 1fr; }
  .ssam-text { padding: 28px 28px 8px; }
  .ssam-legend { grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 18px; }
  .ssam-count { margin-top: 10px; padding-top: 0; }
  .ssam-stage { height: 460px; }
  .fr-grid { grid-template-columns: 1fr; }
  .comm-grid { grid-template-columns: 1fr; }
  .hist { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --hd-h: 60px; --pad: 20px; }
  body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .hd-logo img { height: 40px; }
  .hero { min-height: calc(100svh - 62px - env(safe-area-inset-bottom)); align-content: start; }
  .hero-img { height: 29svh; min-height: 210px; max-height: 300px; }
  .hero-copy { padding: 20px var(--pad) 4px; }
  .hero-kicker { margin-bottom: 6px; font-size: 14.5px; }
  .hero-title { font-size: 40px; line-height: 1.15; }
  .hero-title .ln { display: inline-block; }
  .hero-title .ln + .ln { margin-left: .25em; }
  .hero-sub { margin-top: 6px; font-size: 19px; }
  .hero-desc { display: none; }
  .hero-btns, .hero-addr { display: none; }
  .today { margin: 14px var(--pad) 0; padding: 16px 16px 14px; border-radius: 10px; }
  .today-status { margin-top: 8px; }
  .today-status strong { font-size: 22px; }
  .today-when { font-size: 15px; }
  .today-info { margin-top: 10px; padding-top: 10px; gap: 4px; }
  .today-info > div { font-size: 15px; grid-template-columns: 70px 1fr; }
  .today-btns { margin-top: 12px; }

  .sec { padding: 64px 0; }
  .menu { padding-top: 56px; }
  .grill { padding-top: 64px; }
  .h2 { font-size: 28px; }
  .h3 { font-size: 20px; }
  .lead { font-size: 16px; }
  .sec-head { margin-bottom: 24px; }
  .menu-head { flex-direction: column; align-items: stretch; gap: 16px; margin-bottom: 18px; }
  .tabs { width: 100%; }
  .tab { flex: 1; min-width: 0; padding: 0 8px; }
  .panel, .panel[data-n] {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); overscroll-behavior-x: contain;
  }
  .panel::-webkit-scrollbar { display: none; }
  .panel[hidden] { display: none; }
  .dish { flex: none; width: 74vw; max-width: 300px; scroll-snap-align: start; }
  .panel[data-n="2"] .dish { width: calc(50vw - 26px); }
  .dish img, .dish-ph { height: 180px; }
  .panel[data-n="2"] .dish img { height: 150px; }
  .dish h3 { font-size: 17px; }
  .dish-body > p:not(.price) { font-size: 15px; }
  .price { font-size: 20px; }
  .menu-notes { grid-template-columns: 1fr; margin-top: 20px; padding: 14px 0; }
  .menu-notes p { font-size: 15px; }

  .ssam { margin: 28px calc(var(--pad) * -1) 0; border-radius: 0; }
  .ssam-text { padding: 24px var(--pad) 0; }
  .ssam-h { font-size: 23px; }
  .ssam-quote { font-size: 15px; }
  .ssam-how { font-size: 15px; margin-top: 8px; }
  .ssam-legend { margin-top: 10px; grid-template-columns: repeat(3, auto); gap: 2px 14px; }
  .ssam-legend li { font-size: 15px; }
  .ssam-count { display: none; }
  .ssam-stage { height: 390px; }
  .ssam-done { bottom: 14px; gap: 10px; padding: 6px 6px 6px 14px; }
  .ssam-done-t { font-size: 15px; }

  .steps { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: none; width: 64vw; scroll-snap-align: start; }
  .step img { height: 210px; }
  .step-n { font-size: 18px; margin-top: 10px; }
  .grill-notes { margin-top: 24px; gap: 20px; }
  .grill-notes > p { font-size: 16px; }
  .mural { grid-template-columns: 120px 1fr; gap: 14px; }
  .mural img { width: 120px; }
  .mural figcaption p { font-size: 15px; }

  .sec-head-row { align-items: flex-start; }
  .rail-btns { display: none; }
  .rail { gap: 10px; }
  .rail li { width: 76vw; }
  .rail img { height: 220px; }
  .rail p { font-size: 15px; margin-top: 8px; }

  .co-top { margin-bottom: 36px; gap: 20px; }
  .vision { padding: 18px; }
  .vision p { font-size: 17px; }
  .biz { margin-bottom: 36px; }
  .biz li { grid-template-columns: 1fr auto; grid-template-areas: "h s" "p p"; gap: 4px 12px; padding: 16px 0; }
  .biz h4 { grid-area: h; font-size: 18px; }
  .biz p { grid-area: p; font-size: 15px; }
  .biz .st { grid-area: s; }
  .hist { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .hist::-webkit-scrollbar { display: none; }
  .hist li { flex: none; width: 62vw; display: block; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 8px; scroll-snap-align: start; font-size: 15px; }
  .hist li .num { display: block; margin-bottom: 4px; }

  .fr-grid { gap: 32px; }
  .fr-info { gap: 28px; }
  .fr-logo { width: 116px; }
  .fr-block p { font-size: 16px; }
  .cform { padding: 20px; }
  .fr .cform { margin: 0 calc(var(--pad) * -1); border-radius: 0; }

  .comm-left { gap: 36px; }
  .notice a { flex-direction: column; align-items: flex-start; gap: 2px; min-height: 0; }
  .nt { font-size: 15.5px; }
  .store-card img { height: 180px; }
  .store-body { padding: 18px; }
  .store-btns { grid-template-columns: 1fr; }

  .ft { padding: 40px 0 36px; }
  .ft-info { grid-template-columns: 1fr; }

  .cbar { display: none; }

  .appbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--line);
  }
  .appbar a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); min-height: 48px;
  }
  .appbar a .ic { width: 24px; height: 24px; }
  .appbar a.on { color: var(--ink); font-weight: 750; }
  .appbar a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2.5px; border-radius: 0 0 2px 2px; background: var(--fire); }
  .appbar a.ab-call { color: var(--fire); font-weight: 750; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ═════════ 요소별 인터랙션 (js/motion.js) — 숨김은 html.mo 아래에서만 ═════════ */
:root { --pd: 26px; --mv: 16px; --mv2: 28px; --mx: -24px; --ez: cubic-bezier(.16, 1, .3, 1); }
@media (hover: none), (pointer: coarse) { :root { --pd: 13px; --mv: 8px; --mv2: 14px; --mx: -12px; } }
.mo-now, .mo-now * { transition: none !important; animation: none !important; }

/* 큰 제목: 줄마다 선 아래에서(90ms 시차, 0.9s) */
.mo-l { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.mo-li { display: block; transition: transform .9s var(--ez), opacity .9s var(--ez); transition-delay: calc(var(--l, 0) * 90ms); }
html.mo .mo-ti:not(.mo-in) .mo-li { transform: translateY(105%); }
@media (hover: none), (pointer: coarse) { html.mo .mo-ti:not(.mo-in) .mo-li { transform: translateY(55%); opacity: 0; } }

/* 작은 글·목록: 16px 아래에서, 차례로 */
.mo-t { transition: opacity .6s var(--ez), transform .6s var(--ez); transition-delay: var(--d, 0ms); }
.ssam-legend li.mo-t { transition: opacity .6s var(--ez), transform .6s var(--ez); transition-delay: var(--d, 0ms); }
html.mo .mo-t:not(.mo-in) { opacity: 0; transform: translateY(var(--mv)); }

/* 사업 줄: 왼쪽에서 */
.mo-r { transition: opacity .6s var(--ez), transform .7s var(--ez); transition-delay: var(--d, 0ms); }
html.mo .mo-r:not(.mo-in) { opacity: 0; transform: translateX(var(--mx)); }

/* 카드(굽는 법 사진 칸·매장 카드·공간 사진 칸): 아래에서 + 기울기·눌림 */
.mo-c { transition: opacity .7s var(--ez) var(--d, 0ms), translate .8s var(--ez) var(--d, 0ms), transform .35s var(--ez), scale .15s ease-out; }
html.mo .mo-c:not(.mo-in) { opacity: 0; translate: 0 var(--mv2); }
.dish { transition: transform .35s var(--ez), scale .15s ease-out; }
.dish:active, .store-card:active, .step:active, .rail li:active { scale: .97; }

/* 사진: 가림막 걷힘 + 안쪽 1.08→1 (1.1s), 올리면 1.04 */
.mo-ph { display: block; overflow: hidden; transition: clip-path 1.1s var(--ez) var(--d, 0ms); }
html.mo .mo-ph[data-dir="l"]:not(.mo-in) { clip-path: inset(0 100% 0 0); }
html.mo .mo-ph[data-dir="u"]:not(.mo-in) { clip-path: inset(100% 0 0 0); }
.mo-ph img { --ps: 1; transform: scale(var(--ps)); transition: transform 1.1s var(--ez) var(--d, 0ms); }
html.mo .mo-ph:not(.mo-in) img { transform: scale(calc(var(--ps) * 1.08)); }
.mo-ph.mo-done img { transition: transform .7s var(--ez); }
.mo-num { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }

/* 버튼 자석(translate는 JS) — 눌림·아이콘과 따로 */
.mo-mag { transition: transform .18s var(--ease), opacity .18s var(--ease), translate .45s var(--ez); }

/* 사업 줄: 올리면 불 선이 그려지고 이름이 밀림 */
.biz li { position: relative; }
.biz li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--fire); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ez); }
.biz h4 { transition: transform .35s var(--ez); }
/* 공지: 밑줄이 그려짐 · 꼬리말 링크 · 머리글 현재 구역 */
.notice a { position: relative; }
.notice a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ez); }
.notice a:focus-visible::after { transform: scaleX(1); }
.ft a { position: relative; }
.ft a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ez); }
.gnb-top { position: relative; }
.gnb-top::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 2px; background: var(--fire); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ez); }
.gnb-top.is-cur::after { transform: scaleX(1); }
/* 폼 칸: 포커스 시 라벨이 밀리고 불색 */
.fld > span { transition: transform .3s var(--ez); }
.fld:focus-within > span { transform: translateX(4px); color: var(--fire); }
/* 앱바·머리글 아이콘: 누르면 0.9 → 1 */
.appbar a:active .ic, .hd-burger:active .ic, .rbtn:active .ic { transform: scale(.9); }

@media (hover: hover) and (pointer: fine) {
  .mo-ph img { --ps: 1.1; }
  .mo-hz:hover .mo-ph img, .rail li:hover .mo-ph img, .step:hover .mo-ph img { transform: scale(calc(var(--ps) * 1.04)); }
  .dish:hover h3 { color: var(--fire); }
  .store-card:hover { border-color: var(--fire); }
  .tab:hover { color: var(--ink); }
  .sec .btn:hover .ic, .hd-actions .btn:hover .ic, .cbar .btn:hover .ic { transform: translateX(3px); }
  .rbtn[data-dir="1"]:hover .ic { transform: translateX(2px); }
  .rbtn[data-dir="-1"]:hover .ic { transform: translateX(-2px); }
  .biz li:hover::after { transform: scaleX(1); }
  .biz li:hover h4 { transform: translateX(6px); }
  .biz li:hover .st { color: var(--ink); }
  .hist li:hover .num { color: var(--fire); }
  .notice a:hover::after { transform: scaleX(1); }
  .ft a:hover::after { transform: scaleX(1); }
  .gnb-top:hover::after { transform: scaleX(1); }
  .fld input:hover, .fld textarea:hover { border-color: rgba(34, 34, 34, .4); }
  .vision:hover h3 { color: var(--fire); }
  .rail.mo-drag { cursor: grab; }
  .rail.is-grab { cursor: grabbing; }
  .rail.is-grab img { pointer-events: none; }
}

/* 쌈 조각: 위치는 ssam.js, 올리면 안쪽 그림만 살짝 들림 */
.piece img { transition: transform .25s var(--ez); }
@media (hover: hover) and (pointer: fine) { .piece:not(.is-placed):not(.is-drag):hover img { transform: scale(1.05) rotate(-2deg); } }
