/* ==========================================================
   친정찬 — 공통 스타일
   2색 원칙: 옹기색 #502C1C / 아이보리 #FBF9F4
   서체: Noto Serif KR(제목) + Pretendard(본문)
   ========================================================== */

:root {
  --ongi: #502C1C;
  --ivory: #FBF9F4;
  --ongi-70: rgba(80, 44, 28, 0.70);
  --ongi-45: rgba(80, 44, 28, 0.45);
  --ongi-18: rgba(80, 44, 28, 0.18);
  --ongi-08: rgba(80, 44, 28, 0.08);
  --ongi-04: rgba(80, 44, 28, 0.04);
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  --max-w: 1200px;
  --radius: 2px;
  color-scheme: light only;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ongi);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ongi-18);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(80, 44, 28, 0.1);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}
.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.site-nav a:hover { border-bottom-color: var(--ongi-45); }
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ongi);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--ongi);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 사진 플레이스홀더 프레임 ---------- */
/* 촬영 완료 시 <img>로 교체. 프레임 비율은 유지 */
.photo {
  position: relative;
  background:
    linear-gradient(135deg, var(--ongi-08), var(--ongi-04) 55%, var(--ongi-08));
  border: 1px solid var(--ongi-18);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--ongi-18);
  border-radius: var(--radius);
  pointer-events: none;
}
.photo .photo-note {
  font-size: 0.8rem;
  color: var(--ongi-45);
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.filled::before { display: none; }
.photo.filled iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* 임시 크롭: 쇼케이스 풀샷에서 그릇 단위로 잘라 단품컷 대용 */
.photo.crop-case {
  background-image: url("../img/temp-hero-showcase.png");
  background-size: 780% auto;
  background-position: 50% 45%;
}
/* 임시 크롭: 상차림 사진의 부분 확대 */
.photo.crop-table {
  background-image: url("../img/temp-table-setting.png");
  background-size: 160%;
  background-position: 50% 50%;
}
/* 실사 크롭: 매장 진열 사진에서 품목 단위 확대 */
.photo.crop-kimchi {
  background-image: url("../img/real-kimchi.jpg");
  background-size: 320% auto;
  background-position: 50% 50%;
}
.photo.crop-soup2 {
  background-image: url("../img/real-soup.jpg");
  background-size: 300% auto;
  background-position: 50% 50%;
}
.hero .photo.filled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(251, 249, 244, 0.94),
    rgba(251, 249, 244, 0.35) 40%,
    rgba(251, 249, 244, 0) 65%);
}
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-photo { aspect-ratio: 4 / 3; }
.ratio-tall { aspect-ratio: 3 / 4; }
.ratio-square { aspect-ratio: 1 / 1; }

/* ---------- 타이포 ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.35; }

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
section[id] { scroll-margin-top: 84px; }

.section-head {
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.section-head h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--ongi);
  border-radius: 2px;
  margin-top: 14px;
}
.section-head .sub {
  margin-top: 12px;
  color: var(--ongi-70);
  max-width: 46ch;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ongi-70);
}

/* ---------- CTA 링크 ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1.5px solid var(--ongi);
  padding-bottom: 4px;
  transition: gap 0.25s ease;
}
.cta::after { content: "→"; font-family: var(--sans); }
.cta:hover { gap: 16px; }

/* ---------- 내부 페이지 머리 ---------- */
.page-head { padding: 88px 0 0; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head .lead { margin-top: 16px; max-width: 52ch; }

.band .cta { border-bottom-color: var(--ivory); }
.band .band-quote,
.band .split-copy p { color: var(--ivory); }

/* ---------- 스티키 히어로 : 사진은 고정, 이후 본문이 그 위로 스크롤 ---------- */
.hero.sticky-hero {
  position: sticky;
  top: 0;
  z-index: 0;
}
.sticky-hero ~ section {
  position: relative;
  z-index: 1;
}
.sticky-hero ~ section:not(.band) {
  background: var(--ivory);
}
/* 사진을 덮으며 올라오는 스토리 구간(도입~2019 인용 밴드)만 반투명 */
.sticky-hero ~ section.over-photo:not(.band) {
  background: rgba(251, 249, 244, 0.8);
  backdrop-filter: blur(3px);
}
.sticky-hero ~ section.band.over-photo {
  background: rgba(80, 44, 28, 0.88);
  backdrop-filter: blur(3px);
}

/* ---------- 브랜드 히어로 (컬러 배경 + 중앙 슬로건) ---------- */
.hero-brand {
  position: relative;
  min-height: min(70vh, 660px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 150px;
  background:
    radial-gradient(55% 70% at 50% -12%, var(--ongi-08), transparent 62%),
    radial-gradient(70% 90% at 50% 115%, var(--ongi-08), transparent 68%),
    var(--ivory);
  border-bottom: 1px solid var(--ongi-18);
}
.hero-mark {
  height: 76px;
  width: auto;
  margin: 0 auto 30px;
  display: block;
}
.hero-brand h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.4;
}
.hero-sub {
  margin-top: 18px;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  color: var(--ongi-70);
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-solid {
  background: var(--ongi);
  color: var(--ivory);
}
.btn-solid:hover {
  box-shadow: 0 10px 24px rgba(80, 44, 28, 0.3);
  transform: translateY(-2px);
}
.btn-line {
  border: 1px solid var(--ongi);
  color: var(--ongi);
}
.btn-line:hover {
  background: var(--ongi-08);
  transform: translateY(-2px);
}

/* 히어로 하단 반찬 타일 스트립 (마퀴) */
.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.strip-track {
  display: flex;
  gap: 12px;
  width: max-content;
}
.strip-tile {
  width: 108px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--ongi-18);
  background-image: url("../img/temp-hero-showcase.png");
  background-size: 780% auto;
  box-shadow: 0 6px 14px rgba(80, 44, 28, 0.08);
}
.strip-tile.crop-table { background-image: url("../img/temp-table-setting.png"); }
@media (prefers-reduced-motion: no-preference) {
  .strip-track { animation: stripMove 46s linear infinite; }
  @keyframes stripMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

/* ---------- 히어로 모션 (마크 부유 + 텍스트 등장) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark {
    animation: riseIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both,
               markFloat 5s ease-in-out 1.2s infinite alternate;
  }
  .hero-brand h1 {
    animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
  }
  @keyframes markFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
  }
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(26px); }
  }
}

/* ---------- 3D 틸트 카드 (호버 시 마우스를 따라 기울어짐) ---------- */
.tilt {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.tilt:hover {
  box-shadow: 0 18px 38px rgba(80, 44, 28, 0.16);
}

/* ---------- 핵심 가치 카드 ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  border: 1px solid var(--ongi-18);
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.value-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.value-card p {
  font-size: 0.93rem;
  color: var(--ongi-70);
}

/* ---------- 혜택 카드 (2열 변형) ---------- */
.benefits-grid { grid-template-columns: 1fr 1fr; }

/* ---------- 인물 카드 (만드는 사람들) ---------- */
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.person-card {
  border: 1px solid var(--ongi-18);
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  overflow: hidden;
}
.person-card .photo {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--ongi-18);
}
.person-body { padding: 26px 28px 30px; }
.person-tag {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ongi-45);
}
.person-card h3 {
  font-size: 1.35rem;
  margin-top: 4px;
}
.person-quote {
  margin-top: 10px;
  font-family: var(--serif);
  color: var(--ongi-70);
}
.person-card ul {
  margin-top: 16px;
  display: grid;
  gap: 5px;
  font-size: 0.92rem;
  color: var(--ongi-70);
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
}
.hero .photo {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--ongi-18);
}
.hero .photo::before { inset: 20px; }
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 72px;
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
}
.hero-copy p {
  margin-top: 16px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ongi-70);
}

/* ---------- 홈: 스플릿 섹션 ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 6fr 5fr; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-media { order: 1; }
.split-copy h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.split-copy p { margin-top: 14px; color: var(--ongi-70); }

/* ---------- 반찬 그리드 ---------- */
.grid-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card .photo { margin-bottom: 12px; }
.cat-card .cat-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.cat-card .cat-count {
  font-size: 0.85rem;
  color: var(--ongi-45);
  margin-top: 2px;
}

.grid-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 24px;
}
.item-card .photo { margin-bottom: 10px; }
.item-card .item-name { font-size: 0.95rem; font-weight: 500; }

/* ---------- 옹기색 반전 밴드 (2색 내 반전, 페이지당 1회) ---------- */
.band {
  background: var(--ongi);
  color: var(--ivory);
}
.band .photo {
  background: linear-gradient(135deg, rgba(251,249,244,0.10), rgba(251,249,244,0.04));
  border-color: rgba(251, 249, 244, 0.25);
}
.band .photo::before { border-color: rgba(251, 249, 244, 0.25); }
.band .photo .photo-note { color: rgba(251, 249, 244, 0.55); }
/* 유리 질감 밴드: 옹기색 유지 + 광택·블러·빛 테두리 */
.band.glass {
  background:
    linear-gradient(115deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 24%,
      rgba(255, 255, 255, 0) 46%,
      rgba(255, 255, 255, 0.02) 68%,
      rgba(255, 255, 255, 0.10) 100%),
    radial-gradient(90% 120% at 15% -20%, rgba(255, 255, 255, 0.14), transparent 55%),
    rgba(80, 44, 28, 0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.30);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
.band.glass .photo {
  border: 1px solid rgba(251, 249, 244, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 16px 36px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-transparency: reduce) {
  .band.glass {
    background: var(--ongi);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.band-quote {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.9;
  max-width: 34ch;
}

/* ---------- 이야기 페이지 ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ongi-18);
}
.principle {
  padding: 40px 32px 40px 0;
}
.principle + .principle {
  border-left: 1px solid var(--ongi-18);
  padding-left: 32px;
}
.principle .num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--ongi-45);
  display: block;
  margin-bottom: 12px;
}
.principle p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
}

.timeline { border-top: 1px solid var(--ongi-18); }
.timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--ongi-18);
}
.timeline .year {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ---------- 상차림 조합 콜라주 (실제 반찬 4종) ---------- */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- 오늘의 식탁 카드 ---------- */
.table-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}
.table-card .photo { margin-bottom: 20px; }
.table-card h3 { font-size: 1.3rem; }
.table-card .compose {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ongi-45);
}
.table-card .scene {
  margin-top: 12px;
  color: var(--ongi-70);
}

/* ---------- 매장 카드 ---------- */
.store-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.store-card {
  border: 1px solid var(--ongi-18);
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(255, 255, 255, 0.35);
}
.store-card .store-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.store-card h3 { font-size: 1.25rem; }
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--ongi);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.store-card dl { display: grid; gap: 8px; font-size: 0.95rem; }
.store-card dt {
  float: left;
  width: 78px;
  color: var(--ongi-45);
}
.store-card dd { margin-left: 78px; }
.store-card .store-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1.5px solid var(--ongi);
  padding-bottom: 3px;
}

/* ---------- 회사소개 ---------- */
.fact-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ongi);
}
.fact-table th, .fact-table td {
  text-align: left;
  padding: 18px 8px;
  border-bottom: 1px solid var(--ongi-18);
  vertical-align: top;
  font-weight: 400;
}
.fact-table th {
  width: 160px;
  color: var(--ongi-45);
  font-size: 0.95rem;
}

.ops-list { display: grid; gap: 0; border-top: 1px solid var(--ongi-18); }
.ops-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--ongi-18);
}
.ops-list strong {
  font-family: var(--serif);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.ops-list span { color: var(--ongi-70); font-size: 0.98rem; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ongi);
  color: var(--ivory);
  margin-top: 96px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(251, 249, 244, 0.2);
}
.footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
}
.footer-grid p, .footer-grid li {
  font-size: 0.9rem;
  color: rgba(251, 249, 244, 0.75);
  line-height: 1.8;
}
.footer-grid h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--ivory);
}
.footer-grid a:hover { color: var(--ivory); text-decoration: underline; }
.footer-bottom {
  padding-top: 28px;
  font-size: 0.8rem;
  color: rgba(251, 249, 244, 0.5);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 사진 캐러셀 (3D 커버플로우, 터치·클릭 이동) ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 20px 7% 26px;
  perspective: 1000px;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .photo {
  flex: 0 0 86%;
  scroll-snap-align: center;
  will-change: transform;
  transform-origin: center center;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(80, 44, 28, 0.22);
}
.carousel-track img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.car-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.car-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--ongi-18);
  cursor: pointer;
  padding: 0;
}
.car-dots button.on { background: var(--ongi); }

/* ---------- 배경음악 토글 (우하단 고정) ---------- */
.bgm-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--ongi-18);
  background: rgba(251, 249, 244, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(80, 44, 28, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bgm-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(80, 44, 28, 0.24);
}
.bgm-toggle:active { transform: scale(0.95); }
.bgm-bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 16px;
  position: relative;
}
.bgm-bars i {
  width: 3px;
  height: 5px;
  background: var(--ongi);
  border-radius: 1px;
}
.bgm-toggle.playing .bgm-bars i { animation: bgmBar 0.8s ease-in-out infinite alternate; }
.bgm-toggle.playing .bgm-bars i:nth-child(2) { animation-delay: 0.25s; }
.bgm-toggle.playing .bgm-bars i:nth-child(3) { animation-delay: 0.5s; }
@keyframes bgmBar {
  from { height: 4px; }
  to { height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bgm-toggle.playing .bgm-bars i { animation: none; height: 12px; }
}
/* 꺼짐 상태: 낮은 막대 + 사선 */
.bgm-toggle:not(.playing) .bgm-bars i { opacity: 0.45; }
.bgm-toggle:not(.playing) .bgm-bars::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 2px;
  background: var(--ongi-70);
  transform: rotate(-38deg);
  border-radius: 1px;
}

/* ---------- 스크롤 리빌 (모션 최소) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.on { opacity: 1; transform: none; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .grid-cats, .grid-items { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--ongi-18);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: none;
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"] { font-weight: 700; }

  .hero { min-height: 70dvh; }
  .hero-copy { padding-bottom: 48px; }

  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-copy { order: 1; }
  .split.reverse .split-media { order: 2; }

  .grid-cats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value-card { padding: 22px 18px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; gap: 20px; }
  .grid-items { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .principles { grid-template-columns: 1fr; }
  .principle { padding: 24px 0; }
  .principle + .principle { border-left: none; border-top: 1px solid var(--ongi-18); padding-left: 0; }

  .timeline li { grid-template-columns: 88px 1fr; gap: 16px; }

  .table-cards { grid-template-columns: 1fr; gap: 40px; }
  .store-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 상차림 조합 필터 칩 ---------- */
.combo-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
.combo-filter button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--ongi-18);
  background: transparent;
  color: var(--ongi-70);
  font-size: 0.92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.combo-filter button:hover { border-color: var(--ongi-45); color: var(--ongi); }
.combo-filter button.on {
  background: var(--ongi);
  border-color: var(--ongi);
  color: var(--ivory);
}
.table-card.hide { display: none; }

/* ---------- 푸터 SNS 링크 ---------- */
.sns-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sns-links a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(251, 249, 244, 0.35);
  border-radius: 999px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.sns-links a:hover { background: rgba(251, 249, 244, 0.12); border-color: rgba(251, 249, 244, 0.6); }

.sns-links a { display: inline-flex; align-items: center; gap: 8px; }
.sns-links a img { width: 15px; height: 15px; display: block; }

/* ---------- 입장 화면 (세션 첫 방문) ---------- */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(55% 70% at 50% -12%, var(--ongi-08), transparent 62%),
    radial-gradient(70% 90% at 50% 115%, var(--ongi-08), transparent 68%),
    var(--ivory);
  cursor: pointer;
  will-change: opacity, transform;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1), filter 1.2s ease;
}
/* hidden 속성이 항상 이기도록 (없으면 display:flex가 덮어써 페이지 이동마다 다시 보임) */
.enter-overlay[hidden] { display: none; }
.enter-overlay img {
  width: 76px;
  height: auto;
  margin-bottom: 6px;
}
.enter-overlay .enter-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2rem);
}
.enter-overlay .enter-sub {
  color: var(--ongi-45);
  font-size: 0.95rem;
  animation: enterPulse 2.4s ease-in-out infinite;
}
@keyframes enterPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
/* 입장 모션: 화면을 통과해 안으로 들어가는 느낌 — 서서히 커지고 흐려지며 걷힘 */
.enter-overlay.leave {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(5px);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .enter-overlay { transition: opacity 0.4s ease; }
  .enter-overlay.leave { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .enter-overlay .enter-sub { animation: none; }
}

/* 푸터 SNS 안내 문구 */
.sns-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: rgba(251, 249, 244, 0.55);
}

/* ---------- 매장 지도 ---------- */
.store-map {
  height: clamp(320px, 58vh, 460px);
  border: 1px solid var(--ongi-18);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 0;
}
.store-map .leaflet-tile-pane {
  filter: grayscale(0.35) sepia(0.1) brightness(1.02);
}
.store-pin {
  display: inline-block;
  transform: translate(-50%, -50%);
  padding: 6px 12px;
  background: var(--ongi);
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(80, 44, 28, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.store-pin:hover { transform: translate(-50%, -50%) scale(1.08); }

/* ---------- 반찬 검색 + 카테고리 바로가기 ---------- */
.dish-finder { margin-top: 28px; }
.dish-search {
  width: 100%;
  max-width: 460px;
  padding: 13px 20px;
  border: 1px solid var(--ongi-18);
  border-radius: 999px;
  background: transparent;
  color: var(--ongi);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dish-search::placeholder { color: var(--ongi-45); }
.dish-search:focus { border-color: var(--ongi); box-shadow: 0 0 0 3px var(--ongi-08); }
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cat-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--ongi-18);
  color: var(--ongi-70);
  font-size: 0.88rem;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cat-nav a:hover { background: var(--ongi); border-color: var(--ongi); color: var(--ivory); }
.search-empty { margin-top: 20px; color: var(--ongi-45); }

/* 더보기: 6개 초과분 접기 (검색 중에는 전체 공개) */
body:not(.searching) .grid-items.clamped > .item-card:nth-child(n+7) { display: none; }
.more-btn {
  display: block;
  margin: 26px auto 0;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid var(--ongi-18);
  background: transparent;
  color: var(--ongi-70);
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.more-btn:hover { background: var(--ongi); border-color: var(--ongi); color: var(--ivory); }
body.searching .more-btn { display: none; }

/* 검색 중 숨김 처리 */
.search-hide { display: none !important; }
body.searching .dish-extra { display: none; }
body.searching .cat-nav { display: none; }

/* 상차림 재추천 버튼 */
.table-card .reroll-btn {
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--ongi-18);
  background: transparent;
  color: var(--ongi-70);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.table-card .reroll-btn:hover { background: var(--ongi); border-color: var(--ongi); color: var(--ivory); }


/* ---------- 반찬 페이지 모드 토글 ---------- */
.mode-toggle {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ongi-18);
  border-radius: 999px;
  margin-bottom: 20px;
  background: var(--ongi-04);
  box-shadow: inset 0 2px 6px rgba(80, 44, 28, 0.14);
}
.mode-knob {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #5d3624, var(--ongi) 55%);
  box-shadow: 0 2px 7px rgba(80, 44, 28, 0.4), inset 0 1px 0 rgba(251, 249, 244, 0.22);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.mode-toggle button {
  position: relative;
  z-index: 1;
  padding: 10px 24px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ongi-70);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.25s ease;
}
.mode-toggle button:active { transform: translateY(1px); }
.mode-toggle button.on { color: var(--ivory); }
@media (prefers-reduced-motion: reduce) {
  .mode-knob { transition: none; }
}
body.recommend-mode .dish-search,
body.recommend-mode .cat-nav,
body.recommend-mode .search-empty { display: none; }
body.recommend-mode main section[id]:not(#combos) { display: none; }


/* ---------- 모드 전환 3D 모션 ---------- */
  animation: comboCardIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
body.recommend-mode .table-cards .table-card:nth-child(2) { animation-delay: 0.08s; }
body.recommend-mode .table-cards .table-card:nth-child(3) { animation-delay: 0.16s; }
body.recommend-mode .table-cards .table-card:nth-child(4) { animation-delay: 0.24s; }
body.recommend-mode .table-cards .table-card:nth-child(5) { animation-delay: 0.32s; }
body.recommend-mode .table-cards .table-card:nth-child(6) { animation-delay: 0.4s; }
body.recommend-mode .table-cards .table-card:nth-child(7) { animation-delay: 0.48s; }
@keyframes tileFlip {
  0% { opacity: 0; transform: perspective(600px) rotateY(80deg); }
  100% { opacity: 1; transform: perspective(600px) rotateY(0deg); }
}
.combo-grid.rolling .photo { animation: tileFlip 0.45s ease both; }
.combo-grid.rolling .photo:nth-child(2) { animation-delay: 0.05s; }
.combo-grid.rolling .photo:nth-child(3) { animation-delay: 0.1s; }
.combo-grid.rolling .photo:nth-child(4) { animation-delay: 0.15s; }
.combo-grid.rolling .photo:nth-child(5) { animation-delay: 0.2s; }
.combo-grid.rolling .photo:nth-child(6) { animation-delay: 0.25s; }
@media (prefers-reduced-motion: reduce) {
  .combo-grid.rolling .photo { animation: none; }
}
