* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'BIZ UDPGothic', 'Meiryo', sans-serif;
  background: #F5F7FB;
  color: #1A2236;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: #0D3B6F; text-decoration: underline; }
.site-header {
  background: #0D3B6F;
  color: white;
  padding: 20px 32px;
}
.site-header.teacher { background: #006039; }
.site-header h1 { font-size: 22px; margin-bottom: 4px; }
.site-header p { font-size: 13px; opacity: 0.9; }
.site-header a { color: #8CC5A5; }
.content { padding: 32px; max-width: 1280px; margin: 0 auto; }
.section {
  background: white;
  border: 1px solid #E8ECF2;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.section h2 {
  font-size: 18px;
  color: #0D3B6F;
  margin-bottom: 4px;
}
.teacher-page .section h2 { color: #006039; }
.section .lead {
  color: #666;
  font-size: 13px;
  margin-bottom: 16px;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.card {
  border: 1px solid #E8ECF2;
  border-radius: 8px;
  overflow: hidden;
}
.card-header {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 12px;
}
.card-header.before { background: #FCE4EC; color: #C62828; }
.card-header.after { background: #E8F5E9; color: #2E7D32; }
.card-body { padding: 14px; min-height: 200px; background: #F5F7FB; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
}
.badge.critical { background: #E53935; color: white; }
.badge.high { background: #F57C00; color: white; }
.badge.medium { background: #FFA726; color: white; }
.badge.low { background: #43A047; color: white; }
.mock {
  background: white;
  border: 1px solid #E8ECF2;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
}
.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #0D3B6F;
  color: white;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 11px;
}
.mock-header.teacher { background: #006039; }
.mock-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 11px;
}
.mock-btn.primary { background: #0D3B6F; color: white; }
.mock-btn.primary-teacher { background: #006039; color: white; }
.mock-btn.outline { background: white; color: #0D3B6F; border: 1px solid #0D3B6F; }
.mock-btn.danger { background: #E53935; color: white; }
.mock-block {
  background: white;
  border: 1px solid #E8ECF2;
  border-radius: 4px;
  padding: 8px 10px;
  margin: 4px 0;
  font-size: 11px;
}
.notice {
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 11px;
  margin: 6px 0;
  border-left: 4px solid;
}
.notice.err { background: #FCE4EC; border-color: #E53935; color: #C62828; }
.notice.ok { background: #E8F5E9; border-color: #43A047; color: #2E7D32; }
.notice.warn { background: #FFF3E0; border-color: #FFA726; color: #E65100; }
.notice.info { background: #E3F2FD; border-color: #2979FF; color: #1565C0; }
.breadcrumb { font-size: 11px; color: #666; margin-bottom: 8px; }
.breadcrumb a { color: #0D3B6F; }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.chip.ok { background: #E8F5E9; color: #2E7D32; }
.chip.warn { background: #FFF3E0; color: #E65100; }
.chip.err { background: #FCE4EC; color: #C62828; }
.chip.info { background: #E3F2FD; color: #1565C0; }
.nav-back {
  padding: 12px 32px;
  background: white;
  border-bottom: 1px solid #E8ECF2;
  font-size: 13px;
}
.fix-note {
  background: #E3F2FD;
  border-left: 3px solid #2979FF;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 12px;
}
.teacher-page .fix-note {
  background: #E8F5E9;
  border-left-color: #43A047;
}
input, textarea, select {
  font-family: inherit;
}
