[hidden] {
  display: none !important;
}

:root {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;

  color: #1f2937;
  background: #f4f6f8;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: #f4f6f8;
  color: #1f2937;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ヘッダー */

.header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  background: #17365d;
  color: #ffffff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 12%);
}

.header h1 {
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 1.4;
}

.header__sub {
  margin: 0;
  font-size: 12px;
  opacity: 0.75;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

/* 全体 */

.container {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.card {
  margin-bottom: 22px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgb(15 23 42 / 5%);
}

.card h2 {
  margin: 0;
  font-size: 20px;
}

.description {
  margin: 8px 0 24px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

/* ログイン */

.login-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 50px;
}

.login-card {
  width: min(440px, 100%);
}

/* 入力項目 */

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: #1f2937;
  outline: none;
}

input:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 13%);
}

/* ボタン */

.button {
  min-height: 40px;
  padding: 9px 17px;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
}

.button--primary {
  background: #2563eb;
  color: #ffffff;
}

.button--primary:hover:not(:disabled) {
  background: #1d4ed8;
}

.button--secondary {
  background: #e2e8f0;
  color: #334155;
}

.button--secondary:hover:not(:disabled) {
  background: #cbd5e1;
}

.button--full {
  width: 100%;
}

/* メッセージ */

.message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.message--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.message--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-message {
  min-height: 21px;
  margin: 14px 0 0;
  color: #b91c1c;
  font-size: 13px;
}

/* ナビゲーション */

.navigation {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.navigation__item {
  flex: 0 0 auto;
  padding: 10px 17px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  font-weight: 700;
}

.navigation__item--active {
  background: #17365d;
  color: #ffffff;
}

/* 見出し */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading__sub {
  margin: 0 0 3px;
  color: #64748b;
  font-size: 12px;
}

.count-badge {
  display: inline-flex;
  min-width: 50px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  background: #eaf2f8;
  border-radius: 999px;
  color: #17365d;
  font-size: 13px;
  font-weight: 700;
}

/* 表 */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

td {
  font-size: 14px;
}

.empty-cell {
  padding: 32px;
  color: #64748b;
  text-align: center;
}

.status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status--active {
  background: #dcfce7;
  color: #166534;
}

.status--inactive {
  background: #f1f5f9;
  color: #475569;
}

/* スマートフォン */

@media (max-width: 720px) {
  .header {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .header h1 {
    font-size: 17px;
  }

  .user-area {
    align-items: flex-end;
    flex-direction: column;
  }

  .container {
    padding: 18px 12px 40px;
  }

  .card {
    padding: 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
