.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(32, 22, 16, 0.1);
  backdrop-filter: blur(12px);
}
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(58, 30, 14, 0.13); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  max-width: var(--max);
  height: var(--header);
  margin: 0 auto;
  padding: 0 36px;
  gap: 26px;
}
.logo a, .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 10px 0 var(--yellow);
}
.gnb > ul { display: flex; align-items: center; gap: 24px; }
.gnb.right > ul { justify-content: flex-end; }
.gnb-item { position: relative; }
.gnb-item > a {
  display: flex;
  align-items: center;
  min-height: var(--header);
  color: var(--ink);
  font-weight: 950;
}
.depth2 {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  min-width: 172px;
  padding: 14px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.gnb-item:hover .depth2, .gnb-item:focus-within .depth2, .gnb-item.is-open .depth2 {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.depth2 a { display: block; padding: 9px 8px; color: rgba(255,255,255,0.9); font-weight: 800; white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.sns-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); font-size: 0.76rem; font-weight: 950; }
.search-open, .hamburger { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--white); }
.search-open::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.search-open::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.hamburger span { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--white); }
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 20px; }
.hamburger span:nth-child(3) { top: 26px; }
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 30px;
  background: rgba(32, 22, 16, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-layer.is-open { opacity: 1; visibility: visible; }
.search-inner { position: relative; width: min(720px, 100%); padding: 30px; border-radius: 30px; background: var(--paper); }
.search-inner span { display: block; margin-bottom: 12px; color: var(--red); font-weight: 950; }
.search-inner input { width: 100%; height: 58px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; outline: none; }
.search-close, .mobile-close {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.search-close { top: 18px; right: 18px; }
.search-close::before, .search-close::after, .mobile-close::before, .mobile-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 2px;
  background: currentColor;
}
.search-close::before, .mobile-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.search-close::after, .mobile-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 150;
  width: min(430px, 100%);
  height: 100vh;
  padding: 24px 22px 40px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mobile-head strong { color: var(--orange); font-size: 1.25rem; font-weight: 950; }
.mobile-close { position: relative; border: 1px solid var(--line); }
.mobile-nav > li { border-top: 1px solid var(--line); }
.mobile-nav > li:last-child { border-bottom: 1px solid var(--line); }
.mobile-nav a, .mobile-nav button { display: flex; align-items: center; width: 100%; min-height: 58px; color: var(--ink); font-weight: 950; text-align: left; }
.mobile-nav button { justify-content: space-between; }
.mobile-nav button::after { content: "+"; color: var(--red); font-size: 1.28rem; }
.mobile-nav li.is-open button::after { content: "-"; }
.mobile-nav ul { display: none; padding: 0 0 18px 14px; }
.mobile-nav li.is-open ul { display: block; }
.mobile-nav ul a { min-height: 38px; color: var(--muted); font-weight: 800; }
.site-footer { padding: 76px 44px 46px; background: var(--ink); color: rgba(255,255,255,0.74); }
.footer-inner { display: grid; grid-template-columns: 140px 1fr 240px; gap: 38px; max-width: var(--max); margin: 0 auto; align-items: start; }
.footer-logo { width: 92px; height: 92px; box-shadow: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a, .family a { color: rgba(255,255,255,0.84); font-weight: 800; }
.family-btn { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.28); color: var(--white); text-align: left; }
.family ul { display: none; padding: 10px 14px; background: rgba(255,255,255,0.08); }
.family.is-open ul { display: block; }
.family a { display: block; padding: 8px 0; }
.site-footer p { grid-column: 2 / -1; line-height: 1.6; }
@media (max-width: 1439px) {
  .header-inner { padding: 0 28px; gap: 18px; }
  .gnb > ul { gap: 16px; }
  .logo a { width: 92px; height: 92px; font-size: 1.05rem; }
}
@media (max-width: 1279px) {
  .gnb, .sns-link { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .logo { justify-self: start; }
  .logo a { width: auto; height: auto; padding: 0; background: transparent; color: var(--orange); box-shadow: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer p { grid-column: auto; }
}
@media (max-width: 767px) {
  .header-inner { padding: 0 20px; }
  .logo a { font-size: 1.18rem; }
  .site-footer { padding: 58px 20px 40px; }
}
@media (max-width: 320px) {
  .header-inner { padding: 0 16px; }
}
