@charset "utf-8";
/* ==========================================================================
   common.css - 공통 (리셋 / 변수 / 헤더 / 전체메뉴 / 푸터)
   메인·서브 페이지 모두 사용
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --color-primary: #1d4f91;      /* 네이비 (햄버거, 강조) */
  --color-point: #2e8de6;        /* 라이트 블루 (ENG, 버튼) */
  --color-accent: #e8793a;       /* 오렌지 (아이콘 포인트) */
  --color-bg: #edf3f3;           /* 본문 배경 */
  --color-dark: #2b2b2b;         /* 푸터 배경 */
  --color-text: #222;
  --color-text-sub: #666;
  --color-line: #e3e7ea;
  --inner: 1270px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 40, 60, 0.06);
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li, dl, dt, dd,
form, label, table, header, footer, nav, section, article, aside, main, figure, button {
  margin: 0; padding: 0; border: 0;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  word-break: keep-all;
}
body.is-lock { overflow: hidden; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: top; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-nav a {
  position: absolute; top: -100px; left: 0; z-index: 1000;
  padding: 10px 20px; background: var(--color-primary); color: #fff;
}
.skip-nav a:focus { top: 0; }

.inner { width: 100%; max-width: var(--inner); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1311px) { .inner { padding: 0; } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--color-line); }
.header__top .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Logo */
.logo a { display: flex; align-items: center; gap: 8px; }
.logo__mark {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 30px; height: 34px; line-height: 1;
}
.logo__mark b {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 26px; border-radius: 4px 4px 0 0;
  background: var(--color-text); color: #fff; font-size: 17px; font-weight: 800;
}
.logo__mark small { font-size: 8px; font-weight: 800; letter-spacing: 0.02em; margin-top: 1px; }
.logo__text { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }

/* Util */
.util { display: flex; align-items: center; gap: 16px; }
.util__member { display: flex; align-items: center; gap: 14px; font-size: 14px; color: #333; }
.util__member li { display: flex; align-items: center; }
.util__member a { display: inline-flex; align-items: center; height: 30px; line-height: 28px; vertical-align: top; }
.util__member a span { display: block; height: 28px; line-height: 28px; }
.util__member a:hover { color: var(--color-point); }
.btn-login {
  padding: 0 16px;
  border: 1px solid #ccc; border-radius: 15px;
}
.btn-login:hover { border-color: var(--color-point); }
.util__join { gap: 3px; }
.util__join svg { display: block; flex-shrink: 0; width: 15px; height: 15px; }
.util__btns { display: flex; align-items: center; gap: 8px; }
.btn-lang {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-point); color: #fff; font-size: 12px; font-weight: 500;
}
.btn-allmenu {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary);
}
.btn-allmenu .bar { display: block; width: 16px; height: 2px; background: #fff; transition: transform 0.25s, opacity 0.25s; }
.btn-allmenu[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.btn-allmenu[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.btn-allmenu[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* SNS (header / footer / mobile 공용) */
.sns { display: flex; align-items: center; gap: 4px; }
.sns a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%; color: #999; transition: color 0.2s, border-color 0.2s;
}
.sns a:hover { color: var(--color-primary); border-color: var(--color-primary); }
.sns svg { width: 16px; height: 16px; }
.header .sns { margin-left: 8px; }

/* GNB */
.gnb .inner { position: relative; }
.gnb__list { display: flex; justify-content: space-between; }
.gnb__list > li { position: relative; }
.gnb__list > li.gnb__hidden, .allmenu__list > li.gnb__hidden { display: none !important; }
.gnb__list > li > a {
  position: relative; display: block; padding: 0 16px; line-height: 68px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em;
}
.gnb__list > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0;
  height: 3px; background: var(--color-primary); transform: scaleX(0); transition: transform 0.25s;
}
.gnb__list > li:hover > a, .gnb__list > li:focus-within > a { color: var(--color-primary); }
.gnb__list > li:hover > a::after, .gnb__list > li:focus-within > a::after { transform: scaleX(1); }
.gnb .depth2 {
  position: absolute; top: 100%; left: 50%; min-width: 170px; padding: 14px 0;
  background: #fff; border: 1px solid var(--color-line); border-top: 0; border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.gnb__list > li:hover .depth2, .gnb__list > li:focus-within .depth2 { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .depth2 a { display: block; padding: 6px 20px; font-size: 15px; color: #555; white-space: nowrap; text-align: center; }
.gnb .depth2 a:hover, .gnb .depth2 a:focus { color: var(--color-primary); }
.header.is-open .gnb .depth2 { display: none; }

/* ==========================================================================
   ALL MENU (PC: 전체 사이트맵 / Mobile: 드로어)
   ========================================================================== */
.allmenu { position: absolute; top: 100%; left: 0; right: 0; visibility: hidden; }
.allmenu.is-open { visibility: visible; }
.allmenu__dim {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
  background: rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.3s;
}
.allmenu.is-open .allmenu__dim { opacity: 1; }
.allmenu__panel {
  position: relative; background: #fff; border-top: 1px solid var(--color-line);
  opacity: 0; transform: translateY(-10px); transition: opacity 0.3s, transform 0.3s;
}
.allmenu.is-open .allmenu__panel { opacity: 1; transform: none; }
.allmenu__head, .allmenu__foot { display: none; }
.allmenu__body { padding: 36px 0 44px; }
.allmenu__list { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0 12px; }
.allmenu__list > li > a {
  display: block; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 2px solid var(--color-primary); font-size: 17px; font-weight: 700; color: var(--color-primary);
}
.allmenu__list .depth2 a { display: block; padding: 5px 0; font-size: 14px; color: #555; }
.allmenu__list .depth2 a:hover, .allmenu__list .depth2 a:focus { color: var(--color-primary); text-decoration: underline; }
.allmenu__close {
  position: absolute; top: 14px; right: 20px; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: #555;
}
.allmenu__close svg { width: 22px; height: 22px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { margin-top: 90px; }
.footer__links { background: #fff; border-top: 1px solid var(--color-line); }
.footer__links .inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.footer__policy { display: flex; gap: 50px; padding-left: 46px; font-size: 14px; color: #333; }
.footer__policy a:hover { color: var(--color-primary); }
.footer__policy .is-strong { font-weight: 700; color: var(--color-primary); }
.footer__right { display: flex; align-items: center; gap: 36px; }

.family-site { position: relative; }
.family-site__btn { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #333; }
.family-site__btn svg { width: 14px; height: 14px; transition: transform 0.2s; }
.family-site__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.family-site__list {
  position: absolute; bottom: calc(100% + 16px); right: -12px; z-index: 10; width: 220px; padding: 10px 0;
  background: #fff; border: 1px solid var(--color-line); border-radius: 8px; box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}
.family-site__list[hidden] { display: none; }
.family-site__list a { display: block; padding: 7px 18px; font-size: 14px; color: #555; }
.family-site__list a:hover, .family-site__list a:focus { background: var(--color-bg); color: var(--color-primary); }

.footer__info { background: var(--color-dark); color: #9a9a9a; }
.footer__info .inner { display: flex; align-items: center; gap: 76px; padding-top: 36px; padding-bottom: 50px; }
.footer__logo { display: flex; align-items: center; gap: 8px; padding-left: 60px; color: #777; }
.footer__logo .logo__mark b { background: #777; color: var(--color-dark); }
.footer__logo .logo__mark small { color: #777; }
.footer__logo .logo__sub { display: flex; flex-direction: column; font-size: 10px; line-height: 1.1; }
.footer__logo .logo__text { font-size: 21px; }
.footer__org { margin-bottom: 12px; font-size: 16px; font-weight: 500; color: #fff; }
.footer__address { font-style: normal; font-size: 13px; line-height: 1.5; }
.footer__address span { display: inline-block; margin-right: 18px; }
.footer__copy { margin-top: 12px; font-size: 12px; color: #ccc; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1280px) {
  .gnb__list > li > a { padding: 0 10px; font-size: 17px; }
  .allmenu__list { grid-template-columns: repeat(5, 1fr); gap: 32px 20px; }
}

/* Tablet / Mobile : GNB 숨김, 햄버거 → 드로어 */
@media (max-width: 1024px) {
  .header__top .inner { height: 60px; }
  .logo__text { font-size: 18px; }
  .util__member, .util .btn-lang, .header .sns { display: none; }
  .btn-allmenu { background: transparent; }
  .btn-allmenu .bar { width: 22px; background: var(--color-text); }
  .gnb { display: none; }

  .allmenu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200; }
  .allmenu__dim { z-index: 0; }
  .allmenu__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(86%, 380px);
    display: flex; flex-direction: column; border: 0; overflow-y: auto;
    opacity: 1; transform: translateX(100%);
  }
  .allmenu.is-open .allmenu__panel { transform: none; }
  .allmenu__panel .inner { padding: 0; }

  .allmenu__head { display: block; padding: 20px 20px 18px; background: var(--color-primary); color: #fff; }
  .allmenu__close { top: 12px; right: 12px; color: #fff; }
  .allmenu__head .m-logo { font-size: 17px; font-weight: 500; }
  .m-util { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
  .m-util a {
    display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 16px; font-size: 14px;
  }
  .m-util a.is-lang { background: #fff; color: var(--color-primary); border-color: #fff; font-weight: 500; }

  .allmenu__body { flex: 1; padding: 0; }
  .allmenu__list { display: block; }
  .allmenu__list > li { border-bottom: 1px solid var(--color-line); }
  .allmenu__list > li > a {
    position: relative; padding: 16px 20px; margin: 0; border: 0; font-size: 16px; color: var(--color-text);
  }
  .allmenu__list > li > a::after {
    content: ""; position: absolute; top: 50%; right: 22px; width: 8px; height: 8px;
    border-right: 2px solid #999; border-bottom: 2px solid #999; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
  }
  .allmenu__list > li.is-active > a { color: var(--color-primary); }
  .allmenu__list > li.is-active > a::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--color-primary); }
  .allmenu__list .depth2 { display: none; padding: 10px 20px; background: #f6f8f9; }
  .allmenu__list > li.is-active .depth2 { display: block; }
  .allmenu__list .depth2 a { padding: 7px 0 7px 10px; font-size: 15px; }

  .allmenu__foot { display: flex; justify-content: center; padding: 24px 20px; }

  .footer { margin-top: 60px; }
  .footer__links .inner { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .footer__policy { flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 0; }
  .footer__right { justify-content: space-between; }
  .family-site__list { right: auto; left: 0; }
  .footer__info .inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 30px; padding-bottom: 36px; }
  .footer__logo { padding: 0; }
}

@media (max-width: 480px) {
  .footer__address span { display: block; margin: 0; }
  .footer__right {
    flex-wrap: wrap;
    gap: 12px 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}




/* 우측 끝 하위 메뉴의 가로 넘침 방지 */
.gnb__list > li:nth-last-child(1 of :not(.gnb__hidden)) > .depth2 {
    left: auto;
    right: 0;
    transform: translateY(-6px);
}

/* 마우스 및 키보드로 메뉴를 열었을 때 */
.gnb__list > li:nth-last-child(1 of :not(.gnb__hidden)):hover > .depth2,
.gnb__list > li:nth-last-child(1 of :not(.gnb__hidden)):focus-within > .depth2 {
    transform: translateY(0);
}
