/* 土ものがたり — tokens taken from their WordPress theme (soilstory/canvas options):
   text/footer #5c391e, nav #93a245, active #3c421d, accents #f58d37 / #e0711d / #c9761c, cream #ffd.
   Deeper variants exist only where the originals fail contrast for text. */
:root {
  --soil: #5c391e;
  --soil-deep: #3d2513;
  --soil-ink: #4a2d16;
  --leaf: #93a245;
  --leaf-deep: #3c421d;
  --leaf-nav: #5a6820; /* their #93a245 darkened until white text passes (6.1:1) */
  --leaf-text: #556019;
  --carrot: #f58d37;
  --carrot-mid: #e0711d;
  --carrot-text: #96480c;
  --cream: #ffffdd;
  --paper: #fcfaf3;
  --card: #ffffff;
  --sand: #efe9d2;
  --line: #e4dbc4;
  --r: 18px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(61, 37, 19, .06), 0 8px 24px rgba(61, 37, 19, .08);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font);
  --wrap: 1160px;
}

h1, h2, h3, h4, blockquote, figcaption, summary, th, button, label { text-wrap: balance; }
p, li, dd, td { text-wrap: pretty; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--soil-ink);
  font: 400 1rem/1.9 var(--font);
  letter-spacing: .03em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--soil); text-decoration-color: var(--carrot); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--carrot-text); }
:focus-visible { outline: 3px solid var(--carrot); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--soil); line-height: 1.35; letter-spacing: .04em; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); }
h3 { font-size: 1.1875rem; color: var(--carrot-text); }
h4 { font-size: 1.0625rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--soil); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* top bar */
.topbar { background: var(--soil); color: #f6ecd9; font-size: .875rem; }
.topbar__in { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: flex-end; padding: 7px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__tel { font-weight: 700; }

/* header */
.head { background: #fff; box-shadow: 0 1px 0 var(--line); }
.head__in { display: flex; align-items: center; gap: 0; padding: 14px 0 10px; }
.logo img { width: 154px; height: auto; }
.bubble { width: 300px; height: auto; margin-left: -14px; } /* the bubble's tail points at the logo */
.menu-btn { display: none; }
.nav { padding-bottom: 12px; }
.nav__list {
  list-style: none; margin: 0; padding: 6px;
  display: flex; flex-wrap: wrap; gap: 4px;
  background: var(--leaf-nav);
  border-radius: 10px;
  outline: 2px dashed #cfe39a; outline-offset: -5px; /* the grassy dashed edge of the original bar */
  padding: 9px;
}
.nav__list a {
  display: block; padding: 8px 18px; border-radius: 6px;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  text-decoration: none; text-shadow: 0 1px 1px #405700;
}
.nav__list a:hover { background: rgba(60, 66, 29, .55); color: #fff; }
.nav__list a[aria-current="page"] { background: var(--leaf-deep); text-shadow: none; }

/* hero carousel */
.hero { padding: 22px 0 8px; }
.hero__frame { position: relative; border-radius: calc(var(--r) + 6px); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.slides { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 7; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__cap {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 80px 40px 34px;
  background: linear-gradient(to top, rgba(61, 37, 19, .82), rgba(61, 37, 19, 0));
  color: #fffbe9;
}
.slide__cap p { margin: 0; max-width: 34em; font-size: 1rem; line-height: 1.8; }
.slide__cap .slide__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); line-height: 1.3; margin-bottom: .3em; color: #fff; }
.hero__btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 221, .92); display: grid; place-items: center; box-shadow: var(--shadow);
}
.hero__btn img { width: 30px; }
.hero__btn--prev { left: 16px; }
.hero__btn--next { right: 16px; }
.hero__btn:hover { background: #fff; }
.dots { position: absolute; right: 24px; bottom: 22px; display: flex; gap: 8px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--carrot); border-color: var(--carrot); }

/* home sections */
.home { padding: 40px 0 24px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 36px 0; border-bottom: 1px dashed var(--line); }
.split:last-child { border-bottom: 0; }
.split--flip .split__fig { order: -1; }
.split--text { grid-template-columns: minmax(0, 46em); }
.split--text .split__text { max-width: none; }
.split__text { max-width: 36em; }
.split__text h2::before { content: ""; display: block; width: 44px; height: 6px; border-radius: 6px; background: var(--carrot); margin-bottom: 14px; }
.split__fig .ph { margin: 0; }
.split__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); }

.band { background: var(--sand); padding: 56px 0; }
.band__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.band__head h2 { margin: 0; }
.more { font-family: var(--font-head); font-weight: 700; color: var(--carrot-text); text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(61, 37, 19, .08), 0 16px 32px rgba(61, 37, 19, .12); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__img { aspect-ratio: 3 / 2; background: var(--sand); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__img--none { background: var(--sand) url("../wp-content/uploads/2011/04/top-logo1.gif") center / 90px no-repeat; }
.card__body { padding: 18px 22px 22px; }
.card__body h2, .card__body h3 { font-size: 1.1875rem; margin: 0 0 .35em; color: var(--soil); }
.card__body p { margin: 0 0 .6em; font-size: 1rem; line-height: 1.75; }
.card .more { font-size: .9375rem; }
.meta { font-size: .875rem; color: #6f5440; letter-spacing: .02em; margin-bottom: .4em; }

/* inner page heading */
.pagehead { background: var(--cream); border-bottom: 1px dashed #e8dc9f; padding: 40px 0 34px; margin-bottom: 40px; }
.pagehead h1 { margin: 0; }
.pagehead .lead { margin: .5em 0 0; font-size: 1.0625rem; color: var(--soil); }

/* prose from the old pages */
.prose { max-width: 46em; padding-bottom: 56px; }
.prose::after { content: ""; display: table; clear: both; }
.prose h2 { margin-top: 1.6em; padding-bottom: .3em; border-bottom: 2px dashed var(--leaf); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li::marker { color: var(--leaf); }
.prose a { overflow-wrap: anywhere; }
.ph { margin: 0 0 1.2em; }
.ph img { border-radius: var(--r-sm); }
.ph--wide { clear: both; }
.ph--wide img { width: 100%; aspect-ratio: 61 / 25; object-fit: cover; border-radius: var(--r); }
.ph--side.ph--right, .ph--thumb.ph--right { float: right; margin: .3em 0 1em 28px; }
.ph--side.ph--left, .ph--thumb.ph--left { float: left; margin: .3em 28px 1em 0; }
.ph--side { width: min(42%, 340px); }
.ph--thumb { width: 150px; }
.ph--thumb img { aspect-ratio: 1; object-fit: cover; }
.ph--fill { width: 100%; }
.badge { width: 220px; height: auto; margin: 0 0 12px; border-radius: 8px; background: #fff; }

/* catalog pages: price lists read as lists */
.prose--catalog ul { list-style: none; padding: 0; margin: 0 0 1.4em; display: flow-root; }
.prose--catalog h2 { clear: both; }
.prose--catalog li { padding: .45em .9em; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 6px; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 24px; padding-bottom: 40px; }
.aside h2 { font-size: 1.0625rem; }
.aside__list { list-style: none; padding: 0; margin: 0 0 20px; }
.aside__list a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.aside__list a:hover { background: var(--sand); }
.aside__list a[aria-current="page"] { background: var(--leaf-deep); color: #fff; }
.aside__card { background: var(--cream); border: 1px dashed #e8dc9f; border-radius: var(--r); padding: 16px 18px; }
.aside__card p { margin: 0 0 10px; font-weight: 500; }
.back { margin-top: 2em; }

/* friends page: each partner block becomes a card */
.prose--cards { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.prose--cards > :not(div) { grid-column: 1 / -1; max-width: 46em; }
.prose--cards > div { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; }
.prose--cards > div h2 { font-size: 1.1875rem; margin-top: 0; border: 0; padding: 0; }
.prose--cards > div::after { content: ""; display: table; clear: both; }

/* products */
.intro { max-width: 52em; margin-bottom: 36px; }
.intro__fig img { width: 100%; aspect-ratio: 61 / 25; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 24px; }
.callout { background: var(--cream); border-left: 6px solid var(--carrot); border-radius: var(--r-sm); padding: 14px 18px; font-weight: 500; color: var(--soil); }
.callout a { font-weight: 700; white-space: nowrap; }
.cards--products { padding-bottom: 64px; }

/* chips */
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; padding: 6px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.chips a[aria-current="page"] { background: var(--leaf-deep); border-color: var(--leaf-deep); color: #fff; }
main > .wrap > .cards { padding-bottom: 64px; }

/* post */
.post { max-width: 46em; margin: 0 auto; padding: 44px 0 64px; }
.post__head { margin-bottom: 28px; }
.post__head h1 { margin-top: .2em; }
.post .prose { padding-bottom: 24px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 2px dashed var(--line); padding-top: 24px; }
.pager a { display: block; padding: 14px 18px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); text-decoration: none; font-weight: 500; }
.pager span { display: block; font-size: .875rem; color: #6f5440; font-weight: 400; }
.pager__next { text-align: right; }

/* access + visit */
.facts { margin: 0 0 20px; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.facts dt { font-weight: 700; color: var(--soil); }
.facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px;
  border-radius: 8px; background: var(--soil); color: #fff; font-family: var(--font-head); font-weight: 700;
  text-decoration: none; border: 2px solid var(--soil);
}
.btn:hover { background: var(--soil-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--soil); }
.btn--ghost:hover { background: var(--soil); color: #fff; }
.visit { padding: 64px 0; }
.visit__in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.visit__fig img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); } /* shown whole, no crop */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; align-items: center; padding-bottom: 64px; }
.access__fig img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); } /* shop front shown whole */
.access__map { grid-column: 1 / -1; }
.access__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mail-text { font-weight: 500; }

/* footer: the grass and soil from the original theme */
.foot { margin-top: 24px; }
.foot__grass { height: 60px; background: url("../wp-content/themes/canvas/images/green-field.png") repeat-x center bottom; border-bottom: 5px solid var(--carrot); }
.foot__soil { background: #5f5652 url("../wp-content/themes/canvas/images/soil-pattern.png"); padding: 40px 0 48px; }
.foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.foot__card { background: rgba(240, 236, 205, .95); border-radius: var(--r); overflow: hidden; color: var(--soil-ink); }
.foot__card h2 { margin: 0; padding: 10px 18px; font-size: 1.15rem; color: #fffbe0; background: rgba(92, 57, 30, .62); letter-spacing: .08em; text-shadow: 0 1px 1px rgba(40, 22, 8, .55); }
.foot__card p, .foot__card ul { margin: 0; padding: 14px 18px 0; font-size: .9375rem; line-height: 1.8; }
.foot__card p:last-child, .foot__card ul { padding-bottom: 16px; }
.foot__card ul { list-style: none; }
.foot__card li { padding: 2px 0; }
.foot__card a { color: var(--soil); }
.foot__card .tel { font-weight: 700; font-size: 1.0625rem; }
.foot__bar { background: var(--soil); color: #fff; font-size: .9375rem; padding: 16px 0; }

/* tablet */
@media (max-width: 960px) {
  .split, .visit__in, .access { grid-template-columns: 1fr; gap: 24px; }
  .split--flip .split__fig { order: 0; }
  .with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .slide { aspect-ratio: 16 / 9; }
}

/* phone */
@media (max-width: 720px) {
  .topbar__in { justify-content: center; }
  .topbar__in > :not(.topbar__tel):not(span:nth-child(2)) { display: none; }
  .head__in { justify-content: space-between; padding: 8px 0; }
  .logo img { width: 86px; }
  .bubble { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
    border-radius: 8px; border: 0; background: var(--leaf-nav); color: #fff;
    font: 700 1rem var(--font-head); cursor: pointer;
  }
  .menu-btn::before { content: ""; width: 18px; height: 12px; background: linear-gradient(#fff 0 2px, transparent 2px 5px, #fff 5px 7px, transparent 7px 10px, #fff 10px 12px); }
  .nav { display: none; padding-bottom: 12px; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; border-radius: var(--r); padding: 8px; }
  .nav__list a { padding: 12px 16px; border-radius: 12px; }
  .hero { padding-top: 12px; }
  .slide { aspect-ratio: 4 / 5; }
  .slide__cap { padding: 90px 20px 46px; }
  .hero__btn { width: 42px; height: 42px; }
  .hero__btn img { width: 24px; }
  .hero__btn--prev { left: 8px; }
  .hero__btn--next { right: 8px; }
  .dots { left: 20px; right: auto; bottom: 18px; }
  .home { padding-top: 16px; }
  .split { padding: 28px 0; }
  .ph--side.ph--right, .ph--side.ph--left { float: none; width: 100%; margin: 0 0 1.2em; }
  .pagehead { padding: 28px 0 24px; margin-bottom: 28px; }
  .foot__grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager__next { text-align: left; }
  .facts > div { grid-template-columns: 1fr; gap: 0; }
  .band { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .slides { scroll-behavior: auto; }
  .card { transition: none; }
}
