/* ==========================================================================
   specialtycoffee.info — v2
   ========================================================================== */
:root {
  --ink: #120d0a;
  --ink-2: #1b1410;
  --ink-3: #2a201a;
  --cream: #f3ece1;
  --paper: #ebe2d3;
  --card: #faf6ef;
  --text: #17110d;
  --text-2: #4b4038;
  --muted: #86786b;
  --line: rgba(23, 17, 13, .14);
  --line-dark: rgba(243, 236, 225, .14);
  --on-dark: #f3ece1;
  --on-dark-2: #b9ab9a;
  --crema: #e2a86a;
  --roast: #9a3d17;
  --roast-2: #7a2d0f;
  --leaf: #6f8a55;
  --bean-line: #000;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --latin: "Instrument Serif", "Shippori Mincho B1", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.85; letter-spacing: .02em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
::selection { background: var(--crema); color: var(--ink); }
.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.dim { opacity: .6; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--crema); color: var(--ink); padding: 8px 12px; z-index: 999; }
.dark { background: var(--ink); color: var(--on-dark); }
.light { background: var(--cream); color: var(--text); }
.light.alt { background: var(--paper); }

/* grain */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor span { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease); }
.cursor.is-hover span { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }

/* ---------------- header ---------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; gap: 32px; padding: 20px var(--gutter); color: #fff; mix-blend-mode: difference; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; }
.brand-text { font-family: var(--latin); font-size: 1.45rem; letter-spacing: .005em; line-height: 1; }
.brand-text i { font-style: italic; opacity: .7; }
.gnav { display: flex; gap: 22px; margin-left: auto; }
.gnav a { position: relative; text-decoration: none; font-size: .82rem; letter-spacing: .06em; padding: 4px 0; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 0; }
.menu-btn-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.menu-btn-icon { position: relative; width: 26px; height: 10px; }
.menu-btn-icon::before, .menu-btn-icon::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn-icon::before { top: 0; } .menu-btn-icon::after { top: 8px; }
.menu-open .menu-btn-icon::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn-icon::after { top: 4px; transform: rotate(-45deg); }
@media (max-width: 1100px) { .gnav { display: none; } .menu-btn { margin-left: auto; } }

/* overlay menu */
.overlay { position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--on-dark); clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); overflow-y: auto; }
.menu-open .overlay { clip-path: inset(0 0 0 0); }
.menu-open { overflow: hidden; }
.overlay-inner { width: min(1320px, 100% - var(--gutter) * 2); margin: 0 auto; padding: 120px 0 48px; min-height: 100%; display: flex; flex-direction: column; gap: 40px; }
.overlay-search { display: grid; gap: 8px; border-bottom: 1px solid var(--line-dark); padding-bottom: 12px; }
.overlay-search label { color: var(--on-dark-2); }
.overlay-search input { background: none; border: 0; color: var(--on-dark); font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.4rem); outline: none; padding: 0; }
.overlay-search input::placeholder { color: rgba(243, 236, 225, .25); }
.overlay-nav { list-style: none; margin: 0; padding: 0; }
.overlay-nav li { border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.overlay-nav a { display: grid; grid-template-columns: 3.5em 1fr auto; align-items: baseline; gap: 12px; padding: 14px 0; text-decoration: none; transform: translateY(100%); transition: transform .9s var(--ease), color .3s; }
.menu-open .overlay-nav a { transform: none; }
.overlay-nav li:nth-child(2) a { transition-delay: .05s; } .overlay-nav li:nth-child(3) a { transition-delay: .1s; } .overlay-nav li:nth-child(4) a { transition-delay: .15s; } .overlay-nav li:nth-child(5) a { transition-delay: .2s; } .overlay-nav li:nth-child(6) a { transition-delay: .25s; }
.overlay-nav strong { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 5vw, 3.6rem); line-height: 1.2; }
.overlay-nav em { font-family: var(--latin); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.8rem); color: var(--on-dark-2); }
.overlay-nav a:hover { color: var(--crema); }
.overlay-foot { display: flex; flex-wrap: wrap; gap: 24px; margin-top: auto; color: var(--on-dark-2); }
.overlay-foot a { text-decoration: none; }

/* ---------------- type ---------------- */
.display { font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4.8rem); line-height: 1.15; letter-spacing: .02em; margin: 0 0 28px; }
.lead { font-size: clamp(.98rem, 1.3vw, 1.08rem); max-width: 34em; color: inherit; opacity: .78; margin: 0 0 32px; }
.sec-label { display: flex; gap: 16px; align-items: center; margin: 0 0 40px; }
.sec-label span:first-child { display: inline-flex; min-width: 2.4em; }
.sec-label::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .2; }
.h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: .03em; }
.h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; margin: 0 0 20px; }
.h3 { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin: 32px 0 14px; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; color: var(--crema); }
.eyebrow a { text-decoration: none; }

/* buttons */
.btn { --bg: var(--text); --fg: var(--cream); position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 16px 26px; border-radius: 999px; background: var(--bg); color: var(--fg); border: 0; font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .5s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--roast); transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: #fff; }
.btn i { font-style: normal; transition: transform .5s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-light { --bg: var(--on-dark); --fg: var(--ink); }
.btn-light::before { background: var(--crema); }
.btn-light:hover { color: var(--ink); }
.btn.ghost { --bg: transparent; --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { color: #fff; }
.btn.small { padding: 9px 16px; font-size: .8rem; gap: 8px; }
.magnetic { will-change: transform; }
.link-arrow { font-size: .9rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split .ch { display: inline-block; }
.js .split .ch { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 28ms); }
.js .is-in .split .ch, .js .split.is-in .ch { transform: none; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 30%, transparent 30%, rgba(18, 13, 10, .7) 75%), linear-gradient(to top, var(--ink) 0%, transparent 40%); pointer-events: none; }
.hero-inner { position: relative; padding: 140px 0 72px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--on-dark-2); margin: 0 0 32px; }
.hero-title { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem, 9.4vw, 9.6rem); line-height: 1.08; letter-spacing: .02em; margin: 0 0 48px; }
.hero-title .line:nth-child(2) { padding-left: clamp(0px, 8vw, 160px); }
.hero-bottom { display: grid; gap: 40px; align-items: end; }
@media (min-width: 960px) { .hero-bottom { grid-template-columns: 1fr auto; } }
.hero-lead { margin: 0; font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 2; color: var(--on-dark); }
.hero-stats { display: flex; gap: clamp(20px, 3.5vw, 56px); list-style: none; margin: 0; padding: 0; }
.hero-stats li { display: grid; gap: 6px; }
.hero-stats strong { font-family: var(--latin); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .9; font-variant-numeric: tabular-nums; }
.hero-stats span { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 12px; color: var(--on-dark-2); text-decoration: none; writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 64px; background: linear-gradient(var(--on-dark-2), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--crema); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }
@media (max-width: 700px) { .scroll-cue { display: none; } .hero-stats { flex-wrap: wrap; } }

/* marquee */
.marquee { background: var(--crema); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; gap: 28px; padding: 18px 0; animation: marquee 90s linear infinite; font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: .7em; align-self: center; opacity: .6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* index list */
.index-sec { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-row { position: relative; display: grid; grid-template-columns: 4em 1fr; gap: 8px 24px; align-items: baseline; padding: clamp(20px, 3vw, 36px) 0; text-decoration: none; isolation: isolate; }
.index-row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.index-row:hover::before { transform: scaleY(1); transform-origin: top; }
.index-row:hover { color: var(--on-dark); }
.index-num { color: var(--muted); transition: color .4s; }
.index-row:hover .index-num { color: var(--crema); }
.index-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.index-title strong { font-family: var(--serif); font-weight: 800; font-size: clamp(1.8rem, 5.2vw, 4.6rem); line-height: 1.15; transition: transform .7s var(--ease); }
.index-row:hover .index-title strong { transform: translateX(16px); }
.index-title em { font-family: var(--latin); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 2rem); color: var(--muted); }
.index-desc { grid-column: 2; font-size: .92rem; opacity: .7; max-width: 36em; }
.index-arrow { position: absolute; right: 0; top: 50%; font-size: clamp(1.6rem, 3vw, 2.6rem); transform: translate(-20px, -50%) rotate(-45deg); opacity: 0; transition: transform .6s var(--ease), opacity .4s; color: var(--crema); }
.index-row:hover .index-arrow { transform: translate(0, -50%) rotate(0); opacity: 1; }
@media (min-width: 900px) { .index-row { grid-template-columns: 6em 1.2fr .8fr; } .index-desc { grid-column: 3; padding-right: 64px; } }

/* map */
.map-sec { padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; }
.map-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .map-grid { grid-template-columns: .9fr 1.1fr; } }
.region-bars { list-style: none; padding: 0; margin: 0 0 40px; }
.region-bars a { display: grid; grid-template-columns: 7em 1fr 2.5em; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-size: .9rem; }
.region-bars b { height: 2px; background: var(--line-dark); position: relative; }
.region-bars b::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--crema); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.region-bars.is-in b::after { transform: scaleX(1); }
.region-bars em { font-style: normal; text-align: right; color: var(--on-dark-2); }
.region-bars a:hover { color: var(--crema); }
.jp-map { margin: 0; position: relative; }
.jp-map svg { width: 100%; height: auto; overflow: visible; }
.jp-map .ghost { fill: rgba(243, 236, 225, .16); }
.jp-map .hit { cursor: pointer; }
.jp-map .dot { fill: var(--crema); }
.jp-map .ring { fill: none; stroke: var(--crema); opacity: .5; transform-box: fill-box; transform-origin: center; animation: ring 3s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.jp-map .label { fill: var(--on-dark-2); font-family: var(--sans); font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.jp-map .hit.big .label, .jp-map .hit:hover .label, .jp-map .hit.on .label, .jp-map svg > .label { opacity: 1; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.jp-map .hit.on .dot { fill: #fff; }
.jp-map .hit:hover .label, .jp-map .hit.on .label { fill: var(--on-dark); }
.jp-map figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--on-dark-2); border-top: 1px solid var(--line-dark); padding-top: 12px; margin-top: 12px; }
.map-tip { color: var(--crema); text-transform: none; letter-spacing: .02em; font-family: var(--sans); font-size: .85rem; }

/* rail */
.rail-sec { padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 120px); overflow: hidden; }
.rail-head { display: flex; align-items: flex-start; gap: 24px; }
.rail-head .sec-label { flex: 1; }
.rail-hint { color: var(--muted); padding-top: 2px; }
.rail { display: flex; gap: 20px; overflow-x: auto; padding: 8px var(--gutter) 24px; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging a { pointer-events: none; }
.rail-card { flex: 0 0 clamp(270px, 28vw, 380px); min-height: 460px; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; scroll-snap-align: start; transition: background .6s var(--ease), color .6s var(--ease), transform .6s var(--ease); }
.rail-card:hover { background: var(--ink); color: var(--on-dark); transform: translateY(-6px); }
.rail-idx { color: var(--muted); }
.rail-pref { font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; margin-top: auto; }
.rail-pref small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 400; margin-top: 10px; opacity: .6; }
.rail-name { font-family: var(--latin); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.rail-desc { font-size: .85rem; opacity: .72; line-height: 1.8; }
.rail-foot { display: flex; justify-content: space-between; border-top: 1px solid currentColor; padding-top: 14px; opacity: .8; }
.rail-foot i { font-style: normal; font-size: 1rem; transition: transform .5s var(--ease); }
.rail-card:hover .rail-foot i { transform: translate(4px, -4px); color: var(--crema); }

/* word of the day */
.word-sec { padding: clamp(96px, 13vw, 180px) 0; }
.word { display: grid; gap: 20px; text-decoration: none; margin-bottom: 56px; }
.word-en { font-family: var(--latin); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.6rem); color: var(--crema); }
.word-ja { display: block; overflow: hidden; font-family: var(--serif); font-weight: 800; font-size: clamp(3.2rem, 13vw, 12rem); line-height: 1.05; letter-spacing: .02em; transition: color .5s; }
.word:hover .word-ja { color: var(--crema); }
.word-sum { max-width: 40em; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 2; color: var(--on-dark-2); }
.word-more { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-dark); text-decoration: none; font-size: .85rem; transition: background .4s, color .4s, border-color .4s; }
.pill:hover { background: var(--on-dark); color: var(--ink); }
.pill-solid { background: var(--crema); color: var(--ink); border-color: var(--crema); }

/* equipment */
.equip-sec { padding: clamp(96px, 12vw, 160px) 0; }
.equip-split { display: grid; gap: 20px; }
@media (min-width: 800px) { .equip-split { grid-template-columns: 1fr 1fr; } }
.equip-panel { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: clamp(380px, 44vw, 560px); padding: clamp(28px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate; }
.equip-panel.is-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.equip-panel strong { font-family: var(--serif); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: 1.2; margin-top: auto; }
.equip-desc { max-width: 26em; font-size: .92rem; opacity: .75; }
.equip-go { border-top: 1px solid currentColor; padding-top: 14px; opacity: .85; }
.equip-art { position: absolute; right: -4%; top: 6%; width: 46%; z-index: -1; opacity: .35; transition: transform 1.2s var(--ease), opacity .6s; }
.equip-panel:hover .equip-art { transform: rotate(-8deg) scale(1.08); opacity: .7; }
.equip-panel.is-dark .equip-art { color: var(--crema); }

/* knowledge */
.know-sec { padding: clamp(96px, 12vw, 160px) 0; }
.know-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .know-grid { grid-template-columns: .85fr 1.15fr; gap: 80px; } .know-copy { position: sticky; top: 120px; align-self: start; } }
.know-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.know-list li { border-bottom: 1px solid var(--line); }
.know-list a { display: grid; grid-template-columns: 3em 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; text-decoration: none; }
.know-list strong { font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; transition: transform .6s var(--ease), color .3s; }
.know-list .mono { color: var(--muted); }
.know-list i { font-style: normal; opacity: 0; transform: translateX(-10px); transition: .5s var(--ease); color: var(--roast); }
.know-list a:hover strong { transform: translateX(10px); color: var(--roast); }
.know-list a:hover i { opacity: 1; transform: none; }

/* boards */
.board-sec { padding: clamp(96px, 12vw, 160px) 0; }
.board-grid { display: grid; gap: 64px; }
@media (min-width: 900px) { .board-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.board-title { font-family: var(--serif); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 3rem); margin: 0 0 24px; }
.board-title a { text-decoration: none; }
.board-title i { font-style: normal; display: inline-block; transition: transform .5s var(--ease); color: var(--crema); }
.board-title a:hover i { transform: translateX(8px); }
.board-rows { list-style: none; margin: 0; padding: 0; }
.board-rows a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; }
.board-rows .mono { color: var(--on-dark-2); }
.board-empty { color: var(--on-dark-2); margin: 0 0 16px; }
.tag-kind { display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; padding: 2px 8px; border-radius: 3px; margin-right: 10px; background: var(--roast); color: #fff; vertical-align: 3px; }
.tag-kind.buy { background: var(--leaf); }

/* ---------------- inner pages ---------------- */
.page { padding: 0 0 clamp(80px, 10vw, 140px); }
.page > .crumbs, .page > .page-head, .page > article > .page-head { position: relative; margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); background: var(--ink); color: var(--on-dark); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 112px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--crema); }
.page-head { padding-top: 40px; padding-bottom: clamp(48px, 7vw, 96px); margin-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.page > article > .page-head { padding-top: 40px; }
.page-head .h1 { max-width: 16em; }
.page-head .lead, .page-head .muted { color: var(--on-dark-2); opacity: 1; }
.page-head[data-num]::after { content: attr(data-num); position: absolute; right: calc(50vw - 50% - .06em); bottom: -.22em; font-family: var(--latin); font-size: clamp(9rem, 26vw, 24rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(226, 168, 106, .35); pointer-events: none; }
.narrow.page > .crumbs, .narrow.page > .page-head, .narrow.page > article > .page-head { margin-inline: calc(50% - 50vw); padding-inline: calc(50vw - 50%); }

/* cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 24px 26px; text-decoration: none; color: var(--text); isolation: isolate; overflow: hidden; transition: color .5s var(--ease), border-color .5s; }
a.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .7s var(--ease); }
a.card:hover::before { transform: none; }
a.card:hover { color: var(--on-dark); border-color: var(--ink); }
a.card:hover .chip { background: var(--ink-3); color: var(--on-dark-2); }
a.card:hover .card-kicker { color: var(--crema); }
.card-kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.card-title { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; line-height: 1.45; margin: 0; }
.card-title a { text-decoration: none; }
.card-text { font-size: .88rem; line-height: 1.8; margin: 0; opacity: .78; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 12px; }
.card.feature { min-height: 240px; justify-content: flex-end; padding: 32px; }
.card.feature .card-title { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.card.feature.dark { background: var(--ink); color: var(--on-dark); }
.card.feature.dark::before { background: var(--roast-2); }
.card.is-closed { opacity: .5; }
.split-cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .split-cards { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.chip { display: inline-block; font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--text-2); text-decoration: none; transition: background .4s, color .4s; }
a.chip:hover { background: var(--text); color: var(--cream); }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chip-links .chip { font-size: .88rem; padding: 6px 16px; }

/* tabs & filters */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 20px; padding-bottom: 4px; scrollbar-width: none; }
.tabs a { flex: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .86rem; transition: background .4s, color .4s; }
.tabs a span { font-family: var(--mono); font-size: .68rem; opacity: .6; margin-left: 4px; }
.tabs a:hover { border-color: var(--text); }
.tabs a[aria-current] { background: var(--text); color: var(--cream); border-color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 16px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filters label { display: flex; align-items: center; gap: 10px; }
.filters select { font: 400 .88rem var(--sans); letter-spacing: .02em; text-transform: none; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); }
.result-count { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; }
.region-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }

/* glossary */
.term-list { margin: 0; display: grid; }
.term-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.term-list dt { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; }
.term-list dt a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.term-list dt a:hover { background-size: 100% 1px; color: var(--roast); }
.term-list dt .small { font-family: var(--latin); font-style: italic; font-weight: 400; font-size: 1rem; margin-left: 6px; }
.term-list dd { margin: 6px 0 0; font-size: .88rem; color: var(--text-2); line-height: 1.75; }
@media (min-width: 800px) { .term-list.cols { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.kana-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 40px; }
.kana-index a { min-width: 44px; text-align: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; transition: background .3s, color .3s; }
.kana-index a:hover { background: var(--text); color: var(--cream); }
.glossary-group { scroll-margin-top: 90px; margin-bottom: 48px; display: grid; gap: 8px; }
@media (min-width: 900px) { .glossary-group { grid-template-columns: 120px 1fr; } }
.kana-h { font-family: var(--serif); font-weight: 800; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; margin: 0; color: transparent; -webkit-text-stroke: 1px var(--text); }
.summary { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.8; font-weight: 500; }

/* prose */
.prose { font-size: 1.02rem; line-height: 2; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.4em 0 .9em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h3 { font-family: var(--serif); font-size: 1.15rem; margin: 2em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--roast); }
.prose table, table.info { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .92rem; line-height: 1.7; }
.prose th, .prose td, table.info th, table.info td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; font-weight: 500; color: var(--muted); border-bottom-color: var(--text); }
table.info { border-top: 1px solid var(--text); }
table.info th { width: 9em; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.info a { color: var(--roast); }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; white-space: nowrap; } }
.note, .prose .note { position: relative; padding: 16px 20px 16px 24px; background: var(--paper); font-size: .9rem; line-height: 1.85; margin: 1.6em 0; border-radius: 2px; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--crema); }
.disclosure { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--muted); border: 1px dashed var(--line); padding: 12px 16px; border-radius: 2px; }
.prose a { color: var(--roast); }

/* sources */
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--text); display: grid; gap: 8px; }
@media (min-width: 800px) { .sources { grid-template-columns: 160px 1fr; } .sources .small { grid-column: 2; } }
.sources-h { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 4px 0 0; }
.sources ol { margin: 0; padding-left: 1.4em; font-size: .85rem; line-height: 1.8; }
.sources a { color: var(--text-2); overflow-wrap: anywhere; }
.sources a:hover { color: var(--roast); }

/* lists */
.plain-list { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 40px; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.plain-list a { text-decoration: none; }
.plain-list a:hover { color: var(--roast); }
.article-list { list-style: none; padding: 0; margin: 0; counter-reset: a; border-top: 1px solid var(--line); }
.article-list li { counter-increment: a; border-bottom: 1px solid var(--line); }
.article-list a { display: grid; grid-template-columns: 3.5em 1fr; column-gap: 12px; row-gap: 4px; padding: 24px 0; text-decoration: none; }
.article-list a::before { content: counter(a, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); font-size: .72rem; color: var(--muted); padding-top: .5em; }
.article-list strong { font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; line-height: 1.5; transition: color .3s, transform .6s var(--ease); }
.article-list span { font-size: .88rem; color: var(--text-2); }
.article-list a:hover strong { color: var(--roast); transform: translateX(8px); }
.article-list.compact a { padding: 16px 0; }
.article-list.compact strong { font-size: 1.05rem; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows a { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.job-list { display: grid; gap: 12px; }
.section-sm { margin-top: 72px; }
.section-sm > .h2:first-child { display: flex; align-items: baseline; gap: 16px; }

/* blocks */
.callout { margin-top: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); background: var(--ink); color: var(--on-dark); border-radius: 4px; }
.callout p { margin: 0; max-width: 36em; color: var(--on-dark-2); }
.callout strong { display: block; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.8rem); color: var(--on-dark); margin-bottom: 8px; }
.callout .btn { --bg: var(--on-dark); --fg: var(--ink); }
.callout .btn.ghost { --bg: transparent; --fg: var(--on-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.empty { padding: clamp(40px, 6vw, 72px) 24px; border: 1px dashed var(--line); border-radius: 4px; text-align: center; }
.empty-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.6rem); margin: 0 0 8px; }
.empty .btn { margin-top: 16px; }
.apply { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 12px; }

/* forms */
.form { display: grid; gap: 22px; }
.form label { display: grid; gap: 8px; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); letter-spacing: .02em; text-transform: none; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); width: 100%; border-radius: 0; transition: border-color .3s; }
.form textarea { border: 1px solid var(--line); padding: 14px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form .btn { justify-self: start; }
.req { font-size: .6rem; color: #fff; background: var(--roast); padding: 1px 6px; border-radius: 2px; margin-left: 4px; }
.hp { position: absolute; left: -9999px; }
.alert { background: #f6dfd8; padding: 14px 18px; border-radius: 2px; color: #7d2019; margin-bottom: 20px; }
.alert ul { margin: 0; padding-left: 1.2em; }
.ref { background: var(--paper); padding: 12px 16px; margin: 0; }
.hero-search { display: flex; gap: 8px; max-width: 640px; }
.hero-search input { flex: 1; min-width: 0; padding: 14px 20px; border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(243, 236, 225, .06); color: var(--on-dark); font: inherit; }
.hero-search input:focus { outline: 1px solid var(--crema); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.footer-top { display: grid; gap: 56px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr 1fr; } }
.footer-cta .mono, .footer-cols .mono { color: var(--on-dark-2); margin: 0 0 16px; }
.footer-lead { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.5; margin: 0 0 28px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; line-height: 2.3; font-size: .9rem; }
.footer-cols a { text-decoration: none; color: var(--on-dark-2); transition: color .3s; }
.footer-cols a:hover { color: var(--crema); }
.footer-mark { font-family: var(--latin); font-size: clamp(4rem, 17.5vw, 20rem); line-height: .85; letter-spacing: -.02em; white-space: nowrap; margin: clamp(64px, 8vw, 120px) 0 0; text-align: center; color: var(--on-dark); }
.footer-mark i { color: var(--crema); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: .76rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .split .ch { opacity: 1 !important; transform: none !important; }
  .grain { display: none; }
}
.page > .page-head:first-child { padding-top: 140px; }
.page-head .hero-search { margin-top: 24px; }
@media (max-width: 700px) {
  .hero-title { font-size: 11.2vw; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-head[data-num]::after { font-size: 9rem; opacity: .6; }
  .glossary-group .kana-h { font-size: 2.4rem; }
}
.footer-mark { padding-bottom: .12em; }
@media (min-width: 900px) { .glossary-group .kana-h { position: sticky; top: 90px; align-self: start; } }
@media (min-width: 701px) { .hero-bottom { padding-right: 48px; } }

/* 器具: Amazon 商品画像（Creators API。比率を保ったまま縮小表示） */
.equip-img { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; height: 200px; padding: 12px; margin-bottom: 6px; }
.equip-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.equip-hero { margin: 0 0 24px; }
.equip-hero a { display: flex; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.equip-hero img { max-width: 100%; max-height: 420px; width: auto; height: auto; object-fit: contain; }
