/*
Theme Name: Bike Matome ClaudeDesign Root Final v8
Theme URI: https://example.com/
Author: Bike Matome Team
Description: ClaudeDesign Root Final v8 — News-centric design for Bike Matome.
Version: 20260513.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: bikematome-theme-cd-a
ClaudeDesign Final Slug: bikematome-claudedesign-rootfinal-20260513-v8
*/

:root {
  --bmt-ink: #111827;
  --bmt-text: #1f2937;
  --bmt-muted: #64748b;
  --bmt-faint: #94a3b8;
  --bmt-page: #f3f5f8;
  --bmt-card: #ffffff;
  --bmt-border: #dfe5ee;
  --bmt-border-strong: #cbd5e1;
  --bmt-blue: #1558d6;
  --bmt-blue-2: #0f47af;
  --bmt-navy: #1f4f82;
  --bmt-navy-2: #245f9c;
  --bmt-red: #d82418;
  --bmt-green: #0f8a64;
  --bmt-orange: #c97500;
  --bmt-wrap: 1280px;
  --bmt-sidebar: 280px;
  --bmt-radius: 8px;
  --bmt-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

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

html {
  margin: 0;
  background: #ffffff !important;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bmt-text) !important;
  background: #ffffff !important;
  background-image: none !important;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--bmt-blue); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.bmt-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--bmt-border);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.bmt-header-shell,
.bmt-header-inner {
  background: #ffffff;
}

.bmt-header-inner,
.bmt-container,
.bmt-footer-inner {
  width: 100%;
  max-width: var(--bmt-wrap);
  margin: 0 auto;
}

.bmt-header-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  padding: 14px 22px;
}

.bmt-logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--bmt-navy);
  line-height: 1;
}

.bmt-logo-main {
  color: var(--bmt-navy);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.bmt-logo-main span { color: var(--bmt-blue); }

.bmt-logo-sub {
  margin-top: 4px;
  color: var(--bmt-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.bmt-search {
  display: flex;
  min-width: 0;
  border: 2px solid var(--bmt-blue);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.bmt-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: var(--bmt-text);
  background: #ffffff;
}

.bmt-search button {
  border: 0;
  padding: 0 18px;
  color: #ffffff;
  background: var(--bmt-blue);
  font-weight: 800;
}

.bmt-nav {
  display: flex;
  overflow-x: auto;
  padding: 0 22px;
  background: var(--bmt-navy);
}

.bmt-menu { display: contents; margin: 0; padding: 0; list-style: none; }
.bmt-menu li { display: inline-flex; }

.bmt-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.bmt-nav a:hover,
.bmt-nav a.is-current,
.bmt-menu .current-menu-item > a {
  color: #ffffff;
  background: var(--bmt-blue);
}

.bmt-breaking {
  display: flex;
  gap: 14px;
  align-items: center;
  overflow: hidden;
  padding: 7px 22px;
  color: rgba(255, 255, 255, 0.88);
  background: var(--bmt-navy-2);
  font-size: 0.8rem;
  white-space: nowrap;
}

.bmt-breaking span {
  border-radius: 3px;
  padding: 2px 8px;
  color: #ffffff;
  background: var(--bmt-red);
  font-weight: 900;
}

.bmt-breaking a { color: rgba(255, 255, 255, 0.88); }
.bmt-breaking i { color: rgba(255, 255, 255, 0.35); font-style: normal; }

.bmt-main {
  min-height: 70vh;
  background: var(--bmt-page) !important;
}

.bmt-container { padding-left: 22px; padding-right: 22px; }
.bmt-section { padding: 24px 0; background: var(--bmt-page); }
.bmt-page-hero { padding-top: 30px; padding-bottom: 14px; }
.bmt-page-hero .bmt-container, .bmt-single-wrap { max-width: 980px; }

.bmt-hero {
  border-bottom: 1px solid var(--bmt-border);
  background: #ffffff;
}

.bmt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
  min-width: 0;
}

.bmt-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
  overflow: hidden;
  border: 1px solid var(--bmt-border);
  border-radius: var(--bmt-radius);
  background: #ffffff;
  box-shadow: var(--bmt-shadow);
}

.bmt-hero-card::before,
.bmt-hero-card::after {
  content: none;
  display: none;
}

.bmt-hero-image,
.bmt-hero-card > .bmt-image-frame,
.bmt-hero-card > .bmt-image-frame img,
.bmt-hero-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.bmt-hero-placeholder,
.bmt-image-placeholder,
.bmt-image-placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.35);
  background: #e8edf4;
  font-family: Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: center;
}

.bmt-hero-body {
  position: relative;
  align-self: center;
  padding: clamp(24px, 5vw, 40px);
  color: var(--bmt-text);
  background: #ffffff;
}

.bmt-hero-body .bmt-title-xl,
.bmt-hero-body .bmt-lead,
.bmt-hero-date { color: var(--bmt-text); }

.bmt-title-xl,
.bmt-article-title {
  margin: 10px 0;
  color: var(--bmt-ink);
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.bmt-title-xl { max-width: 680px; font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 900; }
.bmt-article-title { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 900; }
.bmt-lead { max-width: 720px; margin: 0 0 16px; color: var(--bmt-muted); font-size: 0.94rem; }
.bmt-hero-date { color: var(--bmt-faint); font-size: 0.78rem; }

.bmt-badge-row,
.bmt-card-badges,
.bmt-news-row-meta,
.bmt-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.bmt-topic-badge,
.bmt-kicker,
.bmt-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 3px;
  padding: 2px 8px;
  color: #ffffff;
  background: var(--badge-color, var(--bmt-blue));
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bmt-topic-badge.is-pickup { --badge-color: var(--bmt-red); }

.bmt-cta-row,
.bmt-article-footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.bmt-button,
.bmt-readmore,
.bmt-section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: 800;
}

.bmt-button {
  border: 1px solid var(--bmt-blue);
  padding: 9px 22px;
  color: #ffffff;
  background: var(--bmt-blue);
  box-shadow: 0 2px 8px rgba(21, 88, 214, 0.22);
}

.bmt-button:hover { color: #ffffff; background: var(--bmt-blue-2); }
.bmt-button.is-ghost, .bmt-button.is-outline { color: var(--bmt-blue); background: #ffffff; box-shadow: none; }
.bmt-button.is-subtle { border-color: #c9d8f4; color: var(--bmt-blue); background: #edf4ff; box-shadow: none; }

.bmt-hero-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bmt-hero-sub {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--bmt-border);
  border-radius: var(--bmt-radius);
  background: #ffffff;
}
.bmt-hero-sub-media { overflow: hidden; background: var(--bmt-page); }
.bmt-hero-sub-image { width: 100%; height: 100%; min-height: 104px; object-fit: cover; }
.bmt-hero-sub-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 10px 14px; }
.bmt-hero-sub-title, .bmt-news-row-title, .bmt-card-title { margin: 0; color: var(--bmt-ink); font-weight: 800; line-height: 1.55; }
.bmt-hero-sub-title { display: -webkit-box; margin-top: 5px; overflow: hidden; font-size: 0.9rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.bmt-home-hero {
  padding: 24px 0 10px;
  background:
    radial-gradient(circle at top left, rgba(21, 88, 214, 0.10), transparent 36%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.bmt-home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
}

.bmt-home-hero__copy,
.bmt-home-hero__spotlight,
.bmt-home-prep-card,
.bmt-home-summary__card {
  border: 1px solid var(--bmt-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--bmt-shadow);
}

.bmt-home-hero__copy {
  padding: clamp(22px, 3vw, 34px);
}

.bmt-home-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--bmt-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bmt-home-hero__title {
  margin: 0 0 12px;
  color: var(--bmt-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.bmt-home-hero__lead {
  max-width: 42rem;
  margin: 0 0 20px;
  color: var(--bmt-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.bmt-home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bmt-home-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.bmt-home-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7faff;
  border: 1px solid #d8e3f3;
}

.bmt-home-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bmt-ink);
  font-size: 0.9rem;
}

.bmt-home-stat span {
  color: var(--bmt-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.bmt-home-spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--bmt-border);
  border-radius: 18px;
  background: #ffffff;
}

.bmt-home-spotlight-card + .bmt-home-spotlight-card { margin-top: 12px; }

.bmt-home-spotlight-card__media { display: block; background: #eef3f8; }
.bmt-home-spotlight-card__image { width: 100%; min-height: 180px; object-fit: cover; }
.bmt-home-spotlight-card__body { padding: 16px 16px 18px; }
.bmt-home-spotlight-card__title { margin: 10px 0 8px; color: var(--bmt-ink); font-size: 1.08rem; line-height: 1.5; }
.bmt-home-spotlight-card__excerpt { margin: 0; color: var(--bmt-muted); font-size: 0.88rem; line-height: 1.8; }

.bmt-home-prep-card {
  padding: 20px;
}

.bmt-home-prep-card__badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--bmt-blue);
  font-size: 0.75rem;
  font-weight: 900;
}

.bmt-home-prep-card__title {
  margin: 0 0 8px;
  color: var(--bmt-ink);
  font-size: 1.2rem;
}

.bmt-home-prep-card__lead {
  margin: 0 0 16px;
  color: var(--bmt-muted);
}

.bmt-home-prep-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bmt-home-prep-card__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bmt-border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--bmt-blue);
  background: #f8fbff;
  font-weight: 800;
}

.bmt-home-quicklinks { padding: 10px 0 6px; }
.bmt-home-quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.bmt-home-quicklink {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--bmt-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.05);
}
.bmt-home-quicklink__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--bmt-blue);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bmt-home-quicklink strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bmt-ink);
  font-size: 1rem;
}
.bmt-home-quicklink p {
  margin: 0;
  color: var(--bmt-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.bmt-home-maker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bmt-home-maker-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--bmt-border);
  background: #f8fbff;
  text-align: center;
  font-weight: 900;
}

.bmt-home-guide-list {
  display: grid;
  gap: 10px;
}
.bmt-home-guide-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--bmt-border);
  background: #ffffff;
  color: var(--bmt-text);
  font-weight: 800;
}

.bmt-home-prep-inline {
  padding: 16px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f9fbff;
}
.bmt-home-prep-inline strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bmt-ink);
}
.bmt-home-prep-inline p {
  margin: 0;
  color: var(--bmt-muted);
  font-size: 0.9rem;
}

.bmt-home-summary { padding: 10px 0 24px; }
.bmt-home-summary__card {
  padding: 18px 20px;
  text-align: center;
}
.bmt-home-summary__card h2 {
  margin: 0 0 8px;
  color: var(--bmt-ink);
  font-size: 1.25rem;
}
.bmt-home-summary__card p { margin: 0; color: var(--bmt-muted); }

.bmt-maker-strip { border-bottom: 1px solid var(--bmt-border); background: #ffffff; }
.bmt-maker-strip-inner { display: flex; gap: 10px; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.bmt-maker-strip strong { flex-shrink: 0; color: var(--bmt-muted); font-size: 0.82rem; }



.bmt-maker-card em { color: rgba(255,255,255,0.78); font-style: normal; }
.bmt-maker-card.is-all { flex: 0.5 0 150px; justify-content: center; background: var(--bmt-navy); font-size: 0.78rem; font-weight: 900; }

.bmt-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--bmt-sidebar); gap: 20px; }
.bmt-main-column { min-width: 0; }
.bmt-section-head { display: flex; align-items: stretch; gap: 0; margin-bottom: 14px; }
.bmt-section-head-spaced { margin-top: 24px; }
.bmt-section-title, .bmt-widget-title {
  display: flex;
  align-items: center;
  border-left: 5px solid var(--bmt-blue);
  margin: 0;
  padding: 8px 16px;
  color: var(--bmt-ink);
  background: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}
.bmt-section-head::after { content: ""; flex: 1; background: #e8edf4; }
.bmt-section-more { border-bottom: 1px solid var(--bmt-border); padding: 8px 0 8px 12px; color: var(--bmt-blue); background: var(--bmt-page); font-size: 0.8rem; white-space: nowrap; }

.bmt-news-list,
.bmt-widget,
.bmt-card,
.bmt-article,
.bmt-panel,
.bmt-empty-state,
.bmt-search-panel,
.bmt-comments {
  border: 1px solid var(--bmt-border);
  border-radius: var(--bmt-radius);
  color: var(--bmt-text);
  background: #ffffff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.06);
}

.bmt-news-list { padding: 0 14px; }
.bmt-news-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 13px; border-bottom: 1px solid var(--bmt-border); padding: 12px 0; background: transparent; }
.bmt-news-row:last-child { border-bottom: 0; }
.bmt-news-row.is-large { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; margin: 0; padding: 16px 0; background: #fbfcff; }
.bmt-news-row-media { overflow: hidden; border: 1px solid var(--bmt-border); border-radius: 6px; background: var(--bmt-page); }
.bmt-news-row-image { width: 100%; height: 82px; object-fit: cover; }
.bmt-news-row.is-large .bmt-news-row-image { height: 112px; }
.bmt-news-row-meta, .bmt-meta-line { color: var(--bmt-faint); font-size: 0.74rem; }
.bmt-news-row-title { margin-top: 5px; font-size: 0.95rem; }
.bmt-news-row.is-large .bmt-news-row-title { font-size: 1.08rem; }
.bmt-excerpt { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--bmt-muted); font-size: 0.84rem; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bmt-news-row.is-large .bmt-excerpt { -webkit-line-clamp: 3; }
.bmt-readmore { margin-top: 7px; color: var(--bmt-blue); font-size: 0.8rem; }
.bmt-center-link { margin-top: 14px; text-align: center; }

.bmt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bmt-special-grid .bmt-card { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 10px; }
.bmt-card { overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; }
.bmt-card:hover { transform: translateY(-2px); box-shadow: var(--bmt-shadow); }
.bmt-card-image { width: 100%; height: 150px; object-fit: cover; background: var(--bmt-page); }
.bmt-card .bmt-image-frame img,
.bmt-card .bmt-image-placeholder-img { width: 100%; height: 150px; object-fit: cover; background: var(--bmt-page); }
.bmt-special-grid .bmt-card-image { width: 78px; height: 58px; border: 1px solid var(--bmt-border); border-radius: 5px; }
.bmt-special-grid .bmt-card .bmt-image-frame,
.bmt-special-grid .bmt-card .bmt-image-frame img,
.bmt-special-grid .bmt-card .bmt-image-placeholder-img { width: 78px; height: 58px; border: 1px solid var(--bmt-border); border-radius: 5px; object-fit: cover; }
.bmt-card-body { padding: 12px 13px 14px; }
.bmt-special-grid .bmt-card-body { padding: 0; }
.bmt-card-title { margin-top: 6px; font-size: 0.9rem; }
.bmt-special-grid .bmt-card-title { display: -webkit-box; overflow: hidden; font-size: 0.8rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.bmt-special-grid .bmt-excerpt, .bmt-special-grid .bmt-readmore, .bmt-special-grid .bmt-meta-line { display: none; }

.bmt-sidebar { display: flex; flex-direction: column; gap: 16px; }
.bmt-widget { overflow: hidden; }
.bmt-widget-title { font-size: 0.9rem; }
.bmt-ranking { counter-reset: ranking; }
.bmt-ranking-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; border-bottom: 1px solid var(--bmt-border); padding: 12px 14px; background: transparent; }
.bmt-ranking-item:last-child { border-bottom: 0; }
.bmt-ranking-item::before { counter-increment: ranking; content: counter(ranking); color: var(--bmt-faint); font-size: 1.3rem; font-weight: 900; line-height: 1; }
.bmt-ranking-item:nth-child(1)::before { color: var(--bmt-red); }
.bmt-ranking-item:nth-child(2)::before { color: var(--bmt-orange); }
.bmt-ranking-item:nth-child(3)::before { color: #777777; }
.bmt-ranking-item h3 { margin: 0; color: var(--bmt-text); font-size: 0.82rem; line-height: 1.6; }
.bmt-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.bmt-tag-cloud a { border: 1px solid var(--bmt-border); border-radius: 999px; padding: 5px 10px; color: var(--bmt-text); background: var(--bmt-page); font-size: 0.78rem; }
.bmt-ad-box { display: grid; min-height: 180px; place-items: center; color: var(--bmt-faint); background: #e8edf4; text-align: center; }
.bmt-ad-box small { display: block; margin-top: 6px; }
.bmt-model-section { padding-top: 0; }

.bmt-archive-list { display: grid; gap: 14px; }
.bmt-archive-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); overflow: hidden; }
.bmt-sidebar-links { display: grid; gap: 8px; margin-top: 14px; }
.bmt-sidebar-links .bmt-news-mini { border: 1px solid var(--bmt-border); border-radius: 6px; padding: 9px 11px; color: var(--bmt-text); background: #ffffff; font-weight: 800; }

.bmt-article { padding: clamp(26px, 5vw, 42px); }
.bmt-article-header { margin-bottom: 22px; }
.bmt-single-image { overflow: hidden; border: 1px solid var(--bmt-border); border-radius: var(--bmt-radius); margin: 24px 0; background: #ffffff; display: flex; justify-content: center; align-items: center; min-height: 300px; }
.bmt-single-featured { width: 100%; height: auto; max-height: 600px; object-fit: contain; background: #ffffff; }
.bmt-content { color: var(--bmt-text); background: transparent; font-size: 1rem; }
.bmt-content > *:first-child { margin-top: 0; }
.bmt-content h2, .bmt-content h3 { color: var(--bmt-ink); line-height: 1.45; }
.bmt-content p { margin: 0 0 1.2em; }
.bmt-content a { color: var(--bmt-blue); text-decoration: underline; }
.bmt-article-footer { border-top: 1px solid var(--bmt-border); margin-top: 28px; padding-top: 18px; }
.bmt-result-count { margin: 0; color: var(--bmt-muted); }
.bmt-empty-state { padding: 28px; text-align: center; }
.bmt-search-panel { padding: 18px; }
.bmt-search-panel .search-form { display: flex; gap: 8px; }
.bmt-search-panel .search-field { width: 100%; border: 1px solid var(--bmt-border); border-radius: 6px; padding: 10px 12px; color: var(--bmt-text); background: #ffffff; }
.bmt-search-panel .search-submit { border: 0; border-radius: 6px; padding: 10px 16px; color: #ffffff; background: var(--bmt-blue); font-weight: 900; }

.bmt-comments { margin-top: 22px; padding: 20px; }
.bmt-comment-list { margin: 0 0 20px; padding-left: 20px; }
.bmt-comments input, .bmt-comments textarea { width: 100%; border: 1px solid var(--bmt-border); border-radius: 6px; padding: 10px 12px; color: var(--bmt-text); background: #ffffff; }
.bmt-comments .submit { width: auto; border: 0; border-radius: 6px; padding: 10px 18px; color: #ffffff; background: var(--bmt-green); font-weight: 900; cursor: pointer; }

.bmt-footer {
  border-top: 1px solid var(--bmt-border);
  color: var(--bmt-muted);
  background: #ffffff;
}
.bmt-footer-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 30px 22px 18px; }
.bmt-footer-brand p { margin: 12px 0 0; color: var(--bmt-muted); font-size: 0.8rem; }
.bmt-footer-logo .bmt-logo-main { color: var(--bmt-navy); font-size: 1.7rem; }
.bmt-footer-logo .bmt-logo-sub { color: var(--bmt-muted); }
.bmt-footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bmt-footer-nav strong { display: block; border-bottom: 1px solid var(--bmt-border); margin-bottom: 10px; padding-bottom: 7px; color: var(--bmt-faint); font-size: 0.74rem; letter-spacing: 0.12em; }
.bmt-footer-nav a { display: block; margin-bottom: 7px; color: var(--bmt-muted); font-size: 0.82rem; }
.bmt-copyright { grid-column: 1 / -1; border-top: 1px solid var(--bmt-border); margin: 0; padding-top: 14px; color: var(--bmt-faint); font-size: 0.74rem; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.nav-links a, .nav-links span { border: 1px solid var(--bmt-border); border-radius: 6px; padding: 7px 11px; background: #ffffff; font-weight: 800; }
.nav-links .current { color: #ffffff; background: var(--bmt-blue); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(245, 158, 11, 0.85); outline-offset: 4px; }

@media (max-width: 1100px) {
  .bmt-hero-grid, .bmt-layout { grid-template-columns: 1fr; }
  .bmt-hero-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmt-sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .bmt-header-inner, .bmt-footer-inner, .bmt-footer-nav { grid-template-columns: 1fr; }
  .bmt-maker-strip-inner { flex-wrap: wrap; }
  .bmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bmt-sidebar { grid-template-columns: 1fr; }
  .bmt-archive-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bmt-header-inner, .bmt-container, .bmt-footer-inner { padding-left: 14px; padding-right: 14px; }
  .bmt-nav, .bmt-breaking { padding-left: 14px; padding-right: 14px; }
  .bmt-search { width: 100%; }
  .bmt-hero-grid { padding: 14px; }
  .bmt-hero-card { grid-template-columns: 1fr; }
  .bmt-hero-image, .bmt-hero-placeholder { min-height: 220px; }
  .bmt-hero-side, .bmt-grid, .bmt-special-grid .bmt-card { grid-template-columns: 1fr; }
  .bmt-hero-sub { grid-template-columns: 98px minmax(0, 1fr); }
  .bmt-news-row, .bmt-news-row.is-large { grid-template-columns: 1fr; }
  .bmt-news-row-image, .bmt-news-row.is-large .bmt-news-row-image { height: 180px; }
  
  .bmt-button { width: 100%; }
  .bmt-article { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Generated image notice and metadata rendering */
.bmt-image-frame { margin: 0; display: block; }
.bmt-image-frame img { display: block; width: 100%; height: auto; }
.bmt-image-placeholder-img { display: block; min-height: 120px; object-fit: cover; }
.bmt-image-frame figcaption { margin-top: 8px; }
.bmt-image-notice { display: inline-block; color: #5b6472; font-size: 0.86rem; font-weight: 700; background: #f3f6fb; border: 1px solid #d9e2ef; border-radius: 999px; padding: 4px 10px; }
.bmc-image-caption { margin: 8px 0 0; font-size: 0.84rem; color: #5b6472; line-height: 1.6; }
.bmc-image-caption .bmt-image-notice { margin-top: 0; }
.bmt-content-section { border-top: 1px solid #e5e9f2; padding-top: 24px; margin-top: 24px; }
.bmt-content-section h2 { color: #111827; font-size: clamp(1.25rem, 1.6vw, 1.65rem); margin: 0 0 12px; }
.bmt-mini-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 0; }
.bmt-mini-specs div { background: #f8fafc; border: 1px solid #e4e9f2; border-radius: 16px; padding: 12px 14px; }
.bmt-mini-specs dt { color: #697386; font-size: 0.78rem; font-weight: 800; margin-bottom: 4px; }
.bmt-mini-specs dd { color: #111827; font-weight: 900; margin: 0; }
.bmt-spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e9f2; border-radius: 16px; overflow: hidden; }
.bmt-spec-table th, .bmt-spec-table td { border-bottom: 1px solid #e5e9f2; padding: 12px 14px; text-align: left; vertical-align: top; }
.bmt-spec-table th { width: 34%; color: #344054; background: #f8fafc; }
.bmt-source-section a { font-weight: 800; color: #1547bf; }


/* Character comment block */
.bmt-character-talk-section {
  background: #ffffff;
  border: 1px solid var(--bmt-border);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
}

.bmt-section-intro {
  color: var(--bmt-muted);
  margin: -6px 0 18px;
  line-height: 1.8;
}

.bmt-character-talk-grid {
  display: grid;
  gap: 16px;
}

.bmt-character-comment {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5edf7;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.bmt-character-comment-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid #dbeafe;
  background: #eaf2ff;
}

.bmt-character-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bmt-character-comment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 8px;
}

.bmt-character-comment-head strong {
  color: #0f172a;
  font-size: 1rem;
}

.bmt-character-comment-head span {
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.45;
  padding: 3px 9px;
}

.bmt-character-comment-body p {
  color: #334155;
  line-height: 1.85;
  margin: 0;
}

@media (max-width: 640px) {
  .bmt-character-comment {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .bmt-character-comment-avatar {
    width: 56px;
    height: 56px;
  }
}


.bmt-model-facets { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.bmt-model-facets span { border: 1px solid var(--bmt-border); border-radius: 999px; background: #f8fafc; color: var(--bmt-muted); font-size: 11px; font-weight: 800; padding: 4px 8px; }
.bmt-news-archive-note { margin-top: 10px; color: var(--bmt-muted); font-weight: 700; }


.bmt-catalog-filter-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--bmt-border); border-radius: 14px; background: #ffffff; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); }
.bmt-catalog-filter-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.bmt-catalog-filter-head strong { color: var(--bmt-ink); font-size: 15px; }
.bmt-catalog-filter-head a { color: var(--bmt-blue); font-weight: 800; text-decoration: none; }
.bmt-catalog-filter-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid #edf2f7; }
.bmt-catalog-filter-row:first-of-type { border-top: 0; }
.bmt-catalog-filter-row > span { color: var(--bmt-muted); font-size: 12px; font-weight: 900; padding-top: 6px; }
.bmt-catalog-filter-row div { display: flex; flex-wrap: wrap; gap: 8px; }
.bmt-catalog-filter-row a { border: 1px solid var(--bmt-border); border-radius: 999px; background: #f8fafc; color: var(--bmt-text); padding: 6px 10px; text-decoration: none; font-size: 12px; font-weight: 900; }
.bmt-catalog-filter-row a:hover, .bmt-catalog-filter-row a.is-active { border-color: var(--bmt-blue); background: #eaf2ff; color: var(--bmt-blue); }
.bmt-active-filter-note { margin-top: 10px; color: var(--bmt-muted); font-weight: 800; }
@media (max-width: 640px) { .bmt-catalog-filter-row { grid-template-columns: 1fr; } }


/* Model History and Colors */
.bmt-model-history { background: #f8fafc; border: 1px solid #e5edf7; border-radius: 20px; padding: clamp(20px, 4vw, 30px); margin-top: 32px; }
.bmt-model-history h2 { margin-bottom: 24px; color: var(--bmt-navy); border-bottom: 2px solid #dbeafe; padding-bottom: 12px; }
.bmt-year-history, .bmt-color-history { margin-bottom: 24px; }
.bmt-year-history h3, .bmt-color-history h3 { font-size: 1.1rem; color: var(--bmt-ink); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.bmt-year-history h3::before { content: "📅"; font-size: 1rem; }
.bmt-color-history h3::before { content: "🎨"; font-size: 1rem; }
.bmt-history-list { list-style: none; padding: 0; margin: 0; }
.bmt-history-list li { position: relative; padding-left: 24px; margin-bottom: 18px; border-left: 2px solid #dbeafe; padding-bottom: 8px; }
.bmt-history-list li::before { content: ""; position: absolute; left: -7px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--bmt-blue); border: 2px solid #ffffff; }
.bmt-history-date { display: block; font-size: 0.8rem; font-weight: 800; color: var(--bmt-muted); margin-bottom: 4px; }
.bmt-history-summary { display: block; font-size: 1rem; color: var(--bmt-ink); margin-bottom: 6px; }
.bmt-history-details { font-size: 0.9rem; color: var(--bmt-text); margin: 0; line-height: 1.6; }
.bmt-color-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.bmt-color-list li { background: #ffffff; border: 1px solid #dbeafe; border-radius: 999px; padding: 6px 16px; font-size: 0.88rem; font-weight: 700; color: var(--bmt-text); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); }

.bmt-maker-strip-inner { display: block; padding-top: 20px; padding-bottom: 20px; }
.bmt-maker-strip strong { display: block; margin-bottom: 12px; color: var(--bmt-muted); font-size: 0.85rem; font-weight: 800; }
.bmt-maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }


.bmt-maker-card.is-primary { grid-column: span 2; padding: 14px 20px; }
.bmt-maker-card.is-primary span { font-size: 1.25rem; }

@media (max-width: 768px) {
  .bmt-maker-grid { grid-template-columns: repeat(2, 1fr); }
  .bmt-maker-card.is-primary { grid-column: span 1; }
  
  .bmt-maker-card.is-primary span { font-size: 1rem; }
}

/* Maker UI v0.6.0 */
.bmt-maker-strip-inner { display: block; padding-top: 24px; padding-bottom: 24px; }
.bmt-maker-strip strong { display: block; margin-bottom: 16px; color: var(--bmt-muted); font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.bmt-maker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bmt-maker-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 12px 10px;
  color: #ffffff;
  background: var(--maker-color, var(--bmt-navy));
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.bmt-maker-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0.9; color: #ffffff; }
.bmt-maker-card span { font-size: 0.9rem; font-weight: 800; letter-spacing: 0.02em; }
.bmt-maker-card.is-primary { padding: 16px 12px; }
.bmt-maker-card.is-primary span { font-size: 1.1rem; font-weight: 900; }

@media (max-width: 1024px) {
  .bmt-maker-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .bmt-maker-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .bmt-maker-card { padding: 10px 8px; }
  .bmt-maker-card span { font-size: 0.8rem; }
  .bmt-maker-card.is-primary { padding: 12px 10px; }
  .bmt-maker-card.is-primary span { font-size: 0.9rem; }
}

/* Premium Polishing v0.7.0 */
:root {
  --bmt-glass: rgba(255, 255, 255, 0.05);
  --bmt-glass-border: rgba(255, 255, 255, 0.1);
}

.bmt-maker-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bmt-glass-border);
  backdrop-filter: blur(4px);
  background: linear-gradient(135deg, var(--maker-color) 0%, var(--maker-color) 100%);
}

.bmt-maker-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.bmt-maker-card:hover::after {
  left: 150%;
}

.bmt-maker-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.bmt-maker-card span {
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}



