/* RideWorks Column — matches official site visual language */
:root {
  --ink: #fff;
  --muted: #bbb;
  --soft: #888;
  --gold: #c7a46c;
  --gold-soft: rgba(199, 164, 108, 0.16);
  --base: #050505;
  --panel: #0d0d0d;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1120px;
  --prose: 720px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--base);
  color: var(--ink);
  line-height: 1.85;
  overflow-x: hidden;
  padding-bottom: 72px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: 90%;
  max-width: var(--max);
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.logo .gold,
.text-gold {
  color: var(--gold);
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: 0.3s;
  color: #ddd;
}

nav a:hover,
nav a.is-current {
  color: var(--gold);
}

nav a.nav-cta {
  color: var(--gold);
}

/* Buttons */
.btn-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s;
  min-width: 160px;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-main {
  background: var(--gold);
  color: #111;
  box-shadow: 0 10px 35px rgba(199, 164, 108, 0.28);
}

.btn-line {
  background: #06c755;
  color: #fff;
  box-shadow: 0 10px 30px rgba(6, 199, 85, 0.22);
}

.btn-tel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
}

.btn-sub {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

/* Page hero (list / article header band) */
.page-hero {
  padding: 130px 0 48px;
  background:
    radial-gradient(circle at top right, rgba(199, 164, 108, 0.14), transparent 40%),
    linear-gradient(135deg, #0c1220 0%, #050505 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
}

.page-hero .lead {
  color: #ccc;
  font-size: 16px;
  max-width: 640px;
  line-height: 1.85;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: #aaa;
  transition: 0.2s;
}

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

.breadcrumb span.sep {
  color: #555;
}

/* Cards list */
.column-main {
  padding: 56px 0 80px;
}

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

.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 164, 108, 0.42);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.article-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .thumb img {
  transform: scale(1.03);
}

.article-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--soft);
}

.cat-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.article-card h2 {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 800;
  margin-bottom: 12px;
}

.article-card .excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 18px;
  flex: 1;
}

.article-card .read-more {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}


.article-card.no-thumb .body {
  padding-top: 24px;
}

.related-item.no-thumb {
  grid-template-columns: 1fr;
}

.related-item.no-thumb img {
  display: none;
}

/* Article layout */
.article-layout {
  padding: 120px 0 72px;
}

.article-layout .container-narrow {
  width: 90%;
  max-width: 820px;
  margin: 0 auto;
}

.article-header h1 {
  font-size: clamp(26px, 4.5vw, 36px);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-eyecatch {
  margin: 28px 0 36px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-eyecatch img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure {
  margin: 1.6em 0 1.8em;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-figure figcaption {
  padding: 10px 14px 12px;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.6;
  background: rgba(255,255,255,.02);
}


/* TOC */
.toc {
  margin: 0 0 40px;
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.toc h2 {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.toc a {
  color: #ddd;
  font-size: 14px;
  line-height: 1.6;
  transition: 0.2s;
}

.toc a:hover {
  color: var(--gold);
}

/* Prose */
.prose {
  color: #ddd;
  font-size: 16.5px;
  line-height: 1.95;
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
  font-size: 1.35em;
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.prose h3 {
  margin-top: 1.7em;
  margin-bottom: 0.5em;
  font-size: 1.1em;
  font-weight: 800;
  color: #f2f2f2;
  scroll-margin-top: 90px;
}

.prose p {
  color: #d4d4d4;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  color: #d4d4d4;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 0;
  color: #ccc;
}

/* CTA */
.purchase-cta {
  margin: 56px 0 40px;
  padding: 36px 28px;
  border-radius: 22px;
  border: 1px solid rgba(199, 164, 108, 0.28);
  background:
    radial-gradient(circle at top left, rgba(199, 164, 108, 0.14), transparent 46%),
    linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  text-align: center;
}

.purchase-cta h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 800;
  margin-bottom: 14px;
}

.purchase-cta p {
  color: #ccc;
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 15px;
  line-height: 1.85;
}

.purchase-cta .btn-wrap {
  justify-content: center;
}

/* Related */
.related {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s;
}

.related-item:hover {
  border-color: rgba(199, 164, 108, 0.4);
}

.related-item img {
  width: 110px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: #111;
}

.related-item h3 {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 6px;
}

.related-item .meta {
  font-size: 12px;
  color: var(--soft);
}

/* Footer */
footer {
  padding: 40px 0 56px;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
  background: #050505;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 16px;
}

.footer-legal a {
  color: #aaa;
  font-size: 12px;
  transition: 0.3s;
}

.footer-legal a:hover {
  color: var(--gold);
}

/* Fixed contact — same as official */
.fixed-contact {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 9999;
}

.fixed-contact a {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.fixed-tel {
  background: #111;
  color: #fff;
}

.fixed-form {
  background: var(--gold);
  color: #111;
}

.fixed-line {
  background: #06c755;
  color: #fff;
}

.empty-note {
  color: var(--muted);
  text-align: center;
  padding: 40px 20px;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .page-hero {
    padding: 110px 0 36px;
  }

  .article-layout {
    padding: 100px 0 56px;
  }

  .prose {
    font-size: 16px;
    line-height: 1.95;
  }

  .related-item {
    grid-template-columns: 88px 1fr;
  }

  .related-item img {
    width: 88px;
    height: 66px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .purchase-cta {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .article-card:hover {
    transform: none;
  }

  .article-card:hover .thumb img {
    transform: none;
  }
}
