:root {
  color-scheme: light dark;
  --paper: #f6f2e9;
  --surface: rgba(255, 253, 248, 0.92);
  --ink: #20251f;
  --muted: #626b61;
  --line: #d9d3c6;
  --green: #244d3a;
  --green-soft: #e3eee7;
  --red: #983f38;
  --shadow: 0 18px 55px rgba(35, 45, 36, 0.09);
  --content: 920px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(36, 77, 58, 0.12), transparent 27rem),
    linear-gradient(180deg, #faf7f0 0%, var(--paper) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: white;
  background: var(--green);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(80, 83, 72, 0.16);
  background: rgba(250, 247, 240, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar-inner,
main,
footer {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.topbar-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 24px;
  aspect-ratio: 1;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 17%, transparent 18% 35%, var(--green) 36% 43%, transparent 44%);
}

nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar { display: none; }

nav a {
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  color: var(--green);
  background: var(--green-soft);
}

main { padding: 72px 0 64px; }

.hero {
  padding: 0 0 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.32;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  letter-spacing: -0.055em;
}

.lead {
  max-width: 720px;
  margin: 1.15rem 0 0;
  color: #4d554c;
  font-size: 1.06rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.pill {
  padding: 0.38rem 0.66rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.notice {
  margin: 28px 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid #b9cdbf;
  border-radius: 14px;
  background: var(--green-soft);
}

.notice strong { color: var(--green); }

.language-section { padding-top: 52px; }

.language-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 20px;
}

.language-head h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
}

.language-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.card {
  margin-top: 14px;
  padding: clamp(1.15rem, 3vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 1.05rem;
}

.card p:first-of-type { margin-top: 0; }
.card p:last-child,
.card ul:last-child,
.card ol:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.35rem; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 28px;
}

.link-card {
  display: block;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 720;
  text-decoration: none;
}

.link-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 500;
}

details {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

summary {
  padding: 1rem 1.1rem;
  color: var(--green);
  font-weight: 740;
  cursor: pointer;
}

details > div { padding: 0 1.1rem 1rem; }
details p:last-child { margin-bottom: 0; }

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-weight: 740;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 680px) {
  .topbar-inner { align-items: flex-start; padding-block: 10px; }
  .topbar-inner { flex-direction: column; gap: 0.35rem; }
  nav { width: 100%; }
  main { padding-top: 48px; }
  .link-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171b17;
    --surface: rgba(32, 38, 32, 0.95);
    --ink: #eff3eb;
    --muted: #b4beb2;
    --line: #424a41;
    --green: #9ec6ac;
    --green-soft: #253a2c;
    --shadow: none;
  }

  body {
    background:
      radial-gradient(circle at 92% 2%, rgba(84, 135, 101, 0.2), transparent 27rem),
      var(--paper);
  }

  .topbar { background: rgba(23, 27, 23, 0.9); }
  .lead { color: #c4cdc1; }
  .contact { color: #142018; background: #a8d2b6; }
}

@media print {
  .topbar, .skip-link { display: none; }
  body, main { background: white; color: black; }
  main { width: 100%; padding: 0; }
  .card, details { box-shadow: none; break-inside: avoid; }
  a { color: black; }
}
