:root {
  --bg: #f5f1e8;
  --bg-accent: #e5dbc7;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #1e1a15;
  --muted: #5f5548;
  --line: rgba(54, 42, 27, 0.12);
  --accent: #0f5d46;
  --accent-strong: #0a4735;
  --shadow: 0 24px 60px rgba(42, 31, 19, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1080px;
  font-family: "Avenir Next", "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 32%),
    linear-gradient(135deg, var(--bg) 0%, #efe6d7 45%, var(--bg-accent) 100%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.shell-narrow {
  width: min(calc(100% - 32px), 920px);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 238, 0.72)),
    rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 93, 70, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-compact {
  padding: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

h3 {
  font-size: 1.1rem;
}

.lead {
  max-width: 56rem;
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--muted);
}

.meta {
  margin: 18px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(15, 93, 70, 0.1);
  color: var(--accent-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(15, 93, 70, 0.1);
  color: var(--accent-strong);
}

.panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

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

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
}

.label {
  margin: 0 0 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 28px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  margin: 12px 0 0;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 6px;
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding: 20px 0 40px;
  }

  .hero,
  .hero-compact,
  .panel {
    padding: 24px;
    border-radius: 22px;
  }

  h1 {
    max-width: none;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
