@charset "utf-8";
/* ==========================================================================
   ContentRix — layout.css
   기업형 헤더(유틸바 + 2단계 GNB) / 모바일 메뉴 / 서브 상단 / CTA / 푸터
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 스크롤 진행률 — 헤더 하단 경계선 위에 얹힘
   -------------------------------------------------------------------------- */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--o-500);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   1. 로고
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
/* 로고 이미지 (assets/img/top_logo.png)
   원본 300×100 중 실제 로고는 271×72 — 위아래 14% 가 투명 여백이다.
   따라서 눈에 보이는 높이는 지정값의 약 72%. 그만큼 키워서 잡는다.
   (48px → 실제로 보이는 높이 약 34.5px) */
.logo__img {
  height: 48px;
  width: auto;
  flex: none;
}

.logo__ko {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-400);
  white-space: nowrap;
}
@media (max-width: 1180px) { .logo__ko { display: none; } }
@media (max-width: 520px)  { .logo__img { height: 40px; } }

/* 푸터 로고는 조금 더 크게 — 주변에 경쟁 요소가 없어 존재감이 필요하다 */
.footer .logo__img { height: 52px; }

/* --------------------------------------------------------------------------
   2. 상단 유틸 바 — 기업 사이트의 대표번호 / 이메일 줄
   -------------------------------------------------------------------------- */
.utilbar {
  position: relative;
  z-index: 201;
  height: var(--util-h);
  background: var(--paper-ink);
  color: rgba(255, 255, 255, .58);
  font-size: .75rem;
  overflow: hidden;
  transition: height .35s var(--e-out);
}
.utilbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}
.utilbar__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}
.utilbar__tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--g-500);
  flex: none;
}
.utilbar__links { display: flex; align-items: center; gap: 22px; }
.utilbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .22s;
  white-space: nowrap;
}
.utilbar__links a:hover { color: #fff; }
.utilbar__links svg { width: 13px; height: 13px; opacity: .7; }
.utilbar__links b { font-weight: 700; color: rgba(255,255,255,.86); }

@media (max-width: 820px) {
  .utilbar { display: none; }
}

/* --------------------------------------------------------------------------
   3. 메인 헤더 — 흰 배경 고정형
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--head-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--e-out);
}
.header.is-solid { box-shadow: 0 2px 14px -8px rgba(31, 26, 20, .28); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* GNB */
.gnb {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: clamp(2px, 1.4vw, 14px);
}
/* 항목은 헤더 높이만큼 늘려(드롭다운 기준), 링크만 가운데에 알약으로 */
.gnb__item { position: relative; display: flex; align-items: center; }
.gnb__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px clamp(12px, 1.3vw, 18px);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink-700);
  white-space: nowrap;
  background: transparent;
  transition: background .24s var(--e-out), color .24s var(--e-out);
}

/* 밑줄 대신 알약 배경 —
   헤더 하단의 스크롤 진행 바(.progress)와 위치가 겹치지 않게 하기 위함 */
.gnb__item:hover .gnb__link,
.gnb__item:focus-within .gnb__link {
  background: var(--o-50);
  color: var(--o-600);
}
.gnb__item.is-active .gnb__link { color: var(--o-600); }
.gnb__item.is-active:not(:hover) .gnb__link { background: var(--paper-3); }

/* 2뎁스 드롭다운 */
.gnb__sub {
  position: absolute;
  top: 100%; left: 50%;
  min-width: 178px;
  padding: 8px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 16px 34px -20px rgba(31, 26, 20, .34);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .24s var(--e-out), transform .24s var(--e-out), visibility .24s;
}
.gnb__item:hover .gnb__sub,
.gnb__item:focus-within .gnb__sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.gnb__sub a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-600);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.gnb__sub a:hover { background: var(--paper-3); color: var(--o-600); }
.gnb__sub a[aria-current] { color: var(--o-600); }

.header__util { display: flex; align-items: center; gap: 10px; }

/* 햄버거 */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  position: relative;
}
.burger i {
  position: absolute;
  left: 13px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
  transition: transform .34s var(--e-out), opacity .2s;
}
.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 21px; }
.burger i:nth-child(3) { top: 26px; width: 12px; }
.burger.is-on i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-on i:nth-child(2) { opacity: 0; }
.burger.is-on i:nth-child(3) { width: 18px; transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .gnb { display: none; }
  .header__util .btn { display: none; }
  .burger { display: block; }
}

/* --------------------------------------------------------------------------
   4. 모바일 메뉴 — 아코디언 2뎁스
   -------------------------------------------------------------------------- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: flex;
  flex-direction: column;
  padding: calc(var(--head-h) + 14px) var(--gut) 28px;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5%);
  transition: opacity .38s var(--e-out), transform .38s var(--e-out), visibility .38s;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }

/* 구분선은 메뉴 '사이'에만. 맨 위·맨 아래 선은 빼서 여백이 깔끔하게 남는다 */
.mnav__row + .mnav__row { border-top: 1px solid var(--line); }
.mnav__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 4px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink-900);
}
.mnav__link em {
  font-style: normal;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--ink-400);
}
.mnav__subs {
  display: grid;
  gap: 0;
  padding: 0 4px 7px;
}
.mnav__subs a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink-500);
}
.mnav__subs a::before {
  content: '';
  width: 12px; height: 1px;
  background: var(--ink-300);
  flex: none;
}

/* --------------------------------------------------------------------------
   5. 서브페이지 상단 (페이지 타이틀 밴드)
   -------------------------------------------------------------------------- */
.phead {
  position: relative;
  padding-top: clamp(52px, 7vw, 92px);
  padding-bottom: clamp(44px, 6vw, 76px);
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.phead__inner { position: relative; z-index: 2; }

/* 오른쪽 장식 이미지 (1020 × 720 · 배경 투명).
   원본 위쪽에 투명 여백이 30~40% 있어서, 밴드 높이보다 크게 잡고
   아래·오른쪽 기준으로 붙여야 그림이 밴드를 제대로 채운다. */
.phead > picture {
  position: absolute;
  /* 오른쪽 끝을 본문 컨테이너(.wrap) 안쪽 선에 맞춘다 —
     헤더의 '프로젝트 문의' 버튼 오른쪽 라인과 같은 위치 */
  right: max(var(--gut), calc((100% - var(--wrap)) / 2 + var(--gut)));
  bottom: -2%;
  height: 125%;            /* 더 키우면 여백이 가장 적은 02번 그림의 위가 잘린다 */
  max-width: 46%;          /* 본문 글줄을 침범하지 않게 폭 상한 */
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.phead__deco {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: right bottom;
}
/* 이 아래로는 밴드가 낮아지고 설명이 길어져 그림과 글이 부딪친다 */
@media (max-width: 1180px) {
  .phead > picture { display: none; }
}
.phead__eyebrow {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--o-600);
}
.phead__title {
  margin: 12px 0 14px;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.042em;
  color: var(--ink-900);
}
.phead__desc { max-width: 62ch; }
/* 넓은 화면에서는 설명을 한 줄로 흘린다. 오른쪽 장식 이미지와 조금 겹쳐도
   줄바꿈 없이 한 줄로 읽히는 쪽을 택했다.
   ※ 이 규칙은 반드시 위의 .phead__desc 뒤에 와야 한다.
      같은 우선순위라 앞에 두면 62ch 에 덮어써진다. */
@media (min-width: 1181px) {
  .phead__title, .phead__desc { max-width: none; }
}

/* 옅은 사선 텍스처 — 오른쪽에 장식 이미지가 들어오면서
   같은 자리에 겹쳐 지저분해지므로 왼쪽 절반에만 아주 옅게 남긴다 */
.phead::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 45° repeating-linear-gradient 로 1px 선을 그리면 선 간격(9px)이
     화면 가로로는 9×√2 = 12.7px 라 픽셀 격자와 어긋난다. 그래서 어떤 선은
     1px 진하게, 어떤 선은 2px 흐리게 찍혀 굵기와 색이 들쭉날쭉해진다.
     정수 크기 타일(12×12)을 반복시키면 모든 타일이 똑같이 렌더링된다. */
  background-image: linear-gradient(-45deg,
    rgba(17,24,39,.065) 0 8%, transparent 8% 50%,
    rgba(17,24,39,.065) 50% 58%, transparent 58% 100%);
  background-size: 12px 12px;
  -webkit-mask-image: linear-gradient(to right, #000, transparent 68%);
  mask-image: linear-gradient(to right, #000, transparent 68%);
}

/* 브레드크럼 */
.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink-400);
}
.crumb li { display: flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: '›'; color: var(--ink-300); }
.crumb a:hover { color: var(--ink-700); }
.crumb [aria-current] { color: var(--ink-700); }

/* --------------------------------------------------------------------------
   6. 서브 좌측/상단 메뉴 (LNB)
   -------------------------------------------------------------------------- */
.ptab {
  position: sticky;
  top: var(--head-h);
  z-index: 100;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.ptab__list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ptab__list::-webkit-scrollbar { display: none; }
.ptab__list a {
  position: relative;
  display: block;
  padding: 16px 18px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink-500);
  white-space: nowrap;
  transition: color .22s;
}
.ptab__list a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 0;
  height: 2px;
  background: var(--o-500);
  transform: scaleX(0);
  transition: transform .3s var(--e-out);
}
.ptab__list a:hover { color: var(--ink-900); }
.ptab__list a.is-active { color: var(--o-600); }
.ptab__list a.is-active::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   7. 하단 CTA 밴드
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--paper-ink);
  color: #fff;
  padding-block: clamp(56px, 7vw, 92px);
}
.cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.cta__title {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.042em;
  color: #fff;
}
.cta__desc { margin-top: 12px; color: rgba(255,255,255,.6); max-width: 52ch; font-size: .9375rem; }
.cta__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cta__deco {
  position: absolute;
  right: clamp(24px, 4vw, 64px);
  top: 50%;
  transform: translateY(-50%);
  width: min(14vw, 132px);
  height: auto;
  opacity: .09;
  pointer-events: none;
}
@media (max-width: 900px) {
  .cta__inner { grid-template-columns: 1fr; align-items: start; }
  .cta__deco { display: none; }
}

/* --------------------------------------------------------------------------
   8. 푸터 — 기업형 (사업자 정보 포함)
   -------------------------------------------------------------------------- */
.footer {
  background: #F5F4F1;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: .8125rem;
}
.footer__top {
  display: grid;
  /* 브랜드 / 메뉴 3열 — 브랜드 열에 사업자정보가 들어가므로 넓게 */
  grid-template-columns: minmax(0, 1.75fr) repeat(3, minmax(0, .85fr));
  gap: clamp(22px, 2.6vw, 40px);
  padding-block: clamp(44px, 5.5vw, 68px);
}
.footer__slogan {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink-800);
  line-height: 1.6;
}
.footer__biz {
  margin-top: 16px;
  font-size: .75rem;
  line-height: 1.9;
  color: var(--ink-500);
}
.footer__biz span { display: inline-block; margin-right: 14px; white-space: nowrap; }
.footer__biz b { font-weight: 600; color: var(--ink-600); }

.footer__col h4 {
  margin-bottom: 15px;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-900);
}
.footer__col li + li { margin-top: 9px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--o-600); }

.footer__bot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--ink-400);
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--ink-900); }

@media (max-width: 1180px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
/* 모바일에서는 푸터 메뉴를 감춘다.
   같은 메뉴가 햄버거 안에 이미 있어 두 번 나열될 필요가 없고,
   좁은 화면에서 링크만 길게 이어져 사업자정보가 아래로 밀린다. */
@media (max-width: 780px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__col { display: none; }
}

/* --------------------------------------------------------------------------
   9. 상단 이동 버튼
   -------------------------------------------------------------------------- */
.totop {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 150;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-2);
  color: var(--ink-600);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--e-out), transform .3s var(--e-out), visibility .3s,
              border-color .25s, color .25s;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: var(--ink-900); color: var(--ink-900); }
