:root {
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", sans-serif;
  --bg: #f3f6f7;
  --surface: #ffffff;
  --text: #1b2d32;
  --text-soft: #668f99;
  --primary: #3049e8;
  --primary-strong: #2039d0;
  --border: #d4dee1;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-strong);
}

.site-shell {
  width: min(720px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.brand small {
  font-weight: 400;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  gap: 0.3rem;
}

.nav-links a {
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-strong);
  background: var(--surface);
}

.hero {
  margin-bottom: 1.5rem;
}

.hero h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero p {
  margin: 0.3rem 0;
  color: var(--text-soft);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.pill {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  padding: 0.15rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.content {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.card h4 {
  margin: 1rem 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.card ul,
.card ol {
  margin: 0.3rem 0;
  padding-left: 1.4rem;
}

.card li {
  margin-bottom: 0.25rem;
}

.card p {
  margin: 0.3rem 0;
}

.cta-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
  color: #fff;
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.note {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.small {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }
}
