/* ============================================
   Template F: 日本酒データベース/レビュー型
   - 配色: 藍×墨色(和の落ち着き) + 朱
   - フォント: Noto Serif JP / 明朝(格調)
   - 見出し: 縦書きアクセント、押印風バッジ
   - 一覧形式: スペック重視カード
   - CSSクラス接頭辞: .sake-*
   ============================================ */

:root {
  --sake-primary: #1f3a5f;          /* 藍 */
  --sake-primary-dark: #142544;
  --sake-accent: #b23a48;           /* 朱(押印風) */
  --sake-accent-soft: #c87b80;
  --sake-gold: #c5a85e;             /* 金色アクセント */
  --sake-cream: #f5f0e6;            /* 和紙風 */
  --sake-paper: #fbf8f1;
  --sake-text: #1c1c1e;
  --sake-text-muted: #6c6c70;
  --sake-border: #d9cfbe;
  --sake-card: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  background: var(--sake-paper);
  color: var(--sake-text);
  line-height: 1.85;
  font-feature-settings: "palt";
}
a { color: var(--sake-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ヘッダー */
.sake-header {
  background: var(--sake-primary);
  color: #fff;
  border-bottom: 4px solid var(--sake-gold);
}
.sake-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.sake-brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.sake-brand a { color: #fff; text-decoration: none; }
.sake-brand-kanji { color: var(--sake-gold); font-size: 1.3rem; }
.sake-nav { display: flex; gap: 1.5rem; }
.sake-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.sake-nav a:hover {
  color: var(--sake-gold);
  border-bottom-color: var(--sake-gold);
  text-decoration: none;
}

/* 検索バー */
.sake-search-bar {
  background: var(--sake-primary-dark);
  padding: 1.5rem 0;
}
.sake-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.6rem;
}
.sake-search-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #fff;
  font-family: inherit;
}
.sake-search-input:focus {
  outline: none;
  border-color: var(--sake-gold);
}
.sake-search-btn {
  padding: 0.8rem 1.6rem;
  background: var(--sake-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
}
.sake-search-btn:hover { background: #8e2c37; }

/* ヒーロー */
.sake-hero {
  background:
    linear-gradient(135deg, rgba(31, 58, 95, 0.92) 0%, rgba(20, 37, 68, 0.95) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(197, 168, 94, 0.4), transparent 60%);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.sake-hero h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
}
.sake-hero-sub {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}
.sake-hero-stats {
  display: inline-flex;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.sake-hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--sake-gold);
}
.sake-hero-stat-label {
  font-size: 0.8rem;
  opacity: 0.75;
  letter-spacing: 0.1em;
}

/* メイン */
.sake-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* セクション見出し */
.sake-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--sake-primary);
}
.sake-section-title:first-child { margin-top: 0; }
.sake-section-title::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 4px;
  background: var(--sake-accent);
  border-radius: 2px;
}

/* 銘柄カードグリッド */
.sake-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 1100px) {
  .sake-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sake-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 600px) {
  /* スマホは 2列 キープして 1画面に並ぶ情報量を増やす */
  .sake-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}
@media (max-width: 380px) {
  /* 極小画面のみ 1列 */
  .sake-grid { grid-template-columns: 1fr; }
}

/* モバイル時のカード内縮小 */
@media (max-width: 600px) {
  .sake-card-body { padding: 0.7rem 0.85rem 0.9rem; }
  .sake-card-name { font-size: 0.92rem; line-height: 1.45; margin-bottom: 0.2rem; }
  .sake-card-brewery { font-size: 0.72rem; margin-bottom: 0.4rem; }
  .sake-card-prefecture { font-size: 0.65rem; margin-bottom: 0.15rem; }
  .sake-card-tags { gap: 0.25rem; margin: 0.3rem 0; }
  .sake-tag { font-size: 0.65rem; padding: 0.1rem 0.4rem; }
  .sake-card-rating-value { font-size: 0.92rem; }
  .sake-card-rating-stars { font-size: 0.72rem; letter-spacing: 0.04em; }
  .sake-card-image .placeholder { font-size: 2rem; }
  .sake-section-title { font-size: 1.1rem; margin: 2rem 0 1rem; }
  .sake-main { padding: 2rem 0.9rem; }
}

.sake-card {
  background: var(--sake-card);
  border: 1px solid var(--sake-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sake-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31, 58, 95, 0.12);
  border-color: var(--sake-primary);
}
.sake-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--sake-cream);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sake-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sake-card-image .placeholder {
  font-family: serif;
  font-size: 3rem;
  color: var(--sake-border);
  font-weight: 900;
}
.sake-card-body { padding: 1rem 1.2rem 1.2rem; }
.sake-card-prefecture {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--sake-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.sake-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}
.sake-card-name a {
  color: var(--sake-text);
  text-decoration: none;
}
.sake-card-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.sake-card-brewery {
  font-size: 0.78rem;
  color: var(--sake-text-muted);
  margin-bottom: 0.5rem;
}
.sake-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.6rem 0;
}
.sake-tag {
  background: var(--sake-cream);
  color: var(--sake-primary);
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  border-radius: 3px;
  font-weight: 600;
}
.sake-card-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.sake-card-rating-value {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--sake-accent);
}
.sake-card-rating-stars {
  color: var(--sake-gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* 詳細ページ */
.sake-item-hero {
  background: var(--sake-cream);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-item-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .sake-item-hero-inner { grid-template-columns: 1fr; }
}
.sake-item-image {
  background: #fff;
  border: 1px solid var(--sake-border);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: serif;
  font-size: 4rem;
  color: var(--sake-border);
  font-weight: 900;
}
.sake-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sake-item-prefecture {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--sake-text-muted);
  margin-bottom: 0.4rem;
}
.sake-item-name {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--sake-text);
}
.sake-item-brewery {
  font-size: 1rem;
  color: var(--sake-text-muted);
  margin-bottom: 1.2rem;
}
.sake-item-tags { margin: 1rem 0 1.5rem; }
.sake-item-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--sake-border);
  padding: 1rem 1.4rem;
  border-radius: 4px;
  border-left: 4px solid var(--sake-accent);
}
.sake-item-rating-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--sake-accent);
  line-height: 1;
}
.sake-item-rating-stars {
  color: var(--sake-gold);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}
.sake-item-rating-label {
  font-size: 0.78rem;
  color: var(--sake-text-muted);
  letter-spacing: 0.1em;
}

/* スペック表 */
.sake-spec-section {
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-spec-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sake-spec-table {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sake-border);
  border: 1px solid var(--sake-border);
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .sake-spec-table { grid-template-columns: repeat(2, 1fr); }
}
.sake-spec-cell {
  background: #fff;
  padding: 1rem 1.2rem;
  text-align: center;
}
.sake-spec-label {
  font-size: 0.72rem;
  color: var(--sake-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.sake-spec-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--sake-primary);
  font-feature-settings: "tnum";
}
.sake-spec-unit {
  font-size: 0.85rem;
  color: var(--sake-text-muted);
  margin-left: 0.2rem;
  font-weight: 600;
}

/* 評価チャート(レーダー + 4象限) */
.sake-chart-section {
  background: var(--sake-paper);
  padding: 3rem 1.5rem;
}
.sake-chart-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .sake-chart-inner { grid-template-columns: 1fr; }
}
.sake-chart-box {
  background: #fff;
  border: 1px solid var(--sake-border);
  padding: 1.8rem;
}
.sake-chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--sake-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sake-chart-title::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--sake-accent);
  display: inline-block;
}
.sake-chart-svg { width: 100%; height: auto; max-width: 400px; margin: 0 auto; display: block; }

/* レーダーチャートのスタイル */
.radar-grid { stroke: var(--sake-border); stroke-width: 1; fill: none; }
.radar-axis { stroke: var(--sake-border); stroke-width: 1; }
.radar-shape {
  fill: rgba(178, 58, 72, 0.25);
  stroke: var(--sake-accent);
  stroke-width: 2;
  stroke-linejoin: round;
}
.radar-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--sake-text);
  font-family: "Noto Serif JP", serif;
}

/* 4象限チャート */
.quadrant-axis { stroke: var(--sake-primary); stroke-width: 1.5; }
.quadrant-grid { stroke: var(--sake-border); stroke-width: 1; stroke-dasharray: 2 4; }
.quadrant-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--sake-primary);
  font-family: "Noto Serif JP", serif;
}
.quadrant-corner {
  font-size: 10px;
  fill: var(--sake-text-muted);
  font-family: "Noto Serif JP", serif;
}
.quadrant-dot {
  fill: var(--sake-accent);
  stroke: #fff;
  stroke-width: 2;
}
.quadrant-pulse {
  fill: none;
  stroke: var(--sake-accent);
  stroke-width: 1.5;
  opacity: 0.5;
}

/* 料理ペアリング */
.sake-pairing-section {
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-pairing-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sake-pairing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.sake-pairing-item {
  background: var(--sake-cream);
  border: 1px solid var(--sake-border);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.sake-pairing-item::before {
  content: "🍴";
  font-size: 0.9rem;
}

/* 編集レビュー */
.sake-review-section {
  background: var(--sake-paper);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-review-inner {
  max-width: 900px;
  margin: 0 auto;
}
.sake-review {
  background: #fff;
  border: 1px solid var(--sake-border);
  padding: 2.5rem;
  border-left: 6px solid var(--sake-accent);
  position: relative;
}
.sake-review::before {
  content: "“";
  font-family: serif;
  font-size: 5rem;
  color: var(--sake-accent);
  position: absolute;
  top: 0; left: 1.5rem;
  line-height: 1;
  opacity: 0.3;
}
.sake-review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-review-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sake-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  font-family: serif;
}
.sake-review-author-name { font-size: 1.05rem; font-weight: 700; }
.sake-review-author-title {
  font-size: 0.82rem;
  color: var(--sake-text-muted);
}
.sake-review-body {
  font-size: 1.02rem;
  line-height: 2;
  position: relative;
  z-index: 1;
}
.sake-review-body p { margin-bottom: 1.2rem; }

/* 関連銘柄 */
.sake-related-section {
  padding: 3rem 1.5rem;
}
.sake-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* パンくず */
.sake-breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid var(--sake-border);
}
.sake-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  color: var(--sake-text-muted);
}
.sake-breadcrumb a { color: var(--sake-text-muted); }
.sake-breadcrumb .sep { margin: 0 0.4rem; color: var(--sake-accent); }

/* 検索結果ページ */
.sake-search-result {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.sake-search-info {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--sake-text-muted);
}
.sake-search-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--sake-cream);
  border: 1px dashed var(--sake-border);
  border-radius: 4px;
  color: var(--sake-text-muted);
}

/* フィルタ・タイプチップ(一覧ページ) */
.sake-filter-section {
  background: #fff;
  padding: 1.5rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sake-filter-chip {
  padding: 0.5rem 1rem;
  background: var(--sake-cream);
  border: 1px solid var(--sake-border);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--sake-text);
}
.sake-filter-chip:hover, .sake-filter-chip.active {
  background: var(--sake-primary);
  color: #fff;
  border-color: var(--sake-primary);
  text-decoration: none;
}

/* ============================================
   ランキング
   ============================================ */
.sake-ranking-hero {
  background: linear-gradient(135deg, var(--sake-primary) 0%, var(--sake-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sake-ranking-hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(197, 168, 94, 0.25), transparent 70%);
}
.sake-ranking-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.sake-ranking-icon {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sake-ranking-eyebrow {
  display: inline-block;
  background: var(--sake-gold);
  color: var(--sake-primary-dark);
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.sake-ranking-title {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  line-height: 1.45;
}
.sake-ranking-desc {
  font-size: 0.98rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.9;
}
.sake-ranking-meta {
  font-size: 0.82rem;
  opacity: 0.7;
  letter-spacing: 0.1em;
}

/* ランキングリスト(順位ごとの大きなカード) */
.sake-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.sake-rank-item {
  display: grid;
  grid-template-columns: 80px 180px 1fr;
  gap: 1.5rem;
  background: var(--sake-card);
  border: 1px solid var(--sake-border);
  border-radius: 6px;
  overflow: hidden;
  align-items: stretch;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.sake-rank-item:hover {
  transform: translateX(4px);
  border-color: var(--sake-primary);
  box-shadow: 0 10px 24px rgba(31, 58, 95, 0.12);
}
@media (max-width: 700px) {
  .sake-rank-item {
    grid-template-columns: 60px 100px 1fr;
    gap: 0.7rem;
  }
}
.sake-rank-badge {
  background: var(--sake-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
}
.sake-rank-item[data-rank="1"] .sake-rank-badge { background: linear-gradient(135deg, #d4a04c, #b08234); }
.sake-rank-item[data-rank="2"] .sake-rank-badge { background: linear-gradient(135deg, #a8a8b0, #88888f); }
.sake-rank-item[data-rank="3"] .sake-rank-badge { background: linear-gradient(135deg, #b27746, #8a5a32); }
.sake-rank-badge-label {
  font-size: 0.65rem;
  opacity: 0.85;
  letter-spacing: 0.1em;
}
.sake-rank-badge-num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  font-family: serif;
}
.sake-rank-image {
  background: var(--sake-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sake-rank-image img { width: 100%; height: 100%; object-fit: cover; }
.sake-rank-image .placeholder { font-family: serif; font-size: 2.5rem; color: var(--sake-border); font-weight: 900; }
.sake-rank-content { padding: 1rem 1.4rem 1.2rem; display: flex; flex-direction: column; justify-content: center; position: relative; }
.sake-rank-name { font-size: 1.25rem; font-weight: 900; line-height: 1.5; margin: 0.2rem 0 0.3rem; }
.sake-rank-name a { color: var(--sake-text); text-decoration: none; }
.sake-rank-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
@media (max-width: 700px) {
  .sake-rank-name { font-size: 1rem; }
  .sake-rank-badge-num { font-size: 1.8rem; }
}

/* ランキングカード(一覧用) */
.sake-ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.sake-ranking-grid-large {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.sake-ranking-card {
  background: var(--sake-card);
  border: 1px solid var(--sake-border);
  border-radius: 6px;
  padding: 1.6rem 1.5rem;
  text-decoration: none;
  color: var(--sake-text);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sake-ranking-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(197, 168, 94, 0.15), transparent);
  pointer-events: none;
  transition: opacity 0.25s;
  opacity: 0.5;
}
.sake-ranking-card:hover {
  transform: translateY(-4px);
  border-color: var(--sake-primary);
  box-shadow: 0 12px 28px rgba(31, 58, 95, 0.12);
  text-decoration: none;
}
.sake-ranking-card:hover::before { opacity: 1; }
.sake-ranking-card-icon { font-size: 2.4rem; margin-bottom: 0.5rem; line-height: 1; }
.sake-ranking-card-title { font-size: 1.1rem; font-weight: 900; line-height: 1.5; margin-bottom: 0.5rem; }
.sake-ranking-card-desc {
  color: var(--sake-text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}
.sake-ranking-card-count {
  font-size: 0.85rem;
  color: var(--sake-accent);
  font-weight: 700;
  margin-top: auto;
}

.sake-ranking-other { margin-top: 4rem; }

/* ============================================
   タグクラウド/タググループ
   ============================================ */
.sake-tag-group {
  background: var(--sake-card);
  border: 1px solid var(--sake-border);
  border-radius: 6px;
  padding: 1.4rem 1.6rem 1.6rem;
  margin-bottom: 1.2rem;
}
.sake-tag-group-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-tag-group-icon {
  font-size: 1.5rem;
}
.sake-tag-group-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--sake-primary);
  flex-grow: 1;
}
.sake-tag-group-count {
  font-size: 0.78rem;
  color: var(--sake-text-muted);
  letter-spacing: 0.05em;
}
.sake-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sake-tag-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: var(--sake-cream);
  border: 1px solid var(--sake-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--sake-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s;
}
.sake-tag-chip:hover {
  background: var(--sake-primary);
  color: #fff;
  border-color: var(--sake-primary);
  text-decoration: none;
  transform: translateY(-2px);
}
/* 銘柄シリーズ名・蔵元名のタグ(先頭2件)を強調 = 同銘柄/同蔵の一覧へ誘導 */
.sake-tag-chip--brand {
  background: var(--sake-primary);
  color: #fff;
  border-color: var(--sake-primary);
}
.sake-tag-chip--brand::before {
  content: "🍶";
  font-size: 0.82rem;
}
.sake-tag-chip--brand:hover {
  filter: brightness(1.08);
}
.tag-chip-label { font-weight: 700; }
.tag-chip-count {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  opacity: 0.7;
}

.sake-tag-related { margin-top: 3rem; }

/* 詳細ページの「この銘柄のタグ」 */
.sake-item-tag-section {
  background: #fff;
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--sake-border);
}
.sake-item-tag-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   アニメーション (スクロールでフェードイン)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* スタガード遅延 */
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* キーフレーム */
@keyframes pop-in {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ヒーローのテキストを少しふわっと */
.sake-hero h1 { animation: fade-up 0.7s ease 0.1s backwards; }
.sake-hero-sub { animation: fade-up 0.7s ease 0.25s backwards; }
.sake-hero-stats { animation: fade-up 0.7s ease 0.4s backwards; }

/* HOVER アニメーション強化 */
.sake-card { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, border-color 0.3s; }
.sake-card:hover .sake-card-image img { transform: scale(1.05); }
.sake-card-image img { transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ボタンのリップル風 */
.sake-search-btn { position: relative; overflow: hidden; transition: all 0.2s; }
.sake-search-btn:active { transform: scale(0.97); }

/* スター数字のグロー */
.sake-item-rating-value {
  text-shadow: 0 0 16px rgba(178, 58, 72, 0.2);
}

/* prefers-reduced-motion 対応 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   スマホで詳細画像を小さく
   ============================================ */
@media (max-width: 600px) {
  .sake-item-image {
    max-width: 220px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    font-size: 3rem;
  }
  .sake-item-name {
    font-size: 1.5rem;
  }
  .sake-item-hero {
    padding: 2rem 1rem;
  }
  .sake-item-hero-inner {
    gap: 1.5rem;
  }
  .sake-hero h1 { font-size: 1.6rem; }
  .sake-hero { padding: 2.5rem 1rem 2rem; }
  .sake-hero-stats { gap: 1rem; }
  .sake-hero-stat-num { font-size: 1.5rem; }
}

/* フッター */
.sake-footer {
  background: var(--sake-primary-dark);
  color: #c5c5c5;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.9rem;
}
.sake-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sake-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .sake-footer-grid { grid-template-columns: 1fr; }
}
.sake-footer h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--sake-gold);
}
.sake-footer a { color: #d4d4d4; }
.sake-footer-tagline {
  color: #a5a5a5;
  font-size: 0.85rem;
  line-height: 1.85;
}
.sake-footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: #8a8a8a;
  padding-top: 1.5rem;
  border-top: 1px solid #2a3e5d;
}

/* ============================================
   トップ クイックナビ（探し方の別UI）
   ============================================ */
.sake-quicknav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin: 0.4rem 0 2.6rem;
}
@media (max-width: 600px) {
  .sake-quicknav { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}
.sake-quicknav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.2rem 0.7rem;
  background: var(--sake-card);
  border: 1px solid var(--sake-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--sake-text);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sake-quicknav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 58, 95, 0.12);
  border-color: var(--sake-primary);
}
.sake-quicknav-card--accent {
  background: linear-gradient(135deg, var(--sake-primary), var(--sake-primary-dark));
  border-color: var(--sake-primary-dark);
  color: #fff;
}
.sake-quicknav-card--accent .sake-quicknav-sub { color: rgba(255,255,255,0.8); }
.sake-quicknav-icon { font-size: 1.9rem; line-height: 1; }
.sake-quicknav-label { font-size: 0.95rem; font-weight: 700; }
.sake-quicknav-sub { font-size: 0.68rem; color: var(--sake-text-muted); }

/* ============================================
   日本酒診断ページ
   ============================================ */
.shindan { max-width: 720px; margin: 0 auto; }
.shindan-quiz {
  background: var(--sake-card);
  border: 1px solid var(--sake-border);
  border-radius: 12px;
  padding: 2rem 1.8rem 2.2rem;
}
.shindan-progress {
  height: 6px;
  background: var(--sake-cream);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.shindan-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sake-primary), var(--sake-gold));
  transition: width 0.3s ease;
}
.shindan-step { font-size: 0.78rem; color: var(--sake-text-muted); letter-spacing: 0.08em; margin: 0 0 0.4rem; }
.shindan-question { font-size: 1.3rem; line-height: 1.5; margin: 0 0 1.4rem; color: var(--sake-text); }
.shindan-options { display: flex; flex-direction: column; gap: 0.7rem; }
.shindan-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-align: left;
  padding: 0.95rem 1.1rem;
  background: var(--sake-paper);
  border: 1.5px solid var(--sake-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.shindan-option:hover { border-color: var(--sake-primary); transform: translateX(2px); }
.shindan-option.is-selected { border-color: var(--sake-primary); background: #eef2f8; }
.shindan-option-label { font-size: 1.02rem; font-weight: 700; color: var(--sake-text); }
.shindan-option-sub { font-size: 0.76rem; color: var(--sake-text-muted); }
.shindan-back {
  margin-top: 1.4rem;
  background: none;
  border: none;
  color: var(--sake-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.3rem 0;
}
.shindan-back:hover { color: var(--sake-primary); }

.shindan-result-lead {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--sake-accent);
  font-weight: 700;
  margin: 0 0 1rem;
}
.shindan-hit {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.2rem;
  background: var(--sake-card);
  border: 1px solid var(--sake-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.shindan-hit:hover { box-shadow: 0 12px 30px rgba(31,58,95,0.14); border-color: var(--sake-primary); }
.shindan-hit-image {
  aspect-ratio: 3 / 4;
  background: var(--sake-cream);
  display: flex; align-items: center; justify-content: center;
}
.shindan-hit-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shindan-hit-image .placeholder { font-family: serif; font-size: 3rem; font-weight: 900; color: var(--sake-border); }
.shindan-hit-body { padding: 1.1rem 1.2rem 1.1rem 0; }
.shindan-hit-pref { font-size: 0.72rem; color: var(--sake-text-muted); }
.shindan-hit-name { font-size: 1.3rem; font-weight: 800; line-height: 1.4; margin: 0.1rem 0 0.2rem; color: var(--sake-primary); }
.shindan-hit-brewery { font-size: 0.82rem; color: var(--sake-text-muted); margin-bottom: 0.5rem; }
.shindan-hit-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.6rem; }
.shindan-hit-reason { font-size: 0.86rem; line-height: 1.7; color: var(--sake-text); }
@media (max-width: 480px) {
  .shindan-hit { grid-template-columns: 110px 1fr; gap: 0.8rem; }
  .shindan-hit-name { font-size: 1.1rem; }
}
.shindan-alt-lead { font-size: 0.86rem; color: var(--sake-text-muted); margin: 2rem 0 1rem; font-weight: 700; }
.shindan-alts { grid-template-columns: repeat(2, 1fr); }
.shindan-retry {
  display: block;
  margin: 2.2rem auto 0;
  padding: 0.8rem 2rem;
  background: var(--sake-primary);
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.shindan-retry:hover { background: var(--sake-primary-dark); }
