:root {
  color-scheme: light;
  --brand: #300000;
  --on-brand: #f4dead;
  --paper: #fff8f8;
  --ink: #000;
  --rule: #906060;
  --surface: #fff;
  --subtle: #554d49;
  --wrap: 76rem;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

:root[data-theme="navy"] {
  --brand: #000a6c;
  --on-brand: #fff;
  --paper: #fbfaf3;
  --rule: #000a6c;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.35; }
address { font-style: normal; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: 8rem; }
.wrap { width: min(calc(100% - 2.5rem), var(--wrap)); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: .25rem; left: .25rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.review { background: #efede8; border-bottom: 1px solid #d8d3cb; }
.review-inner { display: flex; justify-content: flex-end; }
.swatches { display: flex; align-items: center; gap: .25rem; padding: .25rem 0; font-size: .875rem; }
.swatches a { padding: .18rem .58rem; border: 1px solid transparent; border-radius: .2rem; text-decoration: none; white-space: nowrap; }
.swatches a[aria-current="true"] { color: var(--on-brand); background: var(--brand); }
.swatches a:hover { border-color: var(--rule); }

.site-header { position: sticky; z-index: 5; top: 0; background: var(--brand); color: var(--on-brand); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: .45rem; min-height: 3.9rem; }
.brand { display: inline-flex; align-items: center; width: max-content; max-width: 100%; min-height: 2.75rem; }
.brand img { width: clamp(7.15rem, 35vw, 10.75rem); height: auto; }
.languages { position: relative; font-size: .875rem; }
.languages summary { list-style: none; white-space: nowrap; cursor: pointer; padding: .65rem .3rem; }
.languages summary::-webkit-details-marker { display: none; }
.languages ul { position: absolute; z-index: 2; top: 100%; right: 0; min-width: 8rem; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 .25rem .75rem #0002; }
.languages a, .languages li span { display: block; padding: .65rem .9rem; }
.primary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: var(--wrap); }
.primary a { display: grid; place-items: center; min-height: 2.75rem; text-align: center; text-decoration: none; font-size: .875rem; font-weight: 700; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.primary a:hover, .primary a[aria-current="page"] { background: var(--on-brand); color: var(--brand); }

.hero { position: relative; display: grid; align-items: start; min-height: clamp(13rem, 45svh, 22rem); color: #fff; background: #334334; isolation: isolate; }
.hero picture, .hero picture img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture { z-index: -2; }
.hero picture img { object-fit: cover; object-position: 20% 72%; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(to left, #111b13e6, #111b138c 43%, transparent 76%); }
.hero-wrap { padding-block: .85rem; }
.hero-copy { text-align: right; }
.farm-name { font-size: .875rem; font-weight: 700; letter-spacing: .06em; }
.farm-name, .hero h1 { text-shadow: 0 1px 6px #111b1399; }
.hero h1, .subpage-title h1, .section h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif; }
.hero h1 { font-size: clamp(1.65rem, 8.2vw, 4rem); line-height: 1.14; letter-spacing: .035em; margin: .35rem 0 .65rem; }
.eyebrow { font-family: Georgia, serif; font-size: .82rem; letter-spacing: .19em; line-height: 1.35; font-weight: 700; }
.section-heading .eyebrow, .subpage-title .eyebrow { color: var(--brand); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; padding: .6rem 1.15rem; background: var(--brand); border: 1px solid var(--brand); color: var(--on-brand); font-size: .92rem; font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { background: var(--paper); color: var(--brand); }
.button-light { background: #fff; color: #24130e; border-color: #fff; }
.button-light:hover { background: #352118; color: #fff; }

.section { padding-block: 2.65rem; border-bottom: 1px solid var(--rule); }
.section:last-child { border-bottom: 0; }
.section-heading { margin-bottom: 1.3rem; }
.section h2 { margin-top: .35rem; font-size: clamp(1.7rem, 4.7vw, 3rem); letter-spacing: .025em; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--brand); font-weight: 700; text-underline-offset: .35em; }
.text-link + .text-link { margin-left: 1rem; }
.text-link:hover { text-decoration-thickness: 2px; }
.desktop { display: none; }
.news-list li { border-bottom: 1px solid var(--rule); }
.news-list li:first-child { border-top: 1px solid var(--rule); }
.news-list a { display: grid; gap: .15rem; padding: .85rem .15rem; text-decoration: none; line-height: 1.55; }
.news-list a:hover span { text-decoration: underline; }
.news-list time { font-size: .875rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.news .mobile { margin-top: .4rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.card { display: block; min-width: 0; border: 1px solid var(--rule); background: var(--surface); text-decoration: none; }
.card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.card > div { padding: .7rem; }
.card h3 { font-size: clamp(1rem, 3.6vw, 1.4rem); color: var(--brand); }
.card p { margin-top: .35rem; font-size: .88rem; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: .25em; }
.visit-cards { grid-template-columns: 1fr; }
.visit-cards .card img { aspect-ratio: 16 / 8; }
.story { display: grid; align-items: center; gap: 1.5rem; }
.story > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.story p:not(.eyebrow) { max-width: 35rem; margin-bottom: .6rem; }
.story .button { margin-top: .45rem; }
.buy { padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.buy h2 { margin-bottom: .55rem; font-size: .95rem; }
.buy-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.market { display: grid; place-items: center; align-content: center; min-height: 3.85rem; min-width: 0; padding: .25rem .35rem; background: #fff; border: 1px solid var(--rule); }
.market img { width: auto; height: auto; max-height: 2.65rem; object-fit: contain; }
.market-official { display: block; align-content: center; background: var(--brand); color: var(--on-brand); font-size: .875rem; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; }
.market-official span { white-space: nowrap; }
.market:hover { outline: 1px solid var(--rule); outline-offset: 1px; }

.subpage-title { padding-block: 1rem 2.5rem; border-bottom: 1px solid var(--rule); }
.subpage-title h1 { font-size: clamp(2.3rem, 7vw, 4.5rem); margin-block: .3rem .45rem; }
.back { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .88rem; text-underline-offset: .2em; margin-bottom: .75rem; }
.store-list { display: grid; gap: .7rem; }
.store-list li { padding: .75rem 1rem; border: 1px solid var(--rule); background: var(--surface); }
.store-list span { color: var(--subtle); font-size: .875rem; }
.store-list h2 { font: inherit; font-weight: 700; }
.poster-cards .card img { aspect-ratio: 3 / 4; object-fit: contain; background: #efede8; }
.poster-cards h3 { font-size: clamp(.89rem, 3vw, 1.2rem); }

.site-footer { background: var(--brand); color: var(--on-brand); }
.footer-inner { display: grid; gap: 1.35rem; padding-block: 2rem 1.25rem; }
.footer-inner address { margin-top: .5rem; font-size: .9rem; }
.footer-inner nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-inner nav a { display: flex; align-items: center; min-height: 2.75rem; font-size: .9rem; text-underline-offset: .2em; }
.footer-inner small { padding-top: .8rem; border-top: 1px solid color-mix(in srgb, currentColor 40%, transparent); }

@media (min-width: 700px) {
  .wrap { width: min(calc(100% - 5rem), var(--wrap)); }
  .hero { min-height: clamp(25rem, 56svh, 37rem); align-items: center; }
  .hero picture img { object-position: center 74%; }
  .hero::after { background: linear-gradient(to left, #111b13d9, #111b138c 32%, transparent 62%); }
  .hero h1 { font-size: clamp(3.7rem, 7vw, 5.8rem); }
  .section { padding-block: 3.75rem; }
  .story { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); }
  .news { display: grid; grid-template-columns: 1fr 2.1fr; gap: 2rem; }
  .news-list a { grid-template-columns: 7.4rem 1fr; align-items: baseline; padding-block: 1.15rem; }
  .mobile { display: none; }
  .desktop { display: inline-flex; }
  .cards { gap: 1.25rem; }
  .card img { aspect-ratio: 16 / 9; }
  .card > div { padding: 1.1rem 1.25rem; }
  .visit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-inner { display: grid; grid-template-columns: 1fr 2.1fr; align-items: center; gap: 2rem; }
  .buy h2 { margin: 0; font-size: 1.1rem; }
  .buy-links { gap: .8rem; }
  .store-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poster-cards { max-width: 52rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner small { grid-column: 1 / -1; }
}

@media (min-width: 835px) {
  .header-row { min-height: 4.35rem; }
  .primary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .primary a { min-height: 3rem; }
}

@media (max-width: 499px) {
  .review-inner { width: calc(100% - 1rem); }
  .swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; font-size: .8125rem; text-align: center; }
  .swatches a { padding-inline: .15rem; }
}

:root[data-theme="editorial"] {
  --brand: #472723;
  --on-brand: #f7e4bc;
  --paper: #faf5e9;
  --rule: #9a8274;
  --surface: #fffcf5;
}

[data-theme="editorial"] .hero {
  align-items: stretch;
  grid-template-columns: 53% 47%;
  min-height: 0;
  color: var(--brand);
  background: #ede3d0;
}
[data-theme="editorial"] .hero::after { content: none; }
[data-theme="editorial"] .hero picture { position: relative; z-index: auto; height: auto; }
[data-theme="editorial"] .hero picture img { object-position: 20% 70%; }
[data-theme="editorial"] .hero-wrap { width: 100%; display: flex; align-items: center; justify-content: end; padding: clamp(1rem, 3.6vw, 4.5rem) clamp(.65rem, 3.2vw, 3.5rem); }
[data-theme="editorial"] .hero h1 { font-size: clamp(1.25rem, 5vw, 4.5rem); margin-block: .6rem .85rem; }
[data-theme="editorial"] .farm-name { font-size: clamp(.75rem, 2.6vw, .95rem); }
[data-theme="editorial"] :is(.farm-name, .hero h1) { text-shadow: none; }
[data-theme="editorial"] .button-light { min-height: 2.75rem; padding: .35rem .45rem; border-color: currentColor; color: var(--brand); background: transparent; font-size: .8125rem; }
[data-theme="editorial"] .button-light:hover { color: var(--on-brand); background: var(--brand); }
[data-theme="editorial"] .card { background: none; border-width: 0 0 1px; }
[data-theme="editorial"] .card > div { padding-inline: 0; }

:root[data-theme="cards"] {
  --brand: #203c32;
  --on-brand: #f7e4bc;
  --paper: #f3f5ee;
  --rule: #74857a;
  --surface: #fff;
}

[data-theme="cards"] .home-lead {
  width: min(calc(100% - 1.5rem), var(--wrap));
  display: grid;
  gap: .5rem;
  margin: .65rem auto 0;
}
[data-theme="cards"] .home-lead > * { min-width: 0; border-radius: 1rem; }
[data-theme="cards"] .hero { min-height: clamp(12rem, 42svh, 21rem); overflow: clip; }
[data-theme="cards"] .hero .wrap { width: calc(100% - 2rem); }
[data-theme="cards"] .hero h1 { font-size: clamp(1.55rem, 7.6vw, 4rem); }
[data-theme="cards"] .button { border-radius: .6rem; }
[data-theme="cards"] .hero .button { min-height: 2.75rem; }
[data-theme="cards"] .buy { background: #e0ebdc; padding-block: .65rem; border: 1px solid #c5d2c6; }
[data-theme="cards"] .buy-inner { width: calc(100% - 1.4rem); }
[data-theme="cards"] .market { border-radius: .5rem; }
[data-theme="cards"] .main-content { padding-block: .65rem 1.5rem; }
[data-theme="cards"] .main-content > .section { margin-bottom: .65rem; padding: clamp(1rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid #c5d2c6; border-radius: 1rem; }
[data-theme="cards"] .main-content > .story { background: #e0ebdc; }
[data-theme="cards"] .card { border-radius: .65rem; overflow: clip; }
[data-theme="cards"] .card:focus-visible { outline-offset: 2px; }

@media (max-width: 699px) {
  [data-theme="cards"] .hero-wrap { padding-block: .6rem; }
}

@media (min-width: 700px) {
  [data-theme="editorial"] .hero { min-height: clamp(24rem, 42vw, 34rem); grid-template-columns: 57% 43%; }
  [data-theme="editorial"] .hero picture img { object-position: 28% 73%; }
  [data-theme="editorial"] .button-light { padding-inline: 1.25rem; }
  [data-theme="cards"] .home-lead { width: min(calc(100% - 5rem), var(--wrap)); gap: .8rem; margin-top: .8rem; }
  [data-theme="cards"] .hero { min-height: clamp(23rem, 47svh, 32rem); }
  [data-theme="cards"] .hero h1 { font-size: clamp(3rem, 5.3vw, 5rem); }
}

@media (min-width: 1000px) {
  [data-theme="cards"] .home-lead { grid-template-columns: minmax(0, 3.1fr) minmax(0, 1fr); }
  [data-theme="cards"] .hero .wrap { width: calc(100% - 3.5rem); }
  [data-theme="cards"] .buy { display: grid; align-items: center; }
  [data-theme="cards"] .buy-inner { display: block; width: calc(100% - 2rem); }
  [data-theme="cards"] .buy h2 { margin-bottom: .85rem; }
  [data-theme="cards"] .buy-links { grid-template-columns: 1fr; }
  [data-theme="cards"] .market { min-height: 4.2rem; }
}

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