@charset "utf-8";

footer {
  width: 100%;
  align-items: center;
  /* 화면이 작아질 때 중앙 정렬이 자연스럽게 보일 수 있도록 수정 */
  flex-direction: column;
  background-color: #333;
  display: flex;
  padding: 60px 20px;
  /* 기본 패딩을 좌우 20px로 조정 */
  font-size: 14px;
}

.footer-box {
  width: 100%;
  max-width: 1400px;
  /* 최대 너비를 1400px로 설정하고 너비는 100%로 설정하여 화면 크기에 따라 조정되도록 함 */
}

.footer-box>h1 {
  width: 100%;
  padding-bottom: 30px;
  border-bottom: 1px solid #4D4D4D;
  margin-bottom: 30px;
}

.footer-box>h1>a {
  width: 120px;
  display: block;
}

.footer-box>h1>a>img {
  width: 100%;
  object-fit: cover;
}

.footer-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.company-details {
  display: flex;
  line-height: 24px;
  flex-direction: column;
  align-items: flex-start;
}

.company-details>li {
  padding-bottom: 5px;
  color: #a0a0a0;
  text-align: center;
}

.company-details>li>span {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid #555;
  color: #a0a0a0;
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  padding-bottom: 15px;
  flex-direction: column;
}

.footer-nav>li>a {
  display: block;
  padding: 8px 0;
  color: #a0a0a0;
}

.footer-nav>li:hover>a {
  cursor: pointer;
}

.footer-modal {
  display: none;
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: fixed;
  background-color: #282a2d;
  padding: 70px;
  border-radius: 20px;
  width: 50%;
  height: 75%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-content>h2 {
  font-weight: 500;
  font-size: 30px;
}

.modal-content>p {
  width: 100%;
  height: 50vh;
  margin-top: 50px;
  font-size: 15px;
}

.footer-close {
  position: absolute;
  top: 50px;
  right: 50px;
  color: #aaa;
  font-size: 40px;
}

.footer-close:hover,
.footer-close:focus {
  text-decoration: none;
  cursor: pointer;
}

.scrollable-content {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 20px;
}

/* Chrome, Edge, and Safari */
.scrollable-content::-webkit-scrollbar {
  border-radius: 50px;
  width: 5px;
}

.scrollable-content::-webkit-scrollbar-track {
  border-radius: 50px;
  background: #2e2e47;
}

.scrollable-content::-webkit-scrollbar-thumb {
  border-radius: 50px;
  background: #3375c1;
  /* 스크롤바의 핸들 설정 */
}

.footer-table {
  border: white 1px solid;
  width: 100%;
  height: 10%;
}

.footer-table td,
.footer-table th {
  border: white 1px solid;
  text-align: center;
  padding: 10px;
  width: 50%;
}

/* max-width 기준 */
@media (max-width: 1480px) {
  .footer-box {
    width: 80%;
  }
}

/* 모바일 기준 */
@media (max-width: 900px) {
  .footer-info {
    flex-direction: column;
  }

  .footer-box>h1 {
    display: flex;
    justify-content: center;
  }

  .company-details {
    align-items: center;
  }

  .footer-nav {
    margin-top: 20px;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 470px) {
  .company-details>li {
    font-size: 12px;
  }

  .footer-nav>li>a {
    font-size: 12px;
  }
}