/* =========================================================
   COPYS Story — Design 4 ("N사형")
   style.css 위에 덧입히는 오버라이드 전용 파일입니다 (v2/v3 미사용).
   네이버 기업 사이트(navercorp.com)의 스타일 규칙을 참고했습니다.
     - 글꼴: Inter(영문) + 나눔휴먼/Pretendard(한글)
     - 글자색: 푸른빛 먹색 #1a1d24, 보조 회색 계열
     - 얇은 헤더(64px), 보통 굵기 메뉴
     - 첫 화면: 큰 사진 카드 + 오른쪽 바로가기 타일 3개 (index.php .n-hero)
     - 굵기 절제: 제목 600~700, 나머지 400~500, 자간 좁게
   포인트 컬러는 기존 #e62d54 를 그대로 사용합니다.
   <body class="design-4"> 일 때만 로드·적용됩니다.
   ========================================================= */

/* 나눔휴먼 (네이버 공식 배포본, hangeul.naver.com · SIL OFL 1.1) — /fonts/nanumhuman/
   500은 Regular, 600은 Bold 파일로 대체 표시됩니다. */
@font-face { font-family: "NanumHuman"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/nanumhuman/NanumHumanLight.woff") format("woff"); }
@font-face { font-family: "NanumHuman"; font-weight: 400 500; font-style: normal; font-display: swap; src: url("/fonts/nanumhuman/NanumHumanRegular.woff") format("woff"); }
@font-face { font-family: "NanumHuman"; font-weight: 600 700; font-style: normal; font-display: swap; src: url("/fonts/nanumhuman/NanumHumanBold.woff") format("woff"); }
@font-face { font-family: "NanumHuman"; font-weight: 800 900; font-style: normal; font-display: swap; src: url("/fonts/nanumhuman/NanumHumanEB.woff") format("woff"); }

.design-4 {
  --color-ink: #1a1d24;
  --color-body: #1a1d24;
  --color-ink-muted-80: #3d414a;
  --color-ink-muted-48: #868b94;
  --color-canvas-parchment: #f5f6f8;
  --color-surface-pearl: #f8f9fa;
  --color-surface-black: #1a1d24;
  --color-surface-tile-1: #23262e;
  --color-surface-tile-2: #262a32;
  --color-surface-tile-3: #20232a;
  --color-hairline: #e4e6ea;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-base: "Inter", "NanumHuman", "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  --header-height: 64px;

  font-family: var(--font-base);
  color: var(--color-ink);
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 헤더 ---------- */
.design-4 .global-nav {
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.design-4 .global-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.04);
}
.design-4 .global-nav__logo img { height: 34px; }

@media (min-width: 834px) {
  .design-4 .global-nav__links { gap: 32px; font-size: 15px; font-weight: 500; }
  .design-4 .global-nav__links a { color: var(--color-ink); font-weight: 500; }
  .design-4 .global-nav__links a:hover,
  .design-4 .global-nav__links a[aria-current="page"] { color: var(--color-primary); }
}
.design-4 .mobile-nav__links a { font-weight: 500; }

/* ---------- 타이포 ---------- */
.design-4 h1, .design-4 h2, .design-4 h3, .design-4 h4 { color: var(--color-ink); }

.design-4 .text-hero-display { font-weight: 700; letter-spacing: -1.5px; }
.design-4 .text-display-lg {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -1px;
}
@media (min-width: 834px) {
  .design-4 .text-display-lg { font-size: 40px; letter-spacing: -1.4px; }
}
.design-4 .text-tagline { font-weight: 600; letter-spacing: -0.6px; }
.design-4 .text-lead { font-size: 19px; line-height: 1.6; color: var(--color-ink-muted-80); }
.design-4 .text-body { font-size: 16px; line-height: 1.75; color: var(--color-ink-muted-80); }
.design-4 .text-body-strong { font-weight: 600; }

.design-4 .section-head .eyebrow,
.design-4 .page-hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--color-primary);
}

/* ---------- 섹션 · 여백 ---------- */
.design-4 .section { padding: 96px 0; }
@media (min-width: 834px) {
  .design-4 .section { padding: 128px 0; }
}
.design-4 .section--parchment { background: var(--color-canvas-parchment); }
.design-4 .section--dark { background: #1a1d24; }
.design-4 .section-head { margin-bottom: 48px; }
.design-4 .section-head-row .view-all { font-size: 15px; font-weight: 500; }

/* ---------- 버튼 · 칩 ---------- */
.design-4 .btn {
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 9999px;
  letter-spacing: -0.2px;
}
.design-4 .btn-secondary {
  background: #eef0f3;
  color: var(--color-ink);
}
.design-4 .filter-chip {
  font-size: 15px;
  font-weight: 500;
  border-color: var(--color-hairline);
}
.design-4 .filter-chip.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
.design-4 .sub-nav-frosted a { font-weight: 500; }

/* ---------- 카드 ---------- */
.design-4 .pillar-card,
.design-4 .equipment-card,
.design-4 .cert-card,
.design-4 .press-card,
.design-4 .info-card,
.design-4 .process-step {
  border-radius: var(--radius-lg);
  border-color: var(--color-hairline);
  box-shadow: none;
}
.design-4 .pillar-card h3,
.design-4 .news-col h3,
.design-4 .process-step h4,
.design-4 .info-tile h4,
.design-4 .esg-pillar h4,
.design-4 .storybid-banner h4,
.design-4 .info-card h3 { font-weight: 600; letter-spacing: -0.5px; }
.design-4 .pillar-card__num { color: var(--color-primary); font-weight: 600; }
.design-4 .pillar-card__link,
.design-4 .press-card__link { font-weight: 500; }

.design-4 .portfolio-card__thumb,
.design-4 .gallery-card__thumb { border-radius: var(--radius-md); }
.design-4 .portfolio-card__meta,
.design-4 .gallery-card__meta,
.design-4 .equipment-card__cat,
.design-4 .press-card__source { font-size: 13px; font-weight: 500; }
.design-4 .portfolio-card__title,
.design-4 .gallery-card__title,
.design-4 .equipment-card__name,
.design-4 .press-card__title,
.design-4 .cert-card__name { font-weight: 600; letter-spacing: -0.4px; }

/* ---------- 표 · 목록 · 폼 ---------- */
.design-4 .compare-table thead th,
.design-4 .board-list thead th,
.design-4 .overview-table th { font-weight: 600; }
.design-4 .compare-table tbody td { font-weight: 400; }
.design-4 .compare-table tbody td:last-child { font-weight: 600; }
.design-4 .news-list .tag { font-weight: 500; }
.design-4 .timeline__year { font-weight: 600; }
.design-4 .form-group label,
.design-4 .file-input-label { font-weight: 500; }
.design-4 .form-control { border-radius: 10px; }

/* ---------- 푸터 ---------- */
.design-4 .footer { background: #f5f6f8; color: var(--color-ink-muted-80); }
.design-4 .footer__col h4 { font-weight: 600; color: var(--color-ink); }

/* =========================================================
   첫 화면 (N사형) — index.php .n-hero
   ========================================================= */
.n-hero { padding: 20px 0 72px; }

.n-hero__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 2px 16px;
  font-size: 14px;
  color: var(--color-ink-muted-80);
}
.n-hero__kicker { font-weight: 500; letter-spacing: 0.4px; }
.n-hero__bar-link {
  font-weight: 500;
  color: var(--color-ink);
  padding: 6px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: 9999px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.n-hero__bar-link:hover { border-color: var(--color-primary); color: var(--color-primary); }

.n-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .n-hero__grid { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 20px; }
}

/* 왼쪽 큰 사진 카드 */
.n-hero__main {
  position: relative;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background: #23262e center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.n-hero__main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0) 35%, rgba(10, 12, 16, 0.72) 100%);
}
@media (min-width: 1024px) {
  .n-hero__main { min-height: 560px; }
}
.n-hero__main-text {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
  color: #fff;
}
@media (min-width: 834px) {
  .n-hero__main-text { padding: 48px 48px; }
}
.n-hero__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
}
.n-hero__title {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -1.2px;
  margin: 0;
}
@media (min-width: 834px) {
  .n-hero__title { font-size: 44px; letter-spacing: -1.6px; }
}
.n-hero__lead {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 834px) {
  .n-hero__lead { font-size: 18px; }
}
.n-hero__more {
  display: inline-flex;
  gap: 6px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  padding: 11px 20px;
  border-radius: 9999px;
  background: var(--color-primary);
  transition: background 0.15s ease;
}
.n-hero__more:hover { background: var(--color-primary-focus); }

/* 오른쪽 바로가기 타일 */
.n-hero__side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) and (max-width: 1023px) {
  .n-hero__side { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .n-hero__side { grid-template-rows: repeat(3, 1fr); gap: 20px; }
}

.n-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.n-tile:hover { transform: translateY(-2px); }
.n-tile__text { position: relative; z-index: 1; display: block; max-width: 70%; }
.n-tile__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; opacity: 0.8; }
.n-tile__title { display: block; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.6px; }
.n-tile__img {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: center / cover no-repeat;
}
.n-tile__arrow { position: relative; z-index: 1; font-size: 18px; }

.n-tile--dark { background: #1a1d24; color: #fff; }
.n-tile--primary { background: var(--color-primary); color: #fff; }
.n-tile--light { background: #eef0f3; color: var(--color-ink); }

/* =========================================================
   하위 페이지 (N사형) — 회사소개 · 사업영역 · 포트폴리오 · 미디어 · 고객지원 · 개인정보
   레이아웃(PHP)은 그대로 두고 CSS로만 네이버 기업 사이트 하위 페이지 규칙을 따릅니다.
     - 페이지 제목: 왼쪽 정렬, 큰 굵은 제목 + 연한 설명
     - 서브 메뉴: 알약 버튼 대신 밑줄 탭
     - 표 · 게시판: 위쪽 진한 선 + 얇은 회색 구분선, 배경색 없음
     - 카드: 테두리 대신 연회색 면, 둥근 모서리
   ========================================================= */

/* ---------- 페이지 제목 ---------- */
.design-4 .page-hero {
  text-align: left;
  padding: 72px 0 48px;
  background: var(--color-canvas);
}
@media (min-width: 834px) {
  .design-4 .page-hero { padding: 104px 0 64px; }
}
.design-4 .page-hero .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.design-4 .page-hero h1,
.design-4 .page-hero h1.text-display-lg {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1.25;
}
@media (min-width: 834px) {
  .design-4 .page-hero h1,
  .design-4 .page-hero h1.text-display-lg { font-size: 56px; letter-spacing: -2px; }
}
.design-4 .page-hero p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--color-ink-muted-48);
}
@media (min-width: 834px) {
  .design-4 .page-hero p { font-size: 19px; }
}

/* ---------- 서브 메뉴: 밑줄 탭 ---------- */
.design-4 .sub-nav-frosted {
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
}
.design-4 .sub-nav-frosted__inner { height: 56px; gap: 28px; }
.design-4 .sub-nav-frosted a {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  border-radius: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink-muted-48);
  background: none;
}
.design-4 .sub-nav-frosted a:hover,
.design-4 .sub-nav-frosted a.is-active {
  background: none;
  color: var(--color-ink);
}
.design-4 .sub-nav-frosted a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-ink);
}

/* ---------- 섹션 제목 (하위 페이지는 왼쪽 정렬) ---------- */
.design-4 .page-hero ~ .section .section-head,
.design-4 .sub-nav-frosted ~ .section .section-head {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.design-4 .section-head h2 { margin-top: 10px; }
.design-4 .section-head p { margin-top: 12px; font-size: 17px; color: var(--color-ink-muted-48); }

/* ---------- 인사말 ---------- */
.design-4 .greeting__photo-img,
.design-4 .greeting__photo .img-placeholder {
  border: 0;
  border-radius: 24px;
}
.design-4 .greeting__body .text-lead {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.8px;
  color: var(--color-ink);
}
.design-4 .greeting__body p { font-size: 17px; line-height: 1.85; color: var(--color-ink-muted-80); }
.design-4 .greeting__signature { font-weight: 600; font-size: 17px; }

/* ---------- 표 · 게시판 ---------- */
.design-4 .overview-table,
.design-4 .board-list,
.design-4 .compare-table {
  border-top: 2px solid var(--color-ink);
  border-radius: 0;
  box-shadow: none;
  background: none;
  overflow: visible;
}
.design-4 .overview-table th,
.design-4 .overview-table td,
.design-4 .board-list th,
.design-4 .board-list td,
.design-4 .compare-table th,
.design-4 .compare-table td {
  border-bottom: 1px solid var(--color-hairline);
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 15px;
}
.design-4 .overview-table th {
  background: none;
  color: var(--color-ink);
  font-weight: 600;
  width: 180px;
}
.design-4 .overview-table td { color: var(--color-ink-muted-80); }
.design-4 .board-list thead th,
.design-4 .compare-table thead th {
  background: none;
  color: var(--color-ink);
  font-weight: 600;
}
.design-4 .compare-table thead th:last-child {
  background: none;
  color: var(--color-primary);
  border-radius: 0;
}
.design-4 .compare-table tbody td:first-child { color: var(--color-ink-muted-48); font-weight: 500; }
.design-4 .compare-table tbody td:last-child { color: var(--color-ink); font-weight: 600; }
.design-4 .board-list tbody tr:hover { background: var(--color-surface-pearl); }
.design-4 .board-list a { color: var(--color-ink); font-weight: 500; }
.design-4 .board-list a:hover { color: var(--color-primary); text-decoration: none; }
.design-4 .board-list .col-num,
.design-4 .board-list .col-date,
.design-4 .board-list .col-views { color: var(--color-ink-muted-48); }

/* ---------- 연혁 ---------- */
.design-4 .timeline::before { background: var(--color-hairline); width: 1px; }
.design-4 .timeline__item::before { background: var(--color-primary); box-shadow: 0 0 0 4px #fff; }
.design-4 .timeline__year {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--color-ink);
}
.design-4 .timeline__desc { font-size: 16px; line-height: 1.75; color: var(--color-ink-muted-80); }

/* ---------- 조직도 ---------- */
.design-4 .org-chart__node {
  border-radius: 12px;
  border-color: var(--color-hairline);
  background: #fff;
  font-weight: 500;
}
.design-4 .org-chart__node--ceo { background: var(--color-ink); border-color: var(--color-ink); color: #fff; font-weight: 600; }

/* ---------- 카드: 테두리 대신 연회색 면 ---------- */
.design-4 .equipment-card,
.design-4 .cert-card,
.design-4 .press-card,
.design-4 .info-card,
.design-4 .info-tile,
.design-4 .process-step,
.design-4 .gallery-card {
  border: 0;
  border-radius: 20px;
  box-shadow: none;
  background: var(--color-canvas-parchment);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.design-4 .section--parchment .equipment-card,
.design-4 .section--parchment .cert-card,
.design-4 .section--parchment .press-card,
.design-4 .section--parchment .info-card,
.design-4 .section--parchment .info-tile,
.design-4 .section--parchment .process-step,
.design-4 .section--parchment .gallery-card { background: #fff; }
.design-4 .section--dark .process-step,
.design-4 .section--dark .info-tile { background: #262a32; }
.design-4 .equipment-card:hover,
.design-4 .press-card:hover,
.design-4 .gallery-card:hover { transform: translateY(-3px); }

.design-4 .process-step__num { background: var(--color-primary); font-weight: 600; }
.design-4 .process-arrow { color: var(--color-ink-muted-48); font-weight: 400; }

/* ---------- 필터 · 페이지 번호 ---------- */
.design-4 .filter-group__label { font-size: 14px; font-weight: 500; color: var(--color-ink-muted-48); }
.design-4 .filter-chip { background: #fff; }
.design-4 .pagination a,
.design-4 .pagination span { border-radius: 9999px; font-weight: 500; }

/* ---------- 스토리비드 배너 ---------- */
.design-4 .storybid-banner {
  border: 0;
  border-radius: 24px;
  background: var(--color-ink);
  color: #fff;
}
.design-4 .storybid-banner h4 { color: #fff; }
.design-4 .storybid-banner p { color: rgba(255, 255, 255, 0.72); }

/* ---------- 견적 문의 폼 ---------- */
.design-4 .quote-form {
  border: 0;
  border-radius: 24px;
  background: var(--color-canvas-parchment);
  box-shadow: none;
}
.design-4 .form-control {
  border: 1px solid var(--color-hairline);
  background: #fff;
  font-size: 15px;
}
.design-4 .form-control:focus {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 3px rgba(26, 29, 36, 0.08);
}
.design-4 .form-banner { border-radius: 14px; font-weight: 500; }

/* ---------- 개인정보처리방침 ---------- */
.design-4 .privacy-doc h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.6px; }
.design-4 .privacy-doc li,
.design-4 .privacy-doc p,
.design-4 .privacy-doc td { font-size: 15px; line-height: 1.8; color: var(--color-ink-muted-80); }

/* =========================================================
   모바일 (N사형) — 833px 이하
   네이버 기업 사이트 모바일 규칙: 56px 헤더 · 흰색 전체 메뉴 · 좌우 20px 여백 ·
   첫 화면 사진 카드 세로형 + 바로가기 타일 가로 스크롤 · 표는 카드처럼 쌓기
   ========================================================= */
@media (max-width: 833px) {
  .design-4 { --header-height: 56px; }
  .design-4 .container { padding: 0 20px; }
  .design-4 .global-nav__logo img { height: 28px; }
  .design-4 .global-nav__hamburger { font-size: 22px; padding: 8px; margin-right: -8px; }

  /* 전체 메뉴: 흰 바탕 · 왼쪽 정렬 · 구분선 목록 */
  .design-4 .mobile-nav {
    background: #fff;
    color: var(--color-ink);
    padding: 0 20px 32px;
  }
  .design-4 .mobile-nav__close {
    height: 56px;
    color: var(--color-ink);
    font-size: 22px;
    padding: 0 0 0 16px;
  }
  .design-4 .mobile-nav a:focus-visible,
  .design-4 .mobile-nav button:focus-visible { outline-color: var(--color-ink); }
  .design-4 .mobile-nav__links { margin-top: 8px; gap: 0; }
  .design-4 .mobile-nav__links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-hairline);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.6px;
    color: var(--color-ink);
  }
  .design-4 .mobile-nav__links a::after { content: "›"; font-weight: 400; color: var(--color-ink-muted-48); }
  .design-4 .mobile-nav__links a[aria-current="page"] { color: var(--color-primary); }

  /* 첫 화면 */
  .n-hero { padding: 8px 0 48px; }
  .n-hero__bar { padding: 4px 0 12px; font-size: 12px; }
  .n-hero__bar-link { padding: 5px 12px; font-size: 13px; }
  .n-hero__grid { gap: 12px; }
  .n-hero__main { min-height: 0; aspect-ratio: 4 / 5; border-radius: 20px; }
  .n-hero__main-text { padding: 24px 22px; }
  .n-hero__title { font-size: 28px; letter-spacing: -1px; }
  .n-hero__lead { font-size: 15px; margin-top: 10px; }
  .n-hero__more { margin-top: 18px; font-size: 14px; padding: 10px 18px; }

  /* 바로가기 타일: 가로 스크롤 카드 */
  .n-hero__side {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 0 20px 4px;
    scrollbar-width: none;
  }
  .n-hero__side::-webkit-scrollbar { display: none; }
  .n-tile {
    flex: 0 0 72%;
    min-height: 168px;
    scroll-snap-align: start;
    border-radius: 18px;
    padding: 20px;
  }
  .n-tile__title { font-size: 17px; }
  .n-tile__img { width: 34%; right: 14px; bottom: 14px; border-radius: 12px; }

  /* 섹션 · 제목 */
  .design-4 .section { padding: 64px 0; }
  .design-4 .section-head { text-align: left; margin-bottom: 28px; }
  .design-4 .text-display-lg { font-size: 26px; letter-spacing: -0.9px; }
  .design-4 .section-head p { font-size: 15px; }
  .design-4 .section-head-row { align-items: flex-end; }
  .design-4 .section-head-row .view-all { font-size: 14px; }

  /* 하위 페이지 제목 · 탭 */
  .design-4 .page-hero { padding: 48px 0 32px; }
  .design-4 .page-hero h1,
  .design-4 .page-hero h1.text-display-lg { font-size: 32px; letter-spacing: -1.2px; }
  .design-4 .page-hero p { font-size: 15px; margin-top: 10px; }
  .design-4 .sub-nav-frosted__inner { height: 48px; gap: 22px; }
  .design-4 .sub-nav-frosted a { font-size: 14px; }

  /* 버튼 · 필터: 가로 스크롤 한 줄 */
  .design-4 .btn { font-size: 14px; padding: 12px 20px; }
  .design-4 .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 4px;
    scrollbar-width: none;
  }
  .design-4 .filter-tabs::-webkit-scrollbar { display: none; }
  .design-4 .filter-chip { flex-shrink: 0; font-size: 14px; padding: 8px 16px; }

  /* 카드 */
  .design-4 .portfolio-card__title,
  .design-4 .gallery-card__title { font-size: 15px; }
  .design-4 .equipment-card__name,
  .design-4 .press-card__title { font-size: 17px; }

  /* 인사말 · 연혁 */
  .design-4 .greeting__body .text-lead { font-size: 19px; }
  .design-4 .greeting__body p { font-size: 15px; line-height: 1.8; }
  .design-4 .timeline__year { font-size: 20px; }
  .design-4 .timeline__desc { font-size: 15px; }

  /* 표: 회사 개요는 위아래로 쌓기, 넓은 표는 가로 스크롤 */
  .design-4 .overview-table th,
  .design-4 .overview-table td { display: block; width: auto; }
  .design-4 .overview-table th { padding: 16px 0 4px; border-bottom: 0; }
  .design-4 .overview-table td { padding: 0 0 16px; }
  .design-4 .compare-table,
  .design-4 .board-list { display: block; overflow-x: auto; white-space: nowrap; }
  .design-4 .overview-table th,
  .design-4 .overview-table td,
  .design-4 .board-list th,
  .design-4 .board-list td,
  .design-4 .compare-table th,
  .design-4 .compare-table td { font-size: 14px; }

  /* 폼 · 배너 */
  .design-4 .quote-form,
  .design-4 .storybid-banner { border-radius: 20px; }
  .design-4 .form-control { font-size: 16px; } /* iOS 확대 방지 */

  /* 푸터 */
  .design-4 .footer { font-size: 13px; }
}

/* ---------- 가독성 보정: 사진 위 문구 · 타일 글자/사진 겹침 ---------- */
.n-hero__main::after {
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.15) 60%, rgba(10, 12, 16, 0) 100%),
    linear-gradient(180deg, rgba(10, 12, 16, 0) 25%, rgba(10, 12, 16, 0.8) 100%);
}
.n-hero__title,
.n-hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.n-tile__text { max-width: 58%; }
.n-tile__img { width: 34%; top: 50%; bottom: auto; transform: translateY(-50%); }
@media (max-width: 833px) {
  .n-tile__text { max-width: 60%; }
  .n-tile__img { width: 32%; }
}

/* .design-4 h1 의 먹색 지정보다 우선: 사진 위 제목은 흰색 */
.design-4 .n-hero__title { color: #fff; }

/* ---------- 2026-10-14 보정 ---------- */
/* 진한 먹색 배경 → 한 단계 밝은 차콜 (글자색 --color-ink 은 그대로) */
.design-4 { --color-dark-surface: #2c313b; --color-surface-black: #2c313b; }
.design-4 .section--dark,
.design-4 .n-tile--dark,
.design-4 .storybid-banner { background: var(--color-dark-surface); }
.design-4 .section--dark .process-step,
.design-4 .section--dark .info-tile,
.design-4 .section--dark .portfolio-card { background: #363c47; }

/* 포트폴리오: 제목 ↔ 분류 탭 여백 축소 */
.design-4 .page-hero + .section { padding-top: 8px; }
@media (min-width: 834px) {
  .design-4 .page-hero { padding-bottom: 40px; }
}

/* 분류 탭: 스크롤해도 헤더 바로 아래에 고정 */
.design-4 .filter-bar,
.design-4 #equipment .filter-tabs {
  position: sticky;
  top: var(--header-height);
  z-index: 80;
  margin-left: -24px;
  margin-right: -24px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.design-4 .filter-bar .filter-group:last-child { margin-bottom: 0; }
/* 회사소개는 하위 탭(56px)이 이미 헤더 아래에 붙어 있으므로 그 아래에 고정 */
.design-4 #equipment .filter-tabs { top: calc(var(--header-height) + 56px); background: rgba(245, 246, 248, 0.92); }
@media (max-width: 833px) {
  .design-4 .filter-bar,
  .design-4 #equipment .filter-tabs { margin-left: -20px; margin-right: -20px; padding: 10px 20px; }
  .design-4 #equipment .filter-tabs { top: calc(var(--header-height) + 48px); }
  .design-4 .filter-bar .filter-group { flex-wrap: nowrap; justify-content: flex-start; margin-bottom: 8px; }
  .design-4 .filter-bar .filter-group .filter-tabs { margin: 0; padding: 0; }
}

/* 어두운 섹션: 제목·본문을 흰색 계열로 (.design-4 h1~h4 먹색 지정보다 우선) */
.design-4 .section--dark h1,
.design-4 .section--dark h2,
.design-4 .section--dark h3,
.design-4 .section--dark h4,
.design-4 .section--dark .text-display-lg,
.design-4 .section--dark .portfolio-card__title { color: #fff; }
.design-4 .section--dark,
.design-4 .section--dark .text-body,
.design-4 .section--dark .section-head p,
.design-4 .section--dark p { color: rgba(255, 255, 255, 0.72); }
.design-4 .section--dark .section-head .eyebrow { color: var(--color-primary-on-dark); }
.design-4 .section--dark .process-step p { color: rgba(255, 255, 255, 0.6); }

/* 인증 · 블로그 분류 탭도 장비와 동일하게: 가운데 정렬 + 하위 탭 아래 고정 */
.design-4 #awards .filter-tabs,
.design-4 #blog .filter-tabs {
  position: sticky;
  top: calc(var(--header-height) + 56px);
  z-index: 80;
  justify-content: center !important;
  margin-left: -24px;
  margin-right: -24px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
@media (max-width: 833px) {
  .design-4 #awards .filter-tabs,
  .design-4 #blog .filter-tabs {
    top: calc(var(--header-height) + 48px);
    justify-content: flex-start !important;
    margin-left: -20px;
    margin-right: -20px;
    padding: 10px 20px;
  }
}

/* 인증: 특정 분류를 고르면 묶음 제목(예: "인증 10건")은 탭과 중복되므로 숨기고 카드만 표시 */
.design-4 #awards.is-filtered .cert-group__title { display: none; }
.design-4 #awards .filter-tabs { margin-bottom: 32px; }
.design-4 #awards .cert-group__title { text-align: left; }

/* =========================================================
   여백 일관성 정리 (2026-10-14)
   규칙: 섹션 상하 112px(PC) · 72px(모바일) / 섹션 제목 아래 40px(PC) · 28px(모바일)
         카드 간격 24px(PC) · 16px(모바일) / 좌우 여백 24px(PC) · 20px(모바일)
         섹션 제목은 메인·하위 페이지 모두 왼쪽 정렬
   ========================================================= */
.design-4 .section { padding: 112px 0; }
.design-4 .n-hero { padding-bottom: 24px; }
.design-4 .n-hero + .section { padding-top: 88px; }   /* 첫 화면 카드 아래 → 첫 섹션 간격 112px */
.design-4 .page-hero + .section { padding-top: 16px; }

.design-4 .section-head,
.design-4 .section-head-row { margin-bottom: 40px; }
.design-4 .section-head {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}
.design-4 .section-head-row { align-items: flex-end; }

.design-4 .n-hero__grid,
.design-4 .n-hero__side,
.design-4 .pillars,
.design-4 .portfolio-grid,
.design-4 .news-grid,
.design-4 .equipment-grid,
.design-4 .cert-grid,
.design-4 .gallery-grid,
.design-4 .card-grid-3,
.design-4 .card-grid-2x2 { gap: 24px; }
.design-4 .cert-group + .cert-group { margin-top: 56px; }
.design-4 .cert-group__title { margin-bottom: 20px; }

@media (max-width: 833px) {
  .design-4 .section { padding: 72px 0; }
  .design-4 .n-hero + .section { padding-top: 56px; }
  .design-4 .page-hero + .section { padding-top: 8px; }
  .design-4 .section-head,
  .design-4 .section-head-row { margin-bottom: 28px; }
  .design-4 .n-hero__grid,
  .design-4 .pillars,
  .design-4 .portfolio-grid,
  .design-4 .news-grid,
  .design-4 .equipment-grid,
  .design-4 .cert-grid,
  .design-4 .gallery-grid,
  .design-4 .card-grid-3,
  .design-4 .card-grid-2x2 { gap: 16px; }
  .design-4 .n-hero__side { gap: 12px; }
  .design-4 .cert-group + .cert-group { margin-top: 40px; }
}

/* ---------- 여백 일관성 보정 2 ---------- */
/* 미디어·고객지원 섹션 제목에 박힌 인라인 margin-bottom(24px)을 공통 규칙(40/28px)으로 */
.design-4 .section-head[style] { margin-bottom: 40px !important; }

@media (max-width: 833px) {
  .design-4 .section-head[style] { margin-bottom: 28px !important; }

  /* 카드 안쪽 여백: 모든 카드 글자가 화면 왼쪽에서 40px(바깥 20 + 안쪽 20)에 맞도록 */
  .design-4 .pillar-card,
  .design-4 .equipment-card__body,
  .design-4 .esg-pillar,
  .design-4 .process-step,
  .design-4 .info-tile,
  .design-4 .info-card,
  .design-4 .press-card,
  .design-4 .quote-form { padding: 20px; }
  .design-4 .gallery-card__body,
  .design-4 .cert-card__body { padding: 14px 20px 20px; }

  /* 그리드 간격 통일: 카드류 16px, 인사말(사진↔글) 24px */
  .design-4 .esg-pillars,
  .design-4 .press-list,
  .design-4 .process-flow { gap: 16px; }
  .design-4 .greeting { gap: 24px; }
}

@media (max-width: 833px) {
  .design-4 .storybid-banner { padding: 24px 20px; }
}

/* 메인 포트폴리오(어두운 섹션) 카드: 제목 영역 배경색 제거 */
.design-4 .section--dark .portfolio-card { background: transparent; }

/* 메인 포트폴리오 썸네일: 흰 테두리·안쪽 여백 제거 (PC·모바일 공통) */
.design-4 .section--dark .portfolio-card__thumb {
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
}
.design-4 .section--dark .portfolio-card__meta { margin-top: 14px; }

/* 섹션 라벨(eyebrow): section-head-row 안의 라벨도 동일하게 13px·빨강 (PC·모바일 공통) */
.design-4 .eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--color-primary);
}
.design-4 .section--dark .eyebrow { color: var(--color-primary-on-dark); }

/* ---------- 모바일: 가로로 밀어 보는 영역의 끝 흐림 ----------
   더 볼 내용이 있는 쪽 끝 40px을 서서히 흐리게 (main.js 가 has-more-left/right 를 붙임).
   흐림 없는 상태 = 화면에 다 들어감 */
@media (max-width: 833px) {
  .design-4 .has-more-right {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .design-4 .has-more-left {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px);
            mask-image: linear-gradient(90deg, transparent, #000 40px);
  }
  .design-4 .has-more-left.has-more-right {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }
}

/* 모바일: 바로가기 타일 줄을 첫 화면 사진과 같은 좌우 여백(20px) 안에 맞춤 */
@media (max-width: 833px) {
  .n-hero__side { margin: 0; padding: 0 0 4px; scroll-padding-left: 0; }
  .n-tile { flex-basis: 78%; }
}

@media (max-width: 833px) {
  .n-hero__bar-link { white-space: nowrap; flex-shrink: 0; }
  .n-hero__kicker { font-size: 11px; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* 모바일 메인 언론보도: 매체명 한 줄, 제목은 그 아래 줄 */
@media (max-width: 833px) {
  .design-4 .news-list li:has(.tag) { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .design-4 .news-list li:has(.tag) .tag { font-size: 12px; white-space: normal; }
}

/* ---------- 조직도: 모바일은 세로형 트리로 직접 그림 (PC는 이미지 그대로) ---------- */
.org-tree { display: none; }
@media (max-width: 833px) {
  .design-4 .org-chart-image { display: none; }
  .design-4 .org-tree { display: block; padding-top: 8px; }
  .org-tree__ceo {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
  }
  .org-tree__list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 12px 0 0 28px;
  }
  /* 대표이사에서 내려오는 세로선 */
  .org-tree__list::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 34px;
    width: 1px;
    background: var(--color-hairline);
  }
  .org-tree__list li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--color-hairline);
  }
  /* 세로선에서 각 부서로 가는 가로선 */
  .org-tree__list li::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 50%;
    width: 16px;
    height: 1px;
    background: var(--color-hairline);
  }
  .org-tree__list strong { font-size: 16px; font-weight: 600; color: var(--color-ink); }
  .org-tree__list span { font-size: 14px; color: var(--color-ink-muted-48); }
}

/* ---------- 모바일 '더보기' 버튼 (main.js) ---------- */
.m-more { display: none; }
@media (max-width: 833px) {
  .design-4 .m-more-hidden { display: none !important; }
  .design-4 .m-more {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--color-hairline);
    border-radius: 12px;
    background: #fff;
    color: var(--color-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
  }
  .design-4 .m-more[hidden] { display: none; }
  .design-4 .m-more__count { color: var(--color-primary); font-weight: 600; }
  .design-4 .section--dark .m-more {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
  }
  .design-4 .section--dark .m-more__count { color: var(--color-primary-on-dark); }
  /* 글 덩어리 접힘: 아래쪽을 흐리게 */
  .design-4 .m-clamp {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
            mask-image: linear-gradient(180deg, #000 70%, transparent);
  }
  /* 세로로 쌓이는 단계 사이 여백 보정 */
  .design-4 .process-flow + .m-more { margin-top: 12px; }
}

/* 블로그: 쪽 번호(nav)는 고정하지 않음 · 목록 교체 중 살짝 흐리게 */
.design-4 #blog nav.filter-tabs { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; margin-left: 0; margin-right: 0; padding: 0; }
#blog.is-loading .gallery-grid { opacity: 0.4; transition: opacity 0.15s ease; }

/* 조직도(.org): 공통 스타일은 style.css. 디자인 4 톤만 보정 */
.design-4 .org { border-radius: 24px; }
.design-4 .org__ceo { border-radius: 9999px; }
.design-4 .org__dept { border: 0; background: var(--color-canvas-parchment); }

/* ---------- 헤더 크기: 디자인 3 수준으로 (로고·상위 메뉴 확대) ---------- */
.design-4 { --header-height: 64px; }
.design-4 .global-nav__logo img { height: 40px; }
.design-4 .global-nav__hamburger { font-size: 26px; }
@media (min-width: 834px) {
  .design-4 { --header-height: 88px; }
  .design-4 .global-nav__logo img { height: 46px; }
  .design-4 .global-nav__links { gap: 40px; font-size: 18px; }
  .design-4 .global-nav__links a { font-size: 18px; padding: 8px 0; }
}
@media (max-width: 833px) {
  .design-4 { --header-height: 64px; }
  .design-4 .global-nav__logo img { height: 40px; }
}
/* 하위 탭 실제 높이(56px + 위아래 선 2px) 아래에 분류 탭이 붙도록 */
.design-4 #equipment .filter-tabs,
.design-4 #awards .filter-tabs,
.design-4 #blog .filter-tabs:not(nav) { top: calc(var(--header-height) + 58px); }
@media (max-width: 833px) {
  .design-4 #equipment .filter-tabs,
  .design-4 #awards .filter-tabs,
  .design-4 #blog .filter-tabs:not(nav) { top: calc(var(--header-height) + 50px); }
}

/* 고정 분류 탭 배경: 섹션 배경(흰색/회색)에 맞춤 — 회사소개 섹션 배경이 자동으로 번갈아 바뀌므로 */
.design-4 section#equipment:not(.section--parchment) .filter-tabs,
.design-4 section#awards:not(.section--parchment) .filter-tabs { background: rgba(255, 255, 255, 0.92); }
.design-4 section#equipment.section--parchment .filter-tabs,
.design-4 section#awards.section--parchment .filter-tabs { background: rgba(245, 246, 248, 0.92); }

/* 연혁이 회색 배경일 때 점 테두리도 배경색으로 */
.design-4 .section--parchment .timeline__item::before { box-shadow: 0 0 0 4px var(--color-canvas-parchment); }

/* =========================================================
   디자인 재검토 반영 (2026-10-19)
   ========================================================= */

/* ---------- 헤더 상시 견적 버튼 (PC) · 모바일 메뉴 맨 위 견적 버튼 ---------- */
.design-4 .global-nav__actions { display: flex; align-items: center; gap: 12px; }
.design-4 .global-nav__cta {
  display: none;
  padding: 10px 20px;
  border-radius: 9999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.design-4 .global-nav__cta:hover { background: var(--color-primary-focus); }
@media (min-width: 834px) {
  .design-4 .global-nav__cta { display: inline-flex; }
}
.design-4 .mobile-nav__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

/* ---------- 메인 포트폴리오 카드: 링크 + 마우스 오버/키보드 포커스 반응 ---------- */
.design-4 .portfolio-card { display: block; color: inherit; text-decoration: none; }
.design-4 .portfolio-card__thumb { transition: transform 0.35s ease; }
.design-4 .portfolio-card:hover .portfolio-card__thumb,
.design-4 .portfolio-card:focus-visible .portfolio-card__thumb { transform: scale(1.03); }
.design-4 .portfolio-card:hover .portfolio-card__title,
.design-4 .portfolio-card:focus-visible .portfolio-card__title { text-decoration: underline; text-underline-offset: 4px; }
.design-4 .portfolio-card:focus-visible { outline: 2px solid var(--color-primary-on-dark); outline-offset: 6px; border-radius: var(--radius-md); }
.design-4 .section--dark .portfolio-card { overflow: visible; }
.design-4 .section--dark .portfolio-card__thumb { overflow: hidden; }

/* ---------- 신뢰 수치 줄 (index.php .trust) ---------- */
.trust__list {
  display: grid;
  grid-template-columns: repeat(var(--trust-cols, 5), minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trust__link:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26, 29, 36, 0.06); }
.trust__label { font-size: 15px; font-weight: 500; color: var(--color-ink-muted-48); }
.trust__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.6px;
  color: var(--color-ink);
}
.trust__value small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--color-ink-muted-80); }
.trust__more { position: absolute; right: 22px; top: 26px; color: var(--color-primary); font-size: 18px; }
@media (max-width: 1100px) and (min-width: 834px) {
  .trust__list { gap: 16px; }
  .trust__link { padding: 24px 18px 20px; }
  .trust__value { font-size: 40px; }
}
@media (max-width: 833px) {
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .trust__link { padding: 20px; gap: 8px; border-radius: 16px; }
  .trust__value { font-size: 36px; }
  .trust__value small { font-size: 15px; }
  .trust__more { right: 16px; top: 18px; font-size: 16px; }
  /* 5개일 때 마지막 하나는 한 줄 전체 */
  .trust__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* =========================================================
   ESG (디자인 5 · /esg/ 목록 · /esg/detail/ 상세)
   카드: 배지 → 제목 → 1:1 썸네일 → 요약(3줄)
   ========================================================= */
.esg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.esg-badge--e { background: #2e9e6a; }
.esg-badge--s { background: #3a7bd5; }
.esg-badge--g { background: #6c5bd4; }

.esg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 1100px) { .esg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 833px)  { .esg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; } }

.esg-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: var(--color-canvas-parchment);
  color: var(--color-ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.esg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26, 29, 36, 0.06); }
.esg-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.esg-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.5px;
  min-height: 2.8em;           /* 제목 2줄 높이를 맞춰 썸네일 위치 정렬 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.esg-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #e9ebef;
}
.esg-card__thumb--empty { border: 1px dashed #cfd3d9; background: #eef0f3; }
.esg-card__summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink-muted-80);
  display: -webkit-box;
  -webkit-line-clamp: 3;       /* 내용 3줄 이내 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 833px) {
  .esg-card { padding: 14px; gap: 10px; border-radius: 16px; }
  .esg-badge { width: 26px; height: 26px; font-size: 13px; }
  .esg-card__title { font-size: 15px; }
  .esg-card__summary { font-size: 13px; }
  .esg-card__thumb { border-radius: 10px; }
}

/* 상세 */
.esg-detail__pillar { margin-left: 10px; font-size: 14px; font-weight: 500; color: var(--color-ink-muted-48); vertical-align: middle; }
.design-4 .page-hero h1.esg-detail__title { margin-top: 16px; font-size: 32px; letter-spacing: -1.2px; }
@media (min-width: 834px) {
  .design-4 .page-hero h1.esg-detail__title { font-size: 40px; }
}
.esg-detail__img {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 20px;
}
.esg-detail__body { border-top: 2px solid var(--color-ink); padding-top: 32px; }
.esg-detail__body p { margin: 0 0 20px; font-size: 17px; line-height: 1.85; color: var(--color-ink-muted-80); }
.esg-detail__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
}
@media (max-width: 833px) {
  .esg-detail__body p { font-size: 15px; }
  .esg-detail__nav .btn { padding: 10px 14px; font-size: 13px; }
}

/* 인사말 대표이사 사진: 1:1 정사각형, 높이는 기존의 약 절반 (디자인 4·5) */
@media (min-width: 834px) {
  .design-4 .greeting { grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: center; }
}
.design-4 .greeting__photo-img,
.design-4 .greeting__photo .img-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 833px) {
  .design-4 .greeting__photo-img,
  .design-4 .greeting__photo .img-placeholder { width: 70%; margin: 0 auto; display: block; }
}
/* 모바일: 대표이사 사진을 화면 좌우 여백(20px)까지 꽉 차게 */
@media (max-width: 833px) {
  .design-4 .greeting__photo-img,
  .design-4 .greeting__photo .img-placeholder { width: 100%; max-width: none; margin: 0; }
}
/* 태블릿(600~833px): 너무 커지지 않게 최대 480px, 가운데 */
@media (min-width: 600px) and (max-width: 833px) {
  .design-4 .greeting__photo-img,
  .design-4 .greeting__photo .img-placeholder { max-width: 480px; margin: 0 auto; }
}

/* =========================================================
   디자인 5 연락 버튼 (2026-10-22): PC 오른쪽 아래 세로 버튼 / 모바일 하단 고정 바
   ========================================================= */
.floating-actions--contact { align-items: flex-end; }
.contact-bar { display: flex; flex-direction: column; gap: 8px; }
.contact-bar__btn {
  display: flex; align-items: center; gap: 10px;
  min-width: 200px; padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  font-size: 15px; font-weight: 600; line-height: 1.3;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.contact-bar__btn:hover { filter: brightness(0.96); transform: translateY(-1px); }
.contact-bar__icon { display: inline-flex; flex-shrink: 0; }
.contact-bar__text { display: flex; flex-direction: column; }
.contact-bar__num { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.contact-bar__hours { font-size: 12px; font-weight: 500; color: var(--color-ink-muted-80); }
.contact-bar__hours small { font-size: 11px; }
.contact-bar__label--mobile { display: none; }
.contact-bar__btn--phone { background: var(--color-canvas); color: var(--color-ink); border: 1px solid var(--color-hairline); }
.contact-bar__btn--phone .contact-bar__icon { color: var(--color-primary); }
.contact-bar__btn--quote { background: var(--color-primary); color: #fff; }
.contact-bar__btn--kakao { background: #FEE500; color: #191919; }

/* 좁은 노트북: 버튼을 줄이고 상담 시간은 마우스를 올렸을 때만 */
@media (min-width: 834px) and (max-width: 1280px) {
  .contact-bar__btn { min-width: 0; padding: 10px 14px; font-size: 14px; }
  .contact-bar__num { font-size: 15px; }
  .contact-bar__hours { display: none; }
  .contact-bar__btn--phone:hover .contact-bar__hours { display: block; }
}

/* 모바일: 화면 아래 고정 바 [전화][카톡][견적(가장 넓게)] */
@media (max-width: 833px) {
  .design-5 { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .floating-actions--contact { bottom: calc(76px + env(safe-area-inset-bottom)); right: 16px; }
  .contact-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    flex-direction: row; gap: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--color-canvas);
    border-top: 1px solid var(--color-hairline);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  }
  .contact-bar__btn {
    flex: 1 1 0; min-width: 0; height: 64px; padding: 0 8px;
    justify-content: center; gap: 6px;
    border-radius: 0; box-shadow: none; border: 0;
    font-size: 15px;
  }
  .contact-bar__btn:hover { transform: none; }
  .contact-bar__btn--quote { order: 3; }
  .contact-bar__btn--kakao { order: 2; }
  .contact-bar__num, .contact-bar__hours { display: none; }
  .contact-bar__label--mobile { display: inline; }
}
