/* ==========================================================================
   대신경제연구소 — 공통 스타일
   브레이크포인트: 모바일 기본 → 768px(태블릿) → 1024px(PC 헤더) → 1200px
   ========================================================================== */

/* ---------- 디자인 토큰 ---------- */
:root {
  --color-primary: #0086cd;
  --color-text: #212121;
  --color-muted: #888888;
  --color-line: #d5d5d5;
  --color-bg-soft: #f5f7f9;
  --color-footer: #101c24;
  --color-footer-text: #999999;

  --color-dark: #101c24;
  --color-dark-soft: #1b2833;
  --color-navy: #0d4562;
  --color-accent-soft: #6fc3ef;

  --radius: 20px;
  --radius-lg: 28px;

  --header-height: 68px;
  --container-max: 1280px;
  /* 홈 섹션 위·아래 여백 (ABOUT·BUSINESS·CLIENTS·NEWS 공통) */
  --home-space: clamp(72px, 7vw, 112px);
  --gutter: 20px;

  /* 메인 페이지 (네이비·블루 톤) */
  --home-navy-950: #071230;
  --home-navy-900: #0a1a3f;
  --home-navy-800: #0f2557;
  --home-blue: #1d5fd6;
  --home-blue-hover: #2b6ef2;
  --home-ink: #0f172a;
  --home-text: #334155;
  --home-muted: #64748b;
  --home-line: #e5e9f0;
  --home-soft: #f4f6fa;
}

@media (min-width: 1024px) {
  :root { --header-height: 84px; }
}

/* ---------- 기본 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

/* 투명 헤더가 아닌 페이지는 고정 헤더 높이만큼 본문을 내림 */
body:not(.has-overlay-header) main { padding-top: var(--header-height); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 1000;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ==========================================================================
   헤더
   ========================================================================== */
.site-header {
  --header-fg: var(--color-text);
  --header-bg: #fff;
  --header-border: #eaeaea;

  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  color: var(--header-fg);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  transition: background-color .3s, color .3s, border-color .3s;
}

/* 메인 페이지: 스크롤 전에는 투명(흰 글자), 내리면 다른 페이지와 같은 흰 헤더 */
.site-header.is-overlay:not(.is-scrolled) {
  --header-fg: #fff;
  --header-bg: transparent;
  --header-border: rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 54px);
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.header-actions { margin-left: auto; }

.header-logo img { width: 110px; }
.header-logo .logo-light { display: none; }
.site-header.is-overlay:not(.is-scrolled) .logo-light { display: block; }
.site-header.is-overlay:not(.is-scrolled) .logo-dark { display: none; }

/* ---------- PC 메뉴 (1024px~) ---------- */
.gnb { display: none; }

.gnb-item { position: static; }

.gnb-link {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding-inline: clamp(16px, 2vw, 30px);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color .2s;
}

/* 화면 전체 폭 하위 메뉴 패널 */
.gnb-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #eaeaea;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

.gnb-panel-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;   /* 메뉴 막대가 가운데이므로 하위 메뉴도 가운데에 */
  gap: 10px 50px;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 26px var(--gutter) 30px;
}

.gnb-panel-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 34px;
}

.gnb-panel-list a {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  color: #444;
  transition: color .2s;
}

.gnb-panel-list a:hover,
.gnb-panel-list a:focus-visible { color: var(--color-primary); }

.gnb-item:hover > .gnb-panel,
.gnb-item:focus-within > .gnb-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 문의하기 / 햄버거 ---------- */
.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-contact {
  display: none;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn-contact:hover,
.btn-contact:focus-visible {
  color: var(--color-primary);
  background: #fff;
}

/* 메인 페이지: 파란 알약 버튼 */
.site-header.is-overlay .btn-contact {
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  background: var(--home-blue);
  border-color: var(--home-blue);
  box-shadow: 0 8px 20px rgba(29, 95, 214, .35);
}

.site-header.is-overlay .btn-contact:hover,
.site-header.is-overlay .btn-contact:focus-visible {
  color: #fff;
  background: var(--home-blue-hover);
  border-color: var(--home-blue-hover);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
}

@media (min-width: 1024px) {
  /* 좌·중·우 3칸 — 양쪽 칸을 같은 폭(1fr)으로 두어 메뉴가 화면 정중앙에 옵니다 */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 40px;
  }
  .header-logo { justify-self: start; }
  .header-actions { justify-self: end; margin-left: 0; }
  .header-logo img { width: 141px; }
  .gnb { display: block; }
  .gnb-list { display: flex; }
  .btn-contact { display: inline-block; }
  .menu-toggle { display: none; }

  /* 링크뿐 아니라 펼쳐진 하위 메뉴 위에 있는 동안에도(항목 전체 기준) 상위 메뉴 강조색을 유지합니다 */
  .site-header:not(.is-overlay) .gnb-item:is(:hover, :focus-within) > .gnb-link { color: var(--color-primary); }

  /* 메인 페이지 PC 헤더: 마우스를 올리면 흰 배경으로 전환, 메뉴 아래 파란 밑줄 */
  .site-header.is-overlay:hover {
    --header-fg: var(--color-text);
    --header-bg: #fff;
    --header-border: #eaeaea;
  }
  .site-header.is-overlay:hover .logo-light { display: none; }
  .site-header.is-overlay:hover .logo-dark { display: block; }

  .site-header.is-overlay .gnb-link {
    position: relative;
    font-size: 15px;
  }

  .site-header.is-overlay .gnb-link::after {
    content: "";
    position: absolute;
    left: clamp(16px, 2vw, 30px);
    right: clamp(16px, 2vw, 30px);
    bottom: calc(50% - 18px);
    height: 2px;
    background: var(--home-blue-hover);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
  }

  .site-header.is-overlay .gnb-item:is(:hover, :focus-within) > .gnb-link { color: var(--home-blue); }
  .site-header.is-overlay .gnb-item:is(:hover, :focus-within) > .gnb-link::after { transform: scaleX(1); }
}

/* ==========================================================================
   모바일 메뉴 (슬라이드 패널)
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility .3s;
}

.mobile-menu.is-open { visibility: visible; }

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  transition: opacity .3s;
}

.mobile-menu.is-open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s;
}

.mobile-menu.is-open .mobile-menu-panel { transform: none; }

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-inline: var(--gutter);
  border-bottom: 1px solid #eaeaea;
}

.mobile-menu-close {
  position: relative;
  width: 40px;
  height: 40px;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}

.mobile-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.mnav-item { border-bottom: 1px solid #eaeaea; }

.mnav-row { display: flex; align-items: center; }

.mnav-row > a {
  flex: 1;
  padding: 16px var(--gutter);
  font-size: 17px;
  font-weight: 700;
}

.mnav-expand {
  position: relative;
  width: 56px;
  height: 56px;
}

.mnav-expand::after {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-text);
  border-bottom: 2px solid var(--color-text);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform .2s;
}

.mnav-expand[aria-expanded="true"]::after {
  top: 55%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.mnav-sub {
  padding: 6px 0 12px;
  background: var(--color-bg-soft);
}

.mnav-sub a {
  display: block;
  padding: 9px calc(var(--gutter) + 12px);
  font-size: 15px;
  color: #555;
}

.mnav-sub a:hover,
.mnav-sub a:focus-visible { color: var(--color-primary); }

.mobile-menu-contact {
  margin: 24px var(--gutter);
  padding: 13px;
  text-align: center;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
}

body.is-menu-open { overflow: hidden; }

/* ==========================================================================
   메인 — 비주얼 (왼쪽 글 + 오른쪽 사진)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(56px, 7vw, 88px)) 0 clamp(80px, 9vw, 110px);
  color: #fff;
  background: linear-gradient(125deg, var(--home-navy-950) 0%, var(--home-navy-800) 55%, #1748b0 100%);
}

/* 바탕 격자 무늬 — 오른쪽 위로 갈수록 또렷하게 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

/* 오른쪽 위 푸른 빛 */
.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(43, 110, 242, .35), transparent 65%);
  filter: blur(10px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
}

.hero-title {
  margin: 24px 0;
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.hero-title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #8fb6ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color .25s, border-color .25s;
}

.hero-btn--primary {
  color: #fff;
  background: var(--home-blue);
  box-shadow: 0 8px 20px rgba(29, 95, 214, .35);
}
.hero-btn--primary:hover { background: var(--home-blue-hover); }

.hero-btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}
.hero-btn--ghost:hover { background: rgba(255, 255, 255, .1); }

.hero-visual {
  aspect-ratio: 1 / .9;
  overflow: hidden;
  background: linear-gradient(160deg, #1b3a85 0%, #0c1f4c 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(7, 18, 48, .25);
}

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* 화살표 아이콘 — 올리면 오른쪽으로 살짝 */
.hero-btn svg,
.link-more svg,
.news-card-more svg,
.cta-button svg {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform .25s;
}
.link-more svg,
.news-card-more svg { width: 14px; height: 14px; }

.hero-btn:hover svg,
.link-more:hover svg,
.news-card:hover .news-card-more svg,
.cta-button:hover svg { transform: translateX(3px); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn:hover svg,
  .link-more:hover svg,
  .news-card:hover .news-card-more svg,
  .cta-button:hover svg { transform: none; }
}

/* 홈 '함께 해온 곳' — /client 페이지의 같은 이름 규칙과 섞이지 않게 home- 를 붙입니다 */
.home-clients {
  padding: var(--home-space) 0;
  background: #fff;
}

.home-client-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(36px, 4vw, 52px);
  list-style: none;
}

.home-client-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 86px;
  padding: 14px 18px;
  background: white;
  border: 1px solid #E8ECF3;
  border-radius: 14px;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.home-client-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* 로고 색이 제각각이라 평소에는 톤을 눌러 두고, 올리면 제 색을 보여 줍니다 */
  filter: grayscale(1);
  opacity: .6;
  transition: filter .25s, opacity .25s;
}
.home-client-tile:hover {
  border-color: #D3DDEC;
  box-shadow: 0 10px 24px rgba(8, 27, 56, .08);
  transform: translateY(-2px);
}
.home-client-tile:hover img,
.home-client-tile:focus-within img { filter: none; opacity: 1; }

/* 로고 링크는 타일 전체를 누를 수 있게 채웁니다 */
.home-client-tile a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.home-client-tile a:focus-visible { outline: 2px solid var(--blue-500, #2A6FE8); outline-offset: 4px; }

@media (max-width: 1023px) {
  .home-client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .home-client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .home-client-tile { height: 64px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-client-tile:hover { transform: none; }
}

/* ==========================================================================
   메인 — 섹션 공통 (라벨 + 큰 제목) / 스크롤 등장 효과
   ========================================================================== */
.sec-head { margin-bottom: 48px; }

/* 제목 왼쪽 + 설명·링크·탭 오른쪽 (좁은 화면에서 줄이 바뀌어도 오른쪽에 붙습니다) */
.sec-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}
.sec-head--row > :last-child:not(:first-child) { margin-left: auto; }

.sec-eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--home-blue);
}

.sec-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--home-ink);
}

.sec-title span,
.sec-title strong { display: block; }
.sec-title span { font-weight: 300; }
.sec-title strong { font-weight: 800; }

.sec-side {
  max-width: 420px;
  font-size: 14px;
  color: var(--home-muted);
}

/* '회사소개 자세히 보기' · '주요 고객사 전체 보기' — 오른쪽 정렬, 검정 계열 */
.more-row { display: flex; justify-content: flex-end; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-ink);
  transition: color .2s;
}
.link-more:hover { color: #000; }

/* 스크롤하면 나타나기 — JS 가 body 에 reveal-on 을 붙였을 때만 숨깁니다 */
body.reveal-on .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--delay, 0ms);
}

body.reveal-on .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   메인 — 연구소 소개
   ========================================================================== */
.about {
  padding-block: var(--home-space);
  background: #fff;
}

.about-body {
  display: grid;
  gap: 56px;
  align-items: center;
}

.about-copy .sec-head { margin-bottom: 32px; }

.about-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--home-text);
}

.about-text p + p { margin-top: 16px; }
.about-text strong { color: var(--home-ink); }

/* 숫자 3칸 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 36px 0 32px;
}

.about-stats li {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 14px;
}

.about-stats b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--home-ink);
}

.about-stats sup { margin-left: 2px; font-size: 15px; color: var(--home-blue); }
.about-stats span { font-size: 13px; color: var(--home-muted); }

.about-figure {
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
}

.about-figure img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .about-body { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* 899px 이하(태블릿·휴대폰) — 글이 한 줄로 쌓이는 화면에서는 HERO·ABOUT 사진을 숨깁니다 */
@media (max-width: 899px) {
  .hero-visual,
  .about-figure { display: none; }
}

@media (max-width: 520px) {
  .about-stats { gap: 8px; }
  .about-stats li { padding: 14px; }
  .about-stats b { font-size: 22px; }
}

/* ==========================================================================
   메인 — 흐르는 문구
   ========================================================================== */
.marquee {
  overflow: hidden;
  padding-block: 20px;
  color: #fff;
  background: var(--color-primary);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-group { display: flex; }

.marquee-group span {
  padding-right: 60px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  white-space: nowrap;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ==========================================================================
   메인 — 서비스 (사진 밴드)
   ========================================================================== */
.services {
  padding-block: clamp(90px, 11vw, 170px);
  background: #f4f6f8;
}

.band {
  position: relative;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin: 0 auto 24px;
  overflow: hidden;
  color: #fff;
  background: var(--color-dark);
  border-radius: var(--radius-lg);
}

.band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:linear-gradient(100deg, rgb(8 24 33 / 0%) 0%, rgb(8 24 33 / 0%) 45%, rgb(8 24 33 / 0%) 100%);
}

.band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
  padding-block: clamp(40px, 5vw, 68px);
}

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.band-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
}

.band-head img { width: 38px; }

.band-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  transition: background-color .25s, border-color .25s, color .25s;
}

.band-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.band-more:hover,
.band-more:focus-visible {
  color: #08202b;
  background: #fff;
  border-color: #fff;
}

.band-groups {
  display: grid;
  gap: 22px 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.band-group h4 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #6fc3ef;
}

.band-group h4 em {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, .7);
}

.band-group li {
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.9;
  color: rgba(255, 255, 255, .88);
}

.band-group li::before { content: "· "; }

@media (min-width: 640px) {
  .band-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .band-groups { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   메인 — 공지사항 / 채용 (탭)
   ========================================================================== */
.news {
  padding-block: var(--home-space);
  background: var(--home-soft);
}

.news-tabs {
  display: inline-flex;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 999px;
}

.news-tabs button {
  height: 38px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-muted);
  border-radius: 999px;
  transition: background-color .2s, color .2s;
}

.news-tabs [aria-selected="true"] { color: #fff; background: var(--home-navy-900); }

.news-panel {
  display: grid;
  gap: 20px;
  animation: news-in .5s ease;
}

@keyframes news-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .1);
  transform: translateY(-4px);
}

.news-chip {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--home-blue);
  background: #eef3fd;
  border-radius: 6px;
}

.news-chip--open { color: #16a34a; background: #e9f8ef; }

.news-card-title,
.news-card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-card-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.03em;
  color: var(--home-ink);
}

.news-card-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--home-muted);
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  color: #94a3b8;
}

.news-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--home-blue);
}

.news-empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--home-muted);
}

@media (min-width: 768px) {
  .news-panel { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .news-panel { animation: none; }
  .news-card:hover { transform: none; }
}

/* ==========================================================================
   메인 — 문의 유도
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 8vw, 100px);
  color: #fff;
  background: linear-gradient(120deg, #123a9c 0%, var(--home-blue) 60%, var(--home-blue-hover) 100%);
}

/* 왼쪽 아래 둥근 물결 */
.cta::before {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, .03), 0 0 0 160px rgba(255, 255, 255, .02);
}

.cta-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}

.cta-eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .7);
}

.cta-title {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.cta-desc {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
}

.cta-box {
  padding: 28px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cta-box dl { margin: 0; }

.cta-box dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.cta-box dl > div:first-child { padding-top: 0; }

.cta-box dt { color: rgba(255, 255, 255, .65); }
.cta-box dd { margin: 0; font-size: 16px; font-weight: 700; }

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--home-navy-800);
  background: #fff;
  border-radius: 999px;
  transition: background-color .25s;
}

.cta-button:hover,
.cta-button:focus-visible { background: #eef3fd; }

@media (min-width: 900px) {
  .cta-grid { grid-template-columns: 1.1fr .9fr; }
}

/* ==========================================================================
   하위 페이지 — 사진 배너 + 탭 메뉴
   ========================================================================== */
.page-head { padding: 24px 0 clamp(40px, 5vw, 72px); }

.page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(240px, 27vw, 360px);
  overflow: hidden;
  color: #fff;
  background: var(--color-dark);
  border-radius: var(--radius-lg);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 30, .55) 0%, rgba(10, 22, 30, .78) 100%);
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(34px, 4vw, 54px) clamp(20px, 3vw, 40px) clamp(20px, 2.4vw, 28px);
  text-align: center;
}

.page-crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}

.page-crumb span + span::before {
  content: "›";
  margin-right: 8px;
}

.page-head h1 {
  margin-top: 12px;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* 배너 안쪽 알약형 탭 */
.page-tabs {
  margin-top: clamp(24px, 3vw, 38px);
  overflow-x: auto;
}

.page-tabs ul {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.page-tabs a {
  display: block;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  white-space: nowrap;
  border-radius: 999px;
  transition: background-color .25s, color .25s;
}

.page-tabs a:hover,
.page-tabs a:focus-visible { color: #fff; background: rgba(255, 255, 255, .18); }

.page-tabs a.is-active {
  color: #fff;
  background: var(--color-primary);
}

/* 탭 4개 이상 — 1024px 이하에서는 가로 스크롤 알약 대신 반투명 블러 박스 안의 버튼 그리드
   (알약 바가 배너의 둥근 모서리에 잘리고 뒤쪽 탭이 안 보이던 문제)
   1024px 이하: 3열 (탭 4개는 4열 한 줄) / 768px 이하: 2열 (홀수면 마지막 하나는 가운데)
   PC 는 위의 알약 바 그대로 */
@media (max-width: 1024px) {
  .page-tabs--grid { overflow: visible; }

  .page-tabs--grid ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 640px;
    margin-inline: auto;
    padding: 6px;
    /* 배경·블러는 PC 알약 바와 같게 — 여러 줄이라 모서리만 덜 둥글게 */
    background: rgba(255, 255, 255, .14);
    border-radius: 26px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .page-tabs--grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;           /* 긴 이름은 두 줄로 */
    word-break: keep-all;          /* 한글 단어 중간에서 끊지 않기 */
    overflow-wrap: anywhere;       /* 그래도 넘치면 마지막 수단으로 줄바꿈 */
    /* 글자색·알약 모양·활성 파란색은 PC 탭(.page-tabs a) 그대로 */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .page-tabs--4 ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .page-tabs--grid ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* 홀수 개일 때 마지막 탭 — 한 칸 너비로 가운데 (ㅇㅇ / ㅇㅇ / ㅇ) */
  .page-tabs--grid li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 6px) / 2);
  }
}

@media (max-width: 380px) {
  .page-tabs--grid ul { padding: 6px; gap: 4px; }
  .page-tabs--grid a { padding: 6px 6px; font-size: 13.5px; }
  .page-tabs--grid li:last-child:nth-child(odd) { width: calc((100% - 4px) / 2); }
}

/* ---------- 하위 페이지 공통 조각 ---------- */
.section-intro {
  padding-block: clamp(60px, 8vw, 100px);
  text-align: center;
}

.section-symbol { margin: 0 auto 16px; width: 64px; }

.section-intro h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.section-intro p {
  margin-top: .3em;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  color: #333;
}

.section-eyebrow {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
}

.section-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: #111;
}

.section-title span { display: block; }

.section-desc {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  text-align: center;
  color: #333;
}

/* ==========================================================================
   임직원 인사말
   ========================================================================== */
.greetings { padding-block: clamp(60px, 10vw, 150px); }

.greetings-lead {
  display: grid;
  gap: 30px;
  align-items: center;
}

.greetings-lead h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1.8;
}

.greetings-lead h2 span,
.greetings-lead h2 strong { display: block; }

.greetings-body {
  display: grid;
  gap: 40px;
  margin-top: clamp(50px, 9vw, 119px);
}

.greetings-text h3 {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.6;
}

.greetings-text h3 span { display: block; }

.greetings-text p {
  margin-top: 1.4em;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  color: #333;
}

.greetings-sign { font-size: 17px; color: var(--color-text); }

@media (min-width: 900px) {
  .greetings-lead { grid-template-columns: 5fr 7fr; }
  .greetings-body { grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
}

/* ==========================================================================
   연혁 타임라인
   ========================================================================== */
.timeline { padding-bottom: clamp(60px, 8vw, 100px); }

.timeline-row {
  display: grid;
  gap: 24px;
  padding-bottom: clamp(50px, 8vw, 100px);
}

.timeline-dot { display: none; }

.timeline-text h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4.6vw, 48px);
  font-weight: 700;
  color: #005bac;
}

.timeline-year {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding-block: 6px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 2;
}

.timeline-year dt { font-weight: 700; }
.timeline-year dd { margin: 0; }
.timeline-year dd span { display: block; }

@media (min-width: 900px) {
  .timeline-row {
    grid-template-columns: 5fr 2fr 5fr;
    gap: 30px;
    align-items: start;
  }

  .timeline-dot {
    display: flex;
    justify-content: center;
    padding-top: 14px;
  }

  .timeline-dot::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #005bac;
  }

  /* 짝수 연대: 텍스트 왼쪽(오른쪽 정렬) + 사진 오른쪽 */
  .timeline-row--reverse .timeline-text { order: 1; text-align: right; }
  .timeline-row--reverse .timeline-dot { order: 2; }
  .timeline-row--reverse .timeline-photo { order: 3; }
  .timeline-row--reverse .timeline-year { grid-template-columns: 1fr 64px; }
  .timeline-row--reverse .timeline-year dt { order: 2; }
  .timeline-row--reverse .timeline-year dd { order: 1; }
}

/* ==========================================================================
   조직 및 자문위원회
   ========================================================================== */
.strengths { padding-block: clamp(40px, 6vw, 60px); }

.strength-cards {
  display: grid;
  gap: 20px 30px;
  margin-top: 36px;
}

.strength-card {
  padding: clamp(24px, 2.6vw, 34px);
  background: #f4f6f8;
  border-radius: var(--radius);
}

.strength-card h3 {
  margin: 14px 0 10px;
  padding-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid #eaeaea;
}

.strength-card ul li {
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.9;
  color: #444;
}

.strength-card ul li::before { content: "· "; }

@media (min-width: 768px) {
  .strength-cards { grid-template-columns: repeat(6, 1fr); }
  .strength-card { grid-column: span 2; }
  .strength-card:nth-child(4),
  .strength-card:nth-child(5) { grid-column: span 3; }
}

.org-chart {
  padding-block: clamp(60px, 8vw, 100px);
  background: #f9f9f9;
}

.org-chart-image { margin: clamp(30px, 5vw, 50px) auto 0; }

.committees { padding-block: clamp(60px, 8vw, 100px); }

.committee-list {
  display: grid;
  gap: 12px;
  margin-top: clamp(24px, 4vw, 40px);
}

.committee-list li {
  padding: 22px 18px;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  background: #f9f9f9;
}

@media (min-width: 768px) {
  .committee-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 자문위원 슬라이드 ---------- */
.advisors { padding-bottom: clamp(60px, 8vw, 100px); }

.advisor-slider { position: relative; margin-top: clamp(24px, 4vw, 40px); }

.advisor-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  /* 스크롤 기능은 유지하고 스크롤바만 숨김 (Firefox · 구형 Edge) */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* 스크롤바 숨김 (Chrome · Safari · 최신 Edge) */
.advisor-track::-webkit-scrollbar { display: none; }

.advisor-card {
  flex: 0 0 min(320px, 80%);
  overflow: hidden;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e7ebee;
  border-radius: var(--radius);
}

.advisor-card img { width: 100%; }

.advisor-card ul { padding: 20px; }

.advisor-card li {
  font-size: 15px;
  line-height: 1.8;
  color: #777;
}

.advisor-card li::before { content: "· "; }

.advisor-nav {
  position: absolute;
  top: 60px;
  z-index: 2;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: .9;
}

.advisor-nav::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.advisor-nav--prev { left: -8px; }
.advisor-nav--prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.advisor-nav--next { right: -8px; }
.advisor-nav--next::after { transform: translate(-70%, -50%) rotate(45deg); }

.advisor-nav:hover { opacity: 1; }
.advisor-nav[disabled] { opacity: .25; cursor: default; }

@media (min-width: 768px) {
  .advisor-card { flex-basis: calc((100% - 30px) / 3); }
  .advisor-nav--prev { left: -20px; }
  .advisor-nav--next { right: -20px; }
}

@media (min-width: 1024px) {
  .advisor-card { flex-basis: calc((100% - 45px) / 4); }
}

/* ==========================================================================
   대신파이낸셜그룹 소개
   ========================================================================== */
.dfg { padding-block: clamp(60px, 8vw, 100px); }

.band {
  padding: 14px 20px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  color: #fff;
}

.band--blue { background: var(--color-primary); }
.band--green { background: #3f9054; font-size: 18px; }

.dfg-desc {
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  color: #333;
}

.dfg-logo { margin: 40px auto 0; width: min(500px, 80%); }

.dfg-image { margin: 40px auto clamp(40px, 6vw, 60px); }

/* ==========================================================================
   사업소개 — 공통
   ========================================================================== */
.biz-intro { padding-block: clamp(30px, 4vw, 60px); text-align: center; }

.biz-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.biz-title img { width: 42px; }

.biz-lead {
  max-width: 900px;
  margin: 20px auto 0;
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 2;
  color: #555;
}

.biz-block { padding-block: 30px; }

.biz-block--gray {
  margin-top: 40px;
  padding-block: clamp(60px, 8vw, 100px);
  background: #f9f9f9;
}

.biz-label {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
}

.biz-heading {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  color: #222;
}

.biz-desc {
  margin-top: 12px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2;
  color: #333;
}

/* ---------- 아이콘 카드 ---------- */
.icards {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.icard {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px);
  background: #fff;
  border: 1px solid #e7ebee;
  border-radius: var(--radius);
}

.biz-block--gray .icard { border-color: transparent; }

.icard-icon { width: 60px; }

.icard-step {
  margin-top: 16px;
  font-size: 16px;
  color: #222;
}

.icard-title {
  margin-top: 8px;
  padding-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid #ddd;
}

.icard-number { color: #222; }
.icard-title-note { font-size: 14px; }

.icard-items { margin-top: 20px; }

.icard-items > li {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.icard-items > li::before { content: "· "; }
.icard-items.is-plain > li::before { content: none; }

.icard-subitems { margin-left: 14px; }

.icard-subitems li {
  font-size: 14px;
  color: #777;
}

.icard-subitems li::before { content: "- "; }

.icard-group + .icard-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.icard-group h4 {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
}

.icard-group + .icard-group h4 { margin-top: 0; }

.icard-footnote {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  text-align: right;
  color: #3d4e57;
}

@media (min-width: 640px) {
  .icards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .icards { gap: 20px; }
  .icards--3 { grid-template-columns: repeat(3, 1fr); }
  .icards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- ESG 전략: 알약 라벨 / 모델명 / 매트릭스 ---------- */
.biz-pill {
  display: block;
  width: fit-content;
  margin: 24px auto;
  padding: 15px clamp(40px, 8vw, 100px);
  font-size: 16px;
  color: #fff;
  text-align: center;
  background: #0d4562;
  border-radius: 999px;
}

.biz-model {
  margin-top: 20px;
  font-size: clamp(22px, 2.6vw, 30px);
  text-align: center;
}

.biz-model span { color: var(--color-primary); }

.biz-rule {
  margin: 10px 0 0;
  border: 0;
  border-top: 1px solid #eee;
}

.biz-image { margin: 0 auto; }

.matrix {
  display: grid;
  gap: 20px;
  align-items: start;
}

.matrix-head,
.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  text-align: center;
}

.matrix-head {
  min-height: 80px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
}

.matrix-cell {
  margin-top: 10px;
  min-height: 60px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  background: #f9f9f9;
}

@media (min-width: 768px) {
  .matrix { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- ESG 전략: 과제도출 2×2 매트릭스 ---------- */
.quadrant {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 20px;
}

.quadrant-axis-y {
  grid-row: 1;
  align-self: stretch;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.quadrant-axis-x {
  grid-column: 2;
  width: 100%;
}

.quadrant-grid {
  position: relative;
  display: grid;
  gap: 0;
}

.quadrant-cell {
  position: relative;
  padding: clamp(28px, 3vw, 50px) clamp(24px, 3vw, 60px);
  background-size: cover;
  background-position: 50% 50%;
}

.quadrant-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(236, 240, 242, .55);
}

.quadrant-cell:first-child::before { background: rgba(255, 255, 255, .85); }

.quadrant-cell > * { position: relative; }

.quadrant-cell h3 {
  margin-bottom: 16px;
  padding-left: 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: #222;
  border-left: 4px solid var(--color-primary);
}

.quadrant-cell--right { text-align: right; }

.quadrant-cell--right h3 {
  padding: 0 10px 0 0;
  border-left: 0;
  border-right: 4px solid var(--color-primary);
}

.quadrant-columns {
  display: grid;
  gap: 10px 24px;
}

.quadrant-columns li {
  font-size: 16px;
  line-height: 2;
}

.quadrant-columns li::before { content: "· "; }

.quadrant-legend {
  margin: 10px 0;
  padding: 20px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 5px 20px rgba(0, 23, 34, .07);
}

.quadrant-legend-row {
  display: grid;
  gap: 10px 20px;
  text-align: center;
}

.quadrant-legend-row + .quadrant-legend-row { margin-top: 16px; }

.quadrant-legend li { font-size: 15px; line-height: 1.9; }
.quadrant-legend li::before { content: "· "; }

@media (min-width: 768px) {
  .quadrant-columns,
  .quadrant-legend-row { grid-template-columns: 1fr 1fr; }
  .quadrant-grid { grid-template-columns: 1fr 1fr; }

  /* 범례를 매트릭스 한가운데에 겹쳐 놓기 */
  .quadrant-legend {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: min(460px, 46%);
    margin: 0;
    transform: translate(-50%, -50%);
  }
}

/* ---------- ESG 전략 체계 수립 카드 ---------- */
.goal-eyebrow {
  margin-top: 16px;
  font-size: 13px;
  color: #999;
}

.goal-highlight {
  margin: 18px 0 6px;
  padding: 2px 8px;
  width: fit-content;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
}

.goal { margin-top: 14px; }

.goal-name { font-size: 16px; color: #222; }
.goal-name span { font-weight: 700; color: var(--color-primary); }
.goal-kpi { font-size: 14px; color: #999; }

/* ---------- 공급망: 라벨 + 내용 표 ---------- */
.label-table { margin-top: 24px; }

.label-table-row {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.label-table-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: var(--color-primary);
}

.label-table-body {
  padding: 20px clamp(20px, 3vw, 50px);
  background: #fff;
  border: 1px solid #eef1f3;
}

.label-table-body li {
  font-size: 16px;
  line-height: 2;
}

.label-table-body li::before { content: "· "; }

@media (min-width: 768px) {
  .label-table-row { grid-template-columns: 3fr 9fr; }
}

/* ---------- 탄소중립: 3열 프로세스 ---------- */
.process {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.process-head,
.process-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 20px;
  text-align: center;
}

.process-head {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
}

.process-head.is-accent { background: #00bdcd; }

.process-cell {
  margin-top: 20px;
  font-size: 16px;
  background: #fff;
  border: 1px solid #eef1f3;
}

@media (min-width: 768px) {
  .process { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 평가대응: 좌우 2분할 패널 ---------- */
.panels {
  display: grid;
  margin-top: 24px;
}

.panels-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: var(--color-primary);
}

.panels-right {
  padding: 30px clamp(20px, 3vw, 50px);
  font-size: 16px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #eef1f3;
}

.panels-right p { line-height: 2; }
.panels-right ul { margin-top: 10px; }
.panels-right li { line-height: 2; }
.panels-right li::before { content: "· "; }

@media (min-width: 768px) {
  .panels { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   주요 고객사
   ========================================================================== */
.clients { padding-block: clamp(50px, 7vw, 80px); }

.clients-title {
  margin-bottom: 20px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 50px;
}

.client-grid li {
  overflow: hidden;
  aspect-ratio: 270 / 103;
  border: 1px solid #e7ebee;
  border-radius: var(--radius);
}

.client-grid a,
.client-grid img {
  display: block;
  width: 100%;
  height: 100%;
}

.client-grid img { object-fit: cover; }

@media (min-width: 640px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .client-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ==========================================================================
   게시판 — 목록 (리스트형 / 갤러리형), 상세, 페이지 번호
   ========================================================================== */
.board { padding-block: clamp(40px, 6vw, 70px); }

/* ---------- 리스트형 ---------- */
.board-list { border-top: 2px solid #222; }

.board-list li { border-bottom: 1px solid #eaeaea; }

.board-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: center;
  padding: 20px 10px;
  transition: color .2s;
}

.board-list a:hover,
.board-list a:focus-visible { color: var(--color-primary); }

.board-list-title {
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 600;
}

.board-list-date {
  font-size: 15px;
  color: #999;
  white-space: nowrap;
}

.board-list-file {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  color: var(--color-primary);
}

/* ---------- 갤러리형 ---------- */
.board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 30px);
}

.board-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #e7ebee;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.board-card:hover,
.board-card:focus-visible {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transform: translateY(-4px);
}

.board-card-thumb {
  display: block;
  aspect-ratio: 4 / 2;
  overflow: hidden; /* 세로로 긴 이미지가 박스를 늘리지 않도록 */
  background: #f5f7f9;
}

.board-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* 이미지 상단 기준으로 자르기 */
}

/* 기본 이미지(로고): 자르지 않고 가운데에 작게 */
.board-card-thumb--default {
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-card-thumb--default img {
  width: 40%;
  height: auto;
  object-fit: contain;
  opacity: 0.35;
}

.board-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
}

.board-card-tag {
  width: fit-content;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
}

.board-card-tag--notice { background: #0d4562; }
.board-card-tag--muted { background: #8a949c; }

/* ---------- 이미지 갤러리형 (뉴스레터) ---------- */
.board-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 30px);
}

.gallery-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #e7ebee;
  border-radius: var(--radius);
}

.gallery-card img {
  width: 100%;
  transition: transform .4s;
}

.gallery-card:hover img,
.gallery-card:focus-visible img { transform: scale(1.03); }

.gallery-card-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
  opacity: 1;
  transition: opacity .3s;
}

@media (hover: hover) {
  .gallery-card-overlay { opacity: 0; }
  .gallery-card:hover .gallery-card-overlay,
  .gallery-card:focus-visible .gallery-card-overlay { opacity: 1; }
}

.gallery-card-tag {
  width: fit-content;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--color-primary);
}

.gallery-card-title {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
}

/* 목록 이미지가 없는 글 — 빈 카드로 사라지지 않게 회색 바탕 + 제목을 늘 보여줌 */
.gallery-card--noimg {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e9eef2, #d5dde3);
}
.gallery-card--noimg .gallery-card-overlay { opacity: 1; }

@media (min-width: 768px) {
  .board-gallery { grid-template-columns: repeat(2, 1fr); }
}

.board-card-title {
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 700;
  line-height: 1.5;
}

.board-card-date { font-size: 14px; color: #999; }

.board-card-summary {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

@media (min-width: 640px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .board-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 빈 게시판 ---------- */
.board-empty {
  padding: 80px 20px;
  text-align: center;
  color: #888;
  border-top: 2px solid #222;
  border-bottom: 1px solid #eaeaea;
}

/* ---------- 페이지 번호 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 15px;
  border: 1px solid #eaeaea;
}

.pagination a:hover { color: var(--color-primary); border-color: var(--color-primary); }

.pagination .is-current {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ---------- 상세 ---------- */
.post { padding-block: clamp(40px, 6vw, 70px); }

.post-head {
  padding-bottom: 24px;
  border-top: 2px solid #222;
  border-bottom: 1px solid #eaeaea;
  padding-top: 30px;
}

.post-title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.5;
}

.post-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 600;
  vertical-align: middle;
  color: #fff;
  background: #0d4562;
}

.post-badge--muted { background: #8a949c; }

.post-list {
  margin: 1.2em 0;
  padding-left: 4px;
}

.post-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: .4em;
}

.post-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 15px;
  color: #999;
}

.post-files {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #eaeaea;
}

.post-files a {
  font-size: 15px;
  color: #333;
}

.post-files a::before { content: "📎 "; }
.post-files a:hover { color: var(--color-primary); text-decoration: underline; }

.post-body {
  padding-block: clamp(30px, 5vw, 50px);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  border-bottom: 1px solid #eaeaea;
}

.post-body p + p { margin-top: 1.2em; }
.post-body img { margin: 24px auto; max-width: min(670px, 100%); }
.post-body hr { margin: 30px 0; border: 0; border-top: 1px solid #eaeaea; }

.post-link { color: var(--color-primary); text-decoration: underline; }


.post-table-wrap { overflow-x: auto; }

.post-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  text-align: left;
}

.post-table th,
.post-table td {
  padding: 16px 20px;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.8;
  border: 1px solid #eaeaea;
  vertical-align: top;
}

.post-table th {
  width: 19%;
  min-width: 110px;
  font-weight: 700;
  text-align: center;
  background: #f3f3f3;
}

.post-table td p { position: relative; padding-left: 14px; }
.post-table td p::before { content: "•"; position: absolute; left: 0; }

.post-nav { margin-top: 30px; }

.post-nav a {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 16px 10px;
  font-size: 15px;
  border-bottom: 1px solid #eaeaea;
}

.post-nav a:hover { color: var(--color-primary); }
.post-nav span { color: #999; }

.post-back {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 12px 40px;
  font-size: 15px;
  color: #fff;
  background: #222;
}

.post-back:hover { background: var(--color-primary); }

/* ==========================================================================
   정책 문서 (개인정보처리방침 · 윤리강령 · 윤리헌장 · 이해상충방지정책)
   ========================================================================== */
.policy {
  padding-block: clamp(40px, 6vw, 70px);
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.9;
  color: #333;
}

.policy .container { max-width: 900px; }

.policy-title {
  margin-bottom: 30px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  text-align: center;
  color: #222;
}

.policy h3 {
  margin: 36px 0 10px;
  font-size: clamp(17px, 1.9vw, 19px);
  font-weight: 700;
  color: var(--color-primary);
}

.policy p + p { margin-top: .8em; }

.policy-list {
  margin: 10px 0;
  padding-left: 4px;
}

.policy-list li {
  position: relative;
  padding-left: 14px;
}

.policy-list li::before { content: "·"; position: absolute; left: 2px; }

.btn-download {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
}

.btn-download::before { content: "⬇ "; }
.btn-download:hover { background: #0d4562; }

/* ==========================================================================
   문의하기
   ========================================================================== */
.contact { padding-block: clamp(40px, 6vw, 70px); }
.contact .container { max-width: 900px; }

.contact-intro {
  margin-bottom: 40px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  text-align: center;
  color: #444;
}

.contact-error {
  margin-bottom: 20px;
  padding: 14px 18px;
  font-size: 15px;
  color: #b3261e;
  background: #fdecea;
}

.form-row {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid #eaeaea;
}

.form-label {
  font-size: 15px;
  font-weight: 700;
}

.form-label em { font-style: normal; color: #e03131; }

.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 2px;
}

.form-input textarea { resize: vertical; min-height: 120px; }

.form-input input:focus,
.form-input textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-input .form-phone-input { max-width: 260px; }

/* 입력 확인 — 문제가 있는 칸 (빨간 테두리 + 안내 문구) */
.form-row.is-invalid input[type="text"],
.form-row.is-invalid input[type="tel"],
.form-row.is-invalid textarea,
.form-row.is-invalid .consent-box { border-color: #e03131; }
.form-row.is-invalid input[type="text"]:focus,
.form-row.is-invalid input[type="tel"]:focus,
.form-row.is-invalid textarea:focus { border-color: #e03131; box-shadow: 0 0 0 3px rgba(224, 49, 49, .15); }
.form-row.is-invalid .form-radios { outline: 1px solid #e03131; outline-offset: 6px; }
.form-row.is-invalid .form-etc { border-color: #d5d5d5; }
.form-row.is-invalid input[type="checkbox"],
.form-row.is-invalid input[type="radio"] { outline: 2px solid #e03131; outline-offset: 1px; }

/* 안내 문구는 칸 아래 여백(행 아래쪽 padding 18px) 안에 겹쳐 띄웁니다.
   문구가 나타나도 아래 내용이 밀리지 않아, 바로 다음 칸을 누를 때 빗나가지 않습니다. */
.form-input { position: relative; }
.field-error {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.2;
  color: #e03131;
  white-space: nowrap;
}
.field-error[hidden] { display: none; }

/* 입력 오류로 돌아왔을 때 서버가 맡아 둔 첨부파일 */
.form-held {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
  padding: 12px 14px;
  font-size: 14px;
  background: #f5f9fc;
  border: 1px solid #d9e8f2;
}
.form-held p { font-size: 13px; color: #777; }
.form-held-remove { display: inline-flex; align-items: center; gap: 6px; width: fit-content; color: #555; }

.form-radios {
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.form-radios label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-radio span { white-space: nowrap; }
.form-etc { max-width: 200px; }

.contact-intro h2 {
  margin-bottom: 14px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #222;
}

.consent-box {
  height: 160px;
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  white-space: pre-line;
  background: #f9f9f9;
  border: 1px solid #eaeaea;
}

.consent-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
}

.contact-submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 40px auto 0;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
}

.contact-submit:hover { background: #0d4562; }

.contact-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 80px;
  text-align: center;
}

.contact-done h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
}

.contact-done p { color: #666; }
.contact-done .btn-outline { margin-top: 10px; }

@media (min-width: 768px) {
  .form-row { grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
  .form-label { padding-top: 11px; }
  .form-radios { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   준비 중 화면
   ========================================================================== */

.page-pending {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-block: 100px;
  font-size: 18px;
  color: #555;
}

.btn-outline {
  padding: 11px 26px;
  font-size: 15px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: background-color .2s, color .2s;
}

.btn-outline:hover,
.btn-outline:focus-visible { color: #fff; background: var(--color-primary); }

/* ==========================================================================
   푸터
   ========================================================================== */
.site-footer {
  padding-block: clamp(60px, 7vw, 90px);
  font-size: 15px;
  color: var(--color-footer-text);
  background: var(--color-footer);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-policies a {
  color: #fff;
  transition: color .2s;
}

.footer-policies li:first-child a { font-weight: 700; }

.footer-policies a:hover,
.footer-policies a:focus-visible { color: var(--color-primary); }

/* ---------- FAMILY SITE ---------- */
.family-site { position: relative; width: 220px; }

.family-site-toggle {
  position: relative;
  border-radius: 999px;
  width: 100%;
  padding: 11px 44px 11px 16px;
  font-size: 14px;
  letter-spacing: .05em;
  text-align: left;
  color: #bbb;
  border: 1px solid #555;
}

.family-site-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform .2s;
}

.family-site-toggle[aria-expanded="true"]::after { transform: translateY(-75%) rotate(225deg); }

.family-site-list {
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  z-index: 10;
  width: 100%;
  max-height: min(440px, 70vh);
  padding: 8px 0;
  overflow-y: auto;
  background: #17242e;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
}

.family-site-list a {
  display: block;
  padding: 7px 16px;
  font-size: 14px;
  color: #ccc;
}

.family-site-list a:hover,
.family-site-list a:focus-visible { color: #fff; background: #3a3a3a; }

/* ---------- 주소 / 로고 ---------- */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-top: 30px;
}

.footer-info {
  font-style: normal;
  line-height: 2;
}

.footer-info span { display: inline-block; margin-right: 14px; }

.copyright { margin-top: 4px; font-size: 14px; }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand img:first-child { width: 240px; }
.footer-brand img:last-child { width: 180px; }

@media (min-width: 768px) {
  .footer-brand { align-items: flex-end; }
  .footer-brand img:last-child { width: 211px; }
}

/* ==========================================================================
   팝업 공지
   ========================================================================== */
.popup-layer {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  max-width: 100%;
  padding: 16px;
}

.popup {
  width: min(var(--popup-width, 420px), calc(100vw - 32px));
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 23, 34, .22);
}

.popup-head {
  padding: 16px 20px;
  font-size: 16px;
  color: #fff;
  background: var(--color-dark);
}

.popup img { width: 100%; }

.popup-body {
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.popup-body p + p { margin-top: .6em; }

.popup-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
}

.popup-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  background: #f4f6f8;
}

.popup-today { display: flex; align-items: center; gap: 7px; color: #555; }

.popup-close {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #55636d;
  border-radius: 6px;
}

.popup-close:hover { background: var(--color-dark); }

@media (min-width: 768px) {
  .popup-layer { left: auto; right: 0; padding: 24px; }
}

/* ==========================================================================
   메인 — 사업 영역 '종합 ESG 서비스' (왼쪽 메뉴 + 오른쪽 상세 카드)
   탭 전환: js/home-tabs.js / 데이터: content.BUSINESS_CARDS
   ========================================================================== */
/* 홈: 섹션 상단이 고정 헤더 밑에 가려지지 않게 합니다 (링크 이동 포함).
   스크롤이 멈췄을 때 섹션 상단에 천천히 맞추는 동작은 js/home-scroll.js 가 맡습니다 —
   CSS scroll-snap 은 맞추는 속도를 조절할 수 없어서 쓰지 않습니다. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  html:has(.home-biz) { scroll-padding-top: var(--header-height); }
}

/* ABOUT(흰색)과 구분되는 회색 배경 */
.home-biz {
  padding-block: var(--home-space);
  background: var(--home-soft);
  border-top: 1px solid #e3e8ef;
}

.biz-layout {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

/* ---------- 왼쪽 메뉴 ---------- */
.biz-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: #e9edf3;   /* 회색 섹션 위에서도 구분되도록 한 단계 진하게 */
  border-radius: 20px;
}

.biz-menu button {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  gap: 4px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: #374151;
  border-radius: 14px;
  transition: background-color .2s, color .2s, box-shadow .2s;
}

.biz-menu-no,
.biz-menu-arrow {
  font-size: 13px;
  font-weight: 800;
  color: #9aa5b5;
  transition: color .2s;
}

.biz-menu button:hover,
.biz-menu [aria-selected="true"] {
  color: #1d4fb8;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 42, 100, .08);
}

.biz-menu [aria-selected="true"] .biz-menu-no,
.biz-menu [aria-selected="true"] .biz-menu-arrow { color: var(--home-blue-hover); }

/* ---------- 오른쪽 상세 카드 ---------- */
/* 모든 패널을 같은 칸에 겹쳐 두어 카드 높이가 가장 긴 패널에 고정됩니다
   — 항목을 바꿔도 카드와 왼쪽 메뉴의 높이가 변하지 않습니다 */
.biz-card {
  position: relative;
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--home-line);
  border-radius: 20px;
}

.biz-panel {
  display: flex;
  flex-direction: column;
  grid-area: 1 / 1;
  animation: biz-in .4s ease;
}

/* 숨긴 패널도 높이 계산에는 남겨 둡니다 (화면·읽기 프로그램에서는 보이지 않음) */
.biz-card > .biz-panel[hidden] {
  display: flex !important;
  visibility: hidden;
  animation: none;
}

@keyframes biz-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 위쪽 파란 영역 — 순서대로 세 가지 색을 돌려 씁니다 */
.biz-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 40px 44px;
  color: #fff;
}

.biz-visual--1 { background: linear-gradient(125deg, #1a46b0, #2b6fe8); }
.biz-visual--2 { background: linear-gradient(125deg, #0f2a6b, #1d4fc4); }
.biz-visual--3 { background: linear-gradient(125deg, #0a1a40, #163f99); }

.biz-visual-no {
  position: absolute;
  top: 22px;
  right: 36px;
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .14);
}

.biz-visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
}

.biz-visual-icon svg { width: 28px; height: 28px; }

.biz-visual h3 {
  margin-top: 22px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.biz-visual p {
  max-width: 560px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}

.biz-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 32px 44px 36px;
}

.biz-items-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  color: #1d4fb8;
}

.biz-features {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.biz-features li {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  background: #f5f7fa;
  border-radius: 12px;
}

.biz-features li::before {
  content: "✓";
  margin-right: 10px;
  color: #1d5bd8;
}

/* 아래 줄: '자세히 보기' 왼쪽, 이전·다음 버튼 오른쪽 (.biz-nav 는 카드 기준으로 겹쳐 놓습니다) */
.biz-more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 15px;
  font-weight: 700;
  color: #1d5bd8;
  box-sizing: content-box;
}

.biz-more svg { flex: none; width: 15px; height: 15px; transition: transform .25s; }
.biz-more:hover svg { transform: translateX(3px); }

.biz-nav {
  position: absolute;
  right: 44px;
  bottom: 36px;
  display: flex;
  gap: 8px;
}

.biz-nav button {
  width: 42px;
  height: 42px;
  font-size: 16px;
  color: #374151;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  transition: border-color .2s, color .2s;
}

.biz-nav button:hover { color: #1d4fb8; border-color: #b8cef5; }

@media (min-width: 640px) {
  .biz-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .biz-layout { grid-template-columns: 360px minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .biz-visual { padding: 32px 24px; }
  .biz-visual-no { right: 20px; font-size: 64px; }
  .biz-body { padding: 26px 24px 30px; }
  .biz-nav { right: 24px; bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .biz-panel { animation: none; }
  .biz-more:hover svg { transform: none; }
}

/* ==========================================================================
   메인 — ABOUT · BUSINESS · CLIENTS 를 한 화면 높이에 맞추기 (PC)
   각 섹션 높이 = 화면 높이 − 고정 헤더 높이
   · 화면이 크면 남는 높이만큼 위아래 여백이 늘고 내용은 가운데
   · 화면이 낮으면(노트북 등) 여백·이미지·카드 간격을 줄여 한 화면에 들어오게
   · 휴대폰·태블릿(1024px 미만)은 내용이 화면보다 훨씬 길어 기존처럼 자연스럽게 둡니다
   스크롤이 멈추면 섹션 상단에 맞춰 주는 동작은 js/home-scroll.js
   ========================================================================== */
@media (min-width: 1024px) {
  .about,
  .home-biz,
  .home-clients {
    --fit-h: calc(100vh - var(--header-height));
    --fit-pad: clamp(28px, 7vh, 112px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--fit-h);
    padding-block: var(--fit-pad);
  }

  /* 휴대폰 주소창처럼 늘었다 줄었다 하는 영역을 뺀 실제 보이는 높이 */
  @supports (height: 100svh) {
    .about,
    .home-biz,
    .home-clients { --fit-h: calc(100svh - var(--header-height)); }
  }

  .about > .container,
  .home-biz > .container,
  .home-clients > .container { width: 100%; }

  /* 제목 아래 간격도 화면 높이에 맞춰 (큰 화면 48px ~ 낮은 화면 20px) */
  .about .sec-head,
  .home-biz .sec-head,
  .home-clients .sec-head { margin-bottom: clamp(20px, 4vh, 48px); }

  /* ABOUT 사진은 화면 높이를 넘지 않게 */
  .about-figure { max-height: calc(var(--fit-h) - var(--fit-pad) * 2); }
}

/* 낮은 화면 (노트북 1366×768, 1280×720 등) — 간격을 줄여 한 화면에 */
@media (min-width: 1024px) and (max-height: 860px) {
  .about-copy .sec-head { margin-bottom: 20px; }
  .about-text { line-height: 1.75; }
  .about-text p + p { margin-top: 10px; }
  .about-stats { margin: 22px 0 18px; }
  .about-stats li { padding: 14px 16px; }

  .home-biz { --fit-pad: clamp(24px, 6vh, 112px); }
  .biz-menu button { min-height: 46px; }
  .biz-visual { min-height: 0; padding: 22px 32px; }
  .biz-visual-icon { width: 44px; height: 44px; }
  .biz-visual-icon svg { width: 22px; height: 22px; }
  .biz-visual-no { font-size: 64px; }
  .biz-visual h3 { margin-top: 12px; }
  .biz-visual p { margin-top: 6px; line-height: 1.55; }
  .biz-body { padding: 16px 32px 20px; }
  .biz-features { gap: 8px; margin-top: 10px; }
  .biz-features li { padding: 10px 16px; }

  .home-client-grid { margin-top: 24px; gap: 10px; }
  .home-client-tile { height: 72px; }
}
