@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/zen-kaku-gothic-new-400.woff2") format("woff2");
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/zen-kaku-gothic-new-500.woff2") format("woff2");
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/zen-kaku-gothic-new-700.woff2") format("woff2");
}

@font-face {
  font-family: "Zen Old Mincho";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/zen-old-mincho-500.woff2") format("woff2");
}

@font-face {
  font-family: "Zen Old Mincho";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/zen-old-mincho-700.woff2") format("woff2");
}

:root {
  --paper: #f8f2e7;
  --paper-deep: #efe3d2;
  --ink: #2f2a26;
  --muted: #675d53;
  --line: rgba(62, 45, 32, 0.15);
  --accent: #9f4f3e;
  --accent-soft: rgba(159, 79, 62, 0.12);
  --moss: #6d7a63;
  --night: #314654;
  --shadow: 0 18px 45px rgba(49, 41, 35, 0.12);
  --radius: 1.3rem;
  --body-font: "Zen Kaku Gothic New", "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ui-font: "Zen Kaku Gothic New", "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display-font: "Zen Old Mincho", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body, input, select, textarea {
  background: linear-gradient(180deg, #fbf7ef 0%, #f3eadc 100%);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15pt;
  line-height: 1.8;
  letter-spacing: 0.015em;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: none;
}

a {
  color: var(--accent);
  border-bottom-color: rgba(159, 79, 62, 0.3);
}

p {
  color: rgba(47, 42, 38, 0.93);
}

#header {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(66, 52, 42, 0.06);
}

#header.alt {
  background: transparent;
  box-shadow: none;
  border-bottom: 0;
}

#header #logo a,
#nav > ul > li > a {
  color: var(--ink);
  font-family: var(--ui-font);
  font-weight: 700;
  letter-spacing: 0.04em;
}

#header.alt #logo a,
#header.alt #nav > ul > li > a {
  color: #fff8f1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
}

#header nav ul li.submenu > a:before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.7em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.06rem);
  vertical-align: middle;
  font-family: inherit;
  font-weight: inherit;
}

#banner {
  background:
    linear-gradient(105deg, rgba(35, 27, 22, 0.34), rgba(66, 49, 42, 0.12) 42%, rgba(238, 229, 214, 0.02)),
    linear-gradient(180deg, rgba(20, 16, 14, 0.08), rgba(20, 16, 14, 0.2)),
    url("/images/hero-fuji.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100svh;
  padding: 0;
  text-align: left;
}

#banner .inner {
  width: min(1280px, calc(100% - 3rem));
  max-width: none;
  margin: 0 auto;
  min-height: 100svh;
  padding: 7.25rem 0 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  opacity: 1;
  animation: none;
  color: inherit;
}

#banner h2,
#banner p,
#banner .button {
  color: #fff8f1;
}

#banner .hero-copy {
  width: min(44rem, 52vw);
  max-width: 44rem;
  padding: 2.1rem 2.4rem 1.85rem;
  border: 1px solid rgba(255, 247, 238, 0.2);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, rgba(55, 38, 34, 0.42), rgba(92, 67, 59, 0.12));
  box-shadow: 0 22px 56px rgba(32, 23, 20, 0.12);
  backdrop-filter: blur(8px);
  text-align: center;
}

#banner .hero-copy h2 {
  font-size: clamp(3.6rem, 5.2vw, 5.15rem);
  line-height: 1.04;
  margin-bottom: 0.32em;
  max-width: 13.5ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

#banner .hero-copy p {
  font-size: 1.05rem;
  line-height: 1.68;
  margin-bottom: 1.15em;
  max-width: 35rem;
  margin-left: auto;
  margin-right: auto;
}

#banner .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 0 0 1.2rem 0;
}

#banner .hero-pills {
  justify-content: center;
  margin-top: 0.2rem;
}

#banner .buttons li {
  margin: 0;
}

#banner .button {
  width: auto;
  min-width: 15rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.05rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 248, 241, 0.35);
  border-radius: 999px;
  color: #fff1e2;
  font-family: var(--ui-font);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-pills,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.3rem 0 0;
}

.hero-pills span,
.tag-row span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.16);
  color: #fff6ef;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.wrapper.style1,
.wrapper.style2,
.wrapper.style3,
.wrapper.style4 {
  background: transparent;
}

.section-shell {
  background: rgba(255, 251, 244, 0.8);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  box-shadow: var(--shadow);
  padding: 3rem;
}

.section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading h2 {
  font-size: 3rem;
  margin-bottom: 0.35em;
}

.section-heading p {
  max-width: 48rem;
  margin: 0 auto;
}

.article-grid,
.category-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.article-card,
.category-card,
.stat-card {
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.article-card:hover,
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(76, 58, 50, 0.12);
  border-color: rgba(160, 90, 75, 0.22);
}

.article-card img,
.feature-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #eadfce;
}

.card-copy,
.category-copy,
.stat-card {
  padding: 1.25rem 1.3rem 1.4rem;
}

.card-kicker,
.meta-line,
.reading-line {
  font-size: 0.9rem;
  font-family: var(--ui-font);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-card h3,
.category-card h3,
.related-grid h3 {
  font-size: 2rem;
  margin-bottom: 0.35em;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.18s ease;
}

.card-title-link:hover,
.card-title-link:focus-visible {
  color: var(--accent);
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

#navButton .toggle:before {
  content: "";
  width: 1.2rem;
  height: 0.9rem;
  left: 28px;
  top: 26px;
  position: absolute;
  background:
    linear-gradient(#fff 0 0) top center / 100% 2px no-repeat,
    linear-gradient(#fff 0 0) center center / 100% 2px no-repeat,
    linear-gradient(#fff 0 0) bottom center / 100% 2px no-repeat;
  opacity: 0.85;
  font-family: inherit;
  font-weight: inherit;
}

.page-hero,
.article-hero {
  padding-top: 9rem;
  padding-bottom: 3rem;
  color: #fff8f1;
}

.article-hero {
  background:
    linear-gradient(180deg, rgba(77, 59, 45, 0.85), rgba(77, 59, 45, 0.62)),
    linear-gradient(135deg, #88705b 0%, #d8b38c 100%);
}

.category-hero {
  min-height: 70svh;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
  background:
    linear-gradient(108deg, rgba(30, 22, 18, 0.42), rgba(60, 43, 36, 0.16) 46%, rgba(248, 238, 224, 0.04)),
    linear-gradient(180deg, rgba(20, 16, 14, 0.16), rgba(20, 16, 14, 0.3)),
    var(--page-hero-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero h1,
.article-hero h1 {
  color: #fff8f1;
  font-size: 4rem;
  margin-bottom: 0.25em;
}

.page-hero .container,
.article-hero .container {
  max-width: 68rem;
}

.category-hero .container {
  min-height: calc(70svh - 12.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-copy {
  width: min(46rem, 100%);
  padding: 2.2rem 2.45rem 2rem;
  border: 1px solid rgba(255, 247, 238, 0.2);
  border-radius: 1.7rem;
  background: linear-gradient(135deg, rgba(55, 38, 34, 0.44), rgba(92, 67, 59, 0.14));
  box-shadow: 0 22px 56px rgba(32, 23, 20, 0.12);
  backdrop-filter: blur(8px);
  text-align: center;
}

.page-hero p,
.article-hero p,
.breadcrumbs a,
.breadcrumbs span {
  color: #fff2e8;
}

.breadcrumbs {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.page-hero-copy .breadcrumbs {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}

.page-hero-copy .meta-strip {
  justify-content: center;
}

.breadcrumbs span {
  opacity: 0.9;
  margin: 0 0.4rem;
}

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

.article-body {
  padding: 2.8rem 3rem;
  background: rgba(255, 252, 247, 0.96);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  box-shadow: var(--shadow);
}

.article-body h2 {
  font-size: 2.7rem;
  margin-top: 2rem;
  margin-bottom: 0.45em;
}

.article-body h3 {
  font-size: 1.8rem;
  margin-top: 1rem;
  margin-bottom: 0.4em;
  color: #6f4f40;
}

.article-body figure {
  margin: 2.25rem 0;
}

.article-body figcaption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1rem;
  color: #fff0e3;
  font-family: var(--ui-font);
  font-weight: 500;
  font-size: 0.95rem;
}

.note-box {
  margin: 2rem 0;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--accent);
  background: rgba(159, 79, 62, 0.08);
  border-radius: 0.8rem;
}

.footer-brand {
  font-family: var(--display-font);
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

#footer {
  position: relative;
  padding: 8rem 1.5rem 7rem;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(248, 244, 236, 0.98) 0%, rgba(245, 239, 228, 0.82) 18%, rgba(233, 239, 226, 0.36) 52%, rgba(214, 224, 203, 0.28) 100%),
    url("/images/footer-rice-fields.jpg");
  background-position: center top, center bottom;
  background-size: auto, cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

#footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.08), rgba(255, 251, 244, 0));
  pointer-events: none;
}

.footer-panel {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.1rem 2rem 1.8rem;
  background: rgba(255, 251, 245, 0.78);
  border: 1px solid rgba(110, 86, 68, 0.16);
  border-radius: 1.6rem;
  box-shadow: 0 1.4rem 3.5rem rgba(73, 57, 43, 0.14);
  backdrop-filter: blur(10px);
}

.footer-copy {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 0.8rem;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8f3 !important;
}

.button,
.button.small {
  background: rgba(255, 251, 245, 0.92);
  border-color: rgba(65, 49, 38, 0.12);
  color: var(--ink) !important;
  box-shadow: none;
  font-family: var(--ui-font);
  font-weight: 700;
}

.site-footer-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

#footer .copyright {
  margin-top: 1rem;
}

#footer .copyright li {
  border-left-color: rgba(93, 74, 58, 0.22);
}

@media screen and (max-width: 1100px) {
  .article-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 840px) {
  #banner .inner {
    width: min(100%, calc(100% - 1.5rem));
    min-height: auto;
    padding: 6.5rem 0 2.5rem;
  }

  #banner .hero-copy h2,
  .page-hero h1,
  .article-hero h1,
  .section-heading h2 {
    font-size: 2.8rem;
  }

  #banner .hero-copy {
    padding: 1.6rem 1.35rem 1.4rem;
    max-width: none;
    width: 100%;
  }

  .section-shell,
  .article-body {
    padding: 1.5rem;
  }

  .footer-panel {
    padding: 1.6rem 1.25rem 1.4rem;
  }

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