:root {
  --bg: #f4f7fb;
  --bg-2: #ffffff;
  --card: #ffffff;
  --ink: #1b2430;
  --muted: #667085;
  --line: #e4eaf1;
  --accent: #1f8fff;
  --accent-hover: #0d7ae6;
  --forest: #1f8fff;
  --forest-2: #0d7ae6;
  --gold: #1f8fff;
  --sand: #eef5fc;
  --hot: #ff6b3d;
  --shadow: 0 10px 28px rgba(27, 80, 140, 0.08);
  --radius: 16px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: #0a4f96;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.topbar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
}
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.topbar .brand {
  align-items: center;
  gap: 12px;
}
.topbar .brand img {
  height: 44px;
  width: auto;
  display: block;
}
.topbar .brand strong {
  font-size: 26px;
  font-weight: 800;
  line-height: 44px;
  height: 44px;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 86px;
}
.site-search {
  display: flex;
  flex: 1;
  max-width: 640px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.site-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 20px;
}
.site-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 0 22px;
  cursor: pointer;
}
.nav-bar { border-top: 1px solid var(--line); }
.nav-desktop {
  display: flex;
  gap: 8px;
}
.nav-desktop a {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--sand);
  border-radius: 12px;
  padding: 12px 11px;
}
.menu-toggle span,
.menu-toggle span:before,
.menu-toggle span:after {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.menu-toggle span:before,
.menu-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.menu-toggle span:before { top: -7px; }
.menu-toggle span:after { top: 7px; }
.mobile-nav {
  display: none;
  padding: 8px 20px 20px;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.mobile-nav.open { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-forest { background: var(--accent); color: #fff; }
.btn-forest:hover { background: var(--accent-hover); }
.btn-accent { background: var(--hot); color: #fff; }
.btn-accent:hover { filter: brightness(0.95); }
.btn-line {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-white { background: #fff; color: var(--ink); }

.promo-wrap { padding: 0; background: #16324d; }
.promo-banner {
  position: relative;
  display: block;
  height: calc(100svh - var(--header-h, 210px));
  min-height: 320px;
  overflow: hidden;
  background: #16324d;
  color: #fff;
}
.promo-slides,
.promo-slide {
  position: absolute;
  inset: 0;
}
.promo-slide {
  opacity: 0;
  transition: opacity 1.1s ease;
}
.promo-slide.is-active { opacity: 1; }
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 7s ease;
}
.promo-slide.is-active img { transform: scale(1); }
.promo-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px clamp(24px, 5vw, 72px);
  background: linear-gradient(180deg, transparent 28%, rgba(10, 28, 48, 0.82));
}
.promo-copy h2 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.04em;
}
.promo-copy p { margin: 0 0 18px; color: rgba(255,255,255,0.86); max-width: 36em; font-size: 18px; }
.promo-copy .btn { align-self: flex-start; }
.promo-dots {
  position: absolute;
  z-index: 3;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 8px;
}
.promo-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}
.promo-dots button.is-active {
  width: 28px;
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .promo-slide,
  .promo-slide img { transition: none; }
}

.section { padding: 56px 0; }
.alt-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.04em;
}
.section-head p { margin: 8px 0 0; color: var(--muted); }
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--accent);
}
.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  max-width: 40em;
}
.lead-wide { max-width: 48em; }
.page-hero { padding: 36px 0 8px; background: #fff; }
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-cover {
  position: relative;
  height: 190px;
  min-height: 190px;
  max-height: 190px;
  background: #d7e6f5;
  overflow: hidden;
  flex: 0 0 190px;
}
.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-cover .fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #4db3f0, #1677d4);
}
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--accent);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}
.badge.hot { background: var(--hot); color: #fff; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-loc {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.card-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  background: var(--sand);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1677d4;
}
.card-cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.card-cta span { color: var(--accent); }

.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.board-list {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.board-list .post-card {
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}
.board-list .post-card:last-child { border-bottom: 0; }
.post-card {
  display: block;
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.post-card .meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.post-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.post-card p { margin: 0; color: var(--muted); font-size: 14px; }
.post-card:hover h3 { color: var(--accent); }

.article {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
}
.article .meta { color: var(--muted); font-size: 14px; }
.article h1 {
  margin: 10px 0 24px;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.article p { font-size: 17px; }
.article h2 { margin: 32px 0 12px; font-size: 22px; }
.article ul { padding-left: 20px; }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
[hidden] { display: none !important; }
[data-article]:empty { display: none; }

.site-footer {
  margin-top: 0;
  background: #16324d;
  color: rgba(255,255,255,0.78);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer h3 { color: #fff; margin: 0 0 10px; }
.site-footer a { color: #fff; }
.site-footer .tel-emphasis {
  display: inline-flex;
  align-items: center;
  color: #ffe14a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.site-footer .note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 980px) {
  .site-search { display: none; }
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .nav-bar { display: none; }
  .board-grid, .footer-grid, .card-grid {
    grid-template-columns: 1fr;
  }
  .promo-banner {
    height: calc(100svh - var(--header-h, 150px));
    min-height: 280px;
  }
  .promo-copy { padding: 28px 20px 36px; }
  .promo-copy p { font-size: 15px; }
  .promo-dots { right: 16px; bottom: 16px; }
  .section { padding: 40px 0; }
  .article { padding: 28px 22px; }
  .header-main { min-height: 70px; justify-content: flex-end; }
  .topbar .brand strong { font-size: 22px; }
}
