.footer {
  border-top: 1px solid #cccccc;
}

.footer > .inner {
  position: relative;
}

.footer__goTop {
  position: absolute;
  z-index: 1;
  right: 50px;
  top: -30px;
  width: 60px;
  height: 60px;
  background-color: var(--c-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer__goTop:hover {
  background-color: #961a2c;
}

.footer__goTop span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-left: 1px solid #fff;
  border-top: 1px solid #fff;
  transform: rotate(45deg);
  margin-top: 6px;
}

.footer__top {
  border-bottom: 1px solid #cccccc;
  padding: 50px 0;
}

.footer__top .inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer__inquiries {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__inquiries h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer__inquiries div {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--c-main);
}

.footer__inquiries p {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.3;
  color: #999999;
}

.footer__icon {
  flex: 1;
  display: flex;
  gap: 30px;
}

.footer__icon li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer__icon li img {
  width: 50px;
  transition: transform .3s ease-in-out;
}

.footer__icon li span {
  font-size: 1rem;
  font-weight: 500;
  color: #999999;
}

.footer__icon li:hover img {
  transform: translateY(-3px);
}

.footer__menu {
  /* padding-right: 50px; */
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #999999;
}

.footer__bottom {
  padding: 30px 0;
}

.footer__bottom .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 300;
  color: #999999;
}

.footer__info li {
  border-right: 1px solid #999999;
  padding-right: 10px;
}

.footer__info li.is-row-end {
  border-right: 0;
  padding-right: 0;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__link img {
  width: 32px;
  display: block;
}

.footer__family__btn {
  width: 170px;
  position: relative;
}

.footer__family {
  width: 100%;
  height: 40px;
  border: 1px solid #999999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: .875rem;
  color: #999999;
  cursor: pointer;
}

.footer__family img {
  width: 14px;
  height: 14px;
  object-fit: cover;
}

.footer__family__link {
  display: none;
  position: absolute;
  bottom: calc(100% - 1px);
  width: 100%;
  border: 1px solid #999;
  background-color: #fff;
  color: #999;
}

.footer__family__link a {
  font-size: 0.875rem;
  display: block;
  padding: 10px 16px;
  transition: background-color .2s;
}

.footer__family__link a:hover {
  background-color: #f0f0f0;
}

.footer__family__btn:hover .footer__family__link {
  display: block;
}

/* --- 데스크탑 퍼스트 반응형 전체 코드 --- */

/* 1. 노트북 & 작은 데스크탑 (1440px) */
@media screen and (max-width: 1440px) {
  .footer__goTop {
    right: 30px;
  }
}

/* 2. 소형 노트북 (1280px) */
@media screen and (max-width: 1280px) {
  .footer__top .inner {
    gap: 40px;
  }

  .footer__icon {
    gap: 20px;
  }
}

/* 3. 태블릿 가로 (1024px) - 상단만 중앙 정렬 */
@media screen and (max-width: 1024px) {
  .footer__top {
    padding-bottom: 0;
    border-bottom: 1px solid #f3f3f3;
  }

  .footer__top .inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    padding: 0;
  }

  .footer__inquiries {
    width: 100%;
  }

  .footer__icon {
    flex: none;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 20px 40px;
    width: auto;
  }

  /* 하단 메뉴 2줄 배치 */
  .footer__menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding: 10px 0;
    background-color: #f3f3f3;
    margin-top: 20px;
  }

  .footer__bottom {
    padding: 50px 0;
  }

  .footer__bottom .inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* 4. 태블릿 세로 (768px) */
@media screen and (max-width: 768px) {
  .footer__top {
    padding: 40px 0;
    padding-bottom: 0;
  }

  .footer__inquiries div {
    font-size: 1.75rem;
  }

  /* 하단 영역: 요소들이 겹치면 세로로 쌓되, 정렬은 왼쪽(flex-start) */
  .footer__bottom .inner {
    flex-direction: column;
    align-items: flex-start;
    /* 왼쪽 정렬 사수! */
    gap: 25px;
  }

  .footer__family {
    height: 36px;
    padding: 0 12px;
    font-size: .75rem;
  }

  .footer__family__link a {
    font-size: 0.75rem;
    padding: 10px 12px;
  }

  .footer__info {
    justify-content: flex-start;
    /* 왼쪽 정렬 */
    text-align: left;
  }

  .footer__link {
    width: 100%;
    gap: 20px;
  }
}

/* 5. 스마트폰 세로 (480px) */
@media screen and (max-width: 480px) {
  .footer__goTop {
    width: 45px;
    height: 45px;
    top: -22px;
    right: 15px;
  }

  .footer__top {
    padding: 30px 0;
    padding-bottom: 0;
  }

  .footer__inquiries div {
    font-size: 1.5rem;
  }

  /* 아이콘/메뉴 중앙 정렬 유지 */
  .footer__icon {
    grid-template-columns: repeat(2, auto);
    gap: 30px 30px;
  }

  .footer__icon li img {
    width: 36px;
  }

  .footer__icon li span {
    font-size: .875rem;
    font-weight: 500;
  }

  .footer__menu {
    font-size: .875rem;
    font-weight: 400;
    gap: 14px;
    margin-top: 0;
  }

  .footer__bottom {
    padding: 30px 0;
  }

  .footer__link {
    gap: 10px;
  }

  .footer__family__btn {
    width: 100%;
  }

  .footer__info {
    font-size: 0.75rem;
    gap: 5px;
  }

  .footer__info li {
    padding-right: 5px;
  }
}