/* ---------- 맥널티 그룹 랜딩 (유한건강생활 인트로 방식: 풀스크린 사진 + 큰 제목 + 번호 탭, 아래로 그룹 내용) ---------- */
body.grp { margin: 0; background: #fff; color: var(--ink); }
.grp .wrap { width: min(1280px, 100% - 2 * var(--gut, 24px)); margin: 0 auto; }
.grp .eb { display: block; font-family: var(--en); font-size: 12px; font-weight: 700; letter-spacing: .22em; color: var(--blue); text-transform: uppercase; }
.grp .sh { text-align: center; margin-bottom: 56px; }
.grp .sh h2 { margin: 14px 0 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.25; letter-spacing: -0.045em; font-weight: 800; }
.grp .sec { padding: 120px 0; }
.grp .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.grp .more:hover { color: var(--blue); border-color: var(--blue); }

/* 헤더: 히어로 위에서는 투명+흰 글씨, 스크롤하면 흰 바탕 */
.gh { position: fixed; z-index: 50; left: 0; right: 0; top: 0; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.gh .wrap { display: flex; align-items: center; gap: 36px; height: 80px; }
.gh .iw { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; }
.gh .iw b { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; }
.gh .iw span { font-size: 11px; font-weight: 700; letter-spacing: .22em; opacity: .85; }
.gn { display: flex; gap: 30px; margin-left: 24px; }
.gn a { font-size: 15px; font-weight: 500; color: inherit; text-decoration: none; opacity: .9; transition: opacity .2s, color .2s; }
.gn a:hover { opacity: 1; }
.gcta { margin-left: auto; font-size: 14px; font-weight: 600; color: inherit; text-decoration: none; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 10px 18px; transition: background .25s, color .25s, border-color .25s; }
.gcta:hover { background: #fff; color: #111; }
.gh.scrolled { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.gh.scrolled .gcta { border-color: var(--ink); }
.gh.scrolled .gcta:hover { background: var(--ink); color: #fff; }
.gh.scrolled .gn a:hover { color: var(--blue); }
.gm { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; }
.gm span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s; }
.gm span:nth-child(1) { top: 17px; } .gm span:nth-child(2) { top: 25px; }
.gh.open .gm span:nth-child(1) { transform: translateY(4px) rotate(45deg); } .gh.open .gm span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.gmenu { display: none; }

/* 히어로 */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #0f1113; color: #fff; }
.hero .sl { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease), transform 7s linear; }
.hero .sl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.6) 100%); }
.hero .sl.on { opacity: 1; transform: scale(1); }
.hx { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 24px; }
.hx .t { grid-area: 1 / 1; max-width: 900px; opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) .2s, transform .9s var(--ease) .2s; pointer-events: none; }
.hx .t.on { opacity: 1; transform: none; pointer-events: auto; }
.hx small { display: block; font-family: var(--en); font-size: 12px; font-weight: 700; letter-spacing: .26em; opacity: .9; }
.hx h1 { margin: 18px 0 0; font-size: clamp(32px, 5vw, 66px); line-height: 1.2; letter-spacing: -0.045em; font-weight: 800; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hx p { margin: 20px 0 0; font-size: 17px; line-height: 1.7; opacity: .92; }
.hb { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; min-height: 50px; padding: 0 26px; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .25s, color .25s; }
.hb i { font-style: normal; }
.hb:hover { background: #fff; color: #111; }
.htabs { position: absolute; left: 0; right: 0; bottom: 48px; display: flex; justify-content: center; gap: 36px; padding: 0 24px; }
.htabs button { position: relative; background: none; border: 0; padding: 0 0 14px; color: rgba(255,255,255,.55); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; transition: color .3s; font-family: inherit; }
.htabs button em { font-style: normal; font-family: var(--en); margin-right: 4px; }
.htabs button i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.2); }
.htabs button i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; }
.htabs button[aria-selected="true"] { color: #fff; }
.htabs button.run i::after { animation: bar 6s linear forwards; }
@keyframes bar { to { width: 100%; } }
.hero .scroll { position: absolute; right: 40px; bottom: 44px; font-family: var(--en); font-size: 10px; letter-spacing: .3em; opacity: .7; display: flex; align-items: center; gap: 10px; }
.hero .scroll i { width: 48px; height: 1px; background: #fff; display: block; animation: sc 1.8s ease-in-out infinite; }
@keyframes sc { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* 그룹 소개 */
.about { text-align: center; }
.about h2 { margin: 16px auto 0; max-width: 980px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; letter-spacing: -0.045em; font-weight: 800; }
.about .lead { margin: 28px auto 0; max-width: 860px; font-size: 16px; line-height: 1.85; color: var(--text); }
.about .band { margin: 56px 0 0; border-radius: 20px; overflow: hidden; height: clamp(220px, 32vw, 420px); }
.about .band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.pills a { min-height: 46px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .25s, color .25s; }
.pills a:hover, .pills a.on { background: var(--ink); color: #fff; }
.pills a.on:hover { background: var(--blue); border-color: var(--blue); }
.about .note { margin: 32px auto 0; max-width: 760px; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* 숫자 */
.nums { padding: 0 0 120px; }
.nums ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.nums li { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--line); }
.nums li:nth-child(3n+2), .nums li:nth-child(3n+3) { padding-left: 28px; border-left: 1px solid var(--line); }
.nums b { display: block; font-family: var(--en); font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.05em; color: var(--blue); font-variant-numeric: tabular-nums; }
.nums b small { font-size: .4em; margin-left: 6px; letter-spacing: -0.02em; color: var(--ink); }
.nums span { display: block; margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--ink); }
.nums em { display: block; margin-top: 4px; font-style: normal; font-size: 13px; color: var(--muted); }

/* 경영철학 */
.phil { background: var(--soft); }
.phil ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.phil li { padding: 36px 32px 40px; background: #fff; border-radius: 20px; }
.phil small { display: block; font-family: var(--en); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--blue); }
.phil b { display: block; margin-top: 14px; font-size: 24px; font-weight: 700; letter-spacing: -0.04em; }
.phil p { margin: 14px 0 0; font-size: 15px; line-height: 1.8; color: var(--text); }

/* 사업영역 */
.biz .row { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.biz .row.rev .ph { order: 2; }
.biz .ph { border-radius: 20px; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.biz .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.biz .row:hover .ph img { transform: scale(1.03); }
.biz small { display: block; font-family: var(--en); font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--blue); }
.biz h3 { margin: 12px 0 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.04em; font-weight: 700; }
.biz .tx p { margin: 16px 0 0; font-size: 15px; line-height: 1.85; color: var(--text); }

/* 연혁 (검정) */
.hist { background: #0f1113; color: #fff; }
.hist .eb { color: #9fb3ff; }
.htab { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: -16px 0 44px; }
.htab button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: none; color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .25s, color .25s, border-color .25s; }
.htab button[aria-selected="true"] { background: #fff; border-color: #fff; color: #111; }
.hpane { display: none; }
.hpane.on { display: block; }
.hpane dl { margin: 0; border-top: 1px solid rgba(255,255,255,.2); }
.hpane dt, .hpane dd { margin: 0; }
.hpane dl > div, .hpane dt { }
.hpane dt { float: left; width: 140px; padding: 26px 0; font-family: var(--en); font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: #fff; clear: both; }
.hpane dd { padding: 30px 0 26px 160px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.8); }

/* CEO */
.ceo .panel { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; padding: 64px; border-radius: 24px; background: var(--soft); }
.ceo h2 { margin: 12px 0 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.045em; font-weight: 800; }
.ceo p { margin: 18px 0 0; font-size: 15px; line-height: 1.85; color: var(--text); }
.ceo blockquote { margin: 0; padding-left: 40px; border-left: 2px solid var(--ink); font-size: clamp(18px, 1.8vw, 24px); line-height: 1.6; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); }

/* 계열사 */
.fam ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.fam a { display: block; height: 100%; padding: 32px 28px 30px; border: 1px solid var(--line); border-radius: 20px; color: inherit; text-decoration: none; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.fam a:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.fam .lg { height: 44px; display: flex; align-items: center; margin-bottom: 20px; }
.fam .lg img { max-height: 44px; max-width: 160px; width: auto; height: auto; }
.fam b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.fam p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--text); min-height: 48px; }
.fam span { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--blue); }

/* 3줄 링크 */
.links { padding: 0 0 120px; }
.links .wrap { border-top: 1px solid var(--ink); }
.links a { display: grid; grid-template-columns: 200px 1fr 40px; align-items: center; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.links b { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.links p { margin: 0; font-size: 15px; color: var(--text); }
.links i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .25s, color .25s; }
.links a:hover i { background: var(--ink); color: #fff; }

/* 사진 띠 */
.pband { position: relative; height: clamp(240px, 34vw, 420px); overflow: hidden; }
.pband img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.7); }
.pband b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--en); font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }

/* 푸터 */
.gf { background: #0f1113; color: #9aa0a6; padding: 56px 0 40px; }
.gf .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.gf b { display: block; color: #fff; font-size: 15px; margin-bottom: 10px; }
.gf p { margin: 0 0 4px; font-size: 13px; line-height: 1.6; }
.gf .copy { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid #26292d; font-size: 12px; }

.veil { position: fixed; inset: 0; z-index: 99; background: #fff; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.veil.on { opacity: 1; }
.up { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.up.on { opacity: 1; transform: none; }
.up.d1 { transition-delay: .1s; } .up.d2 { transition-delay: .2s; } .up.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .up { opacity: 1; transform: none; transition: none; } .hero .sl { transition: opacity .3s; transform: none; } }

@media (max-width: 960px) {
  .grp .sec { padding: 72px 0; }
  .grp .sh { margin-bottom: 36px; }
  .gh .wrap { height: 62px; gap: 16px; }
  .gn, .gcta { display: none; }
  .gm { display: block; }
  .gmenu { display: block; max-height: 0; overflow: hidden; background: #fff; color: var(--ink); transition: max-height .35s var(--ease); }
  .gh.open .gmenu { max-height: 420px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .gh.open { background: #fff; color: var(--ink); }
  .gmenu a { display: block; padding: 16px var(--gut, 16px); border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .gmenu .gmenu-cta { color: var(--blue); }
  .hero { min-height: 0; }
  .hx { padding: 0 20px 110px; }
  .hx h1 { font-size: 32px; }
  .hx p { font-size: 14px; }
  .htabs { bottom: 28px; gap: 16px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .htabs button { white-space: nowrap; font-size: 13px; flex: 0 0 auto; }
  .hero .scroll { display: none; }
  .about .band { height: 200px; border-radius: 14px; }
  .nums ul { grid-template-columns: 1fr 1fr; }
  .nums li { padding: 22px 16px 22px 0; }
  .nums li:nth-child(3n+2), .nums li:nth-child(3n+3) { padding-left: 0; border-left: 0; }
  .nums li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .phil ul { grid-template-columns: 1fr; gap: 14px; }
  .phil li { padding: 26px 22px 28px; border-radius: 16px; }
  .biz .row, .biz .row.rev { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .biz .row.rev .ph { order: 0; }
  .biz .ph { aspect-ratio: 4 / 3; border-radius: 14px; }
  .htab { margin: 0 0 28px; }
  .htab button { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .hpane dt { float: none; width: auto; padding: 22px 0 0; font-size: 22px; }
  .hpane dd { padding: 8px 0 22px; font-size: 14px; }
  .ceo .panel { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px; border-radius: 16px; }
  .ceo blockquote { padding-left: 18px; font-size: 17px; }
  .fam ul { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fam a { padding: 22px 18px; border-radius: 14px; }
  .fam p { min-height: 0; }
  .links a { grid-template-columns: 1fr 36px; gap: 8px 16px; padding: 22px 0; }
  .links b { font-size: 17px; }
  .links p { grid-column: 1; font-size: 14px; }
  .links i { grid-row: 1 / span 2; width: 36px; height: 36px; }
  .gf .cols { grid-template-columns: 1fr; gap: 22px; }
}

/* 보정: 숫자 섹션 위 여백, 모바일 계열사 카드 넘침 */
body.grp { overflow-x: clip; }
.grp .sec.nums { padding: 0 0 120px; }
.fam ul li { min-width: 0; }
.fam a { min-width: 0; overflow: hidden; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .grp .sec.nums { padding: 0 0 72px; }
  .fam .lg img { max-width: 130px; max-height: 38px; }
}
@media (max-width: 600px) {
  .fam ul { grid-template-columns: 1fr; }
  .fam a { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto auto; column-gap: 18px; align-items: center; }
  .fam .lg { grid-row: 1 / span 3; margin: 0; height: auto; }
  .fam p { margin-top: 4px; }
  .fam span { margin-top: 8px; }
}

/* 연혁: 연도 칸과 내용 칸을 격자로 맞춤 */
.hpane dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.hpane dt { float: none; clear: none; width: auto; padding: 30px 0 26px; line-height: 28px; border-bottom: 1px solid rgba(255,255,255,.14); }
.hpane dd { padding: 30px 0 26px; line-height: 28px; }
@media (max-width: 960px) {
  .hpane dl { grid-template-columns: 1fr; }
  .hpane dt { padding: 22px 0 0; line-height: 1.2; border-bottom: 0; }
  .hpane dd { padding: 8px 0 22px; line-height: 1.85; }
}
