/* ===== Header: Container → Logo + PCNav + Hamburger, 메뉴 열림 시 MenuContainer ===== */
/* Container: 60px, border-bottom, 모바일(767px 이하)만 z-index 99999, 메뉴 열림 시 position fixed */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  border-bottom: 1px solid #dddee6;
  background-color: var(--color-systemWhite);
}
@media screen and (max-width: 767px) {
  .header {
    z-index: 99999;
  }
}
.header.header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}

/* HeaderContainer: 768px 이상 width 1200px, 모바일(767px 이하)만 width 100% / padding 0 54px */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  gap: 54px;
  padding: 0 24px;
}
@media screen and (min-width: 768px) {
  .header__inner {
    width: 1200px;
    padding: 0;
  }
}
@media screen and (max-width: 767px) {
  .header__inner {
    width: 100%;
    padding: 0 54px;
  }
}
@media screen and (max-width: 767px) {
  .header__inner {
    justify-content: space-between;
  }
}

/* Logo: 768px 이상 150px, 모바일(767px 이하) 130px */
.header__logo-link {
  display: block;
  cursor: pointer;
}
.header__logo {
  width: 150px;
  display: block;
}
@media screen and (max-width: 767px) {
  .header__logo {
    width: 130px;
  }
}

/* PCNav: 768px 이상 표시, 모바일(767px 이하)에서만 숨김 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 54px;
}
@media screen and (max-width: 767px) {
  .header__nav {
    display: none !important;
  }
}
.header__nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-system1);
  cursor: pointer;
  width: fit-content;
  text-align: center;
}
.header__nav-link.header__nav-link--active {
  font-weight: 700;
}
/* Hamburger: 모바일(767px 이하)에서만 표시, 24x24. 열림 시 delete.svg, 닫힘 시 hamburger.svg (JS 전환) */
.header__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .header__hamburger {
    display: flex !important;
  }
}
@media screen and (min-width: 768px) {
  .header__hamburger {
    display: none !important;
  }
}

/* MenuContainer: 풀화면 메뉴, 메뉴 열림 시만 표시(.is-open), body 스크롤 잠금은 JS */
.header__menu-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 60px);
  margin-top: 0;
  background: var(--color-systemWhite);
  z-index: 9999999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 64px;
}
.header__menu-overlay.is-open {
  display: flex;
}
.header__menu-link {
  font-size: 21px;
  font-weight: 400;
  color: var(--color-system1);
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .header__menu-link {
    font-size: 18px;
  }
}
.header__menu-link.header__menu-link--active {
  font-weight: 700;
}
@media (max-width: 767px) {
  .header__menu-link {
    font-size: 18px;
  }
}

/* Footer */
.footer {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  background-color: var(--color-system1);
}
@media screen and (max-width: 767px) {
  .footer { padding: 0; }
}
/* Footer: 768px 이상 데스크탑 스타일, 모바일(767px 이하)만 UI 변경 */
.footer__box {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
}
@media screen and (max-width: 767px) {
  .footer__box {
    gap: 24px;
    padding: 32px 24px;
    width: 100%;
  }
}
.footer__content {
  display: flex;
  flex-direction: row;
  gap: 60px;
}
@media (max-width: 767px) {
  .footer__content {
    flex-direction: column;
    gap: 24px;
  }
}
.footer__part {
  display: flex;
  flex-direction: column;
  gap: 60px;
  flex: 1;
  min-width: 230px;
}
@media (max-width: 767px) {
  .footer__part {
    gap: 24px;
    flex: unset;
  }
}
.footer__logo {
  width: 100px;
}
@media (max-width: 767px) {
  .footer__logo {
    width: 70px;
  }
}
.footer__text {
  font-size: 15px;
  line-height: 160%;
  color: var(--color-system9);
}
.footer__other {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.footer__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-system9);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__link {
  font-size: 15px;
  color: var(--color-system9);
  cursor: pointer;
}
.footer__link:hover {
  text-decoration: underline;
}
.footer__external {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--color-system9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.footer__external:hover {
  text-decoration: underline;
}
.footer__divider {
  width: 100%;
  min-height: 1px;
  background-color: var(--color-system9);
}
.footer__copyright {
  font-size: 15px;
  color: var(--color-system9);
}
@media screen and (max-width: 767px) {
  .footer__text,
  .footer__label,
  .footer__link,
  .footer__copyright {
    font-size: 13px;
  }
}
