:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --ink: #101010;
  --muted: #5c5c57;
  --line: #151515;
  --soft-line: #dedbd0;
  --accent: #067d06;
  --highlight: #05ff00;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 4px;
}

.site-header {
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  min-height: 78px;
  padding: 0 clamp(20px, 4vw, 56px);
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.brand:hover,
.brand:focus {
  color: var(--highlight);
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  justify-content: flex-end;
}

.nav a {
  background: linear-gradient(0deg, var(--highlight), var(--highlight)) no-repeat right bottom / 0
    100%;
  color: var(--ink);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  padding: 0 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-size 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.nav a[aria-current="page"],
.nav a:hover {
  background-position-x: left;
  background-size: 100% 100%;
  color: var(--accent);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  grid-column: 1 / -1;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  grid-column: 1 / -1;
  max-width: 980px;
}

.lead {
  align-self: end;
  border-top: 1px solid var(--line);
  grid-column: 2;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
  padding-top: 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1440px;
}

.info-card {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(24px, 3.4vw, 44px);
  position: relative;
  text-decoration: none;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.info-card + .info-card {
  border-left: 1px solid var(--line);
}

.info-card::before {
  background: var(--highlight);
  content: "";
  display: block;
  left: -1px;
  position: absolute;
  top: -1px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
  width: 3px;
  height: calc(100% + 2px);
  will-change: transform;
}

.info-card:hover,
.info-card:focus {
  background: #f3f6f3;
  outline: none;
}

.info-card:hover::before,
.info-card:focus::before {
  transform: scaleY(1);
}

.info-card__label {
  color: var(--accent);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.info-card h2 {
  background: linear-gradient(0deg, var(--highlight), var(--highlight)) no-repeat right 85% / 0
    0.9em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 4.2rem);
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 28px;
  max-width: 720px;
  transition:
    background-size 0.35s var(--ease-out),
    color 0.3s var(--ease-out);
}

.info-card p {
  align-self: end;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
  padding-top: 18px;
  transition:
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.info-card:hover h2,
.info-card:focus h2 {
  background-position-x: left;
  background-size: 100% 0.9em;
  color: var(--accent);
}

.info-card:hover p,
.info-card:focus p {
  border-color: rgba(6, 125, 6, 0.35);
  color: var(--accent);
}

.support {
  align-items: start;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 56px);
}

.support h2 {
  font-family:
    "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0;
}

.support p {
  border-top: 0;
  font-size: 1rem;
  margin: 0;
  padding-top: 0;
}

.support a,
.document a {
  background: linear-gradient(0deg, var(--highlight), var(--highlight)) no-repeat right bottom / 0
    100%;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  padding: 0 0.08em;
  text-decoration: none;
  transition:
    background-size 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}

.support a:hover,
.support a:focus,
.document a:hover,
.document a:focus {
  background-position-x: left;
  background-size: 100% 100%;
  color: var(--accent);
}

.document {
  background: var(--bg);
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 72px) clamp(64px, 9vw, 104px);
}

.document > .eyebrow {
  margin-bottom: clamp(18px, 3vw, 32px);
}

.document h1 {
  border-bottom: 1px solid var(--line);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 18px;
  padding-bottom: clamp(26px, 5vw, 56px);
}

.document h2 {
  border-top: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  margin-top: 46px;
  padding-top: 26px;
}

.document p,
.document li,
.legal-list dd {
  color: #2d2d2b;
  font-size: 1rem;
}

.document > p:not(.eyebrow):not(.updated):not(.notice) {
  max-width: 780px;
}

.document ul {
  padding-left: 1.3em;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 42px;
}

.notice {
  color: var(--ink);
  margin: 32px 0;
  padding: 0;
}

.legal-list {
  border-top: 1px solid var(--line);
  margin: 42px 0 0;
}

.legal-list div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  padding: 22px 0;
}

.legal-list dt {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-list dd {
  margin: 0;
}

.site-footer {
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 30px clamp(20px, 4vw, 56px);
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.site-footer p {
  margin: 0 auto;
  max-width: 1440px;
}

@media (max-width: 760px) {
  .site-header {
    align-items: start;
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 20px;
    padding-top: 20px;
  }

  .nav {
    gap: 12px 18px;
    justify-content: flex-start;
  }

  .support {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 220px;
  }

  .info-card + .info-card {
    border-left: 0;
  }

  .legal-list div {
    gap: 8px;
    grid-template-columns: 1fr;
  }
}
