.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-top {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr 210px;
  align-items: center;
  width: min(1600px, calc(100% - 56px));
  min-height: 92px;
  margin: 0 auto;
}
.logo { text-align: center; }
.logo a,
.side-head strong,
.footer-follow strong {
  font-family: var(--serif);
  color: var(--black);
  font-size: 4rem;
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 0;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-direction: column;
  gap: 8px;
}
.menu-btn span { width: 30px; height: 2px; background: var(--black); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.header-actions a,
.search-btn { min-height: 42px; font-size: 0.78rem; font-weight: 900; color: var(--black); }
.search-btn { padding-left: 24px; position: relative; }
.search-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid var(--black);
  border-radius: 50%;
  transform: translateY(-50%);
}
.search-btn::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 27px;
  width: 8px;
  height: 2px;
  background: var(--black);
  transform: rotate(45deg);
}
.gnb { border-top: 1px solid var(--line); }
.gnb > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.2vw, 72px);
  width: min(1440px, calc(100% - 96px));
  min-height: 56px;
  margin: 0 auto;
}
.gnb-item { position: relative; }
.gnb-item > a {
  display: flex;
  align-items: center;
  min-height: 56px;
  color: var(--black);
  font-size: 0.86rem;
  font-weight: 950;
}
.gnb-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.gnb-item:hover > a::after,
.gnb-item:focus-within > a::after { transform: scaleX(1); }
.depth2 {
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  width: 190px;
  padding: 18px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: 0.22s ease;
}
.gnb-item:hover .depth2,
.gnb-item:focus-within .depth2 { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.depth2 a { display: block; padding: 8px 0; color: var(--muted); font-size: 0.82rem; font-weight: 850; }
.depth2 a:hover { color: var(--red); }

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(460px, 92vw);
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.32s ease;
  padding: 30px;
  overflow-y: auto;
}
.side-menu.is-open { transform: translateX(0); }
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.side-head strong { font-size: 3rem; }
.side-close {
  min-width: 56px;
  min-height: 40px;
  border: 1px solid var(--black);
  font-size: 0.8rem;
  font-weight: 900;
}
.side-login { display: flex; gap: 16px; margin-top: 28px; font-size: 0.82rem; font-weight: 900; }
.side-nav { margin-top: 34px; border-top: 2px solid var(--black); }
.side-nav li { border-bottom: 1px solid var(--line); }
.side-nav button,
.side-nav li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  color: var(--black);
  font-size: 1.05rem;
  font-weight: 950;
}
.side-nav button::after { content: "+"; color: var(--red); font-size: 1.2rem; }
.side-nav li.is-open button::after { content: "-"; }
.side-nav div { display: none; padding: 0 0 18px; }
.side-nav li.is-open div { display: grid; gap: 12px; }
.side-nav div a { color: var(--muted); font-size: 0.92rem; font-weight: 800; }
.side-sns { display: grid; gap: 10px; margin-top: 34px; color: var(--muted); font-size: 0.82rem; font-weight: 900; }
.dim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}
.dim.is-open { opacity: 1; visibility: visible; }

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255,255,255,0.96);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}
.search-layer.is-open { opacity: 1; visibility: visible; }
.search-box {
  width: min(760px, 100%);
  position: relative;
  border-top: 4px solid var(--black);
  padding-top: 28px;
}
.search-close {
  position: absolute;
  right: 0;
  top: 24px;
  min-height: 40px;
  font-weight: 900;
}
.search-box strong { display: block; font-size: 1.2rem; margin-bottom: 28px; }
.search-box form { display: grid; grid-template-columns: 1fr 96px; border-bottom: 3px solid var(--black); }
.search-box input { min-width: 0; min-height: 60px; border: 0; outline: 0; font-size: 1.35rem; }
.search-box form button { color: var(--red); font-weight: 950; }

.site-footer { border-top: 1px solid var(--line); background: #f8f8f8; }
.footer-follow { padding: 70px 24px; text-align: center; background: var(--white); border-bottom: 1px solid var(--line); }
.footer-follow strong { display: block; }
.footer-follow p { margin-top: 18px; color: var(--muted); line-height: 1.6; }
.footer-follow a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 20px;
  border-bottom: 2px solid var(--black);
  font-weight: 900;
}
.footer-inner {
  width: min(1440px, calc(100% - 96px));
  margin: 0 auto;
  padding: 46px 0 60px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 0.84rem; font-weight: 850; }
.footer-info { margin-top: 32px; color: var(--muted); font-size: 0.86rem; line-height: 1.7; }
.footer-info strong { display: block; color: var(--black); margin-bottom: 8px; }
.family { position: relative; margin-top: 28px; width: min(320px, 100%); }
.family button { width: 100%; min-height: 46px; border: 1px solid var(--black); padding: 0 16px; text-align: left; font-weight: 900; }
.family div { display: none; border: 1px solid var(--black); border-top: 0; background: var(--white); }
.family.is-open div { display: grid; }
.family a { padding: 12px 16px; font-size: 0.86rem; }

@media (min-width: 1280px) and (max-width: 1439px) {
  .header-top { width: calc(100% - 44px); }
  .gnb > ul { width: calc(100% - 72px); gap: 42px; }
}

@media (max-width: 1279px) {
  .header-top { width: calc(100% - 40px); min-height: 74px; grid-template-columns: 80px 1fr 80px; }
  .logo a { font-size: 3.1rem; }
  .header-actions a { display: none; }
  .header-actions { gap: 0; }
  .search-btn { width: 48px; overflow: hidden; text-indent: -999px; padding-left: 0; }
  .search-btn::before { left: 12px; }
  .search-btn::after { left: 27px; }
  .gnb { overflow-x: auto; }
  .gnb > ul { justify-content: flex-start; width: max-content; min-width: 100%; padding: 0 28px; gap: 34px; }
  .depth2 { display: none; }
  .footer-inner { width: calc(100% - 56px); }
}

@media (max-width: 767px) {
  .header-top { width: calc(100% - 28px); min-height: 82px; grid-template-columns: 48px 1fr 48px; }
  .logo a { font-size: 2.3rem; }
  .menu-btn, .search-btn { width: 44px; height: 44px; }
  .gnb { display: none; }
  .side-menu { width: 100%; padding: 24px 20px 34px; }
  .side-head strong { font-size: 2.5rem; }
  .search-box form { grid-template-columns: 1fr 70px; }
  .search-box input { min-height: 54px; font-size: 1rem; }
  .footer-follow { padding: 54px 18px; }
  .footer-follow strong { font-size: 3rem; }
  .footer-inner { width: calc(100% - 36px); }
}
