/* 사단법인 한국문화교육협회 — 짙은 자주 · 황동 · 명조 제목 · 각진 모서리
   DESIGN.md 의 결정과 맞춤. 사진 없이 글자 · 색면 · 가는 선으로 */
:root {
  --ink: #1f1a1c;
  --muted: #5d5559;
  --wine: #5a1a2c;
  --wine-d: #3f1120;
  --brass: #9c7a3c;
  --brass-d: #7a5d27;
  --band: #eceef0;
  --line: #d6d9dd;
  --serif: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --sans: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
body { font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--ink); background: #fff; }
a { color: var(--wine); text-underline-offset: 3px; }
h1, h2, h3, .logo { font-family: var(--serif); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: 112px; }

/* 머리 — 가운데 글자 로고 + 아래 메뉴 줄 */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; text-decoration: none; color: var(--wine); padding: 10px 24px 8px; }
.logo img { width: 46px; height: 46px; border-radius: 50%; }
.logo span { display: block; text-align: center; }
.logo small { display: block; font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: 0.32em; color: var(--brass-d); }
.logo b { display: block; font-size: 26px; font-weight: 700; letter-spacing: 0.04em; }
.gnav { border-top: 1px solid var(--line); }
.gnav ul { list-style: none; margin: 0 auto; padding: 0 12px; max-width: 1080px; display: flex; justify-content: center; gap: 4px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.gnav ul::-webkit-scrollbar { display: none; }
.gnav a { display: block; padding: 11px 12px; font-size: 15px; text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.gnav a:hover { color: var(--wine); border-bottom-color: var(--brass); }
.gnav a.cta { color: #fff; background: var(--wine); margin: 6px 0 6px 8px; padding: 5px 16px; border: 0; }
.gnav a.cta:hover { background: var(--wine-d); }

/* 첫 화면 — 가운데 정렬 색면 + 숫자 띠 */
.hero { background: var(--wine); color: #fff; text-align: center; padding: 88px 0 0; }
.hero .eyebrow { display: inline-block; font-size: 14px; letter-spacing: 0.14em; color: #e7d3a5; border-top: 1px solid #b99556; border-bottom: 1px solid #b99556; padding: 6px 18px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 28px 0 22px; font-weight: 700; }
.hero p.lede { max-width: 640px; margin: 0 auto; font-size: 18px; color: #f1e6ea; }
.hero .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 72px; }
.btn { display: inline-block; padding: 13px 28px; border: 1px solid transparent; text-decoration: none; font-size: 16px; font-weight: 700; }
.btn.light { background: #fff; color: var(--wine); }
.btn.light:hover { background: #f3e9ec; }
.btn.line { border-color: #d3b980; color: #fff; }
.btn.line:hover { background: rgba(255, 255, 255, 0.1); }
.stats { background: var(--wine-d); }
.stats ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 26px 16px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 700; color: #e7d3a5; line-height: 1.2; }
.stats span { font-size: 14px; color: #e8dde1; }

/* 섹션 공통 */
.sec { padding: 92px 0; }
.sec.band { background: var(--band); }
.sec-head { display: grid; grid-template-columns: 96px 1fr; gap: 8px 24px; align-items: start; margin-bottom: 44px; }
.num { font-family: var(--serif); font-size: 60px; line-height: 1; color: var(--brass); font-weight: 300; border-top: 2px solid var(--brass); padding-top: 12px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); color: var(--wine); }
.sec-head p { grid-column: 2; color: var(--muted); max-width: 640px; }
.subnav { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.subnav a { font-size: 14px; padding: 4px 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); }
.subnav a:hover { border-color: var(--wine); color: var(--wine); }
.subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 40px; }
.sub { border-top: 2px solid var(--wine); padding-top: 18px; }
.sub.wide { grid-column: 1 / -1; }
.subs.two { grid-template-columns: repeat(2, 1fr); }
.award ul.plain li { grid-template-columns: 72px 1fr; }
@media (max-width: 700px) { .subs.two { grid-template-columns: 1fr; } }
.sub h3 { font-size: 21px; margin-bottom: 10px; }
.sub h3 em { font-style: normal; font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--brass-d); margin-left: 8px; }
.sub p + p { margin-top: 10px; }
.sub ul.plain { list-style: none; padding: 0; margin: 12px 0 0; }
.sub ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 84px 1fr; gap: 12px; font-size: 16px; }
.sub ul.plain li time { color: var(--brass-d); font-size: 14px; font-variant-numeric: tabular-nums; }
.sub + .sub, .subs + .subs { margin-top: 0; }
.stack { margin-top: 52px; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--brass); padding: 6px 12px; background: rgba(156, 122, 60, 0.08); margin-top: 14px; }
.ready { display: inline-block; font-size: 13px; color: var(--brass-d); border: 1px dashed var(--brass); padding: 2px 10px; margin-top: 8px; }

/* 이사장 */
.pres { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.seal { aspect-ratio: 4 / 5; background: var(--wine); color: #e7d3a5; display: grid; place-items: center; text-align: center; font-family: var(--serif); }
.seal b { display: block; font-size: 44px; letter-spacing: 0.12em; }
.seal span { font-size: 15px; letter-spacing: 0.3em; }
.greet p { font-size: 18px; line-height: 1.95; }
.greet p + p { margin-top: 16px; }
.greet .sign { text-align: right; font-size: 18px; margin-top: 24px; }

/* 연혁 · 협약 아코디언 */
details.yr { border-top: 1px solid var(--line); }
details.yr:last-of-type { border-bottom: 1px solid var(--line); }
details.yr summary { cursor: pointer; list-style: none; padding: 12px 4px; display: flex; align-items: baseline; gap: 14px; }
details.yr summary::-webkit-details-marker { display: none; }
details.yr summary b { font-family: var(--serif); font-size: 22px; color: var(--wine); min-width: 64px; }
details.yr summary span { font-size: 14px; color: var(--muted); }
details.yr summary::after { content: '+'; margin-left: auto; font-size: 22px; color: var(--brass-d); }
details.yr[open] summary::after { content: '−'; }
details.yr ul { list-style: none; margin: 0; padding: 0 4px 16px; }
details.yr li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 5px 0; font-size: 16px; }
details.yr li time { color: var(--brass-d); font-size: 14px; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 3px 12px; background: #fff; border: 1px solid var(--line); }
.chips li i { font-style: normal; color: var(--brass-d); margin-right: 6px; font-size: 12px; }
.docs { list-style: none; padding: 0; margin: 12px 0 0; }
.docs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.docs b { display: block; font-weight: 700; }
.docs span { font-size: 14px; color: var(--muted); }

/* 시상식 */
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.award { background: #fff; border-top: 4px solid var(--wine); padding: 28px 26px; }
.award h3 { font-size: 22px; color: var(--wine); margin-bottom: 4px; }

/* 문의 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info dl { margin: 22px 0 0; }
.contact-info dt { font-size: 13px; color: var(--brass-d); margin-top: 14px; letter-spacing: 0.08em; }
.contact-info dd { margin: 2px 0 0; }
.contact-form { background: #fff; padding: 30px; border-top: 4px solid var(--wine); }
.contact-form label { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.contact-form input:not([type='checkbox']), .contact-form textarea { margin-top: 6px; padding: 11px 12px; border: 1px solid #b9bdc3; background: #fff; border-radius: 0; font-weight: 400; }
.contact-form label.agree { font-weight: 400; font-size: 14px; color: var(--muted); }
.contact-form label.agree input { margin-right: 8px; }
.contact-form button { background: var(--wine); color: #fff; border: 0; padding: 13px 34px; font-weight: 700; font-size: 16px; }
.contact-form button:hover { background: var(--wine-d); }
.form-status { margin-top: 12px; font-size: 15px; min-height: 1.5em; color: var(--wine); }

/* 바닥 */
.site-footer { background: #231a1d; color: #cfc6c9; padding: 48px 0 56px; font-size: 14px; line-height: 1.9; }
.site-footer b { color: #fff; font-family: var(--serif); font-size: 18px; }
.site-footer .legal { margin-top: 10px; }
.site-footer .legal span { display: inline-block; margin-right: 18px; }
.site-footer small { display: block; margin-top: 18px; color: #8d8387; }

@media (max-width: 860px) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .pres, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .seal { aspect-ratio: auto; padding: 28px 0; max-width: 260px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .sec { padding: 64px 0; }
  .sec-head { grid-template-columns: 1fr; gap: 6px; }
  .sec-head p, .subnav { grid-column: 1; }
  .num { font-size: 40px; width: 64px; }
  .hero { padding-top: 56px; }
  .hero .acts { margin: 28px 0 48px; }
  .gnav ul { justify-content: flex-start; }
  .logo b { font-size: 22px; }
  .stats b { font-size: 28px; }
  .contact-form { padding: 20px; }
  .sub ul.plain li { grid-template-columns: 74px 1fr; }
}

/* 움직임 — 가볍게. 움직임 줄이기 설정이면 전부 끔 */
a, .btn, .subnav a, .gnav a, .contact-form button { transition: color .2s, background-color .2s, border-color .2s, transform .2s; }
.btn:hover, .contact-form button:hover { transform: translateY(-2px); }
.subnav a:hover { transform: translateY(-1px); }
details.yr summary { transition: background-color .2s; }
details.yr summary:hover { background: rgba(156, 122, 60, 0.07); }
details.yr[open] > ul { animation: fadeDown .3s ease; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .eyebrow, .hero h1, .hero p.lede, .hero .acts { animation: riseIn .8s ease both; }
.hero h1 { animation-delay: .12s; }
.hero p.lede { animation-delay: .24s; }
.hero .acts { animation-delay: .36s; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 시상식 목록 (.sub 밖이라 따로) */
.award ul.plain { list-style: none; padding: 0; margin: 14px 0 0; }
.award ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 12px; font-size: 16px; }
.award ul.plain li time { color: var(--brass-d); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .award ul.plain li { grid-template-columns: 64px 1fr; } }

/* 여러 쪽 구조 — 현재 메뉴 · 연도별 전체 나열 · 홈 카드 · 문의 띠 */
.gnav a[aria-current] { color: var(--wine); border-bottom-color: var(--brass); font-weight: 700; }
.yrb { margin-top: 26px; }
.yrb h4 { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--wine); padding-bottom: 6px; }
.yrb h4 b { font-size: 24px; color: var(--wine); font-weight: 700; }
.yrb h4 span { font-size: 14px; color: var(--muted); }
.yrb ul.hist { list-style: none; margin: 0; padding: 0; }
.yrb ul.hist li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.yrb ul.hist li time { color: var(--brass-d); font-size: 14px; }
.yrb ul.chips { margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--wine); padding: 24px 22px; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(90, 26, 44, .12); }
.card .n { font-size: 36px; font-weight: 300; color: var(--brass); line-height: 1; }
.card h3 { font-size: 21px; color: var(--wine); margin: 10px 0; }
.card ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; color: var(--muted); }
.card li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.card .go { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--brass-d); }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-list li time { color: var(--brass-d); font-size: 14px; }
.cta-band { background: var(--wine); color: #fff; padding: 44px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band p { font-size: 20px; margin: 0; }
.cta-band div { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .yrb ul.hist li { grid-template-columns: 48px 1fr; } .cta-band p { font-size: 18px; } }

/* 메인 첫 화면 — 로고 메달 + 원형 도안 (고객 제공 이미지는 로고뿐이라 도형으로) */
.hero { position: relative; overflow: hidden; text-align: left; padding: 72px 0 0;
  background:
    radial-gradient(900px 520px at 82% 40%, rgba(211, 185, 128, .20), transparent 62%),
    radial-gradient(700px 500px at -5% 105%, rgba(0, 0, 0, .28), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 22px),
    var(--wine); }
.hero::before { content: ''; position: absolute; right: -180px; top: -140px; width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(211, 185, 128, .28); box-shadow: 0 0 0 70px rgba(211, 185, 128, .04), 0 0 0 140px rgba(211, 185, 128, .03); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-bottom: 64px; }
.hero h1 { margin: 24px 0 22px; line-height: 1.15; font-size: clamp(38px, 6vw, 64px); }
.hero h1 span { display: block; font-size: .38em; font-weight: 400; letter-spacing: .5em; color: #e7d3a5; margin-bottom: 10px; }
.hero p.lede { margin: 0; max-width: 560px; }
.hero .acts { justify-content: flex-start; margin: 32px 0 26px; }
.hero-tags { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.hero-tags li { font-size: 13px; letter-spacing: .08em; color: #e7d3a5; border: 1px solid rgba(211, 185, 128, .5); padding: 3px 14px; border-radius: 999px; }
.hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 420px; margin-left: auto; display: grid; place-items: center; }
.hero-art .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-a { animation: spin 90s linear infinite; }
.ring-b { animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.medal { width: 72%; aspect-ratio: 1; border-radius: 50%; padding: 8px; background: linear-gradient(145deg, #e7d3a5, #9c7a3c 55%, #e7d3a5); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .35); animation: floaty 6s ease-in-out infinite; }
.medal img { width: 100%; height: 100%; border-radius: 50%; display: block; object-fit: cover; border: 6px solid #fff; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.hero-art .chip { position: absolute; background: #fff; color: var(--wine); padding: 8px 16px; font-size: 13px; line-height: 1.3; box-shadow: 0 10px 24px rgba(0, 0, 0, .28); border-left: 3px solid var(--brass); animation: riseIn .9s ease both; }
.hero-art .chip b { display: block; font-size: 20px; }
.chip.c1 { left: -4%; top: 14%; animation-delay: .5s; }
.chip.c2 { right: -6%; top: 46%; animation-delay: .7s; }
.chip.c3 { left: 2%; bottom: 8%; animation-delay: .9s; }
.stats { position: relative; }
.card .ico { width: 34px; height: 34px; color: var(--wine); position: absolute; right: 20px; top: 24px; opacity: .85; }
.card { position: relative; }
.card:hover .ico { color: var(--brass-d); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 44px; }
  .hero-art { order: -1; max-width: 260px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero .acts, .hero-tags { justify-content: center; }
  .hero p.lede { margin: 0 auto; }
  .hero::before { width: 420px; height: 420px; right: -160px; top: -120px; }
  .chip.c1 { left: -8%; } .chip.c2 { right: -8%; } .chip.c3 { left: -4%; }
  .hero-art .chip { padding: 5px 10px; font-size: 11px; } .hero-art .chip b { font-size: 15px; }
}

/* 부설기관 — 2022 시상식 팜플렛 */
.award h3 { font-size: 24px; }
.award .meta { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.awards { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
.pamph { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 28px; align-items: start; }
.pamph h4 { font-size: 19px; color: var(--wine); margin-bottom: 4px; }
.pcover img { width: 100%; display: block; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); transition: transform .3s; }
.pcover:hover img { transform: translateY(-4px); }
.plabel { margin-top: 26px; font-weight: 700; }
.plabel em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.thumbs img { width: 100%; display: block; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.thumbs a:hover img { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.hlabel { margin-top: 26px; font-size: 16px; color: var(--wine); }
.slot { margin-top: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.slot .ready { margin: 0; }
@media (max-width: 700px) { .pamph { grid-template-columns: 1fr; } .pcover { max-width: 280px; } }
