:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #172018;
  --muted: #6b756b;
  --line: #ded8ca;
  --green: #0f6b3f;
  --red: #b6292f;
  --gold: #c69b35;
  --shadow: 0 10px 28px rgba(22, 32, 24, 0.08);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; }
.site-header {
  background: #f4f0e5 url('/assets/header-race.png') center right / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.brand {
  width: min(1040px, calc(100% - 32px));
  min-height: 168px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(22, 32, 24, 0.2);
}
.brand strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.site-main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}
.hero {
  padding: 24px 0 22px;
  border-bottom: 3px solid var(--green);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.2;
  letter-spacing: 0;
}
.share-box {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.share-label {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.share-button:hover {
  filter: brightness(0.94);
}
.share-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.share-x {
  background: var(--text);
  border-color: var(--text);
  color: white;
}
.share-x:hover {
  color: white;
}
.share-facebook {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
}
.share-line {
  background: #06c755;
  border-color: #06c755;
  color: white;
}
.share-copy {
  color: var(--text);
}
.share-copy svg {
  fill: none;
}
.date-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}
.date-nav a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.date-nav a:last-child { text-align: right; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.toolbar button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
.toolbar button.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.news-list {
  display: grid;
  gap: 12px;
}
.news-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.news-thumbnail {
  display: block;
  align-self: stretch;
  min-height: 116px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e5dc;
}
.news-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.news-thumbnail--placeholder img {
  object-fit: fill;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
}
.category {
  color: var(--red);
  font-weight: 800;
}
.news-card h2 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0;
}
.news-card h2 a {
  text-decoration: none;
}
.news-card h2 a:hover {
  color: var(--green);
  text-decoration: underline;
}
.news-card p {
  margin: 0;
  color: #354035;
}
.empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}
.site-footer {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}
@media (max-width: 640px) {
  .site-header {
    background-position: 64% center;
  }
  .brand {
    min-height: 126px;
  }
  .brand strong {
    font-size: 24px;
  }
  .date-nav {
    grid-template-columns: 1fr;
  }
  .date-nav a:last-child {
    text-align: left;
  }
  .news-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .news-thumbnail {
    min-height: 180px;
  }
  .share-box {
    margin-top: 14px;
  }
}
