:root {
  color-scheme: light;
  --ink: #1d2825;
  --muted: #54625e;
  --line: #d7dfd9;
  --paper: #f8f8f5;
  --surface: #ffffff;
  --accent: #245a56;
  --accent-soft: #edf2ef;
  --warm: #eee9df;
  --copper: #aa855f;
  --max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
}

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

a:hover {
  text-decoration-thickness: 0.12em;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--accent);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner,
.footer-inner,
.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

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

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(circle at 82% 22%, rgba(18, 102, 79, 0.11), transparent 28rem),
    linear-gradient(150deg, var(--paper), var(--warm));
}

/* The gateway is deliberately distinct from the four Lens themes. */
.home-page .site-header {
  position: relative;
  z-index: 2;
}

.home-page .hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background: #eeeae0;
  background-image: radial-gradient(circle at 87% 8%, #f8f6f0 0, transparent 35rem);
}

.hero__layout,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero__copy {
  max-width: 39rem;
}

.home-page .hero h1 {
  font-size: clamp(3.05rem, 5vw, 4.45rem);
  letter-spacing: -0.085em;
  line-height: 1.13;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.15rem;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-weight: 650;
  border-radius: 0.35rem;
}

.quiet-link {
  font-weight: 600;
}

.hero__visual {
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2.5rem);
  background: #f9f8f3;
  border: 1px solid #d5d0c5;
  box-shadow: 0 1.5rem 3.5rem rgba(29, 40, 37, 0.07);
}

.hero__visual-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  color: #263632;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.35;
}

.lens-quadrants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #aab7ae;
  border-left: 1px solid #aab7ae;
}

.lens-quadrants > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: clamp(7.5rem, 13vw, 11rem);
  padding: clamp(0.8rem, 2vw, 1.4rem);
  border-right: 1px solid #aab7ae;
  border-bottom: 1px solid #aab7ae;
}

.lens-quadrants span,
.hero__visual-foot {
  color: #60716b;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.lens-quadrants strong {
  color: #234a45;
  font-family: Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 500;
}

.lens-quadrants small {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero__visual-foot {
  margin: 1.1rem 0 0;
}

.home-page .section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.home-page .section + .section {
  border-top: 0;
}

.two-column {
  align-items: start;
}

.section-heading h2 {
  max-width: 35rem;
  font-size: clamp(1.75rem, 3.7vw, 2.8rem);
  letter-spacing: -0.04em;
}

.section-heading--wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.section-heading--wide > p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
}

.section-body {
  max-width: 40rem;
  font-size: 1.08rem;
}

.section-body p:first-child {
  margin-top: 0;
}

.section--media {
  background: #eef1ec;
}

.media-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #ced9d1;
  background: var(--surface);
}

.media-card__image-link {
  display: block;
  min-width: 0;
  margin: -0.35rem -0.35rem 1.15rem;
  border: 1px solid #d7dfd9;
  background: #eef1ec;
  overflow: hidden;
}

.media-card__visual {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.media-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.media-card__top img,
.category-card img {
  display: block;
  width: 3.1rem;
  height: 3.1rem;
}

.media-card__category,
.category-card__en,
.latest-grid span,
.external-list a > span {
  color: #5a7369;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.media-card h3 {
  margin: 1.1rem 0 0.2rem;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 500;
}

.media-card > p,
.category-card > p {
  margin: 0.5rem 0;
  color: #42554f;
}

.media-card__question {
  padding-top: 0.8rem;
  border-top: 1px solid #e4ebe6;
  font-size: 0.94rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.8rem;
  font-weight: 700;
  text-decoration-thickness: 0.07em;
}

.category-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-top: 2px solid #819c8f;
  background: #f1f2ed;
}

.category-card__en {
  margin: 1.1rem 0 0;
}

.category-card h3 {
  font-size: 1.35rem;
}

.section--editorial {
  color: #ecf0ea;
  background: #203a35;
}

.section--editorial .eyebrow,
.section--editorial .principle-no {
  color: #dfbd8f;
}

.editorial-lead {
  max-width: 49rem;
  font-size: 1.1rem;
}

.principle-grid,
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 2.2rem;
}

.principle-grid article {
  padding-top: 1.1rem;
  border-top: 1px solid #779086;
}

.principle-grid h3 {
  margin-top: 1.4rem;
}

.principle-grid p {
  color: #ccd8d0;
}

.section--external {
  background: #faf9f6;
}

.section-note {
  max-width: 27rem;
  color: var(--muted);
}

.external-list {
  border-top: 1px solid var(--line);
}

.external-list a {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.1rem 0.7rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.external-list a:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

.external-list a > span {
  grid-row: span 2;
}

.external-list strong {
  font-weight: 700;
}

.external-list small {
  color: var(--muted);
  font-size: 0.84rem;
}

.latest-grid article {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: #fff;
}

.latest-grid h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
}

.latest-grid p {
  color: var(--muted);
}

.section--contact {
  background: #e5ebe5;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.contact-panel > div {
  max-width: 48rem;
}

.contact-panel img {
  opacity: 0.62;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 8vw, 5.4rem);
  letter-spacing: -0.035em;
}

.page-hero h1 {
  font-size: clamp(2.15rem, 6vw, 4rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
}

.lead {
  max-width: 44rem;
  margin: 0;
  color: #34433f;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.8;
}

.page-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 2.8rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(155deg, var(--paper), var(--accent-soft));
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-intro,
.prose {
  max-width: 48rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
}

.note {
  max-width: 48rem;
  padding: 1.25rem 1.4rem;
  border-left: 0.25rem solid var(--accent);
  background: var(--accent-soft);
}

.policy-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.prose {
  padding: 3rem 0 5rem;
}

.prose h2 {
  margin-top: 3rem;
  padding-top: 0.4rem;
}

.prose h3 {
  margin-top: 2rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}

.contact-address {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: #eef3f1;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.copyright {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 44rem) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding-block: 1rem;
  }

  .site-nav ul {
    gap: 0.35rem 1rem;
  }

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

  .hero {
    padding-top: 4rem;
  }

  .home-page .hero__layout,
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-page .hero {
    padding: 3.25rem 0 3.5rem;
  }

  .home-page .hero h1 {
    font-size: clamp(2.75rem, 12vw, 4.3rem);
  }

  .hero__visual {
    width: 100%;
  }

  .lens-quadrants > div {
    min-height: 7.5rem;
  }

  .section-heading--wide,
  .contact-panel {
    align-items: start;
    flex-direction: column;
  }

  .media-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid,
  .latest-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .contact-panel img {
    width: 4.5rem;
    height: 4.5rem;
  }
}

@media (max-width: 25rem) {
  .external-list a {
    grid-template-columns: 1fr;
  }

  .external-list a > span {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
