:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --fg: #111111;
  --muted: #666666;
  --border: #e5e5e2;
  --accent: #111111;
  --max: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "Pretendard", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
  min-width: 36px;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.logo-img:not([style*="display: none"]) + .logo-fallback {
  display: none;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--fg);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-menu a:hover {
  background: var(--bg-alt);
}

.nav-menu a.is-active {
  background: var(--accent);
  color: #fff;
}

main { display: block; }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 80px 24px;
}

.section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section--alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 24px;
  font-weight: 600;
}

.section p {
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.service-list li {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.work-card {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}

@media (max-width: 560px) {
  .nav { padding: 12px 16px; gap: 12px; }
  .nav-menu a { padding: 6px 10px; font-size: 13px; }
  .hero { padding: 72px 16px 48px; }
  .section { padding: 56px 16px; }
}

html { scroll-behavior: smooth; }
