/* ===== 컨테이너 ===== */

.inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.inner--full {
  max-width: none;
  padding: 0 var(--edge-space);
}

/* ===== 헤더(GNB) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);

  transition: transform 300ms ease;
  z-index: 100;
}

.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__logo {
  display: block;
  width: clamp(110px, 10vw, 186px);
  line-height: 0;
}

.header__logo img { max-width: 100%; }

.header__divider {
  width: 1px;
  height: 32px;
  margin: 0 clamp(12px, 1.2vw, 21px);
  background: #D9D9D9;
  opacity: 0.3;
}

.header__title {
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 700;
}

.header__btns {
  position: relative;
  margin-left: auto;
}

/* 900px 초과(기본) — 평소엔 펼친 목록 그대로, 트리거 버튼은 숨김 */
.header__btns-toggle { display: none; }

.header__btns-list {
  display: flex;
  gap: 6px;
}

.header__link {
  padding: 14px 24px;
  border-radius: 6px;
  background: var(--bg-btn);
  font-size: 14px;
  transition: background 150ms ease;
}

@media (hover: hover) {
  .header__link:hover,
  .header__link:focus-visible { background: #33383F; }
}

/* ===== 900px 이하 — 헤더 버튼 목록을 드롭다운으로 ===== */
/* [비활성] 드롭다운 사용 안 함 — 900px 이하에서도 가로 목록 유지. 되살릴 때는 이 블록과
   아래 600px 이하 블록의 주석 표시([비활성] ~ [/비활성])만 걷어내면 된다.
@media (max-width: 900px) {
  .header__btns-toggle {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 14px 44px 14px 24px;
    border: 0;
    border-radius: 6px;
    background: var(--bg-btn);
    color: var(--txt-color);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 150ms ease;
  }

  @media (hover: hover) {
    .header__btns-toggle:hover,
    .header__btns-toggle:focus-visible { background: #33383F; }
  }
*/
  /* 화살표는 srvy 설문 폼의 choices 셀렉박스(default.css .choices[data-type*="select-one"]::after)와
     동일한 SVG 쉐브론 + transform:rotate(180deg) 애니메이션을 그대로 쓴다. */
/*
  .header__btns-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 0;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7 9.5 2 4.5h10L7 9.5Z' fill='%23FFFFFF'/%3E%3C/svg%3E") no-repeat 50% 50%;
    pointer-events: none;
    transition: transform 150ms ease;
  }

  .header__btns-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .header__btns-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: -1px;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: var(--bg-btn);
    border: 1px solid #4D4D4D;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 200;
  }

  .header__btns-list.is-open { display: flex; }

  .header__btns-list .header__link {
    padding: 10px 16px;
    border-radius: 0;
    background: transparent;
  }

  @media (hover: hover) {
    .header__btns-list .header__link:hover,
    .header__btns-list .header__link:focus-visible { background: rgba(0, 0, 0, 0.2); }
  }
}
[/비활성] */

@media (max-width: 900px) {
  :root { --header-height: 56px; }

  .header__inner { padding: 0 16px; }
  .header__link { padding: 8px 14px; }
  .header__logo { width: 133px; }
}

/* [비활성] 드롭다운 전용(600px 이하 트리거 버튼 축소)
@media (max-width: 600px) {
*/
  /* 로고 폭(133px)이 고정이라 트리거 버튼이 그대로면 폭이 좁아질수록 로고와 거의 붙는다
     — 글자를 줄이고 좌우 여백을 좁혀 로고와의 간격을 확보한다. */
/*
  .header__btns-toggle {
    padding: 8px 30px 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header__btns-toggle::after { right: 10px; }

  .header__btns-list .header__link {
    padding: 10px 14px;
    font-size: 13px;
  }
}
[/비활성] */

@media (max-width: 620px) {
  .header__divider,
  .header__title { display: none; }
}

/* ===== 푸터 ===== */
.footer {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: var(--footer-height);
  background: transparent;
  z-index: 1;
}

body:has(.srvy) .footer {
  min-height: 0;
  z-index: 0;
}

.footer__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.footer__brand { font-size: 14px; font-weight: 700; }

.footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.footer__links .footer__link { position: relative; }

.footer__links .footer__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -9px;
  width: 1px;
  height: 14px;
  background: #FFFFFF;
  opacity: 0.3;
  transform: translateY(-50%);
}

@media (hover: hover) {
  .footer__link:hover,
  .footer__link:focus-visible { text-decoration: underline; }
}
@media (max-width: 900px) {
  .footer {
    min-height: 0;
  }
}
@media (max-width: 620px) {

  :root { --footer-height: 150px; }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 25px 16px 20px;
    min-height: 0;
  }

  .footer__brand,
  .footer__links { font-size: 12px; }

  .footer__bg {
    aspect-ratio: auto;
    height: 74px;
  }
}

/* ===== 푸터 배경 그라데이션 ===== */

.footer__bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1920/226;
    isolation: isolate;
    pointer-events: none;
    z-index: 0;
}

.footer__bg-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer__bg:before {
    content:"";
    position: absolute;
    inset: 0;
    background: url(../img/main/bottom_bg_overlay.png) no-repeat center bottom /cover;
    mix-blend-mode: soft-light;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
}