/* 一時的に追加 */
.profile-card-header2 {
  display: block;
  font-weight:bold;
  background:#F0F0F0;
  color:#333333;
  margin:0;
  padding:6px;
}
.profile-card-header3 {
  display: block;
  font-weight:bold;
  background:#737373;
  color:#FFFFFF;
  margin:0;
  padding:6px;
}
.profile-card-header4 {
  display: block;
  font-weight:bold;
  background:#B2B2B2;
  color:#333333;
  margin:0;
  padding:6px;
}

/* 本文 */
body {
  font-family: 'Noto Sans JP', 'Meiryo', sans-serif !important;
}

/* 見出し1～3 */
h1, h2, h3 {
  font-family: 'Noto Serif JP', 'Yu Mincho', serif !important;
}

/* 見出し2～3 */
h2, h3 {
  border-left-color: #6495ED !important;
}

/* ルビ */
rt {
  font-size: 0.65em;
  margin-top: 0.2em; /* 全体のルビの上に余白を追加 */
}

/* ページタイトルの圧縮 */
.atwiki-page-info > .atwiki-small-text {
  display:inline-block;
  font-size: 10px;
  opacity:0.3;
  margin:0;
  padding:0 6px 0 0;
  margin-bottom:0;
}
.atwiki-page-info .atwiki-pagename {
  display:inline-block;
  font-family: 'Noto Sans JP', 'Meiryo', sans-serif !important;
  color:gray;
  font-size: 10px;
  opacity:0.3;
  font-weight:normal;
  text-align:right;
  margin:0;
  padding:0;
}

/* リスト項目 */
ul li {
  margin-top: 0.5em !important; /* 上の余白を縮小 */
  margin-bottom: 0.5em !important; /* 下の余白を縮小 */
}
#contents li {
  line-height: 1.9;
  margin: 0.9em 0;
}

/* [部分編集]ボタン */
.atwiki-hedit:before {
  filter: hue-rotate(195deg) saturate(79%) brightness(136%);
}

/* [編集]ボタン */
.atwiki-flat-button {
  border: 1px solid #6495ED !important;
  color: #6495ED !important;
}
.atwiki-flat-button.d-inline-flex::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [ページ名編集]ボタン */
.atwiki-pagename-link.atwiki-sp-only>a {
  border: 1px solid #6495ED !important;
  color: #6495ED !important;
}

/* [公開する]ボタン */
.atwiki-sp-only.atwiki-save-button.atwiki_page_save.submit {
  background-color: #6495ED !important;
  border-color: #6495ED !important;
}

/* [操作ガイド]アイコン */
.atwiki-guide-button::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [新規作成]アイコン */
.atwiki-new-button::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [編集する]アイコン */
.atwiki-edit-button.padding-small::before, .atwiki-edit-button::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [ページ一覧]アイコン */
.atwiki-link-pagelist::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}
.atwiki-link-pagelist > a::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [掲示板]アイコン */
.atwiki-link-forum {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [管理画面]アイコン */
.atwiki-settings-button.padding-small::before, .atwiki-settings-button::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [管理メニュー]アイコン */
.atwiki-menu-button.not-pagelink::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [wiki募集中!]、[目安箱(β版)]ボタン */
.atwiki-headbar-banner {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* [登録/ログイン]ボタン */
.atwiki-login-button::before {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* スマホかブラウザ幅を縮めた時の上部メニューバー */
.atwiki-headbar {
  background-color: #444444 !important;
}

/* スマホかブラウザ幅を縮めた時の左メニュー */
#atwiki-menubar-offcanvas #atwiki-menu-top, #atwiki-offcanvas #atwiki-menu-top {
  border-top-color: #6495ED !important;
}

/* ページ検索時の上部バー */
.atwiki-modal-header {
  background-color: #444444 !important;
  font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,Segoe UI,Yu Gothic,YuGothic,sans-serif !important;
}

/* 管理メニュー表示時の上部バー */
#atwiki-offcanvas-header {
  background-color: #444444 !important;
}
.atwiki-offcanvas-close {
  background-color: #555555 !important;
}

/* ヘッダーのwikiタイトル */
#atwiki-header-nav-title {
  color: #464646 !important;
}

/* [ページ一覧]ボタン */
.atwiki-link-pagelist>a {
  color: #464646 !important;
}

/* 各種Wikiランキング */
.atwiki-list-title.atwiki-external-title {
  background-color: #6495ED !important;
}

/* 新規ページ作成（その他）横の▲アイコン */
.atwiki-dropdown-parent>a:after {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* 掲示板内のボタン */
.atwiki-forum-button {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* 新規スレッドを作成するボタン */
.atwiki-forum-more-button {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* 編集モード変更ボタン */
.editor-select-button {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* footnoteプラグイン */
.link_atwiki_footnote a {
  font-size: 0.8em;
  vertical-align: 0.25em;
  margin-left: 0.03em;
}

/* popularプラグイン */
.plugin_splitinclude .plugin_popular li {
  white-space: normal !important;
}
.plugin_splitinclude .plugin_popular li a.small {
  font-size: 13px;
}
.plugin_splitinclude .plugin_popular li a.very-small {
  font-size: 12px;
}
.plugin_splitinclude .plugin_popular li a.ultra-small {
  font-size: 11px;
}
@media (max-width:450px) {
  .plugin_splitinclude .plugin_popular li {
    max-width: 160px;
  }
}

/* 目次プラグイン関連 */
.plugin_contents {
    margin: 6px 0 8px 0;
    padding: 10px 14px;
    margin-bottom: 6px;
}
/* UL の左余白を増やす */
.plugin_contents ul {
    padding-left: 20px;
    margin-top: 4px;
    margin-left: 0;
}
/* LI の行間と上下余白 */
.plugin_contents li {
    margin: 2px 0;
    line-height: 1.45;
}
/* ネストされた目次（階層） */
.plugin_contents ul ul {
    padding-left: 16px;
    margin-top: 1px;
}

/* ダミーイメージ */
.dummyImage {
  line-height: 0;
  margin: 0;
  padding: 0;
}
.dummyImage .atwiki_plugin_image {
  display: block;
}

/* 全テーブルのフォントサイズ */
#wikibody table th {
    font-size: 14px;
}
#wikibody table td {
    font-size: 15px;
}

/* テーブルのヘッダー行着色 */
table > thead > tr,
.repeated-header,
.table-left-header {
  background: #404040 !important;
  color: #FFFFFF;
  font-weight: bold;
}
td.table-left-header:hover,
th.table-left-header:hover,
tr:hover > td.table-left-header,
tr:hover > th.table-left-header {
    background: #404040 !important;
}
.table-left-header {
    font-size: 14px !important;
}
table.tablesorter th.tablesorter-header {
  background-image: url("https://img.atwiki.jp/assault_lily/pub/bg_white.gif") !important;
}
table.tablesorter th.tablesorter-headerAsc {
  background-image: url("https://img.atwiki.jp/assault_lily/pub/asc_white.gif") !important;
}
table.tablesorter th.tablesorter-headerDesc {
  background-image: url("https://img.atwiki.jp/assault_lily/pub/desc_white.gif") !important;
}

/* 疑似グリッド（カード） */
.cards-flow > .atwiki_plugin_divclass {
  margin:0;
}
.cards-flow {
  display:flex;
  flex-wrap:wrap;
  gap:0;
}
.card {
  flex:0 0 auto;
  width:auto;
  max-width:100%;
  box-sizing:border-box;
  padding:8px;
  border:1px solid #ddd;
  border-radius:0;
  background:#fff;
  text-align:center;
}
.card img {
  display:block;
  height:auto;
}

/* プロフィール用疑似グリッド（カード） */
.profile-cards-grid {
  display:grid;
  max-width: 740px;
  margin-top:8px;
  gap:0;
}
@media (max-width:450px) {
  .profile-cards-grid {
    grid-template-columns:
      /* minmax(100px, 300px) */
      repeat(auto-fit, minmax(100px, auto));
  }
}
@media (min-width:451px) {
  .profile-cards-grid {
    grid-template-columns:
      /* minmax(100px, 300px) */
      repeat(auto-fit, minmax(100px, auto));
  }
}
.profile-card {
  flex:0 0 auto;
  width:auto;
  display: block;
  max-width: 100%;
  box-sizing:border-box;
  padding:0;
  background:#fff;
  text-align:center;
  border:1px solid #C8C8C8;
}
.profile-card-header {
  display: block;
  font-weight:bold;
  /* background:#F0F0F0; */
  background:#404040;
  color:#FFFFFF;
  margin:0;
  padding:6px;
}
.profile-card-body {
  display: block;
  margin:0;
  padding:8px;
  font-size: 15px;
  min-height: 34px;
}

/* ！！！テスト！！！プロフィール用疑似グリッド（カード） */
.test2-cards-grid{
  display: flex;
  max-width: 740px;
  gap: 0;
}

@media (max-width:450px) {
  .test2-cards-grid {
    grid-template-columns:
      /* minmax(100px, 300px) */
      repeat(auto-fit, minmax(100px, auto));
  }
}
@media (min-width:451px) {
  .test2-cards-grid {
    grid-template-columns:
      /* minmax(100px, 300px) */
      repeat(auto-fit, minmax(100px, auto));
  }
}
.test2-card{
  flex: 0 0 auto;
  width: auto;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  background: #fff;
  text-align: center;
}
.test2-card-header{
  display: block;
  font-weight: bold;
  background: #404040;
  color: #FFFFFF;
  margin: 0;
  padding: 6px;
  border: 1px solid #C8C8C8;
}
.test2-card-body{
  display: block;
  margin: 0;
  padding: 6px;
  /* text-align: left; */
  font-size: 15px;
  min-height: 34px;
  border: 1px solid #C8C8C8;
}

/* タグ一覧のスタイル */
.tag-grid {
  width: fit-content;
  padding: 6px;
}
.tag-grid > ul {
  background: #f7f7f7;
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(3, 170px);
  column-gap: 6px;
  row-gap: 2px;
}
@media (max-width: 600px) {
  .tag-grid > ul {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
}
.tag-grid > ul > li {
  padding: 1px 6px;
  list-style: none;
}

/* ナビゲーションバーのスタイル */
.navi-links {
  text-align: center;
  margin: 40px 0 16px;
  padding: 10px 0;
  background: #f0f0f0;
  border-top: 1px solid #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
}
.navi-links a {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 3px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  border-radius: 3px;
  transition: all 0.2s ease;
}
.navi-links a:hover {
  background: #e8f0fe;
  color: #0b59d0;
}
.navi-links hr {
  margin: 10px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #c0c0c0;
}

/* ヘッダーのスタイル */
.common-infobar {
  background: #f0f0f0;
}

/* ==========================
   ダークモード対応
   ========================== */
/* ダークモード切替ボタン */
#toggleDarkMode {
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 3px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #333;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
#toggleDarkMode:hover {
  background: #e0e0e0;
  border-color: #999;
  color: #000;
}
.darkmode #toggleDarkMode {
  border: 1px solid #555;
  background: #1e1e1e;
  color: #fff;
}
.darkmode #toggleDarkMode:hover {
  background: #3a3a3a;
  border-color: #777;
  color: #a8c8ff;
}

/* ダークモード（OS が dark のときだけ適用） */
@media (prefers-color-scheme: dark) {
  .darkmode body {
    background: #111111;
    color: #dddddd;
  }

  .darkmode .contents,
  .darkmode .main.wrapper,
  .darkmode .responsive-breadcrumb,
  .darkmode .atwiki-left-column,
  .darkmode .atwiki-headbar-banner,
  .darkmode .atwiki-sp-only,
  .darkmode .atwiki-footer,
  .darkmode .atwiki-header-submenu,
  .darkmode .atwiki-responsive-headbar,
  .darkmode .atwiki-new-button,
  .darkmode .atwiki-edit-button,
  .darkmode .atwiki-settings-button,
  .darkmode .atwiki-menu-button,
  .darkmode #atwiki-jp-bg2,
  .darkmode .atwiki-container,
  .darkmode .atwiki-main {
    background: #111111 !important;
    color: #dddddd !important;
  }
}

/* 左メニュー内の通常テキスト */
.darkmode #menubar * {
  color: inherit !important;
}

/* h3 見出し */
.darkmode #menubar h3 {
  color: #ffffff !important;
  border-bottom: 1px solid #333 !important;
/*  padding-bottom: 4px;
  margin-bottom: 6px; */
}

/* ul / li */
/* .darkmode #menubar ul {
  margin-left: 0 !important;
  padding-left: 14px !important;
}
.darkmode #menubar li {
  margin: 2px 0 !important;
} */

/* 折りたたみプラグイン（+ ボタン） */
.darkmode #menubar .atwiki_plugin_region_button span {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #555 !important;
}
.darkmode #menubar .atwiki_plugin_region_button:hover span {
  background: #3a3a3a !important;
  border-color: #777 !important;
}

/* 展開部分の背景色（display:none だけでなく全状態に適用） */
.darkmode #menubar .atwiki_plugin_region td,
.darkmode #menubar .atwiki_plugin_region tr,
.darkmode #menubar .atwiki_plugin_region table {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
  border-color: #333 !important;
}

/* インライン背景色を完全に殺す（最重要） */
.darkmode #menubar td[style*="background-color"],
.darkmode #menubar tr[style*="background-color"],
.darkmode #menubar table[style*="background-color"] {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}

/* 展開部分のテキスト */
.darkmode #menubar .atwiki_plugin_region td div,
.darkmode #menubar .atwiki_plugin_region td ul,
.darkmode #menubar .atwiki_plugin_region td li {
  color: #e0e0e0 !important;
}

/* 透明背景指定の td/tr を強制ダーク化 */
.darkmode #menubar td[style*="background-color:transparent"],
.darkmode #menubar tr[style*="background-color:transparent"] {
  background-color: #121212 !important;
}

/* 透明背景の table も暗くする */
.darkmode #menubar table[style*="background-color:transparent"] {
  background-color: #121212 !important;
}

/* カウンター（総閲覧数など） */
.darkmode #menubar .counter,
.darkmode #menubar .online {
  color: #bbbbbb !important;
}

/* 小さい注釈（※別名含むなど） */
.darkmode #menubar span[style*="font-size"] {
  color: #bbbbbb !important;
}

/* ルビ（ruby） */
.darkmode #menubar ruby rt {
  color: #cccccc !important;
}

/* ルビの親文字 */
.darkmode #menubar ruby rb a {
  color: #80b3ff !important;
}

/* ルビの hover */
.darkmode #menubar ruby rb a:hover {
  color: #a8c8ff !important;
}

/* 左メニュー内の強調（strong） */
.darkmode #menubar strong {
  color: #ffffff !important;
}

/* 左メニュー内の <br> の余白調整 */
.darkmode #menubar br {
  line-height: 1.4;
}

/* 左メニュー全体の背景・文字色 */
.darkmode #menubar {
  border-right: 1px solid #333 !important;
}

/* タイトル本体 */
.darkmode h1.atwiki-pagename {
  color: #ffffff !important;
  background: transparent !important;
/*  margin-top: 12px !important;
  margin-bottom: 14px !important;
  padding: 4px 0 !important; */
  border-bottom: 1px solid #333 !important;
/*  font-weight: 700 !important; */
}

/* 太字クラス */
.darkmode h1.atwiki-pagename.atwiki-text-bold {
  font-weight: 800 !important;
}

/* 下マージン調整 */
/* .darkmode h1.atwiki-pagename.atwiki-margin-small-bottom {
  margin-bottom: 10px !important;
} */

/* タイトル直下の余白調整（テーマ依存のズレ対策） */
/* .darkmode h1.atwiki-pagename + * {
  margin-top: 10px !important;
} */

/* 全体背景 */
.darkmode .main_wrapper,
.darkmode #atwiki-jp-bg2,
.darkmode .atwiki-container,
.darkmode #contents.atwiki-main-column,
.darkmode .atwiki-modal-body,
.darkmode .atwiki-contents-shadow {
  background: #121212 !important;
  color: #e0e0e0 !important;
}

/* パンくずリスト */
.darkmode .responsive-breadcrumb {
  background: #1a1a1a !important;
  border-bottom: 1px solid #333 !important;
/*  padding: 6px 10px !important; */
}
.darkmode .responsive-breadcrumb ul li {
  color: #bbbbbb !important;
}

/* ページ情報ブロック */
.darkmode .atwiki-page-info {
  background: transparent !important;
  color: #e0e0e0 !important;
  border-bottom: 1px solid #333 !important;
/*  padding-bottom: 10px !important; */
}

/* 最終更新・編集者名 */
.darkmode .atwiki-small-text {
  color: #bbbbbb !important;
}

/* PV 表示 */
.darkmode #atwiki-pv-view {
  color: #e0e0e0 !important;
}
.darkmode #atwiki-pv-view .counter {
  color: #e0e0e0 !important;
}
.darkmode #atwiki-pv-view .atwiki-medal-view {
  color: #e0e0e0 !important;
}

/* 編集ボタン */
.darkmode .atwiki-flat-button {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #555 !important;
/*  padding: 4px 10px !important;
  border-radius: 4px !important; */
}
.darkmode .atwiki-flat-button:hover {
  background: #3a3a3a !important;
  border-color: #777 !important;
}

/* 本文テキスト */
.darkmode #contents,
.darkmode #contents * {
  color: #e0e0e0 !important;
}

/* 見出し（h2〜h4） */
.darkmode h2 {
  color: #ffffff !important;
  border-bottom: 1px solid #444 !important;
/*  padding-bottom: 4px !important; */
}
.darkmode h3 {
  color: #e8e8e8 !important;
}
.darkmode h4 {
  color: #dcdcdc !important;
}

/* 段落 */
.darkmode p {
  color: #e0e0e0 !important;
}

/* 本文リンク（最優先で上書き） */
.darkmode #contents a:not(.atwiki-line-button):not(.atwiki-facebook-button):not(.atwiki-twitter-button):not(.atwiki-more-button),
.darkmode #menubar a,
.darkmode .atwiki-recent-list a,
.darkmode .atwiki-link-list a,
.darkmode .atwiki-rank-list a,
.darkmode .atwiki-rank-list a span,
.darkmode .atwiki-pagerank-list a,
.darkmode .atwiki-offcanvas a,
.darkmode .atwiki-footnote a,
.darkmode .atwiki-shortcut-menu a,
.darkmode .atwiki-headbar-menu > li > a,
.darkmode .responsive-breadcrumb a {
  color: #88A3E8 !important;
}

.darkmode #contents a:hover:not(.atwiki-line-button):not(.atwiki-facebook-button):not(.atwiki-twitter-button):not(.atwiki-more-button),
.darkmode #menubar a:hover,
.darkmode .atwiki-recent-list a:hover,
.darkmode .atwiki-link-list a:hover,
.darkmode .atwiki-rank-list a:hover,
.darkmode .atwiki-rank-list a:hover span,
.darkmode .atwiki-pagerank-list a:hover,
.darkmode .atwiki-offcanvas a:hover,
.darkmode .atwiki-footnote a:hover,
.darkmode .atwiki-shortcut-menu a:hover,
.darkmode .atwiki-headbar-menu > li > a:hover,
.darkmode .responsive-breadcrumb a:hover {
  color: #A6BBF5 !important;
}

/* 引用 */
.darkmode blockquote {
  background: #1e1e1e !important;
  border-left: 4px solid #555 !important;
  color: #e0e0e0 !important;
}

/* コードブロック */
.darkmode pre,
.darkmode code {
  background: #1e1e1e !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !important;
}

/* 表（table） */
.darkmode table {
  background: #121212 !important;
  color: #e0e0e0 !important;
  border-color: #444 !important;
}
.darkmode th {
  background: #2a2a2a !important;
  color: #ffffff !important;
  border-color: #555 !important;
}
.darkmode td {
  border-color: #444 !important;
}
.darkmode tr:nth-child(even) {
  background: #181818 !important;
}

/* 画像キャプション */
.darkmode figcaption {
  color: #bbbbbb !important;
}

/* 横並びレイアウト（d-flex） */
.darkmode .d-flex,
.darkmode .align-items-center {
  color: #e0e0e0 !important;
}

/* 余白調整（テーマ依存のズレ対策） */
/* .darkmode .atwiki-margin-small-bottom {
  margin-bottom: 10px !important;
} */

/* ヘッダー全体 */
.darkmode header.atwiki-responsive-headbar,
.darkmode .atwiki-headbar,
.darkmode .atwiki-header-submenu,
.darkmode #atwiki-fixed-nav {
  background: #181818 !important;
  color: #e0e0e0 !important;
  border-bottom: 1px solid #333 !important;
}

/* ロゴ周辺 */
.darkmode .atwiki-logo img {
  filter: brightness(0.8) !important;
}

/* PC版メニュー（ul.atwiki-headbar-menu） */
.darkmode .atwiki-headbar-menu > li > a {
  color: #e0e0e0 !important;
  background: transparent !important;
}
.darkmode .atwiki-headbar-menu > li > a:hover {
  color: #a8c8ff !important;
}

/* ドロップダウンメニュー */
.darkmode .atwiki-dropdown-menu {
  background: #1f1f1f !important;
  border: 1px solid #444 !important;
}
.darkmode .atwiki-dropdown-menu li a {
  color: #e0e0e0 !important;
}
.darkmode .atwiki-dropdown-menu li a:hover {
  background: #2a2a2a !important;
  color: #a8c8ff !important;
}

/* ドロップダウンの子階層 */
.darkmode .atwiki-dropdown-child {
  background: #1f1f1f !important;
  border: 1px solid #444 !important;
}
.darkmode .atwiki-dropdown-child li a:hover {
  background: #2a2a2a !important;
}

/* メニュー区切り線 */
.darkmode .menu-bottom-border {
  border-bottom: 1px solid #444 !important;
}

/* 右側の検索フォーム */
.darkmode .atwiki_headbar_search input[type="search"] {
  background: #1e1e1e !important;
  color: #e0e0e0 !important;
  border: 1px solid #444 !important;
}
.darkmode .atwiki_headbar_search input[type="search"]::placeholder {
  color: #888 !important;
}

/* 検索アイコン */
.darkmode .atwiki-search-icon {
  filter: brightness(0.7) !important;
}

/* PC版ショートカットメニュー */
.darkmode .atwiki-shortcut-menu ul li a {
  color: #e0e0e0 !important;
}
.darkmode .atwiki-shortcut-menu ul li a:hover {
  color: #a8c8ff !important;
}

/* バナー画像（recruit / suggestion） */
.darkmode .atwiki-headbar-banner img {
  filter: brightness(0.85) !important;
}

/* 操作ガイド / 新規作成 / 編集する / 全ページ一覧 / 管理画面 */
.darkmode .atwiki-guide-button,
.darkmode .atwiki-new-button,
.darkmode .atwiki-edit-button,
.darkmode .atwiki-link-pagelist,
.darkmode .atwiki-settings-button {
  background: #181818 !important;
  color: #e0e0e0 !important;
}
.darkmode .atwiki-guide-button:hover,
.darkmode .atwiki-new-button:hover,
.darkmode .atwiki-edit-button:hover,
.darkmode .atwiki-link-pagelist:hover,
.darkmode .atwiki-settings-button:hover {
  background: #3a3a3a !important;
}

/* サイトアイコン */
.darkmode .atwiki-site-icon {
  filter: brightness(0.8) !important;
}

/* ログイン状態テキスト */
.darkmode .atwiki-login-status {
  color: #bbbbbb !important;
}

/* サイト名 */
.darkmode .atwiki-logined-sitename {
  color: #e0e0e0 !important;
}

/* スマホ版ヘッダー */
.darkmode .atwiki-sp-fixed-nav,
.darkmode .atwiki-sp-only,
.darkmode .atwiki-menubar-contents,
.darkmode #atwiki-menu-top  {
  background: #181818 !important;
}
.darkmode .atwiki-header-title p  {
  color: #BBBBBB !important;
}
.darkmode .atwiki-header-title a  {
  color: #e0e0e0 !important;
}

/* スマホ版検索ボタン */
.darkmode .atwiki-search img {
  filter: brightness(0.7) !important;
}
.darkmode .atwiki-search span {
  color: #e0e0e0 !important;
}

/* スマホ版メニューボタン */
.darkmode .atwiki-headbar-menu-button img {
  filter: brightness(0.7) !important;
}
.darkmode .atwiki-headbar-menu-button span {
  color: #e0e0e0 !important;
}

/* スマホ版 offcanvas メニュー */
.darkmode .atwiki-offcanvas {
  background: #121212 !important;
  color: #e0e0e0 !important;
}
.darkmode .atwiki-offcanvas-bar {
  background: #181818 !important;
}
.darkmode .atwiki-offcanvas-close {
  filter: brightness(0.7) !important;
}

/* offcanvas の区切り線 */
.darkmode .atwiki-nav-divider {
  border-bottom: 1px solid #444 !important;
}

/* offcanvas のユーザー名 */
.darkmode #atwiki-username span {
  color: #bbbbbb !important;
}

/* 管理画面リンク */
.darkmode .atwiki-link-settings a {
  color: #e0e0e0 !important;
}
.darkmode .atwiki-link-settings a:hover {
  color: #a8c8ff !important;
}

/* インラインで背景色が指定されているセルを強制ダーク化 */
.darkmode td[style*="#DDDDDD"],
.darkmode td[style*="#EDEDED"],
.darkmode td[style*="#737373"] {
  background-color: #2a2a2a !important;
}

/* CHARMペンライトカラーを無効化 */
.darkmode span[style*="#E50114"],
.darkmode span[style*="#16AD66"],
.darkmode span[style*="#172A88"],
.darkmode span[style*="#E2007E"],
.darkmode span[style*="#EEEEF0"],
.darkmode span[style*="#FFF000"],
.darkmode span[style*="#31A7DF"],
.darkmode span[style*="#94C31B"],
.darkmode span[style*="#5E1984"],
.darkmode span[style*="#E95618"],
.darkmode span[style*="#E86F8E"],
.darkmode span[style*="#2F68AF"],
.darkmode span[style*="#D9DC07"],
.darkmode span[style*="#04A095"],
.darkmode span[style*="#D90050"] {
  background-color: #181818 !important;
}

/* ダークモード時のテーブル hover */
.darkmode table tr:hover th {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
}

.darkmode [class*="table_style_"] tr:hover td,
.darkmode [class*="table_style_"] tr:hover th {
  background-color: #2a2a2a !important;
}

/* sorter の偶数行・奇数行の背景色をダークモード用に統一 */
.darkmode table[id^="table_sorter_"] tr.even td {
  background-color: #202020 !important;
  color: #e0e0e0 !important;
}
.darkmode table[id^="table_sorter_"] tr.odd td {
  background-color: #181818 !important;
  color: #e0e0e0 !important;
}

.darkmode .atwiki-link-pagelist a {
  color: #e0e0e0 !important;
}

/* [管理メニュー] */
.darkmode #atwiki-admin-menu {
  background: #181818 !important;
  color: #e0e0e0 !important;
}

/* ヘッダーのwikiタイトル */
.darkmode #atwiki-header-nav-title {
  color: #e0e0e0 !important;
}

/* hover 時も左と合わせる */
.darkmode #atwiki-admin-menu:hover {
  background: #3a3a3a !important;
  border-color: #777 !important;
}

/* SNS ボタン領域を暗くする */
.darkmode .atwiki-flex-center {
  background: #121212 !important;
}

/* [wiki募集中!]、[目安箱(β版)]ボタン */
.darkmode .atwiki-headbar-banner {
  filter: brightness(1.08) contrast(0.92) sepia(18%) hue-rotate(198deg) saturate(2.4);
}

/* 上部メニューバー */
.darkmode .atwiki-headbar-nav {
  background-color: #181818 !important;
}

/* スマホかブラウザ幅を縮めた時の上部メニューバー */
.darkmode .atwiki-headbar {
  background-color: #181818 !important;
}

/* ページ検索時の上部バー */
.darkmode .atwiki-modal-header {
  background-color: #181818 !important;
  font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,Segoe UI,Yu Gothic,YuGothic,sans-serif !important;
}

/* 管理メニュー表示時の上部バー */
.darkmode #atwiki-offcanvas-header {
  background-color: #181818 !important;
}

/* プロフィール用疑似グリッド（カード） */
.darkmode .profile-card {
  background:#181818;
  border:1px solid #555555;
}
.darkmode .profile-card-header {
  background:#2A2A2A;
  color:#e0e0e0;
}

/* ！！！テスト！！！プロフィール用疑似グリッド（カード） */
.darkmode .test-card {
  background:#181818;
  border:1px solid #555555;
}
.darkmode .test-card-header {
  background:#2A2A2A;
  color:#e0e0e0;
}