/* 새 머리말·꼬리말 (v2, 2026-10-27)
   하위 페이지에서는 옛 CSS(부트스트랩·default.css·ety.css)와 함께 쓰이므로, 모든 규칙을 wm2- 이름 아래에 두고
   옛 CSS 가 건드리는 값(글꼴·줄 간격·밑줄·목록 여백·버튼 모양)은 여기서 다시 정한다. */
:root {
  --wm2-ink: #14202B; --wm2-ink2: #4A5763; --wm2-ink3: #7A8691;
  --wm2-line: rgba(20, 32, 43, .1); --wm2-blue: #2370B4; --wm2-logo: #3A89C9; --wm2-alarm: #F7941D;
  --wm2-hd: 76px; --wm2-st: 0px; --wm2-ease: cubic-bezier(.22, .61, .36, 1);
  --wm2-font: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", "맑은 고딕", sans-serif;
}
.wm2-staff, .wm2-hd, .wm2-drawer, .wm2-foot { font-family: var(--wm2-font); letter-spacing: -0.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; box-sizing: border-box; }
.wm2-staff *, .wm2-hd *, .wm2-drawer *, .wm2-foot * { box-sizing: border-box; }
.wm2-hd ul, .wm2-drawer ul { margin: 0; padding: 0; list-style: none; }
.wm2-hd a, .wm2-drawer a, .wm2-foot a, .wm2-staff a { text-decoration: none; }
.wm2-hd a:hover, .wm2-drawer a:hover, .wm2-staff a:hover { text-decoration: none; }
.wm2-hd button, .wm2-drawer button { font: inherit; letter-spacing: inherit; margin: 0; cursor: pointer; }
.wm2-in { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 max(24px, 3.4vw); }
/* 웨일: 드래그로 글자를 고르면 메뉴·버튼 둘레에 네모 선이 남는 현상 막기 */
.wm2-hd, .wm2-staff, .wm2-drawer button, .wm2-cta { -webkit-user-select: none; user-select: none; }
.wm2-hd a, .wm2-hd img, .wm2-foot img { -webkit-user-drag: none; }

/* ── 사내 띠: 회사 IP·직원에게만 보이는 바로가기 ── */
.wm2-staff { position: relative; flex: none; font-size: 12.5px; }
.wm2-staff-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid currentColor; border-radius: 15px; background: transparent; color: inherit; font: inherit; font-weight: 650; cursor: pointer; opacity: .5; transition: opacity .2s; }
.wm2-staff-btn:hover, .wm2-staff-btn[aria-expanded="true"] { opacity: 1; }
.wm2-staff-btn .wm2-n { margin: 0; }
.wm2-staff-menu { position: absolute; z-index: 3; right: 0; top: calc(100% + 10px); display: grid; min-width: 168px; padding: 6px; border-radius: 12px; background: #0E151C; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); }
.wm2-staff-menu[hidden] { display: none; }
.wm2-staff-menu a { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; color: #C9D2DA; line-height: 1.2; white-space: nowrap; }
.wm2-staff-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.wm2-staff-menu small { margin-left: auto; padding-left: 12px; color: #8C99A5; font-size: 12px; font-weight: 600; }
.wm2-staff-menu .wm2-sep { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 8px 8px; }
.wm2-staff-menu .wm2-old { color: #8C99A5; }
.wm2-staff-menu .wm2-n { margin-right: 0; }
.wm2-n { display: inline-block; min-width: 17px; height: 17px; margin-right: 5px; padding: 0 5px; border-radius: 9px; background: #EF4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }

/* ── 머리말 ── */
.wm2-hd { position: fixed; z-index: 1030; left: 0; right: 0; top: var(--wm2-st); height: var(--wm2-hd); color: var(--wm2-ink); background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .35s var(--wm2-ease), border-color .35s var(--wm2-ease), color .35s var(--wm2-ease), transform .4s var(--wm2-ease), box-shadow .35s var(--wm2-ease); }
.wm2-hd.is-solid { background: rgba(255, 255, 255, .98); border-bottom-color: var(--wm2-line); }
.wm2-hd.is-hidden { transform: translateY(calc(-100% - var(--wm2-st))); }
.wm2-hd .wm2-in { display: flex; align-items: center; height: 100%; gap: 28px; }
.wm2-logo { position: relative; display: block; flex: none; width: 150px; height: 33px; }
.wm2-logo img { position: absolute; left: 0; top: 0; width: 150px; height: 33px; transition: opacity .6s var(--wm2-ease); }
.wm2-logo .lg-w, .wm2-logo .lg-d { opacity: 0; }

.wm2-gnb { margin-left: auto; }
.wm2-gnb > ul { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 40px); }
.wm2-gnb > ul > li { position: relative; }
.wm2-gnb > ul > li > a { position: relative; display: flex; align-items: center; height: var(--wm2-hd); font-size: 16px; font-weight: 600; color: inherit; white-space: nowrap; }
.wm2-gnb > ul > li > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--wm2-ease); }
.wm2-gnb > ul > li:hover > a::after, .wm2-gnb > ul > li.open > a::after, .wm2-gnb > ul > li.on > a::after { transform: scaleX(1); }
.wm2-gnb > ul > li.on > a { color: var(--wm2-blue); }

.wm2-sub { position: absolute; z-index: 2; left: -18px; top: calc(100% - 10px); min-width: 210px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--wm2-line); box-shadow: 0 18px 40px -24px rgba(20, 32, 43, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--wm2-ease), transform .2s var(--wm2-ease), visibility 0s .2s; }
.wm2-sub-r { left: auto; right: -8px; }
.has-sub:hover > .wm2-sub, .has-sub.open > .wm2-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wm2-sub a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--wm2-ink2); white-space: nowrap; line-height: 1.3; }
.wm2-sub a:hover, .wm2-sub a:focus-visible { background: #F1F5F8; color: var(--wm2-ink); }
.wm2-sub a[aria-current] { color: var(--wm2-blue); font-weight: 650; }
.wm2-sub small { font-size: 11px; font-weight: 600; color: var(--wm2-ink3); }

.wm2-util { display: flex; align-items: center; gap: 8px; flex: none; }
.wm2-dl { position: relative; }
.wm2-dl > button { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-size: 14.5px; font-weight: 600; }
.wm2-dl > button::after { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.wm2-dl > button:hover { background: rgba(20, 32, 43, .06); }
.wm2-dl .wm2-sub { top: calc(100% + 8px); }
.wm2-cta { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 10px; background: var(--wm2-blue); color: #fff !important; font-size: 15px; font-weight: 650; white-space: nowrap; transition: background-color .2s; }
.wm2-cta:hover { background: #1B5F9C; }
.wm2-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; padding: 13px 11px; flex-direction: column; justify-content: space-between; }
.wm2-burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--wm2-ease), opacity .2s; }
.wm2-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.wm2-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wm2-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.wm2-hd :focus-visible, .wm2-drawer :focus-visible { outline: 2px solid var(--wm2-logo); outline-offset: 2px; border-radius: 6px; }

/* 하위 페이지·내려간 상태: 흰 띠 + 색 로고 */
.wm2-hd.is-solid .lg-c { opacity: 1; }
.wm2-hd.is-solid .lg-w, .wm2-hd.is-solid .lg-d { opacity: 0; }
/* 메인 첫 화면 위: 장면 밝기에 따라 흰 로고(어두운 사진) / 짙은 로고(밝은 사진) */
.wm2-hd.is-home:not(.is-solid) { color: #fff; }
.wm2-hd.is-home:not(.is-solid) .lg-c { opacity: 0; }
.wm2-hd.is-home:not(.is-solid) .lg-w { opacity: 1; }
.wm2-hd.is-home:not(.is-solid) .wm2-dl > button:hover { background: rgba(255, 255, 255, .12); }
body.hero-light .wm2-hd.is-home:not(.is-solid) { color: var(--wm2-ink); }
body.hero-light .wm2-hd.is-home:not(.is-solid) .lg-w { opacity: 0; }
body.hero-light .wm2-hd.is-home:not(.is-solid) .lg-d { opacity: 1; }
body.hero-light .wm2-hd.is-home:not(.is-solid) .wm2-cta { background: var(--wm2-ink); }
body.hero-light .wm2-hd.is-home:not(.is-solid) .wm2-dl > button:hover { background: rgba(20, 32, 43, .06); }
.wm2-hd.is-home .wm2-gnb > ul > li > a { transition: color .6s var(--wm2-ease); }

.wm2-spacer { height: calc(var(--wm2-hd) + var(--wm2-st)); }

/* ── 전체 메뉴(태블릿·휴대폰) ── */
.wm2-drawer { position: fixed; z-index: 1029; left: 0; right: 0; top: calc(var(--wm2-hd) + var(--wm2-st)); bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--wm2-ink); padding: 8px max(24px, 3.4vw) 40px; border-top: 1px solid var(--wm2-line); }
.wm2-drawer[hidden] { display: none; }
.wm2-acc > li { border-bottom: 1px solid var(--wm2-line); }
.wm2-acc > li > button, .wm2-acc > li > a { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 2px; border: 0; background: none; color: var(--wm2-ink); font-size: 18px; font-weight: 650; text-align: left; }
.wm2-acc > li > button::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--wm2-ink3); border-bottom: 2px solid var(--wm2-ink3); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--wm2-ease); }
.wm2-acc > li > button[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.wm2-acc > li > ul { display: none; padding: 0 0 14px; }
.wm2-acc > li > button[aria-expanded="true"] + ul { display: block; }
.wm2-acc > li > ul a { display: block; padding: 10px 2px; font-size: 15.5px; color: var(--wm2-ink2); }
.wm2-drawer-dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 18px; }
.wm2-drawer-dl a { padding: 9px 13px; border-radius: 9px; background: #F1F5F8; color: var(--wm2-ink2); font-size: 14px; font-weight: 550; }
.wm2-drawer-cta { display: flex; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: var(--wm2-blue); color: #fff !important; font-size: 16px; font-weight: 650; }
.wm2-drawer-tel { display: block; margin-top: 14px; text-align: center; color: var(--wm2-ink2) !important; font-size: 15px; font-weight: 600; }
html.wm2-lock, html.wm2-lock body { overflow: hidden; }
html.wm2-lock .wm2-hd { background: #fff; color: var(--wm2-ink); border-bottom-color: var(--wm2-line); }
html.wm2-lock .wm2-hd .lg-c { opacity: 1; }
html.wm2-lock .wm2-hd .lg-w, html.wm2-lock .wm2-hd .lg-d { opacity: 0; }
html.wm2-lock .wm2-hd .wm2-cta { background: var(--wm2-blue); }

@media (min-width: 1200px) {
  .wm2-hd.has-staff .wm2-in { padding-right: max(24px, 3.4vw, calc(84px - max(0px, (100vw - 1560px) / 2))); }
  .wm2-hd .wm2-staff { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); }
}
@media (max-width: 1199.98px) {
  .wm2-gnb { display: none; }
  .wm2-util { margin-left: auto; }
  .wm2-burger { display: flex; }
}
@media (max-width: 760px) {
  :root { --wm2-hd: 62px; }
  .wm2-hd .wm2-in { gap: 12px; padding: 0 16px; }
  .wm2-logo, .wm2-logo img { width: 124px; height: 27px; }
  .wm2-dl { display: none; }
  .wm2-cta { height: 38px; padding: 0 14px; font-size: 14px; }
  .wm2-util { gap: 6px; }
  .wm2-staff-btn { height: 28px; padding: 0 8px; }
  .wm2-drawer { padding: 4px 16px 32px; }
}

/* ── 꼬리말 ── */
.wm2-foot { position: relative; padding: 56px 0 40px; background: #0E151C; color: #8C99A5; font-size: 14px; line-height: 1.75; }
.wm2-foot a { color: #C9D2DA; }
.wm2-foot a:hover { color: #fff; text-decoration: underline; }
.wm2-foot p { margin: 0; }
.wm2-foot-top { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.wm2-foot-top img { width: 132px; height: auto; }
.wm2-foot-top nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 550; }
.wm2-sns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.wm2-sns a { padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #AEB8C1; }
.wm2-sns a:hover { text-decoration: none; border-color: rgba(255, 255, 255, .3); color: #fff; }
.wm2-foot-info { padding: 22px 0 18px; }
.wm2-foot-info span { margin-left: 14px; }
.wm2-foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 13.5px; }
.wm2-foot-legal b { font-weight: 700; color: #E3E8EC; }
.wm2-copy { margin-left: auto; color: #6F7C88; }
.wm2-copy a { color: inherit; text-decoration: none !important; }
@media (max-width: 760px) {
  .wm2-foot { padding: 40px 0 32px; font-size: 13px; }
  .wm2-foot .wm2-in { padding: 0 18px; }
  .wm2-sns { margin-left: 0; }
  .wm2-foot-info span { display: block; margin-left: 0; }
  .wm2-copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .wm2-hd, .wm2-sub, .wm2-logo img { transition: none; } }
.wm2-hd button:focus:not(:focus-visible), .wm2-drawer button:focus:not(:focus-visible) { outline: none; box-shadow: none; }
