
main { max-width: 1200px; margin: 20px auto; padding: 0 20px; }

.site-header, .page-header { text-align: center; padding: 40px 20px; background: #fff; margin-bottom: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.site-header h1, .page-header h1 { font-size: 28px; margin-bottom: 10px; color: #1a1a1a; }
.page-header p { color: #666; margin-top: 10px; }

.site-intro { background: #fff; padding: 30px; margin-bottom: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); line-height: 1.8; color: #555; }

section { margin-bottom: 40px; }
section h2 { font-size: 24px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid #2c5aa0; color: #1a1a1a; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card .meta { font-size: 13px; color: #888; margin-bottom: 10px; }
.card .one-line { font-size: 14px; color: #555; line-height: 1.6; }

.list-nav-section { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.link-list { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.btn-link { display: inline-block; padding: 12px 24px; background: #2c5aa0; color: #fff; border-radius: 5px; font-weight: 500; transition: background 0.3s; }
.btn-link:hover { background: #1a3d6b; text-decoration: none; }

.list-section { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.list-card { padding: 20px 0; border-bottom: 1px solid #eee; }
.list-card:last-child { border-bottom: none; }
.list-card h3 { font-size: 20px; margin-bottom: 8px; }
.list-card .meta { font-size: 13px; color: #888; margin-bottom: 8px; }
.list-card .summary { font-size: 14px; color: #666; line-height: 1.6; }
.rank-num, .topic-tag, .date-tag { display: inline-block; padding: 4px 10px; background: #f39c12; color: #fff; border-radius: 4px; font-size: 12px; margin-right: 8px; font-weight: 600; }
.topic-tag { background: #8e44ad; }
.date-tag { background: #27ae60; }

.detail-page { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.detail-page header h1 { font-size: 28px; margin-bottom: 20px; color: #1a1a1a; }
.detail-info, .detail-oneline, .detail-summary, .detail-review, .detail-related { margin-bottom: 30px; }
.detail-info h2, .detail-oneline h2, .detail-summary h2, .detail-review h2, .detail-related h2 { font-size: 20px; margin-bottom: 15px; color: #2c5aa0; border-bottom: 2px solid #2c5aa0; padding-bottom: 8px; }
.info-list { list-style: none; }
.info-list li { padding: 8px 0; font-size: 15px; color: #444; }
.info-list strong { color: #333; margin-right: 8px; }
.detail-oneline p, .detail-summary p, .detail-review p { font-size: 15px; line-height: 1.8; color: #555; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.related-card { background: #f9f9f9; padding: 15px; border-radius: 5px; border-left: 3px solid #2c5aa0; }
.related-card h4 { font-size: 16px; margin-bottom: 8px; }
.related-card p { font-size: 13px; color: #666; }

footer { text-align: center; padding: 30px 20px; color: #888; font-size: 14px; }

@media (max-width: 768px) {
  .site-header h1, .page-header h1 { font-size: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .detail-page { padding: 20px; }
}
