:root {
  color-scheme: light;
  --ink: #282d23;
  --muted: #53564b;
  --white: #fff;
  --green: #304a37;
  --green-dark: #23392a;
  --line: #dedbcc;
  --accent: #84532d;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
a:focus-visible { outline: 3px solid #ae6d37; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: .6rem 1rem;
  background: var(--white);
  transform: translateY(calc(-100% - 8px));
}
.skip-link:focus { transform: none; }
/* Match the shared header's base typography and reserve space for its logo. */
#masthead, #yaotsu_mall_menu {
  font: 400 .875rem/1.618 "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  overflow-wrap: break-word;
}
#masthead {
  min-height: 88px;
  background: #fff;
}
#yaotsu_mall_menu #drawer_input {
  display: block;
  position: absolute;
  right: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip-path: inset(50%);
}
#yaotsu_mall_menu #drawer_input:focus-visible + .drawer_open {
  outline: 3px solid #ae6d37;
  outline-offset: -6px;
}
#yaotsu_mall_menu .nav_content {
  visibility: hidden;
  overflow-y: auto;
}
#yaotsu_mall_menu #drawer_input:checked ~ .nav_content {
  visibility: visible;
}
#masthead a:focus-visible, #yaotsu_mall_menu a:focus-visible {
  outline: 3px solid #ae6d37 !important;
  outline-offset: -3px;
}

.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .14em; }
h2 { line-height: 1.35; }
h2 { margin-top: .4rem; font-size: clamp(1.5rem, 3vw, 2.5rem); }

.catalog { margin-block: clamp(24px, 4vw, 48px) clamp(48px, 8vw, 90px); }
.section-note { margin-top: .7rem; color: var(--muted); font-size: .92rem; }
#sets > .section-note + .product-grid { margin-block-start: 20px; }
.category-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.category-nav a {
  display: inline-block;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--green-dark);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.category-nav a:hover { border-color: var(--green); }
.product-group { margin-top: 2rem; }
.product-group + .product-group { margin-top: clamp(36px, 6vw, 68px); }
.product-group h3 {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .55rem;
  font-size: 1.2rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.product-grid li { display: flex; min-width: 0; }
.product {
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}
.product:hover { border-color: var(--green); }
.product:hover .product-action { text-decoration: underline; }
.product > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #eee8da; }
.product-body { display: flex; flex-direction: column; flex: 1; gap: .45rem; padding: clamp(10px, 2vw, 16px); }
.product h4 { font-size: .98rem; line-height: 1.45; }
.product-detail { color: var(--muted); font-size: .82rem; }
.product-action { margin-top: auto; padding-top: .3rem; color: var(--green-dark); font-size: .8rem; font-weight: 700; }

.maker {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  margin-block: 0 clamp(48px, 8vw, 84px);
  padding: clamp(18px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.maker img { width: 100%; height: auto; border-radius: 6px; }
.maker p:not(.eyebrow) { margin-top: .5rem; color: var(--muted); }
.text-link { display: inline-block; margin-top: .65rem; color: var(--green-dark); font-weight: 700; text-underline-offset: .2em; }
/* The shared footer inherits these base values on the home page. */
#colophon {
  font-size: .875rem;
  line-height: 1.618;
  overflow-wrap: break-word;
}
#colophon a:focus-visible { outline: 3px solid #ae6d37 !important; outline-offset: 4px; }

@media (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maker { grid-template-columns: 1fr; }
  .maker img { max-width: 132px; }
}

.product-info-button,
.product-info-heading button {
  padding: .45rem .6rem;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--white);
  color: var(--green-dark);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.product-info-button:hover,
.product-info-heading button:hover { background: var(--green); color: #fff; }
.product-info-button:focus-visible,
.product-info-heading button:focus-visible { outline: 3px solid #ae6d37; outline-offset: 2px; }

#product-info-dialog {
  width: min(560px, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: clamp(.85rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
#product-info-dialog::backdrop { background: #0008; }
.product-info-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.product-info-heading h2 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.product-info-heading button { white-space: nowrap; }
#product-info-content { font-size: .9rem; }
#product-info-content h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
#product-info-content dl {
  display: grid;
  grid-template-columns: minmax(6em, auto) minmax(0, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}
#product-info-content dt, #product-info-content dd {
  margin: 0;
  padding: .4rem .25rem;
  border-bottom: 1px solid var(--line);
}
#product-info-content dt { font-weight: 700; }
.product-info-note { margin-top: .6rem; color: var(--muted); }

.product-photo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 8px 0;
}
.product-photo-link {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: zoom-in;
}
.product-photo-link:hover { border-color: var(--green); }
.product-photo-link:focus-visible { outline: 3px solid #ae6d37; outline-offset: 2px; }
.product-photo-link img { width: 100%; height: 100%; object-fit: contain; }

#product-photo-dialog {
  width: min(920px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 3vw, 24px);
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
#product-photo-dialog::backdrop { background: #000b; }
#product-photo-dialog .product-info-heading { margin-bottom: 12px; }
#product-photo-title { overflow-wrap: anywhere; }
#product-photo-image {
  width: 100%;
  height: auto;
  max-height: min(75vh, calc(100dvh - 120px));
  object-fit: contain;
}

/* ブレンド茶の共通案内と商品カードの間隔 */
#herbs .herb-reservation-note{margin-bottom:24px}
