/* =============================================================
   バイクまとめ — トップページ Stylesheet
   WordPressテーマ移植用静的HTMLのスタイル
   ============================================================= */


/* =============================================================
   1. DESIGN TOKENS
   ============================================================= */
:root {
  /* Brand color */
  --color-navy:    #0d1f3c;   /* ヘッダー/セクションラベル背景 */
  --color-blue:    #1547bf;   /* リンク・CTAボタン・アクセント */
  --color-red:     #c41a0e;   /* BREAKING・HOTバッジ・1位 */

  /* Background */
  --color-bg:      #f0f2f5;   /* ページ背景・カードの内側 */
  --color-bg-alt:  #f6f8fb;   /* ヘッダーロゴ列・メーカー導線背景 */
  --color-white:   #ffffff;

  /* Border */
  --color-border:  #e2e5ea;
  --color-divider: rgba(255, 255, 255, 0.08);

  /* Text */
  --color-text:    #0f1923;   /* 本文・タイトル */
  --color-mid:     #2d3748;   /* 通常テキスト・サブテキスト */
  --color-sub:     #586070;   /* 説明文・要約 */
  --color-xs:      #8a95a3;   /* 日付・補足 */

  /* Maker colors */
  --maker-honda:    #cc2200;
  --maker-yamaha:   #1a56c8;
  --maker-suzuki:   #2266c8;
  --maker-kawasaki: #1a7a2e;

  /* Category badge colors */
  --cat-news:     #0e7a60;
  --cat-newmodel: #1547bf;
  --cat-ranking:  #c41a0e;
  --cat-matome:   #b45309;
  --cat-import:   #6b3fa0;
  --cat-compare:  #0369a1;

  /* Typography */
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Barlow Condensed', sans-serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 40px;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 12px;

  /* Layout */
  --content-max: 1280px;
  --sidebar-w:   256px;
}


/* =============================================================
   2. RESET / BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  background: #dde0e6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* サイト全体ラッパー */
.site {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--color-bg);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
}

/* プレースホルダ画像 */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #d4d8df, #d4d8df 6px, #ced3da 6px, #ced3da 12px);
  color: #6b7280;
  font-size: 11px;
  text-align: center;
  white-space: pre-line;
}
.ph--dark {
  background: repeating-linear-gradient(45deg, #2a3344, #2a3344 6px, #232c3c 6px, #232c3c 12px);
  color: rgba(255, 255, 255, 0.4);
}


/* =============================================================
   3. SHARED COMPONENTS
   ============================================================= */

/* --- カテゴリバッジ --- */
.cat-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #555;
  white-space: nowrap;
}
.cat-badge--lg {
  font-size: 10px;
  padding: 3px 8px;
}
.cat-badge[data-cat="news"]     { background: var(--cat-news); }
.cat-badge[data-cat="newmodel"] { background: var(--cat-newmodel); }
.cat-badge[data-cat="ranking"]  { background: var(--cat-ranking); }
.cat-badge[data-cat="matome"]   { background: var(--cat-matome); }
.cat-badge[data-cat="import"]   { background: var(--cat-import); }
.cat-badge[data-cat="compare"]  { background: var(--cat-compare); }

/* --- HOT バッジ --- */
.hot-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--color-red);
  background: #fff0ee;
  border: 1px solid var(--color-red);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

/* --- PICKUPバッジ --- */
.pickup-badge {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: var(--color-red);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* --- セクションタイトル --- */
.section-title {
  display: flex;
  align-items: stretch;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.section-title__label {
  background: var(--color-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
}
.section-title__more {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-blue);
  padding: 6px 0 6px 12px;
  display: flex;
  align-items: center;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  transition: opacity .15s;
}
.btn:hover { opacity: 0.85; }
.btn--primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(21, 71, 191, 0.5);
}
.btn--outline {
  background: transparent;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
  padding: 8px 32px;
}


/* =============================================================
   4. HEADER
   ============================================================= */
.site-header {
  background: var(--color-white);
}

/* ロゴ + 検索 */
.site-header__top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-border);
}
.site-logo {
  display: block;
  line-height: 1;
}
.site-logo__main {
  display: block;
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--color-navy);
}
.site-logo__accent {
  color: var(--color-blue);
}
.site-logo__sub {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--color-sub);
}

/* 検索フォーム */
.search-form {
  display: flex;
  margin-left: auto;
  width: 320px;
  border: 2px solid var(--color-blue);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.search-form__input {
  flex: 1;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--color-sub);
  background: var(--color-white);
  border: none;
  outline: none;
}
.search-form__btn {
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--color-blue);
  border: none;
}

/* グローバルナビ */
.global-nav {
  background: var(--color-navy);
}
.global-nav__list {
  display: flex;
  padding: 0 20px;
  overflow-x: auto;
}
.global-nav__item a {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
  transition: background .15s;
}
.global-nav__item a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.global-nav__item.is-current a {
  background: var(--color-blue);
  color: #fff;
  font-weight: 700;
}

/* ティッカー */
.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 20px;
  background: #192e4a;
  overflow: hidden;
}
.ticker__label {
  flex-shrink: 0;
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--color-red);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}
.ticker__list {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}
.ticker__list li + li::before {
  content: "|";
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.2);
}


/* =============================================================
   5. HERO
   ============================================================= */
.hero {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1px;
  background: var(--color-border);
}

/* メイン記事 */
.hero-main {
  position: relative;
  height: 400px;
  background: var(--color-white);
  overflow: hidden;
}
.hero-main__image { position: absolute; inset: 0; }
.hero-main__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(4, 12, 28, 0.96) 0%,
    rgba(4, 12, 28, 0.55) 50%,
    transparent 100%);
}
.hero-main__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 28px 24px;
}
.hero-main__meta {
  display: flex; gap: 6px;
  margin-bottom: 10px;
  align-items: center;
}
.hero-main__title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  color: #fff;
  max-width: 480px;
  margin-bottom: 8px;
  text-wrap: pretty;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.hero-main__excerpt {
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 460px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-main__cta {
  display: flex; align-items: center; gap: 14px;
}
.hero-main__date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}
.hero-main__dots {
  position: absolute; bottom: 20px; right: 24px;
  display: flex; gap: 5px;
}
.hero-main__dots li {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
}
.hero-main__dots li.is-active { background: #fff; }

/* サブ記事 */
.hero-subs {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--color-border);
}
.hero-sub {
  display: flex;
  flex: 1;
  background: var(--color-white);
  transition: background .15s;
}
.hero-sub:hover { background: var(--color-bg-alt); }
.hero-sub__thumb {
  position: relative;
  flex-shrink: 0;
  width: 110px;
  min-height: 96px;
  overflow: hidden;
}
.hero-sub__thumb .ph { position: absolute; inset: 0; }
.hero-sub__body {
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-sub__meta {
  display: flex; gap: 5px; align-items: center;
  margin-bottom: 5px;
}
.hero-sub__date {
  font-size: 9px;
  color: var(--color-xs);
}
.hero-sub__title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =============================================================
   6. MAKER NAV
   ============================================================= */
.maker-nav {
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-border);
  padding: 16px 20px;
}
.maker-nav__inner {
  display: flex;
  gap: 10px;
  align-items: center;
}
.maker-nav__label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-sub);
  white-space: nowrap;
}

/* メーカーカード */
.maker-card {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: var(--maker-color);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform .16s, box-shadow .16s;
}
.maker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.maker-card__name {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
}
.maker-card__arrow {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* 「全メーカー」カード */
.maker-card--all {
  flex: 0.45;
  background: var(--color-navy);
  border-color: var(--color-navy);
  gap: 6px;
  justify-content: center;
}
.maker-card--all .maker-card__name {
  font-family: var(--font-ja);
  font-size: 10px;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.85);
}
.maker-card__icon { font-size: 16px; }


/* =============================================================
   7. MAIN LAYOUT
   ============================================================= */
.l-main {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
  background: var(--color-bg);
}
.l-content { min-width: 0; }


/* =============================================================
   8. NEWS LIST
   ============================================================= */
.news-list-section { margin-bottom: 20px; }

.news-list {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ニュース1行 */
.news-item {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  transition: background .15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #fafbff; }

/* 上位2件は大きめ */
.news-item--top {
  gap: 16px;
  padding: 16px 14px;
  margin: 0 -14px;
  background: #fafbff;
}
.news-item__thumb {
  flex-shrink: 0;
  width: 104px;
  height: 78px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.news-item--top .news-item__thumb {
  width: 140px;
  height: 105px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.news-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.news-item--top .news-item__body { gap: 6px; }

.news-item__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.news-item__date {
  font-size: 10px;
  color: var(--color-xs);
}
.news-item__title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--color-text);
}
.news-item--top .news-item__title {
  font-size: 14px;
  font-weight: 800;
}
.news-item__excerpt {
  font-size: 11px;
  line-height: 1.72;
  color: var(--color-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item--top .news-item__excerpt {
  font-size: 12px;
  -webkit-line-clamp: 3;
}
.news-item__more {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-blue);
  margin-top: 2px;
}

.news-list__footer {
  text-align: center;
  margin-top: 14px;
}


/* =============================================================
   9. SPECIAL GRID (4列)
   ============================================================= */
.special-section { margin-top: 20px; }

.special-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.special-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
  transition: transform .15s, box-shadow .15s;
}
.special-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.special-card__thumb {
  flex-shrink: 0;
  width: 76px;
  height: 57px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.special-card__body { flex: 1; min-width: 0; }
.special-card__title {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* =============================================================
   10. SIDEBAR
   ============================================================= */
.l-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.widget__title {
  background: var(--color-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 7px 14px;
}

/* ランキングタブ */
.ranking-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}
.ranking-tabs__tab {
  flex: 1;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-mid);
  background: transparent;
  border: none;
  transition: background .15s;
}
.ranking-tabs__tab.is-active {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
}

/* ランキングアイテム */
.ranking-item {
  display: flex;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
  transition: background .12s;
}
.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { background: #f0f4ff; }

.ranking-item__num {
  flex-shrink: 0;
  min-width: 20px;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  color: var(--color-xs);
}
.ranking-item__num--1 { color: var(--color-red); }
.ranking-item__num--2 { color: #c87800; }
.ranking-item__num--3 { color: #888; }

.ranking-item__title {
  font-size: 11px;
  line-height: 1.55;
  color: var(--color-mid);
  margin-bottom: 4px;
}

/* 広告 */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eaee;
  color: var(--color-xs);
  font-family: monospace;
  font-size: 10px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}
.ad-slot--rect { height: 200px; }
.ad-slot--tall { height: 280px; }

/* タグクラウド */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px;
}
.tag-cloud__item {
  font-size: 10.5px;
  padding: 3px 9px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-mid);
  transition: background .15s;
}
.tag-cloud__item:hover {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}


/* =============================================================
   11. FOOTER
   ============================================================= */
.site-footer {
  background: var(--color-navy);
}
.site-footer__inner {
  padding: 28px 20px 16px;
}
.site-footer__columns {
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-divider);
}
.site-logo--footer .site-logo__main {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}
.site-logo--footer .site-logo__accent { color: #4a90d9; }

.site-footer__description {
  font-size: 10.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.42);
}
.site-footer__heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding-bottom: 7px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.site-footer__list li {
  margin-bottom: 7px;
  font-size: 11px;
}
.site-footer__list a {
  color: rgba(255, 255, 255, 0.52);
  transition: color .15s;
}
.site-footer__list a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}
.site-footer__legal {
  display: flex;
  margin-left: auto;
}
.site-footer__legal li + li::before {
  content: "|";
  margin: 0 10px;
  opacity: 0.3;
}
.site-footer__legal a { color: rgba(255, 255, 255, 0.3); }


/* =============================================================
   12. RESPONSIVE (任意 — 1024px以下で1カラム化)
   ============================================================= */
@media (max-width: 1024px) {
  .hero__grid,
  .l-main,
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-main { height: 280px; }
}
