@charset "utf-8";
/* CSS Document */

/*─────────────────────────────────────────────────
  1. 汎用スタイル
─────────────────────────────────────────────────*/
.text-center {
  text-align: center;
}

.btn-primary {
  width: 100%;
  background-color: #3f5d7c;
  border-color: #3f5d7c;
}

/*─────────────────────────────────────────────────
  2. ログインページ関連
─────────────────────────────────────────────────*/
.login-container {
  padding-top: 6%;
  max-width: 420px;
  margin: auto;
}

.login-panel {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 25px;
}

.panel-body {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 2px;
  padding: 20px;
  position: relative;
}

/*─────────────────────────────────────────────────
  3. ページ共通ヘッダー関連
─────────────────────────────────────────────────*/
body {
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

#header {
  width: 100%;
  position: fixed;
  z-index: 1000;
  background-color: #fff;
  height: 62px;
  border-bottom: 1px solid #eaeaea;
}

#logo {
  float: left;
  max-width: 600px;
  background-color: #34495e;
  padding: 18px 10px 18px 18px;
  height: 56px;
  text-align: center;
}

#logo.light-version {
  background-color: #f7f9fa;
  border-bottom: 1px solid #eaeaea;
  text-align: center;
}

.header-link {
  padding: 18px 26px;
  font-size: 14px;
  float: left;
  border-right: 1px solid #eaeaea;
  border-left: 1px solid #eaeaea;
  margin-right: 15px;
  background: #f7f9fa;
  cursor: pointer;
}

.fixed-navbar #header {
  width: 100%;
  position: fixed;
  z-index: 1000;
}

.navbar-right {
  float: right !important;
  margin-right: 15px;
}

.header-border {
  background-color: #f7f9fa;
}

/*─────────────────────────────────────────────────
  4. jQuery UI Datepicker （必要であれば）
─────────────────────────────────────────────────*/
.ui-datepicker select.ui-datepicker-days,
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
  width: auto;
}

/*─────────────────────────────────────────────────
  5. リストメニュー共通（マーカーを消す）
─────────────────────────────────────────────────*/
ul.g_menu {
  margin: 0;
  padding: 0;
  list-style: none; /* 黒丸を非表示 */
}

/*─────────────────────────────────────────────────
  6. 親メニュー見出し（title_menu）のスタイル
─────────────────────────────────────────────────*/
ul.g_menu > li.title_menu {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background-color: #f9f9f9;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 12px 8px 0;
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
}

ul.g_menu > li.title_menu .title_innerHead {
  display: flex;
  align-items: center;
}

ul.g_menu > li.title_menu .title_innerHead i {
  margin-right: 6px;
  line-height: 1;
  font-size: 1.1em;
}

/* 矢印アイコン（デフォルト開いた状態＝下向き） */
ul.g_menu > li.title_menu::after {
  content: "\f105"; /* FontAwesome fa-angle-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s ease;
}

/* 閉じた状態は右向き（0deg） */
ul.g_menu > li.title_menu.closed::after {
  transform: translateY(-50%) rotate(0deg);
}

/*─────────────────────────────────────────────────
  7. 子メニュー（ul.list-group.g_menu）のスタイル
─────────────────────────────────────────────────*/
ul.g_menu + div > ul.list-group.g_menu {
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;

  margin: 0;
  padding: 0;
  list-style: none;
  display: block; /* デフォルトで開いた状態 */
}

ul.g_menu + div > ul.list-group.g_menu > li.list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
  padding-left: 24px;
  cursor: pointer;
  background-color: #fff;
  color: #212529;
}

ul.g_menu + div > ul.list-group.g_menu > li.list-group-item:last-child {
  border-bottom: none;
}

@media (max-width: 576px) {
  ul.g_menu > li.title_menu {
    padding: 6px 10px 6px 0;
    font-size: 0.9rem;
  }
  ul.g_menu > li.title_menu .title_innerHead i {
    font-size: 1em;
    margin-right: 4px;
  }
  ul.g_menu + div > ul.list-group.g_menu > li.list-group-item {
    padding-left: 20px;
  }
}

/*─────────────────────────────────────────────────
  8. カラーモード切替対応：ライトモード
─────────────────────────────────────────────────*/
html[data-bs-theme="light"] {
  background-color: #fff;  /* ページ背景は白 */
  color: #212529;          /* デフォルト文字色 */
}

/* 親メニュー見出し（ライト） */
html[data-bs-theme="light"] ul.g_menu > li.title_menu {
  background-color: #f9f9f9;
  color: #212529;
  border-color: #ccc;
}
html[data-bs-theme="light"] ul.g_menu > li.title_menu .title_innerHead i {
  color: #444;
}
html[data-bs-theme="light"] ul.g_menu > li.title_menu::after {
  color: #444;
}
/* 子メニュー（ライト） */
html[data-bs-theme="light"] ul.g_menu + div > ul.list-group.g_menu {
  background-color: #fff;
  border-color: #ccc;
}
html[data-bs-theme="light"] ul.g_menu + div > ul.list-group.g_menu > li.list-group-item {
  background-color: #fff;
  color: #212529;
  border-bottom: 1px solid #eee;
}
html[data-bs-theme="light"] ul.g_menu + div > ul.list-group.g_menu > li.list-group-item:last-child {
  border-bottom: none;
}

/*─────────────────────────────────────────────────
  9. カラーモード切替対応：ダークモード
─────────────────────────────────────────────────*/
html[data-bs-theme="dark"] {
  background-color: #121212;  /* ページ背景を真っ黒に近い濃いグレー */
  color: #e0e0e0;            /* 文字はライトグレー */
}

/* 親メニュー見出し（ダーク） */
html[data-bs-theme="dark"] ul.g_menu > li.title_menu {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #333;
}
html[data-bs-theme="dark"] ul.g_menu > li.title_menu .title_innerHead i {
  color: #ccc;
}
html[data-bs-theme="dark"] ul.g_menu > li.title_menu::after {
  color: #ccc;
}
/* 子メニュー（ダーク） */
html[data-bs-theme="dark"] ul.g_menu + div > ul.list-group.g_menu {
  background-color: #1e1e1e;
  border-color: #333;
}
html[data-bs-theme="dark"] ul.g_menu + div > ul.list-group.g_menu > li.list-group-item {
  background-color: #1e1e1e;
  color: #ccc;
  border-bottom: 1px solid #444;
}
html[data-bs-theme="dark"] ul.g_menu + div > ul.list-group.g_menu > li.list-group-item:last-child {
  border-bottom: none;
}

/*─────────────────────────────────────────────────
 10. カラーモード切替対応：テーブル全体
─────────────────────────────────────────────────*/
/* テーブルに table-dark を付与した場合も、自動でダーク配色される。追加で微調整したいときは以下を使う */
html[data-bs-theme="dark"] table.table {
  color: #e0e0e0;           /* テキストをライトグレー */
  background-color: #1e1e1e !important; /* テーブル背景を濃いグレー */
  border-color: #343a40 !important;     /* テーブル外枠 */
}

/* セル罫線（縦横） */
html[data-bs-theme="dark"] table.table th,
html[data-bs-theme="dark"] table.table td {
  border-color: #333 !important;
}

/* ヘッダー行（<thead>） */
html[data-bs-theme="dark"] table.table thead th {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
}

/* table-striped の奇数／偶数行 */
html[data-bs-theme="dark"] table.table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #2a2a2a !important;
}
html[data-bs-theme="dark"] table.table.table-striped tbody tr:nth-of-type(even) {
  background-color: #1e1e1e !important;
}

/* フッター行（<tfoot>） */
html[data-bs-theme="dark"] table.table tfoot th,
html[data-bs-theme="dark"] table.table tfoot td {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #333 !important;
}

/*─────────────────────────────────────────────────
 11. ライトモード時のテーブル（Bootstrap 既定配色を継承）
─────────────────────────────────────────────────*/
html[data-bs-theme="light"] table.table {
  color: #212529;
  background-color: #ffffff;
}
html[data-bs-theme="light"] table.table th,
html[data-bs-theme="light"] table.table td {
  border-color: #dee2e6;
}
html[data-bs-theme="light"] table.table thead th {
  background-color: #f8f9fa;
  color: #212529;
}
html[data-bs-theme="light"] table.table.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}
html[data-bs-theme="light"] table.table.table-striped tbody tr:nth-of-type(even) {
  background-color: #ffffff;
}
html[data-bs-theme="light"] table.table tfoot th,
html[data-bs-theme="light"] table.table tfoot td {
  background-color: #f8f9fa;
  color: #212529;
  border-color: #dee2e6;
}

/*─────────────────────────────────────────────────
 12. カラーモード切替対応：フォームコントロール全般
─────────────────────────────────────────────────*/
/* テキスト入力、パスワード、メール、number、url、tel、month、.form-control 共通 */
html[data-bs-theme="dark"] input[type="text"],
html[data-bs-theme="dark"] input[type="password"],
html[data-bs-theme="dark"] input[type="email"],
html[data-bs-theme="dark"] input[type="number"],
html[data-bs-theme="dark"] input[type="url"],
html[data-bs-theme="dark"] input[type="tel"],
html[data-bs-theme="dark"] input[type="month"],
html[data-bs-theme="dark"] input.form-control {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !important;
}

/* フォーカス時 */
html[data-bs-theme="dark"] input[type="text"]:focus,
html[data-bs-theme="dark"] input[type="password"]:focus,
html[data-bs-theme="dark"] input[type="email"]:focus,
html[data-bs-theme="dark"] input[type="number"]:focus,
html[data-bs-theme="dark"] input[type="url"]:focus,
html[data-bs-theme="dark"] input[type="tel"]:focus,
html[data-bs-theme="dark"] input[type="month"]:focus,
html[data-bs-theme="dark"] input.form-control:focus {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #666 !important;
  box-shadow: none !important;
  outline: 1px solid #666 !important;
}

/* プレースホルダー */
html[data-bs-theme="dark"] input[type="text"]::placeholder,
html[data-bs-theme="dark"] input[type="password"]::placeholder,
html[data-bs-theme="dark"] input[type="email"]::placeholder,
html[data-bs-theme="dark"] input[type="number"]::placeholder,
html[data-bs-theme="dark"] input[type="url"]::placeholder,
html[data-bs-theme="dark"] input[type="tel"]::placeholder,
html[data-bs-theme="dark"] input[type="month"]::placeholder,
html[data-bs-theme="dark"] input.form-control::placeholder {
  color: #888 !important;
  opacity: 1 !important;
}

/* テキストエリア */
html[data-bs-theme="dark"] textarea,
html[data-bs-theme="dark"] textarea.form-control {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !important;
  resize: vertical;
}
html[data-bs-theme="dark"] textarea:focus,
html[data-bs-theme="dark"] textarea.form-control:focus {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #666 !important;
  box-shadow: none !important;
  outline: 1px solid #666 !important;
}
html[data-bs-theme="dark"] textarea::placeholder,
html[data-bs-theme="dark"] textarea.form-control::placeholder {
  color: #888 !important;
}

/* セレクトボックス */
html[data-bs-theme="dark"] select,
html[data-bs-theme="dark"] select.form-select {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !important;

  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: 32px !important;
  background-image:
    url("data:image/svg+xml;charset=UTF-8,\
      <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23e0e0e0' viewBox='0 0 16 16'>\
        <path d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/>\
      </svg>"
    ) !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px 16px !important;
}
html[data-bs-theme="dark"] select:focus,
html[data-bs-theme="dark"] select.form-select:focus {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #666 !important;
  box-shadow: none !important;
  outline: 1px solid #666 !important;
}

/* month（年月）入力 */
html[data-bs-theme="dark"] input[type="month"] {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !important;
}
html[data-bs-theme="dark"] input[type="month"]:focus {
  background-color: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #666 !important;
  box-shadow: none !important;
  outline: 1px solid #666 !important;
}

/* チェックボックス・ラジオのチェック済み時 */
html[data-bs-theme="dark"] input[type="checkbox"]:checked + label::before,
html[data-bs-theme="dark"] input[type="radio"]:checked + label::before {
  border-color: #666 !important;
  background-color: #444 !important;
}

/*─────────────────────────────────────────────────
 13. ライトモード時：フォームコントロール（Bootstrap デフォルト）
─────────────────────────────────────────────────*/
html[data-bs-theme="light"] input[type="text"],
html[data-bs-theme="light"] input[type="password"],
html[data-bs-theme="light"] input[type="email"],
html[data-bs-theme="light"] input[type="number"],
html[data-bs-theme="light"] input[type="url"],
html[data-bs-theme="light"] input[type="tel"],
html[data-bs-theme="light"] input[type="month"],
html[data-bs-theme="light"] input.form-control {
  background-color: #ffffff !important;
  color: #212529 !important;
  border: 1px solid #ced4da !important;
}
html[data-bs-theme="light"] input[type="text"]:focus,
html[data-bs-theme="light"] input[type="password"]:focus,
html[data-bs-theme="light"] input[type="email"]:focus,
html[data-bs-theme="light"] input[type="number"]:focus,
html[data-bs-theme="light"] input[type="url"]:focus,
html[data-bs-theme="light"] input[type="tel"]:focus,
html[data-bs-theme="light"] input[type="month"]:focus,
html[data-bs-theme="light"] input.form-control:focus {
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25) !important;
}
html[data-bs-theme="light"] input::placeholder,
html[data-bs-theme="light"] input.form-control::placeholder {
  color: #6c757d !important;
}

html[data-bs-theme="light"] textarea,
html[data-bs-theme="light"] textarea.form-control {
  background-color: #ffffff !important;
  color: #212529 !important;
  border: 1px solid #ced4da !important;
}
html[data-bs-theme="light"] textarea:focus,
html[data-bs-theme="light"] textarea.form-control:focus {
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25) !important;
}
html[data-bs-theme="light"] textarea::placeholder,
html[data-bs-theme="light"] textarea.form-control::placeholder {
  color: #6c757d !important;
}

html[data-bs-theme="light"] select,
html[data-bs-theme="light"] select.form-select {
  background-color: #ffffff !important;
  color: #212529 !important;
  border: 1px solid #ced4da !important;
  padding-right: 32px !important;
  background-image:
    url("data:image/svg+xml;charset=UTF-8,\
      <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23323e4a' viewBox='0 0 16 16'>\
        <path d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/>\
      </svg>"
    ) !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px 16px !important;
}
html[data-bs-theme="light"] select:focus,
html[data-bs-theme="light"] select.form-select:focus {
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25) !important;
}

html[data-bs-theme="light"] input[type="month"] {
  background-color: #ffffff !important;
  color: #212529 !important;
  border: 1px solid #ced4da !important;
}
html[data-bs-theme="light"] input[type="month"]:focus {
  background-color: #ffffff !important;
  color: #212529 !important;
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25) !important;
}

/* ダークモード時：month 型アイコンを白く反転 */
html[data-bs-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(2);
}

/* ライトモード時：month 型アイコンをデフォルト (黒) */
html[data-bs-theme="light"] input[type="month"]::-webkit-calendar-picker-indicator {
  filter: none;
}

