/* 1) footer 섹션과 내부 overflow 래퍼 둘 다 풀어주기 */
#fullpage .fp-section.s-footer,
#fullpage .fp-section.s-footer .fp-overflow {
  overflow: visible !important;
}

/* 2) 쌓임 순서: footer 섹션을 위로 올림 */
#fullpage .fp-section.s-footer {
  position: relative;
  z-index: 10;
  /* 필요 시 더 키워도 됨 */
}

/* (참고) 다른 섹션은 기본값 유지 */
#fullpage .fp-section {
  z-index: 1;
}

.footer {
  background: #262626;
  color: #ffffff;
  padding: 50px 0;
  font-size: 0.875rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer strong {
  color: #fff;
  font-weight: 600;
}

/* 상단 줄 */
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  position: relative;
}

.footer__gotop {
  position: absolute;
  right: 50px;
  top: -80px;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* 호버 효과 */
.footer__gotop:hover {
  background: #f2f2f2;
}

/* 화살표 아이콘 */
.footer__gotop span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-left: 3px solid #000;
  border-top: 3px solid #000;
  transform: rotate(45deg);
  /* ∧ 모양 */
  margin-top: 6px;
  /* 살짝 내려서 균형 */
}

.footer__logo img {
  height: 28px;
  display: block;
}

/* 메뉴 */
.footer__gnb {
  display: flex;
  gap: 34px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: #f2f2f2;
}

.footer__gnb a {
  position: relative;
  opacity: .85;
}

.footer__gnb a:hover {
  opacity: 1;
}

.footer__gnb a + a::before {
  content: "|";
  position: relative;
  left: -18px;
  color: rgba(255, 255, 255, .45);
}

/* 패밀리 사이트 */
.footer__family {
  position: relative;
}

.family-toggle {
  width: 200px;
  height: 32px;
  padding: 0 32px 0 14px;
  /* ▶ 오른쪽 여유 */
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}

.family-toggle .arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translateY(-50%) rotate(45deg);
  /* ▶ 합치기 */
  transition: transform .2s ease;
}

.family-toggle[aria-expanded="true"] .arrow {
  transform: translateY(-50%) rotate(-135deg);
  /* ▶ translate 유지 */
}

.family-list[hidden] {
  display: none !important;
}

.family-list {
  position: absolute;
  right: 0;
  top: 40px;
  width: 200px;
  background: #fff;
  color: #222;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  overflow: hidden;
  z-index: 5;
}

.family-list li a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
}

.family-list li a:hover {
  background: #f5f5f5;
}

/* 중간 정보 */
.footer__middle {
  margin-top: 18px;
  font-family: var(--font-static);
}

.footer .policy {
  display: inline-block;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.footer__middle .addr,
.footer__middle .contact {
  margin: 6px 0;
  color: #c8c8c8;
}

.footer__rule {
  height: 1px;
  background: rgba(255, 255, 255, .5);
  margin: 14px 0 12px;
}

/* 하단 */
.footer__bottom {
  color: rgba(255, 255, 255, .8);
  font-family: var(--font-static);
}

/* 반응형 */
@media (max-width: 960px) {
  .footer__top {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer__gnb {
    order: 3;
    width: 100%;
    gap: 18px;
    margin: 8px 0 0;
    font-size: 12px;
  }

  .footer__gnb a + a::before {
    left: -10px;
  }

  .footer__family {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .footer {
    font-size: 12px;
  }

  .footer__gnb {
    display: none;
  }

  /* 모바일은 메뉴 생략(스크린샷 기준) */
  .footer__middle .addr,
  .footer__middle .contact {
    line-height: 1.8;
  }
}