body {
  font-size: 16px;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

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

section {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

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

.card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card .meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card .oneline {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.more-link {
  margin-top: 1.5rem;
  text-align: right;
  font-size: 1rem;
}

.more-link a {
  color: #667eea;
  font-weight: 500;
}

.page-header {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem 2rem;
}

.page-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.05rem;
  opacity: 0.95;
}

.list-content {
  padding: 0;
}

.list-card {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.list-card:hover {
  background: #f9f9f9;
}

.list-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.list-card .meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.list-card .tags {
  color: #667eea;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.list-card .summary {
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.list-card .review {
  color: #777;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
}

.list-card.ranked {
  position: relative;
  padding-left: 4rem;
}

.list-card.ranked .rank {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

.list-card.with-date {
  position: relative;
  padding-left: 5rem;
}

.list-card.with-date .date {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #888;
  background: #f0f0f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.topic-group {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.topic-group h2 {
  font-size: 1.4rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.detail-page article {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

.detail-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #333;
  border-bottom: 3px solid #667eea;
  padding-bottom: 1rem;
}

.basic-info ul {
  list-style: none;
  padding: 0;
}

.basic-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.oneline p, .summary p, .review p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.related-card {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.related-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #888;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.4rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-page h1 {
    font-size: 1.5rem;
  }

  section {
    padding: 1.5rem;
  }
}
