/*
 * 사이트 바닥글(layout/footer.html). 두 공개 레이아웃(focus·base)이 함께 부른다.
 * 어느 디자인의 스타일시트에도 기대지 않도록 값과 색을 이 파일 안에서 정한다.
 *
 * 짜임: 윗띠(운영 주체 · 본사 바로가기 | 소셜 · 패밀리 사이트)
 *       본문(로고 | 회사 정보 + 저작권)
 * 바탕은 아주 옅은 회청색 - 머리말(흰 바탕 + 남색 로고)과 같은 톤으로 맞추고,
 * 글자는 남색 계열 회색으로 눌러 본문보다 한 단계 물러나 보이게 한다.
 */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid #e1e8ee;
  background: #f6f8fa;
  color: #6b7f91;
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

.site-footer-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 32px;
}

/* ---------- 윗띠 ---------- */
.site-footer-bar {
  border-bottom: 1px solid #e1e8ee;
  background: #fff;
}

.site-footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 12px;
}

.site-footer-owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: #20374b;
  font-size: 14px;
}

.site-footer-owner b {
  color: #17324d;
  font-weight: 700;
}

.site-footer-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: #17324d;
  color: #fff;
  font: 700 10px/1.2 Arial, sans-serif;
  letter-spacing: 1.2px;
}

.site-footer-hq {
  margin-left: 6px;
  color: #3b739c !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-color: rgb(59 115 156 / 35%) !important;
  text-underline-offset: 4px;
  transition: text-decoration-color .15s;
}

.site-footer-hq:hover {
  text-decoration-color: currentColor !important;
}

.site-footer-links {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
}

.site-footer-sns {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer-sns a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e1e8ee;
  border-radius: 50%;
  background: #fff;
  color: #6b7f91;
  transition: border-color .15s, background-color .15s, color .15s;
}

.site-footer-sns a:hover {
  border-color: #17324d;
  background: #17324d;
  color: #fff;
}

.site-footer-sns svg {
  width: 16px;
  height: 16px;
}

.site-footer-family {
  position: relative;
  width: 168px;
}

.site-footer-family summary {
  padding: 7px 14px;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  background: #fff;
  color: #20374b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.site-footer-family summary::-webkit-details-marker {
  display: none;
}

/* 펼침 표시(꺾쇠). 닫혀 있으면 위(펼칠 방향), 열리면 아래. */
.site-footer-family summary::after {
  content: "";
  float: right;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-top: 1.5px solid #8a99a8;
  border-left: 1.5px solid #8a99a8;
  transform: rotate(45deg);
}

.site-footer-family[open] summary::after {
  margin-top: 5px;
  transform: rotate(-135deg);
}

.site-footer-family summary:hover,
.site-footer-family[open] summary {
  border-color: #17324d;
}

/* 위로 펼친다 - 바닥글이 페이지 맨 아래라 아래로 펼치면 잘린다. */
.site-footer-family ul {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 5;
  margin: 0;
  padding: 6px 0;
  border: 1px solid #e1e8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(23 50 77 / 12%);
  list-style: none;
}

.site-footer-family li a {
  display: block;
  padding: 6px 14px;
  color: #20374b;
}

.site-footer-family li a:hover {
  background: #f4f8fb;
  color: #17324d;
}

/* ---------- 본문 ---------- */
.site-footer-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding-block: 36px 44px;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 9px;
  color: #17324d !important;
}

.site-footer-brand svg {
  flex: none;
  width: 30px;
  height: 35px;
}

.site-footer-name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

.site-footer-en {
  display: block;
  margin-top: 5px;
  color: #3b739c;
  font: 600 7px/1 Arial, sans-serif;
  letter-spacing: 2.6px;
}

.site-footer-company {
  font-style: normal;
}

.site-footer-company p {
  display: flex;
  flex-wrap: wrap;
}

.site-footer-company b {
  color: #20374b;
  font-weight: 700;
}

/* 항목 사이 세로 구분선 */
.site-footer-company span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 12px;
  background: #cfd8e0;
  vertical-align: middle;
}

.site-footer-company a:hover {
  color: #17324d;
  text-decoration: underline;
}

.site-footer-copy {
  margin-top: 14px !important;
  color: #93a3b1;
  font-size: 12px;
}

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .site-footer-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 56px;
  }

  .site-footer-inner {
    padding-inline: 18px;
  }

  .site-footer-hq {
    margin-left: 0;
  }

  .site-footer-links {
    flex-wrap: wrap;
  }
}
