:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #17202a;
  --muted: #526071;
  --line: #d9e0e8;
  --primary: #126b5f;
  --primary-dark: #0e4f47;
  --accent: #b3472f;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hero {
  padding: 72px 0 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.3;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-size: 1.22rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.home-hero {
  padding-bottom: 52px;
}

.home-search {
  max-width: 620px;
  margin-top: 30px;
}

.home-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
}

.home-search input:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(18, 107, 95, 0.14);
}

.home-hero-visual {
  max-width: 1180px;
  margin: 38px auto 0;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(217, 224, 232, 0.72);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(18, 38, 63, 0.12);
}

.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;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: #ffffff;
  color: var(--primary-dark);
}

.section {
  padding: 48px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section p {
  max-width: 760px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  color: var(--primary-dark);
  font-weight: 800;
}

.popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.popular-chips a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(18, 107, 95, 0.2);
  border-radius: 999px;
  background: #eef8f6;
  color: var(--primary-dark);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.popular-chips a:hover {
  border-color: rgba(18, 107, 95, 0.45);
  background: #ffffff;
  text-decoration: none;
}

.region-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.region-card,
.category-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 38, 63, 0.07);
}

.category-card {
  min-height: 220px;
}

.region-card h3,
.category-card h3 {
  margin-bottom: 10px;
  font-size: 1.34rem;
  font-weight: 800;
}

.region-card p,
.category-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
  word-break: keep-all;
}

.region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.region-links a:hover {
  border-color: rgba(18, 107, 95, 0.42);
  background: #ffffff;
}

.card-more {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.card-more:hover {
  text-decoration: underline;
}

.home-intro {
  padding-top: 44px;
}

.page {
  padding: 32px 0 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.page-header {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--line);
}

.page-section {
  max-width: 960px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.page-content {
  max-width: 820px;
  padding: 48px 0 28px;
  border-bottom: 1px solid var(--line);
}

.fixed-page-image {
  margin: 24px 0;
}

.fixed-page-image img {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 18px;
  display: block;
}

.search-thumbnail {
  position: absolute;
  left: -9999px;
  width: 1200px;
  height: 630px;
  opacity: 0.01;
  pointer-events: none;
}

.page-content h2 {
  margin: 46px 0 14px;
  color: var(--primary-dark);
  font-size: 1.62rem;
  font-weight: 800;
  line-height: 1.35;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  margin: 32px 0 10px;
  font-weight: 800;
}

.page-content p {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.85;
  word-break: keep-all;
}

.body-section {
  padding-bottom: 12px;
}

.body-section p {
  max-width: 760px;
}

.page-section h2 {
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 1.32rem;
  font-weight: 800;
}

.section-note {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.intro-section {
  padding-top: 42px;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  min-width: 0;
}

.link-card .text-link {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.link-card .text-link:hover {
  border-color: rgba(18, 107, 95, 0.42);
  box-shadow: 0 14px 30px rgba(18, 38, 63, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.link-card span {
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.link-card small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  html {
    font-size: 17px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 52px 0 44px;
  }

  .home-hero h1 {
    font-size: 2.05rem;
    line-height: 1.16;
    word-break: keep-all;
  }

  .home-hero-visual {
    margin-top: 28px;
  }

  .home-hero-visual img {
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(18, 38, 63, 0.1);
  }

  .section {
    padding: 36px 0;
  }

  .grid,
  .grid.three,
  .link-list,
  .region-grid,
  .category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .region-card,
  .category-card {
    min-height: auto;
    padding: 22px;
  }

  .popular-chips {
    gap: 8px;
  }

  .page-content {
    max-width: none;
    padding-top: 38px;
  }

  .page-content h2 {
    margin-top: 36px;
    font-size: 1.42rem;
  }

  .page-section {
    max-width: none;
    padding: 32px 0;
  }

  .button {
    width: 100%;
  }
}
