:root {
  --paper: #f7f3eb;
  --white: #fffdf8;
  --ink: #24221d;
  --muted: #595246;
  --rule: #c9beac;
  --red: #963d2b;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
}
body { color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { text-underline-offset: .24em; }
a:focus-visible, button:focus-visible { outline: 3px solid #175982; outline-offset: 3px; }
.wrap, .map-page { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.masthead { background: var(--ink); color: var(--white); border-bottom: 3px solid var(--red); }
.masthead .wrap { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead a { color: inherit; text-decoration: none; font-weight: 700; }
.masthead .site-name { font: 700 1.15rem/1.2 var(--serif); letter-spacing: .09em; }
.masthead .site-nav { font-size: .875rem; }
.home-masthead { background: #f8f4ec; color: #342a22; }
.home-masthead .site-name img { display: block; width: clamp(150px, 42vw, 210px); max-width: 100%; height: auto; }
.intro { border-bottom: 1px solid var(--rule); margin-bottom: 1.1rem; padding: clamp(1.8rem, 5vw, 4rem) 0 1.15rem; }
.intro h1, .map-page h1, .detail h1 { color: var(--ink); font-family: var(--serif); letter-spacing: .045em; }
.intro p, .map-page .intro-note { color: var(--muted); }
.maps { gap: .75rem; }
.maps .tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(156px, 21vw, 218px);
  border: 1px solid #4c4941;
  border-radius: 3px;
  background-color: #34332c;
  background-image: linear-gradient(90deg, #ffffff12 1px, transparent 1px), linear-gradient(#ffffff12 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--white);
}
.maps .tile:nth-child(2) { background-color: #743e33; }
.maps .tile:nth-child(3) { background-color: #344747; }
.maps .tile:nth-child(4) { background-color: #e8d3a6; border-color: #a18c65; color: var(--ink); }
.maps .tile img { width: 66px; height: clamp(58px, 9vw, 94px); border-radius: 2px; }
.maps .tile small { opacity: .91; }
#articles { margin: clamp(2rem, 5vw, 3.8rem) 0; }
#articles h2 { padding-bottom: .55rem; border-bottom: 1px solid var(--ink); }
.brand-count { font: 500 .875rem/1.5 var(--sans); color: var(--muted); white-space: nowrap; }
.article-status { display: block; margin-top: .15rem; font-size: .8125rem; color: var(--muted); }
.articles { gap: 0; }
.article { border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; padding: .8rem 0; }
.article img { height: 70px; background: #eae2d3; border-radius: 2px; }
.article strong { font: 700 1.18rem/1.6 var(--serif); }
.article:hover { box-shadow: none; background: #ede5d7; }
footer { border-color: var(--rule); color: var(--muted); }
#detail { max-width: 48rem; margin-inline: auto; }
#detail > img { background: #eae2d3; padding: .5rem; }
#detail a { color: var(--red); }
.purchase span { border-color: var(--rule); border-radius: 3px; background: var(--white); }
.purchase { margin-top: .85rem; }
.map-page { max-width: 1040px; padding: clamp(1.3rem, 4vw, 2.8rem) 0 2rem; }
.map-page h1 { font-size: clamp(1.75rem, 5vw, 2.8rem); }
.map-page .detail { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--red); border-radius: 3px; }
.map-page .detail p { margin: 0; }
.map-page .detail a { color: var(--red); }
.map-page .credits { margin-top: 1rem; color: var(--muted); }
.map-page .credits a { color: inherit; }
#detail:has(.kyushu-layout, .budget-tiers) { max-width: none; }
.kyushu-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 1.1rem; align-items: start; }
.kyushu-map { display: block; width: 100%; background: #e5ece9; border: 1px solid var(--rule); }
.kyushu-map path { fill: #e9e2d1; stroke: #867b69; stroke-width: .8; cursor: pointer; }
.kyushu-map path.has-bottles { fill: #e4be9f; }
.kyushu-map path:hover { fill: #dcb095; }
.kyushu-map path.selected { fill: #b96950; stroke: #713727; stroke-width: 1.5; }
.kyushu-map text { text-anchor: middle; font: 700 16px var(--sans); fill: var(--ink); stroke: #fff8ee; stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.prefecture-buttons { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.prefecture-buttons button { min-height: 44px; padding: .35rem .6rem; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; }
.prefecture-buttons button[aria-pressed="true"] { background: var(--red); color: var(--white); border-color: var(--red); }
.kyushu-credit { font-size: .85rem; color: var(--muted); }
.kyushu-outside { margin-top: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.budget-filters { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: .8rem; margin: 1.2rem 0; }
.budget-filters label { min-width: 0; display: grid; gap: .3rem; font-weight: 700; }
.budget-filters select, .budget-filters input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding: .45rem; border: 1px solid var(--rule); background: var(--white); color: var(--ink); font: inherit; }
.budget-tiers { display: grid; gap: .65rem; }
.budget-tier { --band-ink: #4f6155; --band-fill: #e7ece5; display: grid; grid-template-columns: 10rem minmax(0, 1fr); background: var(--band-fill); border: 1px solid var(--rule); border-radius: 4px; }
.budget-tier[data-tone="copper"] { --band-ink: #793f32; --band-fill: #f2e1db; }
.budget-tier[data-tone="amber"] { --band-ink: #765126; --band-fill: #f4e8d3; }
.budget-tier[data-tone="sand"] { --band-ink: #635845; --band-fill: #eee7db; }
.budget-tier h2 { margin: 0; padding: 1rem .85rem; display: flex; align-items: center; background: var(--band-ink); color: var(--white); font: 700 1.05rem/1.3 var(--sans); border-radius: 3px 0 0 3px; }
.budget-cards { list-style: none; margin: 0; padding: .65rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: .55rem; }
.budget-cards li { display: grid; align-content: space-between; min-width: 0; border: 1px solid var(--rule); border-radius: 3px; background: var(--white); }
#detail .budget-product { display: grid; justify-items: center; gap: .25rem; padding: .55rem .4rem; color: var(--ink); text-decoration: none; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
#detail .budget-product:hover span, #detail .budget-product:focus-visible span { text-decoration: underline; }
.budget-product img { display: block; width: 56px; height: 54px; object-fit: contain; }
.budget-product strong { color: var(--band-ink); font-variant-numeric: tabular-nums; }
.budget-cards small { display: block; padding: 0 .35rem .45rem; font-size: .72rem; color: var(--muted); text-align: center; }
.budget-cards small a { display: inline-block; }
.budget-credits { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .8rem; color: var(--muted); }
.catalog-photo { margin: .75rem 0; }
#detail .catalog-photo img { display: block; width: min(100%, 300px); height: auto; max-height: 300px; object-fit: contain; object-position: left center; }
#detail .catalog-photo img[src$="/amami-kokuto.jpg"] { width: 100px; height: 290px; object-position: center; }
#detail .catalog-photo img.bottle-illustration { width: 100px; height: 140px; padding: .5rem; background: #eae2d3; object-position: center; }
.catalog-photo figcaption { margin-top: .35rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 520px) {
  .budget-filters { grid-template-columns: minmax(0, 1fr); }
  .budget-tier { grid-template-columns: minmax(0, 1fr); }
  .budget-tier h2 { padding: .5rem .65rem; border-radius: 3px 3px 0 0; }
  .budget-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bottle-story { overflow-wrap: anywhere; line-height: 1.8; }
.bottle-story .story-title { font-family: var(--serif); font-size: clamp(1.45rem, 4vw, 2.35rem); line-height: 1.35; margin: .85rem 0 .45rem; }
.bottle-story .story-byline { color: var(--muted); font-size: .875rem; margin-bottom: .8rem; }
.bottle-story .story-cover { display: block; width: 100px; height: 145px; object-fit: contain; background: #eae2d3; padding: .45rem; margin-bottom: .9rem; }
.bottle-story h2:not(.story-title), .bottle-story h3 { font: 700 1.24rem/1.45 var(--serif); border-bottom: 1px solid var(--rule); padding-bottom: .35rem; margin: 1.6rem 0 .65rem; }
.bottle-story table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.bottle-story th, .bottle-story td { text-align: left; vertical-align: top; border: 1px solid var(--rule); padding: .4rem; }
.bottle-story th { background: #ede5d7; }
.bottle-story .purchase { display: flex; flex-wrap: wrap; gap: .45rem; margin: .65rem 0 1rem; }
.bottle-story .purchase span { border: 1px solid var(--rule); padding: .45rem .65rem; font-size: .875rem; }
.bottle-story .story-maps { padding-left: 1.25rem; }
@media (max-width: 680px) {
  .kyushu-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .wrap, .map-page { width: calc(100% - 32px); }
  .maps .tile { padding: .7rem; }
}
.product-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; padding: .85rem; border-block: 1px solid var(--rule); }
.product-facts dt { font-weight: bold; }
.product-facts dd { margin: 0; }
