:root {
  --fg: #2a211c; --muted: #75685f; --line: #e8e1da; --bg: #f8f5f1; --card: #fff; --accent: #8a4b24;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg); line-height: 1.7; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; margin: .4em 0; line-height: 1.35; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; }
h3 { font-size: 1rem; margin: 1em 0 .4em; }
small { font-weight: normal; }
.muted { color: var(--muted); font-size: .88rem; }
.lead { font-size: 1.02rem; }

.site-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3em 1em; padding: .8em 1.2em; background: var(--card); border-bottom: 1px solid var(--line); }
.logo { white-space: nowrap; font-weight: 800; font-size: 1.4rem; text-decoration: none; color: var(--fg); }
.tagline { color: var(--muted); font-size: .85rem; }
.gnav { flex-basis: 100%; display: flex; gap: .2em 1em; overflow-x: auto; font-size: .92rem; white-space: nowrap; }
.gnav a { text-decoration: none; color: var(--fg); padding: .2em 0; }
.gnav a[aria-current] { color: var(--accent); border-bottom: 2px solid var(--accent); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 1em; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
@media (max-width: 1023px) { .wrap { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }
.sticky { position: sticky; top: 16px; }

.panel, .intro { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1em 1.2em; margin: 0 0 1em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 1em; }
.cards > .ad { grid-column: 1 / -1; }
.panel .cards { margin-bottom: 0; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9em 1em; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 .3em; font-size: 1.05rem; color: var(--accent); }
.card p { margin: .2em 0; }
.axes .card h3 { font-size: 1.25rem; }

.crumb { font-size: .85rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin: .3em 0; }
.tag { display: inline-block; padding: .05em .6em; border-radius: 999px; font-size: .75rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); text-decoration: none; }
.tag-est { background: #eef0fa; border-color: #c8cdee; }
.tag-review { background: #fff4d6; border-color: #e9c96b; }
.tag-aroma { border-color: var(--c); border-left-width: 6px; background: #fff; }

dl.kv { margin: 0; }
dl.kv > div { display: grid; grid-template-columns: 9em 1fr; gap: .8em; padding: .4em 0; border-bottom: 1px solid var(--line); }
dl.kv > div:last-child { border-bottom: 0; }
dl.kv dt { color: var(--muted); font-size: .88rem; }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.kv > div { grid-template-columns: 1fr; gap: 0; } }

.taste { max-width: 360px; }
.taste-row { display: grid; grid-template-columns: 3.5em 1fr 1.5em; align-items: center; gap: .6em; margin: .25em 0; }
.taste .bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.taste .bar i { height: 10px; border-radius: 3px; background: var(--line); }
.taste .bar i.on { background: var(--accent); }
.taste .v { font-variant-numeric: tabular-nums; text-align: right; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5em, 1fr)); gap: .6em 1em; margin: 0 0 1em; }
.stats div { border-left: 3px solid var(--accent); padding-left: .6em; }
.stats dt { color: var(--muted); font-size: .78rem; }
.stats dd { margin: 0; font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin: .5em 0; }
ol.steps .at { display: inline-block; min-width: 3.4em; margin-right: .5em; padding: 0 .4em; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); font-size: .8rem; text-align: center; font-variant-numeric: tabular-nums; }

.map { height: 380px; border-radius: 8px; border: 1px solid var(--line); background: #e9eef0; z-index: 0; margin-bottom: .3em; }
@media (max-width: 600px) { .map { height: 280px; } }
.map-note { margin: 0 0 1em; }
.origin-tree ul { margin: .2em 0 .4em; }

.aroma-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 1em; }
.aroma-cat { background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--c); border-radius: 10px; padding: .8em 1em; }
.aroma-cat h3 { margin: 0 0 .2em; }

.quote { margin: .5em 0; padding: .6em 1em; border-left: 4px solid var(--line); background: var(--bg); }
.quote blockquote { margin: 0; }
.quote figcaption { font-size: .8rem; color: var(--muted); }
.notice { margin: 1em 0; }
.meta h3 { font-size: .92rem; }
.sources, .todo { padding-left: 1.2em; margin: 0; font-size: .9rem; }

table.fc { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.fc th, table.fc td { border-bottom: 1px solid var(--line); padding: .45em .5em; text-align: left; vertical-align: top; }

.ad { margin: 0 auto 1em; text-align: center; max-width: 100%; }
.ad-label { font-size: .65rem; color: var(--muted); letter-spacing: .1em; }
.ad-placeholder { display: flex; align-items: center; justify-content: center; min-height: inherit; height: 90px; border: 1px dashed #cfc5bb; color: #a39588; font-size: .75rem; background: repeating-linear-gradient(45deg, #fbfaf8, #fbfaf8 8px, #f3efea 8px, #f3efea 16px); }
.ad-content1 .ad-placeholder, .ad-content2 .ad-placeholder { height: 250px; max-width: 336px; margin: 0 auto; }
.ad-side .ad-placeholder { height: 600px; }
.site-header + .ad { padding-top: 1em; }

.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 1.2em; font-size: .8rem; color: var(--muted); }
.site-footer .credit { max-width: 900px; }

.summary { border-left: 4px solid var(--accent); }
.summary p { margin: 0; font-weight: 600; }
.article-list li { margin: .5em 0; }
ul.plain { margin: 0; padding-left: 1.1em; }
ol.steps .why { display: inline-block; margin-left: .4em; font-size: .8rem; white-space: nowrap; }
ol.lesson-steps li::marker { color: var(--accent); font-weight: 700; }
.scroll { overflow-x: auto; }
table.fc caption { text-align: left; font-weight: 700; margin-bottom: .4em; }
table.fc tbody th { font-weight: 600; }
dl.glossary > div { padding: .5em 0; border-bottom: 1px solid var(--line); }
dl.glossary > div:last-child { border-bottom: 0; }
dl.glossary dt { font-weight: 700; }
dl.glossary dd { margin: .1em 0 0; }
dl.aroma-subs { margin: .4em 0 0; }
dl.aroma-subs > div { margin: .3em 0; }
dl.aroma-subs dt { font-size: .78rem; color: var(--muted); }
dl.aroma-subs dd { margin: .1em 0 0; }

.st { font-size: .7rem; vertical-align: middle; white-space: nowrap; }
.st-verified { background: #e6f2ed; border-color: #9fcdb7; }
.st-tasted { background: #e7eefb; border-color: #a9bfe8; }
.st-estimate { background: #eef0fa; border-color: #c8cdee; }
.st-recommendation { background: #f6efe6; border-color: #dcc3a3; }
.st-unverified { background: #fff4d6; border-color: #e9c96b; }
.status-legend { margin-top: 1em; }
h2 .st, h3 .st { margin-left: .3em; }

ul.refs { list-style: none; padding: 0; margin: 0; }
ul.refs > li { padding: .8em 0; border-bottom: 1px solid var(--line); }
ul.refs > li:last-child { border-bottom: 0; }
ul.refs p { margin: .2em 0; }
.ref-title { font-weight: 700; }
