@charset "utf-8";

/**
 * itweb 헤더
 * 로고 | 제작문의 | 햄버거 토글 → 전체메뉴 패널
 */

:root {
  --font-primary: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --paragraph-color: #20211F;
  --color-accent: #3d7abe;
  --color-links: #666;
  --color-border: rgba(32, 33, 32, .2);
  /* 로고 마크(CF)와 맞춘 워드마크 색 — 남색 → 블루 */
  --hd-brand-wordmark: linear-gradient(118deg, #0c1a3a 0%, #163292 42%, #2563eb 100%);
  --hd-brand-wordmark-hover: linear-gradient(118deg, #163292 0%, #2563eb 55%, #3b82f6 100%);
  --hd-brand-wordmark-fallback: #152747;
}

/* ===== 헤더 ===== */
#hd.hd-itweb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 100px;
  background: #fff;
  transition: background .3s, box-shadow .3s;
}
#hd.hd-itweb.is-scrolled {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

#hd_h1, .sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); }
#skip_to_container { position: absolute; left: -9999px; }
#skip_to_container:focus { position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 10001; padding: 10px 20px; background: #111; color: #fff; }

.hd-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hd-logo {
  flex-shrink: 0;
}
.hd-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
}
.hd-brand-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.hd-brand-mark {
  height: 54px;
  width: auto;
  max-width: 58px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
  display: block;
}
.hd-brand-text {
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: 0.16em;
  word-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.05;
  color: var(--hd-brand-wordmark-fallback);
  transition: filter 0.2s, opacity 0.2s;
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hd-brand-text {
    background: var(--hd-brand-wordmark);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  .hd-brand-link:hover .hd-brand-text,
  .hd-brand-link:focus-visible .hd-brand-text {
    background: var(--hd-brand-wordmark-hover);
    -webkit-background-clip: text;
    background-clip: text;
  }
}
.hd-brand-link:hover .hd-brand-text {
  filter: brightness(1.05);
}
@media (max-width: 480px) {
  .hd-brand-link {
    gap: 9px;
  }
  .hd-brand-mark {
    height: 40px;
    max-width: 44px;
  }
  .hd-brand-text {
    font-weight: 600;
    letter-spacing: 0.12em;
    word-spacing: 0.04em;
    font-size: clamp(1rem, 3.6vw, 1.22rem);
  }
}

/* PC용 GNB - 가로 메뉴 */
.hd-gnb {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 40px;
}
.gnb-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}
.gnb-item { position: relative; }
.gnb-link {
  display: block;
  position: relative;
  padding: 0 24px;
  line-height: 100px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--paragraph-color);
  font-family: 'NanumSquare Neo', NanumSquareNeo, sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .25s ease;
}
.gnb-link:hover { color: var(--color-accent); }
.gnb-link.is-active { color: var(--color-accent); }
.gnb-link.is-active::after{
  content:'';
  position:absolute;
  left:50%;
  top:50%;
  width: calc(100% + 22px);
  height: 40px;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:radial-gradient(circle at center, rgba(61,122,190,.2) 0%, rgba(61,122,190,.08) 38%, rgba(61,122,190,0) 75%);
  filter:blur(7px);
  animation:menu-active-glow 2.4s ease-in-out infinite;
  pointer-events:none;
}

/* 2depth 드롭다운 */
.gnb-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 8px;
  z-index: 100;
}
.gnb-item.on .gnb-sub { display: block; }
.gnb-sub ul {
  min-width: 180px;
  padding: 8px 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  margin: 0;
  list-style: none;
}
.gnb-sub li { border: none; }
.gnb-sub a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #444;
  font-family: 'NanumSquare Neo', NanumSquareNeo, sans-serif;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.gnb-sub a:hover { background: var(--color-submenu-hover-bg); color: var(--color-submenu-hover); }
.gnb-empty .gnb-link { color: #999; }
.gnb-empty a:hover { color: var(--color-accent); }

/* 우측: 로그인 | 제작문의 | 전화 */
.hd-util {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.util-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-links);
  font-family: var(--font-primary);
  transition: color .2s;
}
.util-link:hover { color: var(--color-accent); }
.util-link.admin { color: #2196f3; }

/* 제작문의 - 카카오톡 컬러 pill */
.btn-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 25px;
  background: #FEE500;
  color: #191919 !important;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 500px;
  font-family: var(--font-primary);
  transition: box-shadow .3s, transform .2s, background .2s;
  white-space: nowrap;
}
.btn-request:hover { background: #F9DF4A; box-shadow: 0 4px 16px rgba(254,229,0,.45); color: #191919 !important; transform: translateY(-1px); }

/* 전화번호 - 테두리 pill */
.util-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 20px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--paragraph-color);
  background: rgba(255,255,255,.9);
  border: 1px solid #20211F;
  border-radius: 500px;
  font-family: var(--font-primary);
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  text-decoration: none;
}
.util-tel:hover { color: #fff; background: var(--color-accent); border-color: var(--color-accent); box-shadow: 0 2px 12px rgba(61,122,190,.25); }

.util-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(61,122,190,.35);
  border-radius: 500px;
  background: rgba(255,255,255,.92);
  color: #2d5ea4;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.util-ai:hover {
  color: #fff;
  background: #5da3f2;
  border-color: #5da3f2;
  box-shadow: 0 2px 12px rgba(61,122,190,.25);
}

/* 모바일 햄버거(토글메뉴) - PC에서는 숨김 */
.hd-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s;
}
.hd-mobile-toggle:hover { opacity: .7; }
.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paragraph-color);
  transition: transform .3s, opacity .3s;
}
#hd.menu-open .hd-mobile-toggle .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#hd.menu-open .hd-mobile-toggle .toggle-bar:nth-child(2) {
  opacity: 0;
}
#hd.menu-open .hd-mobile-toggle .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 반응형: 태블릿 이하에서 GNB 숨기고 햄버거 표시 */
@media (max-width: 1023px) {
  .hd-gnb { display: none; }
  .hd-mobile-toggle { display: flex; }
  #hd .hd-util { display: none !important; }
}

/* ===== 토글 전체메뉴 레이어 (Teleport로 body에 붙음, #hd transform과 무관) ===== */
.hd-menu-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* FAB 등(10020)보다 위 — body 직속이라 별도 스택만 유지 */
  z-index: 10060;
  visibility: hidden;
  opacity: 0;
  transition: visibility .3s, opacity .3s;
}
.hd-menu-layer.open {
  visibility: visible;
  opacity: 1;
}
.hd-menu-layer.open .hd-menu-panel {
  transform: translateX(0);
}

.hd-menu-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
}

.hd-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hd-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
}
.hd-menu-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--paragraph-color);
}
.hd-menu-close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.hd-menu-close span:last-child { transform: translate(-50%,-50%) rotate(-45deg); }
.hd-menu-close:hover span { background: var(--color-accent); }

.hd-menu-nav {
  padding: 90px 40px 40px;
}

.menu-group {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  border-bottom: 1px solid #eee;
}
.menu-item:last-child { border-bottom: none; }

.menu-link {
  display: block;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--paragraph-color);
  font-family: 'NanumSquare Neo', NanumSquareNeo, sans-serif;
  transition: color .2s;
}
.menu-link:hover { color: var(--color-accent); }
.menu-link.is-active { color: var(--color-accent); }

/* 모바일 패널 하단: 이력서 다운로드 · AI 면접 (헤더 .hd-util 대체) */
.hd-menu-util {
  display: none;
}
@media (max-width: 1023px) {
  .hd-menu-util {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 40px 48px;
    margin-top: 4px;
    border-top: 1px solid #eee;
  }
  .hd-menu-util .hd-menu-util-resume {
    text-align: center;
    justify-content: center;
  }
  .hd-menu-util .hd-menu-util-ai {
    width: 100%;
    justify-content: center;
  }
}

@keyframes menu-active-glow{
  0%{opacity:.38;transform:translate(-50%,-50%) scale(.94)}
  50%{opacity:.78;transform:translate(-50%,-50%) scale(1.03)}
  100%{opacity:.38;transform:translate(-50%,-50%) scale(.94)}
}

/* 좁은 PC·태블릿 가로(1024~1400): 로고·유틸 사이 GNB 폭 부족 → 메뉴명 줄바꿈·세로 정렬 깨짐 방지 */
@media (min-width: 1024px) and (max-width: 1400px) {
  .hd-inner {
    padding: 0 12px;
    gap: 4px;
  }
  .hd-gnb {
    margin: 0 8px;
    min-width: 0;
  }
  .gnb-list {
    justify-content: center;
    flex-wrap: nowrap;
  }
  .gnb-item {
    flex-shrink: 0;
  }
  .gnb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 100px;
    line-height: 1.12;
    padding: 0 8px;
    font-size: clamp(1.35rem, 1.25vw, 1.65rem);
    white-space: nowrap;
  }
  .gnb-link.is-active::after {
    width: calc(100% + 6px);
    height: 32px;
  }
  .hd-util {
    gap: 8px;
  }
  .util-tel,
  .util-ai {
    height: 46px;
    padding: 0 12px;
    font-size: 1.22rem;
  }
}

.menu-sub {
  margin: 0 0 16px 0;
  padding: 0 0 0 20px;
  list-style: none;
  border-left: 2px solid var(--color-border);
}
.menu-sub li { margin: 0; }
.menu-sub a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 14px;
  color: var(--color-links);
  font-family: 'NanumSquare Neo', NanumSquareNeo, sans-serif;
  transition: color .2s, background .2s;
}
.menu-sub a:hover { color: var(--color-accent); background: rgba(61, 122, 190, .08); }

/* body 스크롤 잠금 */
body.menu-open { overflow: hidden; }

body { padding-top: 100px; }
.hd-divider { display: none; margin: 0; border: none; }
#hd_login_msg { position: absolute; font-size: 0; overflow: hidden; }
