.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(91, 53, 34, 0.12);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(91, 53, 34, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr 120px;
  align-items: center;
  max-width: var(--max);
  height: var(--header);
  margin: 0 auto;
  padding: 0 44px;
}

.logo a,
.mobile-head strong {
  display: inline-flex;
  flex-direction: column;
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.logo span {
  margin-top: 6px;
  color: var(--brown);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.gnb > ul {
  display: flex;
  justify-content: center;
}

.gnb-item {
  position: relative;
}

.gnb-item > a {
  display: flex;
  align-items: center;
  height: var(--header);
  padding: 0 28px;
  color: var(--brown);
  font-weight: 950;
}

.depth2 {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  min-width: 170px;
  padding: 16px;
  border-radius: 18px;
  background: var(--red);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 18px 34px rgba(126, 38, 26, 0.18);
}

.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 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.search-open,
.hamburger {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.search-open::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 13px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--brown);
  border-radius: 50%;
}

.search-open::after {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  width: 10px;
  height: 2px;
  background: var(--brown);
  transform: rotate(45deg);
  transform-origin: left center;
}

.hamburger {
  background: var(--brown);
}

.hamburger span {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 2px;
  background: var(--white);
}

.hamburger span:nth-child(1) {
  top: 16px;
}

.hamburger span:nth-child(2) {
  top: 22px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 24px 24px;
  background: rgba(29, 23, 20, 0.52);
  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(760px, 100%);
  padding: 34px;
  border-radius: 26px;
  background: var(--white);
}

.search-inner label span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 950;
}

.search-inner input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 2px solid var(--brown);
  border-radius: 999px;
  outline: none;
}

.search-close,
.mobile-close {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.search-close {
  top: 20px;
  right: 20px;
}

.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);
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.keywords strong,
.keywords a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.keywords strong {
  margin-right: 6px;
  color: var(--brown);
}

.keywords a {
  padding: 0 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font-weight: 800;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 140;
  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 {
  font-size: 1.24rem;
}

.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 button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  color: var(--brown);
  font-weight: 950;
  text-align: left;
}

.mobile-nav button::after {
  content: "+";
  color: var(--red);
  font-size: 1.25rem;
}

.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 a {
  display: block;
  min-height: 40px;
  padding: 9px 0;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  position: relative;
  padding: 68px 44px 48px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
}

.top-btn {
  position: absolute;
  top: -28px;
  right: 44px;
  min-width: 120px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 28px;
}

.footer-policy a {
  color: var(--white);
  font-weight: 850;
}

.footer-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.family {
  position: relative;
  width: 230px;
}

.family-btn {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  text-align: left;
}

.family ul {
  display: none;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
}

.family.is-open ul {
  display: block;
}

.family a {
  display: block;
  padding: 8px 0;
}

.site-footer address,
.site-footer p {
  line-height: 1.65;
}

@media (max-width: 1439px) {
  .header-inner {
    grid-template-columns: 220px 1fr 110px;
    padding: 0 32px;
  }

  .gnb-item > a {
    padding: 0 18px;
  }
}

@media (max-width: 1279px) {
  .gnb {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0 20px;
  }

  .logo a {
    font-size: 1.08rem;
  }

  .logo span {
    font-size: 0.58rem;
  }

  .search-open,
  .hamburger {
    width: 42px;
    height: 42px;
  }

  .search-inner {
    padding: 28px 20px;
  }

  .site-footer {
    padding: 58px 20px 42px;
  }

  .top-btn {
    right: 20px;
  }

  .footer-policy {
    display: grid;
    grid-template-columns: 1fr;
  }

  .family {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .header-inner {
    padding: 0 16px;
  }
}
