:root {
  --pitch: #16590f;
  --pitch-deep: #0b3208;
  --night: #061c05;
  --line-white: #f4f8f0;
  --lime: #d6f55a;
  --paper: #fbfcf7;
  --ink: #16241a;
  --text: #3b4d3f;
  --muted: #677a6b;
  --line: #dde5d6;
  --soft: #eef4e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  color: #fff;
  background: var(--night);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

nav a {
  color: #d3e3cf;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--lime); }

nav .language-link {
  padding-left: 18px;
  border-left: 1px solid rgb(255 255 255 / 0.26);
}

/* Hero: mown-pitch stripes with a halfway line */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 84px 0 72px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgb(255 255 255 / 0.16) calc(50% - 1px), rgb(255 255 255 / 0.16) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, var(--pitch) 0 72px, #1a6613 72px 144px);
}

.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border: 2px solid rgb(255 255 255 / 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-body {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero-icon {
  flex: none;
  width: 116px;
  height: 116px;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.35), 0 0 0 1px rgb(255 255 255 / 0.22);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pitch);
  font: 800 12px/1.3 system-ui, sans-serif;
  letter-spacing: .18em;
}

.hero .eyebrow { color: var(--lime); }

h1 {
  margin: 0;
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.2;
  letter-spacing: -.03em;
}

.hero h1 span { color: var(--lime); }

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #e3eedf;
  font-size: 17px;
  line-height: 1.95;
}

.english {
  margin: 10px 0 0;
  color: #b7ccb2;
  font: 500 13px/1.8 system-ui, sans-serif;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--night);
  background: var(--lime);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  color: #fff;
  background: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

.content .button {
  color: var(--night);
  background: var(--lime);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 26px;
  color: #c3d7bd;
  font-size: 13px;
}

/* Content */
.content {
  padding: 56px 0 96px;
}

.content section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.content section:last-child { border-bottom: 0; }

.content h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 3.6vw, 29px);
  line-height: 1.45;
}

.content h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.content p,
.content li {
  color: var(--text);
  line-height: 1.95;
}

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

.content a {
  color: var(--pitch);
  font-weight: 600;
  text-underline-offset: 3px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--pitch);
  border-radius: 12px;
  line-height: 1.75;
}

.features li + li { margin-top: 0; }

.features b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 6px;
  color: var(--pitch);
  font: 700 22px/1 system-ui, sans-serif;
  transform: translateY(-50%);
}

.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 0; }

.box {
  padding: 18px 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  color: var(--text);
  line-height: 1.7;
}

th {
  color: var(--ink);
  background: var(--soft);
}

/* Footer */
.site-footer {
  padding: 36px 0;
  color: #9fb69a;
  background: var(--night);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #d3e3cf; text-decoration: none; }
.footer-links a:hover { color: var(--lime); }

/* Redirect page */
.redirect {
  max-width: 560px;
  margin: 80px auto;
  padding: 0 20px;
  color: var(--text);
  line-height: 1.9;
}

.redirect a { color: var(--pitch); font-weight: 700; }

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 960px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 12px; }
  nav { justify-content: flex-start; gap: 10px 18px; }
  nav .language-link { padding-left: 0; border-left: 0; }
  .hero { padding: 52px 0 48px; }
  .hero::after { width: 200px; height: 200px; }
  .hero-body { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-icon { width: 84px; height: 84px; border-radius: 19px; }
  .lead { font-size: 16px; }
  .content { padding: 32px 0 72px; }
  th, td { padding: 8px 10px; font-size: 14px; }
}

/* Language picker */
.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 620px;
  margin-top: 32px;
}

.language-card {
  display: block;
  padding: 20px 22px;
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 14px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.language-card:hover {
  background: rgb(255 255 255 / 0.18);
  border-color: var(--lime);
}

.language-card strong {
  display: block;
  color: var(--lime);
  font-size: 20px;
}

.language-card span {
  display: block;
  margin-top: 4px;
  color: #d8e7d3;
  font-size: 13px;
  line-height: 1.6;
}

/* Keep the footer at the bottom on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
