/* layout.css — 사용자 틀(머리말·전체 메뉴·푸터). 원본 common.css 의 #header·.menu_area·#footer 를 옮겼다. */

/* ── 머리말 ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--container-wide);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header__logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.site-header__logo img { width: 160px; height: auto; }
@media (min-width: 960px) { .site-header__logo img { width: 230px; } }

.site-header__tools { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }

/* 언어 단추(원본 KO ▾) */
.lang-menu { position: relative; }
.lang-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--space-2);
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}
.lang-menu__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: var(--z-dropdown);
  min-width: 88px;
  padding: var(--space-1);
  border: 1px solid var(--color-line);
  border-radius: var(--r-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.lang-menu__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-3);
  border-radius: 6px;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.lang-menu__list a:hover { background: var(--color-primary-soft); color: var(--color-primary); }
@media (min-width: 960px) { .lang-menu__btn { font-size: var(--text-lg); } }

.menu-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--color-text);
  transition: transform .4s;
}
.menu-btn:hover { color: var(--color-primary); }

/* 가운데 메뉴(넓은 화면). 올리면 모든 하위 메뉴가 한 판에 펼쳐진다(원본 .manubg). */
.gnb { display: none; }
@media (min-width: 1280px) {
  .gnb { display: block; margin-inline: auto; }
  .gnb__list { display: flex; }
  .gnb__item { position: relative; }
  .gnb__link {
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 14px;
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--color-text);
    white-space: nowrap;
  }
  .gnb__item.is-active > .gnb__link,
  .gnb__link:hover,
  .gnb__item:focus-within > .gnb__link { color: var(--color-primary); }
  .gnb__sub {
    position: absolute;
    left: 14px;
    top: 100%;
    width: 200px;
    padding-top: var(--space-5);
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur);
  }
  .gnb__sub li + li { margin-top: 2px; }
  .gnb__sub a { display: inline-block; padding: 2px 0; font-size: var(--text-base); color: var(--color-text); }
  .gnb__sub a:hover,
  .gnb__sub a[aria-current="page"] { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

  .gnb-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 320px; /* 가장 긴 아티스트 8줄이 들어가는 높이 */
    transform: scaleY(0);
    transform-origin: top;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden; /* 닫힌 판이 화면 캡처·합성 층에 남지 않게 */
    transition: transform .35s var(--ease), opacity .3s, visibility .35s;
    pointer-events: none;
  }
  .site-header:has(.gnb:hover, .gnb:focus-within) .gnb__sub { visibility: visible; opacity: 1; }
  .site-header:has(.gnb:hover, .gnb:focus-within) .gnb-panel { transform: scaleY(1); opacity: 1; visibility: visible; }
}
@media (min-width: 1600px) {
  .gnb__link { padding: 0 22px; font-size: var(--text-md); }
  .gnb__sub { left: 22px; }
}

/* ── 전체 메뉴판(원본 .menu_area: 짙은 바탕, 화면 전체) ──── */
.fullmenu {
  position: fixed;
  inset: 0;
  z-index: var(--z-fullmenu);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-dark);
  color: #fff;
  animation: fullmenu-in .3s var(--ease);
}
@keyframes fullmenu-in { from { opacity: 0; } }
.fullmenu__top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: var(--container-wide);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.fullmenu__logo img { width: 160px; }
@media (min-width: 960px) { .fullmenu__logo img { width: 230px; } }
.fullmenu__lang {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 44px;
  margin-left: auto;
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}
.fullmenu__lang:hover { color: var(--color-dark-sub); }
.fullmenu__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
}
.fullmenu__close:hover .icon { transform: rotate(90deg); }
.fullmenu__close .icon { transition: transform .4s; }

.fullmenu__nav { padding: var(--space-6) var(--gutter) var(--space-8); }
.fullmenu__list { max-width: 640px; margin-inline: auto; }
.fullmenu__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.fullmenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  text-align: left;
}
.fullmenu__head:hover,
.fullmenu__head[aria-expanded="true"] { color: #b9a6ff; }
.fullmenu__head[aria-expanded="true"] .fullmenu__chev { transform: rotate(180deg); }
.fullmenu__chev { transition: transform var(--dur); }
.fullmenu__head--link { display: none; }
.fullmenu__sub { display: none; padding-bottom: var(--space-4); }
.fullmenu__item.is-open .fullmenu__sub { display: block; }
.fullmenu__sub a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-base);
  color: var(--color-dark-sub);
}
.fullmenu__sub a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* 넓은 화면: 원본처럼 메뉴를 가로로 늘어놓고 하위 메뉴를 모두 펼친다 */
@media (min-width: 960px) {
  .fullmenu { display: flex; flex-direction: column; }
  .fullmenu[hidden] { display: none; }
  .fullmenu__nav { flex: 1; display: flex; align-items: center; }
  .fullmenu__list {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    max-width: 1320px;
  }
  .fullmenu__item { border: 0; text-align: center; }
  .fullmenu__head[data-accordion-btn] { display: none; }
  .fullmenu__head--link,
  .fullmenu__head--solo { display: block; min-height: 0; text-align: center; font-size: var(--text-lg); }
  .fullmenu__head--link:hover,
  .fullmenu__head--solo:hover { color: #b9a6ff; }
  .fullmenu__sub { display: block; padding: var(--space-5) 0 0; }
  .fullmenu__sub a { justify-content: center; min-height: 0; padding: var(--space-3) 0; font-size: var(--text-md); }
}

/* ── 푸터 ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-line); background: var(--color-surface); }
.site-footer__inner { max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.site-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--color-line-strong);
  text-align: center;
}
.site-footer__links { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.site-footer__menu { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-4); }
.site-footer__menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: var(--text-base);
  color: var(--color-text);
}
.site-footer__menu a:hover { color: var(--color-primary); }
.site-footer__sns { display: flex; gap: var(--space-2); }
.site-footer__sns a,
.site-footer__sns span.is-pending {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #333;
  opacity: .7;
  transition: opacity var(--dur), color var(--dur);
}
.site-footer__sns span.is-pending { opacity: .3; }
.site-footer__sns a:hover { opacity: 1; color: var(--color-primary); }

.site-footer__bottom { position: relative; padding: var(--space-7) 0 var(--space-8); text-align: center; }
.site-footer__info p { font-size: var(--text-sm); color: var(--color-text); line-height: 1.7; font-weight: var(--weight-light); }
.site-footer__info p + p { margin-top: 2px; }
.site-footer__info .site-footer__copy { margin-top: var(--space-4); }
.site-footer__logo { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--space-6); opacity: .9; }
.site-footer__logo img { width: 160px; }

@media (min-width: 960px) {
  .site-footer__top { flex-direction: row; justify-content: space-between; padding: 30px 0; text-align: left; }
  .site-footer__links { flex-direction: row; gap: var(--space-7); }
  .site-footer__menu { gap: 0; }
  .site-footer__menu li { display: flex; align-items: center; }
  .site-footer__menu li + li::before {
    content: "";
    width: 5px;
    height: 5px;
    margin: 0 22px;
    border-radius: 50%;
    background: #979797;
  }
  .site-footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 40px; text-align: left; }
  .site-footer__info p { font-size: var(--text-base); }
  .site-footer__logo { margin-top: 0; }
  .site-footer__logo img { width: 230px; }
}

/* 짙은 바탕에서는 보라 포커스 테두리가 잘 안 보인다 */
.fullmenu :focus-visible { outline-color: #b9a6ff; }

/* ── 빠른 메뉴(원본 서브 화면 오른쪽 둥근 단추 + TOP) ── */
.quick-menu {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-6);
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.quick-menu__list { display: flex; flex-direction: column; gap: var(--space-2); }
.quick-menu__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow);
}
.quick-menu__btn--tel { background: #2bbf5a; color: #fff; }
.quick-menu__btn--kakao { background: #fee500; color: #191919; }
.quick-menu__btn--youtube { color: #e62117; }
.quick-menu__btn--instagram { color: #c13584; }
.quick-menu__btn--blog { color: #03c75a; }
.quick-menu__btn:hover { transform: translateY(-2px); }
.quick-menu__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  line-height: 1;
}
.quick-menu__top:hover { color: var(--color-accent-ink); }
@media (min-width: 1280px) { .quick-menu { right: var(--space-5); top: 40%; bottom: auto; } }
