/* ============================================================
   우주의 집 — 동화 컨셉 디자인 시스템
   크림 화이트 + 우드 브라운 + 수채 파스텔 (기획안 §0)
   ============================================================ */

:root {
  --cream: #FBF7EF;
  --cream-alt: #F4EBDC;
  --paper: #FFFDF8;
  --wood: #6B4F3A;
  --wood-soft: #8A6B52;
  --wood-dark: #453427;
  --ink: #382E24;
  --body: #5C4F42;
  --muted: #94846F;
  --terracotta: #BE7048;
  --terracotta-dark: #A55C37;
  --sage: #9DB48C;
  --sky: #AFC9DA;
  --blossom: #EFC5B8;
  --butter: #F0DFAE;
  --line: #E8DECB;

  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 2px 8px rgba(90, 70, 50, 0.08);
  --shadow-md: 0 6px 22px rgba(90, 70, 50, 0.12);
  --shadow-lg: 0 14px 40px rgba(70, 52, 39, 0.18);

  --font-sans: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont,
               system-ui, Roboto, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR',
               'Malgun Gothic', sans-serif;
  --font-serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.serif { font-family: var(--font-serif); }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ---------- 섹션 공통 ---------- */
section { padding: 96px 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-align: center;
  margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--butter); }

.section-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--wood-dark);
  text-align: center;
  margin-bottom: 18px;
}
.section-title.light { color: var(--cream); }

.section-sub {
  font-size: 17px;
  color: var(--body);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

/* ---------- 리빌 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(190, 112, 72, 0.35);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn-ghost-light {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ---------- 헤더 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  color: #fff;
}
.header.scrolled {
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  color: var(--wood-dark);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gnb { display: flex; gap: 30px; }
.gnb a {
  font-size: 15.5px;
  font-weight: 500;
  opacity: 0.92;
  transition: opacity 0.2s;
  position: relative;
  padding: 6px 0;
}
.gnb a:hover { opacity: 1; }
.gnb a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--terracotta);
  transition: right 0.25s ease;
}
.gnb a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-reserve {
  background: var(--terracotta);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(190, 112, 72, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.btn-reserve:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.bgm-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.4px solid currentColor;
  opacity: 0.82;
  transition: opacity 0.2s, transform 0.2s, color 0.25s;
}
.bgm-toggle:hover { opacity: 1; transform: translateY(-1px); }
.bgm-note { width: 19px; height: 19px; }
.bgm-waves { display: none; align-items: flex-end; gap: 2.5px; height: 14px; }
.bgm-waves i {
  width: 2.5px;
  border-radius: 2px;
  background: currentColor;
  animation: bgmWave 1s ease-in-out infinite;
}
.bgm-waves i:nth-child(1) { height: 7px; animation-delay: 0s; }
.bgm-waves i:nth-child(2) { height: 13px; animation-delay: 0.25s; }
.bgm-waves i:nth-child(3) { height: 9px; animation-delay: 0.5s; }
@keyframes bgmWave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}
.bgm-toggle.playing { color: var(--terracotta); opacity: 1; }
.header.scrolled .bgm-toggle.playing { color: var(--terracotta); }
.bgm-toggle.playing .bgm-note { display: none; }
.bgm-toggle.playing .bgm-waves { display: inline-flex; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 28, 18, 0.42) 0%, rgba(40, 28, 18, 0.18) 45%, rgba(40, 28, 18, 0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-eyebrow {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  opacity: 0.95;
  margin-bottom: 20px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bob 2.2s ease-in-out infinite;
  opacity: 0.9;
}
.hero-scroll svg { width: 26px; height: 26px; }
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}

/* ---------- 프롤로그 ---------- */
.prologue { background: var(--cream); text-align: center; }
.prologue-text {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 2.15;
  color: var(--body);
  margin-bottom: 60px;
}
.prologue-text strong { color: var(--terracotta); font-weight: 700; }
.prologue-icons {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.picto { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.picto svg {
  width: 54px;
  height: 54px;
  color: var(--wood);
  background: var(--cream-alt);
  border-radius: 50%;
  padding: 26px;
  box-sizing: content-box;
  transition: transform 0.3s ease, background 0.3s ease;
}
.picto:hover svg { transform: translateY(-5px); background: var(--butter); }
.picto span { font-size: 15px; font-weight: 600; color: var(--wood); }

/* ---------- 사계절 ---------- */
.seasons { background: var(--cream-alt); }
.season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.season-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--paper);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.season-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.season-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.season-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(35, 24, 15, 0.72));
  color: #fff;
  font-size: 14.5px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.season-label {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
}

/* ---------- 공간 소개 ---------- */
.space { background: var(--cream); }
.space-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.space-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.space-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.space-img { overflow: hidden; }
.space-img img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.space-card:hover .space-img img { transform: scale(1.05); }
.space-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--wood-dark);
  padding: 18px 20px 6px;
}
.space-card p {
  font-size: 14.5px;
  color: var(--body);
  padding: 0 20px 22px;
  line-height: 1.65;
}

/* ---------- 인터루드 ---------- */
.interlude {
  position: relative;
  padding: 0;
  height: 420px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.interlude::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(38, 28, 18, 0.35);
}
.interlude-inner { position: relative; z-index: 1; padding: 0 24px; }
.interlude-inner p {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* ---------- 스튜디오 ---------- */
.studio {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 130px 0;
}
.studio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 20, 12, 0.88) 20%, rgba(30, 20, 12, 0.55) 70%, rgba(30, 20, 12, 0.4));
}
.studio-inner { position: relative; z-index: 1; }
.studio .section-eyebrow, .studio .section-title { text-align: left; }
.studio-desc {
  font-size: 17px;
  color: rgba(255, 250, 240, 0.88);
  margin-bottom: 34px;
  line-height: 1.9;
}
.studio-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}
.studio-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 250, 240, 0.92);
  font-size: 15.5px;
  font-weight: 500;
}
.studio-points svg { width: 22px; height: 22px; color: var(--butter); flex-shrink: 0; }
.studio-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 메뉴 ---------- */
.menu { background: var(--cream); }
.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.menu-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  transition: all 0.25s ease;
}
.menu-tab:hover { border-color: var(--terracotta); color: var(--terracotta); }
.menu-tab.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(190, 112, 72, 0.3);
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.menu-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.35s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.menu-card.hidden { display: none; }
.menu-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.menu-card:hover img { transform: scale(1.04); }
.menu-card figcaption { padding: 18px 20px 20px; }
.menu-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--wood-dark);
  margin-bottom: 4px;
}
.menu-card figcaption p {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-serif);
}
.menu-price {
  font-size: .8em;
  font-weight: 400;
  opacity: .72;
  margin-left: .35em;
  white-space: nowrap;
}

.menu-note {
  margin-top: 34px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- 갤러리 ---------- */
.gallery { background: var(--cream-alt); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- 손님 갤러리(고객 업로드) ---------- */
.customer-gallery { background: var(--cream); }
.customer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.customer-gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.customer-gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.customer-gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6px 9px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.customer-gallery-empty { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.customer-gallery-actions { text-align: center; }
.customer-gallery-form {
  max-width: 420px;
  margin: 22px auto 0;
  padding: 22px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.cg-field { display: block; margin-bottom: 14px; }
.cg-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.cg-field input[type=text] {
  width: 100%; padding: 11px 13px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; font-family: inherit;
}
.cg-field input[type=file] { width: 100%; font-size: 14px; }
.cg-consent {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 16px; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer;
}
.cg-consent input[type=checkbox] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; }
.customer-gallery-form .btn { width: 100%; margin-top: 4px; }
.customer-gallery-msg { margin: 10px 0 0; font-size: 13.5px; text-align: center; color: var(--muted); }
.customer-gallery-msg.err { color: #C4553F; }
.customer-gallery-msg.ok { color: #3D7A3D; }
@media (max-width: 860px) { .customer-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .customer-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- 라이트박스 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(25, 17, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-close svg { width: 26px; height: 26px; }

/* ---------- FAQ (메모지) ---------- */
.faq { background: var(--cream); }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.memo {
  position: relative;
  border-radius: 4px;
  padding: 34px 24px 22px;
  box-shadow: 0 8px 20px rgba(90, 70, 50, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.memo::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 88px;
  height: 26px;
  background: rgba(255, 253, 246, 0.62);
  border: 1px solid rgba(160, 140, 110, 0.18);
  box-shadow: 0 2px 5px rgba(90, 70, 50, 0.1);
}
.memo:nth-child(odd) { transform: rotate(-1.3deg); }
.memo:nth-child(even) { transform: rotate(1.1deg); }
.memo:hover { transform: rotate(0deg) translateY(-5px); box-shadow: 0 14px 30px rgba(90, 70, 50, 0.2); }
.memo-a { background: #FDF3D8; }
.memo-b { background: #FCE8DE; }
.memo-c { background: #E9F0E0; }
.memo-d { background: #E3EDF4; }
.memo-e { background: #F7E9F0; }
.memo-f { background: #FDF3D8; }
.memo-q {
  width: 100%;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1.5;
  padding-right: 26px;
  position: relative;
}
.memo-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--wood-soft);
  transition: transform 0.3s ease;
}
.memo.open .memo-q::after { transform: translateY(-50%) rotate(45deg); }
.memo-a-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-top 0.4s ease;
}
.memo.open .memo-a-body { max-height: 240px; padding-top: 14px; }
.memo-a-body p {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.8;
}

/* ---------- 오시는길 ---------- */
.location { background: var(--cream-alt); }
.location .section-title { margin-bottom: 52px; }
.location-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.location-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
  background: var(--paper);
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}
.location-info {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
}
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row > svg {
  width: 24px;
  height: 24px;
  color: var(--terracotta);
  flex-shrink: 0;
  margin-top: 3px;
}
.info-row h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}
.info-row p { font-size: 16.5px; color: var(--ink); line-height: 1.6; }
.info-row .muted { font-size: 13.5px; color: var(--muted); }
.tel-link {
  font-size: 24px;
  font-weight: 700;
  color: var(--wood-dark);
  letter-spacing: 0.01em;
}
.tel-link:hover { color: var(--terracotta); }
.location-info .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- 푸터 ---------- */
.footer {
  background: var(--wood-dark);
  color: rgba(250, 243, 230, 0.85);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .logo-mark { width: 34px; height: 34px; color: var(--butter); margin-bottom: 14px; }
.footer-name { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-copy { font-family: var(--font-serif); font-size: 14px; opacity: 0.75; }
.footer-info p { font-size: 14px; line-height: 2; opacity: 0.82; }
.footer-info a:hover { color: var(--butter); }
.footer-links { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--butter); }
.footer-links svg { width: 20px; height: 20px; }
.footer-legal {
  border-top: 1px solid rgba(250, 243, 230, 0.14);
  text-align: center;
  font-size: 12.5px;
  padding: 20px 24px;
  opacity: 0.55;
}

/* ---------- 모바일 하단 바 ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--paper);
  box-shadow: 0 -4px 18px rgba(70, 52, 39, 0.14);
}
.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 0 max(15px, env(safe-area-inset-bottom));
  font-size: 15.5px;
  font-weight: 700;
}
.mobile-bar-btn svg { width: 19px; height: 19px; }
.mobile-bar-btn.call { color: var(--wood); }
.mobile-bar-btn.reserve { background: var(--terracotta); color: #fff; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1024px) {
  .season-grid { grid-template-columns: repeat(2, 1fr); }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  section { padding: 64px 0; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15px; margin-bottom: 36px; }

  .gnb {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: rgba(251, 247, 239, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 18px;
    box-shadow: 0 14px 30px rgba(70, 52, 39, 0.14);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .gnb.open { transform: none; opacity: 1; pointer-events: auto; }
  .gnb a { color: var(--wood-dark); padding: 13px 28px; font-size: 16px; }
  .gnb a::after { display: none; }
  .hamburger { display: flex; }
  .header .btn-reserve { display: none; }
  .header.scrolled .btn-reserve { display: none; }

  .hero { min-height: 520px; }
  .hero-title { font-size: 34px; }
  .hero-eyebrow { font-size: 13px; }
  .btn-lg { padding: 14px 26px; font-size: 15.5px; }

  .prologue-text { font-size: 16px; line-height: 2.05; }
  .prologue-icons { gap: 26px; }
  .picto svg { width: 40px; height: 40px; padding: 20px; }
  .picto span { font-size: 13.5px; }

  .season-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .season-card figcaption { padding: 34px 12px 12px; font-size: 12.5px; gap: 7px; }
  .season-label { font-size: 17px; }

  .space-grid { grid-template-columns: 1fr; gap: 18px; }
  .interlude { height: 300px; background-attachment: scroll; }
  .interlude-inner p { font-size: 19px; }

  .studio { padding: 84px 0; }
  .studio-desc { font-size: 15px; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .menu-card figcaption { padding: 13px 14px 15px; }
  .menu-card h3 { font-size: 15px; }
  .menu-card figcaption p { font-size: 12.5px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }

  .location-grid { grid-template-columns: 1fr; gap: 28px; }
  .location-map, .location-map iframe { min-height: 300px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-bottom: 62px; }
  .footer-legal { padding-bottom: 20px; }

  .mobile-bar { display: flex; }
  body { padding-bottom: 0; }
}

/* ── 히어로 방송 배지 ────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 15px 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(20, 14, 10, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff4b3e;
  box-shadow: 0 0 0 3px rgba(255, 75, 62, 0.28);
  flex: none;
}

/* ── 플로팅 유튜브 버튼 ───────────────────── */
.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFDF8;
  border: 1px solid rgba(107, 79, 58, 0.14);
  color: #F5251B;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(70, 52, 39, 0.22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab:hover, .fab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(70, 52, 39, 0.30);
}
.fab:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.fab svg { width: 30px; height: 30px; flex: none; }

@media (max-width: 767px) {
  /* 하단 모바일 바와 겹치지 않게 위로 올림 */
  .fab {
    right: 16px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }
  .fab svg { width: 27px; height: 27px; }
  .hero-badge { font-size: 11.5px; padding: 6px 12px 6px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fab { transition: none; }
  .fab:hover, .fab:focus-visible { transform: none; }
}

/* BGM 자동재생이 막힌 상태 안내 */
.bgm-toggle.hint {
  opacity: 1;
  animation: bgmPulse 2.2s ease-out infinite;
}
@keyframes bgmPulse {
  0%   { box-shadow: 0 0 0 0 rgba(190, 112, 72, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(190, 112, 72, 0); }
  100% { box-shadow: 0 0 0 0 rgba(190, 112, 72, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .bgm-toggle.hint { animation: none; outline: 2px solid var(--terracotta); outline-offset: 2px; }
}

/* ===== 브랜드 로고 — 고객 제공 손글씨 워드마크 (2026-08-31) =====
   원본 = 고객사자료/로고_260831/로고PNG.png (순백·투명). 알파 마스크를 재채색해
   흰색(히어로·푸터·투명 헤더)과 우드다크(스크롤 후 크림 헤더) 2종을 쓴다. */
.logo-img { height: 34px; width: auto; display: block; }
.logo-img--ink { display: none; }
.header.scrolled .logo-img--white { display: none; }
.header.scrolled .logo-img--ink { display: block; }
.hero-logo {
  display: block;
  width: min(360px, 66vw);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.38));
}
.footer-logo { display: block; width: 156px; height: auto; margin-bottom: 14px; }
@media (max-width: 767px) {
  .logo-img { height: 28px; }
  .hero-logo { width: min(240px, 64vw); margin-bottom: 14px; }
  .footer-logo { width: 132px; }
}

/* ============================================================
   우주의 초대장 — 매월 선착순 2팀 무료 촬영 팝업 (2026-09-09)
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.invite {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.invite.open { opacity: 1; pointer-events: auto; }

.invite-dim {
  position: absolute;
  inset: 0;
  background: rgba(25, 17, 10, 0.62);
  backdrop-filter: blur(2px);
}

.invite-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px 20px 24px;
  transform: translateY(18px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.invite.open .invite-panel { transform: translateY(0) scale(1); }

.invite-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--wood-dark);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}
.invite-close:hover { background: var(--cream-alt); transform: rotate(90deg); }
.invite-close svg { width: 17px; height: 17px; }

/* 고객 제공 원본이 배경 투명 일러스트라 카드 테두리·그림자를 주지 않는다 */
.invite-card {
  width: 100%;
  height: auto;
}

/* ---------- 버튼 ---------- */
.invite-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.invite-btn {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.invite-btn:active { transform: translateY(1px); }
.invite-btn.primary { background: var(--terracotta); color: #fff; }
.invite-btn.primary:hover { background: var(--terracotta-dark); }
.invite-btn.primary[disabled] { background: var(--muted); cursor: default; }
.invite-btn.ghost { flex: 0 0 auto; padding-inline: 20px; color: var(--muted); background: var(--cream-alt); }
.invite-btn.ghost:hover { color: var(--body); }

/* ---------- 안내 ---------- */
.invite-head { padding: 6px 4px 0; }
.invite-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  margin-bottom: 6px;
}
.invite-h {
  font-size: 23px;
  line-height: 1.45;
  color: var(--wood-dark);
  margin-bottom: 10px;
}
.invite-lead { font-size: 14.5px; color: var(--body); line-height: 1.8; }
.invite-lead strong { color: var(--terracotta-dark); font-weight: 700; }

.invite-facts {
  list-style: none;
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.invite-facts li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.7;
}
.invite-facts li + li { margin-top: 7px; }
.invite-facts span {
  flex: 0 0 44px;
  font-weight: 700;
  color: var(--wood);
}

/* ---------- 폼 ---------- */
.invite-form { padding: 0 4px; }
.invite-row { display: flex; gap: 10px; }
.invite-row .invite-field { flex: 1; min-width: 0; }
.invite-field { display: block; margin-bottom: 12px; }
.invite-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 5px;
}
.invite-label em { color: var(--terracotta); font-style: normal; }
.invite-label small { font-weight: 400; color: var(--muted); }

.invite-field input,
.invite-field select,
.invite-field textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.invite-field textarea { resize: vertical; line-height: 1.6; }
.invite-field input:focus,
.invite-field select:focus,
.invite-field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(190, 112, 72, 0.13);
}
.invite-field input.err,
.invite-field textarea.err { border-color: #C4553F; box-shadow: 0 0 0 3px rgba(196, 85, 63, 0.12); }

.invite-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 2px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--body);
  cursor: pointer;
}
.invite-agree input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--terracotta); }
.invite-agree strong { color: var(--wood-dark); }
.invite-agree em { color: var(--terracotta); font-style: normal; }
.invite-agree.err span { color: #C4553F; }

.invite-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.invite-msg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #C4553F;
}
.invite-msg.ok { color: var(--sage); }

/* ---------- 완료 ---------- */
.invite-done { text-align: center; padding: 22px 8px 4px; }
.invite-done-mark { color: var(--sage); margin: 0 auto 14px; width: 62px; }
.invite-done-mark svg { width: 100%; height: auto; }
.invite-done .invite-actions { justify-content: center; }
.invite-done .invite-btn { flex: 0 0 auto; padding-inline: 40px; }

/* 폼 단계로 포커스를 옮길 때(입력칸 자동 포커스 대신) 테두리는 보이지 않게 */
.invite-step:focus { outline: none; }

/* ---------- 폭죽 ---------- */
/* 팝업 안이 아니라 화면 전체에 터진다 — 팝업(z 300)보다 위 */
.invite-confetti {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 400;
}
/* 각 조각은 터지는 지점(--ox,--oy)에서 시작해 포물선을 그리며 흩어진다 */
.invite-confetti i {
  position: absolute;
  left: var(--ox);
  top: var(--oy);
  width: var(--w, 9px);
  height: var(--h, 14px);
  border-radius: var(--r, 2px);
  opacity: 0;
  will-change: transform, opacity;
  animation: inviteBurst var(--dur, 1.5s) cubic-bezier(0.15, 0.6, 0.35, 1) var(--delay, 0s) forwards;
}
@keyframes inviteBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  12% { opacity: 1; }
  55% {
    transform: translate(calc(-50% + var(--tx) * 0.78), calc(-50% + var(--peak)))
               scale(1) rotate(calc(var(--rot) * 0.55));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty)))
               scale(0.92) rotate(var(--rot));
  }
}
/* 터지는 순간의 섬광 */
.invite-confetti u {
  position: absolute;
  left: var(--ox);
  top: var(--oy);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #FFF6D8;
  box-shadow: 0 0 22px 10px rgba(255, 233, 168, 0.85);
  opacity: 0;
  animation: inviteFlash 0.5s ease-out var(--delay, 0s) forwards;
}
@keyframes inviteFlash {
  0%   { opacity: 0; transform: scale(0.2); }
  25%  { opacity: 0.95; transform: scale(1.6); }
  100% { opacity: 0; transform: scale(3.4); }
}

@media (max-width: 480px) {
  .invite { padding: 3vh 14px; }
  .invite-panel { padding: 16px 15px 20px; border-radius: var(--radius-lg); }
  .invite-h { font-size: 20px; }
  .invite-row { flex-direction: column; gap: 0; }
  .invite-actions { flex-direction: column-reverse; }
  .invite-btn.ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .invite, .invite-panel { transition: none; }
  .invite-confetti { display: none; }
}
