/* ================================================================
   SUB/greeting4 — 인사말 4 (배너 + 글 / 오른쪽 인물 카드 + 연혁) · 2026-11-25
   왼쪽: 둥근 배너 + 위 문구 / 소제목 · 인용 제목 · 보조 줄 · 문단
   오른쪽(세로 선): 인물 카드(이름·직급 = 사진 위 또는 연혁 위) + 연혁
   모양 = [설정] 창 CSS 변수 --g4-* (없으면 아래 기본값) · 모션 = .g4_wrap.g4_in (greeting4.js 가 화면에 들어오면 붙임)
   ================================================================ */
.greeting4 { width: 100%; float: left; }
.greeting4 .g4_wrap { width: 100%; float: left; display: grid; grid-template-columns: minmax(0, 1fr) var(--g4-rw, 420px); column-gap: var(--g4-cg, 80px); align-items: start; }
.greeting4 .g4_empty { color: #9ca3af; font-size: 13px; font-weight: 400; }

/* ── 왼쪽: 배너 */
.greeting4 .g4_ban { position: relative; width: 100%; height: var(--g4-h, 410px); border-radius: var(--g4-rad, 36px); overflow: hidden; background: #333333; isolation: isolate; }
.greeting4 .g4_ph, .greeting4 .g4_ph > div, .greeting4 .g4_ph a { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.greeting4 .g4_ph img, .greeting4 .g4_ph video { width: 100%; height: 100%; object-fit: cover; object-position: var(--g4-fp, center center); display: block; max-width: none; }
.greeting4 .g4_ph_empty { display: flex !important; align-items: center; justify-content: center; color: #cbd5e1; font-size: 14px; cursor: pointer; border: 2px dashed #64748b; border-radius: inherit; }
.greeting4 .g4_ph_empty small { margin-left: 6px; color: #94a3b8; }
.greeting4 .g4_ban::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(0, 0, 0, var(--g4-dim, 0)); }
/* 배너 위 문구 — 기본 왼쪽 아래 */
.greeting4 .g4_ov { position: absolute; z-index: 2; left: var(--g4-ox, 50px); right: auto; bottom: var(--g4-oy, 46px); top: auto; max-width: calc(100% - var(--g4-ox, 50px) * 2);
  color: var(--g4-oc, #ffffff); text-align: left; word-break: keep-all; text-shadow: 0 2px 14px rgba(0,0,0,.2); }
.greeting4 .g4_ovt { font-size: var(--g4-ofs, 40px); font-weight: var(--g4-ofw, 700); line-height: 1.3; letter-spacing: -0.03em; }
.greeting4 .g4_ovs { margin-top: 10px; font-size: var(--g4-osfs, 18px); font-weight: 400; line-height: 1.5; opacity: .92; }

/* ── 왼쪽: 글 */
.greeting4 .g4_body { width: 100%; float: left; margin-top: var(--g4-gap, 50px); padding: 0 var(--g4-bpx, 34px); box-sizing: border-box; word-break: keep-all; }
.greeting4 .g4_h { color: var(--g4-hc, #111111); font-size: var(--g4-hfs, 36px); font-weight: var(--g4-hfw, 700); line-height: 1.3; letter-spacing: -0.03em; margin-bottom: 26px; }
.greeting4 .g4_q { color: var(--g4-qc, #333333); font-size: var(--g4-qfs, 38px); font-weight: var(--g4-qfw, 500); line-height: 1.35; letter-spacing: -0.04em; margin-bottom: 26px; }
.greeting4 .g4_sub { color: var(--g4-sc, #444444); font-size: var(--g4-sfs, 26px); font-weight: 400; line-height: 1.4; letter-spacing: -0.03em; }
.greeting4 .g4_txt { margin-top: var(--g4-tg, 50px); color: var(--g4-c, #333333); font-size: var(--g4-fs, 17px); line-height: var(--g4-lh, 160%); }
.greeting4 .g4_p { margin: 0 0 var(--g4-pg, 26px); }
.greeting4 .g4_p:last-child { margin-bottom: 0; }
.greeting4 .empty_li { color: #9ca3af; }

/* ── 오른쪽: 세로 선 + 인물 카드 + 연혁 */
.greeting4 .g4_side { position: relative; min-width: 0; }
.greeting4 .g4_side::before { content: ""; position: absolute; top: 8px; bottom: 0; left: calc(var(--g4-cg, 80px) / -2); width: 1px; background: var(--g4-lc, #d9d9d9); }
.greeting4 .g4_card { position: relative; width: 100%; aspect-ratio: var(--g4-cr, 3 / 4); border-radius: var(--g4-crad, 36px); overflow: hidden; background: var(--g4-cbg, #6196ff); isolation: isolate; }
.greeting4 .g4_pph, .greeting4 .g4_pph > div, .greeting4 .g4_pph a { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.greeting4 .g4_pph img, .greeting4 .g4_pph video { width: 100%; height: 100%; object-fit: var(--g4-pfit, cover); object-position: center bottom; display: block; max-width: none; }

/* 이름 · 직급 — 사진 위(기본) / 연혁 위 ([설정] 인물 탭 위치) */
.greeting4 .g4_nm { word-break: keep-all; }
.greeting4 .g4_nm_n { font-size: var(--g4-nfs, 26px); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.greeting4 .g4_nm_p { font-size: var(--g4-pfs, 20px); font-weight: 600; line-height: 1.35; letter-spacing: -0.03em; margin-top: 2px; }
.greeting4 .g4_nm_photo { position: absolute; z-index: 2; left: var(--g4-npx, 48px); right: var(--g4-npx, 48px); top: var(--g4-npy, 52px); color: var(--g4-nc, #ffffff); }
.greeting4 .g4_nm_hist { display: none; margin: var(--g4-hg, 44px) 0 0; padding: 0 18px; color: var(--g4-nhc, #222222); }

.greeting4 .g4_hist { margin-top: var(--g4-hg, 44px); padding: 0 18px; color: var(--g4-hcol, #333333); font-size: var(--g4-hfs2, 13px); line-height: 1.55; word-break: keep-all; }
.greeting4 .g4_hr { display: grid; grid-template-columns: var(--g4-yw, 36px) minmax(0, 1fr); column-gap: 4px; margin-bottom: var(--g4-hrg, 6px); }
.greeting4 .g4_hr:last-child { margin-bottom: 0; }
.greeting4 .g4_hr_full { grid-template-columns: minmax(0, 1fr); }
.greeting4 .g4_hy { white-space: nowrap; }

/* ── 모션 (기본 = 켜짐 · [설정] 모션 끄기) */
.greeting4 .g4_ph { opacity: 0; transform: scale(var(--g4-zs, 1.15)); transition: opacity 1.2s ease .1s, transform 2.4s cubic-bezier(.16, 1, .3, 1) .1s; will-change: transform; }
.greeting4 .g4_ov { opacity: 0; transform: translateY(20px); transition: opacity .8s ease .7s, transform .9s cubic-bezier(.16, 1, .3, 1) .7s; }
.greeting4 .g4_up { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--g4-pd, .2s); }
.greeting4 .g4_body .g4_h { --g4-pd: .25s; }
.greeting4 .g4_body .g4_q { --g4-pd: .35s; }
.greeting4 .g4_body .g4_sub { --g4-pd: .45s; }
.greeting4 .g4_card { opacity: 0; transform: translateY(30px); transition: opacity .9s ease .3s, transform 1s cubic-bezier(.16, 1, .3, 1) .3s; }
.greeting4 .g4_nm_hist { opacity: 0; transform: translateY(14px); transition: opacity .7s ease .5s, transform .8s cubic-bezier(.16, 1, .3, 1) .5s; }
.greeting4 .g4_hr { opacity: 0; transform: translateX(14px); transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--g4-hd, .3s); }
.greeting4 .g4_side::before { transform: scaleY(0); transform-origin: top; transition: transform 1.4s cubic-bezier(.77, 0, .18, 1) .2s; }
.greeting4 .g4_in .g4_ph { opacity: 1; transform: scale(1); }
.greeting4 .g4_in .g4_ov, .greeting4 .g4_in .g4_up, .greeting4 .g4_in .g4_card, .greeting4 .g4_in .g4_nm_hist, .greeting4 .g4_in .g4_hr { opacity: 1; transform: none; }
.greeting4 .g4_in .g4_side::before { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .greeting4 .g4_ph, .greeting4 .g4_ov, .greeting4 .g4_up, .greeting4 .g4_card, .greeting4 .g4_nm_hist, .greeting4 .g4_hr, .greeting4 .g4_side::before { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── 태블릿·모바일 — 한 줄로 쌓고 세로 선 숨김 */
@media (max-width: 1024px) {
  .greeting4 .g4_wrap { grid-template-columns: minmax(0, 1fr); row-gap: 60px; }
  .greeting4 .g4_side { width: 100%; max-width: var(--g4-rw, 420px); margin: 0 auto; }
  .greeting4 .g4_side::before { display: none; }
}
@media (max-width: 767px) {
  .greeting4 .g4_ban { height: calc(var(--g4-h, 410px) * (var(--g4-mok, 55) / 100)); border-radius: calc(var(--g4-rad, 36px) * .6); }
  .greeting4 .g4_ov { left: 20px; bottom: 20px; max-width: calc(100% - 40px); }
  .greeting4 .g4_ovt { font-size: max(20px, calc(var(--g4-ofs, 40px) * .6)); }
  .greeting4 .g4_ovs { font-size: max(13px, calc(var(--g4-osfs, 18px) * .85)); }
  .greeting4 .g4_body { margin-top: calc(var(--g4-gap, 50px) * .6); padding: 0; }
  .greeting4 .g4_h { font-size: max(22px, calc(var(--g4-hfs, 36px) * .7)); margin-bottom: 16px; }
  .greeting4 .g4_q { font-size: max(21px, calc(var(--g4-qfs, 38px) * .65)); margin-bottom: 14px; }
  .greeting4 .g4_sub { font-size: max(16px, calc(var(--g4-sfs, 26px) * .7)); }
  .greeting4 .g4_txt { margin-top: calc(var(--g4-tg, 50px) * .6); font-size: max(14px, calc(var(--g4-fs, 17px) * .94)); }
  .greeting4 .g4_card { border-radius: calc(var(--g4-crad, 36px) * .7); }
  .greeting4 .g4_nm_photo { left: 28px; right: 28px; top: 30px; }
  .greeting4 .g4_nm_n { font-size: max(20px, calc(var(--g4-nfs, 26px) * .85)); }
  .greeting4 .g4_nm_p { font-size: max(15px, calc(var(--g4-pfs, 20px) * .85)); }
}

/* ★1125 줄 간격 — 공통 리셋(html,body,div,span,p…{line-height:130%})이 안쪽 태그마다 행간을 박아 [설정] 줄 간격이 안 먹던 것 → 안쪽 태그는 상자 행간을 물려받음 (자체 class 규칙이 있는 칸은 그대로) */
html :where(.greeting4 .g4_txt, .greeting4 .g4_h, .greeting4 .g4_q, .greeting4 .g4_sub, .greeting4 .g4_ov, .greeting4 .g4_hc, .greeting4 .g4_hy) :is(p,div,span,a,b,strong,em,i,u,small,font,li,ul,ol,mark,sub,sup,label,h1,h2,h3,h4,h5,h6) { line-height: inherit; }
