/* =========================================================
   v6 — v5(스토리 스크롤형)의 밝은 버전 (에스디파마 · 에스디피씨 공통)
   흰 · 연한 하늘색 바탕, 남색 글자. 사진 위 장면(첫 화면 · 사업 카드 · 마무리)은 어두운 막 + 흰 글자 유지
   원본은 v6/sdp/assets/css/v6.css — 생성기가 v6/sdpc 로 복사
   에스디피씨는 sdpc.css 에서 포인트색만 청록으로 바꿈
   v5 와 다른 색 처리는 맨 아래 "v6 밝은 테마" 묶음에 모음
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f5f8fc;                   /* 연한 하늘색 회색 (v2 와 같음) */
  --ink: #142c49;                    /* 남색 글자 */
  --ink-2: #4a5d75;
  --ink-3: #66788f;                  /* 흰 바탕 대비 4.5:1 이상 */
  --line: #e3e8f0;
  --accent: #e5121f;                 /* 에스디파마 로고 빨강 */
  --accent-2: #d1101b;               /* 흰 바탕 위 작은 글자용으로 조금 어둡게 */
  --accent-bg: #e5121f;

  --fs-1: 0.875rem;
  --fs-2: 1.0625rem;
  --fs-3: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  --fs-4: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  --fs-5: clamp(2rem, 1.2rem + 3vw, 4rem);
  --fs-6: clamp(3rem, 1.6rem + 5vw, 6.5rem);
  --fs-7: clamp(2.75rem, 1rem + 6.4vw, 7.5rem);

  --r-sm: 10px;
  --r-md: 24px;
  --r-full: 999px;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(112px, 14vw, 200px);
  --header-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--fs-2); line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; z-index: 999; padding: 12px 20px; background: #fff; color: #000; }
.skip:focus { left: 16px; top: 16px; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow { font-size: var(--fs-1); font-weight: 700; letter-spacing: .2em; color: var(--accent-2); }
.title { margin-top: 16px; font-size: var(--fs-5); font-weight: 800; line-height: 1.18; letter-spacing: -.035em; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 32px; border-radius: var(--r-full); font-weight: 700; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent-bg); color: #fff; }
.btn--accent:hover { filter: brightness(1.1); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: #000; border-color: #fff; }

/* 등장 효과 */
[data-reveal] { opacity: 0; translate: 0 40px; transition: opacity 1.1s var(--ease), translate 1.1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; translate: none; }
.no-js [data-reveal] { opacity: 1; translate: none; }

/* 상단 진행 막대 */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent-bg); transform-origin: left; transform: scaleX(var(--progress, 0)); }

/* =========================================================
   Header — 어두운 반투명
   ========================================================= */
.header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color .4s, transform .4s var(--ease); }
.header.is-scrolled { background: rgba(5, 8, 15, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header.is-hidden { transform: translateY(-100%); }
/* v5: 메뉴가 열리면 흐림 효과를 끔 — 흐림 효과가 전체 화면 메뉴를 헤더 높이 안에 가두던 문제 */
.header.is-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.header__inner { max-width: calc(1440px + var(--gutter) * 2); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 40px; }
.header__logo { flex: none; }
.header__logo img { height: 34px; width: auto; }
.gnb { margin-left: auto; }
.gnb ul { display: flex; gap: 36px; }
.gnb a, .gnb__family-btn { font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); transition: color .2s; }
.gnb a:hover, .gnb__family-btn:hover { color: #fff; }
/* 패밀리 사이트 드롭다운 */
.gnb__family { position: relative; }
.gnb .gnb__drop { display: block; }
.gnb__family-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.gnb__drop {
  position: absolute; right: -16px; top: calc(100% + 14px); min-width: 180px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(11, 17, 29, .96); backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.gnb__drop::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
/* v5: 마우스 올리기 · 키보드 초점 · 클릭(is-open) 모두로 펼침, Esc 로 닫으면(is-closed) 마우스가 위에 있어도 닫힘 */
.gnb__family:hover .gnb__drop, .gnb__family:focus-within .gnb__drop, .gnb__family.is-open .gnb__drop { opacity: 1; visibility: visible; transform: none; }
.gnb__family.is-closed .gnb__drop { opacity: 0; visibility: hidden; }
.gnb__drop a { display: block; padding: 9px 14px; border-radius: 6px; font-size: var(--fs-1); white-space: nowrap; }
.gnb__drop a:hover { background: rgba(255, 255, 255, .08); }
.header__cta { flex: none; height: 40px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: var(--r-full); border: 1.5px solid rgba(255,255,255,.4); font-size: var(--fs-1); font-weight: 700; transition: background-color .3s, border-color .3s; }
.header__cta:hover { background: var(--accent-bg); border-color: transparent; }
.header__menu { display: none; }

/* =========================================================
   0. Intro
   ========================================================= */
.intro { position: relative; height: 100vh; height: 100svh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.intro__bg { position: absolute; inset: 0; }
/* 사진: 처음에 확대돼 있다가 천천히 원래 크기로(v2 첫 화면과 같은 효과, scale 속성)
   + 스크롤하면 다시 확대되며 어두워짐(transform) — 두 속성이 따로라 함께 적용됨 */
.intro__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + var(--intro, 0) * .2)); filter: brightness(calc(.5 - var(--intro, 0) * .35)); animation: intro-in 2.4s var(--ease) both, slow-zoom 18s var(--ease) both; }
@keyframes intro-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slow-zoom { from { scale: 1.18; } to { scale: 1; } }
/* 서브페이지 상단 사진도 같은 효과 (v2-sub.css 의 hero-zoom 은 v2.css 에만 정의돼 있어 v4 에서는 이 정의를 씀) */
@keyframes hero-zoom { from { scale: 1.18; } to { scale: 1; } }
.intro__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent, rgba(5,8,15,.75)); }
.intro__inner { position: relative; padding: 0 var(--gutter); opacity: calc(1 - var(--intro, 0) * 1.6); transform: translateY(calc(var(--intro, 0) * -80px)); }
.intro__eyebrow { font-size: var(--fs-1); font-weight: 700; letter-spacing: .3em; color: var(--ink-2); }
.intro__title { margin-top: 28px; font-size: var(--fs-7); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.intro__title .line { display: block; }
.intro__title em { font-style: normal; color: var(--accent-2); }
.intro__desc { margin-top: 32px; font-size: var(--fs-3); color: var(--ink-2); }
.intro__scroll { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--ink-3); }
.intro__scroll span { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.intro__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* =========================================================
   1. Story — 고정 무대 위로 장(챕터)이 지나감
   ========================================================= */
.story { position: relative; }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 6s linear; }
.story__img.is-active { opacity: 1; }
.story__img.is-active img { transform: scale(1); }
.story__stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,8,15,.92) 0%, rgba(5,8,15,.7) 38%, rgba(5,8,15,.15) 75%), linear-gradient(0deg, rgba(5,8,15,.6), transparent 40%);
}
/* 왼쪽 진행 표시 */
.story__rail { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 22px; }
.story__rail li { position: relative; display: flex; align-items: center; gap: 12px; padding-left: 20px; font-size: var(--fs-1); font-weight: 600; color: var(--ink-3); transition: color .4s; }
.story__rail li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ink-3); transition: background-color .4s, transform .4s var(--ease); }
.story__rail li span { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.story__rail li.is-active { color: #fff; }
.story__rail li.is-active::before { background: var(--accent-2); transform: scale(1.6); }

.story__chapters { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.chapter {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  max-width: 640px; margin-left: calc(var(--gutter) + 140px); padding: 120px 0;
  transition: opacity .8s var(--ease);
}
/* v5: 스크립트가 동작할 때(html.js-story)만 지나간 장면을 흐리게 — 스크립트가 없으면 모두 또렷하게 */
.js-story .chapter { opacity: .15; }
.js-story .chapter.is-active { opacity: 1; }
.chapter__no { font-size: var(--fs-1); font-weight: 700; letter-spacing: .14em; color: var(--accent-2); }
.chapter__title { margin-top: 20px; font-size: var(--fs-5); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.chapter__body { margin-top: 24px; font-size: var(--fs-3); line-height: 1.8; color: var(--ink-2); max-width: 520px; }
.chapter__more { align-self: flex-start; margin-top: 32px; display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1.5px solid rgba(255,255,255,.4); font-weight: 700; transition: gap .3s var(--ease), border-color .3s; }
.chapter__more::after { content: "\2192"; }
.chapter__more:hover { gap: 16px; border-color: #fff; }

/* =========================================================
   2. Numbers
   ========================================================= */
/* v5: 첫 화면 바로 아래로 옮기고 4개를 한 줄로 (핵심을 빨리 보여 줌) */
.numbers { padding: clamp(88px, 10vw, 144px) 0; background: var(--bg); }
.numbers__list { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 40px; }
.numbers__list li { padding: 40px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.numbers__list strong { font-size: calc(var(--fs-6) * .72); font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.numbers__list small { margin-left: 8px; font-size: .32em; letter-spacing: 0; color: var(--accent-2); }
.numbers__list li > span { color: var(--ink-2); }

/* =========================================================
   3. 가로 카드
   v5: 기본은 손가락 · 마우스로 넘기는 일반 가로 목록.
       스크립트가 동작하고 '동작 줄이기'가 꺼진 데스크톱에서만(html.hs-on) 세로 스크롤로 가로 이동.
       → 스크립트가 없거나 '동작 줄이기' 사용자도 카드 전부를 볼 수 있음
   ========================================================= */
.hscroll { position: relative; padding: var(--section) 0; background: var(--bg-2); }
.hscroll__sticky { display: flex; flex-direction: column; gap: 48px; }
.hscroll__head { width: 100%; }
.hscroll__track { display: flex; gap: 24px; padding: 0 var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.hscroll__track .bcard { scroll-snap-align: start; }
.hs-on .hscroll { padding: 0; }
.hs-on .hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; justify-content: center; gap: 56px; overflow: hidden; }
.hs-on .hscroll__track { overflow: visible; width: max-content; scroll-snap-type: none; padding-bottom: 0; transform: translateX(var(--x, 0px)); will-change: transform; }
.bcard { flex: none; width: clamp(280px, 30vw, 420px); }
.bcard a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 32px; border-radius: var(--r-md); overflow: hidden; }
.bcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bcard a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5,8,15,.92) 0%, rgba(5,8,15,.2) 60%); }
.bcard a:hover img { transform: scale(1.06); }
.bcard a > *:not(img) { position: relative; z-index: 2; }
.bcard__no { font-size: var(--fs-1); font-weight: 700; color: var(--accent-2); letter-spacing: .1em; }
.bcard strong { margin-top: 8px; font-size: var(--fs-4); font-weight: 800; letter-spacing: -.03em; }
.bcard strong::after { content: "\2192"; margin-left: .3em; display: inline-block;   /* v5: 공백 대신 간격 */
  transition: transform .3s var(--ease); }
.bcard a:hover strong::after { transform: translateX(6px); }
.bcard span:last-child { margin-top: 8px; color: var(--ink-2); }

/* =========================================================
   4. Partners
   ========================================================= */
.partners { padding: var(--section) 0; background: var(--bg); }
.partners .wrap:first-child { margin-bottom: 64px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; gap: 16px; padding-right: 16px; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* v5: 키보드 초점이 들어오거나 일시정지 버튼을 누르면 멈춤 */
.marquee:focus-within .marquee__track, .is-paused .marquee__track { animation-play-state: paused; }
.marquee-toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-full); font-size: var(--fs-1); font-weight: 600; color: var(--ink-2); }
.marquee-toggle:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.marquee__track li { flex: none; width: 220px; height: 96px; display: grid; place-items: center; padding: 0 24px; border-radius: var(--r-sm); background: #fff; }
.marquee__track img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.marquee__track li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* 파트너 — v2 메인과 같은 구성 (가운데 제목 · 로고 카드 · 두 줄 반대 방향), 배경은 v4 어두운 색 */
.partners--v2 { padding: var(--section) 0 calc(var(--section) * .6); background: var(--bg); color: #fff; text-align: center; overflow: hidden; }
.partners--v2 .wrap:first-child { margin-bottom: 56px; }
.partners--v2 .eyebrow { letter-spacing: .16em; }
.partners--v2 .title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); line-height: 1.3; letter-spacing: -.02em; color: #fff; }
.partners--v2 .marquee + .marquee { margin-top: 16px; }
.partners--v2 .marquee__track { animation-duration: 40s; }
.partners--v2 .marquee--reverse .marquee__track { animation-direction: reverse; }
.partners--v2 .marquee__track li { width: 240px; height: 96px; padding: 0 28px; border-radius: 8px; }
.partners--v2 .marquee__track img { max-height: 48px; opacity: .7; }
.family-band { padding: 72px 0; background: var(--bg); }
.family-band .family { margin-top: 0; }

/* 패밀리 카드 — v2 메인과 같은 모양 (SDPC AI 넓은 그라데이션 카드 + 에스디피씨 연한 카드) */
.famv2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.famv2__ai, .famv2__sdpc { display: flex; align-items: center; gap: 24px; min-height: 112px; padding: 24px 36px; border-radius: 20px; transition: transform .4s var(--ease), box-shadow .4s; }
.famv2__ai:hover, .famv2__sdpc:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.famv2__ai { background: linear-gradient(110deg, #0b2547, #1763f3); color: #fff; }
.famv2__ai img { height: 32px; width: auto; flex: none; }
.famv2__ai-text { font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.famv2__ai-text small { display: block; font-size: var(--fs-1); font-weight: 500; color: rgba(255, 255, 255, .7); }
.famv2__ai-go { margin-left: auto; flex: none; height: 40px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: var(--r-full); background: #fff; color: #142c49; font-size: var(--fs-1); font-weight: 700; }
.famv2__sdpc { background: #f5f8fc; color: #5b6d84; font-size: var(--fs-1); font-weight: 600; }
.famv2__sdpc img { height: 28px; width: auto; flex: none; }
.family { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.family__item { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-2); transition: border-color .3s, background-color .3s; }
.family__item:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.family__item img { height: 28px; width: auto; flex: none; }

/* =========================================================
   5. Ending
   ========================================================= */
.ending { position: relative; padding: calc(var(--section) * 1.2) 0; overflow: hidden; text-align: center; }
.ending__bg { position: absolute; inset: 0; }
.ending__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35); transform: scale(calc(1.2 - var(--end, 0) * .2)); }
.ending__inner { position: relative; }
.ending__title { margin-top: 20px; font-size: var(--fs-5); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.ending__desc { margin-top: 20px; font-size: var(--fs-3); color: var(--ink-2); }
.ending__btns { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 64px 0 40px; background: #000; color: var(--ink-3); font-size: var(--fs-1); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer__logo { height: 36px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__links a { color: var(--ink-2); font-weight: 600; }
.footer__links a:hover { color: #fff; }
.footer__info { margin-top: 28px; display: grid; gap: 6px; }
.footer__name { color: #fff; font-size: var(--fs-2); font-weight: 700; }
.footer__info span + span::before { content: "|"; margin: 0 12px; color: var(--line); }
.footer__info a:hover { color: #fff; }
.footer__copy { margin-top: 28px; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1024px) {
  .gnb ul { gap: 20px; }
  .chapter { margin-left: calc(var(--gutter) + 100px); }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .header__cta { display: none; }
  .header__logo img { height: 28px; }
  .header__menu { display: block; margin-left: auto; width: 40px; height: 40px; position: relative; z-index: 2; }
  .header__menu span, .header__menu span::before, .header__menu span::after { position: absolute; left: 10px; width: 20px; height: 2px; background: #fff; transition: transform .3s; }
  .header__menu span { top: 19px; }
  .header__menu span::before { content: ""; left: 0; top: -6px; }
  .header__menu span::after { content: ""; left: 0; top: 6px; }
  .header.is-open .header__menu span { background: transparent; }
  .header.is-open .header__menu span::before { transform: translateY(6px) rotate(45deg); }
  .header.is-open .header__menu span::after { transform: translateY(-6px) rotate(-45deg); }
  .gnb { position: fixed; inset: 0; z-index: 1; margin: 0; padding: calc(var(--header-h) + 24px) var(--gutter); background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .header.is-open .gnb { opacity: 1; visibility: visible; }
  .gnb ul { flex-direction: column; gap: 0; }
  .gnb a { display: block; padding: 16px 0; font-size: var(--fs-4); color: #fff; border-bottom: 1px solid var(--line); }
  .gnb__family-btn { display: block; width: 100%; text-align: left; padding: 16px 0; font-size: var(--fs-4); color: #fff; border-bottom: 1px solid var(--line); }
  .gnb__family-btn::after { display: none; }
  .gnb__family.is-closed .gnb__drop { opacity: 1; visibility: visible; }   /* 휴대폰 메뉴에서는 늘 펼쳐 둠 */
  .gnb__drop { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; padding: 8px 0 0; border: 0; background: none; backdrop-filter: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .gnb__drop a { padding: 6px 0; font-size: var(--fs-2); color: var(--ink-2); border: 0; }

  /* 휴대폰: 진행 표시는 위쪽 가로줄, 글은 아래쪽 */
  .story__rail { top: calc(var(--header-h) + 16px); transform: none; flex-direction: row; gap: 14px; }
  .story__rail li { padding-left: 0; padding-top: 14px; font-size: 11px; }
  .story__rail li::before { top: 0; left: 0; margin: 0; }
  .story__rail li span { display: none; }
  .story__stage::after { background: linear-gradient(0deg, rgba(5,8,15,.95) 0%, rgba(5,8,15,.75) 50%, rgba(5,8,15,.35) 100%); }
  .chapter { margin: 0; padding: 140px var(--gutter) 80px; justify-content: flex-end; max-width: none; }


  /* 휴대폰: 가로 카드는 늘 손가락으로 넘기는 목록 (v5: 기본 동작과 같음) */
  .hscroll__sticky { gap: 40px; }
  .hscroll__track { scrollbar-width: none; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .bcard { width: 78vw; }
  .numbers__list { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  /* v5: 첫 화면 사진 속 로고가 헤더 로고와 겹쳐 보이지 않게 사진 위치 조정 */
  .intro__bg img { object-position: 22% 60%; }
  /* v7: 사옥 사진(main-hero-building2, SDP 로고 합성본)은 왼쪽 건물의 SDP 로고가 보이게 */
  .intro__bg img[src*="main-hero-building"] { object-position: 21% 60%; }

  .family { grid-template-columns: 1fr; }
  .family__item { flex-wrap: wrap; gap: 12px 20px; padding: 24px; }
  .marquee__track li { width: 170px; height: 80px; }
  .partners--v2 .marquee__track li { width: 180px; height: 80px; padding: 0 20px; }
  .partners--v2 .marquee__track img { max-height: 40px; }
  .family-band { padding: 56px 0; }
  .famv2 { grid-template-columns: 1fr; }
  .famv2__ai { flex-wrap: wrap; gap: 12px 16px; padding: 24px; }
  .famv2__ai-go { margin-left: 0; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__info span { display: block; }
  .footer__info span + span::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; translate: none; }
  .js-story .chapter { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* v5: 에스디파마 1번 장면(밝은 알약 사진)이 다른 장면보다 튀지 않게 어둡게 */
.story__img img[src*="biz-wholesale-hero"] { filter: brightness(.62) saturate(.9); }

/* =========================================================
   상단 메뉴 하위 메뉴 (회사소개 · 사업분야 · 채용 · 고객센터) — v2 메뉴 묶음과 같음
   패밀리 사이트 드롭다운과 같은 모양, 메뉴 가운데 아래에 펼침
   ========================================================= */
.gnb__item { position: relative; }
.gnb__item > .gnb__drop { left: 50%; right: auto; transform: translate(-50%, 6px); }
.gnb__item:hover > .gnb__drop, .gnb__item:focus-within > .gnb__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb__item > a[aria-current], .gnb__drop a[aria-current="page"] { color: #fff; }

@media (max-width: 760px) {
  .gnb { overflow-y: auto; }
  .gnb__item > .gnb__drop, .gnb__item:hover > .gnb__drop, .gnb__item:focus-within > .gnb__drop { left: auto; transform: none; }
  .gnb__drop { padding: 8px 0 12px; }
}

/* =========================================================
   헤더 로고 — 처음엔 흰 로고, 스크롤하면(.is-scrolled) 컬러 로고 (v2 와 같은 동작)
   에스디파마 컬러 로고 PNG는 여백이 커서(400×222 중 그림 206×129) 흰 로고와 그림 크기가 같도록 맞춤
   에스디피씨는 sdpc.css 에서 두 로고 크기를 같게 덮어씀
   ========================================================= */
.header__logo { --lw: 54px; }
.header__logo a { display: block; position: relative; width: var(--lw); height: calc(var(--lw) * .63); }
.header__logo a img { position: absolute; max-width: none; height: auto; transition: opacity .35s; }
.header__logo .header__logo-light { left: 0; top: 0; width: var(--lw); }
.header__logo .header__logo-color { width: calc(var(--lw) * 1.942); left: calc(var(--lw) * -.466); top: calc(var(--lw) * -.18); opacity: 0; }
.header.is-scrolled .header__logo-light { opacity: 0; }
.header.is-scrolled .header__logo-color { opacity: 1; }
@media (max-width: 760px) { .header__logo { --lw: 44px; } }

/* 줄바꿈 위치 고정 — 휴대폰에서 "곳에,"만 떨어지지 않게 */
.nw { white-space: nowrap; }


/* =========================================================
   v6 밝은 테마 — v5 의 어두운 색 처리를 밝게 바꿈
   ========================================================= */
/* 사진 위 영역(어두운 막)은 흰 글자 */
.intro, .ending, .bcard a { color: #fff; }
.intro { --ink-2: rgba(255, 255, 255, .78); --ink-3: rgba(255, 255, 255, .6); --line: rgba(255, 255, 255, .2); }
.ending { --ink-2: rgba(255, 255, 255, .8); }
.bcard span:last-child { color: rgba(255, 255, 255, .78); }
.intro__title em, .bcard__no, .ending .eyebrow { color: #ff4b55; }

/* 헤더 — 첫 화면(사진) 위에서는 흰 글자, 스크롤하면 흰 배경 · 남색 글자 · 컬러 로고 (v2 와 같은 방식) */
.header .gnb > ul > li > a, .header .gnb__family-btn { color: rgba(255, 255, 255, .85); }
.header .gnb > ul > li > a:hover, .header .gnb__family-btn:hover, .header .gnb__item > a[aria-current] { color: #fff; }
.header.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .gnb > ul > li > a, .header.is-scrolled .gnb__family-btn { color: var(--ink-2); }
.header.is-scrolled .gnb > ul > li > a:hover, .header.is-scrolled .gnb__family-btn:hover, .header.is-scrolled .gnb__item > a[aria-current] { color: var(--ink); }
.header.is-open { background: #fff; }
.header.is-scrolled .header__menu span, .header.is-scrolled .header__menu span::before, .header.is-scrolled .header__menu span::after,
.header.is-open .header__menu span::before, .header.is-open .header__menu span::after { background: var(--ink); }
.header.is-open .header__logo-light { opacity: 0; }
.header.is-open .header__logo-color { opacity: 1; }

/* 드롭다운 — 흰 상자 */
.gnb__drop { background: #fff; border-color: var(--line); box-shadow: 0 16px 40px rgba(7, 26, 51, .14); backdrop-filter: none; }
.gnb__drop a { color: var(--ink-2); }
.gnb__drop a:hover { background: var(--bg-2); color: var(--ink); }
.gnb__drop a[aria-current="page"] { color: var(--accent); }

/* 이야기 — 사진 위에 흰 막을 왼쪽에 깔고 남색 글자 */
.story__stage::after {
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 36%, rgba(255,255,255,.2) 72%, rgba(255,255,255,0) 100%);
}
.story__rail li.is-active { color: var(--ink); }
.chapter__more { border-bottom-color: rgba(20, 44, 73, .35); }
.chapter__more:hover { border-color: var(--ink); }
.story__img img[src*="biz-wholesale-hero"] { filter: none; }   /* v5 의 어둡게 처리는 밝은 테마에서 불필요 */

/* 파트너 · 패밀리 */
.partners--v2 { color: var(--ink); }
.partners--v2 .title { color: var(--ink); }
.marquee__track li { border: 1px solid var(--line); }
.marquee-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.family-band { background: var(--bg); padding-top: 0; }
.famv2__sdpc { border: 1px solid var(--line); }
.famv2__ai:hover, .famv2__sdpc:hover { box-shadow: 0 20px 40px rgba(7, 26, 51, .12); }
.family__item:hover { border-color: var(--ink-3); background: var(--bg-2); }

/* 푸터 — 남색 (v2 와 같음) */
.footer { background: #071a33; color: rgba(255, 255, 255, .6); --line: rgba(255, 255, 255, .12); }
.footer__links a { color: rgba(255, 255, 255, .8); }

/* 휴대폰 */
@media (max-width: 760px) {
  .gnb { background: #fff; }
  .gnb > ul > li > a, .header .gnb > ul > li > a, .header .gnb__family-btn { color: var(--ink); }
  .gnb__drop { background: none; border: 0; box-shadow: none; }   /* 휴대폰 메뉴 안에서는 상자 없이 목록으로 */
  .gnb > ul > li > a, .gnb__family-btn { font-weight: 800; }
  .gnb__drop a { color: var(--ink-2); }
  .story__stage::after { background: linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 52%, rgba(255,255,255,.25) 100%); }
}
.header.is-open .header__menu span { background: transparent; }   /* X 모양 유지 */

/* float-buttons: v2 와 같은 문의 · 맨 위로 플로팅 버튼 */
.float { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s, transform .35s, visibility .35s; }
.float.is-show { opacity: 1; visibility: visible; transform: none; }
.float__btn { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: #fff; color: #142c49; font-family: inherit; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(7, 26, 51, .18); transition: transform .3s, background-color .3s; }
.float__btn:hover { transform: translateY(-3px); }
.float__btn svg { width: 22px; height: 22px; }
.float__btn span { font-size: 11px; font-weight: 700; line-height: 1.2; }
.float__btn--accent { background: var(--accent); color: #fff; }
.float__btn--accent:hover { background: var(--accent-2); }
@media (max-width: 1024px) { .float { right: 16px; bottom: 16px; } .float__btn { width: 50px; height: 50px; } }
@media (prefers-reduced-motion: reduce) { .float, .float__btn { transition: none; } }
