/* ==========================================================================
   sakeee 共通スタイル（全ページで1枚。/assets/site.css）
   Task 2 のモック（design/mock/*.html の <style>。de77f06）から移し、末尾の「モック専用」を外した。
   見た目を変えるときは、まずここの設計の値（:root の変数）を変える。テンプレートに style を書かない（データの値 --v だけは例外）。
   配色は染付（藍・呉須・白磁）。フォントは端末の明朝とゴシックだけ（Web フォントは読まない）。
   ========================================================================== */

/* ---------- 設計の値 ---------- */
:root {
  /* 色 */
  --c-ai: #1b2b4b;               /* 藍: 暖簾・フッター */
  --c-ai-shadow: rgba(6, 12, 26, .55);
  --c-undyed: #eef0ea;           /* 染め抜きの白: 藍の上の文字 */
  --c-undyed-muted: #b3bdd0;     /* 藍の上の控えめな文字 */
  --c-gosu: #2a4c9f;             /* 呉須: リンク・チャート */
  --c-gosu-soft: rgba(42, 76, 159, .18);
  --c-gosu-faint: rgba(42, 76, 159, .06);
  --c-gosu-band: rgba(42, 76, 159, .22);
  --c-paper: #f4f5f2;            /* 地 */
  --c-porcelain: #ffffff;        /* 器の白 */
  --c-ink: #23262c;              /* 墨: 本文 */
  --c-ink-muted: #5b616c;        /* 補足 */
  --c-line: #d6dae0;             /* 罫 */
  --c-ochre: #8a682c;            /* 注意: データ更新停止 */
  --c-ochre-bg: #f4eddc;

  /* 書体 */
  --font-mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --font-gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", "YuGothic", sans-serif;

  /* 文字の大きさ（12・14・16・18・21・24・36・48・72） */
  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-m: 1rem;
  --fs-l: 1.125rem;
  --fs-xl: 1.3125rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 4.5rem;

  /* 寸法 */
  --gutter: 20px;
  --container: 1120px;
  --section-gap: 80px;
  --radius: 3px;
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
    --section-gap: 128px;
  }
}

/* ---------- 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-gothic);
  font-size: var(--fs-m);
  line-height: 1.8;
  /* 日本語は文節で折り返す（Chrome・Edge）。対応していないブラウザは普通の折り返し（禁則つき）になる */
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  text-wrap: pretty;
}

p, figure, dl, dd { margin: 0; }
p { text-wrap: pretty; }


/* auto-phrase の無いブラウザ（Safari など）では、<wbr> を入れた文だけ <wbr> と句読点で折り返す。
   ほかの文（決まった文言の注意書き・帰属表示を含む）は <wbr> を入れられないので普通の折り返しのまま */
@supports not (word-break: auto-phrase) {
  .lead,
  .brand-blurb { word-break: keep-all; }
}

ul, ol { margin: 0; padding: 0; list-style: none; }
svg { max-width: 100%; }

a {
  color: var(--c-gosu);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--c-gosu);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 8px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--c-porcelain);
  color: var(--c-gosu);
}
.skip-link:focus { top: 8px; }

/* ---------- 暖簾（トップの顔・各ページのヘッダー） ---------- */
/* 藍の布に、下の方だけ切れ目（乳の間のすき間）を2本入れて3枚に見せる */
.noren {
  --noren-split: 62%;
  position: relative;
  overflow: hidden;
  color: var(--c-undyed);
  background-color: var(--c-ai);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px);
}
.noren::before,
.noren::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: var(--noren-split);
  bottom: 0;
  width: 6px;
  background: var(--c-paper);
  box-shadow: 0 0 10px 2px var(--c-ai-shadow);
}
.noren::before { left: calc(100% / 3 - 3px); }
.noren::after { left: calc(100% / 3 * 2 - 3px); }
.noren :focus-visible { outline-color: var(--c-undyed); }

/* トップの大きな暖簾 */
.noren-hero .noren-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  min-height: 480px;
  padding: 60px var(--gutter) 0;
}
.noren-title-group {
  justify-self: center;
  text-align: center;
}
.noren-crest {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
}
/* 紋は利き猪口の蛇の目: 外の細い輪（器の縁）と内の太い輪 */
.crest-rim,
.crest-ring {
  fill: none;
  stroke: currentColor;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: 50px 50px;
}
.crest-rim {
  stroke-width: 2.5;
  stroke-dasharray: 290;
  animation: crest-draw-rim 1.4s cubic-bezier(.65, 0, .35, 1) .15s both;
}
.crest-ring {
  stroke-width: 13;
  stroke-dasharray: 177;
  animation: crest-draw-ring 1.4s cubic-bezier(.65, 0, .35, 1) .45s both;
}
.site-title { font-weight: 400; letter-spacing: 0; }
.wordmark {
  display: block;
  font-family: var(--font-mincho);
  font-size: clamp(3.25rem, 2.2rem + 5vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
}
.site-kind {
  display: block;
  margin-top: 18px;
  font-size: var(--fs-s);
  letter-spacing: .32em;
  line-height: 1.6;
  color: var(--c-undyed);
}
.noren-catch {
  margin: 0;
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-mincho);
  font-size: 1.375rem;
  letter-spacing: .3em;
  line-height: 1.5;
  animation: fade-in 1.2s ease-out 1.1s both;
}

@media (min-width: 960px) {
  .noren-hero .noren-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: clamp(560px, 76vh, 680px);
    padding: 96px 0 0;
  }
  .noren-title-group { grid-column: 2; }
  .noren-catch {
    grid-column: 3;
    justify-self: center;
    font-size: 1.875rem;
  }
  .noren-crest { width: 120px; height: 120px; margin-bottom: 30px; }
  /* 広い画面では左の一枚に縦書きで置き、暖簾の三枚に文字を振り分ける */
  .site-kind {
    position: absolute;
    top: 100px;
    left: calc(100% / 6);
    margin: 0;
    transform: translateX(-50%);
    writing-mode: vertical-rl;
    font-size: var(--fs-l);
    letter-spacing: .5em;
  }
}

/* 各ページの細い暖簾（ヘッダー）。切れ目は下の帯だけ */
.noren-bar { --noren-split: calc(100% - 20px); padding-bottom: 20px; }
.noren-bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-undyed);
  text-decoration: none;
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  letter-spacing: .03em;
}
.home-link svg { width: 22px; height: 22px; flex: none; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav a {
  color: var(--c-undyed);
  font-size: var(--fs-s);
  text-decoration: none;
  letter-spacing: .08em;
}
.site-nav a:hover { text-decoration: underline; }

/* ---------- トップ: 日本酒の入り口 ---------- */
.intro {
  display: grid;
  gap: 28px;
  padding-top: 44px;
}
.lead {
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  line-height: 1.9;
  letter-spacing: .04em;
  max-width: 26em;
}
.gateway {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 22px 22px 20px 24px;
  background: var(--c-porcelain);
  border: 1px solid var(--c-gosu);
  border-radius: var(--radius);
  color: var(--c-ink);
  text-decoration: none;
  transition: background-color .2s;
}
.gateway:hover { background: var(--c-gosu-faint); }
.gateway-name {
  font-family: var(--font-mincho);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .14em;
}
.gateway-desc {
  grid-column: 1;
  margin-top: 4px;
  font-size: var(--fs-s);
  color: var(--c-ink-muted);
}
.gateway-mark {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 44px;
  height: 44px;
  color: var(--c-gosu);
}

@media (min-width: 960px) {
  .intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 64px;
    padding-top: 80px;
  }
  .lead { font-size: var(--fs-2xl); }
  .gateway { padding: 28px 28px 26px 32px; }
  .gateway-name { font-size: var(--fs-4xl); }
}

/* ---------- 区画（見出し + 中身） ---------- */
.section { padding-top: var(--section-gap); }
.section-head {
  padding-top: 20px;
  border-top: 1px solid var(--c-ink);
  margin-bottom: 24px;
}
.section-title { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.25rem); }
.section-note {
  margin-top: 10px;
  font-size: var(--fs-s);
  color: var(--c-ink-muted);
}
.section-more {
  display: inline-block;
  margin-top: 14px;
  font-size: var(--fs-s);
}

@media (min-width: 960px) {
  .section {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 64px;
    align-items: start;
  }
  .section-head { margin-bottom: 0; padding-top: 24px; }
  .section-body { border-top: 1px solid var(--c-line); }
}

/* ---------- 味の形（小さなレーダー） ---------- */
.radar-glyph { display: block; overflow: visible; }
.glyph-frame {
  fill: var(--c-porcelain);
  stroke: var(--c-line);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.glyph-shape {
  fill: var(--c-gosu-soft);
  stroke: var(--c-gosu);
  stroke-width: 1.5px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.glyph-compare {
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 1px;
  stroke-dasharray: 3 2;
  vector-effect: non-scaling-stroke;
}
.glyph-empty {
  fill: none;
  stroke: var(--c-ink-muted);
  stroke-width: 1px;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}
.glyph-spoke {
  stroke: var(--c-line);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.glyph-dot { fill: var(--c-gosu); }

/* ---------- トップ: 人気銘柄 ---------- */
.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 56px;
  align-items: center;
  column-gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.rank-list { border-top: 1px solid var(--c-line); }
.rank-no {
  grid-row: 1 / span 2;
  font-family: var(--font-mincho);
  font-size: var(--fs-4xl);
  line-height: 1;
  text-align: center;
  color: var(--c-gosu);
}
.rank-name {
  grid-column: 2;
  font-family: var(--font-mincho);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  color: var(--c-ink);
  text-decoration: none;
}
.rank-name::after { content: ""; position: absolute; inset: 0; }
.rank-item:hover .rank-name { color: var(--c-gosu); text-decoration: underline; }
.rank-source {
  grid-column: 2;
  font-size: var(--fs-s);
  color: var(--c-ink-muted);
}
.rank-item .radar-glyph {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
}

@media (min-width: 960px) {
  .rank-list { border-top: 0; }
  .rank-item {
    grid-template-columns: 4.5rem minmax(0, 1fr) 72px;
    column-gap: 24px;
    padding: 22px 0;
  }
  .rank-no { font-size: var(--fs-5xl); }
  .rank-name { font-size: 1.75rem; }
  .rank-item .radar-glyph { width: 72px; height: 72px; }
}

/* ---------- トップ: 地域から探す ---------- */
.region-group + .region-group { margin-top: 24px; }
.region-name {
  margin-bottom: 10px;
  font-family: var(--font-gothic);
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-ink-muted);
}
/* 枡目: 隣り合う罫を1本に重ねる */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  padding: 0 1px 1px 0;
}
.area-grid li {
  margin: 0 -1px -1px 0;
  border: 1px solid var(--c-line);
  background: var(--c-porcelain);
}
.area-grid a {
  display: block;
  padding: 11px 4px;
  text-align: center;
  color: var(--c-ink);
  text-decoration: none;
  line-height: 1.5;
}
.area-grid a:hover { background: var(--c-gosu-faint); color: var(--c-gosu); }
.area-other { margin-top: 20px; }

@media (min-width: 960px) {
  .region-list { padding-top: 28px; }
  .region-group {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  .region-name { margin: 12px 0 0; }
  .area-other { margin-left: calc(7.5rem + 24px); }
}

/* ---------- トップ: 味から探す ---------- */
.taste-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.taste-card {
  display: block;
  height: 100%;
  padding: 18px 16px 18px;
  background: var(--c-porcelain);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  text-decoration: none;
  transition: border-color .2s;
}
.taste-card:hover { border-color: var(--c-gosu); }
.taste-card .radar-glyph { width: 52px; height: 52px; margin-bottom: 12px; }
.taste-name {
  display: block;
  font-family: var(--font-mincho);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
}
.taste-card:hover .taste-name { color: var(--c-gosu); }
.taste-desc {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-s);
  line-height: 1.7;
  color: var(--c-ink-muted);
}

@media (min-width: 640px) {
  .taste-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .taste-grid { gap: 16px; padding-top: 28px; }
  .taste-card { padding: 24px 22px; }
  .taste-card .radar-glyph { width: 64px; height: 64px; margin-bottom: 16px; }
}

/* ---------- データについて ---------- */
.prose { max-width: 36em; }
.prose > * + * { margin-top: 1em; }
.data-source {
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  line-height: 1.7;
  letter-spacing: .04em;
}
@media (min-width: 960px) {
  .prose { padding-top: 28px; }
}

/* ---------- フッター ---------- */
.site-footer {
  margin-top: var(--section-gap);
  background: var(--c-ai);
  color: var(--c-undyed);
}
.site-footer :focus-visible { outline-color: var(--c-undyed); }
.footer-inner {
  display: grid;
  gap: 22px;
  padding-block: 44px 40px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
}
.footer-brand svg { width: 22px; height: 22px; }
.footer-notice {
  max-width: 42em;
  font-size: var(--fs-s);
  line-height: 1.9;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a { color: var(--c-undyed); font-size: var(--fs-s); }
.footer-copy { font-size: var(--fs-xs); color: var(--c-undyed-muted); }

/* ---------- 銘柄ページ ---------- */
.breadcrumb {
  padding-top: 18px;
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before {
  content: "›";
  content: "›" / "";
  margin: 0 .6em;
  color: var(--c-ink-muted);
}
.breadcrumb a { color: var(--c-ink-muted); }

.brand-head { padding: 28px 0 0; }
.brand-name {
  font-size: clamp(3rem, 2.1rem + 4.5vw, 5.25rem);
  line-height: 1.15;
  letter-spacing: .12em;
}
.brand-origin { margin-top: 14px; font-size: var(--fs-m); }
.brand-origin .sep { margin: 0 .3em; color: var(--c-ink-muted); }
.brand-blurb {
  margin-top: 16px;
  max-width: 30em;
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  line-height: 1.9;
  letter-spacing: .04em;
}

.notice-stale {
  padding: 14px 18px;
  background: var(--c-ochre-bg);
  border-left: 4px solid var(--c-ochre);
  font-size: var(--fs-s);
  line-height: 1.8;
}

.brand-section { padding-top: 56px; }
.brand-section-title {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-ink);
  font-size: var(--fs-2xl);
}
.brand-section-note {
  margin: -8px 0 16px;
  font-size: var(--fs-s);
  color: var(--c-ink-muted);
}
.brand-section-more { display: inline-block; margin-top: 14px; font-size: var(--fs-s); }

@media (min-width: 960px) {
  .brand-section { padding-top: 80px; }
  .brand-section-title { font-size: 1.75rem; }
  .brand-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }
}

/* 味わい: 利き猪口（蛇の目）の中にレーダーを描く */
.flavor-layout { display: grid; gap: 28px; }
.flavor-chart { width: 100%; max-width: 460px; justify-self: center; }
.radar { display: block; width: 100%; height: auto; }
.radar-cup { stroke: var(--c-line); stroke-width: 1; }
.radar-band { fill: none; stroke: var(--c-gosu-band); stroke-width: 9; }
.radar-band-inner { stroke-width: 6; }
.radar-grid { fill: none; stroke: var(--c-line); stroke-width: 1; }
.radar-spoke { stroke: var(--c-line); stroke-width: 1; }
.radar-shape {
  fill: var(--c-gosu-soft);
  stroke: var(--c-gosu);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.radar-dot { fill: var(--c-gosu); }
.radar-label {
  font-family: var(--font-mincho);
  font-size: 15px;
  fill: var(--c-ink);
}

.flavor-values { display: grid; gap: 12px; }
.flavor-row {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}
.flavor-row dt { font-family: var(--font-mincho); font-size: var(--fs-l); }
.flavor-row dd { display: flex; align-items: center; gap: 14px; }
.meter {
  position: relative;
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--c-line);
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: 3px;
  background: var(--c-gosu);
}
.flavor-value {
  width: 2.6em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.flavor-scale { margin-top: 14px; font-size: var(--fs-xs); color: var(--c-ink-muted); }

@media (min-width: 960px) {
  .flavor-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 64px;
  }
  .radar-label { font-size: 14px; }
}

/* 味タグ（味わいの右の列の下） */
.flavor-tags { margin-top: 36px; }
.flavor-tags-title {
  margin-bottom: 14px;
  font-size: var(--fs-l);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--c-gosu);
  border-radius: 999px;
  background: var(--c-porcelain);
  color: var(--c-gosu);
  font-size: var(--fs-s);
  line-height: 1.6;
  text-decoration: none;
}
.tag:hover { background: var(--c-gosu); color: var(--c-porcelain); }

/* ランキングの推移 */
.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.rank-table th,
.rank-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--c-line);
  text-align: right;
}
.rank-table th:first-child { padding-left: 0; text-align: left; }
.rank-table thead th {
  border-bottom-color: var(--c-ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-ink-muted);
}
.rank-table tbody th { font-weight: 400; }
.rank-table .rank-out { color: var(--c-ink-muted); }
.table-note { margin-top: 10px; font-size: var(--fs-xs); color: var(--c-ink-muted); }

/* 銘柄の一覧（似た味・同じ蔵・同じ地域） */
.brand-list { border-top: 1px solid var(--c-line); }
.brand-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.brand-list-item .radar-glyph { grid-row: 1 / span 2; width: 48px; height: 48px; }
.brand-list-name {
  font-family: var(--font-mincho);
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--c-ink);
  text-decoration: none;
}
.brand-list-name::after { content: ""; position: absolute; inset: 0; }
.brand-list-item:hover .brand-list-name { color: var(--c-gosu); text-decoration: underline; }
.brand-list-sub { grid-column: 2; font-size: var(--fs-s); color: var(--c-ink-muted); }
.compare-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--c-ink-muted);
}
.compare-legend svg { width: 24px; height: 8px; flex: none; }

@media (min-width: 960px) {
  .brand-list-item { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; padding: 14px 0; }
  .brand-list-item .radar-glyph { width: 56px; height: 56px; }
}

/* 帰属表示（データの直後に1か所） */
.attribution {
  margin-top: 64px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-s);
  color: var(--c-ink-muted);
}

/* ---------- 固定ページ（運営者情報・プライバシーポリシー・お問い合わせ・404） ---------- */
.page-head { padding: 28px 0 0; }
.page-title {
  /* 「プライバシーポリシー」（10字）が 320px でも1行に収まる大きさから */
  font-size: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: .06em;
}
.page-lead {
  margin-top: 16px;
  max-width: 30em;
  font-family: var(--font-mincho);
  font-size: var(--fs-xl);
  line-height: 1.9;
  letter-spacing: .04em;
}
.doc { max-width: 40em; }
.doc-section { padding-top: 56px; }
.doc-section-title {
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-ink);
  font-size: var(--fs-2xl);
}
.doc-body > * + * { margin-top: 1em; }
.doc-list { padding-left: 1.4em; list-style: disc; }
.doc-list li + li { margin-top: .5em; }
.doc-facts { border-top: 1px solid var(--c-line); }
.doc-facts div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  column-gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.doc-facts dt {
  padding-top: .15em;
  font-size: var(--fs-s);
  font-weight: 600;
  color: var(--c-ink-muted);
}
.doc-note { font-size: var(--fs-s); color: var(--c-ink-muted); }
/* 入り口の札を、長い名前にも使えるよう小さくしたもの（お問い合わせのフォームへのリンク） */
.gateway-compact .gateway-name { font-size: var(--fs-xl); letter-spacing: .08em; }

@media (min-width: 960px) {
  .doc-section { padding-top: 72px; }
  .doc-section-title { font-size: 1.75rem; }
  .gateway-compact .gateway-name { font-size: var(--fs-3xl); }
}

/* ---------- 日本酒のページ（/sake/…。銘柄ページ以外はモックが無いので、モックの部品を組み合わせ、足りない部品だけここに足す） ---------- */
/* さけのわから消えた銘柄の文（モックでは見本の枠の中にあった）。銘柄の見出しとの間を空ける */
.brand-head + .notice-stale { margin-top: 28px; }

/* 銘柄ページ以外でも、区画の見出しのすぐ下のランキングに上の罫を引く（広い画面の .rank-list は罫を消すため） */
.brand-section .rank-list { border-top: 1px solid var(--c-line); }

/* 地域別のランキング・地域ページのランキングの小さい行 */
.rank-list-compact .rank-item {
  grid-template-columns: 2.25rem minmax(0, 1fr) 40px;
  column-gap: 12px;
  padding: 10px 0;
}
.rank-list-compact .rank-no { font-size: var(--fs-2xl); }
.rank-list-compact .rank-name { font-size: var(--fs-l); }
.rank-list-compact .radar-glyph { width: 40px; height: 40px; }

/* 月のランキングの地域別（広い画面で2列） */
.rank-groups { display: grid; gap: 40px; }
.rank-group-title { margin-bottom: 10px; font-size: var(--fs-l); }

/* 名前と補足だけの一覧（地域ページの蔵元・ランキングの月ごとのリンク） */
.link-list { border-top: 1px solid var(--c-line); }
.link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.link-list a {
  font-family: var(--font-mincho);
  font-size: var(--fs-l);
  font-weight: 600;
  letter-spacing: .06em;
}
.link-list-sub { font-size: var(--fs-s); color: var(--c-ink-muted); }

@media (min-width: 960px) {
  .rank-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 48px; }
  /* 長い銘柄の一覧（蔵元・味タグ・味の6軸のページ）は広い画面で2列 */
  .brand-list-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
  /* 日本酒のトップの味タグ（ほかの区画の中身と同じく、罫の下を空ける） */
  .tag-list-section { padding-top: 28px; }
}

/* ---------- 行ごと押せる一覧のフォーカス（行全体を囲む） ---------- */
@supports selector(:has(*)) {
  .rank-name:focus-visible,
  .brand-list-name:focus-visible { outline: none; }
  .rank-item:has(.rank-name:focus-visible),
  .brand-list-item:has(.brand-list-name:focus-visible) {
    outline: 2px solid var(--c-gosu);
    outline-offset: 2px;
    border-radius: 2px;
  }
}
.area-grid a:focus-visible { outline-offset: -3px; }

/* ---------- 動き（読み込み時に紋を一度だけ描く） ---------- */
@keyframes crest-draw-rim {
  from { stroke-dashoffset: 290; }
  to { stroke-dashoffset: 0; }
}
@keyframes crest-draw-ring {
  from { stroke-dashoffset: 177; }
  to { stroke-dashoffset: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .crest-rim,
  .crest-ring,
  .noren-catch { animation: none; }
  .gateway,
  .taste-card { transition: none; }
}
