/* 회장 인사말 페이지 (/chairman, 외부 파일 페이지) — index.html 에서만 불러옴. 원본: 이미지 1장(files/attach/images/43066735/.../95ac1437...png) */
@import url("https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@700;800&family=Nanum+Pen+Script&display=swap");
/* ── 회장 인사말 (.chm) ───────────────── */
.chm {
	--navy: #1e2b45; --teal: #2f9bb0; --teal-l: #38a8bd; --sky: #eaf6f8; --ink: #3a4658; --muted: #6b7a90;
	--hl: rgba(56, 168, 189, .22);
	position: relative; overflow: hidden;
	padding: 34px 44px 46px; border-radius: 22px; background: #fff;
	box-shadow: 0 2px 14px rgba(30, 43, 69, .07);
	color: var(--ink); font-family: 'Spoqa Han Sans Neo', 'Nanum Gothic', sans-serif;
	font-size: 16px; line-height: 1.95; letter-spacing: -.2px; word-break: keep-all;
}
.chm * { box-sizing: border-box; }
.chm-crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 26px; color: var(--muted); font-size: 13px; font-weight: 700; }
.chm-crumb::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--teal-l); }

/* 히어로 */
.chm-hero { display: grid; grid-template-columns: 1fr 236px; gap: 26px; align-items: center; margin-bottom: 30px; }
/* 손글씨 제목·맺음: 나눔손글씨 펜(Nanum Pen Script, SIL OFL 1.1 — 무료·상업 사용 가능) */
.chm-title { position: relative; margin: 0; padding-top: 6px; color: var(--navy); font-family: 'Nanum Pen Script', 'Nanum Myeongjo', cursive; font-size: 50px; font-weight: 400; line-height: 1.12; letter-spacing: 0; }
.chm-title .q { position: absolute; left: -26px; top: -18px; color: #dbe7ee; font-size: 74px; line-height: 1; font-family: Georgia, serif; }
.chm-sub { margin: 12px 0 0; color: var(--teal); font-family: 'Nanum Myeongjo', serif; font-size: 22px; font-weight: 800; line-height: 1.45; }
.chm-sub b { color: var(--navy); }
.chm-portrait { position: relative; width: 236px; height: 236px; justify-self: center; }
.chm-portrait img { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 12px 30px rgba(30, 43, 69, .16); }
.chm-portrait .ring { position: absolute; inset: -10px; z-index: 1; border: 2px dashed rgba(56, 168, 189, .45); border-radius: 50%; animation: chm-spin 40s linear infinite; }
.chm-portrait .bub { position: absolute; z-index: 3; border-radius: 50%; animation: chm-float 5s ease-in-out infinite; }
.chm-portrait .b1 { left: -14px; top: 10px; width: 44px; height: 44px; background: rgba(127, 214, 228, .45); }
.chm-portrait .b2 { right: -10px; bottom: 34px; width: 30px; height: 30px; background: rgba(56, 168, 189, .35); animation-delay: -2s; }
.chm-portrait .b3 { right: 18px; top: -6px; width: 16px; height: 16px; background: rgba(229, 72, 77, .35); animation-delay: -3.4s; }
.chm-portrait .tag { position: absolute; z-index: 4; left: 50%; bottom: -14px; transform: translateX(-50%); padding: 6px 14px; border-radius: 16px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 14px rgba(30, 43, 69, .2); }
.chm-portrait .tag em { margin-left: 4px; color: #9fe0ea; font-style: normal; }
@keyframes chm-spin { to { transform: rotate(360deg); } }
@keyframes chm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* 숫자 카드 */
.chm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 34px; }
.chm-stat { padding: 16px 14px 14px; border-radius: 16px; background: var(--sky); text-align: center; }
.chm-stat b { display: block; color: var(--navy); font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -1px; }
.chm-stat b i { font-style: normal; }
.chm-stat b small { margin-left: 2px; font-size: 16px; font-weight: 800; }
.chm-stat span { color: var(--muted); font-size: 13px; font-weight: 700; }

/* 본문 */
.chm-sec { margin: 0 0 26px; }
.chm-eyebrow { display: inline-block; margin-bottom: 8px; color: var(--teal); font-size: 12.5px; font-weight: 800; letter-spacing: .5px; }
.chm p { margin: 0 0 18px; }
.chm mark { padding: 1px 2px; background: linear-gradient(transparent 58%, var(--hl) 58%) no-repeat 0 0 / 100% 100%; color: var(--navy); font-weight: 700; transition: background-size 1.1s cubic-bezier(.3, .7, .3, 1); }
.chm mark.big { font-size: 1.12em; }
.chm.chm-anim mark { background-size: 0% 100%; }
.chm.chm-anim mark.on { background-size: 100% 100%; }
.chm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.chm-chips span { padding: 5px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px #cfe6ec; color: var(--teal); font-size: 13px; font-weight: 800; }
.chm-chips span.alert { box-shadow: inset 0 0 0 1px #f3c9cb; color: #c23a3f; }
.chm-callout { margin: 0 0 26px; padding: 18px 22px; border-left: 4px solid var(--navy); border-radius: 0 14px 14px 0; background: #f6f8fb; }
.chm-callout p:last-child { margin-bottom: 0; }

/* 목표 카드 */
.chm-goal { position: relative; overflow: hidden; margin: 34px 0 30px; padding: 34px 28px 32px; border-radius: 22px; background: linear-gradient(135deg, #1e2b45 0%, #23476a 60%, #2b6f86 100%); color: #fff; text-align: center; }
.chm-goal::before, .chm-goal::after { content: ""; position: absolute; border-radius: 50%; background: rgba(127, 214, 228, .12); }
.chm-goal::before { width: 220px; height: 220px; left: -70px; top: -90px; }
.chm-goal::after { width: 160px; height: 160px; right: -40px; bottom: -70px; }
.chm-goal .label { position: relative; display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #cfeff4; font-size: 13px; font-weight: 800; }
.chm-goal .slogan { position: relative; margin: 0; font-family: 'Nanum Myeongjo', serif; font-size: 28px; font-weight: 800; line-height: 1.55; letter-spacing: -.5px; }
.chm-goal .slogan .k1 { color: #ffd76a; }
.chm-goal .slogan .k2 { color: #7fd6e4; }
.chm-goal .slogan .k3 { color: #7fd6e4; border-bottom: 3px solid rgba(127, 214, 228, .55); }

/* 맺음 + 서명 */
.chm-thanks { margin: 30px 0 22px; color: var(--navy); font-family: 'Nanum Pen Script', cursive; font-size: 33px; font-weight: 400; line-height: 1.35; letter-spacing: 0; }
.chm-sign { display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--ink); font-size: 15px; font-weight: 700; }
.chm-sign .pen { position: relative; width: 210px; height: 64px; }
.chm-sign .pen img { width: 100%; height: 100%; }
.chm.chm-anim .chm-sign .pen img { clip-path: inset(0 100% 0 0); }
.chm-sign.on .pen img { animation: chm-write 2.2s cubic-bezier(.45, .1, .4, 1) .2s forwards; }
@keyframes chm-write { to { clip-path: inset(0 0 0 0); } }

/* 등장 */
/* 숨김은 스크립트가 .chm-anim 을 붙였을 때만 — 스크립트가 늦거나 안 돌아도 내용은 항상 보임 */
.chm.chm-anim .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.chm.chm-anim .rv.on { opacity: 1; transform: none; }

@media (max-width: 768px) {
	.chm { padding: 24px 20px 32px; border-radius: 18px; font-size: 15px; line-height: 1.85; }
	.chm-hero { grid-template-columns: 1fr; gap: 30px; }
	.chm-portrait { order: -1; width: 168px; height: 168px; }
	.chm-title { font-size: 38px; text-align: center; }
	.chm-title .q { display: none; }
	.chm-sub { font-size: 17px; text-align: center; }
	.chm-stats { gap: 8px; }
	.chm-stat { padding: 12px 6px 10px; }
	.chm-stat b { font-size: 22px; }
	.chm-stat span { font-size: 11.5px; }
	.chm br.pc { display: none; }
	.chm-goal { padding: 26px 18px; }
	.chm-goal .slogan { font-size: 21px; }
	.chm-thanks { font-size: 27px; }
	.chm-sign { flex-wrap: wrap; gap: 6px 10px; }
	.chm-sign .pen { width: 170px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	.chm-portrait .ring, .chm-portrait .bub { animation: none; }
	.chm.chm-anim .rv { opacity: 1; transform: none; transition: none; }
	.chm.chm-anim mark { background-size: 100% 100%; transition: none; }
	.chm.chm-anim .chm-sign .pen img { clip-path: none; animation: none !important; }
}
