* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #f5f1e8; /* warm paper tone */
  color: #222222;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

a {
  color: #0070c0;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffffdd;
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666666;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.1rem;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #dd0000;
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.page {
  max-width: 1040px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
}

.hero-inner {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 1.6rem;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: #777777;
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 0.25rem;
}

.breadcrumbs li:last-child::after {
  content: none;
}

.hero-heading {
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #bb0000;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.8rem;
}

.hero-lead {
  margin: 0;
  font-size: 0.95rem;
  color: #444444;
}

.section {
  padding-top: 2.6rem;
}

.section-inner {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 2.1rem;
}

.section-inner.narrow {
  max-width: 720px;
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-header.small {
  margin-bottom: 1.2rem;
}

.section-header h2 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.section-intro {
  margin: 0;
  font-size: 0.9rem;
  color: #555555;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.article-grid-latest {
  margin-bottom: 1.8rem;
}

.article-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.9rem 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.article-card-horizontal {
  flex-direction: row;
  align-items: stretch;
}

.article-thumb {
  background: linear-gradient(135deg, #111827, #374151);
  border-radius: 4px;
  min-height: 72px;
}

.article-card-horizontal .article-thumb {
  width: 96px;
  min-height: 88px;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.article-meta {
  font-size: 0.78rem;
  color: #777777;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-new {
  border-radius: 999px;
  border: 1px solid #dd0000;
  color: #dd0000;
  font-size: 0.7rem;
  padding: 0.05rem 0.45rem;
}

.article-title {
  font-size: 0.95rem;
  margin: 0;
}

.article-excerpt {
  font-size: 0.85rem;
  color: #444444;
  margin: 0;
}

.article-author {
  font-size: 0.78rem;
  color: #666666;
  margin: 0.4rem 0 0;
}

.section-footer {
  margin-top: 1.2rem;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  border: 1px solid #333333;
  font-size: 0.85rem;
  color: #333333;
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: #dd0000;
  color: #dd0000;
  text-decoration: none;
}

.button-small {
  padding: 0.35rem 1.1rem;
  font-size: 0.8rem;
}

.section-ranking {
  background: #f5f5f5;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-ranking .section-inner {
  border-top: none;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-item {
  counter-increment: rank;
}

.rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #dd0000;
  color: #dd0000;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.7rem;
}

.category-block {
  margin-top: 2.3rem;
}

.category-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.4rem;
  margin-bottom: 0.9rem;
}

.category-title {
  font-size: 1.05rem;
  margin: 0;
}

.category-note {
  font-size: 0.82rem;
  color: #666666;
  margin: 0;
}

.category-grid {
  margin-top: 0.4rem;
}

.category-footer {
  margin-top: 1rem;
}

.section-about {
  background: #111827;
  color: #f9fafb;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 3rem 1.5rem 3.5rem;
}

.section-about .section-inner {
  border-top: none;
}

.section-about h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

.section-about p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.site-footer {
  border-top: 1px solid rgba(0,0,0,0.12);
  padding: 1.3rem 1.5rem 1.6rem;
  background: #ffffff;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.6rem;
}

.pagetop {
  font-size: 0.8rem;
  color: #333333;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: #666666;
}

.footer-credit a {
  color: #0070c0;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #dd0000;
}

:focus-visible {
  outline: 2px solid #dd0000;
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-card-horizontal {
    flex-direction: column;
  }

  .article-card-horizontal .article-thumb {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .site-nav {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .article-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-ranking {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-about {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page {
    padding: 0 1rem 3rem;
  }
}
