@charset "utf-8";
/* =====================================================
   WITHUSVISION CMS 보완 (wv.css)
   - 디자이너 원본 sh_common.css · sh_main.css (퍼블리싱_D)는 수정하지 않고, CMS 적용에 필요한 것만 여기서 추가
   - 텍스트 로고 · 인트로(A안) · 메인 비주얼 영상 · 게시물 없음/사진 없음 · 레이어 팝업
   ===================================================== */

/* 바탕색 : 원본은 body 배경 미지정 → 브라우저 다크 모드에서 흰 섹션이 검게 보이지 않도록 흰색 명시 */
html, body { background: #fff; }

/* 텍스트 로고 : 시안 B안 mainB_vis01(logo수정) · 인트로 mainA_intro 의 WITHUSVISION 워드마크 (원본 로고 파일 받으면 이미지로 교체) */
.wv_logo { display: inline-block; font-family: 'Nunito', var(--e-font), sans-serif; font-weight: 900; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
#shGnb .sh_logo a { display: block; }
#shGnb .sh_logo .wv_logo { font-size: 1.375rem; color: #fff; transition: color .2s; }
#shGnb.on .sh_logo .wv_logo, #shGnb.fix .sh_logo .wv_logo { color: #021844; }
#m_logo .wv_logo { font-size: 1.25rem; color: #021844; }
#sh_ft .ft_logo { height: auto; margin: 0; }
#sh_ft .ft_logo .wv_logo { font-size: 1.5rem; color: #fff; }

/* 영문 GNB : 하위메뉴명이 길어(Product Development Overview 등) 원본의 width:max-content 로는 옆 칸과 겹침
   → 1차 메뉴 칸 폭을 같게 고정하고 하위메뉴는 칸 안에서 줄바꿈 (글자 크기는 원본 유지) */
#shGnb .sh_nav { width: max-content; }
#shGnb .sh_nav > ul > li { width: 11.5rem; }
#shGnb .sh_nav > ul > li > a, #shGnb.on .sh_nav > ul > li > a, #shGnb.fix .sh_nav > ul > li > a { padding: 0 0.5rem; text-align: center; }
#shGnb .sh_lnb_s { width: 100%; padding-left: 0.5rem; padding-right: 0.5rem; }
#shGnb .sh_lnb_s li a { word-break: normal; overflow-wrap: break-word; }
#shGnb .sh_lnb_s li + li { margin-top: 0.25rem; }

/* 본문 바로가기 : 키보드 포커스 때만 보임 */
.skip_nav:focus { z-index: 1000; top: 0; left: 0; width: auto; height: auto; margin: 0; padding: 0.75rem 1.25rem; clip: auto; background: #021844; color: #fff; }

/* =====================================================
   인트로 : 시안 A안 mainA_intro — 흰 화면 + 중앙 로고 + 상단 진행 바(10px, #1D5382 → #44B4C4)
   261122 연출 강화 (약 4초, 세션당 1회)
   0.0~1.6  링 3겹이 그려지며 천천히 회전 (눈 · 홍채 모티프)
   0.3~1.3  로고 글자가 흐림→선명하게 하나씩 맺힘
   1.4~2.2  빛이 로고를 왼쪽→오른쪽으로 훑음
   1.0~2.0  하단 문구 OPHTHALMIC DRUG DELIVERY SYSTEM 자간이 좁혀지며 등장
   0.2~2.6  상단 진행 바 + 오른쪽 퍼센트(0→100)
   2.9~3.9  링·로고가 커지며 사라지고 흰 화면이 위로 걷힘 → 메인 영상이 살짝 줌아웃되며 드러남
   ===================================================== */
#wvIntro { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 50%, #fff 0%, #fff 45%, #f1f5fb 100%); clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.77,0,.18,1) .1s; }
.wv-intro-run #wvIntro { display: flex; }
.wv-intro-run body { overflow: hidden; }
.wv-intro-out #wvIntro { clip-path: inset(0 0 100% 0); }
/* 진행 바 · 퍼센트 */
#wvIntro .wv_intro_bar { position: absolute; left: 0; top: 0; width: 100%; height: 0.625rem; background: rgba(29,83,130,.08); }
#wvIntro .wv_intro_bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #1d5382 0%, #2c7c9f 50%, #44b4c4 100%); animation: wvIntroBar 2.4s cubic-bezier(.65,0,.35,1) .2s forwards; }
#wvIntro .wv_intro_pct { position: absolute; right: 3.75rem; bottom: 3rem; font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; letter-spacing: .08em; color: #1d5382; opacity: 0; animation: wvIntroFade .6s ease .2s forwards; }
#wvIntro .wv_intro_pct b { display: inline-block; min-width: 2.25rem; font-size: 2.25rem; font-weight: 700; letter-spacing: -.02em; text-align: right; }
/* 무대 : 링 + 로고 + 문구 */
#wvIntro .wv_intro_stage { position: relative; display: flex; flex-direction: column; align-items: center; transition: transform 1s cubic-bezier(.77,0,.18,1), opacity .7s; }
.wv-intro-out #wvIntro .wv_intro_stage { transform: scale(1.12) translateY(-2rem); opacity: 0; }
#wvIntro .wv_intro_ring { position: absolute; left: 50%; top: 50%; width: min(78vh, 46rem); height: min(78vh, 46rem); transform: translate(-50%, -50%) rotate(-90deg); overflow: visible; animation: wvIntroSpin 14s linear infinite; }
#wvIntro .wv_intro_ring circle { fill: none; stroke: url(#wvRingGrad); stroke-linecap: round; }
#wvIntro .wv_intro_ring .r1 { stroke-width: 1.2; stroke-dasharray: 1823; stroke-dashoffset: 1823; opacity: .55; animation: wvIntroDraw 1.6s cubic-bezier(.65,0,.35,1) .05s forwards; }
#wvIntro .wv_intro_ring .r2 { stroke-width: 2.4; stroke-dasharray: 1571; stroke-dashoffset: 1571; opacity: .85; animation: wvIntroDraw 1.4s cubic-bezier(.65,0,.35,1) .25s forwards; }
#wvIntro .wv_intro_ring .r3 { stroke-width: 1; stroke-dasharray: 4 10; opacity: 0; animation: wvIntroFade 1s ease .9s forwards, wvIntroSpinBack 9s linear infinite; transform-origin: 300px 300px; }
/* 로고 : 글자마다 흐림 → 선명 + 빛 훑기 */
#wvIntro .wv_intro_logo { position: relative; margin: 0; font-size: clamp(2.5rem, 5.9vw, 7.125rem); color: #1c5183; }
#wvIntro .wv_intro_logo span { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.4em) scale(.9); animation: wvIntroChar .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.3s + var(--i) * .06s); }
#wvIntro .wv_intro_logo::after { content: ""; position: absolute; inset: -10% -5%; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.95) 50%, transparent 65%); background-size: 250% 100%; background-position: 150% 0; mix-blend-mode: soft-light; pointer-events: none; animation: wvIntroShine 1s ease-in-out 1.4s forwards; }
#wvIntro .wv_intro_tag { margin: 1.5rem 0 0; font-family: 'Inter', sans-serif; font-size: clamp(0.75rem, 1vw, 1rem); font-weight: 600; letter-spacing: .9em; text-transform: uppercase; color: #2c7c9f; opacity: 0; animation: wvIntroTag 1.1s cubic-bezier(.2,.7,.2,1) 1s forwards; }
/* 메인 영상 : 인트로가 걷힐 때 살짝 줌아웃 */
.wv-intro-run #mainVisual .wv_hero_video { transform: scale(1.08); }
#mainVisual .wv_hero_video { transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
@keyframes wvIntroBar { to { width: 100%; } }
@keyframes wvIntroFade { to { opacity: 1; } }
@keyframes wvIntroDraw { to { stroke-dashoffset: 0; } }
@keyframes wvIntroSpin { to { transform: translate(-50%, -50%) rotate(270deg); } }
@keyframes wvIntroSpinBack { to { transform: rotate(-360deg); } }
@keyframes wvIntroChar { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes wvIntroShine { to { background-position: -50% 0; } }
@keyframes wvIntroTag { from { letter-spacing: .9em; opacity: 0; } to { letter-spacing: .32em; opacity: 1; } }
@media screen and (max-width: 768px) {
    #wvIntro .wv_intro_ring { width: 88vw; height: 88vw; }
    #wvIntro .wv_intro_pct { right: 1.25rem; bottom: 1.5rem; }
    #wvIntro .wv_intro_pct b { font-size: 1.75rem; }
    #wvIntro .wv_intro_tag { max-width: calc(100vw - 2.5rem); font-size: 0.6875rem; letter-spacing: .2em; text-align: center; }
    @keyframes wvIntroTag { from { letter-spacing: .45em; opacity: 0; } to { letter-spacing: .2em; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
    #wvIntro *, #wvIntro *::after { animation: none !important; }
    #wvIntro .wv_intro_bar i { width: 100%; }
    #wvIntro .wv_intro_logo span, #wvIntro .wv_intro_tag, #wvIntro .wv_intro_pct, #wvIntro .wv_intro_ring .r3 { opacity: 1; filter: none; transform: none; }
    #wvIntro .wv_intro_ring .r1, #wvIntro .wv_intro_ring .r2 { stroke-dashoffset: 0; }
}

/* =====================================================
   [1] 메인 비주얼 : 이미지 대신 영상 배경 + 대표 문구 1개 (카운터·화살표 없음)
   =====================================================*/
#mainVisual .wv_hero_video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
#mainVisual .main_slide { position: relative; z-index: 1; }

/* =====================================================
   [4] LATEST NEWS : 사진 없는 글은 회사 로고 (메인화면설계서 B안 p.14) · 게시물 없음
   ===================================================== */
.news_img.wv_noimg { display: flex; align-items: center; justify-content: center; }
.news_img.wv_noimg .wv_logo { font-size: 1.5rem; color: rgba(255,255,255,.85); }
.wv_news_empty { padding: 4rem 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-size: 1rem; text-align: center; color: var(--c-sub); }

/* =====================================================
   레이어 팝업 (관리자 > 팝업 관리)
   ===================================================== */
.wv_pop { position: fixed; z-index: 250; display: none; flex-direction: column; max-width: calc(100vw - 2rem); max-height: calc(100dvh - 2rem); background: #fff; border: 1px solid #021844; }
.wv_pop.on { display: flex; }
.wv_pop_body { flex: 1 1 auto; min-height: 0; overflow: auto; font-size: 1rem; line-height: 1.6; color: #0d1a3a; }
.wv_pop_body img { display: block; max-width: 100%; height: auto; }
.wv_pop_body a { display: block; }
.wv_pop_foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem 1rem; background: #021844; color: #fff; font-size: 0.8125rem; }
.wv_pop_foot label { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.wv_pop_foot input { width: 1rem; height: 1rem; }
.wv_pop_foot button { flex: none; padding: 0.25rem 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: #fff; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }

/* 영문 GNB 폭 : 로고·KOR|ENG·사이트맵 버튼과 겹치지 않는 칸 폭 (1440 이하는 하위메뉴 줄바꿈 늘어남)
   1280 이하 : 7개 영문 메뉴가 한 줄에 들어가지 않음 → 상단 메뉴는 숨기고 사이트맵 버튼(전체메뉴)으로 이동, 1024 이하는 원본 모바일 메뉴 */
@media screen and (max-width: 1860px) {
    #shGnb .sh_nav > ul > li { width: 9.5rem; }
}
@media screen and (max-width: 1600px) {
    #shGnb .sh_nav > ul > li { width: 8.25rem; }
}
@media screen and (max-width: 1440px) {
    #shGnb .sh_nav > ul > li { width: 7rem; }
}
@media screen and (max-width: 1280px) {
    #shGnb .sh_nav { display: none; }
}
@media screen and (max-width: 768px) {
    #m_logo .wv_logo { font-size: 1.125rem; }
    #sh_ft .ft_logo .wv_logo { font-size: 1.25rem; }
}

/* 모바일 보정 (261122) : 영문이 길어 디자이너 CSS 그대로면 어색한 곳
   - R&D PARTNERSHIP 카드 제목 : 원본 .card_part .card_tit(1.625rem)이 모바일 규칙보다 뒤에 있어 글자가 커져 한 단어씩 줄바꿈
   - 하단 문의 버튼 : 'Partnership Inquiry' 두 줄 → 한 줄 */
@media screen and (max-width: 768px) {
    .card_part .card_tit { font-size: 1.1875rem; }
    .card_tit br { display: none; }
    #sh_ft .ft_btn { gap: 0.5rem; padding: 0 0.75rem; font-size: 0.8125rem; white-space: nowrap; }
}
