@font-face {
  font-family: "SEBANG Gothic";
  src: url("../fonts/SEBANGGothic-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "SEBANG Gothic";
  src: url("../fonts/SEBANGGothic-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f3f5f4;
  --surface: #fff;
  --ink: #183538;
  --muted: #53686a;
  --brand: #00789c;
  --line: #cdd9d8;
  --yellow: #f4ca57;
  --blue: #e5f1f3;
  --green: #e8efdf;
  --radius: 16px;
  --space: clamp(24px, 3.3vw, 64px);
}

* { box-sizing: border-box; }
html { min-width: 320px; height: 100%; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: "SEBANG Gothic", sans-serif; font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button, a { transition: background-color 180ms ease-out, color 180ms ease-out; }
button:focus-visible, a:focus-visible, [role="tabpanel"]:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
button:active, a:active { opacity: .8; }
::selection { color: var(--ink); background: var(--yellow); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.3; text-wrap: balance; }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 화면 높이에 맞춰 영역을 배분하되, 확대 시에는 내용이 잘리지 않도록 문서 흐름을 유지합니다. */
.site-shell { width: min(100%, 1920px); min-height: 640px; height: 100vh; height: 100dvh; margin: 0 auto; padding: 0 var(--space); display: grid; grid-template-rows: 100px minmax(0, 1fr) 72px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; flex: 0 0 auto; }
.brand img { display: block; width: 108px; height: auto; }
.main-nav { margin-left: auto; }
.tabs { display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); }
.tabs button { position: relative; min-height: 48px; padding: 0 2px; font-size: 15px; color: var(--muted); white-space: nowrap; }
.tabs button::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tabs button[aria-selected="true"]::after { background: var(--ink); }
.tabs button:hover, .header-home:hover, .site-footer a:hover { color: var(--brand); }
.header-home { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-left: 32px; margin-left: 12px; border-left: 1px solid var(--line); font-size: 13px; }
.header-home .icon { width: 18px; height: 18px; }
.main-stage { min-height: 0; }
.page-panel { height: 100%; min-height: 0; }

.business-panel { display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(32px, 4vw, 80px); }
.education-cover { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 56px); background: var(--yellow); border-radius: var(--radius); overflow: hidden; }
.cover-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.cover-mark { margin-left: auto; font-size: 23px; font-weight: 700; letter-spacing: -.04em; }
.cover-copy { padding: 20px 0; }
.cover-copy h1 { font-size: clamp(36px, 3.65vw, 68px); line-height: 1.28; }
.cover-copy p { margin-top: 24px; font-size: clamp(14px, 1.16vw, 18px); }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 52px; padding: 12px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.button-dark { color: #fff; background: var(--ink); margin-top: 32px; }
.button-dark:hover { background: #28585d; }
.button .icon { width: 20px; height: 20px; }
.cover-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.edu-word { font-size: clamp(72px, 9.1vw, 166px); font-weight: 700; line-height: .85; letter-spacing: -.04em; }
.edu-word > span { color: var(--surface); }
.cover-caption { font-size: 12px; line-height: 1.6; padding-bottom: 4px; }
.business-content { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 12px 0; }
.section-intro h2 { font-size: clamp(28px, 2.7vw, 46px); }
.section-intro > p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.project-list { margin-top: clamp(20px, 3vh, 40px); }
.project { display: flex; align-items: center; gap: 18px; padding: clamp(16px, 2.45vh, 28px) 0; border-top: 1px solid var(--line); }
.project-icon { width: 28px; height: 28px; color: var(--brand); }
.project h3 { font-size: clamp(17px, 1.35vw, 22px); }
.project p { margin-top: 6px; font-size: clamp(12px, 1.02vw, 15px); line-height: 1.7; }
.project p span { color: var(--muted); }
.project-label { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: underline; text-decoration-color: var(--line); }
.text-link:hover { color: var(--brand); text-decoration-color: var(--brand); }
.text-link .icon { width: 18px; height: 18px; }
.business-inquiry { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding: 20px 0 0; border-top: 1px solid var(--line); text-align: left; text-decoration: none; color: var(--muted); font-size: 12px; }
.business-inquiry span { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 13px; font-weight: 700; }

.panel-heading h1 { font-size: clamp(32px, 3.2vw, 52px); }
.panel-heading > p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.mobile-break { display: none; }
.courses-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(16px, 2.5vh, 32px); padding-top: 12px; }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-height: 0; }
.course { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: clamp(24px, 2.7vw, 44px); border-radius: var(--radius); }
.course-hospital { background: var(--blue); }
.course-senior { background: var(--green); }
.course:hover { background: #d6e9ed; }
.course-senior:hover { background: #dce7ce; }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.course-icon { width: 40px; height: 40px; }
.course h2 { font-size: clamp(24px, 2.6vw, 44px); }
.course p { margin-top: 14px; font-size: 15px; color: var(--muted); }
.course dl { font-size: 12px; }
.course dl > div { display: flex; gap: 20px; }
.course dt { flex: 0 0 60px; color: var(--muted); }
.course-action { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid #afc4c5; font-size: 14px; font-weight: 700; }
.course-note { font-size: 11px; color: var(--muted); }

.about-panel, .contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; padding: clamp(24px, 3vw, 56px); border-radius: var(--radius); background: var(--surface); }
.about-statement h1, .contact-intro h1 { font-size: clamp(36px, 3.6vw, 64px); }
.about-statement > p, .contact-intro > p { margin-top: 28px; max-width: 39ch; font-size: 15px; color: var(--muted); }
.company-history { display: flex; gap: 36px; padding-top: 40px; }
.company-history > div { display: flex; flex-direction: column; gap: 8px; }
.company-history strong { font-size: 24px; letter-spacing: -.02em; }
.company-history span { font-size: 12px; color: var(--muted); }
.value-list article { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: clamp(16px, 3vh, 32px) 0; border-top: 1px solid var(--line); }
.value-list article > span { grid-column: 2; grid-row: 1; align-self: center; color: var(--brand); font-size: 13px; }
.value-list h2 { grid-column: 1; grid-row: 1; font-size: clamp(21px, 2vw, 30px); }
.value-list p { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; color: var(--muted); }
.contact-panel { background: var(--blue); }
.contact-phone { display: inline-flex; align-items: center; gap: 16px; margin-top: 40px; font-size: clamp(26px, 3vw, 48px); font-weight: 700; line-height: 1.4; letter-spacing: -.03em; }
.contact-phone .icon { width: 32px; height: 32px; }
.contact-phone:hover, .email-link:hover { color: var(--brand); }
.contact-block { display: flex; align-items: flex-start; gap: 24px; padding: 32px 0; border-top: 1px solid #afc4c5; }
.contact-block > .icon { margin-top: 4px; color: var(--brand); }
.contact-block h2 { font-size: 18px; margin-bottom: 18px; }
.contact-block address { font-size: 20px; font-style: normal; line-height: 1.7; }
.contact-block .text-link { margin-top: 20px; min-height: 36px; }
.email-link { font-size: 22px; }
.contact-block p { margin-top: 8px; color: var(--muted); font-size: 13px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }
.site-footer > div { display: flex; align-items: center; gap: 20px; }
.site-footer a, .site-footer button { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer button { gap: 8px; padding: 0; font-size: 11px; }
.site-footer .icon { width: 16px; height: 16px; }
.script-notice { padding: 12px 24px; background: var(--surface); }

@media (min-width: 768px) and (max-height: 760px) {
  .site-shell { grid-template-rows: 80px minmax(0, 1fr) 56px; min-height: 580px; }
  .education-cover { padding: 26px; }
  .cover-copy { padding: 12px 0; }
  .cover-copy h1 { font-size: clamp(32px, 3.4vw, 50px); }
  .cover-copy p { margin-top: 16px; }
  .button-dark { margin-top: 20px; }
  .edu-word { font-size: 84px; }
  .section-intro h2 { font-size: 30px; }
  .section-intro > p { margin-top: 8px; }
  .project-list { margin-top: 20px; }
  .project { padding: 14px 0; }
  .project h3 { font-size: 17px; }
  .project p { font-size: 12px; }
  .business-inquiry { padding-top: 14px; }
  .course { padding: 24px; gap: 10px; }
  .course h2 { font-size: 30px; }
  .course p { font-size: 13px; }
  .contact-block { padding: 22px 0; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .site-header { gap: 20px; }
  .tabs { gap: 22px; }
  .header-home { margin-left: 0; padding-left: 20px; }
  .business-panel { grid-template-columns: .95fr 1fr; gap: 28px; }
  .project-label { display: none; }
  .project { gap: 14px; }
  .business-inquiry { flex-direction: column; }
  .cover-caption { font-size: 10px; }
  .contact-panel { gap: 32px; padding: 32px; }
  .contact-block { gap: 16px; }
  .contact-block address { font-size: 18px; }
}

@media (max-width: 767px) {
  :root { --space: 20px; --radius: 12px; }
  .site-shell { min-height: 640px; grid-template-rows: 112px minmax(0, 1fr) 54px; }
  .site-header { position: relative; flex-wrap: wrap; align-content: flex-start; gap: 0; padding-top: 16px; }
  .brand img { width: 76px; }
  .header-home { margin-left: auto; min-height: 38px; padding: 0; border: 0; font-size: 11px; gap: 6px; }
  .main-nav { order: 3; width: 100%; margin: 10px 0 0; }
  .tabs { width: 100%; justify-content: space-between; gap: 0; }
  .tabs button { min-height: 44px; padding: 0 8px; font-size: 13px; }
  .business-panel { display: flex; flex-direction: column; gap: 20px; }
  .education-cover { flex: 0 0 auto; position: relative; min-height: 248px; padding: 22px; }
  .cover-top { font-size: 12px; }
  .cover-mark { font-size: 19px; }
  .cover-copy { padding: 16px 0 0; }
  .cover-copy h1 { font-size: clamp(29px, 7.8vw, 42px); line-height: 1.3; }
  .cover-copy p { margin-top: 12px; font-size: 12px; line-height: 1.7; }
  .button { min-height: 44px; padding: 8px 14px; gap: 22px; font-size: 12px; }
  .button-dark { margin-top: 18px; }
  .cover-bottom { position: absolute; right: 20px; bottom: 22px; }
  .edu-word { font-size: 55px; }
  .cover-caption { display: none; }
  .business-content { flex: 1; padding: 0; justify-content: space-between; }
  .section-intro h2 { font-size: 18px; line-height: 1.4; }
  .section-intro h2 br { display: none; }
  .section-intro > p { display: none; }
  .project-list { margin-top: 10px; }
  .project { padding: clamp(10px, 1.8vh, 18px) 0; gap: 12px; }
  .project-icon { width: 22px; height: 22px; }
  .project h3 { font-size: 15px; }
  .project p { margin-top: 4px; font-size: 11px; line-height: 1.5; }
  .project p br, .project p span { display: none; }
  .project-label { display: none; }
  .business-inquiry { min-height: 44px; padding-top: 10px; font-size: 0; gap: 0; }
  .business-inquiry span { font-size: 12px; }
  .site-footer { font-size: 10px; gap: 8px; }
  .site-footer a { font-size: 11px; }
  .site-footer > div { gap: 12px; }
  .footer-email, .footer-separator, .footer-company { display: none !important; }
  .site-footer button { font-size: 11px; }
  .mobile-break { display: inline; }
  .courses-panel { padding-top: 8px; gap: 14px; }
  .panel-heading h1 { font-size: 28px; }
  .panel-heading > p { margin-top: 8px; font-size: 11px; }
  .course-grid { display: flex; flex-direction: column; gap: 12px; }
  .course { flex: 1; padding: 18px 20px; gap: 10px; position: relative; }
  .course-top { font-size: 11px; }
  .course-icon { width: 24px; height: 24px; }
  .course h2 { font-size: 23px; }
  .course p { font-size: 12px; margin-top: 8px; }
  .course dl { display: none; }
  .course-action { padding-top: 10px; font-size: 12px; }
  .course-action .icon { width: 18px; height: 18px; }
  .course-note { font-size: 11px; line-height: 1.6; }
  .about-panel, .contact-panel { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 20px; padding: 24px; }
  .about-statement h1, .contact-intro h1 { font-size: 32px; }
  .about-statement > p, .contact-intro > p { margin-top: 16px; font-size: 12px; }
  .company-history { padding-top: 24px; gap: 28px; }
  .company-history strong { font-size: 21px; }
  .company-history span { font-size: 11px; }
  .value-list article { padding: 14px 0; }
  .value-list article:last-child { padding-bottom: 0; }
  .value-list article > span { font-size: 11px; }
  .value-list h2 { margin-top: 0; font-size: 18px; }
  .value-list p { margin-top: 6px; font-size: 11px; }
  .contact-phone { margin-top: 24px; font-size: 31px; gap: 10px; }
  .contact-phone .icon { width: 24px; height: 24px; }
  .contact-block { padding: 20px 0; gap: 16px; }
  .contact-block:last-child { padding-bottom: 0; }
  .contact-block h2 { margin-bottom: 10px; font-size: 14px; }
  .contact-block address { font-size: 16px; }
  .contact-block .text-link { margin-top: 10px; min-height: 32px; font-size: 12px; }
  .email-link { font-size: 17px; }
  .contact-block p { font-size: 11px; }
}

@media (max-width: 767px) and (max-height: 740px) {
  :root { --space: 16px; }
  .site-shell { grid-template-rows: 104px minmax(0, 1fr) 48px; }
  .education-cover { min-height: 222px; padding: 18px 20px; }
  .cover-top { line-height: 1.2; }
  .cover-copy { padding-top: 10px; }
  .cover-copy h1 { font-size: 29px; }
  .cover-copy p { margin-top: 8px; }
  .button-dark { margin-top: 12px; }
  .edu-word { font-size: 45px; }
  .business-panel { gap: 12px; }
  .project { padding: 9px 0; }
  .project h3 { font-size: 14px; }
  .section-intro h2 { font-size: 16px; }
  .course { padding: 12px 18px; gap: 7px; }
  .course h2 { font-size: 21px; }
  .course p { font-size: 11px; margin-top: 6px; }
  .course-top .icon { width: 20px; height: 20px; }
  .panel-heading h1 { font-size: 25px; }
  .courses-panel { gap: 10px; padding-top: 4px; }
  .about-panel, .contact-panel { padding: 20px; gap: 16px; }
  .about-statement h1, .contact-intro h1 { font-size: 28px; }
  .about-statement > p { margin-top: 12px; }
  .company-history { padding-top: 16px; }
  .value-list article { padding: 10px 0; }
  .value-list p { margin-top: 4px; }
  .contact-block { padding: 16px 0; }
  .contact-phone { margin-top: 16px; font-size: 28px; }
}

/* 가로 휴대폰과 큰 글자 확대에서는 스크롤을 허용해 정보·키보드 포커스가 잘리지 않게 합니다. */
@media (max-height: 539px) {
  .site-shell { height: auto; min-height: 100dvh; grid-template-rows: auto auto auto; }
  .site-header { min-height: 100px; }
  .page-panel { height: auto; min-height: 440px; }
  .education-cover { min-height: 420px; }
  .business-content { padding: 12px 0; }
  .site-footer { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
