/* 1) footer 섹션과 내부 overflow 래퍼 둘 다 풀어주기 */
.fp-section.s-footer,
.fp-section.s-footer .fp-tableCell,
.fp-section.s-footer .fp-overflow,
.fp-section.s-footer .fp-scroller {
  overflow: visible !important;
}

/* 2) 쌓임 순서: footer 섹션을 위로 올림 */
#fullpage .fp-section.s-footer {
  position: relative;
  z-index: 10;
  /* 필요 시 더 키워도 됨 */
}

/* (참고) 다른 섹션은 기본값 유지 */
#fullpage .fp-section {
  z-index: 1;
}

.footer {
  color: #ffffff;
  background-color: #000000;
}

.footer > .inner {
  position: relative;
  z-index: 2;
}

.footer__gotop {
  position: absolute;
  right: 40px;
  top: -25px;
  width: 50px;
  height: 50px;
  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;
}

@media screen and (max-width: 768px) {
  .footer__gotop {
    right: 30px;
    top: -20px;
    width: 40px;
    height: 40px;
  }

  .footer__gotop span {
    width: 12px;
    height: 12px;
  }
}

@media screen and (max-width: 480px) {
  .footer__gotop {
    right: 20px;
    top: -15px;
    width: 36px;
    height: 36px;
  }

  .footer__gotop span {
    width: 10px;
    height: 10px;
    border-left: 2px solid #000;
    border-top: 2px solid #000;
  }
}

.footer__top {
  padding: 40px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.footer__top .inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.footer__logo img {
  height: 60px;
}

.footer__menu {
  display: flex;
  gap: 30px;

  font-size: 1rem;
  font-weight: 500;
}

.footer__bottom {
  padding: 20px 0 70px;
}

.footer__info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 2;
  margin-bottom: 30px;
}

.footer__info .inline {
  display: inline;
  margin-right: 60px;
}

.footer__info span {
  font-weight: 700;
  margin-right: 10px;
}

.footer__end {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__copy {
  text-transform: uppercase;
}

.footer__copy br {
  display: none;
}

.footer__link a {
  text-decoration: underline;
}

.footer__link a:hover {
  text-decoration: none;
}

/* 1440px: 미세 여백 조정 */
@media screen and (max-width: 1440px) {
  .footer__top .inner {
    padding: 0 40px;
  }

  .footer__bottom .inner {
    padding: 0 40px;
  }
}

/* 1280px: 여백 유지 */
@media screen and (max-width: 1280px) {

  .footer__top .inner,
  .footer__bottom .inner {
    padding: 0 30px;
  }
}

/* 1024px: 메뉴 간격 및 정보 레이아웃 대응 */
@media screen and (max-width: 1024px) {
  .footer__menu {
    gap: 20px;
    font-size: 0.95rem;
  }

  .footer__info .inline {
    margin-right: 40px;
  }
}

/* 768px: 수직 구조 전환 (여기서부터 변화가 큽니다) */
@media screen and (max-width: 768px) {
  .footer__top {
    padding: 40px 0 30px;
  }

  .footer__top .inner {
    flex-direction: column;
    align-items: flex-start;
    /* 왼쪽 정렬로 변경 */
    gap: 30px;
  }

  .footer__logo {
    width: 100%;
    text-align: center;
  }

  .footer__logo img {
    height: 45px;
  }

  /* 로고 살짝 축소 */

  .footer__menu {
    width: 100%;
    gap: 0;
    justify-content: space-around;
    /* 메뉴를 가로로 넓게 분산 */
  }

  .footer__menu li a {
    font-size: 0.9rem;
  }

  .footer__bottom {
    padding: 30px 0 50px;
  }

  .footer__info .inline {
    display: block;
    /* 이메일/대표자 각각 한 줄씩 */
    margin-right: 0;
    margin-bottom: 5px;
  }

  .footer__info {
    line-height: 1.6;
    margin-bottom: 40px;
  }

  .footer__end {
    flex-direction: column-reverse;
    /* 카피라이트를 아래로, 링크를 위로 */
    align-items: flex-start;
    gap: 15px;
  }
}

/* 480px: 모바일 최적화 (가장 작은 화면) */
@media screen and (max-width: 480px) {

  .footer__top .inner,
  .footer__bottom .inner {
    padding: 0 25px;
  }

  .footer__menu {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    /* 메뉴를 2단으로 배열 */
    gap: 15px 0;
  }

  .footer__info {
    font-size: 0.8rem;
  }

  .footer__info p span {
    display: block;
    margin-bottom: 2px;
  }

  /* 항목 이름을 위로 빼서 가독성 확보 */

  .footer__end {
    font-size: 0.75rem;
  }

  .footer__copy br {
    display: inline-block;
  }
}