@import url('https://fonts.googleapis.com/css2?family=DotGothic16&display=swap');

/* ==============================
   トップページ：タイトル
============================== */
.homehero {
  background: #17243b;
  color: #fff;
  border: 1px solid #b99b5b;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  margin: 0 0 20px;
}


/* ==============================
   トップページ：カテゴリ一覧
============================== */
.homequick {
  width: 100%;
  box-sizing: border-box;
}

.homequick ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 24px;
}

.homequick li {
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.homequick li a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 18px 10px;
  border: 1px solid #d5dbe5;
  border-radius: 10px;
  background: #f7f8fa;
  color: #20324d;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.homequick li a:hover {
  background: #eaf0f8;
  border-color: #b99b5b;
}


/* ==============================
   Discordボタン
============================== */
.homediscord {
  text-align: center;
  margin: 0 auto 24px;
}

.homediscord a {
  display: inline-block;
  box-sizing: border-box;
  min-width: 260px;
  max-width: 100%;
  padding: 13px 24px;
  border: 1px solid #5865F2;
  border-radius: 10px;
  background: #5865F2;
  color: #fff;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.homediscord a:hover {
  background: #4752C4;
  border-color: #4752C4;
}

.homediscord a:focus-visible {
  outline: 2px solid #b99b5b;
  outline-offset: 3px;
}


/* ==============================
   トップページ：検索エリア
============================== */
.homesearch {
  margin: 24px auto 32px;
  text-align: center;
}

.homesearch input[type="text"] {
  width: 360px;
  max-width: 65%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 2px solid #aab8cc;
  border-radius: 10px;
  background: #f4f7fb;
  color: #20324d;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.homesearch input[type="text"]:focus {
  border-color: #5865f2;
  background: #fff;
}

.homesearch input[type="submit"] {
  margin-left: 8px;
  padding: 14px 24px;
  border: 1px solid #17243b;
  border-radius: 10px;
  background: #17243b;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.homesearch input[type="submit"]:hover {
  background: #30476b;
}


/* ==============================
   初心者向けリンクカード
============================== */
#wikibody .beginner-card {
  margin: 16px 0 24px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  line-height: 1.8;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#wikibody .beginner-card a {
  display: block;
  position: relative;
  padding-right: 24px;
  margin-bottom: 4px;
  color: #2469a6;
  font-size: 1.08em;
  font-weight: 700;
  text-decoration: none;
}

#wikibody .beginner-card a::after {
  content: "›";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #9298a1;
  font-size: 1.5em;
  font-weight: 400;
}

#wikibody .beginner-card:hover {
  border-color: #e6ad65;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

#wikibody .beginner-card a:hover {
  color: #b96b12;
  text-decoration: none;
}


/* ==============================
   共通リンクボタン
============================== */
#wikibody .link-button {
  margin: 20px 0;
  text-align: center;
}

#wikibody .link-button a {
  display: block;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #2878c8;
  border-radius: 3px;
  background: #fff;
  color: #2878c8;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

#wikibody .link-button a:hover {
  background: #2878c8;
  color: #fff;
}


/* ==============================
   スマートフォン表示
============================== */
@media screen and (max-width: 600px) {

  /* カテゴリ一覧：2列 */
  .homequick {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .homequick ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 460px;
    margin: 12px auto 24px;
    padding: 0;
    box-sizing: border-box;
  }

  .homequick li a {
    padding: 16px 6px;
    font-size: 14px;
  }

  /* 検索欄とボタン：横並び */
  .homesearch form {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .homesearch input[type="text"] {
    flex: 1 1 0;
    width: 0;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  .homesearch input[type="submit"] {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 14px;
  }

  /* Discordボタン */
  .homediscord a {
    min-width: 0;
    max-width: 100%;
  }
}


/* スマートフォン：画像付きリンク一覧 */
@media screen and (max-width: 600px) {
  #wikibody .guide-grid {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 16px 0 24px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  #wikibody .guide-grid table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    table-layout: fixed !important;
    border-spacing: 3px !important;
    box-sizing: border-box !important;
  }

  #wikibody .guide-grid tr {
    width: 100% !important;
  }

  #wikibody .guide-grid td {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  #wikibody .guide-grid td img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 65px !important;
    object-fit: contain !important;
    box-sizing: border-box !important;
  }

  #wikibody .guide-grid a {
    display: block !important;
    max-width: 100% !important;
    padding: 4px 2px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }
}




/* homequick：中央配置 */
#wikibody .homequick {
  width: 100% !important;
  max-width: 460px !important;
  margin: 12px auto 24px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

#wikibody .homequick ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

#wikibody .homequick li {
  min-width: 0 !important;
  margin: 0 !important;
  text-align: center !important;
}

#wikibody .homequick li a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

/* スマホ版 homequick の中央配置 */
@media screen and (max-width: 600px) {
  #wikibody .homequick {
    display: block !important;
    width: 100% !important;
    max-width: 460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }

  #wikibody .homequick ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #wikibody .homequick li {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #wikibody .homequick li a {
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* 画像とリンク文字の隙間を縮める */
#wikibody .guide-grid td img {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: bottom !important;
}

#wikibody .guide-grid td a {
  display: block !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  line-height: 1.3 !important;
}

/* 画像を囲む要素の余白も除去 */
#wikibody .guide-grid td {
  padding: 0 !important;
  line-height: 1 !important;
}










/* ========================================
   技データベース：統合スタイル（8列データ対応）
   表示列：技名・効果・使用者
   内部列：種類ID・技分類ID・属性・対象・状態異常
======================================== */

/* 全体 */
#wikibody .tech-database {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6;
}

/* 横スクロール領域 */
#wikibody .tech-database .tech-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* 表本体 */
#wikibody .tech-database table {
  width: 100% !important;
  min-width: 600px;
  table-layout: fixed !important;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

/* すべてのセル */
#wikibody .tech-database th,
#wikibody .tech-database td {
  padding: 8px 9px;
  border: 1px solid #d8c5b8;
  vertical-align: top;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

/* 見出し */
#wikibody .tech-database th {
  background-color: #1A3C6E;
  color: #FFFFFF;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

/* データ行 */
#wikibody .tech-database td {
  background: #fff;
}

/* 偶数行 */
#wikibody .tech-database tbody tr:nth-child(even) td {
  background: #fff8f4;
}

/* 内部用列は最初から非表示 */
#wikibody .tech-database table th:nth-child(2),
#wikibody .tech-database table td:nth-child(2),
#wikibody .tech-database table th:nth-child(3),
#wikibody .tech-database table td:nth-child(3),
#wikibody .tech-database table th:nth-child(4),
#wikibody .tech-database table td:nth-child(4),
#wikibody .tech-database table th:nth-child(5),
#wikibody .tech-database table td:nth-child(5),
#wikibody .tech-database table th:nth-child(7),
#wikibody .tech-database table td:nth-child(7) {
  display: none !important;
}

/* 技名 */
#wikibody .tech-database table th:nth-child(1),
#wikibody .tech-database table td:nth-child(1) {
  width: 150px !important;
  min-width: 150px;
  text-align: left !important;
}

/* 効果：残りの幅を使用して左揃え */
#wikibody .tech-database table th:nth-child(6),
#wikibody .tech-database table td:nth-child(6) {
  width: auto;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  vertical-align: top !important;
}

/* 効果欄内のリンク */
#wikibody .tech-database table td:nth-child(6) a {
  overflow-wrap: anywhere;
}

/* 使用者 */
#wikibody .tech-database table th:nth-child(8),
#wikibody .tech-database table td:nth-child(8) {
  width: 170px !important;
  min-width: 170px;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

/* 操作パネル */
#wikibody .tech-db-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  background: #fff8f4;
  border: 1px solid #dfb8a7;
  border-radius: 8px;
}

/* 検索・絞り込み欄 */
#wikibody .tech-db-search-area,
#wikibody .tech-db-filter-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* 絞り込み項目 */
#wikibody .tech-db-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
  font-size: 13px;
  font-weight: bold;
}

/* 入力欄・選択欄 */
#wikibody .tech-db-controls input[type="text"],
#wikibody .tech-db-controls select {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #c9a99a;
  border-radius: 5px;
  background: #fff;
  color: #222;
  font-size: 14px;
}

/* 検索欄 */
#wikibody .tech-db-search-area input {
  flex: 1;
  min-width: 180px;
}

/* 操作ボタン */
#wikibody .tech-db-controls button {
  padding: 7px 12px;
  border: 1px solid #a83b32;
  border-radius: 5px;
  background: #fff;
  color: #8f3029;
  cursor: pointer;
  font-size: 13px;
}

#wikibody .tech-db-controls button:hover {
  background: #a83b32;
  color: #fff;
}

/* スマートフォン */
@media screen and (max-width: 768px) {
  #wikibody .tech-database {
    font-size: 13px;
  }

  #wikibody .tech-database table {
    min-width: 600px;
  }

  #wikibody .tech-database th,
  #wikibody .tech-database td {
    padding: 7px;
  }

  #wikibody .tech-db-controls {
    padding: 10px;
    gap: 10px;
  }

  #wikibody .tech-db-search-area,
  #wikibody .tech-db-filter-area {
    gap: 8px;
  }

  #wikibody .tech-db-filter {
    min-width: calc(50% - 8px);
    flex: 1;
  }

  #wikibody .tech-db-controls input[type="text"],
  #wikibody .tech-db-controls select {
    width: 100%;
    box-sizing: border-box;
  }
}











/* ==============================
   モンスター図鑑：列表示設定
============================== */

/* 設定パネル全体 */
#monster-sort .monster-column-panel {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 12px 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #ccd5e0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #243447 !important;
}

/* 「表示する列を選ぶ」の見出し */
#monster-sort .monster-column-panel > button {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #1A3C6E !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
  text-align: left !important;
  cursor: pointer;
}

/* マウスを乗せたとき */
#monster-sort .monster-column-panel > button:hover {
  background: #254d83 !important;
}

/* チェック項目の領域 */
#monster-sort .monster-column-panel > div {
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 12px !important;
  gap: 8px !important;
  background: #f3f6fa !important;
}

/* 各チェック項目 */
#monster-sort .monster-column-panel label {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 38px;
  margin: 0 !important;
  padding: 7px 11px !important;
  border: 1px solid #d5deea !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #243447 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  cursor: pointer;
}

/* チェックボックス */
#monster-sort .monster-column-panel input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  accent-color: #1A3C6E;
  cursor: pointer;
}

/* 選択項目にマウスを乗せたとき */
#monster-sort .monster-column-panel label:hover {
  border-color: #1A3C6E !important;
  background: #edf3fb !important;
}

/* スマートフォン向け */
@media screen and (max-width: 600px) {
  #monster-sort .monster-column-panel > button {
    padding: 11px 12px !important;
    font-size: 14px !important;
  }

  #monster-sort .monster-column-panel > div {
    padding: 9px !important;
    gap: 6px !important;
  }

  #monster-sort .monster-column-panel label {
    min-height: 40px;
    padding: 7px 9px !important;
    font-size: 13px !important;
  }
}




/* モンスター図鑑：列表示設定の色を調整 */
#monster-sort .monster-column-panel {
  border-color: #d6e0ec !important;
}

/* 見出し：淡いブルー */
#monster-sort .monster-column-panel > button {
  background: #e7eff8 !important;
  color: #294766 !important;
}

#monster-sort .monster-column-panel > button:hover {
  background: #d9e6f4 !important;
}

/* チェック項目の背景 */
#monster-sort .monster-column-panel > div {
  background: #f7f9fc !important;
}

/* 各チェック項目 */
#monster-sort .monster-column-panel label {
  border-color: #dce4ee !important;
  background: #ffffff !important;
  color: #34465a !important;
}

#monster-sort .monster-column-panel label:hover {
  border-color: #a9bfd9 !important;
  background: #f0f5fb !important;
}

/* チェックボックスの色 */
#monster-sort .monster-column-panel input[type="checkbox"] {
  accent-color: #668bb5 !important;
}




.mon {
  font-family: 'DotGothic16', monospace !important;
  font-size: 17px;
margin-bottom: 8px !important;
  font-weight: normal;
  line-height: 1.7;
}



/* 技データベース：テーブル全体 */
#wikibody .tech-database table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

/* 内部データ列を非表示 */
#wikibody .tech-database th:nth-child(2),
#wikibody .tech-database td:nth-child(2),
#wikibody .tech-database th:nth-child(3),
#wikibody .tech-database td:nth-child(3),
#wikibody .tech-database th:nth-child(4),
#wikibody .tech-database td:nth-child(4),
#wikibody .tech-database th:nth-child(5),
#wikibody .tech-database td:nth-child(5),
#wikibody .tech-database th:nth-child(7),
#wikibody .tech-database td:nth-child(7) {
  display: none !important;
}

/* 技データベース：テーブル全体 */
#wikibody .tech-database table {
  width: 100% !important;
  min-width: 480px !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

/* 技名：150px固定・折り返し */
#wikibody .tech-database table th:nth-child(1),
#wikibody .tech-database table td:nth-child(1) {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  text-align: left;
  white-space: normal !important;
  overflow-wrap: anywhere;
  vertical-align: top;
  box-sizing: border-box;
}

/* 効果：300px固定・折り返し */
#wikibody .tech-database table th:nth-child(6),
#wikibody .tech-database table td:nth-child(6) {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  text-align: left;
  white-space: normal !important;
  overflow-wrap: anywhere;
  vertical-align: top;
  box-sizing: border-box;
}

/* 使用者：残りの幅 */
#wikibody .tech-database table th:nth-child(8),
#wikibody .tech-database table td:nth-child(8) {
  width: auto !important;
  text-align: left;
  white-space: normal !important;
  overflow-wrap: anywhere;
  vertical-align: top;
}