/* 全体の背景色 */
.atwiki-contents-shadow {
    background-color: #F8F8F8 !important;
}

/* 本文 */
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: #2f6fdd !important;
}

/* 見出し2 */
.atwiki-contents h2:not(.edit-h2-width):not(.atwiki_page_comment h2), .atwiki-sp-contents h2 {
  font-size: 1.6em;
  background:#243060 !important;
  margin-bottom: 14px;
}

/* 見出し3 */
.atwiki-contents h3, .atwiki-sp-contents h3 {
  color:#1e293b;
  padding: 8px 12px;
  background: linear-gradient(to right, 
    rgba(59, 130, 246, 0.07) 0%,
    rgba(147, 197, 253, 0.035) 40%, 
    transparent 85%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ルビ */
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;
}
.atwiki-page-info {
  padding-top:0;
}

/* リスト項目 */
#wikibody ul li {
  margin-top: 0.5em !important;
  margin-bottom: 0.5em !important;
}
#wikibody 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標準ページ一覧 */
.pagelist > tbody > tr > td {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* 各種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 > th,
.repeated-header,
.table-left-header {
  background:#e1e3f5;
  color:#1E293B;
  font-weight: bold;
  border: 1px solid #CBD5E1 !important;
}
.table-left-header {
  background:#e1e3f5 !important;
}
table:not(.atwiki_plugin_region):not(.plugin_splitinclude) > tbody > tr > td:not(.plugin_splitinclude_item) {
  background:#fdfdfd;
  color:#1A1A1A;
  border: 1px solid #CBD5E1 !important;
}
td.table-left-header:hover,
th.table-left-header:hover,
tr:hover > td.table-left-header,
tr:hover > th.table-left-header {
  background:#e1e3f5 !important;
  border: 1px solid #CBD5E1 !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-no-border {
  position: relative;
  display: flex;
  flex-direction: column;
  flex:0 0 auto;
  width:auto;
  max-width:100%;
  box-sizing:border-box;
  padding:8px;
  border:none;
  background: transparent;
  text-align:center;
}
.card img,
.card-no-border img {
  display:block;
  height:auto;
}

/* プロフィール用疑似グリッド（カード） */
.profile-cards-grid {
  display:grid;
  max-width: 740px;
  margin-top:8px;
  border-left: 1px solid #CBD5E1;
  border-top: 1px solid #CBD5E1;
  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:#fdfdfd;
  text-align:center;
  border-right: 1px solid #CBD5E1;
  border-bottom: 1px solid #CBD5E1;
  border-left: none;
  border-top: none;
}
.profile-card-header {
  display: block;
  font-weight:bold;
  background:#e1e3f5;
  color:#1E293B;
  margin:0;
  padding:6px;
}
.profile-card-body {
  display: block;
  margin:0;
  padding:8px;
  color:#1A1A1A;
  font-size: 15px;
  min-height: 34px;
  border-top: 1px solid #CBD5E1;
}

/* タグ一覧のスタイル */
.tag-grid {
  width: fit-content;
  padding: 6px;
}
.tag-grid > ul {
  background: #fdfdfd;
  border: 1px solid #CBD5E1;
  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: #E8ECF7;
  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: #D7E1F5;
  transform: translateY(-1px);
  color: #185abc;
}
.navi-links hr {
  margin: 10px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #c0c0c0;
}

/* ヘッダーのスタイル */
.common-infobar {
  background: #fdfdfd;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
}

/* 複数イメージ切り替え機能のスタイル */
.gallery {
  position: relative;
  display: flex;
  width: fit-content;
  background: transparent;
  border: 1px solid #bbb;
  padding: 0;
}

/* 個々のスライド */
.gallery-item {
  display: block;
  text-align: center;
}
.gallery-item:nth-child(n+2) {
  display: none;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ボタン */
.gallery-btn {
  position: static;
  white-space: nowrap;
  left: 0;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 0 !important;
  z-index: 100;
  background: #f0f0f0;
  padding: 3px 4px;
  gap: 3px;
  margin-bottom: 4px;
  border-radius: 10px;
  border: 1px solid #bbb;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  text-shadow: 1px 1px 0px #fff;
}

.gallery-btn div {
  flex: 0 0 auto;
  cursor: pointer;
  padding: 6px 12px;
  background: #e5e5e5;
  color: #333;
  border: 1px solid #bbb;
  border-radius: 0;
  font-size: 13px;
  min-width: 20px;
  margin: 0;
  text-align: center;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* 最初のボタン - 左側だけ角丸 */
.gallery-btn div:first-child {
  border-radius: 7px 0 0 7px;
  border-right: none;
}

/* 最後のボタン - 右側だけ角丸 */
.gallery-btn div:last-child {
  border-radius: 0 7px 7px 0;
}

/* 間のボタン */
.gallery-btn div:not(:first-child):not(:last-child) {
  border-right: none;
}

.gallery-btn div:hover {
  background: #f8f8f8;
  color: #111;
}

.gallery-btn div.checked {
  background: #2C5EB4;
  color: #FFFFFF;
  border-color: #777;
  text-shadow: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 1. デフォルト：ページ単体で開かれた時に表示する要素（メインページへの誘導） */
.redirect-message {
    display: block;
    padding: 20px;
}

/* 2. デフォルト：本来のコンテンツを隠す */
.page-content {
    display: none;
}

/* 3. インクルード時：plugin_includeの配下にある場合 */
.plugin_include .redirect-message {
    display: none;
}
.plugin_include .page-content,
#atwiki_preview_contents .page-content {
    display: block;
}

/* 検索機能全体の囲み：ここをflex(縦並び)にして、中身を絶対に画面内に収める */
.wiki-search-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px; /* パソコン時の最大横幅 */
  margin: 10px 0 10px 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

/* 入力欄とクリアボタンを重ねるための基準枠 */
.wiki-search-input {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

/* 入力テキストエリア */
#dic-search-input, #searchInput, #searchInput1, #searchInput2 {
  padding: 10px 35px 10px 12px !important;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  display: block;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* フォーカス時のエフェクト */
#dic-search-input:focus, #searchInput:focus, #searchInput1:focus, #searchInput2:focus {
  border-color: #3b82f6 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* クリアボタン（×）の配置と重なり設定 */
#dic-search-clear, #dic-search-clear1, #dic-search-clear2 {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8;
  font-size: 20px !important;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  z-index: 101 !important;
  display: none;
  user-select: none;
  transition: color 0.2s;
}

/* クリアボタンホバー時 */
#dic-search-clear:hover, #dic-search-clear1:hover, #dic-search-clear2:hover {
  color: #ef4444;
}

/* サジェスト結果のリスト枠 */
#dic-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;

  margin: 4px 0 15px 0;
  padding: 0;
  font-size: 16px;
  list-style: none;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-height: 250px;
  width: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  display: none;
}

/* サジェスト項目 */
.search-suggest-item {
  padding: 0;
  border-bottom: 1px solid #f1f5f9;
}
.search-suggest-item:last-child {
  border-bottom: none;
}

/* サジェスト内のリンク */
.search-suggest-link {
  text-decoration: none;
  color: #334155;
  display: block;
  padding: 10px 14px;
  transition: background 0.2s;
}

.search-suggest-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}