@charset "UTF-8";

/* ==========================================================================
   조인트 공통 GNB / 푸터
   docs/index.html(홈)의 최신 디자인을 단일 원본으로 옮겨온 파일.
   앞으로 GNB·푸터 디자인이 바뀌면 홈과 이 파일 두 곳만 고치면 된다.

   페이지별 style.css 뒤에 불러야 한다 (같은 명시도면 나중에 온 쪽이 이긴다).
   ========================================================================== */

/* 토큰은 GNB/푸터 안에서만 정의한다.
   서브페이지 style.css의 --primary(보라 #664bf4)를 물려받으면
   도입문의 버튼 색이 홈(검정)과 달라지기 때문에 의도적으로 격리한다. */
.gnb,
.nav-menu,
footer.dark-zone {
  --jn-white: #ffffff;
  --jn-white-rgb: 255, 255, 255;
  --jn-ink: #242a30;
  --jn-ink-rgb: 36, 42, 48;
  --jn-ink-strong: #3c4651;
  --jn-accent: #111111;
  --jn-line: #eeedec;
  --jn-bg: #fdfcfc;
  --jn-max: 1320px;
}

/* 화면 크기별 유틸 (GNB 로그인 링크 분기 등에서 사용) */
@media screen and (min-width: 1001px) {
  .for-mobile {
    display: none !important;
  }
}
@media screen and (max-width: 1000px) {
  .for-desktop {
    display: none !important;
  }
}

/* ==========================================================================
   GNB
   ========================================================================== */

.gnb {
  position: fixed;
  top: 0;
  left: 0;
  padding: 18px 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  border-bottom: 1px solid var(--jn-line);
  background: rgba(var(--jn-white-rgb), 0);
  backdrop-filter: blur(0);
  transition:
    transform 0.35s ease,
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    border-color 0.4s ease;
}

.gnb.scrolled {
  border-bottom-color: var(--jn-line);
  background: rgba(var(--jn-white-rgb), 0.82);
  backdrop-filter: blur(12px);
}

.gnb .navbar {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: var(--jn-max);
  padding: 0 24px;
  height: 34px;
}

.gnb .navbar .logo {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
  user-select: none;
  outline: none;
  text-decoration: none;
}
.gnb .navbar .logo img {
  width: auto;
  height: 26px;
}
.gnb .navbar .logo:hover {
  opacity: 0.8;
}
.gnb .navbar .logo:focus-visible {
  outline: 2px solid var(--jn-ink);
  outline-offset: 4px;
  border-radius: 4px;
}

.gnb .navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gnb .navbar-link-btn {
  display: inline-flex;
  align-items: center;
  margin-right: 0;
  padding: 0 12px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background-color: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--jn-ink);
  line-height: 32px;
  white-space: nowrap;
  text-decoration: none;
}
.gnb .navbar-link-btn:hover {
  background: rgba(var(--jn-ink-rgb), 0.04);
}
.gnb .navbar-link-btn:focus-visible {
  outline: 2px solid var(--jn-ink);
  outline-offset: -2px;
}
/* 현재 보고 있는 메뉴 — 홈에는 없는 상태라 서브페이지 기준으로 굵기만 올린다 */
.gnb .navbar-menu a[aria-current='page'] {
  font-weight: 700;
  pointer-events: none;
  cursor: default;
}

.gnb .navbar-btns {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-right: 0;
}
/* 햄버거가 자리를 차지하면서 버튼들이 눌려 글자가 잘리던 것을 막는다 */
.gnb .navbar-btns > * {
  flex-shrink: 0;
}
/* 아주 좁은 기기(320~380px)는 바깥 여백을 줄여 세 요소가 여유 있게 들어가도록 */
@media screen and (max-width: 380px) {
  .gnb .navbar {
    padding: 0 16px;
  }
  .gnb .navbar-btns {
    gap: 4px;
  }
}

/* ==========================================================================
   모바일 전체 메뉴 (햄버거)
   ========================================================================== */

.gnb .nav-burger {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--jn-ink);
  cursor: pointer;
}
/* 가운데 막대 하나 + 위아래는 의사요소 — 열리면 X로 접힌다 */
.nb-bars,
.nb-bars::before,
.nb-bars::after {
  position: absolute;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease;
}
.nb-bars {
  top: 50%;
  left: 50%;
  margin: -0.8px 0 0 -8.5px;
}
.nb-bars::before,
.nb-bars::after {
  content: '';
  left: 0;
}
.nb-bars::before {
  top: -5.5px;
}
.nb-bars::after {
  top: 5.5px;
}
.nav-burger.is-open .nb-bars {
  background: transparent;
}
.nav-burger.is-open .nb-bars::before {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-burger.is-open .nb-bars::after {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* [hidden]의 display:none은 UA 스타일시트라 아래 display:flex에 진다.
   명시하지 않으면 닫힌 패널이 투명한 채로 화면 전체를 덮어 스크롤을 먹는다 */
.nav-menu[hidden] {
  display: none;
}
/* 패널: GNB(z 1000) 아래에 깔려 로고와 닫기 버튼이 계속 보인다 */
.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: flex;
  flex-direction: column;
  padding: 86px 24px 28px;
  background: var(--jn-bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.24s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-menu.is-open {
  opacity: 1;
  transform: none;
}
.nav-menu-links {
  display: flex;
  flex-direction: column;
}
.nav-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 2px;
  border-bottom: 1px solid var(--jn-line);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--jn-ink);
  text-decoration: none;
}
/* svg도 함께 잡아야 한다. 안 그러면 currentColor로 링크 색(진한 잉크)을 물려받고,
   인라인 요소라 baseline 여백이 붙어 줄 높이까지 홈보다 커진다. */
.nav-menu-link i,
.nav-menu-link svg {
  display: block;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  font-size: 13px;
  color: rgba(var(--jn-ink-rgb), 0.32);
}
.nav-menu-foot {
  margin-top: auto;
  padding-top: 28px;
}
.nav-menu-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(var(--jn-ink-rgb), 0.14);
  font-size: 16px;
  font-weight: 600;
  color: var(--jn-ink);
  text-decoration: none;
}
/* 메뉴가 열린 동안 뒤 페이지 스크롤 잠금.
   모바일에서 실제 스크롤 컨테이너는 html이라 body만 잠그면 그대로 움직인다 */
html.nav-open,
body.nav-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu {
    transition: none;
    transform: none;
  }
  .nb-bars,
  .nb-bars::before,
  .nb-bars::after {
    transition: none;
  }
}

/* ==========================================================================
   GNB 버튼
   ========================================================================== */

.gnb .signin-btn {
  display: inline-block;
  padding: 0 12px;
  height: 32px;
  border: none;
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  box-shadow:
    0 -1px 0 0 rgba(0, 0, 0, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.08) inset,
    0 2px 6px 0 rgba(0, 0, 0, 0.02);
  font-size: 13px;
  font-weight: 600;
  color: var(--jn-ink);
  line-height: 32px;
  text-decoration: none;
  transition: background-image 0.3s;
  cursor: pointer;
}
.gnb .signin-btn:hover {
  background-image: linear-gradient(rgba(var(--jn-ink-rgb), 0.04), rgba(var(--jn-ink-rgb), 0.04));
}
.gnb .signin-btn:focus-visible {
  outline: 2px solid var(--jn-ink);
  outline-offset: 2px;
}

.gnb .primary-btn {
  display: inline-block;
  padding: 0 12px;
  height: 32px;
  border-radius: 10px;
  background-color: var(--jn-accent);
  box-shadow:
    0 -1px 0 0 rgba(0, 0, 0, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.08) inset,
    0 2px 6px 0 rgba(0, 0, 0, 0.02);
  font-size: 13px;
  font-weight: 600;
  color: var(--jn-white);
  line-height: 32px;
  text-decoration: none;
  transition: background-image 0.3s;
}
.gnb .primary-btn:hover {
  background-image: linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14));
}

/* GNB의 Typeform 도입문의 버튼 */
.gnb .navbar-btns .typeform-btn button {
  display: inline-block !important;
  padding: 0 12px !important;
  height: 32px !important;
  border: none !important;
  border-radius: 10px !important;
  background-color: var(--jn-accent) !important;
  box-shadow:
    0 -1px 0 0 rgba(0, 0, 0, 0.06) inset,
    0 0 0 1px rgba(0, 0, 0, 0.08) inset,
    0 2px 6px 0 rgba(0, 0, 0, 0.02) !important;
  transition: background-image 0.2s ease !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--jn-white) !important;
  line-height: 32px !important;
  cursor: pointer !important;
}
.gnb .navbar-btns .typeform-btn button:hover {
  background-color: var(--jn-accent) !important;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.14)
  ) !important;
}

/* ==========================================================================
   푸터 (다크)
   ========================================================================== */

footer.dark-zone {
  padding: 80px 0;
  background: #0b0c0f;
  border-top: 1px solid var(--jn-line);
}
footer.dark-zone .footer-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  padding: 0 24px;
  max-width: var(--jn-max);
  color: rgba(242, 242, 244, 0.5);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}
footer.dark-zone .footer-container hr {
  width: 100%;
  height: 1px;
  border: none;
  background: rgba(242, 242, 244, 0.12);
}
footer.dark-zone .footer-container .info {
  display: flex;
  justify-content: space-between;
}
footer.dark-zone .footer-container .joint {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #f2f2f4;
}
footer.dark-zone .footer-container .term {
  margin-right: 16px;
}
footer.dark-zone .footer-container a {
  color: rgba(242, 242, 244, 0.6);
  text-decoration: none;
}
footer.dark-zone .footer-container a:hover {
  color: #f2f2f4;
}
footer.dark-zone .social-links a {
  color: inherit;
}
footer.dark-zone .social-links a i,
footer.dark-zone .social-links a svg {
  font-size: 24px;
  width: 24px;
  height: 24px;
}
/* 홈에서 푸터에 걸리던 세로 프레임 라인은 사용하지 않는다 */
footer.dark-zone::before,
footer.dark-zone::after {
  display: none;
}

@media screen and (max-width: 600px) {
  footer.dark-zone .footer-container .info {
    flex-direction: column;
    gap: 16px;
  }
}
