:root {
  --c-primary: #1f5f5b;      /* 주 색: 버튼·제목 강조·로고 바탕 */
  --c-primary-dark: #164643; /* 주 색 눌림·hover */
  --c-accent: #e8a33d;       /* 보조 색: 점·포커스 테두리(글자색으로는 쓰지 않음) */
  --c-accent-soft: #fbf1df;  /* 보조 색 옅은 바탕 */
  --c-bg: #fbfaf7;           /* 페이지 바탕 */
  --c-surface: #ffffff;      /* 카드·머리글 바탕 */
  --c-text: #22252a;
  --c-muted: #5b616b;
  --c-line: #e3e0d8;
  --c-band-bg: #2b2b2b;      /* 맨 위 데모 띠 */
  --c-footer-bg: #23302f;
  --c-footer-text: #e8ece9;
  --font: -apple-system, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --radius: 12px;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); }
svg { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--c-muted); }

/* 데모 띠 — 실제 납품 사이트에서는 이 블록과 HTML 의 .demo-band 를 지웁니다 */
.demo-band {
  margin: 0; padding: 6px 12px; text-align: center;
  background: var(--c-band-bg); color: #fff; font-size: .875rem;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; padding: 8px 12px; }

/* 머리글·구역 바로가기 (1페이지라 메뉴 열고 닫기 없이 줄바꿈으로 처리) */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.header-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--c-text); text-decoration: none;
}
.logo-bg { fill: var(--c-primary); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--c-text); text-decoration: none;
}
.site-nav a:hover { background: var(--c-accent-soft); }
.site-nav .nav-cta { background: var(--c-primary); color: #fff; }
.site-nav .nav-cta:hover { background: var(--c-primary-dark); }

@media (max-width: 760px) {
  .site-nav { flex-basis: 100%; padding-bottom: 10px; }
  .site-nav a { padding: 6px 10px; }
}

/* 버튼 */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--c-primary);
  background: var(--c-primary); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.btn-line { background: transparent; color: var(--c-primary); }
.btn-line:hover { background: var(--c-accent-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* 첫 화면 */
.hero { padding: 56px 0; background: linear-gradient(180deg, var(--c-surface), var(--c-bg)); }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.1rem; color: var(--c-muted); }
.art-paper { fill: var(--c-surface); stroke: var(--c-line); stroke-width: 2; }
.art-line { fill: none; stroke: var(--c-primary); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.art-dot { fill: var(--c-accent); }

/* 구역 */
.section { padding: 56px 0; }
.section-alt { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.icon { width: 40px; height: 40px; margin-bottom: 8px; stroke: var(--c-primary); }
.card .time { color: var(--c-primary); font-weight: 700; }
.note { margin-top: 20px; }

/* 단계 */
.steps {
  counter-reset: step; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.steps li {
  counter-increment: step; position: relative; padding: 20px 20px 20px 64px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-primary); color: #fff; font-weight: 700;
}
.steps strong { display: block; }

/* 표 (교습비) */
table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--c-surface); }
caption { text-align: left; color: var(--c-muted); padding-bottom: 8px; }
th, td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
thead th { background: var(--c-accent-soft); }

/* 좁은 화면: .stack 표를 행마다 카드로 쌓음(열 이름은 td 의 data-label) */
@media (max-width: 560px) {
  table.stack { min-width: 0; background: none; }
  .stack thead { display: none; }
  .stack tr {
    display: block; margin-bottom: 12px; padding: 12px 14px;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius);
  }
  .stack th, .stack td { display: block; border: 0; padding: 2px 0; }
  .stack th[scope="row"] { font-size: 1.05rem; padding-bottom: 6px; }
  .stack td::before { content: attr(data-label) " · "; font-weight: 700; color: var(--c-muted); }
}

/* 지도 자리 */
.map-box {
  min-height: 220px; display: grid; place-items: center; text-align: center; padding: 20px;
  border: 2px dashed #c9c4b8; border-radius: var(--radius); color: var(--c-muted);
  background: repeating-linear-gradient(45deg, #f4f2ec 0 12px, var(--c-bg) 12px 24px);
}

/* 문의 폼 */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label, .form legend { display: block; font-weight: 700; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 10px 12px; color: var(--c-text);
  border: 1px solid #b9b5ab; border-radius: 8px; background: #fff;
}
.form fieldset { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px; margin: 0; background: var(--c-surface); }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 6px; }
.form small { color: var(--c-muted); }
.form .consent { margin: 0 0 12px; padding-left: 1.2em; font-size: .95rem; color: var(--c-text); }
.form-note { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--c-accent-soft); color: var(--c-text); }
.form-msg { font-weight: 700; color: var(--c-primary); min-height: 1.7em; }

/* 바닥글 */
.site-footer { background: var(--c-footer-bg); color: var(--c-footer-text); padding: 40px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-name { font-weight: 700; font-size: 1.05rem; }

@media (max-width: 760px) {
  .hero { padding: 36px 0; }
  .hero-in, .two-col, .footer-in { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}
