/**
 * portal-core.css
 * Phase 6.8.0 - Tight PR TIMES × Yahoo JP Style
 *
 * Purpose: 引き締まった情報密度の高いポータルデザイン
 * - 14px base font (小さめ)
 * - 狭い余白（padding: 8-12px）
 * - リスト形式（カードなし）
 * - 境界線で区切り
 */

/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #333;
  background: #fff;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.no-data {
  text-align: center;
  color: #999;
  padding: 24px 16px;
  font-size: 13px;
}

/* ========== Header ========== */
.site-header {
  background: #fff;
  border-bottom: 2px solid #c30d23;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: #c30d23;
  margin: 0;
}

.site-logo a {
  color: inherit;
  text-decoration: none;
}

.site-search {
  display: flex;
  flex: 1;
  max-width: 320px;
  gap: 6px;
}

.site-search input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}

.site-search button {
  padding: 6px 12px;
  border: none;
  background: #c30d23;
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
}

.site-nav {
  display: flex;
  gap: 16px;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 3px;
  transition: background 0.2s;
}

.site-nav a:hover {
  background: #f5f5f5;
}

/* ========== Section Title ========== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c30d23;
}

/* ========== Hero Section ========== */
.hero-section {
  background: #f8f8f8;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.hero-main {
  margin-bottom: 12px;
}

.hero-main-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background 0.2s;
}

.hero-main-link:hover {
  background: #f9f9f9;
}

.hero-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 6px;
  line-height: 1.4;
}

.hero-main-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.hero-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-sub-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: background 0.2s;
}

.hero-sub-item a:hover {
  background: #f9f9f9;
}

.hero-sub-title {
  font-size: 14px;
  font-weight: 500;
  color: #0066cc;
  margin-bottom: 4px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-sub-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: #666;
}

.brand-badge {
  display: inline-block;
  background: #0066cc;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
  margin-bottom: 4px;
}

/* ========== Topics Section (List Style) ========== */
.topics-section {
  padding: 16px 0;
}

.topics-grid {
  display: block;
}

.topic-card {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.topic-card:last-child {
  border-bottom: none;
}

.topic-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 3px;
}

.topic-card a:hover {
  background: #f8f8f8;
}

.topic-title {
  font-size: 15px;
  font-weight: 500;
  color: #0066cc;
  margin-bottom: 4px;
  line-height: 1.4;
}

.topic-title:hover {
  text-decoration: underline;
}

.topic-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #666;
}

/* ========== Press Section (Tight List) ========== */
.press-section {
  padding: 16px 0;
  border-top: 1px solid #ddd;
}

.press-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.press-item {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.press-item:last-child {
  border-bottom: none;
}

.press-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 3px;
}

.press-item a:hover {
  background: #f8f8f8;
}

.press-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
  color: #666;
}

.press-title {
  font-size: 14px;
  font-weight: 500;
  color: #0066cc;
  line-height: 1.4;
}

.press-title:hover {
  text-decoration: underline;
}

/* ========== Brand Ranking (Compact Table) ========== */
.brand-ranking-section {
  padding: 16px 0;
  border-top: 1px solid #ddd;
}

.brand-ranking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.brand-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 4px;
}

.brand-rank {
  font-size: 20px;
  font-weight: 700;
  color: #c30d23;
  min-width: 32px;
  text-align: center;
}

.brand-info {
  flex: 1;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin-bottom: 4px;
}

.brand-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #666;
}

.brand-stat-label {
  font-weight: 500;
}

/* ========== Source & Timestamp ========== */
.source {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

.timestamp {
  font-size: 11px;
  color: #999;
}

/* ========== Section Footer ========== */
.section-footer {
  text-align: center;
  margin-top: 16px;
}

.btn-more {
  display: inline-block;
  padding: 8px 24px;
  background: #fff;
  border: 1px solid #c30d23;
  color: #c30d23;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-more:hover {
  background: #c30d23;
  color: #fff;
}

/* ========== Footer ========== */
.site-footer {
  background: #333;
  color: #ccc;
  padding: 32px 0 16px;
  margin-top: 32px;
  font-size: 13px;
  border-top: 4px solid #c30d23;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.footer-section h3,
.footer-section h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #555;
  font-size: 12px;
  color: #999;
}

.phase-signature {
  margin-top: 8px;
  font-size: 11px;
  color: #777;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }

  .container {
    padding: 0 12px;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .site-search {
    max-width: none;
    order: 3;
    width: 100%;
  }

  .site-nav {
    gap: 12px;
    font-size: 12px;
  }

  .hero-sub {
    grid-template-columns: 1fr;
  }

  .brand-ranking-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 16px;
  }

  .topic-title {
    font-size: 14px;
  }

  .press-title {
    font-size: 13px;
  }

  .brand-name {
    font-size: 14px;
  }
}
