/* 배움터평생교육원: 슐런판처럼 전체를 나무색으로(밝은 너도밤나무 바탕, 호두나무 글자). 첫 화면에 밀어 보는 슐런판, 과정은 나무 안내판, 슐런 칸막이 */
/* fonts:start */
@font-face { font-family: Pretendard; font-weight: 400; font-display: swap; src: url("../fonts/pretendard-400.woff2?v=e3b25d92") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 600; font-display: swap; src: url("../fonts/pretendard-600.woff2?v=aad23378") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 700; font-display: swap; src: url("../fonts/pretendard-700.woff2?v=c5cdccf9") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 800; font-display: swap; src: url("../fonts/pretendard-800.woff2?v=7ffca52b") format("woff2"); }
/* fonts:end */
:root {
  --bg: #f3e9d8;
  --paper: #faf4ea;
  --wood: #e2c393;
  --wood-2: #c4925a;
  --wood-dark: #8a5a2b;
  --walnut: #4a2c14;
  --slot: #5a3518;
  --ink: #2b1d12;
  --sub: #6e5844;
  --line: #e3d3bb;
  --head: var(--walnut);
  --accent-text: #9a6430;
  --top-bg: rgba(243, 233, 216, .92);
  --card: #fffcf6;
  --band: var(--walnut);
  --band-text: #f3e9d8;
  --btn: var(--walnut);
  --btn-text: #f3e9d8;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110c;
    --paper: #1e1711;
    --ink: #eee2cf;
    --sub: #b4a08a;
    --line: #36291d;
    --head: #ecd9bc;
    --accent-text: #dcb27c;
    --top-bg: rgba(23, 17, 12, .9);
    --card: #241b13;
    --band: #2c1b0f;
    --band-text: #eee2cf;
    --btn: #ecd9bc;
    --btn-text: #17110c;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }
br.mo { display: none; }
@media (max-width: 760px) { br.mo { display: inline; } br.pc { display: none; } }

/* 헤더 */
.top { position: sticky; top: 0; z-index: 10; background: var(--top-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--head); letter-spacing: -.01em; }
.brand-mark circle { fill: var(--wood-dark); }
.brand-mark .in { fill: var(--wood-2); }

/* 첫 화면 */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 560px) 250px; justify-content: center; gap: clamp(48px, 8vw, 112px); align-items: center; }
.who { font-weight: 700; color: var(--accent-text); font-size: 20px; margin-bottom: 16px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 7.4vw, 104px); line-height: 1.1; letter-spacing: -.04em; color: var(--head); }
.lead { margin-top: 28px; font-size: 21px; color: var(--sub); }
.try { margin-top: 32px; font-weight: 700; font-size: 18px; color: var(--accent-text); }
.mo-only { display: none; }
@media (max-width: 860px) { .mo-only { display: inline; } .pc-only { display: none; } }
/* 과정 안내: 나무 안내판에 붙인 명패 */
.courses { background: var(--paper); padding: 96px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.courses-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.courses h2, .sjoelen h2, .contact h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; letter-spacing: -.02em; color: var(--head); }
.courses-head p { color: var(--sub); font-size: 18px; }
.notice { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; background: var(--wood); border: 14px solid var(--wood-dark); border-radius: 10px; padding: 32px 28px 36px; box-shadow: 0 16px 34px rgba(60, 40, 15, .16), inset 0 2px 0 rgba(255, 255, 255, .25); }
.col-name { font-weight: 700; font-size: 15px; color: var(--slot); margin-bottom: 12px; }
.plate { background: #fffaf0; color: #2a241c; font-weight: 800; font-size: 24px; letter-spacing: -.02em; padding: 18px 20px; border-radius: 4px; box-shadow: 0 3px 0 rgba(110, 69, 32, .35); position: relative; }
.plate + .plate { margin-top: 12px; }
.plate::before, .plate::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #b88a50; }
.plate::before { left: 8px; }
.plate::after { right: 8px; }
.plate.tilt { transform: rotate(-2deg); }

/* 슐런은: 판 끝 네 칸 */
.sjoelen { background: var(--band); color: var(--band-text); padding: 88px 0; }
.sjoelen-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sjoelen h2 { color: var(--band-text); }
.sjoelen-text p { margin-top: 14px; font-size: 19px; opacity: .92; }
.play { justify-self: center; width: 100%; max-width: 250px; }
.play-board { display: block; width: 100%; height: auto; aspect-ratio: 220 / 572; touch-action: pan-y; cursor: grab; border-radius: 8px; box-shadow: 0 18px 34px rgba(60, 35, 12, .25); }
.play-board:active { cursor: grabbing; }
.play-bar { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.play-bar p { font-size: 15px; white-space: nowrap; }
.play-bar span { color: var(--sub); }
.play-bar b { font-weight: 800; font-size: 22px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.play-reset { margin-left: auto; font: inherit; font-weight: 700; font-size: 15px; color: var(--btn-text); background: var(--btn); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.play-msg { margin-top: 10px; min-height: 1.7em; font-size: 15px; color: var(--sub); }
.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: var(--wood-2); border: 10px solid var(--wood-dark); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 16px 18px 0; box-shadow: 0 14px 0 var(--wood); }
.g { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.g b { font-weight: 800; font-size: 32px; line-height: 1; color: #fff8ec; }
.hole { width: 72%; height: 44px; background: var(--slot); border-radius: 999px 999px 0 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.hole i { width: 40px; height: 12px; border-radius: 6px; background: #b97c3e; box-shadow: inset 0 0 0 3px #6b3f17; }
.howto { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(244, 234, 216, .25); }
.howto > div { padding: 28px 28px 0 0; }
.howto > div + div { padding-left: 28px; border-left: 1px solid rgba(244, 234, 216, .25); }
.howto h3 { font-weight: 700; font-size: 20px; line-height: 1.4; }
.howto p { margin-top: 8px; font-size: 16px; opacity: .8; }
.sj-note { margin-top: 44px; display: inline-block; background: var(--wood); color: #2a241c; font-weight: 700; font-size: 18px; padding: 12px 20px; border-radius: 4px; transform: rotate(-1.5deg); }

/* 문의 */
.contact { padding: 88px 0 96px; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-in > div > p { margin-top: 12px; color: var(--sub); font-size: 18px; }
.contact-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 24px; }
.contact-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 0; }
.contact-list dt { color: var(--sub); font-size: 15px; font-weight: 600; }
.contact-list dd { font-weight: 700; font-size: 19px; text-align: right; }
.contact-list a { display: inline-flex; align-items: center; gap: 8px; }
.contact-list a[href]:hover { color: var(--accent-text); }
.contact-list a[aria-disabled] { color: var(--sub); font-weight: 600; }
.contact-list a[aria-disabled] .go { display: none; }

/* 푸터 */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.copy { color: var(--sub); font-size: 14px; }

/* 휴대폰 */
@media (max-width: 860px) {
  .hero { padding: 28px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .who { font-size: 15px; margin-bottom: 8px; }
  .hero h1 { font-size: 40px; }
  .try { margin-top: 14px; font-size: 16px; }
  .lead { margin-top: 14px; font-size: 16px; }
  .courses { padding: 64px 0; }
  .notice { grid-template-columns: 1fr; gap: 24px; border-width: 10px; padding: 24px 18px 28px; }
  .plate { font-size: 21px; padding: 14px 20px; }
  .sjoelen { padding: 64px 0; }
  .sjoelen-in { grid-template-columns: 1fr; gap: 32px; }
  .sjoelen-text p { font-size: 17px; }
  .howto { margin-top: 36px; grid-template-columns: 1fr; }
  .howto > div, .howto > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(244, 234, 216, .25); }
  .howto h3 { font-size: 18px; }
  .sj-note { margin-top: 32px; font-size: 16px; }
  .hero-text { text-align: center; }
  .play { max-width: 320px; }
  .play-board { max-width: 190px; margin: 0 auto; }
  .play-bar { justify-content: center; }
  .play-reset { margin-left: 6px; }
  .play-msg { text-align: center; }
  .g b { font-size: 26px; }
  .hole { height: 36px; }
  .hole i { width: 32px; }
  .contact { padding: 64px 0 72px; }
  .contact-in { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { font-size: 17px; }
  .contact-list { padding: 4px 18px; }
  .play-bar { gap: 10px; }
  .play-bar p { font-size: 14px; }
  .play-bar b { font-size: 19px; }
  .gates { gap: 8px; padding: 12px 12px 0; border-width: 8px; }
  .hole i { width: 26px; }
}

/* 다크 모드: 슐런판·안내판은 나무색 그대로 */
@media (prefers-color-scheme: dark) {
  .notice { box-shadow: 0 16px 34px rgba(0, 0, 0, .45); }
  .play-board { box-shadow: 0 18px 34px rgba(0, 0, 0, .5); }
}
