@charset "utf-8";
/* 장학회 소개 › 인사말 — 사진 | 글. 두 단 아래 선을 맞춘다(사진 높이 = 글 높이) */
.ab-greet { display: grid; grid-template-columns: 400px minmax(0, 1fr); align-items: stretch; gap: 72px; padding-bottom: 120px; }
.ab-photo { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--c-gray); }
.ab-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.ab-txt { display: flex; flex-direction: column; min-width: 0; }
.ab-quote { margin-top: -5px; font-family: var(--font-title); font-size: 2.25rem; font-weight: 700; line-height: 3.125rem; letter-spacing: -.02em; }   /* -5px: 글자 윗선 = 사진 윗선(실측) */
.ab-quote span:last-child { display: block; }   /* PC 2줄 · 모바일 3줄 */
.ab-quote em { font-style: normal; color: var(--c-main); }
.ab-body { display: grid; gap: 20px; margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--c-line); font-size: var(--fs-body); line-height: 1.9; color: var(--c-sub); text-align: justify; }
.ab-body b { font-weight: 700; color: var(--c-ink); }
.ab-sign { display: flex; align-items: baseline; justify-content: flex-end; gap: 16px; margin-top: auto; margin-bottom: -8px; padding-top: 48px; }   /* -8px: 글자 아랫선 = 사진 아랫선(실측) */
.ab-sign span { font-size: var(--fs-sm); color: var(--c-sub); }
.ab-sign strong { margin-right: calc(-.3em - 1px); font-family: var(--font-title); font-size: 1.75rem; font-weight: 700; letter-spacing: .3em; }   /* 자간만큼 오른쪽 끝을 당겨 글 오른쪽 선에 맞춘다 */

@media (max-width: 1023.98px) {
  .ab-greet { grid-template-columns: 1fr; gap: 40px; padding-bottom: 80px; }
  .ab-photo { width: 100%; max-width: 400px; margin: 0 auto; aspect-ratio: 4 / 5; }
  .ab-quote { margin-top: 0; text-align: center; }
}
@media (max-width: 767.98px) {
  .ab-greet { gap: 32px; padding-bottom: 56px; }
  .ab-quote { font-size: 1.375rem; line-height: 2rem; }
  .ab-quote span { display: block; }
  .ab-body { gap: 16px; margin-top: 28px; padding-top: 28px; line-height: 1.8; }
  .ab-sign { flex-direction: column; align-items: flex-end; gap: 4px; margin-bottom: 0; padding-top: 32px; }
  .ab-sign strong { font-size: 1.5rem; }
}

/* ===== 장학회 소개 공통 — 섹션 머리 · 표 ===== */
.ab-sec { padding-bottom: 96px; }
.ab-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--c-ink); }
.ab-title { font-family: var(--font-title); font-size: 1.75rem; font-weight: 700; line-height: 2.25rem; letter-spacing: -.02em; }
.ab-asof { font-size: var(--fs-sm); color: var(--c-sub); font-variant-numeric: tabular-nums; }
.ab-tbl-wrap { overflow-x: auto; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.ab-tbl { width: 100%; border-collapse: collapse; border-style: hidden; font-size: var(--fs-body); text-align: center; font-variant-numeric: tabular-nums; }
.ab-tbl th, .ab-tbl td { height: 56px; padding: 8px 16px; border: 1px solid var(--c-line); }   /* 칸 합치기(rowspan) 줄도 선이 이어지게 모든 칸에 선 · 바깥선은 border-style: hidden */
.ab-tbl thead th { background: var(--c-tint); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.ab-tbl strong { font-weight: 700; }
.ab-off td:last-child { white-space: nowrap; color: var(--c-sub); }

/* 설립목적 */
.ab-lead { margin: 0 auto 96px; font-family: var(--font-title); font-size: 1.625rem; font-weight: 700; line-height: 2.625rem; letter-spacing: -.02em; text-align: center; }
.ab-lead em { font-style: normal; color: var(--c-main); }
.ab-laws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.ab-law { padding: 32px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; }
.ab-law h3 { display: flex; align-items: center; gap: 12px; font-size: var(--fs-card); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.ab-law p { margin-top: 16px; font-size: var(--fs-body); line-height: 1.85; color: var(--c-sub); text-align: justify; }
.ab-law b { font-weight: 700; color: var(--c-ink); }
.ab-biz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ab-biz a { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 36px 24px 32px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; color: var(--c-ink); text-align: center; transition: border-color .15s ease; }
.ab-biz a:hover { border-color: var(--c-main); color: var(--c-ink); }
.ab-biz-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 18px; background: var(--c-soft); color: var(--c-main); font-size: 1.75rem; transition: background-color .15s ease, color .15s ease; }
.ab-biz a:hover .ab-biz-ico { background: var(--c-main); color: #fff; }
.ab-biz b { font-size: var(--fs-card); font-weight: 800; }
.ab-biz span:last-child { font-size: var(--fs-body); line-height: 1.6; color: var(--c-sub); }

/* 법인현황 — 2열 정의 목록 */
.ab-ov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--c-line); }
.ab-ov div { display: grid; grid-template-columns: 140px minmax(0, 1fr); border-bottom: 1px solid var(--c-line); }
.ab-ov div:nth-child(odd) { border-right: 1px solid var(--c-line); }
.ab-ov div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.ab-ov dt { display: flex; align-items: center; padding: 18px 20px; background: var(--c-tint); font-weight: 700; }
.ab-ov dd { display: flex; align-items: center; padding: 18px 24px; color: var(--c-ink); }

/* 조직구성도 — 가운데 축 대칭 */
.ab-org { display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.ab-org-top, .ab-org-row span { display: grid; place-items: center; width: 200px; height: 64px; border-radius: var(--r-md); font-size: var(--fs-body); font-weight: 800; }
.ab-org-top { position: relative; width: 120px; height: 120px; border-radius: 50%; background: var(--c-main); color: #fff; }   /* 이사장 — 원 */
.ab-org-top::after { content: ''; position: absolute; left: 50%; top: 100%; width: 2px; height: 32px; margin-left: -1px; background: var(--c-line); }
.ab-org-row { position: relative; display: flex; gap: 120px; margin-top: 64px; }
.ab-org-row::before { content: ''; position: absolute; left: 100px; right: 100px; top: -32px; height: 2px; background: var(--c-line); }
.ab-org-row span { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; border: 2px solid var(--c-main); background: #fff; color: var(--c-main); }
.ab-org-row span::before { content: ''; position: absolute; left: 50%; top: -34px; width: 2px; height: 32px; margin-left: -1px; background: var(--c-line); }
.ab-org-row small { font-size: var(--fs-sm); font-weight: 600; color: var(--c-sub); }

.ab-note { margin-top: 20px; font-size: var(--fs-body); line-height: 1.7; color: var(--c-sub); text-align: justify; }

/* 정관 및 시행세칙 */
.ab-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 48px; }
.ab-dl a { display: flex; align-items: center; gap: 16px; height: 96px; padding: 0 28px 0 24px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; color: var(--c-ink); transition: border-color .15s ease; }
.ab-dl a:hover { border-color: var(--c-main); color: var(--c-ink); }
.ab-dl-ext { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--c-soft); color: var(--c-main); font-size: var(--fs-sm); font-weight: 800; }
.ab-dl-txt { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.ab-dl-txt b { font-size: var(--fs-card); font-weight: 800; }
.ab-dl-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); color: var(--c-mute); }
.ab-dl a > i { font-size: 1.375rem; color: var(--c-main); }
.ab-doc-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-md); }
.ab-doc-tabs button { height: 56px; border: 0; background: #fff; font-size: var(--fs-body); font-weight: 700; color: var(--c-sub); cursor: pointer; }
.ab-doc-tabs button + button { border-left: 1px solid var(--c-line); }
.ab-doc-tabs button:hover { color: var(--c-main); }
.ab-doc-tabs button[aria-selected="true"] { background: var(--c-main); color: #fff; }
.ab-doc { padding-bottom: 120px; }
.ab-doc[hidden] { display: none; }
.ab-doc-title { margin-bottom: 32px; font-family: var(--font-title); font-size: 1.75rem; font-weight: 700; line-height: 2.25rem; text-align: center; }

/* 오시는 길 */
.ab-map { position: relative; overflow: hidden; height: 480px; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-gray); }
.ab-map iframe { display: block; width: 100%; height: calc(100% + 320px); margin-top: -160px; border: 0; }   /* 구글 지도 위쪽 안내 칸(앱에서 열기 · 큰 지도 보기)을 잘라 내고 핀은 가운데 그대로 */
.ab-loc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 24px 0 120px; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.ab-loc li { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: 24px 20px; }   /* 배지(이름) 위 · 아이콘 + 두 줄 아래 */
.ab-loc li + li { border-left: 1px solid var(--c-line); }
.ab-loc-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ab-loc-ico { display: grid; place-items: center; flex-shrink: 0; width: 53px; height: 53px; border-radius: 14px; font-size: 1.375rem; }   /* 두 줄 높이 50px(26 + 2 + 22) 보다 3px 크게 */
.ab-loc-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-loc-txt b { font-size: var(--fs-body); font-weight: 800; line-height: 26px; color: var(--c-ink); white-space: nowrap; }
.ab-loc-txt b a { color: inherit; }
.ab-loc-txt small { font-size: var(--fs-sm); line-height: 22px; color: var(--c-sub); white-space: nowrap; }
.ab-loc-go { display: flex; gap: 3px; }
.ab-loc-go a { display: inline-flex; align-items: center; height: 36px; padding: 0 6px; border: 1px solid var(--c-line); border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.ab-loc-go a:hover { border-color: var(--c-main); color: var(--c-main); }

@media (max-width: 1023.98px) {
  .ab-sec { padding-bottom: 72px; }
  .ab-lead { margin-bottom: 72px; font-size: 1.5rem; line-height: 2.25rem; }
  .ab-lead br { display: none; }
  .ab-biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-ov { grid-template-columns: 1fr; }
  .ab-ov div:nth-child(odd) { border-right: 0; }
  .ab-loc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-loc li:nth-child(3) { border-left: 0; }
  .ab-loc li:nth-child(n+3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 767.98px) {
  .ab-sec { padding-bottom: 56px; }
  .ab-title { font-size: 1.375rem; line-height: 1.875rem; }
  .ab-lead { margin-bottom: 56px; font-size: 1.25rem; line-height: 1.875rem; text-align: justify; }
  .ab-laws { grid-template-columns: 1fr; gap: 16px; }
  .ab-law { padding: 24px 20px; }
  .ab-biz { gap: 12px; }
  .ab-biz a { padding: 24px 12px; }
  .ab-biz span:last-child { display: none; }
  .ab-ov div { grid-template-columns: 104px minmax(0, 1fr); }
  .ab-ov dt, .ab-ov dd { padding: 14px 16px; }
  .ab-org-row { gap: 24px; }
  .ab-org-top, .ab-org-row span { width: 140px; height: 56px; }
  .ab-org-top { width: 100px; height: 100px; }
  .ab-org-row::before { left: 70px; right: 70px; }
  .ab-tbl th, .ab-tbl td { height: 48px; padding: 6px 10px; }
  .ab-dl { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .ab-dl a { height: 80px; padding: 0 20px 0 16px; }
  .ab-doc-tabs { margin-bottom: 32px; }
  .ab-doc-title { font-size: 1.375rem; line-height: 1.875rem; }
  .ab-map { height: 320px; }
  .ab-loc { grid-template-columns: 1fr; margin-bottom: 64px; }
  .ab-loc li { padding: 20px; }
  .ab-loc li + li { border-left: 0; border-top: 1px solid var(--c-line); }
}

/* 양쪽 정렬 문단은 글자 단위로 줄을 바꾼다(단어 사이가 벌어지지 않게) */
.ab-body, .ab-law p, .ab-note, .ac-body { word-break: break-all; }

/* 아코디언 목록 — 연혁 · 정관. 윗선 3px · 머리 줄 82px · 행 68px+선 1px · 묶음 사이 67px · 열쇠말 칸 68px */
.ac-item { border-top: 3px solid var(--c-main); }
.ac-item + .ac-item { margin-top: 67px; }
.ac-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box; height: 82px; padding: 6px 14px 0 16px; cursor: pointer; list-style: none; }
.ac-item summary::-webkit-details-marker { display: none; }
.ac-head { font-size: var(--fs-card); font-weight: 600; line-height: 1; color: color-mix(in oklab, var(--c-main) 72%, #fff); font-variant-numeric: tabular-nums; }
.ac-item summary i { display: block; width: 20px; height: 20px; font-size: 20px; line-height: 1; color: #333; transition: transform .2s ease; }
.ac-item summary i::before { display: block; }
#tlH, .ab-doc { scroll-margin-top: 112px; }   /* 화살표(맨 위로) — 고정 머리 아래에 멈춘다 */
.ac-top { display: block; flex-shrink: 0; color: #333; }
.ac-top:hover i { color: var(--c-main); }
@media (prefers-reduced-motion: no-preference) { html:has(.ac-top) { scroll-behavior: smooth; } }
.ac-rows { border-top: 1px solid #e3e3e3; }
.ac-rows li { display: grid; grid-template-columns: 67px minmax(0, 1fr); align-items: start; min-height: 69px; padding: 19px 15px; border-bottom: 1px solid #e3e3e3; font-size: var(--fs-body); line-height: 30px; color: #333; }
.ac-key { font-weight: 700; color: #333; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-rows a, .ac-rows span { color: #333; }
.ac-rows a:hover { color: var(--c-main); text-decoration: underline; text-underline-offset: 4px; }
.ac--doc .ac-rows li { grid-template-columns: 112px minmax(0, 1fr); }
.ac-body { text-align: justify; }
.ac-body > b { display: block; font-weight: 700; color: #333; }
.ac-body p.hg { display: flex; }   /* 번호는 내어쓰고(번호 폭 그대로 + 0.3em), 다음 줄은 번호 뒤 글자 시작선에 맞춘다 */
.ac-body .mk { flex: 0 0 auto; margin-right: .3em; font-variant-numeric: tabular-nums; }
.ac-body .tx { flex: 1 1 auto; min-width: 0; }
.ac-body .lv1 { padding-left: 1.5em; }   /* 단계마다 1.5em 들여쓴다 */
.ac-body .lv2 { padding-left: 3em; }
.ac-body .lv3 { padding-left: 4.5em; }
.ac-body .lv4 { padding-left: 6em; }
.ac-body table { width: 100%; margin: 10px 0; border-collapse: collapse; text-align: center; font-size: var(--fs-body); line-height: 1.5; }
.ac-body th, .ac-body td { height: 44px; padding: 6px 12px; border: 1px solid #e3e3e3; }
.ac-body th { background: var(--c-tint); font-weight: 700; }
.ab-head--plain { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 767.98px) {
  .ac-item + .ac-item { margin-top: 40px; }
  .ac-item summary { height: 64px; padding: 4px 8px 0; }
  .ac-rows li { grid-template-columns: 56px minmax(0, 1fr); min-height: 57px; padding: 16px 8px; line-height: 24px; }
  .ac--doc .ac-rows li { grid-template-columns: 1fr; }
}


/* 설립목적 배너 — 글(왼쪽) | 그림(오른쪽), 연한 주색 바탕 */
.ab-mission { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: center; gap: 40px; margin-bottom: 96px; padding: 40px 48px 40px 56px; overflow: hidden; border-radius: 24px; background: var(--c-tint); }
.ab-mission::before { content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--c-soft); }
.ab-mission > * { position: relative; }
.ab-mission p { font-family: var(--font-title); font-size: 1.625rem; font-weight: 700; line-height: 3.25rem; letter-spacing: -.02em; color: var(--c-ink); }
.ab-mission em { font-size: calc(1em + 5px); font-style: normal; color: var(--c-main); }   /* 강조 낱말은 5px 더 크게 */
.ab-mission p span { display: block; white-space: nowrap; }   /* PC 는 3줄로 고르게 */
.ab-mission img { display: block; width: 100%; height: auto; }
@media (max-width: 1279.98px) {
  .ab-mission p span { display: inline; white-space: normal; }
}
@media (max-width: 1023.98px) {
  .ab-mission { grid-template-columns: 1fr; gap: 24px; padding: 32px; text-align: center; }
  .ab-mission img { width: 280px; margin: 0 auto; }
  .ab-mission p { font-size: 1.375rem; line-height: 2.75rem; }
}
@media (max-width: 767.98px) {
  .ab-mission { margin-bottom: 56px; padding: 24px 20px; border-radius: var(--r-lg); }
  .ab-mission p { font-size: 1.125rem; line-height: 2.25rem; text-align: justify; word-break: break-all; }
}

/* 인사말 애니메이션 — 사진: 아래에서 열리며 그림이 제자리로 · 큰 글자: 줄마다 차례로 떠오름 + 강조 밑줄 · 이사장 이름: 넓은 자간에서 모이며 나타남 */
@keyframes ab-reveal { from { clip-path: inset(100% 0 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes ab-zoom { from { transform: scale(1.18); } to { transform: scale(1); } }
@keyframes ab-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes ab-line { from { background-size: 0 .3em; } to { background-size: 100% .3em; } }
@keyframes ab-name { from { opacity: 0; letter-spacing: 1.2em; } to { opacity: 1; letter-spacing: .3em; } }
.ab-photo { animation: ab-reveal 1.1s cubic-bezier(.7, 0, .2, 1) both; }
.ab-photo img { animation: ab-zoom 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.ab-quote span:not(:last-child) { display: inline-block; }   /* 줄 단위로 움직이게 — 마지막 줄은 위(8행)대로 block */
@media (max-width: 767.98px) { .ab-quote span:not(:last-child) { display: block; } }
.ab-quote span { animation: ab-up .9s cubic-bezier(.2, .7, .2, 1) both; }
.ab-quote span:nth-child(1) { animation-delay: .5s; }
.ab-quote span:nth-child(2) { animation-delay: .7s; }
.ab-quote span:nth-child(3) { animation-delay: .9s; }
.ab-quote em { background: linear-gradient(color-mix(in oklab, var(--c-main) 18%, transparent), color-mix(in oklab, var(--c-main) 18%, transparent)) no-repeat 0 88% / 0 .3em; animation: ab-line .8s ease-out 1.6s both; }
.ab-sign span { animation: ab-up .8s ease-out 1.4s both; }
.ab-sign strong { animation: ab-name 1.2s cubic-bezier(.2, .7, .2, 1) 1.6s both; }
@media (prefers-reduced-motion: reduce) {
  .ab-photo, .ab-photo img, .ab-quote span, .ab-sign span, .ab-sign strong { animation: none; }
  .ab-quote em { animation: none; background-size: 100% .3em; }
}
