/* 오산교습소철거 — 자연스러운 종이톤 섹션 레이아웃
   primary: #283618 (짙은 올리브그린) / accent: #DDA15E (황토톤)
   heading: Gowun Batang / body: Noto Sans KR */

:root {
  --primary: #283618;
  --primary-dark: #1a2410;
  --accent: #DDA15E;
  --accent-dark: #b97f3e;
  --paper: #F8F3E7;
  --paper-deep: #EFE5CE;
  --ink: #2A2A22;
  --ink-soft: #4E4B3E;
  --line: #DDD0AF;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Gowun Batang', serif;
  color: var(--primary);
  line-height: 1.4;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--primary); }
a:hover, a:focus-visible { color: var(--accent-dark); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  font-family: 'Gowun Batang', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0 1.25rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0.4rem 0.2rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--primary); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-bottom: 1px solid var(--line); }
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* hero */
.hero {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-text { flex: 1 1 380px; min-width: 0; }

.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.hero .lede { font-size: 1.05rem; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.6rem;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  border: 2px solid var(--primary);
}

.btn:hover, .btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.hero-media {
  flex: 1 1 340px;
  max-width: 460px;
  margin: 0 auto;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(40, 54, 24, 0.14);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* content */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 1.25rem 3rem; }

.block {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.block:last-of-type { border-bottom: none; }

.num {
  display: block;
  font-family: 'Gowun Batang', serif;
  color: var(--accent-dark);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.4rem;
}

.block-sub { color: var(--ink-soft); font-size: 0.95rem; }

.region-block {
  background: var(--paper-deep);
  border-radius: 16px;
  padding: 2rem;
  border-bottom: none;
}

@media (max-width: 480px) {
  .region-block { padding: 1.25rem; }
}

/* table */
.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 500;
}

tbody tr:last-child td { border-bottom: none; }

@media (max-width: 480px) {
  .table-scroll { border: 1px solid var(--line); border-radius: 10px; }
}

/* checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.checklist li {
  position: relative;
  padding: 0.7rem 1rem 0.7rem 2.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-dark);
  border-radius: 5px;
}

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.gallery picture {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery img { display: block; width: 100%; height: auto; }

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}

/* cta */
.cta-block {
  text-align: center;
  background: var(--paper-deep);
  border-radius: 16px;
  padding: 2rem;
  border-bottom: none;
}

.cta-block p { max-width: 42em; margin-left: auto; margin-right: auto; }

/* footer */
footer {
  background: var(--primary-dark);
  color: #E7E0CB;
  padding: 2.5rem 1.25rem 2rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  max-width: 1280px;
  margin: 0 auto 1.5rem;
}

footer nav a {
  color: #E7E0CB;
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

footer nav a:hover, footer nav a:focus-visible { color: var(--accent); }

footer address {
  font-style: normal;
  max-width: 1280px;
  margin: 0 auto 1rem;
  font-size: 0.88rem;
  line-height: 1.9;
  color: #C9C1A6;
}

footer address a { color: var(--accent); }

footer p { max-width: 1280px; margin: 0 auto; font-size: 0.8rem; color: #9E9678; }

/* breakpoints */
@media (min-width: 1024px) {
  .hero { padding: 4rem 1.25rem; }
}

@media (min-width: 1280px) {
  .wrap { max-width: 960px; }
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line, #ddd);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--paper, #fff);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: currentColor;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.related-card-arrow { opacity: 0.6; flex-shrink: 0; }
@media (max-width: 480px) {
  .related-cards { grid-template-columns: 1fr; }
}

