:root {
  --color-forest: #2b2b2b;
  --color-forest-dark: #1a1a1a;
  --color-terracotta: #e2672c;
  --color-terracotta-dark: #b8501f;
  --color-cream: #f7f7f7;
  --color-cream-dark: #e0e0e0;
  --color-wood: #6b6b6b;
  --color-ink: #1f1f1f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--color-cream);
  color: var(--color-ink);
}

.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;
}

.site-header {
  flex-shrink: 0;
  background-color: var(--color-forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 110px;
  background-image: url("img/leaf.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: 0.18;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-name {
  font-size: 24px;
  font-weight: 700;
  opacity: 0.95;
}

.site-tagline {
  font-size: 13px;
  font-weight: 500;
}

.site-header h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  margin: 0;
}

.site-header h1 a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

.site-footer {
  flex-shrink: 0;
  background: var(--color-ink);
  color: #cfcfcf;
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  opacity: 0.7;
}

.content {
  flex: 1;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.content h2 {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  margin: 2rem 0 0.75rem;
  padding: 10px 14px;
  background: var(--color-cream-dark);
  border-left: 4px solid var(--color-forest);
  color: var(--color-forest);
}

.content h2:first-child {
  margin-top: 0;
}

.content p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-ink);
  margin: 0 0 1rem;
}

.content dl {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-ink);
}

.content dt {
  font-weight: 600;
  color: var(--color-forest);
  margin-top: 0.75rem;
}

.content dd {
  margin: 0 0 0.25rem;
}

.content dd a {
  color: var(--color-terracotta-dark);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: var(--color-terracotta-dark);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}
