:root {
  color-scheme: light;
  --ink: #14273d;
  --ink-soft: #526476;
  --line: #dfe7ed;
  --surface-soft: #f5f8fa;
  --accent: #2f6f9f;
  --accent-soft: #e9f2f8;
  --white: #ffffff;
  --shadow: 0 12px 36px rgba(20, 39, 61, 0.06);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--white);
  color: var(--ink);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #8cc4e8;
  outline-offset: 5px;
}

.site-shell {
  width: min(100% - 48px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.github-link,
.site-footer a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.github-link:hover,
.site-footer a:hover {
  color: var(--accent);
}

main {
  flex: 1;
}

.hero {
  max-width: 760px;
  padding: clamp(88px, 13vw, 156px) 0 clamp(80px, 10vw, 124px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.25rem, 8vw, 6.2rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.tagline {
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.intro-copy {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.services {
  padding-bottom: clamp(96px, 12vw, 156px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.section-heading .section-kicker {
  margin-bottom: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  border-color: #b9cfdd;
  box-shadow: 0 16px 42px rgba(20, 39, 61, 0.09);
  transform: translateY(-2px);
}

.service-number {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  margin-bottom: 2.7rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
}

h3 {
  max-width: 17rem;
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.service-card p {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.service-link:hover {
  text-decoration: underline;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  flex-shrink: 0;
}

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

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 32px, 560px);
  }

  .site-header {
    min-height: 76px;
  }

  .hero {
    padding: 72px 0 78px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .section-heading {
    display: block;
  }

  .section-heading .section-kicker {
    margin-bottom: 0.55rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
