.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: rgba(251, 243, 228, 0.94);
  border-bottom: 1px solid rgba(75, 49, 39, 0.12);
  backdrop-filter: blur(14px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 241, 0.98);
  box-shadow: 0 12px 34px rgba(68, 31, 22, 0.12);
}

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

.logo a,
.footer-brand,
.mobile-head strong {
  display: inline-flex;
  align-items: center;
  color: var(--red);
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo span,
.footer-brand span {
  margin-left: 8px;
  color: var(--brown);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.gnb > ul {
  display: flex;
  align-items: stretch;
}

.gnb-item {
  position: relative;
}

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

.gnb-item > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.depth2 {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  min-width: 162px;
  padding: 14px;
  border-radius: 16px;
  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(84, 32, 22, 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: 10px 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.depth2 a:hover,
.depth2 a:focus {
  color: #ffe4b7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.consult-link,
.mobile-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown);
}

.menu-btn span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(430px, 100%);
  height: 100vh;
  padding: 26px 24px 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: 28px;
}

.mobile-head strong {
  font-size: 1.4rem;
}

.mobile-close,
.quick-close {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.mobile-close::before,
.mobile-close::after,
.quick-close::before,
.quick-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.mobile-close::before,
.quick-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-close::after,
.quick-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.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-size: 1.08rem;
  font-weight: 900;
  text-align: left;
}

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

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

.mobile-consult {
  width: 100%;
  margin-top: 26px;
}

.site-footer {
  padding: 64px 6vw;
  background: #2b1812;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  align-self: start;
  color: #ffdfb7;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.66);
}

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

.footer-info a {
  color: var(--white);
  font-weight: 800;
}

.footer-info address {
  line-height: 1.75;
}

.footer-info p {
  margin-top: 20px;
}

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

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

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

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

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

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

  .menu-btn {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    padding: 22px 20px 34px;
  }

  .site-footer {
    padding: 52px 20px;
  }

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

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

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

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