* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  background: #F5F7FA;
  color: #1A1A1A;
  line-height: 1.6;
}
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 #E5E7EB;
  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: #6B7280;
  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 #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}
.card-header {
  padding: 10px 14px;
  font-weight: 700;
  font-size: 12px;
}
.card-header.before { background: #FEE2E2; color: #991B1B; }
.card-header.after { background: #DCFCE7; color: #166534; }
.card-body { padding: 14px; min-height: 200px; background: #FAFAFA; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
}
.badge.critical { background: #D63B3B; color: white; }
.badge.high { background: #F77D00; color: white; }
.badge.medium { background: #E5B800; color: white; }
.badge.low { background: #2F9E44; color: white; }
.mock {
  background: white;
  border: 1px solid #E5E7EB;
  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: #D63B3B; color: white; }
.mock-block {
  background: white;
  border: 1px solid #E5E7EB;
  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: #FEE2E2; border-color: #D63B3B; color: #991B1B; }
.notice.ok { background: #DCFCE7; border-color: #2F9E44; color: #166534; }
.notice.warn { background: #FFF8E1; border-color: #F5C518; color: #92400E; }
.notice.info { background: #DBEAFE; border-color: #3B82F6; color: #1E40AF; }
.breadcrumb { font-size: 11px; color: #6B7280; margin-bottom: 8px; }
.breadcrumb a { color: #0D3B6F; }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}
.chip.ok { background: #DCFCE7; color: #166534; }
.chip.warn { background: #FFF8E1; color: #92400E; }
.chip.err { background: #FEE2E2; color: #991B1B; }
.chip.info { background: #DBEAFE; color: #1E40AF; }
.nav-back {
  padding: 12px 32px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  font-size: 13px;
}
.fix-note {
  background: #F0F9FF;
  border-left: 3px solid #0EA5E9;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 12px;
}
.teacher-page .fix-note {
  background: #ECFDF5;
  border-left-color: #059669;
}
input, textarea, select {
  font-family: inherit;
}
