/* E-8 첫 화면: E-7 첫 화면 + "약효가 나오는 시간까지" 원 연출 */
/* E-7 첫 화면: 영진약품식 — 화면을 꽉 채운 장면이 부드럽게 겹치며 바뀜, 문구는 1초 뒤 왼쪽 아래에 나타남 */
.y7-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #111; color: #fff; }
.y7-sc { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.y7-sc.on { opacity: 1; z-index: 1; }
.y7-sc video, .y7-sc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.y7-sc img { transform: scale(1.08); transition: transform 9s linear; }
.y7-sc.on img { transform: scale(1); }
.y7-sc + .y7-sc::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.14); }
.y7-dim { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .35s; pointer-events: none; }
.y7-hero.y7-dk .y7-dim { opacity: 1; }
.y7-hx { position: absolute; z-index: 3; left: max(40px, calc((100vw - 1280px) / 2 + 40px)); bottom: 15%; max-width: 720px; opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1); text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.y7-hx.on { opacity: 1; transform: none; }
.y7-hx small { font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: .08em; }
.y7-hx h1 { margin: 14px 0 0; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.22; letter-spacing: -0.04em; font-weight: 700; }
.y7-hx p { margin: 18px 0 0; font-size: 16px; line-height: 1.7; opacity: .9; }
.y7-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 24px; border: 1px solid rgba(255,255,255,.75); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; text-shadow: none; transition: background .3s, color .3s; }
.y7-more:hover { background: #fff; color: #111; }
.y7-ctl { position: absolute; z-index: 3; right: max(40px, calc((100vw - 1280px) / 2 + 40px)); bottom: 15%; display: flex; align-items: center; gap: 14px; font-size: 13px; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.y7-no { font-family: inherit; letter-spacing: .04em; opacity: .85; } .y7-no b { font-weight: 700; opacity: 1; }
.y7-lb { min-width: 96px; font-weight: 600; }
.y7-bar { position: relative; width: 120px; height: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.y7-bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.y7-ctl button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; transition: background .3s, color .3s; }
.y7-ctl button:hover { background: #fff; color: #111; }
.y7-ctl #y7-pp { font-size: 10px; letter-spacing: -2px; }
.y7-fn { position: absolute; z-index: 3; left: max(40px, calc((100vw - 1280px) / 2 + 40px)); bottom: 20px; margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }

/* 원이 커지는 고정 화면 */
.y7-pin-w { position: relative; height: 320vh; background: #fff; }
.y7-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.y7-circ { position: relative; height: 100%; }
.y7-ct { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: #111; }
.y7-ct h2 { margin: 16px 0 0; font-size: clamp(34px, 4.2vw, 62px); line-height: 1.22; letter-spacing: -0.045em; font-weight: 700; opacity: 0; }
.y7-cd { opacity: 0; }
.y7-cd p { margin: 34px 0 0; font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.88); }
.y7-more2 { display: inline-flex; align-items: center; gap: 12px; margin-top: 56px; padding: 15px 30px; border: 1px solid rgba(255,255,255,.85); border-radius: 999px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .3s, color .3s; }
.y7-more2:hover { background: #fff; color: #111; }
.y7-ball { position: absolute; inset: 0; z-index: 1; clip-path: circle(0px at 50% 50%); overflow: hidden; }
.y7-ball img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.y7-ball::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }

@media (max-width: 960px), (hover: none) {
  .y7-hero { min-height: 560px; }
  .y7-hx { left: 20px; right: 20px; bottom: 120px; }
  .y7-hx h1 { font-size: 30px; }
  .y7-hx p { font-size: 15px; }
  .y7-ctl { left: 20px; right: auto; bottom: 64px; gap: 10px; }
  .y7-lb, .y7-ctl #y7-prev, .y7-ctl #y7-next { display: none; }
  .y7-bar { width: 90px; }
  .y7-fn { left: 20px; }
  .y7-pin-w { height: auto; }
  .y7-pin { position: static; height: auto; }
  .y7-circ { padding: 80px 20px; }
  .y7-ct { position: relative; top: auto; transform: none !important; padding: 72px 20px; color: #fff !important; }
  .y7-ct h2, .y7-cd { opacity: 1 !important; transform: none !important; }
  .y7-circ { padding: 0 !important; }
  .y7-ball { clip-path: none !important; }
  .y7-ball img { transform: none !important; }
  .y7-cd p { font-size: 15px; } .y7-cd br { display: none; }
  .y7-ct .kv-eb { color: #7fd8b2; }
  .y7-more2 { margin-top: 32px; }
  .y7-ct h2 { font-size: 28px; }
}
/* E-8에 맞춤: 머리말(흰색) 아래 높이, 초록 소제목 */
body[data-page="home"] main { padding-top: var(--hh); }
.y7-hero { height: calc(100svh - var(--hh)); }
.kv-eb { display: block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--g); }
.y7-hx small { font-size: 14px; }
.y7-pin { top: 0; }
