* { box-sizing: border-box; }
body { margin: 0; font: 500 1rem/1.6 "Yu Gothic", Meiryo, sans-serif; }
h1 { margin: 0; }
p { margin: .35rem 0 .75rem; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
.map-tools { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .55rem 1rem; margin: 1rem 0 .7rem; }
.map-tools label { display: grid; gap: .2rem; font-size: .875rem; font-weight: 700; max-width: 100%; }
.map-tools select { min-height: 42px; max-width: 100%; padding: .4rem .6rem; border: 1px solid var(--rule); background: var(--white); }
.map-view { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: .6rem 0; }
.map-view[hidden] { display: none; }
.map-view p { margin: 0; }
.map-back { min-height: 44px; padding: .35rem .75rem; background: var(--white); border: 1px solid var(--red); color: var(--red); border-radius: 4px; }
.sensory-chart { --steps: 10; --row-height: clamp(46px, calc(10svh - 42px), 64px); margin: .8rem 0; }
.chart-frame { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; }
.axis-end { display: inline-flex; align-items: stretch; justify-self: center; overflow: hidden; border: 1px solid var(--red); border-radius: 999px; background: var(--white); color: var(--red); font: 700 .87rem/1.2 var(--sans); white-space: nowrap; }
.axis-end strong, .axis-end span { padding: .38rem .65rem; text-align: center; }
.axis-end strong { background: var(--red); color: white; }
.axis-end span { min-inline-size: 5em; }
.axis-top { grid-area: 1 / 2; }
.axis-bottom { grid-area: 3 / 2; }
.axis-left { grid-area: 2 / 1; }
.axis-right { grid-area: 2 / 3; }
.axis-left, .axis-right { writing-mode: vertical-rl; }
.position-plot { grid-area: 2 / 2; position: relative; display: grid; grid-template-columns: repeat(var(--steps),minmax(0,1fr)); grid-template-rows: repeat(var(--steps),var(--row-height,58px)); border: 1px solid var(--rule); background: var(--white); }
.position-plot::before, .position-plot::after { content: ""; position: absolute; pointer-events: none; }
.position-plot::before { inset: 0 auto 0 var(--axis-x, 50%); border-left: 1px solid #a95f4f; transform: translateX(-50%); }
.position-plot::after { inset: var(--axis-y, 50%) 0 auto; border-top: 1px solid #a95f4f; transform: translateY(-50%); }
.map-pin { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; align-items: center; justify-items: center; min-width: 0; margin: 2px; padding: 1px 2px; border: 1px solid transparent; border-radius: 4px; background: transparent; }
.map-pin img { height: 30px; max-width: 52px; width: 65%; object-fit: contain; }
.pin-name { display: block; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .8rem; font-weight: 650; }
.pin-count { position: absolute; right: 2px; top: 1px; border-radius: 3px; background: var(--ink); color: #fff; padding: 0 .28rem; font: 600 .7rem/1.5 var(--sans); }
.map-pin:hover, .map-pin[aria-pressed="true"] { background: #fffaf1; border-color: var(--red); }
.map-pin[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--red); }
.description { display: grid; gap: .65rem; margin: 1rem 0; scroll-margin-top: 1rem; }
.detail { padding: .85rem 1rem; }
.group-count { margin: 0; font-size: .85rem; color: var(--muted); }
.picked-position { align-self: end; margin: 0 0 .4rem; color: var(--red); font-size: .875rem; }
.credits { color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
  .sensory-chart.is-overview { --row-height: clamp(24px, 8vw, 42px); }
  .is-overview .map-pin { pointer-events: none; align-self: center; }
  .is-overview .map-pin img { height: 20px; width: 85%; }
  .is-overview .pin-name, .is-overview .pin-count { display: none; }
  .map-zone { position: relative; z-index: 1; align-self: stretch; justify-self: stretch; display: flex; align-items: flex-start; justify-content: flex-end; flex-direction: column; padding: .25rem; border: 0; background: transparent; }
  .map-zone span { padding: .2rem .3rem; background: var(--white); color: var(--red); font-size: .72rem; line-height: 1.2; border-radius: 3px; }
  .map-zone:focus-visible, .map-zone:hover { background: rgba(145,58,41,.08); outline: 2px solid var(--red); outline-offset: -2px; }
  .sensory-chart { --row-height: 62px; }
  .axis-end { font-size: .75rem; }
  .axis-left strong, .axis-left span, .axis-right strong, .axis-right span { padding-block: .28rem; }
  .map-pin { margin: 1px; }
  .map-pin img { height: 31px; }
  .pin-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; line-height: 1.12; }
  .map-tools label:first-child { width: 100%; }
}

.map-page { max-width: 1080px; }
.map-lead { margin: .45rem 0 .7rem; }
.map-page .intro-note { font-size: .875rem; max-width: 48rem; }
.map-tools { gap: .6rem 1.2rem; margin-top: 1.25rem; }
.map-tools label { width: min(100%,22rem); }
.map-tools select { width: 100%; min-height: 44px; padding: .5rem .65rem; border-radius: 3px; }
.map-view-label { font-size: .875rem; }
.sensory-chart { --row-height: 66px; }
.chart-frame { gap: .3rem; }
.position-plot { isolation: isolate; background: linear-gradient(180deg,#f1eadb 0%,var(--white) 75%); }
.position-plot::before, .position-plot::after { z-index: -1; }
.map-pin { min-height: 44px; margin: 1px; padding: 2px; }
.pin-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; white-space: normal; font-size: .875rem; line-height: 1.25; }
.pin-count { right: 1px; top: 1px; font-size: .75rem; }
.map-guide { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; margin: 1rem 0 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); font-size: .875rem; }
.map-guide strong { display: block; margin-bottom: .2rem; }
.map-guide p { color: var(--muted); margin: 0; }
.detail { padding: 1rem 1.1rem; }
.detail-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; }
.detail h2 { margin: 0; font: 700 1.3rem/1.4 var(--serif); }
.product-label { font-size: .875rem; color: var(--muted); }
.flavor-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: .65rem 0; }
.flavor-tags li { padding: .1rem .5rem; background: #ede5d7; border-radius: 2px; font-size: .875rem; }
.map-page .detail .flavor-copy { margin: .5rem 0; max-width: 52rem; }
.detail-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; }
.detail-links a { display: inline-flex; align-items: center; min-height: 44px; }
.detail-links .source-link { font-size: .875rem; color: var(--muted); }
.brand-index { margin: 1.7rem 0; }
.brand-index h2 { font: 700 1.25rem/1.5 var(--serif); padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.brand-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .5rem .8rem; list-style: none; padding: 0; margin: .8rem 0 0; }
.brand-list button { width: 100%; height: 100%; min-height: 66px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: .5rem; text-align: left; padding: .5rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--white); }
.brand-list button:hover, .brand-list button[aria-pressed="true"] { border-color: var(--red); background: #fff7e8; }
.brand-list img { width: 30px; height: 44px; object-fit: contain; }
.brand-list strong { display: block; font-size: .875rem; }
.brand-list small { display: block; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.map-notes { padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted); }
.map-notes details { margin-top: .7rem; }
.map-notes summary { min-height: 44px; cursor: pointer; width: fit-content; }
.map-page .credits { margin-top: 0; font-size: .8125rem; overflow-wrap: anywhere; }
.map-notes a { color: inherit; }
@media (max-width: 800px) { .brand-list { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .sensory-chart { --row-height: 76px; }
  .sensory-chart.is-overview { --row-height: clamp(26px,8vw,42px); }
  .is-overview .map-pin { min-height: 0; }
  .is-overview .map-pin img { height: 22px; }
  .map-zone span { max-width: 100%; font-size: .8125rem; line-height: 1.35; text-align: left; }
  .map-zone small { display: block; margin-top: .1rem; font-size: .75rem; white-space: nowrap; }
  .chart-frame { gap: .2rem; }
  .axis-end { font-size: .8125rem; }
  .axis-end strong, .axis-end span { padding: .35rem .45rem; }
  .axis-end span { min-inline-size: auto; }
  .brand-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; }
  .brand-list button { grid-template-columns: 25px minmax(0,1fr); padding: .45rem; }
  .brand-list img { width: 25px; }
  .map-guide { grid-template-columns: 1fr; gap: .7rem; }
}
@media (max-width: 360px) {
  .sensory-chart:not(.is-overview) { --row-height: 96px; }
  .pin-name { -webkit-line-clamp: 3; }
}
