/* 기본 푸터 스타일 */
.main-footer {
  background-color: #ffffff;
  padding: 24px 0; /* 좌우 패딩을 footer-wrap에서 제어하기 위해 0으로 변경 */
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: #000;
  text-align: center;
  box-sizing: border-box;
  border-top: 1px solid #e0e0e0;
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 80px;
  padding: 24px 20px; /* ★★★ 이 부분 수정: 헤더 컨테이너와 동일한 좌우 패딩 적용 ★★★ */
}

.footer-logo {
  margin-bottom: 0; /* 데스크탑에서 불필요한 마진 제거 */
  flex-basis: 242px; /* 로고 영역의 기본 너비 */
  text-align: left; /* ★★★ 이 부분 수정: 로고를 왼쪽 정렬 ★★★ */
}

.footer-logo img {
  width: 60px;
  height: auto;
}

.footer-info {
  flex-grow: 1;
  flex-shrink: 0;
  min-width: 0;
  text-align: center;
  padding: 0 10px;
  font-weight: 400;
  color: #666666;
}

.footer-info p {
  margin: 0 0 5px 0;
}

.footer-info a.tel-link,
.footer-info a.address-link { /* 멍하니님의 원본 CSS에 따라 .address-link 추가 및 스타일 일치 */
  color: #444444;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-info a.tel-link:hover,
.footer-info a.address-link:hover { /* 멍하니님의 원본 CSS에 따라 .address-link 추가 및 스타일 일치 */
  color: #333333;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-basis: 242px;
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
}

.icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: #444444;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.icon-link:hover {
  background-color: #E2788D;
  transform: scale(1.05);
}

.icon-link::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-link.phone::before {
  background-image: url('../img/icons/phone_W.svg');
}

.icon-link.kakao::before {
  background-image: url('../img/icons/kakao_W.svg');
}

.icon-link.naver-reserve::before {
  background-image: url('../img/icons/naver-reserve_W.svg');
}

.icon-link.instagram::before {
  background-image: url('../img/icons/instagram_W.svg');
}

.icon-link.blog::before {
  background-image: url('../img/icons/blog_W.svg');
}

.icon-link.youtube::before {
  background-image: url('../img/icons/youtube_W.svg');
}

/* 반응형 - 태블릿 및 모바일 대응 */

@media (max-width: 991px) {
  .footer-wrap {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 10px; /* ★★★ 반응형 패딩 유지 ★★★ */
    min-height: auto;
  }

  .footer-logo { /* ★★★ 모바일에서 로고 중앙 정렬을 위해 수정 ★★★ */
    width: 100%;
    flex-basis: auto;
    text-align: center;
  }

  .footer-logo img {
    max-width: 80px;
    height: auto;
    margin: 0 auto;
  }

  .footer-info {
    padding: 0 10px;
    margin: 0;
    line-height: 1.4;
    text-align: center; /* ★★★ 텍스트 정보 중앙 정렬 유지 ★★★ */
  }

  .footer-social { /* ★★★ 모바일에서 소셜 아이콘 중앙 정렬을 위해 수정 ★★★ */
    width: 100%;
    flex-basis: auto;
    justify-content: center;
    text-align: center;
  }

  .icon-link {
    width: 28px;
    height: 28px;
  }

  .icon-link::before {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 575px) {
  .footer-wrap {
    gap: 15px;
  }

  .footer-logo img {
    max-width: 70px;
  }

  .icon-link {
    width: 26px;
    height: 26px;
  }

  .icon-link::before {
    width: 14px;
    height: 14px;
  }
}
