:root {
  --bg: #f7f5f1;
  --card-bg: #ffffff;
  --text: #262220;
  --text-sub: #6b625c;
  --accent: #c0552b;
  --accent-strong: #a8431e;
  --accent-soft: #f0dcd0;
  --border: #e6e0d8;
  --tag-bg: #eef1ea;
  --tag-text: #4c5a43;
  --gold: #d9a441;
  --silver: #a9a3ba;
  --bronze: #b17a4e;
  --shadow-sm: 0 1px 3px rgba(38, 34, 32, 0.06), 0 1px 2px rgba(38, 34, 32, 0.06);
  --shadow-md: 0 6px 16px rgba(38, 34, 32, 0.08), 0 2px 6px rgba(38, 34, 32, 0.05);
  --shadow-lg: 0 14px 32px rgba(38, 34, 32, 0.12);
  --radius-md: 14px;
  --radius-lg: 18px;
  --lux-dark: #1c1512;
  --lux-dark-2: #2a1f19;
  --lux-ivory: #f6efe3;
  --lux-card: #fbf8f2;
  --lux-text: #2c221a;
  --lux-gold: #c9a24b;
  --lux-gold-deep: #a9782a;
  --lux-hairline: rgba(43, 33, 25, 0.12);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  background-color: #f8f4ed;
  background-image: url('images/bg/wallpaper.webp');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: min(1600px, 100%) auto;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

header.site-header {
  background: var(--text);
  color: #fff;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-md);
}

.site-header .inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-header .logo {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 0 22px rgba(224, 138, 92, 0.4);
}

.site-header .logo span {
  background: linear-gradient(90deg, #f0a860 0%, var(--gold) 55%, #f7d38c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lang-switch {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px !important;
}

.lang-banner {
  background: var(--text);
  color: #fdf7f0;
  font-size: 0.85rem;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.lang-banner a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}

.lang-banner button {
  background: none;
  border: none;
  color: #d8d2c8;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.site-header nav a {
  color: #d8d2c8;
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.88rem;
  padding: 8px 4px;
  display: inline-block;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fdf7f0;
  background-color: #1c1512;
  background-image: url('images/hero-bg.png');
  background-image: image-set(
    url('images/hero-bg.webp') type('image/webp'),
    url('images/hero-bg.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 11, 9, 0.9) 0%, rgba(15, 11, 9, 0.82) 55%, rgba(15, 11, 9, 0.92) 100%);
}

/* 英語版ヒーロー: 背景写真に焼き込まれた日本語コピーが英語テキストの
   後ろにうっすら透けて「二重表示」に見えるのを防ぐため、写真自体を
   判読不能なレベルまでぼかし・減光する（日本語版はこの上書きを受けない）。 */
html[lang="en"] .hero::before {
  background: linear-gradient(180deg, rgba(15, 11, 9, 0.94) 0%, rgba(15, 11, 9, 0.9) 55%, rgba(15, 11, 9, 0.96) 100%);
  -webkit-backdrop-filter: blur(10px) brightness(0.5) saturate(0.6);
  backdrop-filter: blur(10px) brightness(0.5) saturate(0.6);
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 30px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
}

.hero-kicker-icon {
  flex-shrink: 0;
}

.gmaps-pin-icon {
  vertical-align: -2px;
  margin-right: 1px;
  flex-shrink: 0;
}

.hero-headline {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 12px;
  text-wrap: pretty;
}

.hero-highlight {
  color: var(--gold);
}

.hero-note {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f3ece3;
  margin: 0 0 18px;
  text-wrap: pretty;
}

.hero-dash {
  color: var(--accent);
  margin-right: 2px;
}

.hero-sub {
  font-size: 0.95rem;
  color: #e2d6c9;
  line-height: 1.6;
  margin: 0 0 16px;
  text-wrap: pretty;
}

.hero-updated {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: #fdf7f0;
  margin: 0;
}

@media (min-width: 601px) {
  .hero-inner { padding: 60px 20px 56px; }
  .hero-headline { font-size: 2.5rem; }
  .hero-note { font-size: 1.1rem; }
  .hero-sub { font-size: 1rem; }
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 20px 60px;
  background-color: #f8f4ed;
}

html {
  scroll-behavior: smooth;
}

/* ジャンルへのクイックジャンプ。横スクロールの小さなアイコンチップ一覧で、
   タップすると同ページ内の該当ジャンルカードへ移動する。 */
.genre-nav {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  overflow-x: visible;
  padding: 2px 2px 12px;
  margin-bottom: 8px;
}
.genre-nav a {
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 4px 6px;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.genre-nav a span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  color: var(--text-sub);
}
.genre-nav a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
/* 目標カードがナビの後ろに隠れないよう、ジャンプ先に上部の余白を確保 */
.genre-block {
  scroll-margin-top: 12px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 36px 0 16px;
  padding-left: 12px;
  border-left: 5px solid var(--accent);
  letter-spacing: 0.01em;
}

/* 殿堂入りステータス: 薄いグラデーション文字だと背景と同化していたため、
   .favorite-badgeと同じ「濃いゴールド背景+濃いブラウン文字」の塗りつぶしピルに変更。 */
.hof-label {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, #f0c260, var(--gold));
  color: #4a3600;
  vertical-align: middle;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card .thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #9a8f84;
  background: repeating-linear-gradient(
    45deg,
    #efe9e1,
    #efe9e1 10px,
    #e7dfd4 10px,
    #e7dfd4 20px
  );
}

.card .card-body { padding: 14px 16px; }

.card .tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.card .meta {
  font-size: 0.76rem;
  color: var(--text-sub);
}

article.post .thumb-large {
  height: 240px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9a8f84;
  font-size: 0.85rem;
  background: repeating-linear-gradient(
    45deg,
    #efe9e1,
    #efe9e1 10px,
    #e7dfd4 10px,
    #e7dfd4 20px
  );
}

.img-caption {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin: 0 0 24px;
}

article.post {
  background: var(--lux-card);
  border-radius: var(--radius-lg);
  padding: 26px 24px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

article.post .tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

article.post h1 {
  font-size: 1.55rem;
  margin: 0 0 8px;
  line-height: 1.5;
  font-weight: 800;
}

.h1-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin: 0 0 22px;
}

/* ランキング詳細ページ(記事・エリア・帯広名物)専用ヘッダー帯: tag/h1/h1-subを
   同じ濃色背景でつなげ、article.postの角丸に沿って外縁まで敷く
   「静かな高級感」のヘッダーにする。ランキング算出方法・プライバシー等の
   通常記事ページ(article.postのみでpost-rankingを持たない)には影響しない。 */
article.post-ranking .tag {
  display: block;
  background: var(--lux-dark);
  background-image: linear-gradient(180deg, var(--lux-dark) 0%, var(--lux-dark-2) 100%);
  color: var(--lux-gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 18px 24px 2px;
  margin: -26px -24px 0;
  border-radius: 0;
}

article.post-ranking h1 {
  background: var(--lux-dark-2);
  color: var(--lux-ivory);
  text-align: center;
  font-size: 1.4rem;
  margin: 0 -24px;
  padding: 6px 24px 4px;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: 0.01em;
}

article.post-ranking .h1-sub {
  background: var(--lux-dark-2);
  color: rgba(246, 239, 227, 0.7);
  text-align: center;
  font-size: 0.78rem;
  margin: 0 -24px 26px;
  padding: 0 24px 22px;
}

article.post-ranking .h1-sub::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--lux-gold);
  opacity: 0.75;
  margin: 16px auto 0;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-bottom: 22px;
}

.lede {
  font-size: 1.0rem;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 26px;
}

/* ランキング本体の見出し: 「口コミ件数・評価点の傾向」のような事務的な表現をやめ、
   静かな高級感のあるランキングセクション見出しにする。 */
.ranking-section-head {
  text-align: center;
  margin: 4px 0 6px;
}
.ranking-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lux-gold-deep);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ranking-section-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lux-text);
  letter-spacing: 0.02em;
}
.ranking-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* SEO: ジャンルページ固有の短い導入文。RANKING見出しより明確に弱く、
   ランキング閲覧の妨げにならないよう控えめなテキストのみで構成する。 */
.genre-intro {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--lux-text);
  max-width: 640px;
  margin: 2px 0 20px;
}

/* 表組み感を弱め、横長のランキングエントリーとして見せる。
   縦罫線は撤去し、行同士は薄い横線＋余白で区切る。 */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 22px;
  font-size: 0.88rem;
}

table.data-table th, table.data-table td {
  border: none;
  padding: 0;
  text-align: left;
}

table.data-table th {
  font-weight: 700;
}

.disclaimer-box {
  border: 1px dashed #b8ac9d;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: var(--text-sub);
  margin: 26px 0;
}

.source-list {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.source-list a { color: var(--accent); }

.method-note {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.method-note a { color: var(--accent); font-weight: 600; }

/* SEO改善: ジャンル/エリア詳細ページ下部の内部リンクセクション。
   ランキング本体が主役のため、大きなカード群にはせず、小さめの見出し＋
   控えめなテキストチップで構成する（静かな高級感のトーンに合わせる）。 */
.related-links {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.related-links-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--lux-gold-deep);
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
.related-links-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-links-nav a {
  display: inline-block;
  background: var(--lux-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lux-text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.related-links-nav a:hover {
  background: var(--accent-soft);
  border-color: var(--lux-gold);
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-sub);
  text-decoration: none;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-sub);
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--border);
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

.genre-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.genre-block:hover {
  box-shadow: var(--shadow-md);
}

.genre-block-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  border: none;
  overflow: hidden;
  isolation: isolate;
}

/* ランキングカードの背景写真: 主役はランキング本体(店名・評価・AI口コミ)。
   「写真を消して黒くする」のではなく、上質なダークブラウンのベースに
   写真が控えめに透けて見える状態を目指す(何の写真か分かる程度は残す)。 */
.genre-block-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 31, 25, 0.6) 0%, rgba(42, 31, 25, 0.72) 100%);
  -webkit-backdrop-filter: brightness(0.72) contrast(0.85) saturate(0.7) blur(1.5px);
  backdrop-filter: brightness(0.72) contrast(0.85) saturate(0.7) blur(1.5px);
  z-index: 0;
}

.genre-block-photo > * {
  position: relative;
  z-index: 1;
}

.genre-block-photo .genre-block-header h2,
.genre-block-photo ol.top3-list .shop-genre {
  color: #fff;
}

/* ジャンル見出し帯: カード上部に独立した暗色の帯を作り、写真の明暗に関わらず
   タイトルが必ず読めるようにする（カードのpaddingをはみ出して外縁まで敷く）。 */
.genre-block-photo .genre-block-header {
  margin: -20px -22px 14px;
  padding: 14px 22px 12px;
  background: linear-gradient(180deg, rgba(34, 25, 19, 0.82), rgba(34, 25, 19, 0.62));
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.genre-block-photo .genre-more,
.genre-block-photo .genre-more:visited,
.genre-block-photo .genre-more:hover,
.genre-block-photo .genre-more:active {
  color: #fff;
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.4);
}

.genre-block-photo .genre-block-header .tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.genre-block-photo ol.top3-list li {
  border-top-color: rgba(255,255,255,0.25);
}

.genre-block-photo ol.top3-list .name,
.genre-block-photo ol.top3-list .name a,
.genre-block-photo ol.top3-list .name a:hover,
.genre-block-photo ol.top3-list .name a:active,
.genre-block-photo ol.top3-list .name a:visited {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.5);
}

.genre-block-photo ol.top3-list .name {
  background: rgba(15, 10, 7, 0.68);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
}

.genre-block-photo ol.top3-list .score {
  color: #ffd668;
  font-weight: 700;
  background: rgba(15, 10, 7, 0.72);
  border-radius: 6px;
  padding: 3px 8px;
  display: inline-block;
}

.genre-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.genre-block-header h2 {
  font-size: 1.02rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ジャンル見出しの改良デザイン。クイックナビと同じカラー絵文字アイコン+
   ゴールドの細アクセント線を、全ジャンルの見出しにも表示する。 */
.genre-block-header h2.genre-title-fancy {
  flex-wrap: wrap;
  font-size: 1.15rem;
  font-weight: 700;
}
.genre-icon {
  color: var(--gold);
  flex-shrink: 0;
}
.genre-title-emoji {
  font-size: 1.3em;
  line-height: 1;
  flex-shrink: 0;
}
.genre-title-accent {
  flex-basis: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 6px;
  opacity: 0.85;
}

.genre-block-header .tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 400;
}

.genre-more,
.genre-more:visited,
.genre-more:hover,
.genre-more:active {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-block;
  margin-top: 14px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.genre-more:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

ol.top3-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.top3-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
}

/* 英語版のみ: 確認済みの英語/ローマ字店舗名（上書きデータがある店舗だけ）。
   日本語店舗名の補助情報として、明確に小さく・弱い色で表示する。 */
.name-en {
  flex-basis: 100%;
  margin-top: -4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-sub);
}
.genre-block-photo ol.top3-list .name-en {
  color: rgba(255, 255, 255, 0.62);
}

/* TOP3カードのAI口コミ要約（試作: 豚丼のみ）。店舗名より明確に弱く、
   色付きの大きなボックスにはしない。ゴールドは順位・評価に限定する。 */
.top3-ai {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text);
}
.top3-ai-label {
  font-weight: 700;
  color: var(--text-sub);
  margin-right: 4px;
}
.top3-ai-body {
  color: inherit;
}
.top3-maps-link {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.top3-maps-link:hover {
  text-decoration: underline;
}

.genre-block-photo .top3-ai {
  background: rgba(15, 10, 7, 0.66);
  border-radius: 6px;
  padding: 6px 8px;
  color: #f3ece3;
}
.genre-block-photo .top3-ai-label {
  color: #cfc3b2;
}
.genre-block-photo .top3-maps-link {
  color: #f3ece3;
}

/* 詳細ランキングUI整理の試作（豚丼のみ）。店舗名・評価・AI要約を個別の黒い
   箱で囲うのをやめ、カード全体のオーバーレイを強めて可読性を確保する。
   1店舗=1つのまとまりとして、余白と区切り線だけで店舗間を分ける。 */
.genre-block-clean.genre-block-photo::before {
  background: linear-gradient(180deg, rgba(42, 31, 25, 0.68) 0%, rgba(42, 31, 25, 0.78) 100%);
}
.genre-block-clean ol.top3-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.genre-block-clean ol.top3-list li:first-child {
  border-top: none;
  padding-top: 4px;
}
.genre-block-clean.genre-block-photo ol.top3-list .name,
.genre-block-clean.genre-block-photo ol.top3-list .score {
  background: none;
  padding: 0;
  border-radius: 0;
  display: inline;
  /* 背景に個別パネルを敷かない代わりに、テキストシャドウで
     背景写真の影響を抑えて瞬時に読めるようにする。 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.55);
}
.genre-block-clean .top3-ai {
  background: none;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}
.genre-block-clean .top3-maps-link {
  font-weight: 500;
}

ol.top3-list li:first-child { border-top: none; }

/* 順位表記: 「1」→「1位」(ja) / 「#1」(en)。数値そのもの(loop.index)はテンプレート側で
   変更せず、表示のみCSSの擬似要素で統一する。 */
html[lang="ja"] .rank::after,
html[lang="ja"] .rank-badge::after {
  content: "位";
  margin-left: 1px;
}
html[lang="en"] .rank::before,
html[lang="en"] .rank-badge::before {
  content: "#";
  margin-right: 1px;
}

ol.top3-list .rank {
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

ol.top3-list li:first-child .rank {
  background: linear-gradient(145deg, #f0c260, var(--gold));
  color: #4a3600;
}
ol.top3-list li:nth-child(2) .rank {
  background: linear-gradient(145deg, #d9d5e2, var(--silver));
  color: #3a3648;
}
ol.top3-list li:nth-child(3) .rank {
  background: linear-gradient(145deg, #c99b71, var(--bronze));
  color: #402d1c;
}

/* 1〜3位バッジ画像（ja版のみ。画像に「1位」等の文字が焼き込まれているため、
   テキスト・「位」擬似要素はcolor:transparentで見た目上のみ非表示にする） */
html[lang="ja"] ol.top3-list li:first-child .rank,
html[lang="ja"] ol.top3-list li:nth-child(2) .rank,
html[lang="ja"] ol.top3-list li:nth-child(3) .rank,
html[lang="ja"] table.data-table tbody tr:nth-child(1) .rank-badge,
html[lang="ja"] table.data-table tbody tr:nth-child(2) .rank-badge,
html[lang="ja"] table.data-table tbody tr:nth-child(3) .rank-badge {
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: none;
  color: transparent;
  border-radius: 0;
  padding: 0;
}
html[lang="ja"] ol.top3-list li:first-child .rank,
html[lang="ja"] table.data-table tbody tr:nth-child(1) .rank-badge {
  background-image: url('images/badges/rank-1.png');
}
html[lang="ja"] ol.top3-list li:nth-child(2) .rank,
html[lang="ja"] table.data-table tbody tr:nth-child(2) .rank-badge {
  background-image: url('images/badges/rank-2.png');
}
html[lang="ja"] ol.top3-list li:nth-child(3) .rank,
html[lang="ja"] table.data-table tbody tr:nth-child(3) .rank-badge {
  background-image: url('images/badges/rank-3.png');
}
html[lang="ja"] ol.top3-list li:first-child .rank,
html[lang="ja"] ol.top3-list li:nth-child(2) .rank,
html[lang="ja"] ol.top3-list li:nth-child(3) .rank {
  min-width: 0;
  width: 38px;
  height: 23px;
}
html[lang="ja"] table.data-table tbody tr:nth-child(1) .rank-badge,
html[lang="ja"] table.data-table tbody tr:nth-child(2) .rank-badge,
html[lang="ja"] table.data-table tbody tr:nth-child(3) .rank-badge {
  min-width: 0;
  width: 52px;
  height: 32px;
}

ol.top3-list .name a,
table.data-table td a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--text-sub);
}

ol.top3-list .name a:hover,
ol.top3-list .name a:active,
ol.top3-list .name a:visited,
table.data-table td a:hover,
table.data-table td a:active,
table.data-table td a:visited {
  color: inherit;
  border-bottom-color: var(--text-sub);
}

ol.top3-list .name {
  flex: 1;
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

ol.top3-list .score {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-sub);
}

.trending-section {
  background: linear-gradient(135deg, #2a2320, #40332c);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 36px;
  color: #f3ece3;
}

.trending-section .section-title {
  color: #fff;
  border-left-color: #e8905a;
  margin: 0 0 14px;
}

ol.trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.trending-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

ol.trending-list li:first-child { border-top: none; }

ol.trending-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

ol.trending-list .rank {
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: 999px;
  background: #e8905a;
  color: #2a2320;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.trending-list .name-genre {
  flex: 1;
  min-width: 0;
}

ol.trending-list .shop-name {
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

ol.trending-list .shop-genre {
  font-size: 0.7rem;
  color: #cfc3b8;
}

ol.trending-list .change {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #f3ece3;
  text-align: right;
}

ol.trending-list .change .arrow {
  color: #6fce8f;
  font-weight: 700;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
  /* カード間の隙間からbodyのsinnhaikeiが透けて見えるよう、bodyと同じ画像・
     位置・サイズをbackground-attachment: fixedで揃える（viewport基準の座標に
     なるため、mainの不透明背景に隠れず、左右余白と隙間の模様が連続して見える） */
  background-color: #f8f4ed;
  background-image: url('images/bg/wallpaper.webp');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: min(1600px, 100%) auto;
  background-attachment: fixed;
}

.favorite-badge {
  display: inline-block;
  background: #f4c94b;
  color: #4a3600;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 5px;
  white-space: nowrap;
}

.open-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.open-badge.open {
  background: #dff0e2;
  color: #2a7a3b;
}

.open-badge.closed {
  background: #f2e2e0;
  color: #a13f34;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.area-chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.area-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.area-chip-disabled {
  opacity: 0.5;
  cursor: default;
}

footer {
  text-align: center;
  color: var(--text-sub);
  font-size: 0.76rem;
  padding: 34px 20px 50px;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  line-height: 1.9;
}

footer a { color: var(--text-sub); }
footer a:hover { color: var(--accent); }

/* AI口コミ要約: 本文と同じ流れで置かず、小さなラベル+本文という
   一段弱い補助情報として整理する。 */
.ai-summary {
  display: block;
  font-size: 0.78rem;
  color: #5c554f;
  margin-top: 8px;
  line-height: 1.6;
}

.ai-summary .ai-label {
  display: block;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lux-gold-deep);
  margin-bottom: 3px;
}

.ai-summary .ai-body {
  color: inherit;
}

/* 店舗名をランキングの主役に。タイポグラフィと余白だけで格を出す。 */
.shop-name {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--lux-text);
  line-height: 1.35;
}

.shop-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-sub);
  margin-top: 3px;
}

/* 英語版のみ: 確認済みの英語/ローマ字店舗名（上書きデータがある店舗だけ）。
   日本語店舗名より明確に小さく、弱い色で補助情報として表示する。 */
.shop-name-en {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  margin-top: 2px;
}

.mobile-score {
  display: none;
}

/* 表組み感を弱める: 縦罫線を撤去し、各行を横長のランキングエントリーとして
   flexで組む。薄い横線＋余白で店舗同士を区切る。 */
table.data-table thead { display: none; }
table.data-table, table.data-table tbody, table.data-table tr {
  display: block;
  width: 100%;
}
table.data-table tr {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 6px;
  border-top: 1px solid var(--lux-hairline);
}
table.data-table tbody tr:first-child {
  border-top: none;
}
table.data-table td { display: block; }

table.data-table .rank-cell {
  flex-shrink: 0;
  padding-top: 3px;
  text-align: center;
}

table.data-table .shop-cell { flex: 1; min-width: 0; }
table.data-table .score-cell { flex-shrink: 0; text-align: right; }

.score-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 68px;
}
.score-cell .score-rating {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lux-gold-deep);
}
.score-cell .score-reviews {
  font-size: 0.74rem;
  color: var(--text-sub);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--lux-dark-2);
  color: var(--lux-gold);
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: none;
}

table.data-table tbody tr:nth-child(1) .rank-badge {
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  font-size: 0.9rem;
  background: linear-gradient(145deg, #f0c260, var(--gold));
  color: #4a3600;
}
table.data-table tbody tr:nth-child(2) .rank-badge {
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  font-size: 0.9rem;
  background: linear-gradient(145deg, #d9d5e2, var(--silver));
  color: #3a3648;
}
table.data-table tbody tr:nth-child(3) .rank-badge {
  min-width: 36px;
  height: 30px;
  padding: 0 8px;
  font-size: 0.9rem;
  background: linear-gradient(145deg, #c99b71, var(--bronze));
  color: #402d1c;
}

/* TOP3は通常順位より明確に特別扱い。ただし過剰な装飾はしない。 */
table.data-table tbody tr:nth-child(-n+3) {
  background: linear-gradient(180deg, rgba(201,162,75,0.07), rgba(201,162,75,0.015));
  border-radius: 10px;
  padding-left: 14px;
  padding-right: 14px;
  margin: 0 -14px;
}
table.data-table tbody tr:first-child {
  background: linear-gradient(180deg, rgba(201,162,75,0.14), rgba(201,162,75,0.02));
  border: 1px solid rgba(201,162,75,0.3);
  padding: 24px 14px;
  margin: 0 -15px;
}
table.data-table tbody tr:first-child .shop-name {
  font-size: 1.36rem;
}

.ai-disclaimer {
  font-size: 0.72rem;
  color: var(--text-sub);
  margin: 10px 0 24px;
}

.word-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.word-tag {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 600;
}

.word-tag .count {
  font-size: 0.75rem;
  color: var(--text-sub);
  font-weight: 400;
  margin-left: 4px;
}

.word-note {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.table-scroll {
  overflow-x: visible;
  margin: 6px 0 22px;
}

.table-scroll table.data-table {
  margin: 0;
  min-width: 0;
}

/* ===== UI/UXモダン化: スクロールreveal・hover演出・ヒーローfade-in ===== */

/* スクロールreveal。JSが.reveal-activeを付与した場合のみ効く
   (progressive enhancement: JS未実行時は常に表示のまま) */
body.reveal-active .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}
body.reveal-active .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
body.reveal-active .genre-grid .reveal:nth-child(2) { transition-delay: 60ms; }
body.reveal-active .genre-grid .reveal:nth-child(3) { transition-delay: 120ms; }
body.reveal-active .genre-grid .reveal:nth-child(4) { transition-delay: 180ms; }
body.reveal-active .genre-grid .reveal:nth-child(n+5) { transition-delay: 220ms; }

/* ヒーローの要素を軽くfade-in（スクロール非依存、読み込み時に一度だけ） */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-kicker, .hero-headline, .hero-note, .hero-sub, .hero-updated {
  animation: heroFadeIn 600ms ease both;
}
.hero-kicker { animation-delay: 0ms; }
.hero-headline { animation-delay: 90ms; }
.hero-note { animation-delay: 180ms; }
.hero-sub { animation-delay: 270ms; }
.hero-updated { animation-delay: 360ms; }

/* カード・リンクのhover演出はマウス操作可能な環境のみ（タッチのタップ残り防止） */
@media (hover: hover) and (pointer: fine) {
  .genre-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  .genre-block-photo:hover {
    transform: translateY(-3px) scale(1.015);
  }
  ol.top3-list li:first-child:hover .rank,
  table.data-table tbody tr:first-child:hover .rank-badge {
    box-shadow: 0 0 10px 2px rgba(240, 194, 96, 0.55);
  }
  table.data-table tbody tr:hover .shop-name a {
    color: var(--accent-strong);
  }
}

.genre-block { transition: box-shadow 0.2s ease, transform 0.2s ease; }
table.data-table tbody tr { transition: background 0.15s ease; }
.genre-more, .area-chip { transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease; }
.genre-more:hover { transform: translateX(2px); }

/* 動きを減らす設定のユーザーには演出を無効化 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body.reveal-active .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  /* ベース: 本文16px、補足14px、を下限に、情報階層は維持したまま全体を拡大 */

  /* ジャンルクイックナビ: 横スクロールをやめ、グリッドで折り返して
     文字を大きく読みやすくする（15項目を5列×3行で表示、スクロール不要）。 */
  .genre-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    overflow-x: visible;
    padding: 4px 0 14px;
  }
  .genre-nav a {
    width: auto;
    font-size: 2rem;
    padding: 10px 4px 8px;
  }
  .genre-nav a span {
    font-size: 0.82rem;
    line-height: 1.2;
  }

  /* スマホもsinnhaikei適用。PCよりさらに薄く見せるため、模様の上に
     ほぼ不透明なアイボリーのグラデーション層を重ねて濃度を落とす。
     mainは白カード自体ではなく余白部分なので、ここだけ透過させて
     bodyの壁紙を覗かせる（個々のカードのbackground-colorは別途指定済みで維持される）。 */
  body {
    background-image:
      linear-gradient(rgba(248, 244, 237, 0.88), rgba(248, 244, 237, 0.88)),
      url('images/bg/wallpaper.webp');
    background-repeat: no-repeat, repeat-y;
    background-position: top center, top center;
    background-size: auto, min(1600px, 100%) auto;
    /* background-attachment:fixed はモバイルブラウザで描画されないことが多いため、
       スマホでは通常のscrollに戻す（左右余白が無くPC側との位置合わせも不要）。 */
    background-attachment: scroll;
  }
  main { background-color: transparent; }
  .genre-grid {
    background-color: transparent;
    background-image:
      linear-gradient(rgba(248, 244, 237, 0.88), rgba(248, 244, 237, 0.88)),
      url('images/bg/wallpaper.webp');
    background-repeat: no-repeat, repeat-y;
    background-position: top center, top center;
    background-size: auto, min(1600px, 100%) auto;
    background-attachment: scroll;
  }

  header.site-header { padding: 12px 16px; }
  .site-header .logo { font-size: 1.35rem; }
  .site-header nav a { margin-left: 12px; font-size: 0.9rem; }
  .lang-switch { padding: 5px 12px !important; }

  .hero { padding: 22px 16px 26px; }
  .hero-kicker { font-size: 0.9rem; }
  .hero-headline { font-size: 1.5rem; }
  .hero-note { font-size: 1rem; }
  .hero-sub { font-size: 0.94rem; }
  .hero-updated { font-size: 0.88rem; }

  main { padding: 20px 16px 48px; }

  .section-title { font-size: 1.3rem; margin: 26px 0 14px; }
  .hof-label { font-size: 0.72rem; }

  .genre-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .trending-section { padding: 14px 16px; }
  ol.trending-list .shop-name { font-size: 1rem; }
  ol.trending-list .shop-genre { font-size: 0.85rem; }
  ol.trending-list .change { font-size: 0.9rem; }
  .area-chip { font-size: 0.94rem; padding: 8px 15px; }
  .related-links-title { font-size: 1rem; }
  .related-links-nav a { font-size: 0.9rem; padding: 7px 15px; }

  .genre-block { padding: 18px 16px; }
  .genre-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .genre-block-photo .genre-block-header {
    margin: -18px -16px 14px;
    padding: 12px 16px 10px;
  }
  .genre-block-header h2 { flex-wrap: wrap; font-size: 1.3rem; }
  .genre-block-header h2.genre-title-fancy { font-size: 1.7rem; }
  .genre-block-header .tag { font-size: 0.85rem; }
  .genre-more { font-size: 1.05rem; padding: 9px 16px; }

  /* モバイルのランキングカード文字サイズ: 従来の約1.5倍を基準に拡大。
     店舗名を1行で省略しないよう、[順位+店舗名]の1段目と[評価・口コミ数]の
     2段目に分け、店舗名の横幅を最大限確保する（優先順位: 順位＞店舗名＞評価）。 */
  ol.top3-list li { font-size: 1.55rem; gap: 8px 10px; padding: 13px 0; flex-wrap: wrap; }
  ol.top3-list .rank { min-width: 38px; height: 34px; padding: 0 10px; font-size: 1.2rem; }
  /* 店舗名は原則1行固定。折り返す代わりにJS(fitTop3Names)がフォントサイズを
     段階的に縮小して1行に収める（省略記号は使わない）。 */
  ol.top3-list .name {
    display: block;
    font-size: inherit;
    font-weight: normal;
    line-height: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  ol.top3-list .name .favorite-badge {
    display: block;
    width: fit-content;
    white-space: nowrap;
    margin: 3px 0 0;
  }
  ol.top3-list .score {
    flex-basis: 100%;
    font-size: 0.8rem;
    margin-top: 2px;
    white-space: normal;
  }
  .genre-block-photo ol.top3-list .score { padding: 2px 6px; }
  .favorite-badge { font-size: 1rem; padding: 4px 10px; margin-left: 6px; }
  .genre-more { white-space: normal; }

  /* TOP3カードのAI口コミ要約: スマホでは評価点はそのまま、AI要約とGoogleマップ
     リンクだけ読みやすいサイズに拡大（試作: 豚丼のみ）。 */
  .top3-ai-label { font-size: 1.1rem; font-weight: 600; }
  .top3-ai-body { font-size: 1.15rem; line-height: 1.75; }
  .top3-maps-link { font-size: 1.1rem; }

  /* 1〜3位バッジ画像もカード拡大に合わせて一回り大きく */
  html[lang="ja"] ol.top3-list li:first-child .rank,
  html[lang="ja"] ol.top3-list li:nth-child(2) .rank,
  html[lang="ja"] ol.top3-list li:nth-child(3) .rank {
    width: 52px;
    height: 31px;
  }

  /* 帯広名物: 2列グリッドはやめ、他ジャンルと同じ1列・2段構成に統一 */
  .meibutsu-block ol.top3-list {
    display: block;
  }

  article.post { padding: 20px 16px 26px; }
  article.post-ranking .tag { font-size: 0.62rem; padding: 16px 16px 2px; margin: -20px -16px 0; }
  article.post-ranking h1 { font-size: 1.32rem; margin: 0 -16px; padding: 6px 16px 4px; }
  article.post-ranking .h1-sub { font-size: 0.82rem; margin: 0 -16px 20px; padding: 0 16px 18px; }
  article.post:not(.post-ranking) h1 { font-size: 1.5rem; }
  article.post:not(.post-ranking) .h1-sub { font-size: 0.9rem; }
  article.post:not(.post-ranking) .tag { font-size: 0.85rem; }
  .ranking-section-head h2 { font-size: 1.25rem; }
  .genre-intro { font-size: 0.95rem; max-width: none; }
  article.post:not(.post-ranking) h2 { font-size: 1.3rem; }
  article.post .thumb-large { height: 170px; }
  .lede { font-size: 1.0625rem; line-height: 1.8; padding: 14px 16px; }
  .post-meta { font-size: 0.95rem; line-height: 1.7; }

  /* 表: スマホでは列ごとの横スクロールを禁止し、1行=1カードとして縦積みにする。
     SafariはTR/TDへのdisplay:flexが不安定(既知のWebKit不具合)なため、
     block/inline-blockのみで組む。DOM順が既に「順位→店舗名→補足情報」の
     表示順と一致しているため、並べ替え(order)は使わない。既にスマホ側で
     問題のない店舗名サイズ等は、ここでは変更しない。 */
  .table-scroll { overflow-x: visible; margin: 10px 0 20px; }
  .table-scroll table.data-table { min-width: 0; }
  table.data-table { font-size: 1rem; width: 100%; }
  table.data-table tr {
    display: block;
    padding: 16px 4px;
    border: none;
    border-bottom: 1px solid var(--lux-hairline);
  }
  table.data-table tbody tr:nth-child(-n+3) {
    margin: 0;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px;
  }
  table.data-table tbody tr:first-child {
    margin: 0 0 4px;
    padding: 18px 10px;
  }
  table.data-table td { display: block; border: none; padding: 0 !important; word-break: break-word; }
  table.data-table td.rank-cell {
    display: inline-block;
    width: auto;
    margin-bottom: 6px;
  }
  .rank-badge { min-width: 38px; height: 30px; padding: 0 8px; font-size: 1rem; }
  table.data-table tbody tr:nth-child(1) .rank-badge,
  table.data-table tbody tr:nth-child(2) .rank-badge,
  table.data-table tbody tr:nth-child(3) .rank-badge {
    min-width: 44px;
    height: 34px;
    padding: 0 9px;
    font-size: 1.1rem;
  }
  table.data-table td.shop-cell { display: block; width: 100%; }

  /* 店舗名を最優先の情報として強調（サイズは既存のスマホ表示を維持）。 */
  .shop-name { font-size: 1.4rem; font-weight: 700; line-height: 1.35; }
  .shop-sub { font-size: 0.85rem; margin-top: 4px; }
  /* 殿堂入りバッジが店舗名と同じ行で幅を奪わないよう、テーブル内では
     バッジを独立した行に。店舗名自体の1行化はJS(fitShopNames)で調整する。 */
  table.data-table .shop-name .favorite-badge {
    display: block;
    width: fit-content;
    margin: 4px 0 0;
  }

  table.data-table td.score-cell {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    text-align: left;
    margin: 8px 0 0;
    min-width: 0;
  }
  .score-cell .score-rating { font-size: 0.98rem; }
  .score-cell .score-reviews { font-size: 0.85rem; }

  .ai-summary { margin-top: 10px; }
  .ai-summary .ai-label {
    font-size: 0.7rem;
  }
  .ai-summary .ai-body {
    display: block;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
  }
  .ai-disclaimer { font-size: 0.88rem; line-height: 1.7; }
  .source-list { font-size: 0.9rem; }
  .source-list a { font-size: inherit; }
  .back-link { font-size: 0.95rem; }
  .breadcrumb { font-size: 0.85rem; }

  .open-badge { font-size: 0.85rem; }
  footer { font-size: 0.85rem; }
}
