.footer {
  background: #e0e0e0;
  color: #666666;
  padding: 70px 0;
  font-size: 1rem;
  position: relative;
}

.btn__goTop {
  width: 80px;
  height: 80px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 100px;
  top: -40px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 98;
}

.footer__top,
.footer__bottom {
  padding: 0 80px;
}

.footer__logo img {
  height: 50px;
  opacity: 0.8;
}

.footer__bar {
  background: #999999;
  width: 100%;
  height: 1px;
  margin: 1rem 0;
}

.footer__link {
  margin: 1rem 0;
}

.footer__flex {
  display: flex;
  justify-content: space-between;
}

.footer__info {
  display: flex;
  justify-content: start;
  gap: 1rem;
}

.footer__info li::after {
  content: '|';
  margin-left: 1rem;
}

.footer__info li:last-child::after {
  content: none;
}

.footer__site {
  font-family: "esamanru";
}

.footer__site img {
  margin-left: 0.5rem;
}

.footer__bottom p {
  font-size: 0.875rem;
}

/* ✅ 1280px 이하 */
@media screen and (max-width: 1280px) {

  .footer__top,
  .footer__bottom {
    padding: 0 40px;
  }

  .btn__goTop {
    right: 50px;
  }
}

/* ✅ 1024px 이하 */
@media screen and (max-width: 1024px) {
  .footer__flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer__info {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer__info li::after {
    content: none;
  }

  .btn__goTop {
    right: 30px;
    width: 70px;
    height: 70px;
  }
}

@media screen and (max-width: 768px) {

  .footer__top,
  .footer__bottom {
    padding: 0 20px;
  }

  .btn__goTop {
    width: 60px;
    height: 60px;
    right: 20px;
    top: -30px;
  }

  .footer {
    font-size: 0.875rem;
  }

  .footer__logo img {
    height: 60px;
  }

  .footer__bottom p {
    font-size: 0.75rem;
  }

  .footer__site img {
    margin-left: 0.25rem;
  }
}

/* ✅ 390px 이하 */
@media screen and (max-width: 390px) {

  .btn__goTop {
    top: -25px;
    width: 50px;
    height: 50px;
  }

  .footer__top,
  .footer__bottom {
    padding: 0 10px;
  }
}