/* ==========================================================================
   계탉닭 프랜차이즈 홈페이지 — 크림 · 브라운 · 골드 프리미엄 톤
   ========================================================================== */

:root {
  /* "딥 브라운 & 딥 버건디/레드" 팔레트 — 계탉닭 BI의 연갈색·진갈색 톤을
     기준으로, 또렷한 레드 대비를 더해 F&B 브랜드의 식욕·신뢰감을 표현 */
  --bg: #fafaf9;
  --bg-raised: #ffffff;
  --bg-card: #ffffff;
  --border: #e5e2dc;

  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-glow: rgba(220, 38, 38, 0.25);
  --weekend-blue: #2f5f8a;
  --top3-red: #dc2626;

  --gold: #b8892e;
  --gold-ink: #7a5215;

  --text: #2e2013;
  --text-soft: #6b5636;
  --text-faint: #9c8563;

  /* 섹션별 컬러 리듬(라이트/다크 교차)을 위한 팔레트 */
  --vanilla: #fafaf9;
  --light-beige: #f5f3ee;
  --deep-brown: #3d2712;
  --deep-red: #b91c1c;
  --pumpkin: #d84315;
  --terracotta: #dc2626;
  --light-gold: #e9cf8f;

  --radius: 14px;
  --container: 1180px;
  --section-padding-y: 100px;

  color-scheme: light;
}

/* 빛고을광주체(Bitgoeul Gwangju) — 광주광역시 배포 무료 폰트, noonnu.cc 미러 CDN.
   이 폰트는 단일 굵기로만 배포되어 400~900 범위 전체를 같은 파일에 매핑합니다.
   로드 실패 시 'Noto Sans KR' → sans-serif 순으로 자동 대체됩니다. */
@font-face {
  font-family: 'Bitgoeul';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_seven@1.2/Bitgoeul_Bold.woff') format('woff');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* G마켓 산스(Gmarket Sans) — 지마켓 배포 무료 상업용 폰트(SIL OFL), noonnu.cc
   미러 CDN. 제목(h1~h3)을 제외한 본문/설명 텍스트 전반의 기본 서체로 사용하며,
   Medium(400)과 Bold(700) 두 굵기를 등록해 기존 강조(strong 등) 표현이
   자동으로 Bold로 매핑되도록 합니다.
   로드 실패 시 Pretendard → 시스템 산세리프 순으로 자동 대체됩니다. */
@font-face {
  font-family: 'GmarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GmarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'GmarketSans', Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  text-wrap: balance;
  word-break: keep-all;
  margin: 0;
  color: var(--text);
}

p { word-break: keep-all; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }

img, canvas { max-width: 100%; }

::selection { background: var(--red); color: #fff; }

/* ---------- 공통 레이아웃 ---------- */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-padding-y) 24px;
}
.section--brand,
.section--store,
.section--revenue,
.section--success,
.section--tourist,
.section--operation,
.section--cases,
.section--process,
.section--cost { border-top: 1px solid var(--border); }

.section--reviews,
.section--marketing,
.section--map {
  max-width: none;
  padding: var(--section-padding-y) 0;
  border-top: 1px solid var(--border);
  overflow-x: hidden;
}
.section--inquiry {
  max-width: none;
  padding: var(--section-padding-y) 0;
  overflow-x: hidden;
}

/* ---------- 섹션별 컬러 리듬 (라이트 ↔ 다크 교차) ---------- */
.section--brand   { background: var(--deep-brown); border-top-color: rgba(255,255,255,0.12); }
.section--menu    { background: var(--light-beige); }
.section--store   { background: var(--deep-brown); border-top-color: rgba(255,255,255,0.12); }
.section--revenue { background: var(--vanilla); }
.section--success { background: var(--pumpkin); border-top-color: rgba(255,255,255,0.14); }
.section--reviews { background: var(--light-beige); }
.section--tourist { background: var(--deep-brown); border-top-color: rgba(255,255,255,0.12); }
.section--operation { background: var(--vanilla); }
.section--cases   { background: var(--deep-red); border-top-color: rgba(255,255,255,0.14); }
.section--marketing { background: var(--light-beige); }
.section--map     { background: var(--vanilla); }
.section--process { background: var(--light-beige); }
.section--cost    { background: var(--vanilla); }
.section--inquiry { background: var(--deep-red); }
.intro { background: var(--vanilla); }

/* 어두운 배경 섹션의 공통 텍스트 색상 재정의: 흰색/밝은 골드로 가독성 확보 */
.section--brand,
.section--store,
.section--success,
.section--tourist,
.section--cases {
  color: var(--vanilla);
}
.section--brand .eyebrow,
.section--store .eyebrow,
.section--success .eyebrow,
.section--tourist .eyebrow,
.section--cases .eyebrow { color: var(--light-gold); }
.section--brand .section__head h2,
.section--store .section__head h2,
.section--success .section__head h2,
.section--tourist .section__head h2,
.section--cases .section__head h2 { color: #fff; }
.section--brand .section__sub,
.section--store .section__sub,
.section--success .section__sub,
.section--tourist .section__sub,
.section--cases .section__sub { color: rgba(253, 251, 247, 0.82); }
.section--brand .info-card,
.section--success .info-card,
.section--tourist .info-card,
.section--cases .info-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.section--brand .info-card h3,
.section--success .info-card h3,
.section--tourist .info-card h3,
.section--cases .info-card h3 { color: var(--light-gold); }
.section--brand .info-card p,
.section--success .info-card p,
.section--tourist .info-card p,
.section--cases .info-card p { color: rgba(253, 251, 247, 0.85); }
.section--brand .brand-points strong { color: var(--light-gold); }
.section--brand .brand-points span { color: rgba(253, 251, 247, 0.85); }
.section--cases .hint {
  color: rgba(253, 251, 247, 0.7);
  border-left-color: var(--light-gold);
}
/* 성공사례 섹션은 배경이 주황(pumpkin)이라 골드 텍스트와 색이 겹쳐
   대비가 떨어집니다. 이 섹션에서만 골드 대신 흰색으로 보정합니다. */
.section--success .eyebrow,
.section--success .info-card h3 { color: #fff; }
/* 다크 섹션 안에서도 자체 배경(흰색 카드/알약형 칩)을 가진 컴포넌트는
   일반 라이트 모드와 같은 어두운 텍스트를 유지해야 합니다. 섹션
   전체에 준 밝은 텍스트 색이 그대로 상속되면 흰 배경 위에 흰 글씨가
   되어 안 보이는 문제가 생기기 때문입니다. (.chart-note는 흰색
   .tourist-chart 패널 안에 있으므로 원래 색 그대로 둡니다) */
.section--tourist .flow span:not(.flow__arrow) { color: var(--text-soft); }
.section--tourist .flow__arrow { color: var(--text-faint); }
.section--cases .case-card { color: var(--text); }
.section--reviews .section__head,
.section--marketing .section__head,
.section--map .section__head,
.section--inquiry .section__head {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
}

/* SNS 후기 타이틀을 위쪽 전체 폭에 두고, 그 바로 아래 줄 오른쪽에 리뷰
   요약 카드 2장을 나란히 배치. (이전에는 타이틀과 카드가 한 줄에서
   space-between으로 나뉘어 있어 타이틀 쪽에 빈 공간이 크게 남고, 좁은
   desktop 폭에서는 카드 2장이 들어갈 자리가 부족해 구글 카드만 다음 줄로
   떨어지는 문제가 있었음. 세로로 쌓아 카드 줄에 항상 컨테이너 전체 폭을
   내어주는 구조로 바꿔 두 문제를 함께 해결) */
.section--reviews .reviews-top {
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section--reviews .reviews-top .section__head {
  max-width: 60ch;
  margin: 0;
  padding: 0;
}
.mini-fan-section {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

/* SNS 후기 타이틀 옆의 리뷰 통계 요약 카드 2장(네이버/구글). 네이버 리뷰
   통계 위젯(태그별 언급 수)과 구글 평점 위젯 데이터를 같은 형식의 카드에 담음 */
.review-summary-card {
  width: min(360px, 100%);
  background: linear-gradient(160deg, #0d211a, #133327);
  border-radius: 1.25rem;
  padding: 28px 28px 32px;
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.35);
  color: #fff;
}

/* 네이버 카드: 아래로 살짝 내려서 밑에 펼쳐진 부채꼴 후기 카드들과 겹치게
   배치 (겹치는 영역은 .fan-section의 z-index가 더 높아 후기 카드가 위로
   보임). 겹치는 높이가 카드 하단 여백(참여자 텍스트 아래 빈 padding)
   범위 안에 들어오도록 값을 잡아, 실제 텍스트 위로는 겹치지 않습니다.
   transform은 문서 흐름(레이아웃 높이)에 영향을 주지 않으므로 타이틀과의
   간격은 그대로 유지됩니다. 두 카드가 세로로 쌓이는 좁은 화면(카드 2장이
   한 줄에 들어가지 못하는 지점=약 800px 이하)에서는 밑에 있는 구글
   카드와 겹치지 않도록 이 효과를 끕니다. */
.review-summary-card--naver {
  position: relative;
  z-index: 1;
  transform: translateY(130px);
}
@media (max-width: 800px) {
  .review-summary-card--naver { transform: none; }
}

/* 구글 카드: 네이버 카드와 같은 줄(같은 Y 위치)의 오른쪽에 배치하고,
   위아래로 살짝 떠다니는 애니메이션을 적용 */
.review-summary-card--google {
  animation: reviewCardFloat 4.2s ease-in-out infinite;
  background: linear-gradient(160deg, #10192b, #1b2a4a);
  box-shadow: 0 20px 40px rgba(15, 30, 60, 0.35);
}
.review-summary-card--google .review-summary-card__tagline {
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
}
/* 구글의 4색 브랜드 컬러 점 4개로 "네이버를 재탕한 카드"가 아니라 구글
   고유의 느낌이 나도록 작은 포인트를 줌 */
.review-summary-card__google-dots {
  display: inline-flex;
  gap: 3px;
}
.review-summary-card__google-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.review-summary-card__google-dots i:nth-child(1) { background: #4285f4; }
.review-summary-card__google-dots i:nth-child(2) { background: #ea4335; }
.review-summary-card__google-dots i:nth-child(3) { background: #fbbc05; }
.review-summary-card__google-dots i:nth-child(4) { background: #34a853; }
@keyframes reviewCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .review-summary-card--google { animation: none; }
}
.review-summary-card__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'GmarketSans', Pretendard, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}
.review-summary-card__brand { font-size: 1.35rem; color: #fff; }
.review-summary-card__tagline {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #a7f3d0, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.review-summary-card__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 22px;
}
.review-summary-card__divider { color: rgba(255, 255, 255, 0.3); }
.review-summary-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.review-summary-card__rating { flex: 0 0 auto; }
.review-summary-card__score {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.review-summary-card__stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.review-summary-card__meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.review-summary-card__tags {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.review-summary-card__tags li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}
.review-summary-card__tag-icon { font-size: 1rem; }
.review-summary-card__tag-label { flex: 1; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.review-summary-card__tag-count {
  font-weight: 700;
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
}
.review-summary-card__participants {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}
@media (max-width: 480px) {
  .review-summary-card { padding: 22px 20px 20px; }
  .review-summary-card__score { font-size: 2.6rem; }
  .review-summary-card__body { flex-direction: column; }
}

.section__head {
  max-width: 68ch;
  margin: 0 0 48px;
}
.section__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 6px 0 10px;
  font-family: 'Do Hyeon', 'Noto Sans KR', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
}
/* 매출/SNS 후기 타이틀만 붉은색으로 강조 */
.section--revenue .section__head h2,
.section--reviews .section__head h2 {
  color: var(--red);
}
.section__sub {
  color: var(--text-soft);
  margin: 0;
}
/* max-width:none인 전체 폭 섹션(.section--marketing 등)에 바로 붙는 문단은
   화면 가장자리에 글자가 붙어 잘려 보이지 않도록 자체 여백을 둠 */
.section--reviews > .section__sub,
.section--marketing > .section__sub,
.section--map > .section__sub {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  text-transform: uppercase;
  margin: 0;
}

.cta-inline { margin-top: 40px; }

/* 스크롤 등장 효과 */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 방향성 변형: 좌/우/줌에서 등장 */
.reveal--left { transform: translateX(-42px); }
.reveal--left.is-visible { transform: translateX(0); }
.reveal--right { transform: translateX(42px); }
.reveal--right.is-visible { transform: translateX(0); }
.reveal--zoom { transform: translateY(20px) scale(0.92); }
.reveal--zoom.is-visible { transform: translateY(0) scale(1); }
/* 순차 등장(스태거) 지연 */
.reveal-delay-1.is-visible { transition-delay: 0.1s; }
.reveal-delay-2.is-visible { transition-delay: 0.2s; }
.reveal-delay-3.is-visible { transition-delay: 0.3s; }
.reveal-delay-4.is-visible { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--zoom { opacity: 1; transform: none; transition: none; }
  /* 영상 자체를 숨기지 않고, script.js에서 재생만 멈춰 정지 화면으로 보여줍니다. */
  .video-modal, .video-modal__dialog,
  .photo-modal, .photo-modal__dialog { transition: none; }
}

/* ---------- 문단/문장이 위에서 아래로 순차적으로 페이드인되는 효과 ---------- */
/* script.js의 initStaggerReveal()이 .stagger-group의 직계 자식마다
   .stagger-line 클래스와 순차 transition-delay(0.18s 간격)를 부여하고,
   그룹이 뷰포트 안쪽으로 충분히 스크롤되어 들어오면 .is-visible을 붙여
   위→아래 순서로 0.25s 만에 Fade-in Up 되도록 합니다. word-break:
   keep-all로 모바일에서도 한글 단어 중간이 어색하게 끊기지 않도록 합니다. */
.stagger-line {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  word-break: keep-all;
  overflow-wrap: break-word;
  will-change: opacity, transform;
}
.intro__copy .stagger-line {
  display: block;
}
.stagger-group.is-visible .stagger-line {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .stagger-line { opacity: 1; transform: none; transition: none; }
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--deep-red) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--red-glow);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px var(--red-glow);
  filter: brightness(1.08);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(46, 32, 19, 0.3);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-ink); }
.btn--sm { padding: 9px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* 플레이스홀더 블록 (실제 이미지/영상 교체 전 자리표시) */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--bg-raised) 0 12px, var(--border) 12px 24px);
  padding: 24px;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 9 / 16; max-width: 340px; margin: 0 auto; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--menu { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- 상단 네비 ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(250, 250, 249, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.topbar.is-scrolled {
  background: rgba(250, 250, 249, 0.95);
  border-bottom-color: var(--border);
}
.topbar__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-ink);
}
.topbar__logo-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.topbar__nav { display: flex; gap: 22px; }
.topbar__nav a { font-size: 0.92rem; color: var(--text-soft); }
.topbar__nav a:hover { color: var(--text); }
.topbar__nav a.is-active { color: var(--gold-ink); font-weight: 700; }
@media (max-width: 760px) {
  .topbar__nav { display: none; }
}

/* ---------- 1. 히어로 ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__ph {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  font-size: 1rem;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 유튜브 쇼츠(세로 9:16) 배경 영상을 가로로 넓은 히어로 영역에 꽉 차게
   확대·크롭. 컨트롤바/제목/유튜브 로고가 뜰 여지가 없도록 iframe 자체를
   래퍼보다 항상 크게 만든 뒤 overflow:hidden으로 잘라내는 방식이라
   letterbox(검은 여백)가 생기지 않습니다. 비율 계산은 100vh/100vw 기준
   "object-fit: cover"를 순수 CSS로 재현한 공식(9:16 버전)입니다. */
.hero__yt-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero__yt-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 59vh;
  height: 105vh;
  min-width: 105vw;
  min-height: 187vw;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.hero__ph--1 { background: repeating-linear-gradient(135deg, #e7d6ad 0 14px, #ddc596 14px 28px); }
.hero__ph--2 { background: repeating-linear-gradient(135deg, #e7d6ad 0 14px, #ddc596 14px 28px); }
.hero__ph--3 { background: repeating-linear-gradient(135deg, #e2d3ae 0 14px, #d6c294 14px 28px); }
.hero__ph--4 { background: repeating-linear-gradient(135deg, #e7d6ad 0 14px, #ddc596 14px 28px); }
.hero__ph--5 { background: repeating-linear-gradient(135deg, #e2ceac 0 14px, #d5be92 14px 28px); }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.45) 0%, rgba(18, 18, 18, 0.15) 35%, rgba(18, 18, 18, 0.62) 100%);
  backdrop-filter: blur(1px);
}

/* 히어로 위 텍스트는 영상(어두운 배경) 위에 얹히므로 이 영역만 별도로
   밝은 잉크를 사용합니다. 1시 방향(우상단) 구석에 작게 배치, 배경 박스 없이
   text-shadow만으로 가독성을 확보합니다. */
.hero__content {
  position: absolute;
  z-index: 1;
  top: 80px;
  right: 12px;
  max-width: 280px;
  text-align: right;
}
.hero__content .eyebrow {
  color: #ffab40;
  font-size: 0.62rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}
.hero__title {
  font-family: "Gamja Flower", "Noto Serif KR", serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  margin: 8px 0 6px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
}
.hero__tagline {
  color: #f1e4c4;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  margin: 0;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.hero__dots {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}
.hero__dots button.is-active { background: #e9cf8f; width: 22px; border-radius: 5px; }

/* ---------- 유튜브 소개 ---------- */
.intro {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  gap: 36px;
  text-align: center;
}
.intro__copy {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 46ch;
  margin: 0 auto;
}
.intro__copy strong { color: var(--gold-ink); }

/* ---------- 2. 브랜드 ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.brand-media { min-width: 0; }
.brand-points { display: grid; gap: 22px; min-width: 0; }
.brand-points li { display: grid; gap: 4px; min-width: 0; }
.brand-points strong { color: var(--gold-ink); font-size: 1.05rem; }
.brand-points span { color: var(--text-soft); }
@media (max-width: 800px) {
  .brand-grid { grid-template-columns: 1fr; }
}

.factory-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}
.factory-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.factory-gallery__stage:active { cursor: grabbing; }
.factory-gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.factory-gallery__slide.is-active { opacity: 1; }
.factory-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.factory-gallery__thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  cursor: grab;
  touch-action: pan-y;
}
.factory-gallery__thumbs:active { cursor: grabbing; }
.factory-gallery__thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, border-color 0.25s ease;
}
.factory-gallery__thumb.is-active {
  width: 105px;
  opacity: 1;
  border-color: var(--gold);
}
.factory-gallery__thumb img { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .factory-gallery__thumb { transition: opacity 0.25s ease, border-color 0.25s ease; }
}
.factory-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .factory-gallery__slide { transition: none; }
}

/* 매장 소개/인테리어 섹션: .factory-gallery(공장 갤러리와 동일한 슬라이더
   컴포넌트)를 가운데 정렬된 폭으로 감싸서 단독 갤러리로 사용 */
.store-gallery-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- 3. 메뉴 ---------- */
.menu-subheading {
  font-family: "Gamja Flower", "Noto Serif KR", serif;
  font-size: 1.3rem;
  color: var(--gold-ink);
  margin: 56px 0 20px;
  text-align: center;
}

/* 사진 프레임 위에 제목이 올라가는 카드. 프레임(overflow:hidden)은 고정,
   내부 사진(__media)만 hover 시 확대됩니다. */
.menu-grid {
  display: grid;
  gap: 20px;
}
.menu-grid--signature {
  grid-template-columns: repeat(4, 1fr);
}
.menu-grid--side {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.menu-photo-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.menu-photo-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.menu-photo-card--sm { aspect-ratio: 1 / 1; }

.menu-photo-card__media {
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}
.menu-photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.menu-photo-card__media .ph {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}
.menu-photo-card:hover .menu-photo-card__media,
.menu-photo-card:focus-within .menu-photo-card__media {
  transform: scale(1.08);
}

/* 사진 위에서도 글자가 잘 보이도록 어두운 그라데이션 오버레이 */
.menu-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 8, 0) 45%, rgba(20, 14, 8, 0.78) 100%);
  pointer-events: none;
}
.menu-photo-card__title {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 16px 14px;
  color: #fff;
  font-family: "Gamja Flower", "Noto Serif KR", serif;
  font-size: 1.15rem;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.4);
}
.menu-photo-card--sm .menu-photo-card__title {
  font-size: 1rem;
  padding: 12px 10px;
}

.menu-note { text-align: center; color: var(--text-faint); margin-top: 32px; }

@media (max-width: 900px) {
  .menu-grid--signature { grid-template-columns: repeat(2, 1fr); }
  .menu-grid--side { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .menu-grid--signature { grid-template-columns: 1fr; }
  .menu-grid--side { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 4. 수익성 ---------- */
.month-block + .month-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px dashed var(--border);
}
.month-block__title {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-tile {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-tile__label { color: var(--text-soft); font-size: 0.85rem; margin: 0 0 8px; }
.stat-tile__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  margin: 0;
}
@media (max-width: 700px) {
  .stat-tiles { grid-template-columns: 1fr; }
}

.revenue-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .revenue-layout { grid-template-columns: 1fr; }
}

.calendar-wrap { overflow-x: auto; }
.calendar-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 280px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.calendar-grid th {
  background: var(--bg-card);
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}
.calendar-grid td {
  vertical-align: top;
  padding: 6px 4px 10px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-soft);
  font-family: 'Bitgoeul', 'Noto Sans KR', sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
  overflow-wrap: break-word;
}
.calendar-grid td.is-empty { background: rgba(0, 0, 0, 0.02); }
.calendar-grid .day-num {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 0.86rem;
  margin-bottom: 3px;
}
/* 일요일(첫 칸)은 빨간색, 토요일(마지막 칸)은 파란색으로 표시 */
.calendar-grid th:first-child { color: var(--red); }
.calendar-grid th:last-child { color: var(--weekend-blue); }
.calendar-grid td:first-child .day-num { color: var(--red); }
.calendar-grid td:last-child .day-num { color: var(--weekend-blue); }

/* 매출 상위 3일: 요일 색상보다 우선해서 강조 표시 */
.calendar-grid td.is-top3 {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--top3-red);
  color: var(--top3-red);
  font-weight: 700;
}
.calendar-grid td.is-top3 .day-num { color: var(--top3-red); }
.calendar-unit {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin: 8px 2px 0;
}
@media (max-width: 420px) {
  .calendar-grid th { font-size: 0.66rem; padding: 6px 2px; }
  .calendar-grid td { font-size: 0.62rem; padding: 4px 2px 8px; }
  .calendar-grid .day-num { font-size: 0.74rem; }
}

.revenue-chart {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.revenue-chart__note {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin: 12px 0 0;
}

.table-wrap { overflow-x: auto; margin-bottom: 32px; }
.table-note-vat {
  margin: 0 0 8px;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-ink);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
.data-table th, .data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.data-table th {
  color: var(--gold-ink);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}
.data-table tfoot td {
  font-weight: 700;
  color: var(--gold-ink);
  border-bottom: none;
  border-top: 2px solid var(--border);
}
.revenue-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  .revenue-media { grid-template-columns: 1fr; }
}
.disclaimer {
  font-size: 0.86rem;
  color: var(--text-faint);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}

/* ---------- 카드 그리드(공용: 소자본/외국인전략) ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.info-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h3 { font-size: 1.08rem; color: var(--gold-ink); margin-bottom: 10px; }
.info-card p { color: var(--text-soft); margin: 0; }

/* ---------- 6. SNS 후기 (부채꼴 카드 캐러셀) ---------- */
/* script.js의 initReviewFanCarousel()이 GSAP으로 카드를 부채꼴로 배치하고,
   호버 시 카드가 좌우로 밀리며 반응하는 인터랙션을 담당합니다. */
.fan-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 8px 24px 0;
}
/* 카드 크기/컨테이너 높이 모두 vw 기반 clamp()로 뷰포트 폭에 맞춰 부드럽게
   커지고 작아지도록 함 (특정 브레이크포인트에서 갑자기 튀는 현상 방지).
   script.js의 getIdealLayoutHeightPx()/getResponsiveMultiplier()가 아래
   clamp() 값과 같은 범위를 참조해 카드 간 간격이 항상 이 카드 크기에
   비례하도록(=카드끼리 벌어지거나 겹침이 어색해지지 않도록) 맞춰져 있습니다. */
.fan-layout {
  position: relative;
  width: 100%;
  max-width: 82rem;
  /* clamp() 최소/최대값은 24rem/38rem으로, 카드 CSS의 fan-card와 동일한
     기준 뷰포트(375~1440px)에서 부드럽게 늘어나도록 함 */
  height: clamp(24rem, 19.1rem + 21vw, 38rem);
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.fan-layout.is-dragging { cursor: grabbing; }

.fan-card {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  /* clamp() 최소/최대값은 11rem/19rem으로, 375~1440px 사이에서 부드럽게
     커짐 (특정 브레이크포인트에서 갑자기 튀지 않도록) */
  width: clamp(11rem, 8.2rem + 12vw, 19rem);
  aspect-ratio: 13 / 20;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(46, 32, 19, 0.28), 0 8px 10px -6px rgba(46, 32, 19, 0.22);
  opacity: 0;
  cursor: pointer;
  transform-origin: center bottom;
}
.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fan-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.fan-nav__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(46, 32, 19, 0.15);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.fan-nav__arrow:hover { border-color: var(--gold); color: var(--gold-ink); }
.fan-nav__dots { display: flex; align-items: center; gap: 8px; }
.fan-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: transform 0.3s ease, background 0.3s ease;
}
.fan-nav__dot.is-active { background: var(--gold-ink); transform: scale(1.3); }

/* ---------- 7. 외국인 관광객 전략 ---------- */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.flow span:not(.flow__arrow) {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
}
.flow__arrow { color: var(--text-faint); }
.flow__highlight {
  border-color: var(--gold) !important;
  color: var(--gold-ink);
}
.tourist-chart {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
}
.chart-note { color: var(--text-faint); font-size: 0.86rem; margin: 12px 0 0; }

/* ---------- 8. 운영 시스템 ---------- */
.operation-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.operation-list { display: grid; gap: 20px; }
.operation-list li { display: grid; gap: 4px; }
.operation-list strong { color: var(--gold-ink); }
.operation-list span { color: var(--text-soft); }
@media (max-width: 800px) {
  .operation-grid { grid-template-columns: 1fr; }
}

/* ---------- 9. 성공사례 ---------- */
.cases-track { position: relative; min-height: 220px; }
.case-card {
  display: none;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.case-card.is-active { display: block; }
.case-card__before { color: var(--gold-ink); margin: 0 0 18px; }
.case-card__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.case-card__stats dt { color: var(--text-faint); font-size: 0.8rem; margin-bottom: 4px; }
.case-card__stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .case-card__stats { grid-template-columns: repeat(2, 1fr); }
}

.interview-card {
  display: block;
  margin-top: 32px;
  position: relative;
}
.interview-card__label {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(46, 32, 19, 0.82);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.hint { color: var(--text-faint); font-size: 0.86rem; margin-top: 20px; }

/* ---------- 10. 마케팅 시스템 ---------- */
.marketing-grid {
  max-width: var(--container);
  margin: 0 auto 20px;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.marketing-chip {
  background: var(--bg-raised);
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
}

/* ---------- 11. 지도 ---------- */
.map-embed { }

/* ---------- 12. 창업 절차 ---------- */
.process-intro .hl { color: var(--red); font-weight: 700; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
@media (max-width: 860px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .process-grid { grid-template-columns: 1fr; gap: 18px; }
}
/* 전통 인장(도장) + 증서풍 모서리 장식 카드. 모서리 브래킷은 실제
   border 대신 8겹의 linear-gradient 배경으로 그려서 마크업 추가 없이
   4개 모서리에 "ㄴ"자 장식을 냅니다. */
.process-card {
  position: relative;
  padding: 36px 20px 28px;
  text-align: center;
  border-radius: 10px;
  background-color: var(--bg-card);
  background-image:
    linear-gradient(to right, var(--gold) 2px, transparent 2px),
    linear-gradient(to bottom, var(--gold) 2px, transparent 2px),
    linear-gradient(to left, var(--gold) 2px, transparent 2px),
    linear-gradient(to bottom, var(--gold) 2px, transparent 2px),
    linear-gradient(to left, var(--gold) 2px, transparent 2px),
    linear-gradient(to top, var(--gold) 2px, transparent 2px),
    linear-gradient(to right, var(--gold) 2px, transparent 2px),
    linear-gradient(to top, var(--gold) 2px, transparent 2px);
  background-repeat: no-repeat;
  background-size: 22px 22px;
  background-position: top left, top left, top right, top right, bottom right, bottom right, bottom left, bottom left;
  box-shadow: 0 10px 24px rgba(46, 32, 19, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(46, 32, 19, 0.16);
}
/* 단계별 내용에 맞는 이모지를 부드러운 색상 원 배지에 담아 표시.
   9장이 브랜드 팔레트(레드/골드/그린/펌킨) 4가지 톤을 순서대로 돌며
   너무 단조롭지 않게 색이 섞이도록 함 */
.process-card__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  font-size: 1.9rem;
  line-height: 1;
  background: rgba(220, 38, 38, 0.1);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.18);
}
.process-card:nth-child(4n+2) .process-card__emoji {
  background: rgba(184, 137, 46, 0.14);
  box-shadow: 0 4px 14px rgba(184, 137, 46, 0.2);
}
.process-card:nth-child(4n+3) .process-card__emoji {
  background: rgba(6, 78, 59, 0.1);
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.16);
}
.process-card:nth-child(4n) .process-card__emoji {
  background: rgba(216, 67, 21, 0.12);
  box-shadow: 0 4px 14px rgba(216, 67, 21, 0.2);
}
.process-card__num {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.process-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}
.process-card__desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.process-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 46ch;
  margin: 0 auto 40px;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: center;
}
.process-tagline__line {
  flex: 1 1 32px;
  height: 1px;
  background: var(--border);
}

/* ---------- 13. 개설 비용 ---------- */
/* 배경색은 위쪽 섹션별 컬러 리듬 규칙(.section--cost)에서 지정. 버건디
   헤더로 가맹비용 표를 더 선명하게 강조 */
.data-table--cost thead th {
  background: var(--red-dark);
  color: #fff;
  border-bottom: none;
}
.data-table--cost th,
.data-table--cost td { border-bottom: 1px solid var(--border); }
.data-table--cost td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cost-note {
  background: rgba(220, 38, 38, 0.07);
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--top3-red);
  font-weight: 600;
  margin-top: 20px;
}
.cost-fineprint {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 14px;
}

/* ---------- 14. 창업 문의 ---------- */
/* 배경색(딥 레드)은 위쪽 섹션별 컬러 리듬 규칙(.section--inquiry)에서 지정.
   화이트 폼 카드를 얹어 가독성과 임팩트를 동시에 확보 */
.section--inquiry .eyebrow { color: var(--light-gold); }
.section--inquiry .section__head h2 { color: #fff; }
.section--inquiry .section__sub { color: rgba(255, 255, 255, 0.88); }
.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__legend {
  font-size: 0.86rem;
  color: #222;
}
.field__desc {
  font-size: 0.78rem;
  color: #777;
  margin: -4px 0 0;
}
.field__required {
  color: var(--red);
  font-weight: 700;
}
.btn--block:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  padding: 12px 16px;
  color: #222;
  font-size: 0.96rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:hover,
.field select:hover { border-color: var(--terracotta); }
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(165, 42, 42, 0.15);
}
.radio-row, .checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #333;
  font-size: 0.9rem;
}
.checkbox-grid label, .radio-row label { display: flex; align-items: center; gap: 6px; }
.form-status { grid-column: 1 / -1; min-height: 1.4em; color: var(--gold-ink); margin: 0; }
.form-status.is-error { color: var(--red); }
.section--inquiry .inquiry-form {
  max-width: var(--container);
  margin: 0 auto;
}
@media (max-width: 700px) {
  .inquiry-form { grid-template-columns: 1fr; padding: 22px; }
  .section--inquiry .inquiry-form { margin: 0 16px; }
}

/* 창업 문의하기 버튼: 매트 블랙 + 호버 시 밝아지며 살짝 확대 */
.section--inquiry .btn--primary {
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.section--inquiry .btn--primary:hover {
  background: #2e2e2e;
  transform: translateY(-2px) scale(1.02);
}

/* ---------- Footer ---------- */
/* 가장 묵직한 다크 차콜 배경의 전체 폭 푸터 */
.footer {
  background: #0f0f0f;
  color: #888;
  padding: 64px 0 140px;
  overflow-x: hidden;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.footer__brand {
  display: block;
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
}
.footer__info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 24px;
  margin: 0 0 20px;
  font-size: 0.88rem;
}
.footer__info div { display: flex; gap: 6px; }
.footer__info dt { color: #aaa; flex-shrink: 0; white-space: nowrap; }
.footer__links { display: flex; gap: 18px; margin-bottom: 16px; font-size: 0.86rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: 0.8rem; margin: 0; }

/* ---------- 플로팅 CTA ---------- */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.floating-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(46, 32, 19, 0.18);
}
.floating-cta__btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
}
/* 전화·카카오톡 상담 버튼 임시 숨김 */
.floating-cta__btn--hidden { display: none; }

/* ---------- 맨 위로 버튼 (누르면 올라가요 + 레버 스위치) ---------- */
.back-to-top {
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* 이 버튼은 스크롤에 따라 배경이 크림/빨강/검정 등으로 계속 바뀌는
   플로팅 요소라, 배경색에 맞춰 글자색을 고르는 대신 흰 글자 + 두꺼운
   어두운 테두리(외곽선) 조합으로 어떤 배경 위에서도 항상 잘 보이게 처리 */
.back-to-top__label {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 3px rgba(20, 14, 8, 0.9);
  paint-order: stroke fill;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* 레버 스위치: 당기면(체크) 맨 위로 스크롤되고, 스크롤이 끝나면
   script.js가 체크를 풀어서 손잡이가 저절로 왼쪽 원위치로 돌아옵니다. */
.toggle-container {
  position: relative;
  display: block;
  width: 56px;
  height: 32px;
  cursor: pointer;
}
.toggle-input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.toggle-base {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9c9a8, #c3ac7d);
  border: 1px solid rgba(46, 32, 19, 0.35);
  box-shadow: 0 6px 14px rgba(46, 32, 19, 0.28), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}
.toggle-base-inside {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  box-shadow: inset 0 2px 4px rgba(46, 32, 19, 0.35);
}
.toggle-handle-wrapper {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.toggle-input:checked ~ .toggle-handle-wrapper {
  transform: translateX(24px);
}
.toggle-handle {
  position: relative;
  width: 100%;
  height: 100%;
}
.toggle-handle-knob {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff8ea, var(--gold));
  border: 1px solid rgba(46, 32, 19, 0.3);
  box-shadow: 0 3px 6px rgba(46, 32, 19, 0.35);
}
.toggle-handle-bar-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-handle-bar {
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: rgba(46, 32, 19, 0.35);
  box-shadow: -5px 0 0 rgba(46, 32, 19, 0.25), 5px 0 0 rgba(46, 32, 19, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .toggle-handle-wrapper { transition: none; }
}

/* ---------- 사진 갤러리 슬라이더 ---------- */
.gallery-slider {
  position: relative;
}
.gallery-slider__track {
  position: relative;
}
.gallery-slider__slide {
  display: none;
}
.gallery-slider__slide.is-active {
  display: block;
}
.gallery-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(251, 244, 230, 0.9);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-slider__arrow:hover { background: var(--bg-card); }
.gallery-slider__arrow--prev { left: 12px; }
.gallery-slider__arrow--next { right: 12px; }
.gallery-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.gallery-slider__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.gallery-slider__dots button.is-active {
  background: var(--gold);
  width: 22px;
  border-radius: 5px;
}

/* ---------- 영상 썸네일 (클릭 시 팝업 재생) ---------- */
.video-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(46, 32, 19, 0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-thumb:hover .video-thumb__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--red);
}

/* ---------- 유튜브 재생 모달 ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.video-modal.is-open { opacity: 1; visibility: visible; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.72);
}
.video-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 8vh auto 0;
  padding: 0 20px;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.is-open .video-modal__dialog {
  transform: scale(1) translateY(0);
}
.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal__close {
  position: absolute;
  top: -48px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 244, 230, 0.9);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 700px) {
  .video-modal__dialog { margin-top: 20vh; padding: 0 14px; }
}

/* ---------- 메뉴 사진 확대 모달 ---------- */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.photo-modal.is-open { opacity: 1; visibility: visible; }
.photo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.72);
}
.photo-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo-modal.is-open .photo-modal__dialog {
  transform: scale(1) translateY(0);
}
.photo-modal__media {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
}
.photo-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-modal__caption {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  color: var(--text);
}
.photo-modal__close {
  position: absolute;
  top: -48px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(251, 244, 230, 0.9);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
@media (max-width: 700px) {
  .photo-modal { padding: 16px; }
  .photo-modal__close { top: -48px; right: 0; }
}

/* ---------- 이벤트 팝업 ---------- */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}
.promo-modal.is-open { opacity: 1; visibility: visible; }
.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 8, 0.72);
}
.promo-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.promo-modal.is-open .promo-modal__dialog { transform: scale(1) translateY(0); }
.promo-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.promo-modal__poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 52px);
  object-fit: contain;
  overflow-y: auto;
}
.promo-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--border);
  font-size: 0.82rem;
  color: var(--text-soft);
}
.promo-modal__hide-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.promo-modal__footer-close {
  border: none;
  background: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 8px;
}
@media (prefers-reduced-motion: reduce) {
  .promo-modal, .promo-modal__dialog { transition: none; }
}
