*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f8f8f8;
}

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

/* Header */
.site-header {
  background: #1a1a2e;
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; gap: 24px; }
.site-logo { color: white; text-decoration: none; font-size: 1.2rem; font-weight: bold; }
.site-header nav { display: flex; gap: 16px; }
.site-header nav a { color: #ccc; text-decoration: none; font-size: 0.9rem; }
.site-header nav a:hover { color: white; }

/* Main */
main { padding: 24px 16px; min-height: 70vh; }

/* Footer */
.site-footer { background: #222; color: #aaa; padding: 24px 0; margin-top: 48px; font-size: 0.8rem; }
.site-footer p { margin-bottom: 4px; }

/* Cards */
.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 16px 0; }
th { background: #1a1a2e; color: white; padding: 10px 12px; text-align: left; font-size: 0.9rem; }
td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
tr:hover td { background: #f5f5f5; }

/* Score badges */
.score-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}
.score-high { background: #d4edda; color: #155724; }
.score-mid  { background: #fff3cd; color: #856404; }
.score-low  { background: #f8d7da; color: #721c24; }

/* Rankings */
.rank-1 td:first-child::before { content: '🥇 '; }
.rank-2 td:first-child::before { content: '🥈 '; }
.rank-3 td:first-child::before { content: '🥉 '; }

/* Heading */
h1 { font-size: 1.6rem; margin-bottom: 16px; color: #1a1a2e; }
h2 { font-size: 1.3rem; margin: 28px 0 12px; color: #1a1a2e; border-left: 4px solid #e74c3c; padding-left: 10px; }
h3 { font-size: 1.1rem; margin: 20px 0 8px; color: #333; }

/* Machine grid */
.machine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 1.3rem; }
  table { font-size: 0.8rem; }
  th, td { padding: 8px 6px; }
}
