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

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
}

header {
  background: #1a2840;
  color: #fff;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .site-name { font-size: 1rem; font-weight: 600; letter-spacing: .05em; }
header .badge { background: #f59e0b; color: #1a2840; font-size: .7rem; padding: 2px 8px; border-radius: 4px; margin-left: .5rem; }
header nav { display: flex; align-items: center; gap: 1rem; }
header nav a { color: #cdd5e0; text-decoration: none; font-size: .875rem; }
header nav a:hover { color: #fff; }
.nav-user { color: #cdd5e0; font-size: .875rem; }
.nav-logout { background: none; border: none; color: #cdd5e0; font-size: .875rem; cursor: pointer; padding: 0; }
.nav-logout:hover { color: #fff; }

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

footer { text-align: center; padding: 2rem; color: #9ca3af; font-size: .8rem; }

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  padding: 2rem;
}

h1 { font-size: 1.25rem; margin-bottom: 1.5rem; color: #1a2840; }

.alert {
  padding: .75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warn    { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
input[type=email], input[type=password], input[type=text], select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
}
input:focus, select:focus { border-color: #1a2840; }

.form-group { margin-bottom: 1.25rem; }

.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary   { background: #1a2840; color: #fff; }
.btn-primary:hover { background: #2d4060; }
.btn-danger    { background: #dc2626; color: #fff; }
.btn-secondary { background: #e5e7eb; color: #374151; }
.btn-sm        { padding: .35rem .9rem; font-size: .875rem; }
.btn-block     { display: block; width: 100%; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: .85rem; white-space: nowrap; }
th { background: #f9fafb; font-weight: 600; color: #6b7280; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: none; }

.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-muted { color: #6b7280; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.status-active { color: #16a34a; font-weight: 600; }
.status-inactive { color: #dc2626; }
.row { display: flex; gap: 1rem; }
.row > * { flex: 1; }
.actions { display: flex; gap: .5rem; margin-top: 1.5rem; }
.card-narrow { max-width: 420px; margin: 0 auto; }
.card-medium { max-width: 520px; }
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.header-row h1 { margin: 0; }
