:root {
  --color-bg: #f7f8f2;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-solid: #ffffff;
  --color-ink: #242521;
  --color-muted: #62665c;
  --color-border: #ddddcf;
  --color-button: #222421;
  --color-button-hover: #343832;
  --color-accent: #18a7df;
  --color-accent-green: #86df3d;
  --color-accent-soft: #e8f8db;
  --shadow-soft: 0 18px 46px rgba(36, 37, 33, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, sans-serif;
  line-height: 1.8;
}

body.illustrated-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

body.illustrated-page::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(247, 248, 242, 0.88), rgba(247, 248, 242, 0.96)),
    url("../images/welcome-background.png") center bottom / cover no-repeat;
  content: "";
}

body.illustrated-page::after {
  position: fixed;
  right: max(28px, calc((100vw - 1080px) / 2));
  bottom: -72px;
  z-index: 0;
  width: min(34vw, 310px);
  height: min(47vw, 440px);
  background: url("../images/support-background-chicks.png") center bottom / contain no-repeat;
  content: "";
  opacity: 0.2;
  pointer-events: none;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 242, 0.88);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--color-ink);
}

.illustrated-page .site-header,
.illustrated-page main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 82px 0 66px;
}

.hero-grid {
  display: block;
}

.hero-copy {
  max-width: 100%;
}

.top-page .hero h1,
.top-page .hero .lead {
  white-space: nowrap;
}

.page-hero {
  padding: 72px 0 54px;
  border-bottom: 1px solid var(--color-border);
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.28rem, 7vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 1.56rem;
  line-height: 1.38;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 30px;
}

.section {
  padding: 38px 0;
  border-top: 1px solid var(--color-border);
}

.section-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.content-panel,
.document-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.content-panel {
  padding: 28px;
}

.content-panel p {
  margin-bottom: 20px;
  color: var(--color-muted);
}

.document-section {
  padding: 48px 0 64px;
}

.document-body {
  max-width: 760px;
}

.document-card {
  padding: 28px;
}

.document-card + .document-card {
  margin-top: 18px;
}

.document-card h2 {
  margin-top: 0;
  font-size: 1.26rem;
}

.document-card p {
  color: var(--color-muted);
}

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

.notice-box {
  margin-top: 32px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.notice-box p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.notice-box .button-link {
  margin-top: 16px;
}

.back-link-wrap {
  margin-top: 38px;
}

.text-link {
  color: #11789f;
  font-weight: 800;
  text-decoration-color: rgba(17, 120, 159, 0.32);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.24em;
}

.text-link:hover {
  color: #0c5f7e;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  background: var(--color-button);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover {
  background: var(--color-button-hover);
}

.button-link[aria-disabled="true"] {
  background: #8b9086;
  cursor: default;
}

@media (max-width: 760px) {
  body {
    line-height: 1.74;
  }

  body.illustrated-page::after {
    right: -36px;
    bottom: -52px;
    width: 210px;
    height: 300px;
    opacity: 0.13;
  }

  .container {
    width: min(100% - 32px, 980px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: 14px 0;
    gap: 12px;
  }

  .site-logo img {
    height: 28px;
  }

  .site-nav {
    width: 100%;
    gap: 8px 14px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .hero {
    padding: 50px 0 42px;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  .eyebrow,
  .section-label {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  h1 {
    margin-bottom: 16px;
    font-size: 2.1rem;
  }

  .top-page .hero h1 {
    font-size: clamp(1.86rem, 8vw, 2.18rem);
    white-space: normal;
  }

  .top-page .hero .lead {
    white-space: normal;
  }

  h2 {
    margin-bottom: 10px;
    font-size: 1.32rem;
  }

  .lead {
    font-size: 0.98rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 24px;
  }

  .section {
    padding: 30px 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .content-panel,
  .document-card {
    padding: 20px;
  }

  .document-section {
    padding: 36px 0 48px;
  }

  .document-card + .document-card {
    margin-top: 14px;
  }

  .document-card h2 {
    font-size: 1.14rem;
  }

  .document-card p,
  .content-panel p,
  .notice-box p {
    font-size: 0.95rem;
  }

  .button-link {
    width: 100%;
    min-height: 46px;
  }

  .notice-box {
    padding: 18px;
  }
}
