@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;
}


/* ==============================
   モンスター図鑑：列表示設定
============================== */

/* 設定パネル全体 */
#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 {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

/* 横スクロール */
#wikibody .tech-database .tech-table-scroll {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* テーブル */
#wikibody .tech-database .tech-table-scroll table {
  width: 100% !important;
  min-width: 650px !important;
  max-width: none !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

/* 内部列を非表示 */
#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 !important;
  max-width: 150px !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
/* 効果 */
#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;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

/* 使用者 */
#wikibody .tech-database table th:nth-child(8),
#wikibody .tech-database table td:nth-child(8) {
  width: 187px !important;
  min-width: 187px !important;
  max-width: 187px !important;
  text-align: left !important;
}

#wikibody .tech-database table td:nth-child(8) {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

/* セル共通 */
#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(8) {
  text-align: center !important;
}

/* 使用者のデータは左揃え */
#wikibody .tech-database table td:nth-child(8) {
  text-align: left !important;
}












/* =================================
   アイテム図鑑：章選択メニュー
================================= */

/* カード配置 */
#item-list-page .item-chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}

#item-list-page .item-chapter-card {
  min-width: 0;
}

/* カード本体 */
#item-list-page .item-chapter-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 10px 6px;
  box-sizing: border-box;

  background: #edf5fa;
  border: 1px solid #b9d2e2;
  border-radius: 6px;

  color: #315b75 !important;
  font-weight: bold;
  text-decoration: none;

  transition: background .2s, border-color .2s,
              transform .2s;
}

/* ホバー */
#item-list-page .item-chapter-card a:hover {
  background: #dcecf6;
  border-color: #83b3ce;
  color: #244d68 !important;
  transform: translateY(-2px);
}

/* 大見出し */
#item-list-page h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  padding: 9px 12px;

  border-left: 5px solid #b84b3b;
  border-bottom: 1px solid #e5c9bd;

  background: #fff8f4;
  color: #743b30;
}

/* 小見出し */
#item-list-page h3 {
  margin-top: 20px;
  padding: 6px 10px;

  border-left: 4px solid #c77b65;
  border-bottom: 1px solid #ead8d0;

  background: #fffaf7;
  color: #8f493b;
}

/* スマートフォン */
@media screen and (max-width: 600px) {
  #item-list-page .item-chapter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #item-list-page .item-chapter-card a {
    min-height: 46px;
    font-size: 13px;
    padding: 8px 3px;
  }
}







/* =====================================
   周回方法一覧
===================================== */

/* セクション見出し */
#farm-nav-heading-main,
#farm-nav-heading-boss {
  margin: 22px 0 10px;
  padding: 8px 12px;
  border-left: 5px solid #b84b3b;
  background: #fff0eb;
  color: #71382f;
  font-size: 16px;
  font-weight: bold;
}

/* リスト共通 */
#farm-nav-main ul,
#farm-nav-grid ul,
#farm-nav-sub ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#farm-nav-main li,
#farm-nav-grid li,
#farm-nav-sub li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 通常戦ボタン */
#farm-nav-main {
  margin-bottom: 22px;
}

#farm-nav-main a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfb2a8;
  border-radius: 7px;
  background: #fffaf8;
  color: #71382f !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}
/* BOSS周回ボタン */
#farm-nav-grid ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#farm-nav-grid a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 5px;
  border: 1px solid #dfb2a8;
  border-radius: 7px;
  background: #fffaf8;
  color: #71382f !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}

/* 変化先サンプル */
#farm-nav-sub {
  margin-top: 20px;
}

#farm-nav-sub a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #d5a096;
  border-radius: 7px;
  background: #f8e9e4;
  color: #71382f !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}

/* ホバー */
#farm-nav-main a:hover,
#farm-nav-grid a:hover,
#farm-nav-unknown a:hover,
#farm-nav-sub a:hover {
  background: #92382e;
  border-color: #92382e;
  color: #fff !important;
}

/* スマートフォン */


@media screen and (max-width: 360px) {
  #farm-nav-grid ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* 第?章：章別ボタンの直下に配置 */
#farm-nav-unknown {
  margin-top: 8px;
  margin-bottom: 20px;
}

#farm-nav-unknown ul,
#farm-nav-unknown li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#farm-nav-unknown a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfb2a8;
  border-radius: 7px;
  background: #fffaf8;
  color: #71382f !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}



/* 対戦モンスター出現条件の見出し */
#enemy-nav-heading {
  margin: 22px 0 10px;
  padding: 8px 12px;
  border-left: 5px solid #b84b3b;
  background: #fff0eb;
  color: #71382f;
  font-size: 16px;
  font-weight: bold;
}

/* リストの初期設定 */
#enemy-nav-grid ul,
#enemy-nav-unknown ul,
#enemy-nav-grid li,
#enemy-nav-unknown li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* 章別ボタン：4列 */
#enemy-nav-grid ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* ボタン共通 */
#enemy-nav-grid a,
#enemy-nav-unknown a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 5px;
  border: 1px solid #dfb2a8;
  border-radius: 7px;
  background: #fffaf8;
  color: #71382f !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}

/* 第?章 */
#enemy-nav-unknown {
  margin-top: 8px;
  margin-bottom: 20px;
}

#enemy-nav-unknown a {
  padding: 12px;
}

/* ホバー */
#enemy-nav-grid a:hover,
#enemy-nav-unknown a:hover {
  background: #92382e;
  border-color: #92382e;
  color: #fff !important;
}


/* 敵チーム出現の法則ボタン */
#enemy-law-main {
  margin-bottom: 22px;
}

#enemy-law-main ul,
#enemy-law-main li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#enemy-law-main a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #dfb2a8;
  border-radius: 7px;
  background: #fffaf8;
  color: #71382f !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}

#enemy-law-main a:hover {
  background: #92382e;
  border-color: #92382e;
  color: #fff !important;
}



/* 敵チーム一覧のナビゲーション */
#enemy-team-nav ul,
#enemy-team-nav li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#enemy-team-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

#enemy-team-nav a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 5px;
  border: 1px solid #dfb2a8;
  border-radius: 7px;
  background: #fffaf8;
  color: #71382f !important;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: .2s;
}

#enemy-team-nav a:hover {
  background: #92382e;
  border-color: #92382e;
  color: #fff !important;
}



.chapter-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.chapter-link-buttons a {
  display: inline-block;
  padding: 7px 15px;
  border: 1px solid #b84b3b;
  border-radius: 6px;
  background: #fff7f3;
  color: #a33b2d !important;
  text-decoration: none !important;
  font-weight: bold;
  text-align: center;
  transition: background .2s, color .2s;
}

.chapter-link-buttons a:hover {
  background: #b84b3b;
  color: #fff !important;
}


.figure-link img {
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.figure-link a:hover img {
  filter: brightness(0.80);
}