/* Academic calendar: class days, holidays, and exam dates. */
.notice-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.notice-month { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 6px; }
.notice-month caption { padding: 0 0 14px; text-align: left; font-size: 1.5rem; font-weight: 700; color: #23191a; letter-spacing: -.025em; }
.notice-month caption span { margin-right: 4px; color: #716668; font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.notice-month th { padding: 0 0 8px; color: #716668; font-size: .875rem; font-weight: 500; text-align: center; }
.notice-month td { height: 36px; padding: 0; text-align: center; vertical-align: middle; }
.notice-day {
  display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto;
  border: 2px solid transparent; font-size: 1rem; font-weight: 600; line-height: 1;
  letter-spacing: 0; font-variant-numeric: tabular-nums; color: #3e3435;
}
.notice-day.open { border-color: #f0dfe2; border-radius: 4px; background: linear-gradient(180deg, #fff7f7, #f9ecee); box-shadow: inset 0 -1px 2px rgba(143, 24, 37, .035); }
.notice-day.closed { border-color: #ddd5ce; border-radius: 4px; background: white; color: #8f1825; }
.notice-day.exam { border-color: #8f1825; border-radius: 4px; background: linear-gradient(180deg, #fff7f7, #f9ecee); color: #8f1825; box-shadow: inset 0 -1px 2px rgba(143, 24, 37, .035); }
.notice-holidays {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px;
  margin: 24px 0 0; padding: 22px 0; border-top: 1px solid #e8ded7;
}
.notice-holidays > div { display: grid; grid-template-columns: minmax(116px, auto) 1fr; align-items: baseline; gap: 12px; }
.notice-holidays dt { color: #8f1825; font-size: .875rem; font-weight: 650; }
.notice-holidays dd { margin: 0; color: #4e4244; font-size: .875rem; }
.notice-legends { display: grid; gap: 12px; padding: 18px 20px; background: #f7f0ec; border-radius: 8px; }
.notice-legends p { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: .9375rem; line-height: 1.65; color: #5a4146; }
.notice-legends strong { color: #8f1825; font-weight: 700; }
.notice-key { display: inline-block; flex: 0 0 14px; width: 14px; height: 14px; transform: translateY(1px); }
.notice-key-exam { border: 2px solid #8f1825; border-radius: 2px; }
.notice-key-open { border: 1px solid #f0dfe2; border-radius: 2px; background: linear-gradient(180deg, #fff7f7, #f9ecee); }
.notice-key-closed { border: 1px solid #ddd5ce; border-radius: 2px; background: white; }
.notice-footnote { margin: 20px 0 0; text-align: center; color: #716668; font-size: .875rem; line-height: 1.7; }
@media (max-width: 600px) {
  .notice-months { grid-template-columns: 1fr; gap: 24px; }
  .notice-month + .notice-month { border-top: 1px solid #e8ded7; }
  .notice-holidays { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .notice-holidays > div { grid-template-columns: 126px 1fr; }
  .notice-legends { padding: 16px; }
}
:root {
  --wine: #8f1825;
  --wine-dark: #67101a;
  --rose: #c83e4d;
  --cream: #f8f3ee;
  --ink: #23191a;
  --muted: #716668;
  --line: #e8ded7;
  --white: #fff;
  --shadow: 0 24px 80px rgba(79, 26, 32, 0.13);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,243,238,.88);
  border-bottom: 1px solid rgba(143,24,37,.08);
  backdrop-filter: blur(16px);
}
.nav-shell { max-width: 1180px; min-height: 76px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--wine); font-family: Georgia, serif; font-weight: 700; font-size: 1.25rem; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 1rem; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.main-menu { display: flex; gap: 18px; font-size: .875rem; font-weight: 600; }
.main-menu a { position: relative; padding: 10px 0; }
.main-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--wine); transition: right .25s ease; }
.main-menu a:hover::after, .main-menu a.active::after { right: 0; }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: .25s ease; }

.section { scroll-margin-top: 76px; }
.hero { min-height: calc(100vh - 76px); max-width: 1180px; margin: 0 auto; padding: 100px 28px 92px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 82px; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; pointer-events: none; width: 440px; height: 440px; left: -240px; top: 40px; border: 1px solid rgba(143,24,37,.10); border-radius: 50%; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--wine); font-size: .74rem; font-weight: 800; letter-spacing: .13em; }
.eyebrow span { width: 27px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 24px 0 30px; font-size: clamp(2.9rem, 5.9vw, 5.5rem); line-height: 1.13; letter-spacing: -.065em; font-weight: 700; }
h1 em { color: var(--wine); font-family: Georgia, "Noto Serif KR", serif; font-style: normal; font-weight: 700; }
.hero-lead { max-width: 610px; margin-bottom: 34px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; border-radius: 4px; background: var(--wine); color: white; font-weight: 700; box-shadow: 0 14px 32px rgba(143,24,37,.22); transition: .25s ease; }
.primary-button:hover { transform: translateY(-2px); background: var(--wine-dark); }
.text-button { border: 0; background: transparent; padding: 12px 0; font-weight: 700; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--ink); }
.identity-card { position: relative; padding: 36px 38px 30px; background: var(--white); border: 1px solid rgba(143,24,37,.11); border-radius: 5px; box-shadow: var(--shadow); }
.identity-card::after { content: "J"; position: absolute; right: 28px; top: 10px; color: rgba(143,24,37,.05); font-family: Georgia, serif; font-size: 9rem; line-height: 1; }
.identity-top { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--wine); font-weight: 800; font-size: .82rem; position: relative; z-index: 1; }
.verified-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wine); color: white; font-size: .73rem; }
.identity-card dl { margin: 0; position: relative; z-index: 1; }
.identity-card dl > div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.identity-card dt { color: var(--muted); font-size: .84rem; }
.identity-card dd { margin: 0; font-weight: 700; text-align: right; }
.identity-note { margin: 16px 0 0; padding: 15px 16px; border-radius: 3px; background: #faf4f4; color: #75565a; font-size: .76rem; }

.learning { padding: 112px max(28px, calc((100% - 1124px) / 2)); background: white; }
.section-heading { max-width: 650px; }
.section-heading h2 { margin: 20px 0 20px; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.2; letter-spacing: -.055em; }
.section-heading > p:last-child { color: var(--muted); }
.principles { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principle { min-width: 0; padding: 34px; background: white; position: relative; transition: .3s ease; border-top: 3px solid var(--wine); }
.principle:hover { z-index: 2; transform: translateY(-8px); box-shadow: var(--shadow); }
.number { color: #b7a9a2; font-family: Georgia, serif; font-size: .78rem; }
.principle-icon { margin: 24px 0; color: var(--wine); font-family: "Noto Serif KR", "Batang", serif; font-size: 3rem; line-height: 1.3; }
.principle h3 { margin-bottom: 24px; min-height: 3.1em; font-size: 1.25rem; line-height: 1.55; letter-spacing: -.025em; }
.principle p { margin: 0; color: #655b5d; font-size: 1rem; line-height: 1.85; overflow-wrap: anywhere; }
.principle p + p { margin-top: 16px; }
.class-note { margin-top: 26px; display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; padding: 25px 30px; border-left: 4px solid var(--wine); background: var(--cream); }
.class-note strong { color: var(--wine); font-size: 1.05rem; }
.class-note span { color: var(--muted); }

.classes { padding: 112px max(28px, calc((100% - 1124px) / 2)); background: #f4ece7; }
.classes-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.classes-lead { margin: 0 0 10px; padding-left: 28px; border-left: 1px solid rgba(143,24,37,.28); color: var(--muted); font-size: 1rem; }
.class-groups { margin-top: 64px; display: grid; gap: 28px; }
.class-group { overflow: hidden; border: 1px solid rgba(103,16,26,.13); border-radius: 6px; background: var(--white); box-shadow: 0 20px 55px rgba(79,26,32,.07); }
.class-group-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; padding: 30px 34px 26px; border-bottom: 1px solid var(--line); }
.class-level { display: block; margin-bottom: 5px; color: var(--wine); font-family: Georgia, serif; font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.class-group-heading h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.04em; }
.class-group-heading p { margin: 0; color: var(--muted); font-size: .86rem; text-align: right; }
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.course-card { min-height: 205px; padding: 28px 25px 26px; position: relative; border-right: 1px solid var(--line); background: var(--white); }
.course-card:last-child { border-right: 0; }
.course-card::after { content: ""; position: absolute; left: 25px; bottom: 0; width: 0; height: 3px; background: var(--wine); transition: width .3s ease; }
.course-card:hover::after { width: calc(100% - 50px); }
.course-code { display: block; margin-bottom: 20px; color: var(--wine); font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; }
.course-order { display: block; margin-bottom: 22px; color: #b19c91; font-family: Georgia, serif; font-size: .72rem; }
.course-card h4 { margin: 0 0 17px; font-size: 1.08rem; }
.course-card h4 small { margin-left: 4px; color: var(--muted); font-size: .68rem; font-weight: 600; }
.course-card p { margin: 0 0 5px; color: var(--muted); font-size: .84rem; }
.course-card strong { display: block; color: var(--wine-dark); font-size: .88rem; line-height: 1.5; }
.course-card.featured { color: white; background: var(--wine); }
.course-card.featured .course-order, .course-card.featured p { color: #edcdd0; }
.course-card.featured h4 small { color: #edcdd0; }
.course-card.featured strong { color: white; }
.course-card.featured::after { background: white; }
.placement-note { margin: 24px 0 0; color: var(--muted); font-size: .82rem; text-align: right; }
.placement-note span { margin-right: 6px; color: var(--wine); font-weight: 800; }
.prep-program { margin-top: 36px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--wine); border-radius: 6px; }
.prep-heading h3 { margin: 20px 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.35; letter-spacing: -.04em; }
.prep-heading h3 em { font-style: normal; color: var(--wine); }
.prep-heading > p:last-child { margin: 0; color: var(--muted); font-size: 1rem; }
.prep-steps { margin: 0; }
.prep-steps > div { padding: 0 0 24px; }
.prep-steps > div + div { padding-top: 24px; border-top: 1px solid var(--line); }
.prep-steps dt { font-size: 1rem; font-weight: 700; }
.prep-steps dt span { margin-right: 10px; color: var(--wine); font-family: Georgia, serif; font-size: .875rem; }
.prep-steps dd { margin: 10px 0 0; color: var(--muted); font-size: 1rem; }
.prep-promotion { padding: 20px 22px; background: #faf4f4; border-left: 2px solid var(--wine); }
.prep-promotion strong { color: var(--wine-dark); font-size: 1rem; }
.prep-promotion p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.didim-recommendations { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 30px; }
.didim-recommendations h4 { margin: 0 0 24px; color: var(--wine-dark); font-size: 1.25rem; letter-spacing: -.025em; }
.didim-recommendations ol { margin: 0; padding: 0; list-style: none; counter-reset: didim; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.didim-recommendations li { counter-increment: didim; position: relative; padding: 22px 22px 22px 56px; background: #faf4f4; border-radius: 4px; }
.didim-recommendations li::before { content: counter(didim, decimal-leading-zero); position: absolute; left: 20px; top: 24px; font-family: Georgia, serif; color: var(--wine); font-size: .875rem; }
.didim-recommendations strong { font-size: 1rem; }
.didim-recommendations p { margin: 8px 0 0; font-size: 1rem; color: var(--muted); line-height: 1.75; }
@media (max-width: 560px) { .didim-recommendations ol { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .prep-program { grid-template-columns: 1fr; gap: 28px; } }

.consult { padding: 112px max(28px, calc((100% - 1124px) / 2)); background: #f4ece7; color: var(--ink); }
.admissions-top { margin-bottom: 40px; }
.application-card { max-width: 720px; margin: 0 auto; background: white; color: var(--ink); border-radius: 6px; padding: clamp(24px, 3vw, 38px); }
.application-card h3 { font-size: 1.4rem; letter-spacing: -.03em; }
.application-card p { color: var(--muted); font-size: 1rem; }
.application-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 24px 0; }
.application-fields li { padding: 10px 12px; background: #faf4f4; border-left: 2px solid var(--wine); font-size: 1rem; }
.application-phone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; color: white; background: var(--wine); border-radius: 4px; font-size: 1rem; font-weight: 700; padding: 16px 18px; text-align: center; }
.application-phone:hover { background: var(--wine-dark); }
.application-booking { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 15px 18px; border: 1px solid var(--wine); border-radius: 4px; color: var(--wine); background: var(--cream); font-size: 1rem; font-weight: 700; text-align: center; }
.application-booking:hover { background: #f0e3df; }
.application-booking:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.application-phone span { font-size: .875rem; }
.application-phone:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.application-card .application-note { margin: 12px 0 0; font-size: .875rem; }
.admissions-guidance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; }
.admission-action { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.admissions-guidance h3 { font-size: 1.4rem; margin: 0 0 18px; color: var(--wine); letter-spacing: -.025em; }
.admissions-guidance p { margin: 0 0 28px; font-size: 1rem; line-height: 1.9; color: var(--muted); }
.admissions-guidance strong { color: var(--ink); font-weight: 700; }
.admission-action > a { margin-top: auto; min-height: 60px; }
.admission-action .application-booking { background: var(--wine); color: white; }
.admission-action .application-booking:hover { background: var(--wine-dark); }
.admissions-guidance p span { color: #e8d1d4; }
.schedule-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.schedule-heading h3 { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; }
.schedule-heading p { margin: 0; font-size: .875rem; color: var(--muted); }
.calendar-key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; background: #f7c4cc; border-radius: 3px; }
.test-calendars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.test-calendar { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 24px 16px 18px; min-width: 0; }
.test-calendar table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px 5px; text-align: center; }
.test-calendar caption { text-align: left; font-weight: 700; font-size: 1.5rem; padding: 0 8px 20px; }
.test-calendar caption span { color: var(--muted); font-weight: 400; font-size: .875rem; margin-right: 6px; }
.test-calendar th { color: var(--muted); font-size: .875rem; font-weight: 500; padding-bottom: 8px; }
.test-calendar td { height: 36px; font-size: 1rem; }
.test-calendar td span { display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 5px; }
.test-calendar .test-day span { background: #f7c4cc; color: #67101a; font-weight: 800; box-shadow: inset 0 -2px var(--wine); }
.test-dates { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; color: var(--wine); font-size: 1rem; font-weight: 700; }
@media (max-width: 860px) { .admissions-top { grid-template-columns: 1fr; gap: 28px; } .test-calendars { grid-template-columns: 1fr; } .test-calendar { max-width: 440px; width: 100%; margin: 0 auto; } }
@media (max-width: 560px) { .admissions-guidance { grid-template-columns: 1fr; gap: 24px; } .application-fields { grid-template-columns: 1fr; } }
.consult-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.eyebrow.light { color: #efadb4; }
.consult .eyebrow { color: var(--wine); }
.consult .section-heading > p:last-of-type { color: var(--muted); }
.progress-wrap { margin-top: 36px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: .83rem; }
.progress-label span { color: #dbc7c9; }
.progress-track { height: 5px; overflow: hidden; background: rgba(255,255,255,.17); border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: #f3b1b9; transition: width .28s ease; }
.checklist { padding: 12px 32px 24px; background: white; color: var(--ink); border-radius: 5px; box-shadow: 0 28px 80px rgba(40, 7, 12, .30); }
.checklist label { display: grid; grid-template-columns: 25px 1fr; gap: 16px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid #c7b9b1; border-radius: 50%; transition: .2s ease; }
.checklist input:focus-visible + .checkmark { outline: 3px solid rgba(143,24,37,.25); outline-offset: 3px; }
.checklist input:checked + .checkmark { border-color: var(--wine); background: var(--wine); }
.checklist input:checked + .checkmark::after { content: "✓"; color: white; font-size: .72rem; font-weight: 800; }
.checklist label > span:last-child { display: flex; flex-direction: column; }
.checklist small { margin-top: 3px; color: var(--muted); }
.reset-button { display: block; margin: 18px 0 0 auto; padding: 7px 0; border: 0; border-bottom: 1px solid #9d8f88; background: transparent; color: var(--muted); font-size: .78rem; cursor: pointer; }
.faq-section { padding: 112px max(28px, calc((100% - 1124px) / 2)) 0; background: var(--cream); color: var(--ink); }
.faq-heading { margin: 0 auto; text-align: center; }
.faq-heading .eyebrow { justify-content: center; }
.faq { max-width: 900px; margin: 58px auto 0; padding-bottom: 72px; }
.faq details { border-top: 1px solid #d9ccc4; }
.faq details:last-child { border-bottom: 1px solid #d9ccc4; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq-question { display: flex; align-items: baseline; gap: 18px; }
.faq-question b { min-width: 25px; color: var(--wine); font-family: Georgia, serif; font-size: .76rem; }
.faq-toggle { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(143,24,37,.08); color: var(--wine); font-size: 1.25rem; transition: transform .2s ease, background .2s ease; }
.faq details[open] .faq-toggle { transform: rotate(45deg); background: var(--wine); color: white; }
.faq details p { max-width: 760px; margin: -4px 54px 25px; color: var(--muted); font-size: .92rem; }
.naver-place-card { max-width: 980px; margin: 0 auto 100px; padding: 28px 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; border-radius: 6px; background: white; color: var(--ink); box-shadow: 0 24px 64px rgba(40, 7, 12, .28); }
.naver-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 6px; background: #03c75a; color: white; font-size: 1.45rem; font-weight: 900; }
.naver-place-copy span { display: block; margin-bottom: 3px; color: #078b43; font-size: .76rem; font-weight: 800; }
.naver-place-copy h3 { margin: 0 0 4px; font-size: 1.06rem; letter-spacing: -.025em; }
.naver-place-copy p { margin: 0; color: var(--muted); font-size: .8rem; }
.naver-place-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 4px; background: var(--wine); color: white; font-size: .85rem; font-weight: 800; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.naver-place-button:hover { transform: translateY(-2px); background: var(--wine-dark); }
.naver-place-button:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
footer { min-height: 120px; margin: 0 calc(-1 * max(28px, calc((100% - 1124px) / 2))); padding: 28px max(28px, calc((100% - 1124px) / 2)); display: flex; align-items: center; gap: 40px; background: var(--wine-dark); border-top: 1px solid rgba(255,255,255,.15); color: #d7bdc0; font-size: .8rem; }
footer div { display: flex; flex-direction: column; margin-right: auto; }
footer strong { color: white; font-size: .98rem; }
footer span { font-size: .63rem; letter-spacing: .1em; }
footer p { margin: 0; }
.private-label span { color: #f3b1b9; margin-right: 5px; font-size: .55rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .nav-shell { min-height: 68px; padding: 0 20px; }
  .menu-button { display: block; }
  .main-menu { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 12px 20px 20px; flex-direction: column; gap: 2px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(50,20,20,.08); }
  .main-menu.open { display: flex; }
  .main-menu a { padding: 12px 4px; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; padding: 72px 24px 84px; grid-template-columns: 1fr; gap: 46px; }
  .hero::before { display: none; }
  h1 { font-size: clamp(2.65rem, 12vw, 4.5rem); }
  .learning, .classes, .consult, .faq-section { padding-left: 24px; padding-right: 24px; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 250px; }
  .principle h3 { min-height: 0; }
  .principle:hover { transform: none; }
  .classes-intro { grid-template-columns: 1fr; gap: 24px; }
  .classes-lead { max-width: 680px; }
  .class-group-heading { grid-template-columns: 1fr; gap: 10px; }
  .class-group-heading p { text-align: left; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .course-card:nth-child(2) { border-right: 0; }
  .course-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .consult-layout { grid-template-columns: 1fr; gap: 48px; }
  .naver-place-card { grid-template-columns: auto 1fr; }
  .naver-place-button { grid-column: 1 / -1; width: 100%; }
  footer { margin: 0 -24px; padding: 28px 24px; flex-wrap: wrap; gap: 12px 24px; }
}

@media (max-width: 560px) {
  .brand small { display: none; }
  .hero { padding-top: 58px; }
  .hero-lead { font-size: .96rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .primary-button { width: 100%; }
  .identity-card { padding: 28px 22px 22px; }
  .identity-card dl > div { grid-template-columns: 88px 1fr; gap: 10px; }
  .identity-card dd { font-size: .9rem; }
  .learning, .classes, .consult, .faq-section { padding-top: 82px; }
  .section-heading h2 { font-size: 2.15rem; }
  .principles { margin-top: 44px; }
  .principle { padding: 28px; }
  .class-note { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .classes-intro { gap: 16px; }
  .classes-lead { padding-left: 18px; font-size: .91rem; }
  .class-groups { margin-top: 42px; gap: 20px; }
  .class-group-heading { padding: 24px 22px 20px; }
  .class-group-heading h3 { font-size: 1.3rem; }
  .class-grid { grid-template-columns: 1fr; }
  .course-card { min-height: auto; padding: 23px 22px 21px 68px; border-right: 0; border-bottom: 1px solid var(--line); }
  .course-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .course-card:last-child { border-bottom: 0; }
  .course-code, .course-order { position: absolute; left: 23px; top: 24px; margin: 0; }
  .course-card h4 { margin-bottom: 7px; }
  .course-card p { margin-bottom: 2px; }
  .placement-note { text-align: left; }
  .checklist { padding: 8px 22px 20px; }
  .faq { margin-top: 46px; padding-bottom: 54px; }
  .faq summary { font-size: .9rem; }
  .faq-question { gap: 10px; }
  .faq details p { margin: -2px 0 24px 35px; font-size: .86rem; }
  .naver-place-card { margin-bottom: 76px; padding: 22px; grid-template-columns: 44px 1fr; gap: 16px; }
  .naver-mark { width: 44px; height: 44px; font-size: 1.18rem; }
  .naver-place-copy h3 { font-size: .94rem; }
  footer { align-items: flex-start; flex-direction: column; }
}

/* Quiet motion for the admissions cards and actions. */
.test-calendar, .admission-action {
  box-shadow: 0 4px 18px rgba(79, 26, 32, .035);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.admission-action > a {
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}
.admission-action:focus-within {
  border-color: #c99da3;
  box-shadow: 0 12px 32px rgba(79, 26, 32, .09);
}
@media (hover: hover) and (pointer: fine) {
  .test-calendar:hover, .admission-action:hover {
    transform: translateY(-4px);
    border-color: #c99da3;
    box-shadow: 0 16px 36px rgba(79, 26, 32, .10);
  }
  .admission-action > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(143, 24, 37, .18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .test-calendar, .admission-action, .admission-action > a { transition: none; transform: none !important; }
}

/* Page navigation */
.home-pages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; margin: 0; }
.home-pages a { min-width: 0; min-height: 156px; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #82414b; color: white; box-shadow: 0 6px 18px rgba(79,26,32,.06); transition: filter .25s ease, transform .25s ease, box-shadow .25s ease; }
.home-pages a:hover { filter: brightness(.93); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(79,26,32,.15); }
.home-pages a:focus-visible, .page-toolbar a:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }
.home-pages small { font-size: .875rem; letter-spacing: .035em; color: #f4e8eb; overflow-wrap: anywhere; }
.home-pages strong { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.125rem; }
.home-pages a > span { font-size: .875rem; color: #f5e6e8; line-height: 1.7; }
.page-toolbar { max-width: 1180px; margin: 0 auto; padding: 20px 28px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.page-toolbar a { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 18px; border: 1px solid var(--wine); border-radius: 6px; color: var(--wine); font-weight: 700; background: white; }
.page-location { color: var(--muted); font-size: .875rem; }
.hero { padding-top: 44px; padding-bottom: 64px; gap: 32px 48px; }
.hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.25rem); }
.hero-actions .text-button { min-height: 44px; display: inline-flex; align-items: center; }
.hero > .hero-actions { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .menu-button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 6px; background: white; }
  .main-menu a { min-height: 48px; padding: 12px 16px; border-radius: 6px; }
  .main-menu a.active { background: var(--wine); color: white; }
  .main-menu a.active::after { display: none; }
  .page-toolbar { padding: 16px 24px; }
  .hero { padding-top: 36px; gap: 36px; }
}
@media (max-width: 560px) {
  .home-pages { gap: 10px; }
  .home-pages a { padding: 18px 14px; gap: 8px; }
  .home-pages strong { font-size: 1.0625rem; line-height: 1.5; }
  .hero h1 { font-size: 2.65rem; margin: 18px 0; }
  .hero-lead { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .text-button { justify-content: center; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: white; }
  .page-location { font-size: .875rem; }
  .page-toolbar + .section { scroll-margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-pages a { transition: none; }
}

/* Detail pages use the same restrained burgundy and light surfaces. */
.schedule-page, .notices-page, .tuition-page, .parents-page { padding: 76px max(28px, calc((100% - 1124px) / 2)) 100px; }
.schedule-page { background: #f4ece7; }
.notices-page { background: var(--cream); }
.tuition-page { background: var(--cream); }
.tuition-fee-grid, .tuition-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.tuition-fee-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fffdfb; }
.tuition-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.tuition-table caption { padding: 28px 24px 24px; text-align: left; color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; }
.tuition-table caption span { display: block; margin-top: 8px; color: var(--muted); font-size: .875rem; font-weight: 400; letter-spacing: 0; }
.tuition-table col:nth-child(1) { width: 42%; }
.tuition-table col:nth-child(2) { width: 24%; }
.tuition-table col:nth-child(3) { width: 34%; }
.tuition-table th, .tuition-table td { padding: 17px 16px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.tuition-table thead th { background: #f2e8e7; color: #79565d; font-size: .8125rem; font-weight: 600; }
.tuition-table th:first-child { text-align: left; }
.tuition-table tbody th { color: #4d3038; font-weight: 600; }
.tuition-table th:nth-child(2), .tuition-table td:nth-child(2) { text-align: center; }
.tuition-table th:last-child, .tuition-table td:last-child { text-align: right; }
.tuition-table td:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tuition-table strong { color: var(--wine-dark); font-size: 1.0625rem; font-weight: 700; }
.tuition-table tbody tr:last-child > * { border-bottom: 0; }
.tuition-guide { padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: white; }
.tuition-guide h3, .tuition-refund h3, .tuition-card h3 { margin: 0 0 24px; color: #4d3038; font-size: 1.375rem; line-height: 1.5; letter-spacing: -.025em; }
.tuition-guide dl { margin: 0; }
.tuition-guide dl > div + div { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.tuition-guide dt { margin-bottom: 7px; color: #79565d; font-size: .9375rem; font-weight: 650; }
.tuition-guide dd { margin: 0; color: #5e5052; font-size: 1rem; line-height: 1.8; }
.tuition-guide dd strong { color: var(--wine-dark); font-weight: 700; }
.tuition-guide dd small { display: block; margin-top: 8px; color: var(--muted); font-size: .875rem; }
.tuition-refund { margin-top: 36px; padding: clamp(24px, 3vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: #fffdfb; }
.tuition-refund h3 { margin-bottom: 12px; }
.tuition-refund-table { width: 100%; border-collapse: collapse; }
.tuition-refund-table caption { padding-bottom: 18px; text-align: left; color: var(--muted); font-size: .9375rem; }
.tuition-refund-table th, .tuition-refund-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 1rem; }
.tuition-refund-table thead th { background: #f2e8e7; color: #79565d; font-size: .875rem; font-weight: 600; }
.tuition-refund-table tbody th { color: #5e5052; font-weight: 500; }
.tuition-refund-table td { color: #673943; font-weight: 600; }
.tuition-card { max-width: none; margin-top: 36px; }
.tuition-card > p { margin: 0 0 24px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.tuition-card .application-phone { align-self: flex-start; min-width: min(100%, 320px); }
.parents-page { background: #f4ece7; }
.academic-schedule { margin-top: 36px; padding: clamp(20px, 4vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: #fffdfb; }
.academic-schedule .notice-months { gap: 40px; }
.academic-schedule .notice-day { width: 36px; height: 36px; }
.announcement-entry { margin-top: 28px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 12px; background: white; }
.announcement-heading > span { display: inline-block; margin-bottom: 12px; padding: 4px 10px; background: #f4e8eb; color: var(--wine-dark); border-radius: 4px; font-size: .875rem; font-weight: 600; }
.announcement-heading h3 { margin: 0 0 24px; font-size: 1.5rem; line-height: 1.4; letter-spacing: -.025em; }
.announcement-entry > img { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto 28px; }
.announcement-entry > p { font-size: 1rem; color: var(--muted); }
.announcement-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid #b9868e; border-radius: 6px; color: var(--wine-dark); font-size: 1rem; font-weight: 600; transition: background .25s ease; }
.announcement-link:hover { background: #f8eef0; }
.announcement-link:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.notice-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.notice-board .announcement-entry { min-width: 0; margin: 0; padding: clamp(24px, 3vw, 34px); box-shadow: 0 6px 24px rgba(79, 26, 32, .025); }
.notice-bulletin .announcement-heading h3 { margin-bottom: 16px; font-size: 1.375rem; line-height: 1.5; }
.notice-bulletin > p { margin: 0; color: #5e5052; line-height: 1.85; }
.notice-bulletin .announcement-link { gap: 16px; margin-top: 22px; }
.notice-bulletin .announcement-link > span { font-size: 1.125rem; }
.bulletin-time { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; padding: 24px; border: 1px solid #ecdce0; border-radius: 8px; background: #faf4f3; }
.bulletin-time > span { color: #79565d; font-size: .9375rem; font-weight: 600; }
.bulletin-time strong { color: var(--wine-dark); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.5; letter-spacing: -.025em; }
.bulletin-time small { color: var(--muted); font-size: .875rem; }
.bulletin-exam { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.bulletin-exam > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .875rem; }
.bulletin-exam > strong { display: block; color: #673943; font-size: 1rem; line-height: 1.7; }
.bulletin-exam p { margin: 10px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.75; }
.notice-bulletin .bulletin-important { margin-top: 22px; padding: 16px 18px; border-left: 3px solid #a66c76; border-radius: 0 6px 6px 0; background: #f8f0ef; font-size: .9375rem; line-height: 1.8; }
.bulletin-important strong { display: block; margin-bottom: 6px; color: var(--wine-dark); font-size: 1rem; }
.notice-intake { grid-column: 1 / -1; }
.recruitment-levels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0; margin: 24px 0 0; list-style: none; }
.recruitment-levels li { min-width: 0; padding: 24px 0 0; border-top: 1px solid var(--line); container-type: inline-size; }
.recruitment-levels li:first-child { padding-top: 0; border-top: 0; }
.recruitment-levels h4 { margin: 0 0 9px; color: #4d3038; font-size: 1.125rem; font-weight: 750; line-height: 1.6; letter-spacing: -.025em; white-space: nowrap; }
.recruitment-levels .recruitment-title-long { font-size: clamp(.875rem, 5.6cqi, 1.125rem); letter-spacing: -.035em; }
.recruitment-levels p { margin: 0; color: #5e5052; font-size: .9375rem; line-height: 1.85; }
.recruitment-levels p + p { margin-top: 8px; }
.recruitment-levels p strong { color: #79565d; font-weight: 600; }
.recruitment-requirement { display: inline-block; color: var(--muted); font-size: .875rem; }
.bulletin-reports { margin: 0; }
.bulletin-reports > div + div { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.bulletin-reports dt { margin-bottom: 8px; color: #673943; font-size: 1rem; font-weight: 700; }
.bulletin-reports dd { margin: 0; color: #5e5052; font-size: 1rem; line-height: 1.85; }
.parent-consult-card { max-width: 760px; margin-top: 36px; }
.parent-consult-card .admission-action { box-shadow: 0 14px 40px rgba(79,26,32,.07); }
.parent-consult-card .application-booking { margin-top: 8px; }
.admissions .admissions-guidance { grid-template-columns: minmax(0, 760px); justify-content: center; }
.admission-consult-note { max-width: 760px; margin: 22px auto 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
@media (max-width: 1100px) {
  .nav-shell { min-height: 68px; }
  .menu-button { display: block; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 6px; background: white; }
  .main-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 12px 20px 20px; flex-direction: column; gap: 4px; background: var(--cream); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 68px); overflow-y: auto; box-shadow: 0 16px 30px rgba(50,20,20,.08); }
  .main-menu.open { display: flex; }
  .main-menu a { min-height: 48px; padding: 12px 16px; border-radius: 6px; }
  .main-menu a.active { background: #82414b; color: white; }
  .main-menu a.active::after { display: none; }
}
@media (max-width: 860px) {
  .home-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-page, .notices-page, .tuition-page, .parents-page { padding: 60px 24px 80px; }
}
@media (max-width: 760px) {
  .tuition-fee-grid, .tuition-guide-grid { grid-template-columns: 1fr; gap: 20px; }
  .tuition-table caption { padding: 24px 20px 20px; font-size: 1.375rem; }
  .tuition-table th, .tuition-table td { padding: 15px 10px; font-size: .875rem; }
  .tuition-table thead th { font-size: .8125rem; }
  .tuition-table strong { font-size: .9375rem; }
  .tuition-refund { padding: 24px 16px; }
  .tuition-refund-table th, .tuition-refund-table td { padding: 14px 8px; font-size: .875rem; }
  .tuition-refund-table thead th { font-size: .8125rem; }
  .tuition-card .application-phone { width: 100%; }
  .notice-board { grid-template-columns: 1fr; gap: 16px; }
  .notice-bulletin .announcement-heading h3 { font-size: 1.25rem; }
  .bulletin-time { margin-top: 22px; padding: 20px; }
  .notice-board .notice-intake { padding-left: 16px; padding-right: 16px; }
  .recruitment-levels { gap: 20px; }
  .recruitment-levels li { padding-top: 20px; }
  .recruitment-levels li:first-child { padding-top: 0; }
  .notice-bulletin .announcement-link { width: 100%; }
  .academic-schedule { padding: 20px 16px; }
  .academic-schedule .notice-months { grid-template-columns: 1fr; gap: 28px; }
  .academic-schedule .notice-day { width: 32px; height: 32px; }
}
@media (max-width: 860px) {
  .hero-copy { order: 0; }
  .hero .home-pages { order: 1; }
  .hero > .hero-actions { order: 2; }
  .hero .identity-card { order: 3; }
}
