.footer {
  background: #e5e5e5;
  color: #4d4d4d;
  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;
  }
}

/* ===== Footer ===== */
.ft {
  background: #e9e9e9;
  /* 스샷 같은 연회색 */
  color: #111;
  border-top: 1px solid #dcdcdc;
}

.ft__inner {
  width: min(100vw, 1180px);
  margin: 0 auto;
  padding: 22px 20px 34px;
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  /* 좌/중/우 */
  gap: 26px;
  align-items: start;
}

/* 왼쪽 */
.ft__logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 6px;
}

.ft__tel {
  display: block;
  text-decoration: none;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: .02em;
  color: #6a6a6a;
  /* 스샷처럼 진회색 톤 */
}

/* 가운데 */
.ft__policy {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.ft__policy a {
  color: #555;
  text-decoration: none;
  font-weight: 700;
}

.ft__policy a:hover {
  color: #222;
}

.ft__info {
  color: #555;
  line-height: 1.9;
  font-size: 14px;
}

.ft__info p {
  margin: 0;
}

.ft__info strong {
  color: #111;
  display: inline-block;
  margin-bottom: 4px;
}

.ft__info a {
  color: #444;
  text-underline-offset: 2px;
}

.ft__copy {
  margin-top: 10px;
  font-size: 13px;
  color: #6a6a6a;
}

/* 오른쪽 */
.ft__sitemap {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ft__sitemap a {
  color: #111;
  text-decoration: none;
  font-weight: 800;
}

.ft__sitemap a:hover {
  text-decoration: underline;
}

/* 반응형 */
@media (max-width:1024px) {
  .ft__inner {
    grid-template-columns: 1fr 1fr;
  }

  .ft__col--right {
    justify-self: end;
  }
}

@media (max-width:680px) {
  .ft__inner {
    grid-template-columns: 1fr;
    row-gap: 18px;
    text-align: center;
  }

  .ft__col--right {
    justify-self: center;
  }

  .ft__logo {
    margin: 0 auto 6px;
  }

  .ft__tel {
    font-size: 28px;
  }

  .ft__policy {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .ft__info {
    line-height: 1.8;
  }
}