* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  background: #f4f6f8; color: #2c3440; font-size: 14px; line-height: 1.6;
}
code { background: #eef1f4; padding: 1px 6px; border-radius: 4px; font-size: 13px; }

/* レイアウト */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: #1f2a37; color: #d5dbe3;
  display: flex; flex-direction: column; flex-shrink: 0;
}
.brand {
  padding: 20px 16px; font-size: 18px; font-weight: 700; color: #fff;
  border-bottom: 1px solid #2e3b4b; line-height: 1.3;
}
.brand small { font-size: 10px; font-weight: 400; color: #8b98a9; letter-spacing: 1px; }
.sidebar nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: block; padding: 11px 16px; color: #d5dbe3; text-decoration: none; font-size: 13px;
}
.nav-item:hover { background: #2e3b4b; color: #fff; }
.nav-item.disabled { color: #5d6b7d; cursor: default; }
.nav-item.disabled em { font-size: 10px; font-style: normal; background: #2e3b4b; padding: 1px 6px; border-radius: 8px; margin-left: 4px; }
.sidebar-footer { padding: 14px 16px; border-top: 1px solid #2e3b4b; }
.user-info { margin-bottom: 8px; font-size: 13px; color: #fff; }
.user-info small { color: #8b98a9; }

.content { flex: 1; padding: 28px 32px; max-width: 1100px; }
.page-title { font-size: 20px; margin-bottom: 20px; }

/* カード */
.card {
  background: #fff; border-radius: 10px; padding: 20px 24px; margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(20, 30, 40, .08);
}
.card-narrow { max-width: 560px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-header h2 { font-size: 15px; }

/* 統計カード */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(20, 30, 40, .08); }
.stat-value { font-size: 26px; font-weight: 700; color: #06c755; }
.stat-label { font-size: 12px; color: #6b7684; margin-top: 2px; }

/* テーブル */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #edf0f3; }
th { font-size: 12px; color: #6b7684; font-weight: 600; background: #fafbfc; }
tr:hover td { background: #f8fafb; }
td.empty { text-align: center; color: #9aa4b0; padding: 28px; }
td.actions { white-space: nowrap; }
.muted { color: #9aa4b0; }

/* バッジ */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-active { background: #e3f7eb; color: #0f9d58; }
.badge-preparing { background: #fff4e0; color: #c77700; }
.badge-closed, .badge-retired { background: #eceff2; color: #6b7684; }
.badge-suspended { background: #fff4e0; color: #c77700; }
.badge-banned { background: #fde8e8; color: #d93025; }

/* フォーム */
label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 12px;
  border: 1px solid #d4dae1; border-radius: 6px; font-size: 14px; font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #06c755; }
input:disabled { background: #f2f4f6; color: #8b98a9; }
label small { font-weight: 400; color: #9aa4b0; }
.required { color: #d93025; font-size: 11px; margin-left: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ボタン */
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 6px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit;
}
.btn-primary { background: #06c755; color: #fff; }
.btn-primary:hover { background: #05b34c; }
.btn-ghost { background: #eef1f4; color: #2c3440; }
.btn-ghost:hover { background: #e2e7ec; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* アラート */
.alert { padding: 11px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; }
.alert-error { background: #fde8e8; color: #b3261e; }
.alert-success { background: #e3f7eb; color: #0f7a44; }

/* 詳細リスト */
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.detail-list dt { color: #6b7684; font-size: 13px; }

/* ログイン画面 */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #1f2a37; }
.login-card { background: #fff; border-radius: 12px; padding: 36px 40px; width: 380px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }
.login-card h1 { font-size: 20px; text-align: center; }
.login-sub { text-align: center; color: #9aa4b0; font-size: 11px; letter-spacing: 2px; margin: 4px 0 24px; }
