.login-form-container {
  max-width: 400px;
  margin: 50px auto;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.login-form-container .card-header {
  background-color: #007bff;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

.login-form-container .card-body {
  padding: 2rem;
}

/* ログインエラーアラートのカスタムスタイル */
.login-error-alert {
  animation: shake 0.5s ease-in-out;
  border-left: 4px solid #dc3545;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-icon {
  font-size: 1.2em;
  margin-right: 0.5rem;
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.alert-close:hover {
  opacity: 1;
}

/* チェック機能のスタイル */
.check-control {
  min-width: 120px;
}

.check-status.checked {
  color: #28a745;
  font-size: 18px;
  font-weight: bold;
}

/* テーブルカスタマイズ */
.table > :not(caption) > * > * {
  vertical-align: middle;
}

/* モーダルのカスタマイズ */
.modal-header {
  border-bottom: 2px solid #f8f9fa;
}

.modal-footer {
  border-top: 2px solid #f8f9fa;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .table-responsive {
    border: none;
  }

  .check-control {
    min-width: 80px;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-item {
    margin: 0.125rem;
  }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
  .login-form-container {
    background-color: #2d3748;
    color: #ffffff;
  }

  .login-form-container .form-control {
    background-color: #4a5568;
    border-color: #718096;
    color: #ffffff;
  }

  .login-form-container .form-control:focus {
    background-color: #4a5568;
    border-color: #63b3ed;
    color: #ffffff;
  }
}

/* ローディング効果 */
.loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* 統計カードのカスタムスタイル */
.card .fs-4 {
  font-size: 1.5rem !important;
}

/* 検索結果ハイライト */
mark {
  background-color: #fff3cd;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* アニメーション効果 */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* カスタムバッジ */
.badge.bg-info {
  color: #000 !important;
}

/* テーブル行ホバー効果の強化 */
.table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th {
  background-color: rgba(13, 110, 253, 0.05);
}

/* フォーカス状態の改善 */
.form-control:focus,
.btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 印刷用スタイル */
@media print {
  .btn,
  .pagination,
  .modal,
  .alert {
    display: none !important;
  }

  .table {
    border-collapse: collapse !important;
  }

  .table td,
  .table th {
    border: 1px solid #000 !important;
  }
}

/* モーダルのz-index修正 */
.modal.show {
  z-index: 1050;
}

.modal-backdrop {
  z-index: 1040;
}

.modal-dialog {
  z-index: 1060;
  position: relative;
}

/* WordPressテーマとの競合を防ぐ */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* フィルター機能のスタイル */

.search-form .form-check-input {
  margin-right: 8px;
}

.search-form .form-check-label {
  font-size: 14px;
  margin-bottom: 0;
}

/* フィルター表示スタイル */
.filter-summary {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #e7f3ff;
  border-radius: 5px;
  border-left: 4px solid #007bff;
}

.filter-tag {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .search-form .row {
    row-gap: 15px;
  }

  .search-form .col-md-2 {
    width: 100%;
  }

  .form-check {
    margin-top: 0 !important;
  }
}

コピー

/* ===========================
   基本スタイル
   =========================== */

/* テーブルホバー効果 */
.table-hover {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

/* 検索結果ハイライト */
mark {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
}

/* 文字数カウンター */
.char-counter {
  transition: opacity 0.3s ease;
}

/* メッセージポップアップ */
.message-popup {
  box-sizing: border-box;
  word-wrap: break-word;
}

/* ===========================
   ローディングアニメーション
   =========================== */

/* スピン */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ローディングスピナー */
.loading-spinner {
  color: #007bff;
  font-size: 12px;
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* ===========================
   一括チェック機能
   =========================== */

/* 全選択チェックボックス */
#select-all-checkbox {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* 行チェックボックス */
.row-checkbox {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

/* 一括チェックボタン（無効時） */
#bulk-check-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* テーブルヘッダー */
.table-dark th {
  vertical-align: middle;
}

/* ===========================
   ログインフォーム
   =========================== */

.login-form-container {
  max-width: 400px;
  margin: 0 auto;
}

.login-form-container .card {
  border-radius: 10px;
}

.login-form-container .card-header {
  background-color: #007bff;
  color: white;
  border-radius: 10px 10px 0 0;
}

/* ===========================
   レスポンシブ対応
   =========================== */

/* タブレット以下 */
@media (max-width: 768px) {
  .table {
    font-size: 0.875rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* 一括操作パネル（モバイル） */
  #bulk-check-form .card-body {
    flex-direction: column;
  }

  #bulk-check-form .card-body > div {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* モバイル */
@media (max-width: 576px) {
  .table {
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.65rem;
  }
}

/* ===========================
   ユーティリティクラス
   =========================== */

/* テキスト省略 */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* カード影 */
.card-shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-shadow-lg {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===========================
   モーダル（AJAX版チェック機能用）
   =========================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.modal-header h5 {
  margin: 0;
  font-size: 1.25rem;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
}

.modal-body {
  padding: 15px 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
  margin-top: 15px;
}

/* ===========================
   プリント時の調整
   =========================== */

@media print {
  .no-print {
    display: none !important;
  }

  .table {
    font-size: 10pt;
  }

  .badge {
    border: 1px solid #000;
    color: #000 !important;
    background-color: #fff !important;
  }
}
