/* E-7 공통: 영진약품식 구조 (흰 바탕 · 검정 글자 #1A1A1A · 포인트 CI 초록 · pill 버튼 · 세그먼트 탭 · 큰 여백)
   포인트 색만 영진 파랑(#0099D9) 대신 맥널티 CI 초록(#018356) */
:root { --y-ink: #1a1a1a; --y-pt: #018356; --y-pt-h: #029a66; --y-pt-d: #016a45; --y-pt-l: #e6f3ee; --y-g5: #555; --y-g7: #727272; --y-g9: #999; --y-ln: #e5e5e5; --y-ln2: #d9d9d9; --y-bg: #f2f4f6; --y-bg2: #f5f5f5; --y-bg3: #fafafa; --hd: 90px; }
body { color: var(--y-ink); letter-spacing: -0.03em; background: #fff; }
.y7-inner { width: min(1320px, calc(100% - 2 * clamp(20px, 4.2vw, 60px))); margin: 0 auto; }
.y7-small { width: min(900px, calc(100% - 40px)); margin: 0 auto; }

/* ── 헤더 ── */
body .header { position: fixed !important; left: 0; right: 0; top: 0; z-index: 60; }
body .header > .wrap { max-width: none; width: 100%; height: var(--hd) !important; padding: 0 40px; gap: 0; }
body .header .logo img { height: 40px !important; }
body .header .gnb-nav { margin: 0 auto 0 56px; }
body .header .gnb { gap: 0; }
body .header .gnb > li > a { padding: 0 28px; font-size: 16px; font-weight: 600 !important; letter-spacing: -0.03em; height: var(--hd); display: flex; align-items: center; }
body .header .gnb > li > a::after { display: none !important; }
body .header .allmenu { top: var(--hd); }
body .header .am-col a { font-size: 14px; font-weight: 600; color: var(--y-g5) !important; padding: 6px 0; }
body .header .am-col a:hover { color: var(--y-pt) !important; }
body .header .am-col.hl a { color: var(--y-ink) !important; }
body .header .am-col.hl a:hover { color: var(--y-pt) !important; }
body .header .am-in { padding-top: 26px; }
body .header .header-cta { gap: 18px; }
body .header .header-cta > .btn { display: none; }
body .header.hd-hide:not(.am-on) { transform: translateY(-100%); }
/* 투명 헤더: 메인 · 큰 사진이 있는 하위 페이지 */
.y7-kvpage .header:not(.scrolled):not(.am-on) { background: transparent !important; border-bottom-color: rgba(255,255,255,.2) !important; }
.y7-kvpage .header:not(.scrolled):not(.am-on) .logo img { filter: brightness(0) invert(1); }
.y7-kvpage .header:not(.scrolled):not(.am-on) .gnb > li > a { color: #fff !important; }
.y7-kvpage .header:not(.scrolled):not(.am-on) .header-cta .globe, .y7-kvpage .header:not(.scrolled):not(.am-on) .y7-cu-b, .y7-kvpage .header:not(.scrolled):not(.am-on) .y7-srch { color: #fff; border-color: rgba(255,255,255,.5); }
.y7-kvpage .header:not(.scrolled):not(.am-on) .menu-btn { border-color: rgba(255,255,255,.5) !important; }
.y7-kvpage .header:not(.scrolled):not(.am-on) .menu-btn span { background: #fff !important; }
.header .header-cta .globe { border: 0 !important; background: transparent !important; padding: 0; font-weight: 600; }
.y7-cu { position: relative; }
.y7-cu-b { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0; border: 0; background: none; color: var(--y-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.y7-cu-b i { font-style: normal; font-size: 10px; transition: transform .3s; }
.y7-cu.open .y7-cu-b i { transform: rotate(180deg); }
.y7-cu-l { position: absolute; right: -12px; top: calc(100% + 8px); display: grid; gap: 10px; min-width: 168px; padding: 14px 16px; background: #fff; border: 1px solid var(--y-ink); border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s, visibility 0s .3s; }
.y7-cu.open .y7-cu-l { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s; }
.y7-cu-l a { font-size: 14px; font-weight: 500; color: var(--y-ink); text-decoration: none; white-space: nowrap; }
.y7-cu-l a:hover { color: var(--y-pt); }
.y7-srch { display: grid; place-items: center; width: 32px; height: 32px; color: var(--y-ink); }
body .header .menu-btn { border: 0 !important; background: none !important; }

/* ── 하위 페이지 상단 ── */
.y7-st { position: relative; padding: calc(var(--hd) + 76px) 0 0; text-align: center; }
.y7-st-t { position: relative; z-index: 2; }
.y7-bc { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.y7-bc > div { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--y-g9); }
.y7-bc a { color: inherit; text-decoration: none; }
.y7-bc i { font-style: normal; opacity: .7; }
.y7-bc strong { font-weight: 500; color: inherit; }
.y7-st h1 { margin: 26px 0 0; font-size: clamp(32px, 3.34vw, 48px); line-height: 1.2; font-weight: 600; letter-spacing: -0.04em; }
.y7-st.kv { height: 480px; padding: 0; color: #fff; overflow: hidden; }
.y7-st.kv.full { height: 100svh; min-height: 620px; }
.y7-st.kv .y7-st-t { padding-top: 194px; }
.y7-st.kv.full .y7-st-t { position: absolute; left: 0; right: 0; top: 42%; padding: 0; }
.y7-st.kv .y7-bc > div { color: rgba(255,255,255,.85); }
.y7-st-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: y7kv 2.4s cubic-bezier(.16,1,.3,1) forwards; }
.y7-st.kv::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
@keyframes y7kv { to { transform: scale(1); } }
.y7-st-t > * { animation: y7up .9s cubic-bezier(.16,1,.3,1) both; }
.y7-st-t h1 { animation-delay: .12s; }
@keyframes y7up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.y7-lead { width: min(900px, calc(100% - 40px)); margin: 100px auto 0; text-align: center; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.5; font-weight: 600; letter-spacing: -0.04em; }
.y7-lead-s { margin: 28px auto 0; font-size: 16px; font-weight: 500; color: var(--y-g7); line-height: 1.7; }

/* 세그먼트 탭 */
.tabs { display: flex !important; justify-content: center; width: max-content; max-width: 100%; margin: 56px auto 0 !important; padding: 0 !important; border: 0 !important; background: var(--y-bg); border-radius: 4px; overflow-x: auto; }
.tabs li { flex: none; }
.tabs a { min-height: 44px !important; min-width: 128px; justify-content: center; padding: 0 22px !important; font-size: 15px !important; font-weight: 600; color: var(--y-g5) !important; border-radius: 4px; transition: background .3s, color .3s; }
.tabs a::after { display: none !important; }
.tabs a[aria-current="page"] { background: var(--y-ink); color: #fff !important; }
.y7-lead + .wrap .tabs { margin-top: 48px !important; }

/* ── 본문 블록 ── */
main.page { padding-top: 80px !important; padding-bottom: 40px; }
.block { padding: 0 0 100px !important; border: 0 !important; }
.block h3 { font-size: clamp(26px, 2.5vw, 36px) !important; line-height: 1.35 !important; font-weight: 600 !important; letter-spacing: -0.04em !important; color: var(--y-ink); }
.block h3 small { display: block; margin-bottom: 14px; font-size: 14px !important; font-weight: 700; letter-spacing: .04em; color: var(--y-pt) !important; }
.block p, .block li { color: var(--y-g5); }
.block .txt p { font-size: 17px; line-height: 1.8; }
.block img { border-radius: 8px; }
.block .two img, .block .im img { border-radius: 16px; }
.block .feat > *, .block .values4 > *, .block .people > *, .block .stats > * { border-radius: 8px !important; box-shadow: none !important; }
.block .values4 > *, .block .people > *, .block .feat > * { background: #f9fafb !important; border: 1px solid var(--y-ln) !important; }
.block .stats { border-color: var(--y-ln) !important; }
.block .tbl th { background: var(--y-bg3) !important; color: var(--y-ink); font-weight: 600; }
.block .tbl, .block .tbl td, .block .tbl th { border-color: var(--y-ln) !important; }
.btn { border-radius: 999px !important; }
.btn:not(.white):not(.ghost-w):not(.line) { background: var(--y-pt) !important; border-color: var(--y-pt) !important; color: #fff !important; }
.btn.line { background: #fff !important; border: 1px solid var(--y-pt) !important; color: var(--y-pt) !important; }

/* 연혁: 가운데 세로선 + 초록 점 */
.hist { position: relative; }

/* 등장 모션 */
.y7-mo { opacity: 0; transform: translateY(60px); transition: opacity .7s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.y7-mo.on { opacity: 1; transform: none; }

/* ── 꼬리말 ── */
.y7-ft { margin-top: 120px; padding: 64px 0 72px !important; background: #fff !important; color: var(--y-ink) !important; border-top: 1px solid #ddd; }
.y7-ft-in { display: flex; justify-content: space-between; gap: 40px; }
.y7-ft-logo { height: 40px; width: auto; }
.y7-ft-sl { margin: 28px 0 0; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.4; font-weight: 600; letter-spacing: -0.04em; }
.y7-ft-pl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 40px 0 0; }
.y7-ft-pl a { font-size: 15px; color: #333 !important; text-decoration: none; }
.y7-ft-pl a.b { font-weight: 700; }
.y7-ft-pl select { height: 38px; padding: 0 14px; border: 1px solid var(--y-ln2); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--y-g5); }
.y7-ft .bottom { display: block !important; margin: 18px 0 0 !important; padding: 0 !important; border: 0 !important; }
.y7-ft .bottom p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--y-g7) !important; }
.y7-ft .bottom .copy { margin-top: 18px; color: var(--y-g9) !important; }
.y7-adm { display: inline-block; margin-left: 12px; padding: 3px 12px; border: 1px solid var(--y-ln2); border-radius: 999px; color: var(--y-g5) !important; font-weight: 600; text-decoration: none; }
.y7-ft .f-lang { margin: 22px 0 0 !important; padding: 0 !important; width: auto !important; border: 0 !important; }
.y7-ft .f-lang button, .y7-ft .f-lang .f-lang-t { color: var(--y-g5) !important; }
.y7-ft .r { list-style: none; margin: 0; padding: 0 60px 0 0; display: grid; align-content: start; gap: 14px; }
.y7-ft .r a { display: inline-flex; gap: 14px; align-items: center; font-size: clamp(20px, 1.67vw, 24px); font-weight: 600; color: var(--y-ink); text-decoration: none; letter-spacing: -0.04em; transition: color .3s; }
.y7-ft .r a:hover { color: var(--y-pt); }
.y7-ft .r i { font-style: normal; font-size: .8em; }
/* 빠른 버튼: 초록 원 + 검정 원 */
.dock { right: 32px !important; bottom: 32px !important; gap: 8px !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; }
.dock button { width: 64px !important; height: 64px !important; border-radius: 50% !important; background: var(--y-pt) !important; color: #fff !important; font-size: 11px !important; box-shadow: none !important; }
.dock button .ch { background: #fff !important; color: var(--y-pt) !important; }
.dock button.top { background: var(--y-ink) !important; }

/* ── 메인 전용 ── */
.y7m .y7-pin-w + .hw-part, .y7m .hw-part { padding-top: 140px; }
/* 사업 3장면: 큰 영어 단어 → 설명으로 바뀜 */
.y7-biz-w { position: relative; height: 420vh; }
.y7-biz-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.y7-biz { position: relative; height: 100%; background: #000; }
.y7-bp { position: absolute; inset: 0; color: #fff; clip-path: inset(100% 0 0 0); }
.y7-bp[data-i="0"] { clip-path: inset(0 0 0 0); }
.y7-bp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.y7-bp::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); }
.y7-bw { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-size: clamp(90px, 12.5vw, 240px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; }
.y7-bp .y7-bx { position: absolute; z-index: 3; left: max(40px, calc((100vw - 1320px) / 2)); top: 50%; transform: translateY(-50%); max-width: 640px; opacity: 0; }
.y7-bp .y7-bx small { display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: 13px; font-weight: 600; }
.y7-bp .y7-bx h2 { margin: 22px 0 0; font-size: clamp(30px, 2.9vw, 42px); line-height: 1.3; font-weight: 600; letter-spacing: -0.045em; }
.y7-bp .y7-bx p { margin: 22px 0 0; font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.88); }
.y7-bp .y7-more2 { margin-top: 40px; }
.y7-bdots { position: absolute; z-index: 4; right: max(40px, calc((100vw - 1320px) / 2)); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; text-align: right; }
.y7-bdots li { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.45); transition: color .3s; }
.y7-bdots li.on { color: #fff; }
/* 최신 소식: 왼쪽 제목, 오른쪽 목록 */
.y7-news { padding: 140px 0 40px; }
.y7-news .y7-inner { display: grid; grid-template-columns: 1fr 1.7fr; gap: 60px; }
.y7-news h2 { margin: 0; font-size: clamp(30px, 2.9vw, 42px); font-weight: 600; letter-spacing: -0.03em; }
.y7-news .l p { margin: 18px 0 0; font-size: 16px; color: var(--y-g7); }
.y7-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; height: 48px; padding: 0 24px; border-radius: 999px; background: #f2f2f2; color: var(--y-ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: background .4s; }
.y7-btn:hover { background: #e5e5e5; }
.y7-news .r { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--y-ink); }
.y7-news .r a { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--y-ln); color: inherit; text-decoration: none; transition: background .3s; }
.y7-news .r a:hover { background: var(--y-bg3); }
.y7-news .r span { font-size: 14px; font-weight: 600; color: var(--y-pt); }
.y7-news .r b { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.y7-news .r time { font-size: 14px; color: var(--y-g7); }
.up { opacity: 0; transform: translateY(50px); transition: opacity .7s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.up.on { opacity: 1; transform: none; }

@media (max-width: 960px) {
  :root { --hd: 64px; }
  body .header > .wrap { padding: 0 20px; }
  body .header .logo img { height: 32px !important; }
  .y7-cu, .y7-srch { display: none; }
  .y7-st { padding-top: calc(var(--hd) + 48px); }
  .y7-st.kv { height: 360px; }
  .y7-st.kv .y7-st-t { padding-top: 140px; }
  .y7-st h1 { margin-top: 16px; font-size: 30px; }
  .y7-lead { margin-top: 56px; font-size: 20px; }
  .y7-lead br { display: none; }
  .tabs { justify-content: flex-start; width: auto; margin: 36px 0 0 !important; }
  .tabs a { min-width: 0; padding: 0 16px !important; font-size: 14px !important; }
  main.page { padding-top: 48px !important; }
  .block { padding-bottom: 64px !important; }
  .y7-ft-in { flex-direction: column; }
  .y7-ft .r { display: none; }
  .y7-ft-pl { gap: 10px 18px; }
  .dock { right: 16px !important; bottom: 16px !important; }
  .dock button { width: 54px !important; height: 54px !important; }
  .y7-biz-w { height: auto; }
  .y7-biz-pin { position: static; height: auto; }
  .y7-biz { height: auto; background: none; }
  .y7-bp { position: relative; height: 82svh; clip-path: none !important; }
  .y7-bp img { transform: none !important; }
  .y7-bw { display: none; }
  .y7-bp .y7-bx { left: 20px; right: 20px; opacity: 1 !important; transform: translateY(-50%) !important; }
  .y7-bp .y7-bx br { display: none; }
  .y7-bdots { display: none; }
  .y7-news { padding-top: 90px; }
  .y7-news .y7-inner { grid-template-columns: 1fr; gap: 32px; }
  .y7-news .r a { grid-template-columns: 1fr; gap: 6px; padding: 22px 4px; }
  .y7-news .r b { white-space: normal; }
}

/* ── 페이지별 다듬기 ── */
/* 숫자·특징 칸: 진한 초록 면 → 연한 회색 카드 + 초록 숫자 (영진 연구분야 카드 방식) */
.block .stats { gap: 16px !important; border: 0 !important; background: none !important; }
.block .stats li { background: #f9fafb !important; border: 1px solid var(--y-ln) !important; border-radius: 8px !important; color: var(--y-ink) !important; padding: 32px 28px !important; }
.block .stats li b { color: var(--y-pt) !important; font-weight: 700; }
.block .stats li span { color: var(--y-g5) !important; }
.block .stats li::before, .block .stats li::after { display: none !important; }
.feat li::before { background: var(--y-pt) !important; }
.eq-big .n { background: var(--y-ink) !important; border-radius: 4px !important; }
/* 제품 카드: 선 카드 + 분류 + 이름 */
.pc { border: 1px solid var(--y-ln) !important; border-radius: 8px !important; padding: 0 0 18px !important; background: #fff !important; overflow: hidden; box-shadow: none !important; transition: border-color .3s; }
.pc:hover { border-color: var(--y-ink) !important; }
.pc .thumb { border-radius: 0 !important; background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--y-ln) !important; }
.pc .cat { padding: 0 18px; margin-top: 16px !important; font-size: 13px !important; color: var(--y-g9) !important; }
.pc .name { padding: 0 18px; font-size: 17px !important; font-weight: 600 !important; color: var(--y-ink) !important; }
.pc .acts { padding: 0 18px; }
.pc .acts button { border-radius: 999px !important; }
.pc .acts .main { background: #fff !important; color: var(--y-pt) !important; border: 1px solid var(--y-pt) !important; }
.pc .tp { border-radius: 4px !important; background: var(--y-pt) !important; }
.pc .tp.g { background: var(--y-ink) !important; }
.seg button[aria-pressed="true"], .seg .on, .p-cats button[aria-pressed="true"] { background: var(--y-ink) !important; border-color: var(--y-ink) !important; color: #fff !important; }
.p-search input, .p-search { border-radius: 999px !important; }
/* 꼬리말 패밀리 사이트 선택 */
.y7-ft .fam select, #fam-sel { background: #fff !important; color: var(--y-g5) !important; border: 1px solid var(--y-ln2) !important; border-radius: 8px !important; }
/* 문의 페이지 입력칸 */
.inp, .ta, select.inp { border-radius: 8px !important; border-color: var(--y-ln2) !important; }
.inp:focus, .ta:focus { border-color: #6d6f79 !important; box-shadow: none !important; }
/* 연혁: 영진식 세로선 + 초록 점 타임라인 */
.hist { position: relative; border-top: 0 !important; margin-top: 40px !important; }
.hist::before { content: ""; position: absolute; left: 180px; top: 8px; bottom: 8px; width: 1px; background: var(--y-ln2); }
.hist > li { grid-template-columns: 180px minmax(0, 1fr) !important; gap: 48px !important; padding: 22px 0 !important; border: 0 !important; position: relative; }
.hist > li::before { content: ""; position: absolute; left: 175px; top: 30px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--y-pt); box-sizing: border-box; }
.hist > li:first-child::before { background: var(--y-pt); }
.hist .y { font-family: inherit !important; font-size: 24px !important; font-weight: 600 !important; color: var(--y-ink) !important; }
.hist ul li { color: var(--y-g5) !important; }
.hist ul li::before { display: none !important; }
.hist ul li { padding-left: 0 !important; }
@media (max-width: 960px) {
  .hist::before { left: 5px; }
  .hist > li { grid-template-columns: 1fr !important; gap: 6px !important; padding-left: 28px !important; }
  .hist > li::before { left: 0; top: 26px; }
}

/* 11/4 메뉴: 넓은 간격 + 올리면 초록 밑줄 (E-8 방식) */
@media (min-width: 961px) {
  body .header .gnb-nav { margin-left: clamp(40px, 5vw, 96px); }
  body .header .gnb > li { min-width: clamp(132px, 11vw, 176px); }
  body .header .gnb > li > a { position: relative; justify-content: center; padding: 0 20px; font-size: 17px; }
  body .header .gnb > li > a::after { display: block !important; content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--y-pt); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22,1,.36,1); opacity: 1 !important; }
  body .header .gnb > li.hl > a::after, body .header .gnb > li > a:hover::after, body .header .gnb > li > a[aria-current="page"]::after { transform: scaleX(1); }
  body .header .gnb:hover > li:not(.hl) > a[aria-current="page"]::after, body .header.am-on .gnb > li:not(.hl) > a[aria-current="page"]::after { transform: scaleX(0); }
  body .header .gnb > li.hl > a, body .header .gnb > li > a[aria-current="page"] { color: var(--y-ink) !important; }
  .y7-kvpage .header:not(.scrolled):not(.am-on) .gnb > li > a::after { background: #fff; }
  body .header .am-in { padding-top: 34px; }
  body .header .am-col { padding-bottom: 44px; }
  body .header .am-col a { font-size: 15px; padding: 8px 0; }
  body .header .am-col.hl { position: absolute; }
}
@media (min-width: 961px) {
  body .header .gnb > li > a { width: 100%; }
  body .header .gnb > li > a::after { background: var(--y-pt) !important; height: 3px !important; bottom: 0 !important; border: 0 !important; }
  .y7-cu-b { white-space: nowrap; }
  body .header .header-cta { flex: none; }
}
@media (min-width: 961px) and (max-width: 1240px) { body .header .gnb > li { min-width: 112px; } body .header .gnb-nav { margin-left: 28px; } }
