/* Sushimir — modern sushi catalog */
:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --ink: #18201c;
  --ink-2: #3a433e;
  --muted: #6c736e;
  --line: #e7dfd2;
  --line-2: #efe9df;
  --nori: #1c2b25;
  --nori-2: #26382f;
  --accent: #e8553d;
  --accent-ink: #c43d27;
  --accent-soft: #fde6df;
  --gold: #d9a441;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(24, 32, 28, .05), 0 8px 24px -12px rgba(24, 32, 28, .18);
  --shadow-lg: 0 2px 4px rgba(24, 32, 28, .06), 0 22px 44px -18px rgba(24, 32, 28, .30);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --side: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.08rem; font-weight: 800; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; color: var(--accent-ink); margin: 0 0 .7em; }
.lead { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 1em; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- header */
.site-head { background: var(--nori); color: #eef3ef; position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.logo-text { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.logo-text b { color: #ff9b83; font-weight: 700; }
.head-search { position: relative; flex: 1; max-width: 460px; }
.head-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #a9b9b0; stroke-width: 2; stroke-linecap: round; }
.head-search input {
  width: 100%; height: 42px; border: 1px solid transparent; border-radius: 999px; padding: 0 16px 0 42px;
  background: var(--nori-2); color: #fff; outline: none; transition: background .15s, border-color .15s;
}
.head-search input::placeholder { color: #93a69b; }
.head-search input:focus { background: #fff; color: var(--ink); border-color: var(--accent); }
.head-links { display: flex; gap: 4px; margin-left: auto; }
.head-links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .93rem; color: #cfdcd4; transition: background .15s, color .15s; }
.head-links a:hover, .head-links a[aria-current] { background: var(--nori-2); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: var(--nori-2); border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: #fff; border-radius: 2px; }

.catnav { background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
.catnav-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav a {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: var(--ink-2); transition: background .15s;
}
.catnav a i, .pill i, .side-cats i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.catnav a:hover { background: var(--line-2); }
.catnav a[aria-current] { background: var(--ink); color: #fff; }
.only-m { display: none !important; }

/* autocomplete */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink);
  border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; z-index: 60; max-height: 420px; overflow: auto;
}
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.suggest a:hover, .suggest a.is-active { background: var(--line-2); }
.suggest img { width: 52px; height: 39px; border-radius: 8px; background: var(--bg); object-fit: cover; }
.suggest b { display: block; font-size: .95rem; }
.suggest small { color: var(--muted); font-size: .8rem; }
.suggest .sg-all { justify-content: center; font-weight: 700; color: var(--accent-ink); font-size: .9rem; }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(800px 400px at 85% 30%, rgba(232, 85, 61, .12), transparent 60%),
    radial-gradient(600px 300px at 10% 110%, rgba(47, 93, 80, .10), transparent 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 48px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent-ink); display: block; }
.hero .lead { max-width: 560px; }
.hero-search { position: relative; display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 540px; margin: 26px 0 30px; }
.hero-search input { flex: 1; border: 0; outline: none; padding: 0 18px; background: transparent; min-width: 0; height: 46px; }
.hero-search button, .big-search button {
  border: 0; background: var(--accent); color: #fff; font-weight: 800; padding: 0 26px; border-radius: 999px; cursor: pointer; transition: background .15s;
}
.hero-search button:hover, .big-search button:hover { background: var(--accent-ink); }
.hero-stats { display: flex; gap: 34px; list-style: none; padding: 0; margin: 0; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.hero-art { position: relative; display: block; }
.hero-art img { position: relative; width: 100%; filter: drop-shadow(0 30px 30px rgba(24,32,28,.18)); transition: transform .4s; }
.hero-art:hover img { transform: rotate(-2deg) scale(1.02); }
.hero-kanji {
  position: absolute; right: -10px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl;
  font-size: 170px; line-height: 1; color: var(--accent); opacity: .08; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700;
}
.hero-tag {
  position: absolute; left: 8%; bottom: 8%; background: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 800;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-tag small { display: block; font-size: .72rem; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .1em; }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 40px; padding: 36px 0 64px; align-items: start; }
.main { min-width: 0; }
.block { margin-top: 56px; }
.main > .block:first-child, .main > .page-head:first-child { margin-top: 0; }
.block-head { margin-bottom: 22px; }
.block-head p { color: var(--muted); margin: 0; }
.block-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.btn-ghost { flex-shrink: 0; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--ink); font-weight: 800; font-size: .9rem; transition: background .15s, color .15s; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.h-small { font-size: 1.2rem; }

/* crumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------- categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card img { background: color-mix(in srgb, var(--c) 10%, #fff); aspect-ratio: 4/3; object-fit: cover; transition: transform .35s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.cat-card b { font-size: 1.05rem; }
.cat-card small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.cat-card em { font-style: normal; font-size: .76rem; font-weight: 800; color: color-mix(in srgb, var(--c) 75%, #000); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card[hidden] { display: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; }
.card-img { position: relative; background: color-mix(in srgb, var(--c) 9%, #fbf9f5); }
.card-img img { width: 100%; aspect-ratio: 4/3; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.06) rotate(-1deg); }
.card-num {
  position: absolute; left: 12px; top: 12px; z-index: 1; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 10px;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--serif);
}
.card-badges { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.card h3 { margin: 4px 0 0; font-size: 1.12rem; }
.card-alt { font-size: .82rem; color: var(--muted); font-style: italic; }
.card p { font-size: .9rem; color: var(--ink-2); margin: 8px 0 12px; line-height: 1.5; }
.card-meta { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }

.badge { display: inline-block; font-size: .7rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #fff; color: var(--ink-2); box-shadow: 0 1px 3px rgba(0,0,0,.08); white-space: nowrap; }
.b-popular { background: var(--accent); color: #fff; }
.b-classic { background: var(--nori); color: #fff; }
.b-veg { background: #e2f3d6; color: #2d6a1f; }
.b-spicy { background: #ffe1d6; color: #b3261e; }
.b-hot { background: #ffefcc; color: #8a5a00; }
.b-raw { background: #fde7ea; color: #9b2335; }
.b-new { background: #ece4ff; color: #5b3bb3; }
.b-kids { background: #dff1f7; color: #1f6280; }

/* ---------------------------------------------------------------- category page */
.cat-head {
  display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: center; padding: 30px;
  border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, #fff), #fff 70%);
  border: 1px solid var(--line); margin-bottom: 24px;
}
.cat-head h1 { margin-bottom: .35em; }
.cat-head .lead { font-size: 1rem; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-on span { color: #b9c2bd; }
.sort { font-size: .88rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; font-weight: 700; color: var(--ink); }
.empty { color: var(--muted); padding: 20px 0; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; transition: border-color .15s; }
.pill:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- product page */
.prod-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.prod-img { margin: 0; border-radius: 24px; background: color-mix(in srgb, var(--c) 12%, #fbf9f5); border: 1px solid var(--line); position: relative; overflow: hidden; }
.prod-img img { width: 100%; }
.prod-img figcaption { position: absolute; left: 14px; bottom: 10px; font-size: .72rem; color: var(--muted); }
.prod-info h1 { margin: 6px 0 2px; }
.prod-alt { font-style: italic; color: var(--muted); margin: 0 0 14px; font-size: 1.05rem; }
.prod-info .lead { font-size: 1.02rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.badges .badge { box-shadow: none; border: 1px solid var(--line); font-size: .76rem; padding: 5px 11px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.heat { display: inline-flex; gap: 3px; }
.heat i { width: 8px; height: 14px; border-radius: 4px; background: var(--line); }
.heat.h1 i:nth-child(-n+1), .heat.h2 i:nth-child(-n+2), .heat.h3 i { background: #e63b2e; }
.prod-section { margin-top: 40px; }
.ingr { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ingr li { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.ingr li::first-letter { text-transform: uppercase; }
.tip {
  display: flex; gap: 18px; margin-top: 32px; background: var(--nori); color: #e8efe9; border-radius: 20px; padding: 24px 26px; align-items: flex-start;
}
.tip h2 { color: #fff; font-size: 1.15rem; margin-bottom: .3em; }
.tip p { margin: 0; color: #cddad2; }
.tip-ico { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 24px; font-family: "Hiragino Mincho ProN", serif; }
.note { font-size: .84rem; color: var(--muted); margin-top: 22px; padding-left: 14px; border-left: 3px solid var(--line); }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.prevnext a { flex: 1; max-width: 48%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 800; transition: border-color .15s; }
.prevnext a:hover { border-color: var(--ink); }
.prevnext small { display: block; font-weight: 600; color: var(--muted); font-size: .78rem; }
.pn-next { text-align: right; margin-left: auto; }

/* ---------------------------------------------------------------- prose / articles */
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.page-head { margin-bottom: 28px; }
.page-head .lead { max-width: 70ch; }
.article .page-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; max-width: 72ch; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc a { color: var(--ink-2); font-weight: 600; }
.toc a:hover { color: var(--accent-ink); }
.home-about { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 34px; max-width: none; }
.home-about h2 { margin-top: 0; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.guide-card {
  display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden;
}
.guide-card::before { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--accent-soft); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.guide-card b { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; position: relative; }
.guide-card p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.guide-read { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); position: relative; }
.guide-more { margin-top: auto; padding-top: 8px; font-weight: 800; color: var(--accent-ink); font-size: .9rem; }

/* ranking */
.rank-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rank-list a {
  display: grid; grid-template-columns: 48px 120px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 18px 10px 12px; transition: transform .2s, box-shadow .2s;
}
.rank-list a:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.rank-n { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; text-align: center; color: var(--muted); }
.rank-list li:nth-child(-n+3) .rank-n { color: var(--accent); }
.rank-img { border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fbf9f5); overflow: hidden; }
.rank-body b { font-size: 1.08rem; }
.rank-body small { color: var(--muted); font-style: italic; }
.rank-cat { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.rank-desc { display: block; font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.rank-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

/* glossary */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.az a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 800; transition: background .15s, color .15s; }
.az a:hover { background: var(--ink); color: #fff; }
.gloss section { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.gloss-letter { font-size: 2.4rem; color: var(--accent); margin: 0; }
.gloss dl { margin: 0; display: grid; gap: 16px; }
.gloss-item { scroll-margin-top: 140px; }
.gloss dt { font-weight: 800; font-size: 1.08rem; }
.gloss dt span { font-weight: 500; color: var(--muted); margin-left: 6px; font-size: .95rem; }
.gloss dd { margin: 2px 0 0; color: var(--ink-2); }

/* search */
.big-search { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 620px; margin: 18px 0 12px; }
.big-search input { flex: 1; border: 0; outline: none; padding: 0 18px; min-width: 0; height: 46px; background: transparent; }

/* ---------------------------------------------------------------- sidebar + ads */
.side { display: flex; flex-direction: column; gap: 22px; position: relative; height: 100%; }
.ad { width: 100%; }
.ad-sticky { position: sticky; top: 140px; }
.ad-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a39e94; text-align: center; margin-bottom: 6px; }
.ad-ph {
  height: var(--ad-h); border: 1.5px dashed #d8cfbf; border-radius: 14px; background: repeating-linear-gradient(135deg, #f3eee5 0 12px, #f7f3ec 12px 24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #a39e94;
}
.ad-ph b { font-size: .9rem; color: #8b857a; }
.ad-ph span { font-size: .8rem; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-h { font-family: var(--sans); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.side-top { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 4px; }
.side-top a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 12px; transition: background .15s; counter-increment: s; position: relative; }
.side-top a:hover { background: var(--line-2); }
.side-top img { width: 64px; height: 48px; border-radius: 10px; background: var(--bg); flex-shrink: 0; }
.side-top b { display: block; font-size: .93rem; line-height: 1.25; }
.side-top small { color: var(--muted); font-size: .78rem; }
.side-top a::before { content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 7px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.side-more { display: block; margin-top: 10px; font-weight: 800; font-size: .88rem; color: var(--accent-ink); }
.side-cats { list-style: none; padding: 0; margin: 0; }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-weight: 600; font-size: .93rem; border-bottom: 1px solid var(--line-2); }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a:hover { color: var(--accent-ink); }
.side-cats span { margin-left: auto; font-size: .78rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 8px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--nori); color: #b9c7bf; padding: 54px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-brand p { font-size: .9rem; max-width: 360px; margin-top: 14px; }
.logo-light .logo-text { color: #fff; }
.site-foot h2 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .92rem; }
.site-foot a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--nori-2); font-size: .84rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  :root { --side: 270px; }
  .layout { gap: 28px; }
  .head-links { display: none; }
  .only-m { display: inline-flex !important; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .side .ad { grid-column: 1 / -1; max-width: 336px; margin-inline: auto; }
  .ad-sticky { position: static; }
  .ad-sticky .ad-ph { height: 280px; }
  .hero-grid { grid-template-columns: 1fr; padding: 34px 0 30px; gap: 10px; }
  .hero-art { max-width: 460px; margin: 0 auto; order: -1; }
  .hero-kanji { font-size: 120px; }
  .prod-top { grid-template-columns: 1fr; }
  .cat-head { grid-template-columns: 1fr 180px; padding: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .head-row { height: 60px; gap: 12px; }
  .head-search { display: none; }
  .menu-btn { display: flex; }
  .catnav { display: none; }
  .catnav.is-open { display: block; }
  .catnav-row { flex-wrap: wrap; }
  .side { grid-template-columns: 1fr; }
  .cat-head { grid-template-columns: 1fr; }
  .cat-head img { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card p { display: none; }
  .card-body { padding: 12px; }
  .card h3 { font-size: 1rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card small { display: none; }
  .rank-list a { grid-template-columns: 32px 76px 1fr; gap: 12px; padding: 8px 12px 8px 8px; }
  .rank-badges, .rank-desc { display: none; }
  .rank-n { font-size: 1.3rem; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 1.6rem; }
  .block-head.row { flex-direction: column; align-items: flex-start; }
  .gloss section { grid-template-columns: 1fr; }
  .home-about { padding: 22px; }
  .tip { flex-direction: column; }
  .prevnext { flex-direction: column; }
  .prevnext a { max-width: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-search button, .big-search button { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- product photos */
.card-img img.is-photo { object-fit: cover; }
.card:hover .card-img img.is-photo { transform: scale(1.05); }
.card-img:has(.is-photo) .card-badges .badge { box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.side-top img.is-photo, .rank-img img.is-photo { object-fit: cover; }
.prod-img.has-photo, .card-img:has(.is-photo), .rank-img:has(.is-photo) { background: #fff; }
.prod-img.has-photo img { aspect-ratio: 4/3; object-fit: cover; }
.h1-brand { display: block; font-size: .42em; letter-spacing: .02em; color: var(--muted); font-weight: 600; margin-bottom: .35em; }

/* ---------------------------------------------------------------- HTML sitemap */
.smap { columns: 3 240px; column-gap: 18px; }
.smap-box { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.smap-box h2 { font-size: 1.1rem; margin-bottom: .5em; }
.smap-box h2 a { display: inline-flex; align-items: center; gap: 8px; }
.smap-box h2 a:hover { color: var(--accent-ink); }
.smap-box h2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.smap-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.smap-box li a { color: var(--ink-2); font-size: .93rem; }
.smap-box li a:hover { color: var(--accent-ink); text-decoration: underline; }
.smap-box li.sub { padding-left: 14px; }
.smap-xml { margin-top: 8px; font-size: .88rem; }

/* ---------------------------------------------------------------- keyword landing pages */
.seo-sec { margin-top: 8px; }
.seo-sec .prose h2 { scroll-margin-top: 140px; }
.seo-prods, .seo-cats { margin: 18px 0 6px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.seo-links .pill { text-decoration: none; color: var(--ink); }
.riga-band { background: linear-gradient(120deg, var(--nori), #26453a); color: #e8efe9; border-radius: 24px; padding: 30px 32px; }
.riga-band h2 { color: #fff; }
.riga-band p { color: #cddad2; max-width: 70ch; }
.riga-band .eyebrow { color: #ff9b83; }
.riga-band .pill { background: #fff; }
