:root {
  --blue: #0075d9;
  --blue-deep: #0058a8;
  --blue-soft: #e8f3fc;
  --ink: #152033;
  --muted: #5b6575;
  --line: #dce3ee;
  --paper: #ffffff;
  --page: #f4f7fb;
  --shadow: 0 12px 40px rgba(21, 32, 51, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: light;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 50% -80px, rgba(0, 117, 217, 0.16), transparent 70%),
    var(--page);
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 227, 238, 0.9);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

main {
  flex: 1;
  width: min(920px, calc(100% - 40px));
  margin: 36px auto 56px;
}

.hero,
.section,
.legal,
.notice {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 64px 40px 56px;
  text-align: center;
}

.section {
  margin-top: 28px;
  padding: 40px;
}

.legal,
.notice {
  padding: 48px 44px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.hero h1 {
  margin-bottom: 14px;
}

.lede {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.kicker {
  display: inline-block;
  margin: 28px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.section h2 {
  text-align: center;
  margin-bottom: 28px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 100%;
  padding: 22px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfe;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project a:hover,
.project a:focus-visible {
  transform: translateY(-3px);
  border-color: #b9d5f1;
  box-shadow: 0 10px 24px rgba(0, 117, 217, 0.12);
  color: var(--blue-deep);
}

.project img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 92px;
  object-fit: contain;
}

.contact {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.legal h1,
.notice h1 {
  margin-bottom: 20px;
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
}

.legal p,
.notice p {
  margin: 0 0 14px;
  color: #334155;
}

.legal p:last-child,
.notice p:last-child {
  margin-bottom: 0;
}

.footer {
  margin-top: auto;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  text-align: center;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--blue);
}

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

  .hero,
  .section,
  .legal,
  .notice {
    padding: 32px 22px;
  }

  .logo img {
    width: 176px;
  }
}
