body,
.content-wrapper,
.main-header,
.main-sidebar,
table,
table th,
table td {
  font-family: "M PLUS 1p", sans-serif;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "M PLUS 1p", sans-serif;
}

.w-50 {
  width: 50px !important;
}

.w-60 {
  width: 60px !important;
}

.w-65 {
  width: 65px !important;
}

.w-70 {
  width: 70px !important;
}

.w-75 {
  width: 75px !important;
}

.w-80 {
  width: 80px !important;
}

.w-90 {
  width: 90px !important;
}

.w-100 {
  width: 100px !important;
}

.w-110 {
  width: 110px !important;
}

.w-120 {
  width: 120px !important;
}

.w-130 {
  width: 130px !important;
}

.w-140 {
  width: 140px !important;
}

.w-150 {
  width: 150px !important;
}

.w-160 {
  width: 160px !important;
}

.w-170 {
  width: 170px !important;
}

.w-180 {
  width: 180px !important;
}

.w-190 {
  width: 190px !important;
}

.w-200 {
  width: 200px !important;
}

.w-210 {
  width: 210px !important;
}

.w-220 {
  width: 220px !important;
}

.w-230 {
  width: 230px !important;
}

.w-240 {
  width: 240px !important;
}

.w-250 {
  width: 250px !important;
}

.w-260 {
  width: 260px !important;
}

.w-270 {
  width: 270px !important;
}

.w-280 {
  width: 280px !important;
}

.w-290 {
  width: 290px !important;
}

.w-300 {
  width: 300px !important;
}

.w-310 {
  width: 310px !important;
}

.w-320 {
  width: 320px !important;
}

.w-330 {
  width: 330px !important;
}

.w-340 {
  width: 340px !important;
}

.w-350 {
  width: 350px !important;
}

.w-360 {
  width: 360px !important;
}

.w-370 {
  width: 370px !important;
}

.w-380 {
  width: 380px !important;
}

.w-390 {
  width: 390px !important;
}

.w-400 {
  width: 400px !important;
}

.w-410 {
  width: 410px !important;
}

.w-420 {
  width: 420px !important;
}

.w-430 {
  width: 430px !important;
}

.w-440 {
  width: 440px !important;
}

.w-450 {
  width: 450px !important;
}

.w-460 {
  width: 460px !important;
}

.w-470 {
  width: 470px !important;
}

.w-480 {
  width: 480px !important;
}

.w-490 {
  width: 490px !important;
}

.w-500 {
  width: 500px !important;
}

.h-15 {
  height: 15px !important;
}

.h-20 {
  height: 20px !important;
}

.h-25 {
  height: 25px !important;
}

.h-30 {
  height: 30px !important;
}

.h-35 {
  height: 35px !important;
}

.h-40 {
  height: 40px !important;
}

.h-45 {
  height: 45px !important;
}

.h-50 {
  height: 50px !important;
}

.h-55 {
  height: 55px !important;
}

.h-60 {
  height: 60px !important;
}

.h-70 {
  height: 70px !important;
}

.h-80 {
  height: 80px !important;
}

.h-90 {
  height: 90px !important;
}

.h-100 {
  height: 100px !important;
}

.h-110 {
  height: 110px !important;
}

.h-120 {
  height: 120px !important;
}

.h-130 {
  height: 130px !important;
}

.h-140 {
  height: 140px !important;
}

.h-150 {
  height: 150px !important;
}

.h-160 {
  height: 160px !important;
}

.h-170 {
  height: 170px !important;
}

.h-180 {
  height: 180px !important;
}

.h-190 {
  height: 190px !important;
}

.h-200 {
  height: 200px !important;
}

.m-0-auto {
  margin: 0 auto !important;
}


/* Sidebar */
.sidebar-dark-primary {
  background-color: #f5f5f5 !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
  background-color: #d6eaff !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link:hover {
  background-color: #B4E1D7 !important;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link {
  color: #404040 !important;
}

/* アコーディオン（サブメニュー）内のテキスト色変更 */
.nav-sidebar .nav-treeview>.nav-item>.nav-link {
  color: #404040;
}

/* ホバー時のテキスト色変更 */
.nav-sidebar .nav-treeview>.nav-item>.nav-link:hover {
  color: #6495ed;
  /* 例: #17a2b8 */
}

/* アクティブなサブメニュー項目のテキスト色変更 */
.nav-sidebar .nav-treeview>.nav-item>.nav-link.active {
  color: #0000cd;
  /* 例: #ffd700 */
}

/* オプション: アイコンの色も変更したい場合 */
.nav-sidebar .nav-treeview>.nav-item>.nav-link i {
  color: #a0a0a0;
  /* 例: #28a745 */
}

/* Navbar */
.brand-link .brand-text {
  color: #606060 !important;
}

.dark-mode .brand-link .brand-text {
  color: #e3f2fd !important;
}

.brand-link:hover .brand-text {
  color: #404040 !important;
}

/* nav-header の色を調整 */
.nav-sidebar .nav-header {
  color: #606060 !important;
  font-weight: bold;
}

/* logo調整 */
.brand-link {
  padding: 10px 15px;
  text-align: center;
}

.brand-link .brand-image {
  float: none;
  max-height: 25px;
  width: auto;
  margin: 0;
}

/* ホバー時のエフェクト */
.brand-link:hover {
  opacity: 0.8;
}

/*  ロゴを非表示にする */
.sidebar-mini.sidebar-collapse .brand-link {
  visibility: hidden;
  height: 0;
  padding: 0;
}

.btn-blue {
  background-color: #7fbfff !important;
  border-color: #7fbfff !important;
  color: #404040 !important;
}

.btn-blue:hover {
  background-color: #1e90ff !important;
  border-color: #1e90ff !important;
  color: #ffffff !important;
}

/* ボタンのサイズや余白を調整する場合 */
.auth-btn {
  padding: 10px 20px;
  font-size: 16px;
  /* その他のスタイル */
}

/* ボタンカラー */
.btn-pastel-blue {
  background-color: #7fbfff;
  color: #ffffff;
}

.btn-pastel-red {
  background-color: #ff7f7f;
  color: #ffffff;
}

.btn-pastel-gray {
  background-color: #a0a0a0;
  color: #ffffff;
}

.btn-size-100 {
  width: 100px;
}

.btn-size-120 {
  width: 120px;
}

.btn-size-150 {
  width: 150px;
}

/* ページネーション　*/
.pagination a {
  color: #7fbfff;
}

/* アクティブなページネーションリンクのスタイル */
.pagination .active .page-link {
  background-color: #7fbfff;
  color: #ffffff;
}

/* ページネーションリンクのホバー時のスタイル */
.pagination a:hover {
  background-color: #e0e0e0;
}

/* エラーテキスト　メッセージ */
.error-text {
  color: red;
}

/* ログイン画面のロゴサイズ調整 */
.login-logo img {
  width: 200px;
  height: auto;
}

/* ログイン画面の調整 */
.login-page,
.register-page {
  align-items: flex-start;
  padding-bottom: 200px;
}

.login-box,
.register-box {
  margin-top: 0;
}

@media (max-height: 600px) {

  .login-page,
  .register-page {
    padding-bottom: 50px;
  }
}

/* モーダル　横幅調整 */

.modal.modal-custom-size-300 .modal-dialog {
  max-width: 300px;
  font-size: 18px;
  padding-bottom: 300px;
}

.modal-custom-size-300 .modal-content {
  max-height: 400px !important;
}

.modal.modal-custom-size-600 .modal-dialog {
  max-width: 600px;
  font-size: 18px;
}

.modal.modal-custom-size-700 .modal-dialog {
  max-width: 700px;
  font-size: 18px;
}

.modal.modal-custom-size-860 .modal-dialog {
  max-width: 860px;
  font-size: 18px;
}

.modal.modal-custom-size-1000 .modal-dialog {
  max-width: 1000px;
  font-size: 18px;
}

.modal-custom-size-1310 .modal-dialog {
  max-width: 1310px;
  font-size: 18px;
}

.modal-custom-size-1400 .modal-dialog {
  max-width: 1400px;
  width: 90%;
  font-size: 18px;
  margin: 1.75rem auto;
}

.modal-custom-size-1400 .modal-content {
  max-height: 750px !important;
}

@media (max-width: 1400px) {
  .modal-custom-size-1400 .modal-dialog {
    width: 90%;
    max-width: 90%;
  }
}

.modal.modal-custom-size-1600 .modal-dialog {
  max-width: 1600px;
  font-size: 18px;
}


.bg-kaikeitani {
  background-color: #dbffdb;
}

.bg-karikata {
  background-color: #CCEDF8;
}

.bg-kashikata {
  background-color: #FFE1CC;
}


.editable-cell {
  position: relative;
}

.editable-cell input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  text-align: center;
  background: white;
  display: none;
}

.editable-cell.editing input {
  display: block;
}

.editable-cell.editing .cell-content {
  visibility: hidden;
}

/* ローディングアニメーション */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.text-red {
  color: red !important;
}

/* 有効・無効スライドボタン表示*/
/* スライドボタン全体のスタイル */

.switch {
  position: absolute;
  top: 48px;
  left: 94%;
  transform: translate(-30%, -90%);
  display: inline-block;
  width: 70px;
  /* スイッチ全体の幅 */
  height: 30px;
  /* スイッチ全体の高さ */
}

/* スライダー部分のデザイン */
.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  /* 初期の背景色（無効時） */
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

/* チェック状態の背景色 */
.form-check-input:checked+.slider {
  background-color: #4caf50;
  /* 有効時の背景色 */
}

/* 丸部分（スライダー） */
.slider::before {
  content: '';
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease-in-out;
}

/* チェック時のスライダー丸移動 */
.form-check-input:checked+.slider::before {
  transform: translateX(40px);
}

/* テキスト部分 */
.slider span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  /* 初期状態は非表示 */
  width: 100%;
  text-align: center;
}

/* 無効時のテキスト（右側） */
.slider .text-right {
  right: 10px;
  opacity: 1;
  /* 初期状態で表示 */
}

/* 有効時のテキスト（左側） */
.form-check-input:checked+.slider .text-left {
  left: 10px;
  opacity: 1;
  /* チェック時に表示 */
}

/* 無効時のテキストを非表示 */
.form-check-input:checked+.slider .text-right {
  opacity: 0;
}


.delete-row,
#add-row {
  width: 75px;
  height: 28px;
}