/* ==========================================================================
   バイクまとめ - WordPress theme base stylesheet
   ========================================================================== */

/* ---------- 1. Design tokens ----------
   Theme: Moto News Standard
   バイク大手メディアで見る典型パターン:
   - 本文エリア: 薄いクールグレー + 白カード
   - Chrome (ヘッダー/フッター/ナビ): ニアブラック
   - アクセント: 赤1色 (バッジ・タグ・セクションバー・CTA)
   - 青は使わない。メタ・スペックタグはクールグレーで中立化
--------------------------------------- */
:root {
  /* Chrome (旧 navy 系名義 — 互換性のため変数名は残す) */
  --c-navy-900: #16181c;     /* near-black: header / footer / dark chrome */
  --c-navy-800: #232529;     /* breaking bar / second-darkest */
  --c-navy-700: #34373d;     /* dark slate */

  /* Brand accent (旧 blue 系名義 = 赤に統一) */
  --c-blue-600: #d61f1f;     /* primary signal red (logo, badges, section bar) */
  --c-blue-500: #e84545;     /* hover / light variant */
  --c-blue-100: #fde9e9;     /* very light red tint for spec/tag bg */
  --c-blue-50:  #fef5f5;     /* paper-tint red */

  /* Neutrals — コンテンツエリアはクールグレー/白 */
  --c-ink:      #15161a;     /* main text, near-black */
  --c-ink-2:    #4d5058;     /* sub text */
  --c-ink-3:    #8a8d94;     /* meta text */
  --c-line:     #e3e3e6;     /* card border */
  --c-line-2:   #ededf0;     /* divider */
  --c-bg:       #f4f4f6;     /* body bg — 中立な薄クールグレー */
  --c-card:     #ffffff;

  /* Accents (used sparingly) */
  --c-alert:    #a31515;     /* recall / law / important */
  --c-amber:    #f5a623;
  --c-green:    #1d8a5a;

  /* Type */
  --ff-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "SFMono-Regular", "Menlo", "Consolas", monospace;

  /* Layout */
  --container: 1180px;
  --gap: 24px;
  --radius: 4px;             /* news-mediaらしいシャープな角 */
  --radius-lg: 6px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 16, 20, 0.05);
  --shadow:    0 3px 12px rgba(15, 16, 20, 0.08);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.4; font-weight: 700; color: var(--c-ink); }

/* ---------- 3. Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
.l-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  padding: 28px 0 60px;
}
@media (min-width: 960px) {
  .l-main {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    padding: 36px 0 80px;
  }
}
.l-content { min-width: 0; }
.l-sidebar { min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- 4. Header ---------- */
.site-header {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--c-navy-900);
}
.site-logo:hover { text-decoration: none; }
.site-logo__mark {
  width: 34px; height: 34px;
  border-radius: 3px;
  background: var(--c-blue-600);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.site-logo__sub {
  font-size: 11px;
  color: var(--c-ink-3);
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-left: 2px;
  display: none;
}
@media (min-width: 720px) { .site-logo__sub { display: inline; } }

.search-box {
  flex: 1;
  display: flex;
  max-width: 460px;
  margin-left: auto;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  overflow: hidden;
  height: 38px;
}
.search-box input {
  border: 0; outline: 0; background: transparent;
  flex: 1;
  padding: 0 14px;
  font-size: 14px;
  color: var(--c-ink);
  min-width: 0;
}
.search-box button {
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--c-navy-700);
  font-weight: 700;
  font-size: 13px;
}
.search-box button:hover { color: var(--c-blue-600); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px; height: 38px;
  border: 1px solid var(--c-line);
  background: var(--c-card);
  border-radius: 8px;
  padding: 0 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--c-navy-800);
  border-radius: 2px;
}
@media (min-width: 720px) { .menu-toggle { display: none; } }

/* Global nav */
.global-nav { background: var(--c-navy-900); }
.global-nav a {
  color: rgba(255,255,255,0.78);
}
.global-nav a:hover {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--c-blue-600);
}
.global-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--c-blue-600);
}
.global-nav__inner { display: flex; gap: 4px; overflow-x: auto; }
.global-nav a {
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  display: inline-block;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.global-nav a:hover {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--c-blue-600);
}
.global-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--c-blue-600);
}

/* Breaking bar */
/* Breaking bar */
.breaking-bar {
  background: var(--c-navy-800);
  color: #fff;
  font-size: 13px;
}
.breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.breaking-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--c-alert);
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.breaking-bar__label::before {
  content: "";
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.breaking-bar__list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.breaking-bar__list::-webkit-scrollbar { display: none; }
.breaking-bar__list a {
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  font-size: 13px;
}
.breaking-bar__list a:hover { color: var(--c-amber); text-decoration: none; }
.breaking-bar__time {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  margin-right: 6px;
  font-family: var(--ff-mono);
}

/* ---------- 5. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 36px;
}
@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
  }
}
.hero-main {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-navy-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-main .ph,
.hero-sub .ph {
  position: absolute; inset: 0;
}
.hero-main__overlay {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(8,18,40,0.92) 10%, rgba(8,18,40,0.35) 55%, rgba(8,18,40,0) 100%);
}
.hero-main__cat {
  display: inline-block;
  background: var(--c-blue-600);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.hero-main__title {
  font-size: 20px;
  line-height: 1.4;
  text-wrap: balance;
  color: #fff;
}
@media (min-width: 760px) { .hero-main__title { font-size: 26px; } .hero-main { min-height: 380px; } }
.hero-main__meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  margin-top: 10px;
  font-family: var(--ff-mono);
}

.hero-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 760px) {
  .hero-subs { grid-template-columns: 1fr; }
}
.hero-sub {
  position: relative;
  min-height: 130px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-navy-700);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-sub__overlay {
  position: relative; z-index: 2;
  padding: 14px;
  background: linear-gradient(to top, rgba(8,18,40,0.9) 15%, rgba(8,18,40,0) 90%);
}
.hero-sub__cat {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.hero-sub__title {
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  text-wrap: balance;
}
@media (min-width: 760px) { .hero-sub__title { font-size: 14.5px; } }

/* ---------- 6. Image placeholders ----------
   画像がない投稿でもレイアウトが崩れないよう、
   ダークグレーのグラデーションを代わりに表示。
--------------------------------------------- */
.ph {
  background: linear-gradient(135deg, #232529 0%, #34373d 50%, #16181c 100%);
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0 1px,
      transparent 1px 22px
    );
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ph--light {
  background: linear-gradient(135deg, #ebebee 0%, #d6d6da 100%);
}
.ph--light::after { color: rgba(20,20,25,0.45); }
.ph--gray {
  background: linear-gradient(135deg, #efefef 0%, #d8d8dc 100%);
}
.ph--gray::after { color: rgba(20,20,25,0.5); }
.ph--alt {
  background: linear-gradient(125deg, #1a1c20 0%, #34373d 40%, var(--c-blue-600) 100%);
}
.ph--alt::after { color: rgba(255,255,255,0.65); }

/* ---------- 7. Section ---------- */
.section {
  margin-bottom: 44px;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 10px;
}
.section__title {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section__title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: var(--c-blue-600);
  border-radius: 0;
}
.section__title small {
  font-size: 11px;
  color: var(--c-ink-3);
  font-weight: 500;
  letter-spacing: 0.1em;
  font-family: var(--ff-mono);
}
.section__more {
  font-size: 13px;
  color: var(--c-blue-600);
  font-weight: 600;
  white-space: nowrap;
}
.section__more::after { content: " →"; }

/* ---------- 8. News card ---------- */
.news-list { display: grid; gap: 14px; }
.news-list--grid {
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .news-list--grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (min-width: 960px) {
  .news-list--grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card-news {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-news:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--c-line);
}
.card-news__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.card-news__link:hover { text-decoration: none; color: inherit; }
.card-news__media {
  position: relative;
  aspect-ratio: 16 / 9;
}
.card-news__image { position: absolute; inset: 0; }
.card-news__cat {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: rgba(22,24,28,0.92);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.06em;
}
.card-news__cat--alert { background: var(--c-alert); }
.card-news__cat--official { background: var(--c-blue-600); }
.card-news__cat--global { background: var(--c-navy-700); }
.card-news__cat--feature { background: var(--c-amber); color: var(--c-navy-900); }
.card-news__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-news__title {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--c-ink);
  text-wrap: pretty;
  font-weight: 700;
}
.card-news:hover .card-news__title { color: var(--c-blue-600); }
.card-news__meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--c-ink-3);
  font-family: var(--ff-mono);
  margin-top: auto;
}

/* Compact horizontal news row */
.news-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.news-row a {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--c-line-2);
  color: var(--c-ink);
}
.news-row a:last-child { border-bottom: 0; }
.news-row a:hover { text-decoration: none; background: var(--c-bg); }
.news-row__media {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.news-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-row__title {
  font-size: 13.5px;
  line-height: 1.45;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-row__meta {
  font-size: 11px;
  color: var(--c-ink-3);
  font-family: var(--ff-mono);
  display: flex;
  gap: 8px;
}
.news-row__cat {
  font-size: 10px;
  background: var(--c-blue-600);
  color: #fff;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
}

/* ---------- 9. Bike model card ---------- */
.bike-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) { .bike-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1000px) { .bike-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.card-bike {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card-bike:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--c-line);
}
.card-bike__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.card-bike__link:hover { text-decoration: none; color: inherit; }
.card-bike__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-bg);
}
.card-bike__image { position: absolute; inset: 0; }
.card-bike__badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--c-blue-600);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card-bike__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-bike__maker {
  font-size: 11px;
  color: var(--c-ink-3);
  font-family: var(--ff-mono);
  letter-spacing: 0.05em;
}
.card-bike__name {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--c-ink);
}
.card-bike:hover .card-bike__name { color: var(--c-blue-600); }
.card-bike__specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-bike__spec {
  font-size: 10.5px;
  background: var(--c-bg);
  color: var(--c-ink-2);
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 600;
}
/* legacy fallback for any .card-bike__specs > span */
.card-bike__specs > span {
  font-size: 10.5px;
  background: var(--c-bg);
  color: var(--c-ink-2);
  padding: 2px 7px;
  border-radius: 2px;
  font-weight: 600;
}

/* ---------- 10. Maker nav ---------- */
.maker-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 560px) { .maker-nav { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .maker-nav { grid-template-columns: repeat(6, 1fr); } }

.maker-nav a {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.maker-nav a:hover {
  border-color: var(--c-blue-600);
  color: var(--c-blue-600);
  text-decoration: none;
  background: var(--c-card);
}
.maker-nav__logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-navy-900);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.maker-nav__sub {
  font-size: 10px;
  color: var(--c-ink-3);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-family: var(--ff-mono);
}

/* ---------- 11. Displacement nav ---------- */
.cc-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 560px) { .cc-nav { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .cc-nav { grid-template-columns: repeat(6, 1fr); } }

.cc-nav a {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.15s ease;
}
.cc-nav a:hover {
  border-color: var(--c-blue-600);
  background: var(--c-card);
  text-decoration: none;
}
.cc-nav__num {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-ink);
  font-family: var(--ff-mono);
}
.cc-nav__num small {
  font-size: 11px;
  color: var(--c-ink-3);
  font-weight: 500;
  margin-left: 2px;
}
.cc-nav__label {
  font-size: 11px;
  color: var(--c-ink-2);
  font-weight: 600;
}

/* ---------- 12. CTA blocks (compare / beginner) ---------- */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .cta-grid { grid-template-columns: 1fr 1fr; } }

.cta-block {
  border-radius: var(--radius-lg);
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  min-height: 150px;
}
.cta-block--compare { background: linear-gradient(125deg, var(--c-navy-900) 0%, #34373d 55%, var(--c-blue-600) 100%); }
.cta-block--beginner { background: linear-gradient(125deg, #2a2d34 0%, #4a4e57 100%); }
.cta-block--beginner .cta-block__eyebrow { color: rgba(255,255,255,0.7); }
.cta-block__eyebrow {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-family: var(--ff-mono);
  font-weight: 600;
}
.cta-block__title {
  font-size: 19px;
  color: #fff;
  line-height: 1.4;
}
.cta-block__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.cta-block__link {
  margin-top: auto;
  align-self: flex-start;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.cta-block__link:hover { background: rgba(255,255,255,0.25); text-decoration: none; }

/* ---------- 13. Sidebar widgets ---------- */
.widget {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
}
.widget__title {
  font-size: 13px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-blue-600);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widget__title small {
  font-size: 10px;
  color: var(--c-ink-3);
  font-weight: 500;
  font-family: var(--ff-mono);
  letter-spacing: 0.08em;
}

/* Ranking widget */
.ranking { display: flex; flex-direction: column; gap: 10px; }
.ranking li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; }
.ranking__rank {
  font-family: var(--ff-mono);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--c-ink-3);
}
.ranking li:nth-child(1) .ranking__rank { color: var(--c-amber); }
.ranking li:nth-child(2) .ranking__rank { color: #9aa6b8; }
.ranking li:nth-child(3) .ranking__rank { color: #c89060; }
.ranking__body { display: flex; flex-direction: column; gap: 2px; }
.ranking__title {
  font-size: 13px;
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.4;
}
.ranking__meta {
  font-size: 11px;
  color: var(--c-ink-3);
  font-family: var(--ff-mono);
}

/* Tag widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--c-bg);
  color: var(--c-ink-2);
  border-radius: 999px;
  border: 1px solid var(--c-line);
}
.tag-cloud a:hover { background: var(--c-blue-50); color: var(--c-blue-600); border-color: #f5cfcf; text-decoration: none; }

/* ---------- 14. Ad slot (template-parts/ad.php) ---------- */
.ad-slot {
  background: var(--c-card);
  border: 1px dashed var(--c-line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--c-ink-3);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  text-align: center;
  line-height: 1.5;
}
.ad-slot::before {
  content: "AD";
  position: absolute;
  top: 6px; left: 6px;
  font-size: 9px;
  background: var(--c-line);
  color: var(--c-ink-3);
  padding: 1px 5px;
  border-radius: 2px;
}
.ad-slot--rect    { aspect-ratio: 300 / 250; }
.ad-slot--wide    { min-height: 90px;  padding: 28px 16px; }
.ad-slot--inline  { min-height: 120px; padding: 28px 16px; margin: 28px 0; }
.ad-slot--footer  { min-height: 90px;  padding: 24px 16px; margin: 24px 0 0; }

/* ---------- 15. Filter bar (archive) ---------- */
.filter-bar {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.filter-row {
  display: grid;
  gap: 12px;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-group__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-ink-2);
  letter-spacing: 0.08em;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--c-line);
  background: var(--c-bg);
  border-radius: 999px;
  color: var(--c-ink-2);
  cursor: pointer;
  transition: all 0.12s ease;
  font-weight: 500;
}
.chip:hover { border-color: var(--c-blue-500); color: var(--c-blue-600); }
.chip.is-active {
  background: var(--c-blue-600);
  border-color: var(--c-blue-600);
  color: #fff;
  font-weight: 700;
}

/* ---------- 16. Page header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--c-navy-900) 0%, var(--c-navy-800) 100%);
  color: #fff;
  padding: 32px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--c-blue-600);
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px);
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 24px);
  pointer-events: none;
}
.page-header__crumbs {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  font-family: var(--ff-mono);
}
.page-header__crumbs a { color: rgba(255,255,255,0.85); }
.page-header__title {
  font-size: 24px;
  color: #fff;
  letter-spacing: 0.02em;
}
@media (min-width: 720px) { .page-header__title { font-size: 28px; } }
.page-header__desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  max-width: 720px;
}

/* ---------- 17. Empty state ---------- */
.empty-state {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--c-ink-2);
}
.empty-state__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-bg);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  color: var(--c-ink-3);
  font-size: 22px;
}
.empty-state__title {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--c-ink);
}
.empty-state__desc { font-size: 13px; color: var(--c-ink-3); }

/* ---------- 18. Single bike model ---------- */
.bike-hero {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
@media (min-width: 760px) { .bike-hero { grid-template-columns: 1.1fr 1fr; } }
.bike-hero__media { aspect-ratio: 4 / 3; position: relative; }
.bike-hero__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bike-hero__maker {
  display: inline-block;
  font-size: 11px;
  color: var(--c-ink-3);
  letter-spacing: 0.15em;
  font-weight: 600;
}
.bike-hero__title { font-size: 22px; line-height: 1.3; }
@media (min-width: 760px) { .bike-hero__title { font-size: 26px; } }
.bike-hero__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bike-hero__tags span {
  font-size: 11px;
  background: var(--c-bg);
  color: var(--c-ink-2);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
}
.bike-hero__lead {
  font-size: 13.5px;
  color: var(--c-ink-2);
  line-height: 1.8;
}

.bike-section {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.bike-section__head {
  font-size: 15px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bike-section__head::before {
  content: "";
  width: 3px; height: 14px;
  background: var(--c-blue-600);
  border-radius: 2px;
}
.bike-section p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.85; color: var(--c-ink-2); }

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.spec-table th, .spec-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--c-line-2);
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  background: var(--c-bg);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 12.5px;
  border-left: 3px solid var(--c-blue-600);
}
.spec-table td { color: var(--c-ink); font-family: var(--ff-mono); }
.spec-table td .muted { color: var(--c-ink-3); font-family: var(--ff-sans); font-size: 12px; }

/* Feature list */
.feature-list { display: grid; gap: 10px; margin: 0; }
@media (min-width: 600px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-blue-600);
  padding: 10px 14px;
  border-radius: 0 3px 3px 0;
  font-size: 13px;
  color: var(--c-ink);
}

/* Note (caution / source) */
.note {
  font-size: 12px;
  background: #fff8e6;
  border: 1px solid #f3deaa;
  color: #6b4f00;
  padding: 12px 14px;
  border-radius: var(--radius);
  line-height: 1.7;
}
.note--quiet {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  color: var(--c-ink-3);
}

/* Compare row */
.compare-list { display: flex; flex-direction: column; gap: 10px; }
.compare-list a {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink);
  background: var(--c-card);
}
.compare-list a:hover { border-color: var(--c-blue-500); text-decoration: none; background: var(--c-blue-50); }
.compare-list__media { aspect-ratio: 1; border-radius: 4px; overflow: hidden; position: relative; }
.compare-list__body { min-width: 0; }
.compare-list__name { font-size: 13px; font-weight: 700; line-height: 1.4; }
.compare-list__meta { font-size: 11px; color: var(--c-ink-3); font-family: var(--ff-mono); }
.compare-list__arrow { color: var(--c-ink-3); font-weight: 700; }

/* ---------- 19. Characters page ---------- */
.character-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) { .character-list { grid-template-columns: 1fr 1fr; } }

.character-card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 110px 1fr;
}
@media (min-width: 540px) { .character-card { grid-template-columns: 140px 1fr; } }
.character-card__avatar {
  position: relative;
  background: linear-gradient(160deg, var(--c-navy-800), var(--c-blue-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.character-card__avatar::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.07) 0 1px, transparent 1px 14px);
}
.character-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.character-card__name { font-size: 17px; }
.character-card__role {
  font-size: 11px;
  color: var(--c-blue-600);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.character-card__desc { font-size: 13px; color: var(--c-ink-2); line-height: 1.75; margin: 4px 0 0; }
.character-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.character-card__tags span {
  font-size: 10.5px;
  background: var(--c-bg);
  color: var(--c-ink-2);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--c-line);
}

/* ---------- 20. Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-2);
  padding: 0 10px;
  font-family: var(--ff-mono);
}
.pagination a:hover { border-color: var(--c-blue-500); color: var(--c-blue-600); text-decoration: none; }
.pagination .is-current { background: var(--c-blue-600); border-color: var(--c-blue-600); color: #fff; }

/* ---------- 21. Footer ---------- */
.site-footer {
  background: var(--c-navy-900);
  color: rgba(255,255,255,0.78);
  padding: 40px 0 24px;
  margin-top: 60px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; } }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.site-footer ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: rgba(255,255,255,0.78); font-size: 13px; }
.site-footer a:hover { color: var(--c-amber); text-decoration: none; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.site-footer__about { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.66); }
.site-footer__logo {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* ---------- 22. Utilities ---------- */
.u-flex { display: flex; }
.u-stack { display: flex; flex-direction: column; }
.u-gap-sm { gap: 8px; }
.u-gap-md { gap: 16px; }
.u-mt-md { margin-top: 16px; }
.u-mb-md { margin-bottom: 16px; }
.u-mb-lg { margin-bottom: 28px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ---------- 23. Genre Section ---------- */
.genre-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: stretch;
}

.genre-card {
  flex: 0 1 calc(25% - 15px);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
}

.genre-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #dc3545;
  border-radius: 8px 8px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.genre-card:hover {
  border-color: #dc3545;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
  transform: translateY(-2px);
}

.genre-card:hover::before {
  transform: scaleX(1);
}

.genre-card__icon {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border-radius: 4px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.genre-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.genre-card:hover .genre-card__icon img {
  transform: scale(1.04);
}

.genre-card__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  width: 100%;
  white-space: normal;
}

.genre-card__count {
  display: block;
  font-size: 12px;
  color: #999;
  text-align: center;
  width: 100%;
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
  .genre-strip {
    gap: 12px;
  }

  .genre-card {
    flex: 0 1 calc(50% - 6px);
    min-width: 150px;
    padding: 12px;
    gap: 8px;
  }

  .genre-card__icon {
    font-size: 12px;
  }

  .genre-card__name {
    font-size: 13px;
  }

  .genre-card__count {
    font-size: 11px;
  }
}
