:root {
  color-scheme: light;
  --ink: #15221d;
  --muted: #4d5c54;
  --green: #356f58;
  --green-dark: #234c3d;
  --cream: #f7f2e7;
  --cream-2: #fbf8ef;
  --paper: #fffdf7;
  --line: rgba(35, 76, 61, 0.2);
  --shadow: 0 16px 34px rgba(37, 48, 37, 0.18);
  --focus: #1d6fd1;
  --max: 1280px;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.85rem;
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1rem, 2.2vw, 1.75rem) clamp(1.2rem, 4vw, 4.6rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: clamp(146px, 13vw, 190px);
  height: auto;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  color: #15221d;
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav a,
.footer-column a,
.footer-legal a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.footer-column a:hover,
.footer-legal a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(35, 76, 61, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  padding: 0.15rem;
  backdrop-filter: blur(12px);
}

.language-button {
  min-width: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
}

.language-button[aria-pressed="true"] {
  background: var(--green-dark);
  color: #fff;
}

.icon-link {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #15221d;
}

.icon-link svg,
.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 27px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(640px, 52vw, 820px);
  overflow: hidden;
  background: #dfeef2;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.75) 34%, rgba(255, 253, 247, 0.08) 62%, rgba(255, 253, 247, 0) 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center right;
}

.hero-copy {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 7vw, 5.6rem);
  top: 50%;
  width: min(560px, calc(100% - 3rem));
  transform: translateY(-38%);
}

.hero h1,
.community h2,
.mission h2,
.products h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 540px;
  margin: 0;
  font-size: clamp(3.25rem, 5.1vw, 5.2rem);
  line-height: 0.98;
}

.hero-copy p {
  max-width: 410px;
  margin: 1.65rem 0 1.75rem;
  color: #27352f;
  font-size: clamp(0.86rem, 1.1vw, 0.98rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.72rem 1.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--green);
  color: #fff;
}

.button-dark:hover {
  background: var(--green-dark);
  color: #fff;
}

.button-light {
  background: var(--paper);
  color: var(--green-dark);
}

.button-light:hover {
  background: #efe6d2;
}

.community,
.products {
  width: min(var(--max), calc(100% - clamp(2rem, 8vw, 7rem)));
  margin: 0 auto;
}

.community {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.65fr);
  gap: clamp(2.4rem, 5vw, 5rem);
  padding: clamp(4.5rem, 7vw, 6.4rem) 0 3rem;
}

.section-anchor {
  position: absolute;
  top: 0;
}

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

.community h2 {
  margin: 0;
  max-width: 440px;
  font-size: clamp(2.15rem, 3.2vw, 3.2rem);
  line-height: 1.04;
}

.community-copy > p:not(.eyebrow) {
  max-width: 330px;
  margin: 1.65rem 0 1.7rem;
  color: #33443c;
  font-size: 0.95rem;
}

.story-collage {
  display: grid;
  grid-template-columns: 1.24fr 0.88fr 0.88fr;
  grid-template-rows: 1fr 0.9fr;
  gap: 0.75rem;
}

.story-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
}

.story-main {
  grid-row: span 2;
}

.products {
  padding: 2.2rem 0 clamp(4rem, 7vw, 6rem);
}

.products h2 {
  margin: 0 0 1.8rem;
  text-align: center;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 2.8vw, 2.2rem);
}

.product-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(37, 48, 37, 0.22);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 7.4;
  border-radius: 7px;
  object-fit: cover;
}

.product-card h3 {
  margin: 1rem 0 0.3rem;
  color: #111d18;
  font-size: clamp(1.25rem, 1.7vw, 1.58rem);
  line-height: 1.13;
  font-weight: 700;
}

.product-card p {
  margin: 0 0 1rem;
  color: #1d2a25;
  font-size: 0.98rem;
  line-height: 1.35;
}

.product-card span {
  margin-top: auto;
  color: var(--green-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.product-card span::after {
  content: "  ->";
}

.mission {
  position: relative;
  min-height: clamp(360px, 28vw, 470px);
  overflow: hidden;
  background: #15221d;
}

.mission::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(10, 31, 24, 0.84), rgba(10, 31, 24, 0.46) 42%, rgba(10, 31, 24, 0.02) 72%);
}

.mission img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.mission-copy {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 7vw, 5.6rem);
  top: 50%;
  width: min(520px, calc(100% - 3rem));
  transform: translateY(-50%);
  color: #fff;
}

.mission .eyebrow {
  color: #fff;
}

.mission h2 {
  max-width: 440px;
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.02;
}

.mission-copy p:not(.eyebrow) {
  max-width: 440px;
  margin: 1.1rem 0 1.7rem;
  font-size: 0.98rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: clamp(1.4rem, 3vw, 3.2rem);
  align-items: start;
  padding: 3rem clamp(1.5rem, 5vw, 4.5rem) 2rem;
  background: var(--cream-2);
}

.footer-brand img {
  width: 170px;
}

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

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-column h2 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-links a {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--green-dark);
}

.footer-language {
  margin-top: 1rem;
  align-self: flex-start;
}

[lang="ja"] body {
  font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", Meiryo, Arial, system-ui, sans-serif;
}

[lang="ja"] .hero h1,
[lang="ja"] .community h2,
[lang="ja"] .mission h2,
[lang="ja"] .products h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
}

[lang="ja"] .hero h1 {
  max-width: 560px;
  line-height: 1.14;
}

[lang="ja"] .product-card h3 {
  line-height: 1.22;
}

@media (max-width: 980px) {
  .site-header {
    align-items: center;
  }

  .site-menu {
    display: flex;
    position: static;
    width: auto;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1rem;
  }

  .header-actions {
    justify-content: space-between;
  }

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

  .community h2,
  .community-copy > p:not(.eyebrow) {
    max-width: 620px;
  }

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

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-block,
  .footer-social {
    grid-column: auto;
  }

  .copyright {
    margin-top: 1.6rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 1rem 1.1rem;
  }

  .brand img {
    width: 150px;
  }

  .hero {
    min-height: 700px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.96) 0%, rgba(255, 253, 247, 0.82) 43%, rgba(255, 253, 247, 0.04) 76%);
  }

  .hero-image {
    object-position: 68% center;
  }

  .hero-copy {
    left: 1.3rem;
    top: 7.7rem;
    transform: none;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .hero-copy p {
    max-width: 330px;
    margin: 1.2rem 0 1.35rem;
  }

  .community,
  .products {
    width: min(var(--max), calc(100% - 2rem));
  }

  .community {
    padding-top: 3.4rem;
  }

  .story-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .story-main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .story-collage img {
    aspect-ratio: 1 / 0.8;
  }

  .mission {
    min-height: 520px;
  }

  .mission::after {
    background: linear-gradient(180deg, rgba(10, 31, 24, 0.78), rgba(10, 31, 24, 0.28) 56%, rgba(10, 31, 24, 0.02));
  }

  .mission img {
    object-position: 62% center;
  }

  .mission-copy {
    top: 2rem;
    transform: none;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
