/* ========================================================
   components.css — 2개 이상 페이지에서 공유하는 공통 컴포넌트
   삼우종합건축사사무소 (Samoo)
   ※ :root 변수는 style.css 에만 정의. 여기서는 var() 로 참조만 한다.
   ※ 프리픽스 없는 순수 BEM.
   ======================================================== */

/* ========================================================
   버튼 (.btn) — Figma 02-3-Button
   타입: primary / secondary / outlined / ghost
   사이즈: h60 / h48   너비: hug(min 96) / fixed(100%)
   상태 데모용: .is-hover / .is-disabled (실제 상태는 :hover / :disabled)
   ※ 각진 버튼(radius 0). primary/secondary 는 보더 없음(투명), outlined/ghost 만 보더.
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16rem;
  min-width: 96rem;
  height: 60rem;
  padding: 0 32rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-btn-lg); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  border: 1px solid transparent; /* 타입 간 박스 크기 통일 */
  /* 2026-08-25 - 시안의 btn/basic/hug 인스턴스가 알약형이라 기본을 알약으로.
     예외는 secondary(파일 선택) 뿐이라 그쪽에서만 되돌린다. */
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out-cubic),
    border-color 0.2s var(--ease-out-cubic), color 0.2s var(--ease-out-cubic);
}

/* ── 사이즈 ── */
.btn--h60 {
  height: 60rem;
  padding: 0 32rem;
  gap: 16rem;
  font-size: var(--kor-btn-lg); /* 18 */
}
.btn--h48 {
  height: 48rem;
  padding: 0 24rem;
  gap: 12rem;
  font-size: var(--kor-btn-md); /* 16 */
}

/* ── 버튼 안 외부링크 아이콘 (↗) ── */
.btn__ext {
  flex-shrink: 0;
  width: 16rem;
  height: 16rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-external-link.svg") center / contain no-repeat;
  mask: url("../images/ico-external-link.svg") center / contain no-repeat;
}
/* 2026-09-16 - h60 버튼은 시안이 ic/20 이라 20 으로 키운다 */
.btn--h60 .btn__ext {
  width: 20rem;
  height: 20rem;
}

/* ── 버튼 안 다운로드 아이콘 (⬇) ──
   2026-08-24 - 브랜드 아카이브 다운로드 버튼에서 사용.
   시안은 크기별로 선 굵기가 달라 16px 전용 파일을 쓴다(ic/16/download). */
.btn__dl {
  flex-shrink: 0;
  width: 16rem;
  height: 16rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-download-16.svg") center / contain no-repeat;
  mask: url("../images/ico-download-16.svg") center / contain no-repeat;
}

/* ── 너비 ── */
.btn--hug {
  min-width: 96rem;
}
.btn--fixed {
  width: 100%;
}

/* ── 타입: Primary (삼우 블루) ── */
.btn--primary {
  color: var(--color-text-default-white);
  background: var(--color-btn-default-primary); /* #1428a0 */
}
.btn--primary:hover,
.btn--primary:focus-visible,
.btn--primary.is-hover {
  background: var(--color-btn-hover-primary); /* #181575 */
}
.btn--primary:disabled,
.btn--primary.is-disabled {
  color: var(--color-btn-text-secondary-disabled); /* #3399ff */
  background: var(--color-btn-disabled-primary); /* #ecf5fd */
  pointer-events: none;
}

/* ── 타입: Secondary (다크) ── */
/* 2026-09-09 - 시안 수정(7292:9027) 으로 secondary 도 알약형 — 기본 .btn 의 999 를 그대로 따른다 */
.btn--secondary {
  color: var(--color-text-default-white);
  background: var(--color-btn-default-secondary); /* #262626 */
}
.btn--secondary:hover,
.btn--secondary:focus-visible,
.btn--secondary.is-hover {
  background: var(--color-btn-hover-secondary); /* #1a1a1a */
}
.btn--secondary:disabled,
.btn--secondary.is-disabled {
  color: var(--color-btn-text-disabled); /* #727272 */
  background: var(--color-btn-disabled-secondary); /* #f2f2f2 */
  pointer-events: none;
}

/* ── 타입: Outlined (흰 배경 + 다크 보더) ── */
.btn--outlined {
  color: var(--color-text-default-highest);
  background: var(--color-btn-default-outline-fill); /* #fff */
  border-color: var(--color-btn-default-outline-stroke); /* #262626 */
}
.btn--outlined:hover,
.btn--outlined:focus-visible,
.btn--outlined.is-hover {
  background: var(--color-btn-hover-outline-fill); /* #f8f8f8 */
  border-color: var(--color-btn-hover-outline-stroke); /* #1a1a1a */
}
.btn--outlined:disabled,
.btn--outlined.is-disabled {
  color: var(--color-btn-text-disabled); /* #727272 */
  background: var(--color-btn-disabled-outline-fill); /* #f8f8f8 */
  border-color: var(--color-btn-disabled-outline-stroke); /* #e5e5e5 */
  pointer-events: none;
}

/* ── 타입: Ghost (다크 배경 위, 흰 보더) ── */
.btn--ghost {
  color: var(--color-text-default-white);
  background: transparent;
  border-color: var(--color-btn-default-ghost-stroke); /* #fff */
}
.btn--ghost:hover,
.btn--ghost:focus-visible,
.btn--ghost.is-hover {
  color: var(--color-text-default-highest);
  background: var(--color-btn-hover-ghost-fill); /* #fff */
}

/* ── 아이콘 (CSS 셰브론, 버튼 텍스트색 상속) ── */
.btn__icon {
  position: relative;
  flex-shrink: 0;
  width: 20rem;
  height: 20rem;
}
.btn__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7rem;
  height: 7rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translate(-70%, -50%) rotate(45deg); /* 우측 셰브론 */
}
.btn__icon--left::before {
  transform: translate(-30%, -50%) rotate(225deg); /* 좌측 셰브론 */
}

/* ── 버튼 그룹 래퍼 ── */
.btn-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12rem;
}
.btn-wrap .btn--fixed {
  flex: 1;
}

/* ── 하단 고정(스티키) 버튼 영역 ── */
.btn-sticky {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20rem 0;
  background: linear-gradient(to top, var(--color-bg-default-white) 70%, rgba(255, 255, 255, 0));
}
.btn-sticky > .btn-wrap {
  width: 100%;
}

/* ========================================================
   텍스트 버튼 (.btn-text) — Figma 02-3-Button (Text)
   위계: strong / default / disabled   사이즈: 18 / 16 / 14
   ======================================================== */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  font-family: var(--font-family-kor);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  cursor: pointer;
}
.btn-text--18 {
  font-size: var(--kor-btn-lg); /* 18 */
}
.btn-text--16 {
  font-size: var(--kor-btn-md); /* 16 */
}
.btn-text--14 {
  font-size: var(--kor-btn-sm); /* 14 */
}
.btn-text--strong {
  color: var(--color-text-default-highest);
}
.btn-text--default {
  color: var(--color-text-point-default); /* #1428a0 */
}
.btn-text--disabled,
.btn-text.is-disabled {
  color: var(--color-text-default-lowest); /* #aaa */
  pointer-events: none;
}
.btn-text:hover,
.btn-text:focus-visible {
  text-decoration: underline;
}
/* 텍스트버튼 아이콘 — 시안 ic/20/arrow-right (20 박스 · 셰브론 6×12 · 두께 2) */
.btn-text__icon {
  flex-shrink: 0;
  width: 20rem;
  height: 20rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-arrow-right-20.svg") center / contain no-repeat;
  mask: url("../images/ico-arrow-right-20.svg") center / contain no-repeat;
}
/* 2026-09-17 - 텍스트버튼 다운로드 아이콘 (시안 ic/20/download) — 뉴스레터 PDF 보기 */
.btn-text__dl {
  flex-shrink: 0;
  width: 20rem;
  height: 20rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-download-20.svg") center / contain no-repeat;
  mask: url("../images/ico-download-20.svg") center / contain no-repeat;
}

/* ========================================================
   GNB (.gnb) — Figma 02-1-GNB / Component
   변형: 기본(sub page, 흰 배경) / .gnb--transparent(메인 오버레이)
   상태: .gnb--scrolled (스크롤 시 흰 배경 고정)
   ======================================================== */
.gnb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: 120rem;
  /* 2026-09-28 - 시안 width 개편: 좌우 72 → 222 */
  padding: 0 var(--side-padding);
  background: var(--color-bg-default-white);
  transform: translateY(0);
  transition: transform 0.35s var(--ease-out-cubic),
    background-color 0.3s var(--ease-out-cubic), color 0.3s var(--ease-out-cubic);
}

/* 상태: 스크롤 다운 시 위로 숨김 (common.js gnbEv 에서 토글) */
.gnb--hidden {
  transform: translateY(-100%);
}

/* 2026-09-09 - data-gnb="… minimal" — 헤더를 감추고 페이지가 자체 최소 바를 쓴다.
   (프로젝트 상세: 이미지에 집중하도록 진입 시 헤더 미노출)
   페이지 쪽에서 body 에 is-poj-nav-open / is-menu-open / is-search-open 을 주면 다시 내려온다. */
header[data-gnb~="minimal"] .gnb {
  transform: translateY(-100%);
}
body.is-poj-nav-open header[data-gnb~="minimal"] .gnb,
body.is-menu-open header[data-gnb~="minimal"] .gnb,
body.is-search-open header[data-gnb~="minimal"] .gnb {
  transform: translateY(0);
}
/* 2026-09-09 - 최소 바의 메뉴 버튼으로 내릴 땐 흰 카드 배경을 깔고 요소를 다크로 바꿈.
   그냥 내리면 KV 이미지 위에 흰 글씨만 떠 잎힌다. 스크롤 상태(.gnb--scrolled)와 같은 모양이다. */
body.is-poj-nav-open header[data-gnb~="minimal"] .gnb__mega {
  opacity: 1;
  visibility: visible;
  /* 기본 규칙은 visibility 를 0.35s 뒤에 바꿈 — 그대로면 헤더가 다 내려온 뒤에야 흰 배경이 탁 나타난다.
     내려올 땐 지연 없이 처음부터 흰 카드로, 올라갈 땐 기본 규칙(페이드아웃)을 그대로 따른다. */
  transition: height 0.35s var(--ease-out-cubic), opacity 0s, visibility 0s;
}
body.is-poj-nav-open header[data-gnb~="minimal"] .gnb--transparent .gnb__logo {
  background-color: var(--color-logo-blue);
}
body.is-poj-nav-open header[data-gnb~="minimal"] .gnb--transparent .gnb__menu {
  color: var(--color-text-default-highest);
}
body.is-poj-nav-open header[data-gnb~="minimal"] .gnb--transparent .gnb__icon,
body.is-poj-nav-open header[data-gnb~="minimal"] .gnb--transparent .gnb__icons {
  color: var(--color-ic-black);
}

/* 로고 — 110.586×27, mask 로 색상 전환(흰 배경:블루 / 투명:화이트) */
.gnb__logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 110.586rem;
  height: 27rem;
  background-color: var(--color-logo-blue);
  -webkit-mask: url("../images/logo-samoo.svg") center / contain no-repeat;
  mask: url("../images/logo-samoo.svg") center / contain no-repeat;
  transition: background-color 0.3s var(--ease-out-cubic);
}

/* 좌측 주요 메뉴 — 로고에서 121 (Figma left 303.5)
   ※ align-self/items: stretch — 메뉴 항목이 헤더 높이를 채워야
     2뎁스 컬럼(top:132)의 기준선이 된다. */
/* 2026-09-08 - 간격은 시안 hover 상태(4805:7106) 기준 80.
   2뎁스 컬럼 좌표가 80 간격으로 잡혀 있어, 좁히면 컬럼이 겹친다. */
/* 2026-09-18 - 시안 수정(hover 상태 4805:7106): 대메뉴 간격 88.
   48 로 좁혔더니 2댄스 컬럼이 서로 겹쳐 시안이 88 로 다시 잡혔다. */
/* 2026-11-04 - 영문 시안(11758:7141 기본 / 11758:7226 호버) 반영.
   기본은 48 로 좁혀 두 묶음이 좌우로 갈라져 있고, 2뎁스가 열리면 여섯 개가
   102 간격으로 고르게 펼쳐진다. 펼친 간격이 2뎁스 컬럼 폭을 만들어 주므로
   예전처럼 기본 간격을 88 로 벌려 둘 필요가 없다.
   자리 이동은 nav 의 flex-grow 로 — 숫자라 margin:auto 와 달리 전환이 먹는다 */
.gnb__nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  flex: 1 1 auto;
  column-gap: 48rem;
  margin-left: 121rem;
  /* 2026-11-04 - 펼쳐지는 느낌이 나도록 이징을 ease-out-expo 로 */
  transition: flex-grow 0.45s var(--ease-out-expo),
    column-gap 0.45s var(--ease-out-expo);
}

/* 우측 — [보조메뉴] 121 [유틸 아이콘] (Figma right 261 / 72) */
/* 2026-09-17 - 시안 실측: 보조메뉴 끝(1553) ↔ 유틸 시작(1633) = 80 */
/* 2026-11-04 - margin-left:auto 를 떼고 왼쪽 묶음과 같은 간격(102)을 둔다.
   남는 자리는 nav 가 먹어(flex-grow) 기본 상태에서 오른쪽에 붙는다 */
.gnb__util {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  column-gap: 80rem;
  margin-left: 102rem;
  transition: flex-grow 0.45s var(--ease-out-expo),
    column-gap 0.45s var(--ease-out-expo);
}
/* 2026-09-18 - 시안 수정: 보조메뉴 사이도 88 */
/* 2026-11-04 - 영문은 기본 48 / 펼침 102 (.gnb__nav 와 같다) */
.gnb__nav2 {
  display: flex;
  align-items: stretch;
  column-gap: 48rem;
  transition: column-gap 0.45s var(--ease-out-expo);
}
/* 2뎁스가 열리면 여섯 개가 102 간격으로 고르게 펼쳐진다 */
.gnb--mega .gnb__nav,
.gnb--mega .gnb__nav2 {
  column-gap: 102rem;
}
.gnb--mega .gnb__nav {
  flex-grow: 0;
}
.gnb--mega .gnb__util {
  flex-grow: 1;
  /* 시안 호버: 메뉴 줄 끝(1404) ↔ 유틸 시작(1472) = 68.
     2026-11-04 - 여기 적은 값은 '최소' 간격일 뿐이고 실제 간격은 아이콘의
     margin-left:auto 가 만든다(=77). 68 로 잡아 두면 줄 전체가 꽉 차서 여유가
     9 밖에 안 남아 메뉴가 눌렸다 — 바닥값만 낮춰 자리를 비워 둔다 */
  column-gap: 24rem;
}

/* 메뉴 1개 단위 — 2뎁스 컬럼과 활성 밑줄의 기준 박스 */
.gnb__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  /* 2026-11-04 - 자리가 조금만 모자라도 눌려서 About Us · Media Hub 가 두 줄이 됐다.
     메뉴 칸은 줄지 않는다 */
  flex: 0 0 auto;
}

/* 2026-09-08 - 1뎁스는 링크가 아니라 2뎁스를 여는 역할 — button 으로 바꿈 */
.gnb__menu {
  background: none;
  border: 0;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  /* 2026-11-04 - 영문 메뉴는 두 낱말이라 자리가 모자라면 접힌다 — 한 줄로 고정 */
  white-space: nowrap;
  transition: color 0.2s var(--ease-out-cubic);
}
.gnb__menu:hover,
.gnb__menu:focus-visible {
  color: var(--color-text-point-default);
}

/* 아이콘 버튼 (검색 / 언어) */
.gnb__icons {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20rem;
  /* 2026-11-04 - 묶음이 늘어나도 아이콘은 오른쪽 끝에 붙는다 */
  margin-left: auto;
}
.gnb__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24rem;
  height: 24rem;
  color: var(--color-ic-black);
}
.gnb__icon svg {
  width: 100%;
  height: 100%;
}
/* 아이콘 — 실제 에셋(SVG)을 mask 로 입혀 currentColor 로 색 적응(투명/스크롤 헤더 대응) */
.gnb__icon--search,
.gnb__icon--lang {
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.gnb__icon--search {
  -webkit-mask-image: url("../images/ico-search.svg");
  mask-image: url("../images/ico-search.svg");
}
.gnb__icon--lang {
  -webkit-mask-image: url("../images/ico-view-globe.svg");
  mask-image: url("../images/ico-view-globe.svg");
}

/* ── 2026-09-08 - 유틸 개편 (시안 4835:14696)
   언어는 드롭다운 대신 KR / EN 텍스트, 패밀리 사이트 자리에 브로슈어 다운로드 ── */
/* 2026-09-16 - 시안 실측: KOR↔ENG 간격 4 → 6 */
.gnb__lang {
  display: flex;
  align-items: center;
  gap: 6rem;
}
.gnb__lang-btn {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: currentColor;
  background: none;
  border: 0;
  opacity: 0.6; /* 비선택 */
  transition: opacity 0.2s var(--ease-out-cubic);
}
.gnb__lang-btn.is-current {
  opacity: 1;
}
.gnb__lang-btn:hover,
.gnb__lang-btn:focus-visible {
  opacity: 1;
}
/* 2026-09-16 - 시안 실측: 브로슈어 글자↔아이콘 간격 8 → 6 */
.gnb__brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: currentColor;
  white-space: nowrap;
  background: none;
  border: 0;
}
.gnb__brochure-ico {
  width: 20rem;
  height: 20rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-download-20.svg") center / contain no-repeat;
  mask: url("../images/ico-download-20.svg") center / contain no-repeat;
}

/* 모바일 유틸(검색/햄버거) — 데스크톱 숨김 */
.gnb__mobile {
  display: none;
}
/* 모바일 버튼 SVG 크기 지정 (없으면 아이콘이 안 그려짐) */
.gnb__mobile-btn svg {
  width: 100%;
  height: 100%;
}

/* ── 변형: 투명(메인 오버레이) ── */
.gnb--transparent {
  background: transparent;
}
.gnb--transparent .gnb__logo {
  background-color: var(--color-neutral-white);
}
.gnb--transparent .gnb__menu {
  color: var(--color-text-default-white);
}
.gnb--transparent .gnb__menu:hover,
.gnb--transparent .gnb__menu:focus-visible {
  color: var(--color-blue-200);
}
.gnb--transparent .gnb__icon,
.gnb--transparent .gnb__icons {
  color: var(--color-ic-white);
}

/* ── 상태: 스크롤 시 카드형 배경 ──
   풀블리드 흰 바 대신 2뎁스 호버 카드(.gnb__mega)를 '바 높이(100)' 로만 띄운다.
   좌우 10 안쪽 · radius 12 · shadow 가 그대로 적용된다. */
.gnb--scrolled {
  background: transparent;
}
.gnb--scrolled .gnb__mega {
  opacity: 1;
  visibility: visible;
}
.gnb--scrolled.gnb--transparent .gnb__logo {
  background-color: var(--color-logo-blue);
}
.gnb--scrolled.gnb--transparent .gnb__menu {
  color: var(--color-text-default-highest);
}
.gnb--scrolled.gnb--transparent .gnb__icon,
.gnb--scrolled.gnb--transparent .gnb__icons {
  color: var(--color-ic-black);
}

/* 검색 열림 중 — 흰 배경은 카드(.gnb__mega)가 담당하고 텍스트만 다크로 전환 */
body.is-search-open .gnb--transparent .gnb__logo {
  background-color: var(--color-logo-blue);
}
body.is-search-open .gnb--transparent .gnb__menu {
  color: var(--color-text-default-highest);
}
body.is-search-open .gnb--transparent .gnb__icon,
body.is-search-open .gnb--transparent .gnb__mobile-btn {
  color: var(--color-ic-black);
}

/* 2026-09-09 - 투명 헤더가 스크롤로 올라가는 동안은 스크롤 상태(다크 로고 · 흰 카드)로 바뀌지 않는다.
   둘이 동시에 걸리면 사라지는 0.35초 동안 검은 로고 헤더가 스쳐 보인다.
   전환 없이 즉시 되돌린다 — 다시 내려올 땐(gnb--hidden 해제) 기본 규칙이 맡는다.
   메뉴·검색·프로젝트 상세 최소 바로 헤더를 내린 상태는 제외한다. */
body:not(.is-menu-open):not(.is-search-open):not(.is-poj-nav-open) .gnb--transparent.gnb--hidden .gnb__logo {
  background-color: var(--color-neutral-white);
  transition: none;
}
body:not(.is-menu-open):not(.is-search-open):not(.is-poj-nav-open) .gnb--transparent.gnb--hidden .gnb__menu {
  color: var(--color-text-default-white);
  transition: none;
}
body:not(.is-menu-open):not(.is-search-open):not(.is-poj-nav-open) .gnb--transparent.gnb--hidden .gnb__icon,
body:not(.is-menu-open):not(.is-search-open):not(.is-poj-nav-open) .gnb--transparent.gnb--hidden .gnb__icons {
  color: var(--color-ic-white);
  transition: none;
}
body:not(.is-menu-open):not(.is-search-open):not(.is-poj-nav-open) .gnb--transparent.gnb--hidden .gnb__mega {
  opacity: 0;
  visibility: hidden;
  transition: none;
}
/* 내려올 때도 같다 — 숨김이 풀린 뒤 색이 뒤따라오면 흰 로고 헤더가 스쳐 보인다.
   투명 헤더의 스크롤 상태 전환은 즉시 처리해 위치와 외형이 항상 같이 움직이게 한다.
   (대가로 이 헤더의 메뉴 hover 색 변화도 즉시로 바뀐다) */
.gnb--transparent .gnb__logo,
.gnb--transparent .gnb__menu,
.gnb--transparent .gnb__icon,
.gnb--transparent .gnb__icons {
  transition: none;
}
/* 카드는 높이(2뎁스 slideDown) 애니메이션만 유지하고 나타남·사라짐은 즉시로 */
.gnb--scrolled.gnb--transparent .gnb__mega {
  transition: height 0.35s var(--ease-out-cubic), opacity 0s, visibility 0s;
}


/* ========================================================
   GNB 2뎁스 메가메뉴 (.gnb__mega / .gnb__sub) — Figma gnb-hover
   · 카드: 좌우 10 안쪽, top 10, h 440, radius 12, shadow-200
   · 카드 안 헤더 바(100) 아래 구분선 → 그 위에 활성 메뉴 밑줄
   · 컬럼은 각 .gnb__item 기준으로 정렬되므로 좌표 하드코딩이 없다
   ======================================================== */
.gnb__mega {
  position: absolute;
  top: 10rem;
  right: 10rem;
  left: 10rem;
  z-index: 0;
  /* 닫힘 = 헤더 바 높이 → 열림 440 으로 높이가 자라며 slideDown */
  height: 100rem;
  overflow: hidden;
  background: var(--color-bg-default-white);
  border-radius: var(--radius-300); /* 12 */
  /* 테두리를 inset 그림자로 — border 를 쓰면 절대배치 자식이 padding box 기준이 되어
     구분선이 1px 밀리고, 그 위에 겹쳐야 할 활성 밑줄과 어긋난다 */
  box-shadow: var(--shadow-200), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: height 0.35s var(--ease-out-cubic),
    opacity 0.2s var(--ease-out-cubic), visibility 0s linear 0.35s;
}
/* 카드 안 헤더 바 아래 구분선 (Figma: 바 높이 100) */
.gnb__mega::after {
  content: "";
  position: absolute;
  top: 100rem;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--color-bg-primary-light-level-2);
}
.gnb--mega .gnb__mega {
  /* 2026-09-08 - 시안(4805:10650) 카드 높이 471 — 하단 여백이 좁던 문제 */
  /* 2026-09-16 - 회사소개 2댄스 항목이 하나 줄어(지사소개 이동) 가장 긴 컬럼이 45 낮아졌다.
     하단 여백을 이전과 같은 86 으로 유지하려고 471 → 426 으로 줄임 */
  height: 426rem;
  opacity: 1;
  visibility: visible;
  /* 2뎁스 위로 마우스가 올라와도 .gnb 를 벗어난 것으로 판정되지 않게 한다 */
  pointer-events: auto;
  transition: height 0.35s var(--ease-out-cubic),
    opacity 0.2s var(--ease-out-cubic), visibility 0s;
}

/* ── 2뎁스 컬럼 ── */
.gnb__sub {
  position: absolute;
  /* 2026-09-08 - 시안: 카드(top 10) 기준 132 → 절대 142 */
  top: 142rem;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 16rem;
  /* 카드가 내려오는 속도에 맞춰 위에서부터 드러난다 */
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: clip-path 0.35s var(--ease-out-cubic),
    opacity 0.2s var(--ease-out-cubic), visibility 0s linear 0.35s;
}
.gnb--mega .gnb__sub {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: clip-path 0.35s var(--ease-out-cubic),
    opacity 0.2s var(--ease-out-cubic), visibility 0s;
}
.gnb__sub-link {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  white-space: nowrap;
  transition: color 0.2s var(--ease-out-cubic);
}
.gnb__sub-link:hover,
.gnb__sub-link:focus-visible {
  color: var(--color-primary-samoo-blue);
}
/* 2026-10-08 - 긴 영문 메뉴명은 두 줄로. inline-flex 안에서는 <br> 이 먹지 않아
   이 항목만 inline-block 으로 바꾼다. (영문 전용)
   두 줄이 떨어져 보여 행간을 1.6 → 1.2 로 좁히고,
   줄어든 반행간(3.6)만큼 위아래 여백을 넣어 다른 2뎁스와의 간격은 그대로 둔다 */
.gnb__sub-link--two {
  display: inline-block;
  padding: 3.6rem 0;
  line-height: 1.2;
  white-space: normal;
}
/* 외부 링크(채용안내) */
.gnb__sub-link--ext::after {
  content: "";
  flex-shrink: 0;
  width: 16rem;
  height: 16rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-external-link.svg") center / contain no-repeat;
  mask: url("../images/ico-external-link.svg") center / contain no-repeat;
}

/* ── 활성 메뉴 밑줄 — 카드 구분선 바로 위 ── */
.gnb__item::after {
  content: "";
  position: absolute;
  /* 카드 상단(10) + 바 높이(100) = 회색 구분선과 같은 y 에 겹친다 */
  top: 110rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary-samoo-blue);
  /* 좌 → 우 로 그려지고, 사라질 때도 좌 → 우 로 지워진다.
     기본 상태의 origin 을 right 로 두면 1 → 0 축소가 오른쪽으로 밀리며 지워지는 모션이 된다 */
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s var(--ease-out-cubic);
}
.gnb--mega .gnb__item:hover::after,
.gnb--mega .gnb__item:focus-within::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ── 2026-09-08 - GNB 딤 (시안 dim 2 #000 64%) ──
   2뎁스 호버 · 검색 열림 동안 본문을 덮는다. GNB(100) 아래라 카드는 딤 위에 남는다.
   모바일은 드로어가 자체 딤(16%)을 쓰므로 1024 이하에선 끈다. */
.gnb__dim {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.64);
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* 클릭은 본문으로 통과 — 바깥 클릭 닫기 유지 */
  transition: opacity 0.35s var(--ease-out-cubic), visibility 0s linear 0.35s;
}
.gnb--mega ~ .gnb__dim,
.gnb--search ~ .gnb__dim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease-out-cubic), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .gnb__dim {
    transition: none;
  }
}

/* ── 유틸 드롭다운 (.gnb__drop) ──
   2026-09-08 - 헤더의 언어·패밀리 사이트가 없어져 현재 사용처는 없다.
   목록형 유틸이 다시 필요할 때 재사용할 수 있게 남겨 둔다. */
.gnb__drop {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.gnb__drop-list {
  position: absolute;
  top: calc(100% + 16rem); /* Figma: 리스트 top 88 */
  right: 0;
  z-index: 2;
  overflow: hidden;
  background: var(--color-bg-default-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-200); /* 8 */
  /* 열고 닫힐 때 페이드 — display 토글이면 트랜지션이 걸리지 않으므로
     opacity 로 처리하고, visibility 는 페이드가 끝난 뒤 넘긴다(닫힘 시 탭 이동 차단). */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out-cubic), visibility 0s linear 0.2s;
}
.gnb__drop.is-open .gnb__drop-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s var(--ease-out-cubic), visibility 0s;
}
.gnb__drop-list button {
  width: 100%;
  padding: 8rem 16rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out-cubic);
}
.gnb__drop-list button:hover,
.gnb__drop-list button:focus-visible {
  background: var(--color-bg-secondary-light-level-2); /* #ecf5fd */
}
/* 현재 선택된 항목(언어) */
.gnb__drop-list button.is-current {
  color: var(--color-text-point-default); /* #1428a0 */
}

/* 언어 드롭다운 — 토글이 아이콘 하나라 아이콘 기준 가운데 정렬 */
.gnb__lang .gnb__drop-list {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* ── 메가메뉴 열림 중 — 흰 배경은 카드가 담당하므로 헤더 자체는 투명, 텍스트는 다크 ──
   (투명/스크롤 변형보다 뒤에 두어 우선한다) */
.gnb.gnb--mega,
.gnb.gnb--search {
  background: transparent;
}
.gnb.gnb--mega .gnb__logo,
.gnb.gnb--search .gnb__logo {
  background-color: var(--color-logo-blue);
}
.gnb.gnb--mega .gnb__menu,
.gnb.gnb--search .gnb__menu {
  color: var(--color-text-default-highest);
}
/* 2026-09-08 - 흰 카드 위에서는 유틸 전체(언어 · 브로슈어 · 아이콘)를 다크로 */
.gnb.gnb--mega .gnb__icons,
.gnb.gnb--search .gnb__icons,
.gnb.gnb--mega .gnb__icon,
.gnb.gnb--search .gnb__icon,
.gnb.gnb--search .gnb__mobile-btn {
  color: var(--color-ic-black);
}

/* ========================================================
   GNB 검색 영역 (.gnb__search) — Figma gnb-search
   검색 버튼 클릭 시 카드(.gnb__mega)가 609 로 늘어나며 함께 노출된다.
   구성: 입력(640×64 pill) / 추천 키워드
   2026-09-08 - 시안 4835:14695 — 폭 640, 카드 기준 상단 180, 브로슈어 배너 삭제
   ======================================================== */
.gnb__search {
  position: absolute;
  top: 180rem; /* 카드 기준 — 바 100 + 80 */
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 24rem;
  width: 640rem;
  transform: translateX(-50%);
  /* 카드(.gnb__mega)의 overflow:hidden 이 잘라내므로, 카드 높이가 자라며
     내용이 위에서부터 드러난다. 페이드는 쓰지 않는다. */
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}
.gnb--search .gnb__search {
  visibility: visible;
  transition: visibility 0s;
}

/* ── 입력 — 공통 .search 컴포넌트 재사용 + GNB 치수만 재정의 ── */
.gnb__search .gnb__search-box {
  height: 64rem;
  padding: 0 24rem;
  background: none;
  border-radius: var(--radius-full);
}
.gnb__search .gnb__search-box .search__input {
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
}
.gnb__search .gnb__search-box .search__input::placeholder {
  color: var(--color-text-default-low);
}

/* ── 추천 키워드 (2026-09-08 - 라벨 삭제) ── */
.gnb__search-keyword {
  display: flex;
  align-items: center;
  min-width: 0;
}
/* 2026-09-08 - Swiper 미사용(줄바꿈 배치) — .swiper 의 margin:auto 때문에
   Swiper CSS 가 로드된 페이지에서 알약 줄이 가운데로 밀리던 문제도 함께 해결 */
.gnb__search-tags {
  min-width: 0;
}
.gnb__search-tags-list {
  display: flex;
  gap: 8rem;
}
.gnb__search-tags-list > li {
  flex-shrink: 0;
}
/* 2026-09-08 - 시안(4835:14856) 알약 — 배경 #F2F2F2 / 글자 16 Regular #555 / 패딩 5·16·6 */
.gnb__search-tag {
  display: inline-flex;
  align-items: center;
  padding: 5rem 16rem 6rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-medium); /* #555555 */
  white-space: nowrap;
  background: var(--color-bg-primary-light-level-2); /* #f2f2f2 */
  border: 0;
  border-radius: var(--radius-full);
  transition: color 0.2s var(--ease-out-cubic), background-color 0.2s var(--ease-out-cubic);
}
.gnb__search-tag:hover,
.gnb__search-tag:focus-visible {
  color: var(--color-text-default-highest); /* #1A1A1A */
  background-color: var(--color-bg-primary-light-level-3); /* #e5e5e5 */
}

/* ── 열림 상태 — 카드 높이 (2026-09-08 - 브로슈어 배너 삭제로 609 → 401) ── */
.gnb--search .gnb__mega {
  height: 401rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: height 0.35s var(--ease-out-cubic),
    opacity 0.2s var(--ease-out-cubic), visibility 0s;
}

/* ========================================================
   Footer (.footer) — Figma 02-2-Footer
   다크 배경, 4개 문의 컬럼 + 주소/SNS/정책 + 패밀리사이트
   ======================================================== */
.footer {
  /* 2026-08-25 - 패밀리사이트 목록이 위로 열려 본문(z-index 1~20)에 가리던 문제.
     쌓임 순서: 본문(1~20) < 푸터(50) < 프로젝트 필터(60) < GNB(100) < 모달(200) */
  position: relative;
  z-index: 50;
  width: 100%;
  /* 2026-09-28 - 시안 width 개편: 좌우 72 → 222 */
  padding: 64rem var(--side-padding) 48rem;
  color: var(--color-text-default-white);
  background: var(--color-bg-default-black); /* #000 (Figma) */
}

.footer__inner {
  width: 100%;
  max-width: var(--content-width); /* 1476 */
  margin: 0 auto;
}

/* 주소(0) / SNS(600) / 정책(900) / 패밀리(우) */
.footer__body {
  display: flex;
  align-items: flex-start;
}
.footer__col--address {
  display: flex;
  flex-direction: column;
  gap: 32rem;
  flex-shrink: 0;
  width: 600rem;
}
.footer__col--sns {
  flex-shrink: 0;
  width: 300rem;
}
.footer__col--policy {
  flex: 1;
}
.footer__group {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.footer__col-title {
  font-size: var(--kor-b6); /* 14 */
  font-weight: var(--font-weight-regular);
  color: var(--color-text-default-white);
}
.footer__address {
  font-style: normal;
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  color: var(--color-text-default-white);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  margin-top: 8rem;
}
.footer__link {
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-default-white);
}
.footer__link:hover,
.footer__link:focus-visible {
  text-decoration: underline;
}
/* 정책 — 제목 없음, 첫 항목(개인정보처리방침) bold, 나머지 medium */
/* 2026-10-12 - SNS 는 흰색 로고 아이콘 한 줄 (시안 126:1976).
   ico-sns-*.svg 는 어두운 색이라 그대로 쓰면 검정 배경에서 안 보인다 — mask 로 찍어 흰색으로 칠한다 */
.footer__links--sns {
  flex-direction: row;
  align-items: center;
  gap: 16rem;
}
.footer__sns {
  display: block;
  flex-shrink: 0;
  width: 24rem;
  height: 24rem;
  background-color: var(--color-text-default-white);
  transition: opacity 0.2s var(--ease-out-cubic);
}
.footer__sns:hover,
.footer__sns:focus-visible {
  opacity: 0.6;
}
.footer__sns--youtube {
  -webkit-mask: url("../images/ico-sns-youtube.svg") center / contain no-repeat;
  mask: url("../images/ico-sns-youtube.svg") center / contain no-repeat;
}
.footer__sns--instagram {
  -webkit-mask: url("../images/ico-sns-instagram.svg") center / contain no-repeat;
  mask: url("../images/ico-sns-instagram.svg") center / contain no-repeat;
}
.footer__sns--linkedin {
  -webkit-mask: url("../images/ico-sns-linkedin.svg") center / contain no-repeat;
  mask: url("../images/ico-sns-linkedin.svg") center / contain no-repeat;
}
.footer__links--policy {
  margin-top: 0;
}
.footer__links--policy .footer__link {
  font-weight: var(--font-weight-medium);
}
.footer__link--strong {
  font-weight: var(--font-weight-bold) !important;
}

/* 패밀리사이트 (토글 버튼 + 드롭다운) */
.footer__family {
  position: relative;
  flex-shrink: 0;
}
.footer__family-toggle {
  display: flex;
  align-items: center;
  /* 2026-09-03 - 시안 실측(200x48, 좌우 여백 24, 문구 좌 / + 우) 반영 */
  justify-content: space-between;
  gap: 16rem;
  width: 200rem;
  height: 48rem;
  padding: 0 24rem;
  /* 2026-09-03 - 폭이 고정이라 문구가 두 줄로 내려가지 않도록 고정 */
  white-space: nowrap;
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-default-white);
  background: transparent;
  border: 1px solid var(--alpha-white-400a); /* 흰색 40% */
}
.footer__family-toggle-ico {
  width: 16rem;
  height: 16rem;
  background: url("../images/ico-plus.svg") center / contain no-repeat; /* 얇은 흰색 + (stroke 1.5) */
  transition: transform 0.2s;
}
.footer__family.is-open .footer__family-toggle-ico {
  transform: rotate(45deg);
}
/* 2026-10-12 - 시안(5755:22781) 반영: 토글 바로 아래로 펼침, 흰 판 + 상하 여백 16,
   항목 높이 40 · 18 SemiBold, 호버 배경은 판 전체 폭(#ecf5fd) */
.footer__family-list {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 100%;
  padding: 16rem 0;
  background: var(--color-bg-default-white);
}
.footer__family.is-open .footer__family-list {
  display: block;
}
.footer__family-list button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40rem;
  padding: 0 20rem;
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  color: var(--color-text-default-highest);
}
.footer__family-list button:hover,
.footer__family-list button:focus-visible {
  background: var(--color-bg-secondary-light-level-2); /* #ecf5fd */
}

/* 하단 — 카피라이트 (16px, tracking 3.2px, uppercase, white) */
.footer__copyright {
  margin-top: 80rem;
  font-family: var(--font-family-eng);
  font-size: 16rem;
  line-height: 1;
  letter-spacing: 3.2rem;
  text-transform: uppercase;
  color: var(--color-text-default-white);
}

/* ========================================================
   Breadcrumb (.breadcrumb) — Figma 02-4-Breadcrumb
   ======================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 16rem;
}
.breadcrumb__home {
  width: 16rem;
  height: 16rem;
  background: url("../images/ico-breadcrumb-home.svg") center / contain no-repeat;
}
.breadcrumb__sep {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-text-default-lowest);
}
/* 2026-10-12 - 시안 대조: 행간 1.6 (kor/body/b5-med) — 리셋의 1.5 를 덮는다 */
.breadcrumb__item {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 상위 경로(링크)는 흐리게, 현재 페이지(span)는 highest */
a.breadcrumb__item {
  color: var(--color-text-default-low);
}
a.breadcrumb__item:hover,
a.breadcrumb__item:focus-visible {
  color: var(--color-text-default-highest);
  text-decoration: underline;
}

/* 라이트 변형 — KV(어두운 배경) 위에서 전체 흰색 */
.breadcrumb--light .breadcrumb__item,
.breadcrumb--light a.breadcrumb__item {
  color: var(--color-text-default-white);
}
.breadcrumb--light .breadcrumb__home {
  filter: brightness(0) invert(1); /* 아이콘 흰색화 */
}
.breadcrumb--light .breadcrumb__sep {
  background: var(--color-text-default-white);
}

/* ========================================================
   Search (.search) — Figma 02-10-Search (Input/Search)
   ======================================================== */
.search {
  display: flex;
  align-items: center;
  gap: 12rem;
  width: 100%;
  height: 60rem;
  padding: 0 16rem;
  background: var(--color-bg-default-white);
  border: 1px solid var(--color-bd-default);
  transition: border-color 0.2s var(--ease-out-cubic);
}
.search:focus-within {
  border-color: var(--color-bd-focused);
}
.search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  background: transparent;
  outline: none;
}
.search__input::placeholder {
  /* 2026-08-25 - 시안 search/basic 은 #727272 */
  color: var(--color-text-default-low);
}
.search__btn {
  flex-shrink: 0;
  width: 24rem;
  height: 24rem;
  background: url("../images/ico-search.svg") center / contain no-repeat;
}
/* 검색어 지우기 — 브라우저 기본 X 대신 디자인 버튼(회색 원 + 흰 X).
   common.js(searchClearEv)가 .search 에 주입하고, 값이 있을 때만 노출한다. */
.search__clear {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: var(--color-ic-gray); /* #727272 */
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out-cubic);
}
.search__clear::before {
  content: "";
  width: 20rem;
  height: 20rem;
  background-color: var(--color-white);
  -webkit-mask: url("../images/ico-close.svg") center / 10rem 10rem no-repeat;
  mask: url("../images/ico-close.svg") center / 10rem 10rem no-repeat;
}
.search__clear:hover {
  opacity: 0.7;
}
/* type=search 브라우저 기본 지우기/장식 버튼 제거 (모든 검색 인풋 공통) */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* ========================================================
   Pagination (.pagination) — Figma 02-5-Pagination
   ======================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
}
.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40rem;
  height: 40rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-btn-lg); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low);
  background: var(--color-btn-default-outline-fill); /* white */
  border: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out-cubic), color 0.2s var(--ease-out-cubic);
}
.pagination__item:hover,
.pagination__item:focus-visible {
  color: var(--color-text-default-highest);
  background: var(--color-bg-primary-light-level-1);
}
/* 현재 페이지 */
.pagination__item--active {
  color: var(--color-text-default-highest);
  background: var(--color-bg-neutral-light-level-2); /* #f2f2f2 */
}
/* 화살표/이동 아이콘
   2026-08-25 - --more 는 --nav 가 아니라서 content 가 없어 아이콘이 안 그려지고 있었다 */
.pagination__item--nav::after,
.pagination__item--more::after {
  content: "";
  width: 20rem;
  height: 20rem;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.pagination__item--first::after { background-image: url("../images/ico-pager-first.svg"); }
.pagination__item--prev::after  { background-image: url("../images/ico-pager-prev.svg"); }
.pagination__item--next::after  { background-image: url("../images/ico-pager-next.svg"); }
.pagination__item--last::after  { background-image: url("../images/ico-pager-last.svg"); }
.pagination__item--more::after  { background-image: url("../images/ico-pager-more.svg"); }
.pagination__item--more {
  pointer-events: none;
}

/* ========================================================
   Form Field (.field) — Figma 02-9-Input
   라벨(+필수) · 컨트롤(언더라인 input / 박스 textarea) · 도움말
   ======================================================== */
.field {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  width: 100%;
}
.field__label {
  display: flex;
  gap: 4rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 필수 표시 * */
.field__req {
  color: var(--color-text-status-danger);
}
/* 언더라인 입력 */
.field__input {
  width: 100%;
  height: 48rem;
  border: none;
  border-bottom: 1px solid var(--color-bd-default);
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 (Figma: 입력/placeholder) */
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  background: var(--color-bg-default-white);
  outline: none;
  transition: border-color 0.2s var(--ease-out-cubic);
}
.field__input::placeholder {
  color: var(--color-text-default-medium);
}
.field__input:focus {
  border-bottom-color: var(--color-bd-focused);
}
/* 박스형 textarea */
.field__textarea {
  width: 100%;
  height: 200rem; /* Figma: 고정 200 (최소 160) */
  min-height: 160rem;
  padding: 16rem;
  border: 1px solid var(--color-bd-default);
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  background: var(--color-bg-default-white);
  outline: none;
  resize: vertical;
}
.field__textarea::placeholder {
  color: var(--color-text-default-medium);
}
.field__textarea:focus {
  border-color: var(--color-bd-focused);
}
/* 도움말 */
.field__help {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b6); /* 14 */
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-medium);
}
/* 2026-10-06 - 입력 지우기 버튼 — 값이 있으면 인풋 오른쪽에 노출 (시안 btn/delete-x-circle 20)
   래퍼와 버튼은 common.js 가 주입한다(마크업 수정 없음). */
.field__clear-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.field__clear {
  position: absolute;
  right: 0;
  top: 50%;
  width: 20rem;
  height: 20rem;
  margin-top: -10rem;
  background: url("../images/ico-input-clear.svg") center / 20rem 20rem no-repeat;
}
.field__clear[hidden] {
  display: none;
}
.field__clear:focus-visible {
  outline: 2px solid var(--color-bd-focused);
  outline-offset: 2px;
}
/* 아이콘 20 + 간격 16 만큼 글자가 들어오지 않게 */
.field__clear-wrap .field__input {
  padding-right: 36rem;
}

/* 칩 필드 — 라벨→칩 간격 16 (일반 인풋 필드는 8) */
.field--chips {
  gap: 16rem;
}

/* ========================================================
   2026-08-25 - 얇은 스크롤바 — 투명 트랙 + pill 썸 + 화살표 없음 (Figma 개인정보 동의 박스)
   개인정보 동의 박스와 프로젝트 필터 패널이 같은 모양을 쓴다.
   썸 색은 --scroll-thumb 로 바꿀 수 있다(어두운 배경에서는 밝게).
   ※ Chrome/Safari 는 ::-webkit-scrollbar 사용. base 에 scrollbar-width 를 두면
     Chrome 121+ 가 표준 스크롤바로 전환해 webkit 규칙을 무시하므로,
     표준 속성은 Firefox 전용(@supports)으로 분리한다.
   ======================================================== */
.inq-agree,
.poj-filter__panel-content {
  --scroll-thumb: var(--color-neutral-600); /* #555 — primary/dark/level-4 */
}
.inq-agree::-webkit-scrollbar,
.poj-filter__panel-content::-webkit-scrollbar {
  width: 8rem;
}
/* 위/아래 화살표 버튼 제거 */
.inq-agree::-webkit-scrollbar-button,
.poj-filter__panel-content::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.inq-agree::-webkit-scrollbar-track,
.poj-filter__panel-content::-webkit-scrollbar-track {
  background: transparent;
}
.inq-agree::-webkit-scrollbar-thumb,
.poj-filter__panel-content::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: var(--radius-full); /* 999 */
  /* 투명 보더로 시각 두께를 ~2px 로 (클릭 영역은 8px 유지) */
  border: 3rem solid transparent;
  background-clip: padding-box;
}
/* Firefox 등 ::-webkit-scrollbar 미지원 브라우저 — 표준 속성 */
@supports not selector(::-webkit-scrollbar) {
  .inq-agree,
  .poj-filter__panel-content {
    scrollbar-width: thin;
    scrollbar-color: var(--scroll-thumb) transparent;
  }
}

/* ========================================================
   Chips (.chips / .chip) — Figma 02-12-Tab (선택 버튼군)
   ======================================================== */
/* Figma: 1026 안에 249 × 4 + gap 10 × 3. 고정폭으로 두면 소수점 반올림 때문에
   4번째 칩이 다음 줄로 내려가므로 4열 그리드로 고정한다. */
.chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10rem;
}
/* 2026-08-25 - 3분류(문의구분) 는 폭을 3등분 */
.chips--3 {
  grid-template-columns: repeat(3, 1fr);
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56rem;
  padding: 0 12rem;
  /* 2026-11-05 - 이름이 길어 두 줄이 되면 justify-content 로는 줄 자체만 가운데에 놓이고
     줄 안의 글은 왼쪽에 붙는다 (영문 'Marketing Partnership' 등). 글도 가운데로 */
  text-align: center;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  background: var(--color-bg-neutral-light-level-2); /* #f2f2f2 미선택 */
  border: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out-cubic);
}
/* 2026-10-12 - 세부구분 칩은 항목이 많고 이름이 길어 한 단계 작게 (문의구분 칩은 그대로) */
/* 2026-11-04 - 'Design Competition Invitation' 같은 긴 이름이 세 줄로 떨어져
   56 상자 밖으로 삐져나왔다. 줄높이를 시안(120%)으로 좁히고 좌우 패딩을 줄여 두 줄에 담되,
   그래도 넘치는 이름이 생기면 상자가 늘어나도록 고정 높이를 최소 높이로 바꾼다 */
.chips[data-inq-type] .chip {
  height: auto;
  min-height: 56rem;
  padding: 8rem;
  font-size: var(--kor-b5); /* 16 */
  line-height: 1.2;
  /* 2026-10-13 - 이름이 길어 두 줄이 되면 줄이 왼쪽에 붙었다 — 가운데로 */
  text-align: center;
}
.chip:hover,
.chip:focus-visible {
  background: var(--color-bg-secondary-light-level-2);
}
.chip--active {
  background: var(--color-bg-secondary-light-level-3); /* #d3e8fd 선택 */
}

/* ========================================================
   Checkbox (.checkbox) — Figma 02-6-Checkbox
   ======================================================== */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12rem;
  cursor: pointer;
}
.checkbox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.checkbox__box {
  position: relative;
  flex-shrink: 0;
  width: 20rem;
  height: 20rem;
  border: 1px solid var(--color-bd-unselected);
  background: var(--color-bg-default-white);
  transition: background-color 0.2s, border-color 0.2s;
}
/* 체크 표시 (CSS) */
.checkbox__box::after {
  content: "";
  position: absolute;
  top: 3rem;
  left: 6rem;
  width: 5rem;
  height: 9rem;
  border: solid var(--color-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.checkbox__input:checked + .checkbox__box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.checkbox__input:checked + .checkbox__box::after {
  opacity: 1;
}
.checkbox__input:focus-visible + .checkbox__box {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.checkbox__label {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

/* ========================================================
   2026-08-26 - 카피 리빌 화면 (리더십·기업문화 공용 — leadership.css 에서 이관)
   — 배경 이미지가 아래에서 올라오며 텍스트가 흰색으로 벗겨짐
   · base 레이어(흰 배경 + 검정 텍스트) 위에 over 레이어(이미지 + 흰 텍스트)를
     완전히 겹쳐 두고, over 를 clip-path 로 아래→위 와이프한다.
   · 두 레이어의 텍스트 좌표·크기가 1px이라도 어긋나면 착시가 깨지므로
     .reveal__txt 스타일은 공통으로 두고 색상만 분기한다.
   · 초기 클립(숨김)은 <html class="reveal-js"> 일 때만 — 무JS 환경은 최종 상태 노출.
   ======================================================== */
.reveal {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--color-bg-default-white);
}
.reveal__layer {
  position: absolute;
  inset: 0;
  /* 2026-09-28 - 시안 width 개편: 좌우 72 → 222 */
  padding: 120rem var(--side-padding) 0;
}
/* 두 레이어 모두 자체 스태킹 컨텍스트를 갖게 z-index 를 명시한다.
   (생략 시 base 의 __txt z-index:1 이 루트로 올라가 over 레이어를 덮는다 —
    clip-path 가 걸린 over 는 z-index:auto 스태킹 컨텍스트라 그 아래로 깔림) */
.reveal__layer--base {
  z-index: 0;
}
.reveal__layer--over {
  z-index: 1;
  clip-path: inset(0 0 0 0);
  will-change: clip-path;
}
/* JS 활성 시 초기값 = 완전히 감춤 (아래에서부터 올라옴) */
.reveal-js .reveal__layer--over {
  clip-path: inset(100% 0 0 0);
}
/* gsap 미사용 폴백 — .is-in 부여 시 CSS 트랜지션으로 리빌 */
.reveal__layer--over.is-in {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-out-expo);
}

.reveal__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* 딜(dim) — 필요한 페이지에서만 --reveal-dim 으로 켜닄다 (기본 0) */
.reveal__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-bg-neutral-dark-level-1);
  opacity: var(--reveal-dim, 0);
}
.reveal__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.reveal__txt {
  position: relative;
  z-index: 1;
  font-family: var(--font-family-kor);
  font-size: var(--kor-h3); /* 48 */
  font-weight: var(--reveal-weight, var(--font-weight-bold));
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 문단 사이 빈 줄 = 1행 높이 */
.reveal__txt + .reveal__txt {
  margin-top: 1.2em;
}
.reveal__layer--over .reveal__txt {
  color: var(--color-text-default-white);
}

/* ── 진입 모션 — 두 단락이 아래→위로 순차 등장 ──
   base/over 두 레이어의 같은 순번 단락에 '동일한' 값을 적용해야
   와이프 경계에서 글자가 어긋나지 않는다(JS 가 쌍으로 묶어 처리).
   gsap 사용 시 인라인 스타일로 덮어쓰고, 미로드 시 .is-in CSS 트랜지션으로 폴백. */
.reveal-js .reveal__txt {
  opacity: 0;
  transform: translateY(40rem);
}
.reveal__txt.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

/* ── 리빌 — 모바일 ── */
@media (max-width: 1024px) {
  .reveal__layer {
    padding: 100rem var(--side-padding) 0;
  }
  /* 2026-11-05 - 48(모바일 토큰 32) 그대로면 영문 카피가 100vh 밖으로 넘쳐 잘린다 */
  .reveal__txt {
    font-size: 30rem;
  }
  .reveal__txt br {
    display: none; /* 시안 줄바꿈 해제 → 폭에 맞춰 자연 흐름 */
  }
}

/* ── 리빌 — 모션 최소화 ── */
@media (prefers-reduced-motion: reduce) {
  .reveal-js .reveal__layer--over,
  .reveal__layer--over.is-in {
    clip-path: inset(0 0 0 0);
    transition: none;
  }
  .reveal-js .reveal__txt,
  .reveal__txt.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================================
   2026-08-26 - 라디오 (.radio) — 공통 폼 원자
   시안 radio-button(Size=lg): 24 원 / off 흰배경+#AAA 테두리,
   on 진한 파랑(#0C4ACD) 바탕 + 지름 10 흰 점. 라벨은 20 SemiBold.
   ======================================================== */
.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 12rem;
  cursor: pointer;
}
.radio__mark {
  position: relative;
  flex-shrink: 0;
  width: 24rem;
  height: 24rem;
  /* 라벨 첫 줄과 눈높이를 맞춘다 (시안: item 상하 패딩 3) */
  margin-top: 3rem;
  border-radius: 50%;
  background: var(--color-bg-default-white);
  box-shadow: inset 0 0 0 1px var(--color-neutral-400); /* #aaa */
  transition: background 0.15s var(--ease-out-cubic), box-shadow 0.15s var(--ease-out-cubic);
}
.radio__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10rem;
  height: 10rem;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: var(--color-bg-default-white);
  transition: transform 0.15s var(--ease-out-cubic);
}
.radio__input:checked + .radio__mark {
  background: var(--color-blue-600); /* #0c4acd */
  box-shadow: none;
}
.radio__input:checked + .radio__mark::after {
  transform: translate(-50%, -50%) scale(1);
}
.radio__input:focus-visible + .radio__mark {
  outline: 2px solid var(--color-primary);
  outline-offset: 2rem;
}
.radio__label {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

/* ========================================================
   페이지 타이틀 (.page-head) — 통합 컴포넌트
   ────────────────────────────────────────────────────────
   [2026-07-22] 제목 영역 구조 통일 — 기존 .kv / .inq__head /
   .faq__head / .med__head 로 흩어져 있던 5종을 .page-head 하나로
   통합하고, 마크업 태그도 모두 <section class="page-head"> 로 통일.
   ────────────────────────────────────────────────────────
   흰 배경형(기본)과 배경이미지형을 하나의 골격으로 통합한다.
   · 배경이미지 유무는 자식 `.page-head__bg` 존재로 자동 분기:
     - CSS  : `.page-head:has(.page-head__bg)` 가 히어로 레이아웃 적용
     - JS    : common.js pageHeadMotion() 이 같은 조건을 감지해
              고정 스크롤 연출(.page-head--fixed) 을 붙인다.
   · 개발자는 `.page-head` 한 덩어리만 include 하고,
     배경형이면 `__bg`/`__dim`/뒤따르는 `__spacer` 만 추가하면 된다.
   · 배경형 위에서 GNB 는 투명 오버레이(.gnb--transparent)로 겹쳐진다.
   ======================================================== */
/* 2026-09-09 - 시안(5594:5031) 반영: 서브카피 전체 숨김. 모든 상세페이지 공통이다.
   타이틀 아래 여백은 64 로 줄였다가 80 으로 되돌렸다 — 바로 텍스트가 오는 유형은 80 이어야 해서,
   좀혀야 하는 페이지는 콘텐츠 쪽에서 개별로 조정한다. */
.page-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 120rem;
  /* 2026-09-28 - 시안 width 개편: 좌우 72 → 222 */
  padding: 120rem var(--side-padding) 80rem;
}
.page-head__titles {
  display: flex;
  flex-direction: column;
  gap: 24rem;
}
.page-head__title {
  font-family: var(--font-family-kor);
  font-size: var(--kor-d3); /* 88 */
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 영문 타이틀 변형 (FAQ 등) */
.page-head__title--eng {
  font-family: var(--font-family-eng);
  font-size: var(--eng-d5); /* 88 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
}
/* 2026-09-09 - 서브카피는 시안에서 빠졌다. 마크업은 그대로 두고 숨김 처리 */
.page-head__desc {
  display: none;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

/* ── 배경이미지형(히어로) — 배경 유무로 자동 분기 ── */
.page-head:has(.page-head__bg) {
  align-items: flex-start;
  justify-content: flex-end; /* 콘텐츠 하단 정렬 */
  gap: 8rem; /* 브레드크럼 → 타이틀 그룹 */
  width: 100%;
  height: 100vh; /* Figma 1080 (1920×1080 풀스크린) */
  /* 2026-09-28 - 시안 width 개편: 왼우 72 → 222 */
  /* 2026-09-30 - 오른쪽을 972 로 고정하면 넓은 화면에서 글 칸이 벌어진다.
     글 칸 726 을 지키는 계산식으로 통일 (.rec-kv 와 같은 꼴) */
  padding: 120rem max(972rem, calc(100% - var(--side-padding) - 726rem)) 120rem
    var(--side-padding);
  overflow: hidden;
  background: var(--color-bg-default-white);
}
/* 배경 이미지 */
.page-head__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-head__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 딤 — secondary/dark/level-1 40% */
.page-head__dim {
  position: absolute;
  inset: 0;
  background: var(--color-bg-secondary-dark-level-1); /* #1f124e */
  opacity: 0.4;
}
/* 콘텐츠(브레드크럼·타이틀)를 딤 위로 */
.page-head:has(.page-head__bg) > .breadcrumb,
.page-head:has(.page-head__bg) > .page-head__titles {
  position: relative;
  z-index: 1;
}
/* 히어로 내부 간격/색상 — 디자인상 타이틀→설명 48, 흰 텍스트 */
.page-head:has(.page-head__bg) .page-head__titles {
  gap: 48rem;
}
.page-head:has(.page-head__bg) .page-head__title {
  color: var(--color-text-default-white);
}
.page-head:has(.page-head__bg) .page-head__desc {
  font-size: var(--kor-b1); /* 28 */
  font-weight: var(--font-weight-bold);
  line-height: 1.48;
  color: var(--color-text-default-white);
}

/* ── 스크롤 연출 활성화 (JS 가 .page-head--fixed 부여) ──
   히어로를 화면에 고정하고, 뒤따르는 스페이서 높이만큼 스크롤이 타임라인을 굴린다.
   JS 미적용/모션 최소화 환경에서는 기본 스타일(문서 흐름) 그대로 동작한다. */
.page-head--fixed {
  position: fixed;
  inset: 0;
  z-index: 1;
  height: 100vh;
}
/* 스크롤 구간 — 콘텐츠 아웃+배경 확대 / 히어로 아웃, 각 100vh */
.page-head__spacer {
  display: none;
  height: 200vh;
}
.page-head--fixed + .page-head__spacer {
  display: block;
}

/* ========================================================
   카드 (.card) — 썸네일 + 제목 + 날짜
   ※ 썸네일은 비율로 고정(폭에 따라 높이 자동) — 페이지별 카드 폭이 달라도 대응.
      전 페이지 16:9 통일 (476×268 / 432×243 / 426×240 / 726×408)
   ======================================================== */
.card {
  display: flex;
  flex-direction: column;
  gap: 24rem;
}
.card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  /* 2026-10-07 - 썸네일 미등록 시 기본 이미지 배경 적용 */
  background: var(--color-bg-primary-light-level-4)
    url("../images/logo-samoo-thumb.svg") center / 26.18% auto no-repeat;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out-cubic);
}
/* 이미지에 인라인 위치(Figma 크롭)가 지정된 경우 절대배치 지원 */
.card__img img[style*="position"],
.med-feat__img img[style*="position"] {
  max-width: none;
}
.card:hover .card__img img,
.card:focus-visible .card__img img {
  transform: scale(1.04);
}
/* 영상 썸네일(소셜미디어) — 기본과 동일한 16:9 (의미 구분용 유지) */
.card--video .card__img {
  aspect-ratio: 16 / 9;
}
/* 썸네일 미등록 시 기본 이미지 — 회색 판 + 가운데 SAMOO 로고 (시안 5236:20069)
   2026-09-03 - 관리자에서 썸네일을 올리지 않은 게시물용. <img> 없이 클래스만 붙이면 된다. */
.card__img--empty {
  background: var(--color-bg-primary-light-level-4); /* #d9d9d9 */
}
.card__img--empty::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 111rem;
  height: 27rem;
  margin: -13.5rem 0 0 -55.5rem;
  background-color: var(--color-white);
  -webkit-mask: url("../images/logo-samoo.svg") center / contain no-repeat;
  mask: url("../images/logo-samoo.svg") center / contain no-repeat;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 12rem;
}
/* 제목 위 키워드 (#태그) — 제목과는 붙여 쓰므로 body gap 을 상쇄한다 */
.card__keys {
  display: flex;
  flex-wrap: wrap;
  gap: 12rem;
  margin-bottom: -12rem;
}
.card__key {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 카테고리 라벨 (SOLUTION / PERSPECTIVE / IMPACT …)
   2026-08-25 - 인사이트 카드에서 제목 위에 붙는다. 제목과는 붙여 쓰므로 gap 을 상쇄한다. */
.card__cat {
  margin-bottom: -12rem; /* .card__body gap 12 상쇄 → 제목과 붙임 */
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low); /* #727272 */
}
.card__title {
  font-family: var(--font-family-kor);
  /* 2026-10-01 - 시안 대조: 카드 제목 24 → 20 (h7-b) */
  font-size: var(--kor-h7); /* 20 */
  font-weight: var(--font-weight-bold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
.card__date {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low);
}
/* 2026-09-11 - .card--sm 삭제. 제목 크기는 카드에 클래스를 더 붙이지 않고
   목록이 놓인 자리(부모)에서 정한다 — 카드 마크업이 화면마다 달라지지 않게. */

/* ── 2026-09-11 - 미디어 카드 변형 · 목록 그리드를 공통으로 이관 ──
   미디어허브(.med__cards--*)와 통합검색(.srch-cards--*)이 같은 목록을 각각
   따로 갖고 있어 한쪽만 고치면 다른 쪽이 안 따라왔다. 한 벌로 합친다. */

/* 인스타그램 썸네일 — 세로 3:4 */
.card--insta .card__img {
  aspect-ratio: 3 / 4;
}
/* 영상·인스타 제목은 두 줄까지 (그 이상은 말줄임 — 카드 높이를 맞춘다) */
.card--video .card__title,
.card--insta .card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 날짜 옆에 채널 등 부가 정보가 붙는 경우 (.card__date 단독이면 필요 없다) */
.card__meta {
  display: flex;
  align-items: center;
  gap: 12rem;
}
.card__meta-sep {
  width: 1px;
  height: 13rem;
  background: var(--color-line-medium);
}
/* 채널 배지 — Figma label(rectangle·solid·md·darkblue) */
.card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24rem;
  padding: 0 4rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b6); /* 14 */
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  letter-spacing: normal; /* 시안 b6-md 는 자간 0 */
  color: var(--color-white);
  background: var(--color-label-solid-darkblue); /* #181575 */
  border-radius: 2px;
}

/* ── 카드 목록 그리드 (.cards) ──
   기본 3열(16:9 썸네일) / --insta 5열(3:4 썸네일). 행 64 · 열 24.
   열 수만 다른 화면은 이 클래스를 그대로 쓰고 페이지 CSS 에서 열 수만 덮어쓴다. */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64rem 24rem;
  width: 100%;
}
.cards--insta {
  /* 2026-10-01 - 시안 대조: 5열 → 4열 */
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* 목록 한 벌(카드 그리드 + 페이지네이션) — 시안: 목록 ↔ 페이지네이션 72 */
.cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 72rem;
  width: 100%;
}

/* ========================================================
   빈 상태 (.empty) — 검색결과없음 / 등록게시물없음
   아이콘(96 박스 안 80) + 안내 문구, 영역 높이 400
   ======================================================== */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12rem;
  width: 100%;
  height: 400rem;
}
/* 2026-09-09 - 빈 상태 아이콘(.empty__icon / .empty--post) 삭제 — 시안에서 빠졌다 */
.empty__text {
  font-family: var(--font-family-kor);
  font-size: var(--kor-h7); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  /* 2026-08-25 - 뉴스 시안(3066:9954)은 #727272, 소셜미디어 시안(3202:9585)은 #555555 로 서로 다르다.
     컴포넌트 원래 값이자 다수인 text/default/low 를 따른다. 확정되면 한쪽으로 통일할 것. */
  color: var(--color-text-default-low); /* #727272 */
  /* 2026-08-25 - 시안이 가운데 정렬. 한 줄일 땐 같지만 줄바꿈되면 달라진다 */
  text-align: center;
}
/* 상단 구분선 + 높이 600 (목록 전체가 빈 상태일 때) */
.empty--bordered {
  height: 600rem;
  border-top: 1px solid var(--color-line-medium);
}
/* 상·하 구분선 + 높이 600 (프로젝트 목록 등 목록 영역이 선으로 닫히는 경우) */
.empty--framed {
  height: 600rem;
  border-top: 1px solid var(--color-line-medium);
  border-bottom: 1px solid var(--color-line-medium);
}

/* ========================================================
   게시판 리스트 (.board) — 제목 + 게시일
   IR 공시자료 · 뉴스/미디어 목록 등에서 공통 사용.
   ※ 상단 강조선/여백 등 페이지별 고유 요소는 각 페이지 CSS 에서 부여.
   ======================================================== */
.board {
  display: flex;
  flex-direction: column;
  width: 100%;
}
/* 컬럼 헤더 (제목 / 게시일) */
.board__head {
  display: flex;
  align-items: center;
  gap: 24rem;
  /* 2026-08-25 - 시안: 행 내용 좌우 24 들여쓰기 (구분선은 전체 폭 유지) */
  padding: 0 24rem 40rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  border-bottom: 1px solid var(--color-line-medium); /* #d9d9d9 */
}
.board__col-title {
  flex: 1 0 0;
  min-width: 0;
}
.board__col-date {
  flex-shrink: 0;
  width: 160rem;
  /* 2026-08-25 - 시안: 게시일 컬럼은 오른쪽 정렬 */
  text-align: right;
}
/* 리스트 (ul 사용 시) */
.board__list {
  display: flex;
  flex-direction: column;
}
/* 행 */
.board__row {
  display: flex;
  align-items: center;
  gap: 24rem;
  width: 100%;
  /* 2026-08-25 - 시안: 행 내용 좌우 24 들여쓰기 */
  padding: 40rem 24rem;
  border-bottom: 1px solid var(--color-line-medium); /* #d9d9d9 */
  transition: background-color 0.2s var(--ease-out-cubic),
    border-color 0.2s var(--ease-out-cubic);
}
.board__row:hover,
.board__row:focus-visible {
  background: var(--color-bg-secondary-light-level-1); /* #f6fafe */
  border-bottom-color: var(--color-line-highest);
}
.board__title {
  flex: 1 0 0;
  min-width: 0;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b2); /* 24 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.48;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
.board__date {
  flex-shrink: 0;
  width: 160rem;
  /* 2026-08-25 - 시안: 게시일 오른쪽 정렬 */
  text-align: right;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low); /* #727272 */
}

/* ========================================================
   외부링크 텍스트 버튼 (.link-external) — "전체 ○○ 보기 ↗"
   ======================================================== */
.link-external {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-btn-lg); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  text-decoration: underline;
}
.link-external::after {
  content: "";
  width: 20rem;
  height: 20rem;
  background: url("../images/ico-external-link.svg") center / contain no-repeat;
}
.link-external:hover,
.link-external:focus-visible {
  color: var(--color-text-point-default);
}
/* 2026-09-03 - 아이콘 없이 밑줄 텍스트만 (뉴스레터 구독해지 등).
   시안 실측: 밑줄 두께 1.5 / 글자 아래로 5 띄움 */
.link-external--plain {
  text-decoration-thickness: 2rem;
  text-underline-offset: 6rem;
}
.link-external--plain::after {
  content: none;
}

/* ========================================================
   2026-08-25 - 텍스트 + 아이콘 링크 (.link-icon) — Figma btn/text-icon
   기본은 오른쪽 화살표, --ext 는 외부링크 아이콘. .link-external 과 달리 밑줄 없음.
   ======================================================== */
.link-icon {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-btn-lg); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
  transition: color 0.2s var(--ease-out-cubic);
}
.link-icon::after {
  content: "";
  flex-shrink: 0;
  width: 20rem;
  height: 20rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-arrow-right-20.svg") center / contain no-repeat;
  mask: url("../images/ico-arrow-right-20.svg") center / contain no-repeat;
}
.link-icon--ext::after {
  -webkit-mask-image: url("../images/ico-external-link.svg");
  mask-image: url("../images/ico-external-link.svg");
}
.link-icon:hover,
.link-icon:focus-visible {
  color: var(--color-primary);
}

/* ========================================================
   탭 (.tabs) — Figma tabs/secondary
   ======================================================== */
.tabs {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--color-line-low);
}
.tabs__list {
  display: flex;
  flex: 1;
  gap: 32rem;
  min-width: 0;
}
.tabs__item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 60rem;
  margin-bottom: -1px; /* 컨테이너 보더 위로 */
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low);
  text-align: center;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s var(--ease-out-cubic), border-color 0.2s var(--ease-out-cubic);
}
.tabs__item:hover,
.tabs__item:focus-visible {
  color: var(--color-text-default-highest);
}
.tabs__item--active {
  color: var(--color-primary); /* #1428a0 */
  border-bottom-color: var(--color-primary);
}
/* 탭 뷰포트 — 모바일에서 Swiper 컨테이너(.swiper 병기)로 사용.
   데스크톱은 일반 flex 체인 복원(탭 균등폭) + 밑줄 인디케이터가 안 잘리게 overflow 노출.
   (.swiper 기본 overflow:hidden / display:block 을 .tabs 스코프에서 되돌림) */
.tabs .tabs__viewport {
  flex: 1;
  min-width: 0;
  overflow: visible;
}
/* 탭 아이템 — swiper-slide 기본값(display:block·width/height:100%·flex-shrink:0)을
   .tabs 스코프로 되돌려 데스크톱에서 높이 60·균등폭·중앙정렬 유지(밑줄 아래 여백 확보). */
.tabs .tabs__item {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  height: 60rem;
}

/* 2026-08-24 - 탭 알약형(tabs/primary) 변형 신규 추가 */
/* ── tabs/primary — 알약형. 컨테이너 hug + 가운데 정렬, 탭 사이 4 ── */
.tabs--primary {
  width: fit-content;
  margin: 0 auto;
  background: var(--color-white);
  border-bottom: 0;
  border-radius: 999px;
}
.tabs--primary .tabs__viewport {
  flex: 0 1 auto;
}
.tabs--primary .tabs__list {
  flex: 0 1 auto;
  gap: 4rem;
  width: auto; /* .swiper-wrapper 의 width:100% 해제 */
  height: 60rem;
}
.tabs--primary .tabs__item {
  flex: 0 0 auto;
  width: auto; /* .swiper-slide 의 width:100% 해제 — 라벨 폭(hug)으로 */
  padding: 0 24rem;
  margin-bottom: 0;
  color: var(--color-text-default-medium); /* #555 */
  background: var(--color-white);
  border-bottom: 0;
  border-radius: 999px;
  transition: color 0.2s var(--ease-out-cubic), background-color 0.2s var(--ease-out-cubic);
}
.tabs--primary .tabs__item:hover,
.tabs--primary .tabs__item:focus-visible {
  color: var(--color-text-default-highest);
}
/* 선택 — 검정 알약 + 흰 텍스트 */
.tabs--primary .tabs__item--active,
.tabs--primary .tabs__item--active:hover,
.tabs--primary .tabs__item--active:focus-visible {
  color: var(--color-white);
  background: var(--color-text-default-highest); /* #1a1a1a */
}

/* 2026-08-25 - 알약 탭 선택 표시가 클릭한 탭 위치로 미끄러지도록 변경
   인디케이터(.tabs__pill)는 common.js 가 만들어 넣는다.
   JS 가 붙기 전/안 붙는 환경에서는 위의 배경색 방식이 그대로 남는다. */
.tabs--primary .tabs__list {
  position: relative;
}
.tabs--primary .tabs__item {
  position: relative;
  z-index: 1;
}
.tabs__pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  background: var(--color-text-default-highest); /* #1a1a1a */
  border-radius: 999px;
  transition: transform 0.4s var(--ease-out-cubic), width 0.4s var(--ease-out-cubic);
  pointer-events: none;
}
/* 첫 배치·리사이즈 때는 미끄러지지 않게 */
.tabs__pill--init {
  transition: none;
}
/* 인디케이터가 알약을 그리므로 탭 배경은 전부 비운다.
   비활성 탭에 흰 둥근 배경이 남아 있으면 그 위를 지나는 알약이 탭 모양대로 잘려 보인다.
   흰 바탕은 컨테이너(.tabs--primary)가 이미 깔고 있다. */
.tabs--sliding .tabs__item,
.tabs--sliding .tabs__item:hover,
.tabs--sliding .tabs__item:focus-visible,
.tabs--sliding .tabs__item--active,
.tabs--sliding .tabs__item--active:hover,
.tabs--sliding .tabs__item--active:focus-visible {
  background: transparent;
}
/* 글자색 — 알약이 ease-out 이라 초반에 빨리 움직인다.
   가는 쪽은 바로, 오는 쪽은 알약이 거의 덮은 뒤 흰색이 되도록 조금 늦춘다.
   (안 늦추면 알약이 도착하기 전에 흰 글자가 흰 바탕 위에 잠깐 뜬다) */
.tabs--sliding .tabs__item--active {
  transition: color 0.2s var(--ease-out-cubic) 0.12s;
}
@media (prefers-reduced-motion: reduce) {
  .tabs__pill {
    transition: none;
  }
}

/* 2026-08-31 - 탭 인라인형(tabs--inline) 변형 신규 추가 */
/* ── tabs/inline — 균등폭이 아니라 글자폭만큼(hug) 차지하고 가운데 정렬.
      항목이 많은 분류 네비(사업분야 12분야 등)용. 선택 표시는 얇은 검정 밑줄. ── */
.tabs--inline {
  justify-content: center;
  border-bottom-color: var(--color-bg-primary-light-level-2); /* #f2f2f2 */
}
.tabs--inline .tabs__viewport {
  flex: 0 1 auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs--inline .tabs__viewport::-webkit-scrollbar {
  display: none;
}
/* 2026-09-18 - 시안 실측: 항목 사이 48 → 32 (그룹 구분선 좌우는 48) */
/* 2026-11-04 - 영문처럼 항목이 길어 한 줄을 넘기면, 가운데 정렬이 양쪽으로 흘러넘쳐
   첫·끝 항목이 화면 끝에 붙고 스크롤도 생기지 않았다.
   트랙을 내용 폭으로 두면 첫 항목이 콘텐츠 시작선에서 출발하고,
   끝까지 밀었을 때 끝 항목이 콘텐츠 끝선에 맞는다 */
.tabs--inline .tabs__list {
  justify-content: center;
  gap: 32rem;
  min-width: max-content;
  padding: 0 var(--side-padding);
  /* swiper-wrapper 의 box-sizing:content-box 되돌리기 — 안 그러면 좌우 패딩만큼 넘친다 */
  box-sizing: border-box;
}
/* 2026-09-29 - 분야 그룹 구분선(.tabs__div) 삭제 — 시안에서 빠졌다.
   선은 없어졌지만 두 그룹 사이가 더 벌어진 건 그대로다
   (시안 9003:8034 — 그룹 안 32, 그룹 사이 48). 항목 간격 32 에 16 을 더한다 */
.tabs--inline .tabs__item--group {
  margin-left: 16rem;
}
.tabs--inline .tabs__item {
  flex: none;
  /* swiper-slide 의 width:100% 되돌리기 — Swiper 미초기화(데스크톱) 상태에서도 CSS 는 적용된다 */
  width: auto;
  height: auto;
  /* 2026-08-31 - 기본 탭의 margin-bottom:-1px 해제.
     뷰포트가 overflow:auto/hidden 이라 1px 삐져나온 활성 밑줄이 잘려 안 보였다. */
  margin-bottom: 0;
  padding: 32rem 0;
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
  color: var(--color-text-default-low);
  white-space: nowrap;
  border-bottom-width: 1px;
}
.tabs--inline .tabs__item:hover,
.tabs--inline .tabs__item:focus-visible {
  color: var(--color-text-default-highest);
}
.tabs--inline .tabs__item--active,
.tabs--inline .tabs__item--active:hover,
.tabs--inline .tabs__item--active:focus-visible {
  color: var(--color-text-default-highest);
  border-bottom-color: var(--color-bg-primary-dark-level-1); /* #1a1a1a */
}

/* 2026-09-09 - 탭 보조형(tabs/secondary) 변형 신규 — 시안 7226:25842
   좌측 정렬 · 항목 간격 32 · 선택 시 3px 밑줄 · 개수는 파란 원형 배지(위첨자) */
.tabs--sub {
  justify-content: flex-start;
}
.tabs--sub .tabs__list {
  justify-content: flex-start;
  gap: 32rem;
  width: auto;
}
.tabs--sub .tabs__item {
  flex: none;
  width: auto;
  height: 60rem;
  padding: 0;
  border-bottom-width: 3px;
}
.tabs--sub .tabs__item:hover,
.tabs--sub .tabs__item:focus-visible {
  color: var(--color-text-default-highest);
}
.tabs--sub .tabs__item--active,
.tabs--sub .tabs__item--active:hover,
.tabs--sub .tabs__item--active:focus-visible {
  color: var(--color-text-default-highest);
  border-bottom-color: var(--color-text-default-highest); /* #1a1a1a */
}
/* 개수 배지 — 라벨 오른쪽 위 */
.tabs__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20rem;
  height: 20rem;
  /* 2026-09-09 - 숫자는 디센더가 없어 줄박스 가운데 정렬만으로는 위로 1.15 치우친다.
     padding-top 으로 그만큼(=2배) 내려 원 정중앙에 맞춘다. */
  padding: 2.3rem 4rem 0;
  margin-bottom: 20rem; /* 위첨자 위치 (시안 badge 프레임 pb 20) */
  font-family: var(--font-family-kor);
  font-size: 12rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  color: var(--color-text-default-white);
  background: var(--color-blue-600); /* #0c4acd */
  border: 1px solid var(--color-bg-default-white);
  border-radius: 100rem;
}

/* ========================================================
   2026-09-16 - 라벨 (.label) — 시안 label/Type=round, Style=pastel, Size=md
   프로젝트 카드의 ‘미래솔루션’ 표기 등에 쓴다. 높이 24 / 좌우 8 / 라운드 999
   ======================================================== */
.label {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  height: 24rem;
  padding: 0 8rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b6); /* 14 */
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  letter-spacing: normal; /* 시안 kor/body/b6-md 는 자간 0 */
  white-space: nowrap;
  border-radius: 999rem;
}
.label--blue {
  color: var(--color-blue-600); /* #0c4acd */
  background: var(--color-label-pastel-blue); /* #f6fafe */
}

/* ========================================================
   게시판 상세 (.post) — 뉴스/인사이트 등 게시물 본문
   좌우 여백 222 · 콘텐츠 폭 1476 (목록 페이지의 72 와 다름)
   구성: 헤드(제목+메타) / 본문 / 첨부파일 / 이전·다음 네비
   ======================================================== */
.post {
  display: flex;
  flex-direction: column;
  gap: 80rem;
  /* 2026-09-30 - 넓은 화면에서 내용이 더 벌어지지 않게 */
  padding: 120rem var(--side-padding) 80rem; /* 하단 80 = 이전·다음 구분선까지의 간격 */
}

/* ── 헤드 (제목 + 메타 + 구분선) ── */
.post__head {
  padding-bottom: 60rem;
  border-bottom: 1px solid var(--color-line-medium);
}
.post__head-inner {
  /* 2026-08-25 - 카테고리 라벨이 이 간격을 상쇄해야 해서 변수로 묶는다 */
  --head-gap: 40rem;
  display: flex;
  flex-direction: column;
  gap: var(--head-gap);
}
/* 2026-08-25 - 제목 위 카테고리 라벨. head-inner 간격을 상쇄해 제목과 항상 12 로 붙인다 */
.post__cat {
  margin-bottom: calc(12rem - var(--head-gap));
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low); /* #727272 */
}
.post__title {
  font-family: var(--font-family-kor);
  font-size: var(--kor-h3); /* 48 */
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
.post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 2026-08-25 - 공유 버튼이 3개가 되며 좁은 화면에서 여유가 없어졌다 → 모자라면 줄을 넘긴다.
     row-gap 은 줄이 나뉠 때만 먹으므로 한 줄에 들어가는 폭에서는 지금 모습 그대로다. */
  flex-wrap: wrap;
  row-gap: 16rem;
}
.post__meta-info {
  display: flex;
  align-items: center;
  gap: 40rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
}
.post__date {
  font-weight: var(--font-weight-medium);
  color: var(--color-text-default-medium);
}
.post__views {
  display: inline-flex;
  align-items: center;
  gap: 4rem;
  font-weight: var(--font-weight-regular);
  color: var(--color-text-default-highest);
}
.post__views b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary); /* #1428a0 */
}
/* 링크 복사 버튼 (36 박스 안 24 아이콘) */
/* 2026-08-25 - 공유 버튼이 네이버·카카오·링크복사 3종이 됐다 */
.post__share-group {
  display: flex;
  align-items: center;
  gap: 24rem;
  margin-left: auto; /* 줄이 나뉘어도 오른쪽에 붙는다 */
}
.post__share {
  width: 36rem;
  height: 36rem;
  /* 브랜드 마크라 글리프를 그대로 쓴다(마스크 X) */
  background: url("../images/ico-link.svg") center / 24rem 24rem no-repeat;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out-cubic);
}
.post__share--naver {
  background-image: url("../images/ico-sns-naver.svg");
}
.post__share--kakao {
  background-image: url("../images/ico-sns-kakao.svg");
}
.post__share--link {
  background-image: url("../images/ico-link.svg");
}
.post__share:hover,
.post__share:focus-visible {
  opacity: 0.6;
}

/* ── 본문 ── */
.post__body {
  display: flex;
  flex-direction: column;
  gap: 60rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-high); /* #444 */
}
.post__body img {
  width: 100%;
  height: auto;
}
/* 본문 대표 이미지 — 시안 크롭 비율(1476×728) 고정 */
.post__figure {
  width: 100%;
  aspect-ratio: 1476 / 728;
  overflow: hidden;
}
.post__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 세로로 긴 본문 이미지(인포그래픽 등) — 크롭 없이 원본 비율 전체 노출 */
.post__figure--full {
  aspect-ratio: auto;
}
.post__figure--full img {
  height: auto;
  object-fit: fill;
}
/* 문서형 이미지(결산 공고·재무제표 등) — Figma: 콘텐츠 폭 1476 안에서 1120 고정, 가운데 정렬 */
.post__figure--doc img {
  display: block;
  max-width: 1120rem;
  margin: 0 auto;
}
/* 본문 하이퍼링크(관련기사 등)
   2026-09-03 - 시안 반영: 기본 블루(#1428a0) / 마우스 오버 시 블랙(#1a1a1a) 으로 반전.
   .post__links 뿐 아니라 본문 어디에 링크가 들어와도 같게 보이도록 .post__body 로 잡는다.
   (첨부파일·목록 버튼은 .post__body 밖이라 영향 없음) */
.post__body a {
  color: var(--color-text-point-default); /* #1428a0 */
  font-weight: var(--font-weight-medium);
  text-decoration: underline;
  text-underline-offset: 4rem;
  transition: color 0.2s var(--ease-out-cubic);
}
.post__body a:hover,
.post__body a:focus-visible {
  color: var(--color-text-default-highest); /* #1a1a1a */
}

/* ── 첨부파일 ── */
.post__file {
  display: flex;
  align-items: center;
  gap: 40rem;
  min-height: 80rem; /* Figma: 고정 높이 80 */
  padding: 12rem 40rem;
  background: var(--color-bg-primary-light-level-1); /* #f8f8f8 */
}
.post__file-label {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 2026-09-16 - 시안 수정: 파일이 여러 개일 때 간격 20 */
.post__file-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20rem;
}
/* 2026-09-16 - 시안 수정: 다운로드 아이콘을 파일명 뒤로, 사이 간격 16 → 8 */
.post__file-link {
  display: inline-flex;
  align-items: center;
  gap: 8rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-high); /* #444 */
}
.post__file-link::after {
  content: "";
  flex-shrink: 0;
  width: 24rem;
  height: 24rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-download.svg") center / 24rem 24rem no-repeat;
  mask: url("../images/ico-download.svg") center / 24rem 24rem no-repeat;
}
/* 호버 — 시안: 글자색 #1a1a1a + 파일명에만 밑줄(아이콘 제외) */
.post__file-link:hover,
.post__file-link:focus-visible {
  color: var(--color-text-default-highest);
  text-decoration: underline;
  text-underline-offset: 4rem;
}

/* 2026-08-25 - 키워드 태그 — 본문과 첨부파일 사이 */
.post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12rem;
}
.post__tag {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

/* ── 목록 버튼 행 — 본문 하단, 가운데 정렬 (구분선 위) ──
   Figma: 첨부파일 → 목록 버튼 사이는 96(sp-2400). .post 기본 gap(80) 보정. */
.post__actions {
  display: flex;
  justify-content: center;
  margin-top: 16rem; /* 80 + 16 = 96 */
}
.post__actions .btn {
  width: 160rem;
}
/* 첨부파일 → 목록 버튼 간격이 80(sp-2000)인 시안용 — .post 기본 gap 그대로 사용 */
.post__actions--tight {
  margin-top: 0;
}

/* ── 이전 / 다음 — 구분선 아래, 가운데 세로 구분선으로 좌우 분할 ── */
.post-nav {
  display: flex;
  align-items: center;
  gap: 40rem; /* Figma: prev — 구분선 — next 사이 40 */
  /* 2026-09-30 - 넓은 화면에서 내용이 더 벌어지지 않게 */
  margin: 0 var(--side-padding);
  padding: 80rem 0 240rem;
  /* 2026-08-25 - 시안: 이전·다음 위 구분선은 진한 선(#1a1a1a) */
  border-top: 1px solid var(--color-line-highest);
}
/* 구분선 — Figma 는 행 높이에 맞춰 늘어남(self-stretch) */
.post-nav__divider {
  flex-shrink: 0;
  align-self: stretch;
  width: 1px;
  background: var(--color-line-low);
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 24rem;
  color: var(--color-text-default-highest);
}
.post-nav__item--next {
  align-items: flex-end;
  text-align: right;
}
/* 이전/다음 글이 없을 때 */
.post-nav__item--disabled {
  color: var(--color-btn-text-disabled); /* #727272 */
}
.post-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 16rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-btn-lg); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
}
/* 화살표 — currentColor 로 비활성 색상까지 대응 */
.post-nav__label::before,
.post-nav__item--next .post-nav__label::after {
  content: "";
  flex-shrink: 0;
  width: 24rem;
  height: 24rem;
  background-color: currentColor;
  -webkit-mask: url("../images/ico-arrow-tail-left.svg") center / 24rem 24rem no-repeat;
  mask: url("../images/ico-arrow-tail-left.svg") center / 24rem 24rem no-repeat;
}
.post-nav__item--next .post-nav__label::before {
  content: none;
}
.post-nav__item--next .post-nav__label::after {
  -webkit-mask-image: url("../images/ico-arrow-tail-right.svg");
  mask-image: url("../images/ico-arrow-tail-right.svg");
}
.post-nav__title {
  font-family: var(--font-family-kor);
  font-size: var(--kor-h6); /* 24 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
}
a.post-nav__item:hover .post-nav__title,
a.post-nav__item:focus-visible .post-nav__title {
  color: var(--color-primary);
}

/* ========================================================
   레이어 팝업 (.modal) — 풀스크린 dim + 중앙 박스
   ※ 모든 레이어 팝업은 position:fixed + 화면 꽉 채우는 dim 을 가진다.
     열기: [data-modal-target="id"] 클릭 / 닫기: [data-modal-close]·dim·Esc (common.js modalEv)
   ======================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200; /* GNB(100)·검색(99) 위 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24rem;
  /* 2026-09-01 - 시안 딤 농도 40% 로 맞춤(기존 50%) */
  background: rgba(0, 0, 0, 0.4); /* 풀스크린 dim */
  /* 닫힘 */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out-cubic), visibility 0s linear 0.25s;
}
.modal--open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.25s var(--ease-out-cubic), visibility 0s;
}
/* 2026-09-30 - 팝업이 떠 있는 동안 배경 스크롤 잠금 (common.js 가 붙이던 클래스에 스타일이 없었다) */
body.is-modal-open {
  overflow: hidden;
}
/* 팝업 박스 (Figma: 600 폭, 흰 배경) */
.modal__box {
  display: flex;
  flex-direction: column;
  width: 600rem;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  background: var(--color-bg-default-white);
  /* 2026-09-01 - 시안 레이어팝업 모서리 12 라운드 (누락돼 있었음) */
  border-radius: var(--radius-300); /* 12 */
}
/* 타이틀 바 — 높이 60, 좌우 24, 아래 구분선(좌우 24 들여쓰기) */
/* 2026-09-16 - 시안(popup/layerpopup) 반영: 높이 56 → 60, 구분선 추가, 항목 간격 40 → 16
   (타이틀 오른쪽에 옵션이 붙는 팝업이 있어 간격을 16 로 맞춘다) */
.modal__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16rem;
  flex-shrink: 0;
  height: 60rem;
  padding: 0 24rem;
}
.modal__head::after {
  content: "";
  position: absolute;
  left: 24rem;
  right: 24rem;
  bottom: 0;
  height: 1px;
  background: var(--color-line-low);
}
.modal__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 2026-09-16 - 시안 수정: 닫기 아이콘 24 → 20 (ic/20/x) */
.modal__close {
  flex-shrink: 0;
  width: 20rem;
  height: 20rem;
  color: var(--color-text-default-highest);
  background-color: currentColor;
  -webkit-mask: url("../images/ico-close.svg") center / 20rem 20rem no-repeat;
  mask: url("../images/ico-close.svg") center / 20rem 20rem no-repeat;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-out-cubic);
}
.modal__close:hover,
.modal__close:focus-visible {
  opacity: 0.6;
}
/* 본문 — 패딩 24 (타이틀·구분선과 좌우 라인을 맞춘다) */
/* 2026-09-16 - 시안(popup/layerpopup) 반영: 40 → 24 */
.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

/* ========================================================
   로딩 스피너 (.loader) — 전 페이지 공통(헤더에 주입)
   ※ 페이지 로드 중 풀스크린 dim + 회전 링 표시 → window load 시 common.js 가 숨김
     (FO-COM-09-01-001 로딩프로그레스)
   ======================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300; /* 모달(200)보다 위 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40rem;
  background: rgba(0, 0, 0, 0.8); /* 풀스크린 dim */
}
/* 2026-08-26 - 시안대로 교체 — 뒷링 없는 3/4 아크(지름 56 · 두께 4)가 회전한다
   (바깥 100 박스 안에 아크 56 — 시안 프레임 구성 그대로)
   2026-09-09 - 아크 색을 CI 컴러(#034EA2)로. 프로젝트 메인 컴러(--color-primary #1428A0)와 다른 값이다.
   색을 CSS 에서 바꿀 수 있게 background → mask 로 옮겼다. */
.loader__spinner {
  width: 100rem;
  height: 100rem;
  background-color: var(--color-logo-blue);
  -webkit-mask: url("../images/ico-loader.svg") center / contain no-repeat;
  mask: url("../images/ico-loader.svg") center / contain no-repeat;
  animation: loader-spin 0.8s linear infinite;
}
.loader__text {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-medium);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-lowest); /* #aaa */
  text-align: center;
}
/* 로드 완료 — 페이드 아웃 후 인터랙션 차단 해제 */
.loader--hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-cubic), visibility 0s linear 0.35s;
}
@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================================
   반응형 — 모바일 (1024px 이하)
   ======================================================== */
@media (max-width: 1024px) {
  /* 2026-10-01 - h7 은 좁은 화면에서 18 로 줄어든다. 카드 제목은 20 유지 */
  .card__title {
    font-size: var(--kor-b3); /* 20 */
  }
  /* 2026-09-11 - 카드 목록 그리드 — 3열·5열 모두 2열로 */
  .cards,
  .cards--insta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40rem 16rem;
  }
  /* 2열이라 카드가 좁다 — 두 줄로 자르면 제목이 열 글자 남짓밖에 안 남는다.
     2026-10-22 - 모바일은 네 줄까지 보여 주고 그 뒤를 말줄임한다 */
  .card__title,
  .card--video .card__title,
  .card--insta .card__title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 폼 — 칩 2열 */
  .chips {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 페이지 타이틀 — 모바일 GNB(64) 여백 + 간격 축소 */
  /* 2026-10-22 - 시안 MO 공통: 브레드크럼 60, 그 아래 80, 본문 위 24 */
  .page-head {
    gap: 80rem;
    padding: 60rem var(--side-padding) 24rem;
  }
  /* 서브페이지 제목 — 태블릿/모바일에서 48 로 축소(전 서브페이지 공통) */
  .page-head__title {
    font-size: 48rem;
  }

  /* 배경이미지형 — 우측 여백 축소 */
  .page-head:has(.page-head__bg) {
    gap: 24rem;
    padding: 100rem 24rem 60rem;
  }
  /* 히어로 설명문 — 모바일/태블릿에서 과대해지지 않게 축소(28→22),
     데스크톱용 <br> 는 무시하고 화면 폭에 맞춰 자연 줄바꿈시켜 고아줄/깨짐 방지 */
  .page-head:has(.page-head__bg) .page-head__desc {
    font-size: var(--kor-b2); /* 22 */
  }
  /* 데스크톱용 <br> 는 모바일에서 무시 — 화면 폭에 맞춰 자연 줄바꿈(배경형·일반형 공통) */
  .page-head__desc br {
    display: none;
  }

  /* 카드 — 16:9 비율 유지(고정 높이 제거) */

  /* 빈 상태 — 모바일에서 영역 높이 축소 */
  .empty {
    height: 320rem;
  }
  .empty--bordered,
  .empty--framed {
    height: 400rem;
  }

  /* 게시판 리스트 — 컬럼 헤더 숨김 + 행 세로 스택(제목 위 / 날짜 아래) */
  .board__head {
    display: none;
  }
  .board__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8rem;
    padding: 24rem 0;
  }
  .board__title {
    font-size: var(--kor-b4); /* 18 */
  }
  .board__date {
    width: auto;
    font-size: var(--kor-b5); /* 16 */
  }

  /* 게시판 상세 — 좌우 여백을 공통 사이드 패딩으로 축소 */
  .post {
    gap: 40rem;
    padding: 40rem var(--side-padding);
  }
  .post__head {
    padding-bottom: 32rem;
  }
  .post__head-inner {
    --head-gap: 24rem;
  }
  /* 메타(날짜·조회수 등 여러 항목) 간격 축소 */
  .post__meta-info {
    gap: 20rem;
  }
  .post__body {
    gap: 40rem;
  }
  /* 문서형 이미지 — 모바일에선 폭 제한 해제(가독성 우선) */
  .post__figure--doc img {
    max-width: 100%;
  }
  .post__file {
    align-items: flex-start;
    flex-direction: column;
    gap: 16rem;
    padding: 24rem;
  }
  /* 2026-09-16 - 좁은 화면에선 파일을 세로로 쌓는다 */
  .post__file-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 8rem;
  }
  /* 파일명이 길어 줄바꿈될 때 다운로드 아이콘을 첫 줄에 정렬 */
  .post__file-link {
    align-items: flex-start;
  }
  /* 목록 버튼 — 전체폭 */
  .post__actions .btn {
    width: 100%;
  }
  /* 2026-10-06 - 이전/다음 — 모바일은 제목을 빼고 버튼만 좌우로 둔다
     (제목까지 두면 세로로 길게 늘어졌다) */
  .post-nav {
    gap: 24rem;
    margin: 0 var(--side-padding);
    padding: 32rem 0 100rem;
  }
  .post-nav__title {
    display: none;
  }

  /* 탭 — 모바일 가로 Swiper (native overflow 대신 스와이프) */
  .tabs .tabs__viewport {
    overflow: hidden; /* 화면 밖 슬라이드 클립 */
  }
  .tabs__list {
    gap: 0; /* 간격은 Swiper spaceBetween 사용 */
  }
  /* 슬라이드 — 모든 탭 동일 폭으로 통일(가장 긴 라벨 '삼우건축 포트폴리오' 기준).
     폰트를 16으로 낮춰 통일 폭 안에서 한 줄 유지. swiper 기본 .swiper-slide(width/height:100%)를 이김. */
  .tabs .tabs__item {
    display: flex;
    flex: 0 0 auto;
    width: 176rem;
    height: 60rem;
    margin-bottom: 0; /* overflow:hidden 이 밑줄을 클립하지 않도록 */
    font-size: var(--kor-b5); /* 16 */
    white-space: nowrap; /* 라벨 한 줄 유지 */
  }
  /* 2026-09-16 - 보조 탭(.tabs--sub)은 Swiper 를 붙이지 않는다.
     모바일에서는 라벨 폭 그대로 두고 네이티브 가로 스크롤로 넘긴다.
     (안 그러면 176 고정폭 + overflow:hidden 으로 뒤쪽 탭을 누를 수 없다) */
  .tabs--sub .tabs__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .tabs--sub .tabs__viewport::-webkit-scrollbar {
    display: none;
  }
  .tabs--sub .tabs__list {
    gap: 24rem;
  }
  .tabs--sub .tabs__item {
    width: auto;
  }

  /* 알약형 — 가로 스와이프 영역 확보를 위해 컨테이너만 풀폭 (알약 자체는 유지) */
  .tabs--primary {
    width: 100%;
  }
  .tabs--primary .tabs__list {
    gap: 0; /* 간격은 Swiper spaceBetween 사용 (.tabs__list 와 동일 규칙) */
    width: 100%; /* Swiper 트랙 폭 복원 */
    height: auto;
  }
  /* 알약은 라벨 폭(hug) 유지 — secondary 의 통일 폭(176) 규칙을 되돌린다.
     Swiper 는 slidesPerView:"auto" 라 가변 폭 슬라이드를 그대로 지원한다. */
  .tabs--primary .tabs__item {
    width: auto;
    padding: 0 24rem;
  }

  /* 2026-08-31 - 인라인 탭 — 항목이 많아 가로 Swiper 로 전환 */
  .tabs--inline .tabs__viewport {
    flex: 1;
    width: 100%;
    /* 트랙(12개 슬라이드)이 화면 밖으로 나가므로 반드시 잘라 준다.
       안 그러면 문서 폭이 늘어나 페이지에 가로 스크롤이 생긴다. */
    overflow: hidden;
  }
  /* 2026-09-11 - 간격·여백을 CSS 가 직접 준다.
     예전엔 Swiper(spaceBetween/slidesOffset)만 믿고 0 으로 비워 뒀는데,
     탭이 적어 Swiper 를 붙이지 않은 화면(브랜드 아카이브)에서는 탭이 서로 붙고
     왼쪽 끝에 닿아 버렸다. Swiper 가 실제로 붙은 경우에만 아래에서 다시 0 으로 돌린다. */
  /* 2026-11-04 - 좁은 화면의 트랙은 Swiper 가 맡는다 — 내용 폭 고정을 푼다 */
  .tabs--inline .tabs__list {
    justify-content: flex-start;
    gap: 40rem;
    min-width: 0;
    width: 100%;
    padding: 0 var(--side-padding);
  }
  .tabs--inline .tabs__item {
    width: auto; /* slidesPerView:"auto" — 글자폭만큼 */
    padding: 20rem 0;
    font-size: var(--kor-b5); /* 16 */
  }

  /* GNB — 데스크톱 메뉴 숨기고 모바일 유틸 노출 (디자인: 높이 60, px-20) */
  /* 2026-09-07 - 전체 메뉴가 열릴 때 바가 카드 안으로 들어오므로
     위치 · 폭 · 모서리도 같은 속도로 움직이게 트랜지션에 추가 */
  .gnb {
    height: 60rem;
    padding: 0 20rem;
    transition: transform 0.35s var(--ease-out-cubic),
      background-color 0.3s var(--ease-out-cubic), color 0.3s var(--ease-out-cubic),
      top 0.35s var(--ease-out-cubic), left 0.35s var(--ease-out-cubic),
      width 0.35s var(--ease-out-cubic), border-radius 0.35s var(--ease-out-cubic);
  }
  /* 로고 — 모바일 축소 (디자인 80×20) */
  .gnb__logo {
    width: 80rem;
    height: 20rem;
  }
  .gnb__nav,
  .gnb__util {
    display: none;
  }
  /* 카드는 2뎁스/스크롤용으로는 쓰지 않고, 검색 열림 때만 배경으로 쓴다.
     모바일은 display 토글이라 높이 트랜지션이 없으므로 높이를 내용에 맞춘다. */
  /* 2026-09-07 - 모바일은 검색 카드(.gnb__mega)를 쓰지 않는다.
     전체 메뉴와 검색이 드로어 카드 한 장을 같이 쓰고 그 안에서 판만 교체된다.
     (검색 판 .gnb__search 는 common.js 가 1024 이하에서 드로어 안으로 옮긴다) */
  .gnb__mega {
    display: none;
  }
  /* 모바일은 드로어 딤(16%)을 쓴다 */
  .gnb__dim {
    display: none;
  }
  /* 2026-09-08 - 스크롤 시 흰 배경을 바 자체에 준다.
     PC 는 카드(.gnb__mega)가 배경을 맡지만 모바일은 그 카드를 안 쓰므로
     배경이 비어 본문과 겹쳐 보였다. 위치는 그대로 두고 배경만 깐다
     (메뉴 · 검색을 누르면 그때 카드 안으로 들어간다). */
  .gnb--scrolled {
    background: var(--color-bg-default-white);
  }

  /* 모바일 유틸 — 40 탭영역에 아이콘 24 우측정렬(디자인: 아이콘 24 · 간격 16 · 우측 끝 정렬) */
  .gnb__mobile {
    position: relative;
    z-index: 1; /* 검색 카드 위로 */
    display: flex;
    align-items: center;
    /* 2026-09-08 - 버튼을 아이콘 크기로 줄이면서 시각 간격(16)을 gap 으로 옮김 */
    gap: 16rem;
    margin-left: auto;
  }
  /* 2026-09-08 - 클릭 영역을 아이콘(24)에 정확히 맞춘다.
     이전에는 40 박스에 아이콘을 우측 정렬해 왼쪽 16 이 빈 채로 눌렸다. */
  .gnb__mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24rem;
    height: 24rem;
    color: var(--color-ic-black);
  }
  .gnb__mobile-btn svg {
    width: 24rem;
    height: 24rem;
  }
  /* 모바일 검색 — 에셋 mask (우측 정렬 24)
     2026-09-07 - 검색이 열리면 이 버튼이 그 자리에서 X 로 바뀐다(메뉴 버튼과 같은 방식) */
  .gnb__mobile-btn--search {
    position: relative;
  }
  .gnb__mobile-btn--search::before,
  .gnb__mobile-btn--search::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: currentColor;
    transition: opacity 0.25s var(--ease-out-cubic), transform 0.35s var(--ease-out-cubic);
  }
  .gnb__mobile-btn--search::before {
    -webkit-mask: url("../images/ico-search.svg") center / contain no-repeat;
    mask: url("../images/ico-search.svg") center / contain no-repeat;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
  }
  .gnb__mobile-btn--search::after {
    -webkit-mask: url("../images/ico-close.svg") center / contain no-repeat;
    mask: url("../images/ico-close.svg") center / contain no-repeat;
    opacity: 0;
    transform: translateY(-50%) rotate(-90deg);
  }
  body.is-search-open .gnb__mobile-btn--search::before {
    opacity: 0;
    transform: translateY(-50%) rotate(90deg);
  }
  body.is-search-open .gnb__mobile-btn--search::after {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
  }
  @media (prefers-reduced-motion: reduce) {
    .gnb__mobile-btn--search::before,
    .gnb__mobile-btn--search::after {
      transition: none;
    }
  }
  .gnb--transparent .gnb__mobile-btn {
    color: var(--color-ic-white);
  }
  .gnb--scrolled.gnb--transparent .gnb__mobile-btn {
    color: var(--color-ic-black);
  }

  .gnb__search .gnb__search-box {
    height: 48rem;
    padding: 0 16rem;
  }
  .gnb__search .gnb__search-box .search__input {
    font-size: var(--kor-b5); /* 16 */
  }
  /* 2026-09-08 - 라벨 삭제로 세로 배치 불필요 */
  .gnb__search-keyword {
    align-items: flex-start;
  }
  /* 2026-09-08 - 시안(4876:16446)대로 가로 스와이프 대신 줄바꿈 배치 */
  .gnb__search-tags {
    width: 100%;
  }
  .gnb__search-tags-list {
    flex-wrap: wrap;
  }
  .gnb__search-tags::-webkit-scrollbar {
    display: none;
  }
  /* Footer — 컬럼 스택 (디자인: 패딩 48/21, 섹션 gap 40).
     순서: 주소·전화 → SNS → 정책 → 카피라이트 → 패밀리사이트.
     body 를 contents 로 풀어 자식을 inner 직계로 올리고 order 로 카피↔패밀리 순서 교체. */
  .footer {
    padding: 48rem 21rem;
  }
  .footer__inner {
    display: flex;
    flex-direction: column;
    gap: 40rem;
    max-width: none; /* 모바일 — 콘텐츠 폭 제한 해제(푸터 좌우 패딩 21 안에서 풀폭 사용) */
  }
  .footer__body {
    display: contents;
  }
  .footer__col--address,
  .footer__col--sns,
  .footer__col--policy,
  .footer__family {
    width: 100%;
  }
  .footer__copyright {
    order: 4;
    margin-top: 0;
    letter-spacing: 1.6rem;
    line-height: 1.44;
  }
  .footer__family {
    order: 5;
  }
  .footer__family-toggle {
    /* 2026-09-03 - 데스크톱 고정폭 200 해제, 모바일은 전체폭 */
    width: 100%;
    height: 48rem;
    justify-content: space-between;
  }
  /* 2026-10-14 - 푸터 맨 아래라 아래로 열면 화면 밖으로 잘린다 — 위로 편다 */
  .footer__family-list {
    top: auto;
    bottom: 100%;
  }

  /* 페이지네이션 — 모바일(디자인 MO): 항목 40→34 / 간격 8→4 + "…"(more)·마지막 숫자 숨김
     → first·prev·1~5·next·last 9개가 한 줄에 맞음 (wrap 아님) */
  .pagination {
    gap: 4rem;
  }
  .pagination__item {
    width: 34rem;
    height: 34rem;
  }
  .pagination__item--more,
  .pagination__item--more + .pagination__item {
    display: none;
  }
}

/* 2026-08-31 - 활성 밑줄을 컨테이너 보더(#f2f2f2) 와 '같은 1px 위'에 겹쳐 그린다.
   ── 사정 ──
   뷰포트는 Swiper 트랙이 문서 폭을 늘리지 않게 잘라야 하는데(overflow),
   자르면 컨테이너 보더 위로 1px 올려놓은 밑줄까지 같이 잘린다.
   overflow-clip-margin 은 '자르되 지정한 만큼은 새어나가게' 해줘서 둘 다 만족한다.
   미지원 브라우저는 기본값(margin-bottom:0)이라 밑줄이 보더 바로 위에 붙는다
   — 겹치진 않지만 사라지지도 않는다.
   ※ 반응형 블록이 overflow 를 다시 지정하므로 파일 맨 뒤에 둔다(소스 순서로 이김). */
@supports (overflow-clip-margin: 2px) {
  .tabs--inline .tabs__viewport {
    overflow: clip;
    overflow-clip-margin: 2px;
  }
  .tabs--inline .tabs__item {
    margin-bottom: -1px;
  }
}
/* 2026-11-04 - 영문처럼 탭이 한 줄을 넘치면 넓은 화면에서도 가로로 밀어야 한다.
   overflow: clip 은 스크롤이 되지 않으므로 auto 로 바꾸고,
   잘려 사라지던 1px 밑줄은 뷰포트 아래 패딩 1px 로 품는다(음수 마진으로 높이는 그대로).
   ※ Swiper 가 붙지 못했을 때(스크립트 미로드 등)의 대비책이기도 하다 */
@media (min-width: 1025px) {
  .tabs--inline .tabs__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    margin-bottom: -1px;
  }
}
/* 2026-11-05 - Swiper 가 붙으면(건축·미래솔루션 탭 — 폭 상관없이) 트랙은 Swiper 가 맡는다.
   간격·좌우 여백은 Swiper 파라미터로 넘어가므로 CSS 쪽은 비우고,
   뷰포트는 화면 폭을 다 쓰며 넘치는 트랙을 잘라 준다(밑줄은 아래 패딩으로 품는다) */
.tabs--inline .tabs__viewport.swiper-initialized {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-bottom: 1px;
  margin-bottom: -1px;
}
.tabs--inline .tabs__viewport.swiper-initialized .tabs__list {
  justify-content: flex-start;
  min-width: 0;
  gap: 0;
  padding: 0;
}

/* ========================================================
   2026-09-03 - 모바일 전체 메뉴 (드로어) — 시안 126:1594 (390x844 기준)
   딤(검정 16%) 위에 사방 10 여백을 둔 카드형 패널. 오른쪽에서 슬라이드.
   ======================================================== */
.gnb__drawer {
  display: none;
}

@media (max-width: 1024px) {
  /* 딤 — 화면 전체, 사방 10 여백 안에 패널 */
  /* 2026-09-07 - 헤더 바(60)는 그대로 두고 그 아래로 패널이 내려온다.
     z-index 는 GNB(100) 아래 — 올라가 있는 패널이 헤더에 가려진다. */
  .gnb__drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    /* 2026-09-07 - 모바일 브라우저 하단 주소창이 fixed 의 bottom:0 을 덮어
       하단 줄(언어 · 뉴스레터)이 화면 밖으로 밀리던 문제 → 실제 보이는 높이(dvh)로 */
    height: 100%;
    height: 100dvh;
    z-index: 90;
    /* 2026-09-07 - 여백은 헤더 바와 함께 벌어진다 — 닫힘 0(풀폭) → 열림 10.
       위 여백은 바 하단에 맞춰 60 → 70, 1px 빼서 바 아래로 밀어 넣는다
       (소수 픽셀 경계에서 둘 사이로 딤이 비쳐 실선처럼 보이던 문제) */
    padding: calc(60rem - 1px) 0 0;
    visibility: hidden;
    transition: visibility 0s linear 0.35s, padding 0.35s var(--ease-out-cubic);
  }
  /* 2026-09-07 - 딤을 가상요소로 분리 — 딤에만 페이드를 걸어
     패널(흰 카드)은 처음부터 불투명하게, 헤더 바와 같은 톤으로 보이게 한다 */
  .gnb__drawer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.16);
    opacity: 0;
    transition: opacity 0.35s var(--ease-out-cubic);
  }
  body.is-menu-open .gnb__drawer,
  body.is-search-open .gnb__drawer {
    /* 2026-09-10 - 좌우 0.5px 오프셋 제거 — 패널이 헤더 바보다 1px 넓어 좌우로 삐져나오던 문제.
       좌우는 헤더 바(left:10rem / width:calc(100% - 20rem))와 같은 10 을 그대로 쓴다.
       위쪽 -1px 은 헤더와 패널 사이에 딤이 비치던 틈 때문에 유지 */
    padding: calc(70rem - 1px) 10rem 10rem;
    visibility: visible;
    transition: visibility 0s, padding 0.35s var(--ease-out-cubic);
  }
  body.is-menu-open .gnb__drawer::before,
  body.is-search-open .gnb__drawer::before {
    opacity: 1;
  }
  /* 패널 — 오른쪽 밖에 대기하다 들어온다 */
  .gnb__drawer-panel {
    position: relative;
    z-index: 1; /* 딤(::before) 위 */
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: hidden; /* 하단 줄이 둥근 모서리 밖으로 나오지 않게 */
    border-radius: 0;
    background: var(--color-bg-default-white);
    /* 2026-09-07 - 카드가 통째로 내려오는 대신 위에서부터 펼쳐지게(slideDown).
       내용은 제자리에 있고 보이는 영역만 아래로 자란다. */
    /* 2026-09-07 - 헤더 바가 내려오는 만큼 카드도 함께 내려온다.
       위로 올라가 있는 동안엔 바(z-index 100) 뒤에 숨는다. */
    transform: translateY(-20rem);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.35s var(--ease-out-cubic), transform 0.35s var(--ease-out-cubic),
      border-radius 0.35s var(--ease-out-cubic);
  }
  body.is-menu-open .gnb__drawer-panel,
  body.is-search-open .gnb__drawer-panel {
    transform: translateY(0);
    border-radius: 0 0 8rem 8rem;
    clip-path: inset(0 0 0 0);
  }
  @media (prefers-reduced-motion: reduce) {
    .gnb__drawer,
    .gnb__drawer-panel,
    .gnb__drawer-body,
    .gnb__drawer-foot {
      transition: none;
    }
  }
  /* 2026-09-07 - 열려 있는 동안 헤더 바도 패널과 한 장의 카드가 되게
     사방 10 여백 + 위쪽 모서리 라운드. 흰 배경·검은 아이콘 고정(KV 투명 헤더 대응) */
  /* 2026-09-07 - 검색 열림도 전체 메뉴와 같은 상태로 다룬다 */
  body.is-menu-open .gnb,
  body.is-menu-open .gnb.gnb--hidden,
  body.is-search-open .gnb,
  body.is-search-open .gnb.gnb--hidden {
    transform: translateY(0);
    top: 10rem;
    left: 10rem;
    width: calc(100% - 20rem);
    border-radius: 8rem 8rem 0 0;
    background: var(--color-bg-default-white);
  }
  body.is-menu-open .gnb__mobile-btn,
  body.is-search-open .gnb__mobile-btn {
    color: var(--color-ic-black);
  }
  body.is-menu-open .gnb__logo,
  body.is-search-open .gnb__logo {
    background-color: var(--color-logo-blue); /* 마스크 로고라 background-color */
  }
  body.is-menu-open,
  body.is-search-open {
    overflow: hidden;
  }
  /* 딤 — 드로어의 딤을 그대로 재사용(전체 화면 fixed 라 위치가 정확하다) */

  /* ── 본문 — 상 40 / 좌우 20, 하단 줄은 바닥 고정 ── */
  /* 2026-09-07 - 헤더 바가 내려오는 것과 맞춰 안쪽 내용도 살짝 따라 내려온다
     (패널은 제자리에서 펼쳐지고 내용만 이동 → 헤더와 한 덩어리로 보이게) */
  /* 2026-09-07 - 판 진입 모션 — 카드가 내려오는 것과 같은 리듬으로 내용도 따라 내려온다.
     판은 display 로 교체되는데 display 가 바뀌면 트랜지션은 재생되지 않으므로
     애니메이션을 쓴다. 덕분에 열린 상태에서 판을 바꿔도 같은 모션이 다시 돈다. */
  @keyframes gnb-pane-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .gnb__drawer-body,
  .gnb__drawer .gnb__search {
    opacity: 0;
  }
  body.is-menu-open .gnb__drawer-body,
  body.is-search-open .gnb__drawer .gnb__search {
    animation: gnb-pane-in 0.35s var(--ease-out-cubic) both;
  }
  @media (prefers-reduced-motion: reduce) {
    body.is-menu-open .gnb__drawer-body,
    body.is-search-open .gnb__drawer .gnb__search {
      animation: none;
      opacity: 1;
    }
  }
  .gnb__drawer-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 40rem 20rem 0;
  }
  .gnb__drawer-nav {
    flex: 1 1 auto;
    min-height: 0;
    /* 2026-09-07 - 2뎁스 펼칠 때 스크롤바가 순간 보이던 문제
       (세로 바가 생기며 폭을 8 가져가 가로 바까지 번쩍였다) — 바는 감추고 스크롤만 살린다 */
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gnb__drawer-nav::-webkit-scrollbar {
    display: none;
  }
  /* 1뎁스는 구분선으로만 나뉜다 — 행 사이 여백 없음(시안 pitch 73) */
  .gnb__drawer-list {
    display: flex;
    flex-direction: column;
  }
  .gnb__drawer-item {
    display: flex;
    flex-direction: column;
  }
  /* 1뎁스 — 28 Bold, 상하 16, 아래 구분선 */
  .gnb__drawer-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8rem;
    width: 100%;
    padding: 16rem 0;
    font-family: var(--font-family-kor);
    font-size: 28rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.48;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-bg-default-black); /* #000 */
    text-align: left;
    background: none;
    border: 0;
    /* 구분선 — 시안(Figma 내부 스트로크)처럼 행 높이를 늘리지 않게 inset 으로 */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  }
  /* 아코디언 화살표 38x38
     2026-09-07 - 프레임을 통째로 돌리면 회전 중 바운딩 박스가 54 로 커져
     가로 스크롤이 순간 생겼다 → 프레임은 고정하고 안쪽 아이콘만 돌린다 */
  .gnb__drawer-arrow {
    position: relative;
    flex-shrink: 0;
    width: 38rem;
    height: 38rem;
    overflow: hidden;
  }
  .gnb__drawer-arrow::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* 2026-09-07 - 시안 에셋(ic/16/arrow-down). 38 프레임 안에서 오른쪽 끝 정렬(시안 flex-end)
       PNG 는 vw 기반 rem 때문에 소수 픽셀에 놓여 흐려져서 SVG 로 교체 */
    background: url("../images/ico-drawer-arrow.svg") right center / 24rem 24rem no-repeat;
    transition: transform 0.25s var(--ease-out-cubic);
  }
  .gnb__drawer-item.is-open .gnb__drawer-arrow::before {
    transform-origin: calc(100% - 12rem) center; /* 오른쪽 끝 24 아이콘의 중심 */
    transform: rotate(180deg);
  }
  /* 2뎁스 — 행 44, 왼쪽 16 들여쓰기, 20 Medium */
  .gnb__drawer-sub {
    max-height: 0;
    margin-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s var(--ease-out-cubic), opacity 0.2s var(--ease-out-cubic),
      margin 0.3s var(--ease-out-cubic), padding 0.3s var(--ease-out-cubic);
  }
  .gnb__drawer-item.is-open .gnb__drawer-sub {
    max-height: 400rem;
    margin-top: 16rem; /* 1뎁스 구분선과 2뎁스 사이 */
    padding-bottom: 8rem;
    opacity: 1;
  }
  .gnb__drawer-sub-link {
    display: flex;
    align-items: center;
    height: 44rem;
    padding-left: 16rem;
    font-family: var(--font-family-kor);
    font-size: 20rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.6;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text-default-high); /* #444 */
  }
  /* 2026-10-08 - 외부 링크(채용안내) — PC GNB 와 같은 화살표 아이콘.
     마크업에는 --ext 가 있었는데 모바일 쪽 규칙이 없어 아이콘이 안 붙었다 */
  .gnb__drawer-sub-link--ext {
    gap: 4rem;
  }
  .gnb__drawer-sub-link--ext::after {
    content: "";
    flex-shrink: 0;
    width: 18rem;
    height: 18rem;
    background-color: currentColor;
    -webkit-mask: url("../images/ico-external-link.svg") center / contain no-repeat;
    mask: url("../images/ico-external-link.svg") center / contain no-repeat;
  }
  .gnb__drawer-sub-link.is-current,
  .gnb__drawer-sub-link:hover,
  .gnb__drawer-sub-link:focus-visible {
    color: var(--color-primary-samoo-blue); /* #1428A0 */
  }

  /* ── 드로어 안 검색 판 — 메뉴 판과 같은 자리에서 display 로만 교체 ── */
  .gnb__drawer .gnb__search {
    position: static;
    display: none;
    flex: 0 0 auto;
    width: auto;
    padding: 40rem 20rem 24rem; /* 시안 body-container */
    margin: 0;
    gap: 24rem;
    transform: none; /* 데스크톱 가운데 정렬용 translateX(-50%) 해제 */
    visibility: visible;
  }
  body.is-search-open .gnb__drawer .gnb__search {
    display: flex;
  }
  body.is-search-open .gnb__drawer-body {
    display: none;
  }
  /* 검색 판일 때 카드는 내용 높이만큼(시안 hug) */
  body.is-search-open .gnb__drawer-panel {
    flex: 0 0 auto;
  }

  /* ── 하단 — 370x80, 회색 판, 카드 맨 아래 ──
     2026-09-07 - 본문(.gnb__drawer-body) 안에 둔다. 메뉴와 같은 클립으로 함께 펼쳐진다.
     본문 좌우 여백 20 을 음수 마진으로 상쇄해 카드 폭을 꽉 채운다. */
  .gnb__drawer-foot {
    flex-shrink: 0;
    margin: auto -20rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80rem;
    padding: 0 20rem;
    background: var(--color-bg-primary-light-level-1); /* #f8f8f8 */
  }
  .gnb__drawer-lang {
    display: flex;
    align-items: center;
    gap: 16rem;
  }
  .gnb__drawer-lang-btn {
    font-family: var(--font-family-kor);
    font-size: 22rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.48;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-text-default-medium); /* #555 */
    background: none;
    border: 0;
  }
  .gnb__drawer-lang-btn.is-current {
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-samoo-blue); /* #1428A0 */
  }
  .gnb__drawer-lang-sep {
    width: 1px;
    height: 16rem;
    background: var(--color-line-medium); /* #d9d9d9 */
  }
  /* 2026-10-08 - 링크에서 버튼으로 바뀌어 기본 꾸밈을 지운다 */
  .gnb__drawer-news {
    display: flex;
    align-items: center;
    gap: 12rem;
    padding: 0;
    font-family: var(--font-family-kor);
    font-size: 20rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.6;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-bg-default-black); /* #000 */
    background: none;
    border: 0;
    cursor: pointer;
  }
  /* 2026-10-08 - 메일 아이콘 → PC 브로슈어 버튼과 같은 다운로드 아이콘 */
  .gnb__drawer-news-ico {
    flex-shrink: 0;
    width: 24rem;
    height: 24rem;
    background-color: currentColor;
    -webkit-mask: url("../images/ico-download-20.svg") center / contain no-repeat;
    mask: url("../images/ico-download-20.svg") center / contain no-repeat;
  }
}

/* 모바일 메뉴 버튼 아이콘 — 닫힘: 햄버거 / 열림: X */
/* 2026-09-07 - display 토글은 탁 바뀌어서, 두 아이콘을 겹쳐 두고 페이드 + 회전 */
.gnb__mobile-btn--menu {
  position: relative;
}
.gnb__mobile-ico {
  position: absolute;
  top: 50%;
  right: 0;
  transition: opacity 0.25s var(--ease-out-cubic), transform 0.35s var(--ease-out-cubic);
}
.gnb__mobile-ico--bar {
  opacity: 1;
  transform: translateY(-50%) rotate(0deg);
}
.gnb__mobile-ico--x {
  opacity: 0;
  transform: translateY(-50%) rotate(-90deg);
}
.gnb__mobile-btn--menu[aria-expanded="true"] .gnb__mobile-ico--bar {
  opacity: 0;
  transform: translateY(-50%) rotate(90deg);
}
.gnb__mobile-btn--menu[aria-expanded="true"] .gnb__mobile-ico--x {
  opacity: 1;
  transform: translateY(-50%) rotate(0deg);
}
@media (prefers-reduced-motion: reduce) {
  .gnb__mobile-ico {
    transition: none;
  }
}

/* ========================================================
   키비주얼 분야 선택 (.kv-select) — 시안 9508:9047
   2026-10-02 - 비즈니스 키비주얼의 분야 제목을 눌러 건축 · 하이테크 ·
   미래솔루션을 오간다. 건축(.bus-kv)과 미래솔루션(.fut-kv) 화면이 함께 쓴다.
   제목 글자·화살표 모양은 각 페이지 CSS 가 그대로 가지고, 여기서는
   버튼 껍데기와 펼침 목록만 맡는다.
   ======================================================== */
.kv-select__btn {
  display: flex;
  align-items: center;
  gap: 24rem;
  padding: 0;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
/* 펼치면 화살표가 위를 본다 */
.kv-select__btn .bus-kv__arrow,
.kv-select__btn .fut-kv__arrow {
  transition: transform 0.3s var(--ease-out-cubic);
}
.kv-select__btn[aria-expanded="true"] .bus-kv__arrow,
.kv-select__btn[aria-expanded="true"] .fut-kv__arrow {
  transform: rotate(180deg);
}

/* 펼침 목록 — 제목 아래 16 (머리 묶음 간격 8 + 여기 8)
   2026-10-02 - 머리 묶음이 아래 기준이라 목록이 생기는 만큼 제목이 위로 밀린다.
   한 번에 생기면 제목이 탁 튀어서, 높이를 0 에서 펴며 같이 올라가게 한다.
   높이 값은 common.js 의 kvSelectEv 가 그때그때 재서 넣는다 */
.kv-select {
  display: flex;
  /* 머리 묶음이 늘리지 않게 — 글자 폭만 차지해야 바깥 누르기가 제대로 먹는다 */
  align-self: flex-start;
  gap: 24rem;
  /* 접힌 동안에도 머리 묶음의 간격 8 은 남는다 — 그만큼 빼 두어야
     다 접힌 뒤 display:none 이 될 때 제목이 8 만큼 튀지 않는다 */
  margin-top: -8rem;
  overflow: hidden;
  opacity: 0;
  transition: height 0.5s var(--ease-out-cubic), margin-top 0.5s var(--ease-out-cubic),
    opacity 0.3s var(--ease-out-cubic);
}
.kv-select.is-open {
  margin-top: 8rem;
  opacity: 1;
}
.kv-select[hidden] {
  display: none;
}
/* 글자는 살짝 아래에서 따라 올라온다 (왼쪽부터 차례로) */
.kv-select__link {
  transform: translateY(10rem);
  transition: transform 0.5s var(--ease-out-cubic), border-color 0.2s var(--ease-out-cubic);
}
.kv-select.is-open .kv-select__link {
  transform: none;
}
.kv-select li:nth-child(2) .kv-select__link {
  transition-delay: 0.05s, 0s;
}
.kv-select li:nth-child(3) .kv-select__link {
  transition-delay: 0.1s, 0s;
}
@media (prefers-reduced-motion: reduce) {
  .kv-select,
  .kv-select__link {
    transition: none;
  }
  .kv-select__link {
    transform: none;
  }
}
/* 고른 분야에만 아래 선 — 시안은 글자 아래 8 자리에 2 굵기 */
.kv-select__link {
  display: block;
  padding-bottom: 8rem;
  font-family: var(--font-family-kor);
  font-size: var(--kor-h5); /* 32 */
  font-weight: var(--font-weight-bold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-white);
  border-bottom: 2px solid transparent;
}
.kv-select__link:hover,
.kv-select__link:focus-visible {
  border-bottom-color: var(--alpha-white-400a, rgba(255, 255, 255, 0.4));
}
.kv-select__link--on,
.kv-select__link--on:hover,
.kv-select__link--on:focus-visible {
  border-bottom-color: var(--color-neutral-white);
}
/* ── 분야 선택 — 모바일 ── */
@media (max-width: 1024px) {
  .kv-select {
    flex-wrap: wrap;
    gap: 16rem;
  }
  .kv-select__link {
    font-size: var(--kor-h7); /* 20 */
  }
}

/* ========================================================
   브로슈어 다운로드 레이어 (.brochure) — 시안 4890:19432
   2026-09-08 - 헤더 유틸의 "브로슈어" 버튼으로 우측에서 열린다.
   ======================================================== */
.brochure {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 150; /* GNB(100) 위 · 모달(200) 아래 */
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}
.brochure::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.64);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out-cubic);
}
body.is-brochure-open .brochure {
  visibility: visible;
  transition: visibility 0s;
}
body.is-brochure-open .brochure::before {
  opacity: 1;
}

/* 패널 — 우측 400, 상하 40 */
.brochure__panel {
  position: absolute;
  top: 40rem;
  right: 40rem;
  bottom: 40rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* 2026-09-18 - 시안 수정: 제목단 · 목록 · 더보기 사이 40, 상하 여백 24 */
  gap: 40rem;
  width: 400rem;
  /* 2026-09-16 - 시안 좌우 여백 28 (본문 폭 344) */
  padding: 24rem 28rem;
  /* 2026-09-08 - 목록만 스크롤한다(제목단 · 더보기 버튼은 고정) */
  overflow: hidden;
  background: var(--color-bg-default-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-300); /* 12 */
  transform: translateX(24rem);
  opacity: 0;
  transition: transform 0.35s var(--ease-out-cubic), opacity 0.25s var(--ease-out-cubic);
}
body.is-brochure-open .brochure__panel {
  transform: translateX(0);
  opacity: 1;
}
/* 닫기 — 패널 왼쪽 바깥 (시안 x1432 y75) */
/* 2026-09-29 - 닫기 버튼도 패널과 같이 밀려 나가며 사라진다.
   상태가 없어 visibility 가 꺼지는 순간 톡 하고 없어졌다 */
.brochure__close {
  position: absolute;
  top: 75rem;
  right: 464rem; /* 패널 40 + 400 + 간격 24 */
  z-index: 1;
  width: 24rem;
  height: 24rem;
  background-color: var(--color-ic-white);
  border: 0;
  -webkit-mask: url("../images/ico-close.svg") center / contain no-repeat;
  mask: url("../images/ico-close.svg") center / contain no-repeat;
  transform: translateX(24rem);
  opacity: 0;
  transition: transform 0.35s var(--ease-out-cubic), opacity 0.25s var(--ease-out-cubic);
}
body.is-brochure-open .brochure__close {
  transform: translateX(0);
  opacity: 1;
}

/* ── 제목 + 유형 탭 ── */
/* 2026-09-18 - 시안 수정: 제목 아래 브로슈어 · 브랜드북 · 리포트 탭 추가 */
.brochure__head {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 16rem;
}
.brochure__title {
  font-family: var(--font-family-kor);
  font-size: var(--kor-h7); /* 20 */
  font-weight: var(--font-weight-bold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 알약 탭을 패널 폭에 꽉 채운 균등 3분할로 쓴다 */
.brochure__tabs {
  width: 100%;
  margin: 0;
  background: var(--color-bg-primary-light-level-2); /* #f2f2f2 */
}
.brochure__tabs .tabs__viewport {
  flex: 1 1 auto;
  width: 100%;
}
.brochure__tabs .tabs__list {
  width: 100%;
  height: 40rem;
}
/* 선택 표시(미끄러지는 알약)와 색은 공통 tabs--primary 기본값을 그대로 쓴다 —
   여기서는 크기만 시안(40 높이 · 3등분 · 16)에 맞춘다 */
.brochure__tabs .tabs__item {
  flex: 1 1 0;
  width: auto;
  height: 40rem;
  padding: 0 20rem;
  font-size: var(--kor-b5); /* 16 */
  /* .tabs--primary 기본값은 '흰 판 위 흰 알약' 이라 탭마다 흰 배경이 깔린다.
     여기는 회색 트랙 위라 그대로 두면 트랙이 탭 사이 틈으로만 보인다 → 비운다 */
  background: transparent;
}
/* 인디케이터(.tabs__pill)가 붙기 전 · 붙지 못한 환경에서도 선택 탭은 검정 알약이다 */
.brochure__tabs .tabs__item--active,
.brochure__tabs .tabs__item--active:hover,
.brochure__tabs .tabs__item--active:focus-visible {
  color: var(--color-white);
  background: var(--color-text-default-highest); /* #1a1a1a */
}
/* 인디케이터가 붙으면 칠은 알약이 맡는다 — 좌우로 미끄러지는 연출 그대로 */
.brochure__tabs.tabs--sliding .tabs__item--active,
.brochure__tabs.tabs--sliding .tabs__item--active:hover,
.brochure__tabs.tabs--sliding .tabs__item--active:focus-visible {
  background: transparent;
}

/* ── 유형별 목록 + 더보기 ── */
.brochure__con {
  /* 2026-10-02 - 더보기 바가 이 안에서 바닥에 붙는다 */
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  align-items: center;
}
.brochure__con[hidden] {
  display: none;
}
/* 항목이 늘어나면 이 목록 안에서만 스크롤된다 */
.brochure__list {
  display: flex;
  /* 2026-10-02 - 목록이 남은 높이를 다 쓴다 — 항목이 적어도 더보기는 바닥에 */
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  /* 2026-10-02 - 시안 6964:21935 — 항목 사이 24 → 48 */
  gap: 48rem;
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* 2026-10-02 - 브라우저 기본 막대는 숨긴다 — 아래 .brochure__bar 로 직접 그린다 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.brochure__list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
/* 스크롤 막대 — 시안 9575:8228 (폭 4 · #555 · 완전 둥근 끝).
   패널 오른쪽 끝에 붙고 화살표가 없다. 위치·길이는 common.js 가 준다 */
.brochure__bar {
  position: absolute;
  top: 0;
  right: -28rem;
  bottom: 0;
  width: 4rem;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out-cubic);
  pointer-events: none;
}
.brochure__bar.is-on {
  opacity: 1;
}
/* 더보기 바가 있는 탭은 그 위에서 멈춘다 */
.brochure__con--btm .brochure__bar {
  bottom: 97rem;
}
.brochure__bar i {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--bar-h, 80rem);
  background: var(--color-text-default-medium); /* #555 */
  border-radius: 999rem;
  transform: translateY(var(--bar-y, 0));
}
/* 더보기 바 — 목록 위에 겹쳐 바닥에 붙는다. 위에 선 하나, 아래 버튼 */
.brochure__btm {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24rem;
  background: var(--color-bg-default-white);
  border-top: 1px solid var(--color-line-low); /* #e5e5e5 */
}
.brochure__btm[hidden] {
  display: none;
}
/* 바에 가리지 않도록 목록 끝을 바 높이(1 + 24 + 48)만큼 띄우고,
   2026-10-02 - 끝까지 내렸을 때 마지막 항목이 선에 닿지 않게 24 를 더 둔다 */
.brochure__con--btm .brochure__list {
  padding-bottom: 97rem;
}
/* 한 항목 = 표지 + 문구 + 다운로드.
   2026-10-02 - 시안 6964:21936 — 항목 아래 구분선 없음(간격 48 로 나눈다) */
.brochure__item {
  display: flex;
  flex-direction: column;
  gap: 24rem;
}
.brochure__con-in {
  display: flex;
  flex-direction: column;
  gap: 20rem;
}
/* 2026-10-14 - 리포트 항목은 시안(8573:19030)처럼 다운로드 밑에 구분선이 들어간다 */
.brochure__item--line {
  padding-bottom: 24rem;
  border-bottom: 1px solid var(--color-line-low); /* #e5e5e5 */
}
/* 표지 — 높이 240 고정, 가로는 비율대로 줄어 가운데 정렬 */
.brochure__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240rem;
}
.brochure__img img {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.brochure__txt {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}
.brochure__name {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b3); /* 20 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
.brochure__desc {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
/* 다운로드 텍스트버튼 — 시안 아이콘은 16 */
.brochure__dl {
  align-self: flex-start;
}
.brochure__dl .btn-text__icon {
  width: 16rem;
  height: 16rem;
}
/* 아직 등록된 자료가 없는 유형 */
.brochure__empty {
  padding: 40rem 0;
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .brochure,
  .brochure::before,
  .brochure__panel,
  .brochure__close {
    transition: none;
  }
}

/* 1024 이하 — 좌우 여백 줄이고 전체 폭 사용 */
@media (max-width: 1024px) {
  .brochure__panel {
    top: 70rem;
    right: 10rem;
    bottom: 10rem;
    width: auto;
    left: 10rem;
    padding: 24rem 20rem;
  }
  .brochure__close {
    top: 20rem;
    right: 20rem;
  }
}

/* ========================================================
   2026-09-11 - 소형 모바일 (600px 이하) — 카드 목록
   ======================================================== */
@media (max-width: 600px) {
  /* 폰 폭에서 16:9 카드는 1열로. 2열이면 썸네일이 163×92 까지 줄어든다.
     세로 3:4 인 인스타그램은 1열이면 반대로 너무 커져 2열을 유지한다. */
  .cards:not(.cards--insta) {
    grid-template-columns: minmax(0, 1fr);
    gap: 40rem;
  }
}

/* ========================================================
   연관 프로젝트 (.bus-rel) · Contact Us (.bus-contact)
   2026-09-14 - 비즈니스 전용이었으나 미래솔루션에서도 같은 모양으로 쓰여
   pages/business.css 에서 공통으로 옮겼다. 클래스명은 그대로 두어
   기존 페이지 마크업은 손대지 않는다.
   ======================================================== */
.bus-rel {
  display: flex;
  flex-direction: column;
  gap: 40rem;
  /* 2026-09-28 - 시안 width 개편: 좌우 72 → 222 */
  /* 2026-10-01 - 시안 대조: 구분선은 맨 위에 붙고 그 아래 64 에서 제목이 시작 */
  /* 2026-10-06 - 위 여백이 0 이라 앞 섹션과 붙어 갑자기 좀아 보였다.
     시안의 page-bottom-related 는 위아래 160 이다 (8940:2238 · 8823:41575) */
  padding: 160rem var(--side-padding) 160rem;
  /* 2026-09-14 - 흰 배경 고정. 페이지 배경이 스크롤로 바뀌는 화면에서
     빠르게 내리거나 거꾸로 올릴 때 이 영역까지 어두워지던 문제 */
  background: var(--color-bg-default-white);
}
/* 2026-10-01 - Contact Us 와 같은 모양의 위쪽 구분선 */
.bus-rel::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  /* 묶음 간격(40) + 24 = 시안의 64 */
  margin-bottom: 24rem;
  background: var(--color-bg-primary-light-level-3);
}
.bus-rel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bus-rel__title {
  font-family: var(--font-family-kor);
  font-size: var(--kor-h4); /* 40 */
  font-weight: var(--font-weight-bold);
  line-height: 1.28;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}
.bus-rel__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 2026-10-01 - 시안 대조: 카드 사이 24 → 28 */
  gap: 28rem;
}
.bus-rel__item {
  display: flex;
  flex-direction: column;
  gap: 24rem;
}
.bus-rel__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 426 / 258;
  background: var(--color-bg-primary-light-level-2);
}
.bus-rel__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-cubic);
}
.bus-rel__item:hover .bus-rel__img img,
.bus-rel__item:focus-visible .bus-rel__img img {
  transform: scale(1.05);
}
.bus-rel__item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4rem;
}
.bus-rel__txt {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.bus-rel__cat {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low);
}
.bus-rel__name {
  font-family: var(--font-family-kor);
  /* 2026-10-01 - 시안 수정: 카드 제목 24 → 20 */
  font-size: var(--kor-h7); /* 20 */
  font-weight: var(--font-weight-bold);
  line-height: 1.36;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}


/* ── Contact Us ── */
.bus-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 160rem;
  /* 2026-09-28 - 시안 width 개편: 좌우 72 → 222 */
  padding: 0 var(--side-padding) 160rem;
  /* 2026-09-14 - 연관 프로젝트와 한 쌍이라 같이 흰 배경으로 고정 */
  background: var(--color-bg-default-white);
}
.bus-contact::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-bg-primary-light-level-3);
}
/* 2026-09-09 - 시안(request-banner) 반영 — 담당자·메일주소 삭제, 문의 버튼 추가.
   제목·설명은 .bus-contact__txt 로 묶어 간격 24, 그룹↔버튼 64 */
.bus-contact__con {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64rem;
  text-align: center;
}
.bus-contact__txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24rem;
}
.bus-contact__title {
  font-size: var(--eng-h3); /* 56 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  color: var(--color-text-default-highest);
}
.bus-contact__desc {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b2); /* 24 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.48;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-highest);
}

@media (max-width: 1024px) {
  /* 연관 프로젝트 — 2열 */
  .bus-rel {
    /* 2026-10-01 - 구분선이 위에 붙어 위 여백은 구분선이 대신한다 */
    padding: 0 var(--side-padding) 100rem;
  }
  .bus-rel__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40rem;
  }
  .bus-rel__title {
    font-size: var(--kor-h5); /* 32 */
  }
  .bus-rel__name {
    font-size: var(--kor-b3); /* 20 */
  }

  /* Contact */
  .bus-contact {
    gap: 80rem;
    padding: 0 var(--side-padding) 100rem;
  }
  .bus-contact__title {
    font-size: var(--eng-h5); /* 40 */
  }
  .bus-contact__desc {
    font-size: var(--kor-b4); /* 18 */
  }
}

@media (max-width: 600px) {
  .bus-rel__list {
    grid-template-columns: 1fr;
  }
  .bus-rel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24rem;
  }
}

/* ========================================================
   퀵 버튼 (.quick) — 시안 9215:18877
   2026-09-29 - 모든 화면 우측 하단에 띄는 문의 · TOP.
   common.js 가 푸터 바로 앞에 주입한다.
   ======================================================== */
.quick {
  position: fixed;
  /* 2026-09-29 - 푸터에 닿으면 common.js 가 transform 으로 밀어 올린다 */
  will-change: transform;
  right: 32rem;
  bottom: 32rem;
  z-index: 120; /* GNB(100) 위 · 브로슈어 레이어(150) 아래 */
  display: flex;
  flex-direction: column;
  gap: 8rem;
  /* 2026-10-23 - 비킬 때만 쓰는 전환. 푸터에 닿아 밀어 올리는 transform 은 그대로 즉시 움직인다 */
  transition:
    opacity 0.4s var(--ease-out-cubic),
    translate 0.4s var(--ease-out-cubic);
}
/* 2026-10-23 - 메인 비즈니스에서 분야를 펼치면 접힌 바의 펼치기 화살표와 자리가 겹친다.
   펼쳐 두고 그 영역을 보고 있는 동안만 비킨다 (세 칸으로 돌아오거나 영역을 벗어나면 돌아온다) */
body.is-ind-open .quick {
  opacity: 0;
  translate: 0 12rem;
  pointer-events: none;
}
.quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 80rem;
  height: 80rem;
  padding: 0;
  background: rgba(0, 0, 0, 0.56);
  border: 0;
  border-radius: 999rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out-cubic);
}
.quick__btn:hover,
.quick__btn:focus-visible {
  background: rgba(0, 0, 0, 0.8);
}
.quick__ico {
  display: block;
  width: 28rem;
  height: 26rem;
  background-color: var(--color-ic-white);
}
.quick__ico--ask {
  -webkit-mask: url("../images/ico-message-2.svg") center / contain no-repeat;
  mask: url("../images/ico-message-2.svg") center / contain no-repeat;
}
.quick__ico--top {
  -webkit-mask: url("../images/ico-arrow-tail-up-28.svg") center / contain no-repeat;
  mask: url("../images/ico-arrow-tail-up-28.svg") center / contain no-repeat;
}
.quick__txt {
  font-family: var(--font-family-kor);
  font-size: var(--kor-btn-sm); /* 14 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  color: var(--color-text-default-white);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  /* 2026-10-06 - 모바일은 글자 빼고 아이콘만. 버튼을 줄이고 오른쪽으로 더 붙인다 */
  .quick {
    right: 14rem;
    bottom: 20rem;
    gap: 6rem;
  }
  /* 2026-10-07 - 전체메뉴가 열리면 퀵 버튼이 메뉴 위로 떠서 겹쳤다.
     메뉴(.gnb__drawer, 90) 아래로 내려 가려지게 한다 */
  body.is-menu-open .quick {
    z-index: 80;
  }
  .quick__btn {
    width: 48rem;
    height: 48rem;
  }
  .quick__ico {
    width: 20rem;
    height: 18rem;
  }
  /* 글자는 화면에서만 감춘다 — 버튼 이름은 읽히게 남겨 둔다 */
  .quick__txt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* ========================================================
   메인 레이어팝업 슬라이드 (.popup-*) — 시안 8573:17430
   2026-09-30 - 신규. 껍데기는 공통 .modal 을 그대로 쓰고,
   여기서는 팝업 전용 차이(딤 농도·본문 패딩)와 슬라이드 3타입만 적는다.
   타입 ① 이미지형 ② 텍스트형(높이 채움) ③ 텍스트형(내용 높이)
   ======================================================== */

/* 이 팝업만 시안 딤이 64% 다 (공통 .modal 은 40%) */
.modal--popup {
  background: rgba(0, 0, 0, 0.64);
}
/* 타이틀은 자리만 차지하고 화면에는 보이지 않는다 (읽기 순서는 유지) */
.modal__title--hidden {
  opacity: 0;
}
/* 타이틀 오른쪽 옵션 묶음 — 체크박스 + 닫기 */
.modal__opts {
  display: flex;
  flex-shrink: 0;
  gap: 16rem;
  align-items: center;
}
.modal__opts .checkbox__label {
  font-weight: var(--font-weight-regular);
}
/* 이 팝업은 시안이 ic/16/x 다 (공통 .modal 은 20) */
.modal--popup .modal__close {
  width: 16rem;
  height: 16rem;
  -webkit-mask-size: 16rem 16rem;
  mask-size: 16rem 16rem;
}
/* 본문 — 위 패딩 없이 구분선에 붙고, 스크롤은 슬라이드 안에서 처리한다 */
.modal--popup .modal__body {
  overflow: visible;
  padding: 0 24rem 24rem;
}

/* 2026-09-30 - 슬라이드 영역을 회색 바탕으로 깔아 둔다.
   꽉 찬 타입 → 내용 높이 타입으로 넘어갈 때 높이가 줄어드는 것은
   .swiper-wrapper 가 아니라 이 바깥 상자라, 여기에 칠해야
   줄어드는 공간이 흰색으로 뜨지 않는다 */
.popup__swiper {
  width: 100%;
  overflow: hidden;
  /* Swiper 가 슬라이드 폭을 정수로 반올림해(551 vs 551.125)
     오른쪽에 남는 얼마간에 배경이 1px 선으로 찍힌다.
     그만큼 덜 칠해 이미지형 오른쪽에 회색 선이 안 보이게 한다 */
  background-image: linear-gradient(
    var(--color-bg-primary-light-level-2),
    var(--color-bg-primary-light-level-2)
  );
  background-repeat: no-repeat;
  background-size: calc(100% - 1px) 100%;
}

/* ── 슬라이드 공통 ── */
.popup-slide {
  max-height: 480rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* 시안 스크롤바 — 너비 4, 어두운 회색 알약 */
.popup-slide::-webkit-scrollbar {
  width: 4rem;
}
.popup-slide::-webkit-scrollbar-thumb {
  background: var(--color-bg-primary-dark-level-4); /* #555 */
  border-radius: var(--radius-full);
}
.popup-slide::-webkit-scrollbar-track {
  background: transparent;
}

/* ── 타입 ① 이미지형 ── */
.popup-slide--img {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid var(--color-line-low);
}
/* 2026-09-30 - 이미지형은 버튼 자리만 흰색 띄로 둠다 */
.popup-slide__btm {
  display: flex;
  justify-content: center;
  padding: 28rem 0;
  background: var(--color-bg-default-white);
}
/* 시안의 자세히 보기 버튼은 h48 에 좀우 여백 32 다 (가이드 기본값은 24) */
.popup-slide .btn {
  padding: 0 32rem;
}
.popup-slide--img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 타입 ②③ 텍스트형 — 회색 박스 ── */
.popup-slide--box {
  display: flex;
  flex-direction: column;
  gap: 48rem;
  align-items: center;
  padding: 28rem 32rem;
  background: var(--color-bg-primary-light-level-2); /* #f2f2f2 */
}
/* 타입 ② — 이미지형과 높이를 맞춰야 할 때. 글은 위, 버튼은 아래 */
.popup-slide--fill {
  gap: 24rem;
  justify-content: space-between;
  min-height: 456rem;
}
.popup-slide__txt {
  display: flex;
  flex-direction: column;
  gap: 16rem;
  width: 100%;
}
.popup-slide__title {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b4); /* 18 */
  font-weight: var(--font-weight-bold);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-neutral-black);
}
.popup-slide__desc {
  font-family: var(--font-family-kor);
  font-size: var(--kor-b5); /* 16 */
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-neutral-black);
}

/* ── 하단 페이지네이션 ── */
.popup__footer {
  flex-shrink: 0;
  padding: 0 24rem 24rem;
}
.popup__pager {
  display: flex;
  gap: 16rem;
  align-items: center;
  justify-content: center;
}
.popup-pager__btn {
  width: 14rem;
  height: 14rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.popup-pager__btn::before {
  content: "";
  display: block;
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
  border-top: 2rem solid var(--color-text-default-highest);
  border-right: 2rem solid var(--color-text-default-highest);
}
.popup-pager__btn--prev::before {
  transform: rotate(-135deg);
}
.popup-pager__btn--next::before {
  transform: rotate(45deg);
}
.popup-pager__btn:hover::before,
.popup-pager__btn:focus-visible::before {
  opacity: 0.6;
}
.popup-pager__btn:disabled {
  cursor: default;
}
.popup-pager__btn:disabled::before {
  opacity: 0.24;
}
.popup__frac {
  font-family: var(--font-family-kor);
  font-size: var(--kor-btn-md); /* 16 */
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-default-low); /* #727272 */
}
.popup__frac b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-neutral-black);
}

@media (max-width: 1024px) {
  .popup-slide {
    max-height: 400rem;
  }
  .popup-slide__btm {
    padding: 20rem 0;
  }
  .popup-slide--box {
    gap: 32rem;
    padding: 24rem;
  }
  .popup-slide--fill {
    min-height: 320rem;
  }
}

/* ========================================================
   최소 상단 바 — 뒤로가기 · 메뉴 (시안 7208:21525)
   공통 헤더를 감추는 페이지가 쓴다 (header[data-gnb~="minimal"])
   2026-10-19 - project.css 에서 공통으로 옮김 (프로젝트 상세 + 헤리티지 타임라인)
   ======================================================== */
.poj-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 95; /* 헤더(100) 아래 — 메뉴가 내려오면 헤더가 덮는다 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32rem var(--side-padding);
}
.poj-top__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56rem;
  height: 56rem;
  /* 2026-10-07 - 시안 수정(5529:23934): 흰 배경에서 원이 안 보여 흰색 → 회색(#f2f2f2)으로 */
  background-color: rgba(242, 242, 242, 0.48);
  border: 0;
  border-radius: var(--radius-full);
  transition: background-color 0.2s var(--ease-out-cubic);
}
.poj-top__btn:hover,
.poj-top__btn:focus-visible {
  background-color: rgba(242, 242, 242, 0.72);
}
/* 2026-09-09 - KV 를 지나면 흰 본문 위라 반투명 원이 보이지 않는다.
   불투명 + 그림자로 바꿔 어디서든 읽히게 한다(판정은 project.js).
   2026-10-07 - 시안 색에 맞춰 흰색 → 회색(#f2f2f2) */
body.is-poj-past-kv .poj-top__btn {
  background-color: var(--color-bg-primary-light-level-2); /* #f2f2f2 */
  box-shadow: var(--shadow-200), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.poj-top__btn::after {
  content: "";
  width: 20rem;
  height: 20rem;
  background-color: var(--color-ic-black);
}
.poj-top__btn--back::after {
  -webkit-mask: url("../images/ico-arrow-tail-left-20.svg") center / contain no-repeat;
  mask: url("../images/ico-arrow-tail-left-20.svg") center / contain no-repeat;
}
.poj-top__btn--menu::after {
  -webkit-mask: url("../images/ico-hamburger-20.svg") center / contain no-repeat;
  mask: url("../images/ico-hamburger-20.svg") center / contain no-repeat;
}
.poj-top {
  transform: translateY(0);
  transition: transform 0.35s var(--ease-out-cubic), opacity 0.25s var(--ease-out-cubic);
}
/* 2026-09-09 - 스크롤 다운이면 헤더와 같이 위로 사라지고, 역스크롤이면 다시 내려온다
   (방향 판정은 common.js gnbEv 가 body.is-gnb-hidden 으로 알려준다) */
body.is-gnb-hidden .poj-top {
  transform: translateY(-100%);
}
/* 헤더가 내려와 있는 동안엔 최소 바를 감춘다 */
body.is-poj-nav-open .poj-top,
body.is-menu-open .poj-top,
body.is-search-open .poj-top {
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .poj-top {
    transition: none;
  }
}

/* ========================================================
   모바일 가로모드 안내 (.rotate-note) — 시안 10991:7247
   2026-10-22 - 모바일 기기를 눕히면 본문을 통째로 덮는다.
   띄우는 조건은 맨 아래 미디어쿼리 한 곳에서만 정한다
   ======================================================== */
.rotate-note {
  /* 기본은 숨김 — 가로로 누운 모바일에서만 켠다 */
  display: none;
  position: fixed;
  inset: 0;
  /* GNB(100) · 메인 네비(110) 보다 위 */
  z-index: 9000;
  background: var(--color-bg-default-white);
  /* 뒤 본문이 밀려 움직이지 않게 */
  overscroll-behavior: contain;
  touch-action: none;
}
.rotate-note__con {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  translate: -50% -50%;
  text-align: center;
}
/* 시안 180×140 · 라운드 12 — 그림 파일에 바탕까지 들어 있다 */
.rotate-note__fig {
  display: block;
  width: 180px;
  height: 140px;
}
.rotate-note__fig img {
  display: block;
  width: 100%;
  height: 100%;
}
.rotate-note__logo {
  display: block;
  width: 74px;
  height: 18px;
}
.rotate-note__logo img {
  display: block;
  width: 100%;
  height: 100%;
}
/* 시안 PR/Body/B4 16 · 행간 1.6 */
.rotate-note__txt {
  font-family: var(--font-family-kor);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--color-text-default-high, #444444);
  white-space: nowrap;
}
.rotate-note__txt b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-default-highest);
}

/* 띄우는 조건 — 모바일(짧은 쪽 600 이하)을 가로로 눕혔을 때.
   세로 600 이하로 재는 이유: 가로로 누우면 '세로 길이' 가 기기의 짧은 쪽이 된다.
   태블릿 가로(1024×768)·폴드 펼침(794×770)·데스크톱 창은 세로가 600 을 넘어 걸리지 않는다 */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1024px) {
  .rotate-note {
    display: block;
  }
}
