/* ABOUT US 의 나머지 페이지(조직도·사업분야·오시는길·외부자문·협력기관·공지사항·Contact us·개인정보처리방침)
   히어로는 history.css 의 .hx-* 를 그대로 쓰고, 여기서는 본문만 다룬다.
   기존 CSS가 html{font-size:62.5%} 라서 rem 대신 px 를 쓴다. */

.sx :where(section, header, nav):not(.hx-hero) {
  margin: 0;
  padding: 0;
}

.sx :where(a) {
  text-decoration: none;
  color: inherit;
}

.sx :where(img) {
  max-width: 100%;
  vertical-align: top;
}

/* ───────── 히어로 ───────── */
.sx-hero {
  padding-bottom: 72px;
}

.sx-hero__top {
  margin-top: 56px;
}

.sx-hero .hx-eyebrow,
.sx-hero .hx-title,
.sx-hero .hx-lead {
  animation: sx-up 0.8s var(--hx-ease) backwards;
}

.sx-hero .hx-title { animation-delay: 0.07s; }
.sx-hero .hx-lead { animation-delay: 0.14s; max-width: 560px; }

@keyframes sx-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* ───────── 본문 공통 ───────── */
.sx-body {
  padding: 88px 0 120px;
}

.sx-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--hx-brand);
}

.sx-cap::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.sx-cap b {
  font-weight: 600;
  color: var(--hx-sub);
}

.sx .sx-h {
  margin-top: 14px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--hx-ink);
}

.sx .sx-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--hx-ink);
  background: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sx .sx-more::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.sx .sx-more:hover,
.sx .sx-more:focus-visible {
  border-color: var(--hx-brand);
  background: var(--hx-brand);
  color: #fff;
}

.sx .sx-more.is-fill {
  border-color: var(--hx-brand);
  background: var(--hx-brand);
  color: #fff;
}

.sx .sx-more.is-fill:hover,
.sx .sx-more.is-fill:focus-visible {
  border-color: var(--hx-navy-2);
  background: var(--hx-navy-2);
}

/* ───────── 조직도 ───────── */
.og {
  --og-gap: 16px;
  --og-drop: 36px;
}

.og-box {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.og-box small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  opacity: 0.6;
}

.og-box--ceo,
.og-box--core {
  color: #fff;
  background: linear-gradient(135deg, var(--hx-navy) 0%, var(--hx-navy-2) 100%);
}

.og-box--side {
  border: 1px solid var(--hx-line);
  color: var(--hx-ink);
  background: var(--hx-soft);
}

.og-top,
.og-mid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--og-gap);
  margin-bottom: var(--og-drop);
}

.og-top .og-box {
  grid-column: 2;
}

/* 위에서 아래로 내려오는 선 */
.og-top::after,
.og-mid::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: var(--og-drop);
  background: #b9c5d2;
}

.og .og-depts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--og-gap);
  padding-top: 28px;
}

/* 5개 본부를 잇는 가로선 */
.og .og-depts::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((100% - var(--og-gap) * 4) / 10);
  right: calc((100% - var(--og-gap) * 4) / 10);
  height: 1px;
  background: #b9c5d2;
}

.og-dept {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  background: #fff;
  overflow: visible;
}

.og-dept::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 29px;
  background: #b9c5d2;
}

.sx .og-dept h3 {
  padding: 16px 14px;
  border-radius: 15px 15px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  background: var(--hx-brand);
}

.sx .og-dept ul {
  display: grid;
  gap: 8px;
  padding: 20px 16px 22px;
}

.og-dept li {
  position: relative;
  padding-left: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--hx-sub);
}

.og-dept li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hx-accent);
}

/* ───────── 사업분야 ───────── */
.bz-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--hx-line);
}

.sx .bz-intro p.bz-intro__text {
  max-width: 640px;
  margin-top: 14px;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.03em;
  color: var(--hx-ink);
}

.bz-intro__text b {
  color: var(--hx-brand);
}

.sx .bz-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bz-jump a {
  padding: 10px 16px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hx-sub);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bz-jump a:hover,
.bz-jump a:focus-visible {
  border-color: var(--hx-brand);
  color: var(--hx-brand);
}

.bz-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 510px);
  gap: 32px 72px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--hx-line);
  scroll-margin-top: 110px;
}

.bz-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.bz-item:nth-child(even) .bz-item__img {
  order: -1;
}

.bz-no {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hx-accent);
  font-variant-numeric: tabular-nums;
}

.sx .bz-item h3 {
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--hx-ink);
}

.sx .bz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
}

.bz-tags li {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--hx-ink);
  background: var(--hx-soft);
}

.bz-item__img {
  overflow: hidden;
  border-radius: 20px;
  background: var(--hx-soft);
  aspect-ratio: 510 / 300;
}

.bz-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--hx-ease);
}

.bz-item:hover .bz-item__img img {
  transform: scale(1.04);
}

/* ───────── 오시는길 ───────── */
.lc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 32px;
  align-items: stretch;
}

.lc-map {
  overflow: hidden;
  min-height: 450px;
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  background: var(--hx-soft);
}

/* 카카오 지도 퍼가기가 넣는 고정 폭을 칸에 맞춘다 */
.lc-map .root_daum_roughmap {
  width: 100% !important;
  border: 0 !important;
}

.lc-map .root_daum_roughmap .wrap_map {
  width: 100% !important;
}

.lc-info {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(160deg, var(--hx-navy) 0%, var(--hx-navy-2) 100%);
}

.lc-info .sx-cap {
  color: var(--hx-accent);
}

.sx .lc-info h3 {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.sx .lc-info dl {
  display: grid;
  gap: 22px;
  margin: 32px 0;
}

.lc-info dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
}

.lc-info dd {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  color: #fff;
}

.lc-info__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.sx .lc-info .sx-more {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: transparent;
}

.sx .lc-info .sx-more:hover,
.sx .lc-info .sx-more:focus-visible,
.sx .lc-info .sx-more.is-fill {
  border-color: #fff;
  color: var(--hx-navy);
  background: #fff;
}

/* ───────── 외부자문 ───────── */
.sx .ad-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.ad-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--hx-ease);
}

.ad-card:hover {
  border-color: #c5d2de;
  box-shadow: 0 18px 40px rgba(14, 28, 43, 0.08);
  transform: translateY(-3px);
}

.ad-photo {
  overflow: hidden;
  border-radius: 14px;
  background: var(--hx-soft);
  aspect-ratio: 110 / 160;
}

.ad-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.4s ease;
}

.ad-card:hover .ad-photo img {
  filter: none;
}

.ad-role {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hx-brand);
  background: rgba(6, 84, 130, 0.08);
}

.sx .ad-card h3 {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hx-ink);
}

.ad-en {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--hx-sub);
}

/* ───────── 협력기관 ───────── */
.pt-group + .pt-group {
  margin-top: 72px;
}

.sx .pt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.pt-grid li {
  display: grid;
  place-items: center;
  padding: 14px 20px;
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  background: #fff;
  aspect-ratio: 280 / 150;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--hx-ease);
}

.pt-grid li:hover {
  border-color: #c5d2de;
  box-shadow: 0 14px 32px rgba(14, 28, 43, 0.08);
  transform: translateY(-3px);
}

.pt-grid img {
  max-height: 100%;
  object-fit: contain;
}

/* ───────── Contact us ───────── */
.ct-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
}

.sx .ct-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.ct-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--hx-line);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--hx-ease);
}

.ct-card.is-wide {
  grid-column: span 2;
}

a.ct-card:hover,
a.ct-card:focus-visible {
  border-color: var(--hx-brand);
  box-shadow: 0 18px 40px rgba(14, 28, 43, 0.08);
  transform: translateY(-3px);
}

.ct-card i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 17px;
  color: var(--hx-brand);
  background: rgba(6, 84, 130, 0.08);
}

.ct-card__label {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--hx-sub);
}

.ct-card__value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
  word-break: break-all;
}

.ct-card.is-wide .ct-card__value {
  word-break: keep-all;
}

/* ───────── 게시판(공지사항) ───────── */
.sx-board {
  padding: 72px 0 120px;
}

/* ───────── 문서(개인정보처리방침) ───────── */
.sx-doc {
  max-width: 880px;
  margin: 0 auto;
}

.sx .sx-doc p,
.sx .sx-doc li {
  font-size: 15.5px;
  line-height: 1.9;
  letter-spacing: -0.01em;
  color: #3a4654;
}

.sx .sx-doc strong {
  display: block;
  padding-top: 28px;
  border-top: 1px solid var(--hx-line);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hx-ink);
}

.sx .sx-doc ul {
  margin: 12px 0 0;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--hx-soft);
}

.sx .sx-doc li.tt {
  font-weight: 700;
  color: var(--hx-ink);
}

.sx .sx-doc__date {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hx-brand);
  background: rgba(6, 84, 130, 0.08);
}

/* ───────── 반응형 ───────── */
@media (max-width: 1000px) {
  .og-top,
  .og-mid {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .og-top .og-box {
    grid-column: auto;
  }

  .og-top::after,
  .og-mid::after,
  .og .og-depts::before,
  .og-dept::before {
    display: none;
  }

  .og-top,
  .og-mid,
  .og .og-depts {
    padding-top: 0;
    margin-top: 12px;
    gap: 12px;
  }

  .og-top {
    margin-top: 0;
  }

  .og-box--core {
    order: -1;
  }

  .og .og-depts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 32px;
  }

  .bz-intro,
  .ct-lead {
    grid-template-columns: 1fr;
  }

  .bz-item {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }

  .bz-item:nth-child(even) .bz-item__img {
    order: 0;
  }

  .lc {
    grid-template-columns: 1fr;
  }

  .sx .pt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sx .ct-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sx-hero {
    padding-bottom: 48px;
  }

  .sx-hero__top {
    margin-top: 36px;
  }

  .sx-body {
    padding: 56px 0 80px;
  }

  .sx-board {
    padding: 40px 0 80px;
  }

  .og .og-depts {
    grid-template-columns: 1fr;
  }

  .sx .ad-list {
    grid-template-columns: 1fr;
  }

  .ad-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .sx .ad-card h3 {
    font-size: 24px;
  }

  .pt-group + .pt-group {
    margin-top: 48px;
  }

  .sx .pt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pt-grid li {
    padding: 8px 12px;
  }

  .sx .ct-grid {
    grid-template-columns: 1fr;
  }

  .ct-card,
  .ct-card.is-wide {
    grid-column: auto;
    min-height: 0;
  }

  .lc-map {
    min-height: 320px;
  }

  .lc-info {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-hero .hx-eyebrow,
  .sx-hero .hx-title,
  .sx-hero .hx-lead {
    animation: none;
  }

  .sx *,
  .sx *::before,
  .sx *::after {
    transition: none !important;
  }
}
