:root {
  --navy: #1f3a5f;
  --navy-deep: #152a45;
  --accent: #f2a33a;
  --accent-deep: #c97a12;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d2433;
  --muted: #5b6578;
  --line: #e3e0d8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
small { color: var(--muted); font-weight: 400; font-size: 0.8em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 36px 20px; }
.narrow { max-width: 720px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.25rem; }
.note { background: #fff7e8; border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 6px; }
.meta { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 1.05rem; }
.brand small { font-size: 0.75rem; }
.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.menu a { text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 8px; font-size: 0.95rem; }
.menu a:hover, .menu a[aria-current="page"] { background: #eef1f5; color: var(--navy); }
.menu a.menu-cta { background: var(--navy); color: #fff; margin-left: 6px; }
.menu a.menu-cta:hover, .menu a.menu-cta.is-current { background: var(--navy-deep); color: #fff; }

.hero { background: linear-gradient(135deg, #1f3a5f, #2c5282); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 56px 20px; }
.hero h1 { font-size: 2.4rem; }
.hero .lead { color: #dbe6f4; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 0.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-block; background: var(--accent); color: var(--text); text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 10px; border: 0; font-size: 1rem; cursor: pointer; font-family: inherit; }
.button:hover { background: #f5b65e; }
.button.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.hero-card { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 16px; padding: 20px 24px; }
.hero-card-title { font-weight: 700; margin: 0 0 0.5rem; }
.hero-card ol { margin: 0; padding-left: 1.2rem; }

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card p { margin: 0.25rem 0; }
.card.level a { display: inline-block; margin-top: 8px; font-weight: 600; }
.teacher { display: flex; gap: 16px; align-items: flex-start; }
.teacher h2 { font-size: 1.15rem; margin: 0; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #e7edf5; color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice-list time { color: var(--muted); flex: none; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; background: var(--surface); }
caption { text-align: left; color: var(--muted); padding: 0 0 8px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: #eef1f5; }
tbody th { font-weight: 600; }
td.num { text-align: right; white-space: nowrap; }
table.timetable { min-width: 640px; }
table.timetable td:empty { background: #fafafa; }
table.timetable th[scope="row"] { white-space: nowrap; }
table.plain { width: auto; min-width: 260px; }
table.board td:first-child { width: 64px; text-align: center; }
table.board td:last-child { width: 120px; white-space: nowrap; }
.facts { padding-left: 1.2rem; }
.facts li { margin: 0.4rem 0; }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.form label { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
.form input[type="text"], .form input[type="tel"], .form select { width: 100%; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid #cfd5df; border-radius: 8px; background: #fff; }
.form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.form legend { font-weight: 600; padding: 0 4px; }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 0.4em; flex: none; }
.form fieldset { min-width: 0; }
.thanks { background: #eef8f0; border: 1px solid #b9dfc2; border-radius: 14px; padding: 22px; }

.info { display: grid; grid-template-columns: 80px 1fr; gap: 8px 12px; margin: 0 0 1rem; }
.info dt { font-weight: 700; }
.info dd { margin: 0; }
.map { margin: 0; }
.map svg { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.map figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.crumb { margin: 0 0 1rem; }
.post p { margin: 0.5rem 0; }
.prose p { margin: 0.6rem 0; }

.site-footer { background: var(--navy-deep); color: #c9d4e3; margin-top: 48px; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px 20px 8px; }
.footer-grid p { margin: 0.2rem 0; }
.footer-name { font-weight: 700; color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,0.15); padding: 12px 20px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-note p { margin: 0; }

@media (max-width: 860px) {
  .header-row { flex-direction: column; align-items: stretch; padding-top: 10px; padding-bottom: 8px; gap: 6px; }
  .menu { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .menu a { white-space: nowrap; }
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .cards.three, .cards.two { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.6rem; }
  .site-header { position: static; }
}
