/* article-ranking.css v1 — ランキング記事固有CSS */

/* Header Sub (対象日・調査日) */
.header-sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: var(--spacing-sm);
}
.header-sub strong {
  color: var(--color-text-main);
  font-weight: 600;
}

/* Key Takeaways — ranking style override */
.key-takeaways {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border: none;
  border-left: 4px solid var(--color-primary);
  padding: 28px 32px;
  margin: 32px 0;
}
.key-takeaways .box-title,
.box-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.key-takeaways li { margin-bottom: 10px; font-size: 0.98rem; line-height: 1.7; }
.key-takeaways li:last-child { margin-bottom: 0; }

/* TOC — ranking style override */
.toc-box {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0 36px;
}
.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.toc-list a {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.92rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

/* Section Number */
.section-number {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-negative);
  letter-spacing: 3px;
  margin-bottom: 6px;
}

/* Section */
.section {
  margin-bottom: 48px;
}

/* Summary Grid — 4 columns */
.summary-grid.cols-4 {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Table overrides for ranking */
tbody td:first-child {
  text-align: center;
  font-weight: 700;
}
tbody td:nth-child(2) {
  text-align: left;
  font-weight: 500;
}
tbody tr[data-href] { cursor: pointer; }
.note-text { font-size: 0.85rem; color: var(--color-text-light); font-style: italic; }

/* Stock Detail Card */
.stock-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
  border-left: 4px solid var(--color-negative);
}
.stock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.stock-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.stock-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stock-card-body {
  font-size: 0.95rem;
  line-height: 1.85;
}
.stock-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.stock-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stock-card-reason {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--color-tag-red-bg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.8;
}
.stock-card-angle {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Responsive — ranking-specific */
@media (max-width: 768px) {
  .summary-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .stock-card-header { flex-direction: column; }
}
