@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

@import url('../cocoon-master/style.css');

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ===== Layout Ver.8（標準テーブルデザイン） ===== */

/* 全体レイアウト */
.table-wrapper {
  overflow-x: auto;
  margin-top: 1em;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1em;
}

/* テーブル本体 */
.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 15px;
  min-width: 900px;
}

/* ヘッダー */
.table-wrapper th {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 10px 6px;
  position: sticky;
  top: 0;
  z-index: 2;
  font-weight: 600;
  white-space: nowrap;
}

/* セル */
.table-wrapper td {
  padding: 8px 6px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

/* 奇数偶数で背景変化 */
.table-wrapper tr:nth-child(odd) td {
  background: #f9fafb;
}

/* 行ホバー */
.table-wrapper tr:hover td {
  background: #eef2ff;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .table-wrapper {
    padding: 0.5em;
  }
  .table-wrapper table {
    font-size: 14px;
    min-width: 720px;
  }
  .table-wrapper th, .table-wrapper td {
    padding: 6px 4px;
  }
}

/* ===== 検索UIも統一トーンに ===== */
.search-box input,
.search-box select {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 14px;
  margin-right: 4px;
}

.search-box label {
  font-weight: 600;
  margin-right: 4px;
  color: #334155;
}

.search-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 0.8em;
}

button {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}
button:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/**************************************************
 * VB-Ragna 攻略サイト用 CSS v1.3-clean3
 * （style.css 直書き専用／カスタマイザー無効化対応版）
 **************************************************/

/* ===== 共通サイトメニュー ===== */
.site-menu ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-menu li a {
  display: block;
  padding: 8px 14px;
  background: #f4f4f4;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}
.site-menu li a:hover {
  background: #333;
  color: #fff;
}

/* ===== 固定ページタイトル・投稿日を非表示（修正版） ===== */
.page .entry-title { display: none; }

body.home .post-date,
body.home .post-date::before,
body.home .entry-date,
body.home .entry-date::before {
  display: none !important;
}



/* ==================================================
   VB-Ragna 詳細ページ専用レイアウト
   （/detail/?id=◯ 用）
   ================================================== */
.unit-detail-container {
  --vb-border: #e5e7eb;
  --vb-head-bg: #fff7ed;
  --vb-head-bd: #f1c97a;
  --vb-box-bg: #fff;
  --vb-muted: #64748b;
  font-size: 15px;
  line-height: 1.45;
}

/* 見出し：ユニット名 */
.unit-detail-container .unit-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 6px 0 12px;
}

/* 上段2カラム */
.unit-detail-container .unit-main {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .unit-detail-container .unit-main { grid-template-columns: 1fr; }
}

/* セクション枠と見出し */
.unit-detail-container .unit-section {
  background: var(--vb-box-bg);
  border: 1px solid var(--vb-border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.unit-detail-container .unit-section-title {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 8px;
  background: var(--vb-head-bg);
  border: 1px solid var(--vb-head-bd);
  padding: 6px 10px;
  border-radius: 6px;
}

/* テーブル基本 */
.unit-detail-container table {
  width: 100%;
  border-collapse: collapse;
}
.unit-detail-container th,
.unit-detail-container td {
  border: 1px solid var(--vb-border);
  padding: 6px 8px;
  vertical-align: middle;
}
.unit-detail-container th {
  width: 110px;
  background: #f9fafb;
  text-align: right;
  color: #111;
}

/* ===== 戦術スキル ===== */
#unit-data {
  margin-top: 12px;
}
#unit-data .ud-table {
  width: 100%;
  border-collapse: collapse;
}
#unit-data .ud-table th {
  background: var(--vb-head-bg);
  border: 1px solid var(--vb-head-bd);
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}
#unit-data .ud-table td {
  border: 1px solid var(--vb-border);
  padding: 6px 8px;
  vertical-align: top;
}
#unit-data .ud-table .t-center {
  text-align: center;
}

/* ===== 追加称号（武将のみ） ===== */
#unit-title .ud-table {
  width: 100%;
  border-collapse: collapse;
}
#unit-title .ud-table th {
  background: var(--vb-head-bg);
  border: 1px solid var(--vb-head-bd);
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}
#unit-title .ud-table td {
  border: 1px solid var(--vb-border);
  padding: 6px 8px;
}
#unit-title .ud-table td:nth-child(2),
#unit-title .ud-table td:nth-child(3),
#unit-title .ud-table td:nth-child(4),
#unit-title .ud-table td:nth-child(5),
#unit-title .ud-table td:nth-child(6),
#unit-title .ud-table td:nth-child(7) {
  text-align: center;
  width: 56px;
}
#unit-title .ud-table td:first-child { min-width: 180px; }
#unit-title .ud-table td:nth-child(8),
#unit-title .ud-table td:nth-child(9) {
  line-height: 1.3;
  word-break: keep-all;
}

/* 条件ボックス */
#unit-title .title-conditions {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--vb-head-bg);
  border: 1px solid var(--vb-head-bd);
  border-radius: 6px;
  font-size: 0.95em;
  color: #111;
}

/* ===== パンくず + 一覧へ戻る ===== */
.vb-breadcrumb {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
}
.vb-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}
.vb-breadcrumb a:hover {
  text-decoration: underline;
}
.vb-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.vb-breadcrumb li + li::before {
  content: "＞";
  margin: 0 0.25rem;
  opacity: 0.5;
}
.vb-backto {
  margin: 0.5rem 0 1rem;
}
.vb-backto__btn {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
}
.vb-backto__btn:hover {
  background: #2563eb;
  color: #fff;
}

/* ===== スマホ最適化 ===== */
@media (max-width: 768px) {
  .unit-detail-container th { width: 36%; font-size: 0.95rem; }
  .unit-detail-container td { font-size: 0.95rem; }
  #unit-data .ud-table th,
  #unit-title .ud-table th {
    font-size: 0.9rem;
  }
  #unit-data .ud-table td,
  #unit-title .ud-table td {
    font-size: 0.9rem;
  }
}

/* ===== 印刷時調整 ===== */
@media print {
  .unit-detail-container .unit-section-title {
    background: #fff;
    border-color: #bbb;
  }
  #unit-title .title-conditions {
    background: #fff;
    border-color: #bbb;
  }
}

/* ===== VB-Ragna v1.3.1 fix : spacing & skill width ===== */

/* --- ボックス間の余白を詰める（v1.2準拠） --- */
.unit-detail-container .unit-section {
  margin-bottom: 6px;
  padding: 8px 10px 6px;
}

/* --- 戦術スキルテーブルの列幅安定化 --- */
#unit-data .ud-table {
  table-layout: fixed;
}
#unit-data .ud-table th:nth-child(1),
#unit-data .ud-table td:nth-child(1) {
  width: 22%;
}
#unit-data .ud-table th:nth-child(2),
#unit-data .ud-table td:nth-child(2) {
  width: 12%;
  text-align: center;
}
#unit-data .ud-table th:nth-child(3),
#unit-data .ud-table td:nth-child(3) {
  width: 66%;
}

/* --- モバイル時（スマホ）では自動折り返しに変更 --- */
@media (max-width: 768px) {
  #unit-data .ud-table {
    table-layout: auto;
  }
}


/* ===== VB-Ragna v1.3.6-fix : title-highlight 強制適用 ===== */

/* --- 全体白ベース・枠線なし --- */
.unit-detail-container .unit-section {
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  margin-bottom: 3px !important;
  padding: 4px 6px 3px !important;
}

/* --- タイトル帯のみ淡ベージュ強制反映 --- */
.unit-detail-container .unit-section-title,
.unit-detail-container div.unit-section-title,
.unit-detail-container > .unit-main .unit-section .unit-section-title {
  background: #fff4d9 !important;       /* ←強制反映 */
  border: 1px solid #e2c79a !important;
  border-radius: 4px !important;
  color: #222 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  margin-bottom: 4px !important;
  padding: 5px 7px 4px !important;
  line-height: 1.3em;
}

/* --- カラム間隔と下部表の統一 --- */
.unit-detail-container .unit-main {
  gap: 8px !important;
}
#unit-data, #unit-title {
  margin-top: 6px !important;
}


/* ===== VB-Ragna v1.4.1 layout-tight ===== */

/* === 全体幅をさらにコンパクトに（約2割狭く） === */
.unit-detail-container {
  max-width: 720px;   /* ← 旧880pxからさらに2割縮小 */
  margin: 0 auto;
}

/* === 上段ボックス間の余白調整 === */
.unit-detail-container .unit-main {
  grid-template-columns: 1fr 1fr;
  gap: 6px;           /* 間隔をさらに少し詰める */
}
.unit-detail-container th,
.unit-detail-container td {
  padding: 3px 5px !important;
}

/* === 装備行：2列を均等にする === */
.unit-detail-container .equip-table td {
  width: 50% !important;
  text-align: center;
}

/* === 戦術スキル表：幅再バランス === */
#unit-data .ud-table {
  table-layout: fixed !important;
  width: 100%;
}
#unit-data .ud-table th:nth-child(1),
#unit-data .ud-table td:nth-child(1) {
  width: 34%;    /* スキル名 */
  white-space: nowrap;
}
#unit-data .ud-table th:nth-child(2),
#unit-data .ud-table td:nth-child(2) {
  width: 10%;    /* コスト */
  text-align: center;
}
#unit-data .ud-table th:nth-child(3),
#unit-data .ud-table td:nth-child(3) {
  width: 56%;    /* 効果 */
  word-break: break-word;
  line-height: 1.4em;
}

/* === 追加称号表：狭幅バランス版 === */
#unit-title .ud-table {
  table-layout: fixed !important;
  width: 100%;
}
#unit-title .ud-table th:first-child,
#unit-title .ud-table td:first-child { width: 20%; }
#unit-title .ud-table th:nth-child(2),
#unit-title .ud-table td:nth-child(2),
#unit-title .ud-table th:nth-child(3),
#unit-title .ud-table td:nth-child(3),
#unit-title .ud-table th:nth-child(4),
#unit-title .ud-table td:nth-child(4),
#unit-title .ud-table th:nth-child(5),
#unit-title .ud-table td:nth-child(5),
#unit-title .ud-table th:nth-child(6),
#unit-title .ud-table td:nth-child(6),
#unit-title .ud-table th:nth-child(7),
#unit-title .ud-table td:nth-child(7) {
  width: 6%; text-align: center;
}
#unit-title .ud-table th:nth-child(8),
#unit-title .ud-table td:nth-child(8),
#unit-title .ud-table th:nth-child(9),
#unit-title .ud-table td:nth-child(9) { width: 17%; }


/* ===== VB-Ragna v1.4.5 equip-align ===== */
.unit-detail-container .equip-table td {
  width: 50% !important;
  text-align: center !important;
  border: 1px solid var(--vb-border);
  padding: 6px 8px;
  box-sizing: border-box;
}

/* ===== VB-Ragna v1.4.6 spacing: title->tactics ===== */
/* 条件ボックスの下に“1行分”の余白を追加 */
#unit-title .title-conditions { 
  margin-bottom: 30px !important;   /* 好みで 10–16px で微調整可 */
}
/* 念のため、戦術ブロック側の上マージンも少しだけ */
#unit-data { 
  margin-top: 12px !important;
}



/* ==================================================
   VB-Ragna v1.4.7_clean_fix : detail安定化版
   （v1.4.6基準・壊さずに整える）
   ================================================== */

/* --- ページ全体をスコープ化（他ページへ影響なし） --- */
#vb-detail-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* --- パンくず＋戻るボタンを中央寄せで統一 --- */
#vb-detail-page .vb-breadcrumb-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px auto 16px;
  max-width: 720px;
}
#vb-detail-page .vb-breadcrumb {
  font-size: 0.92rem;
  color: #6b6b6b;
}
#vb-detail-page .vb-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}
#vb-detail-page .vb-breadcrumb a:hover {
  text-decoration: underline;
}
#vb-detail-page .vb-btn-back {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #d8cbb8;
  background: #f7f1e8;
  color: #5a5145;
  font-size: 0.9rem;
  text-decoration: none;
}
#vb-detail-page .vb-btn-back:hover {
  filter: brightness(0.97);
}

/* --- PC時：左右2カラム維持 --- */
#vb-detail-page .unit-main {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
#vb-detail-page .unit-left,
#vb-detail-page .unit-right {
  width: 50%;
}

/* --- スマホ時：右カラム切れ防止・縦並び --- */
@media screen and (max-width: 834px) {
  #vb-detail-page .unit-main {
    display: block !important;
  }
  #vb-detail-page .unit-left,
  #vb-detail-page .unit-right {
    width: 100% !important;
    display: block !important;
  }
  #vb-detail-page .unit-right {
    margin-top: 10px;
  }
  #vb-detail-page table {
    width: 100% !important;
    table-layout: fixed;
    word-break: break-word;
  }
}

/* --- スマホ時：パンくずとボタンを縦に --- */
@media screen and (max-width: 600px) {
  #vb-detail-page .vb-breadcrumb-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  #vb-detail-page .vb-btn-back {
    font-size: 1rem;
    padding: 8px 14px;
  }
}
/* ===== v1.4.7_addfix: スマホ時の中央寄せ・はみ出し防止 ===== */
@media screen and (max-width: 834px) {
  /* 本文領域を中央に */
  #vb-detail-page {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 8px !important;
    box-sizing: border-box;
  }

  /* 親ラップがflexずれしてる場合の対策 */
  #content-in.wrap,
  .entry-content {
    overflow-x: visible !important;
  }

  /* テーブルが横スクロールで切れないよう補強 */
  #vb-detail-page table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse;
    word-break: break-word;
  }
}

/* ===== v1.4.7_addfix2: スマホ時の最終中央寄せ・余白補正 ===== */
@media screen and (max-width: 834px) {
  /* Cocoon本体の余白リセット */
  #container,
  #content,
  #content-in,
  .content,
  .wrap,
  .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  /* 詳細ページ本体を再中央寄せ */
  #vb-detail-page {
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 12px !important;
    box-sizing: border-box;
  }

  /* 各テーブルを完全フィット */
  #vb-detail-page table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    word-break: break-word;
    border-collapse: collapse;
  }
}

.vote-section {
  margin-top: 1.5em;
  text-align: center;
}
.vote-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}
.vote-btn:hover {
  filter: brightness(1.05);
}
.vote-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}
#vote-message {
  display: block;
  margin-top: 0.6em;
  color: #555;
  font-size: 14px;
}

/* ランキングページ用 */
.ranking-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.ranking {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}
.ranking li {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}
.rank-unit {
  font-weight: 600;
  color: #111;
}
.rank-count {
  color: #444;
}

/* 詳細ページのランキングボタン */
.vb-vote-wrap { text-align: center; margin-top: 12px; }
.vb-vote-wrap .vb-btn-vote {
  display: inline-block;
}



/* === ランキング表 === */
.ranking-container { max-width: 720px; margin: 0 auto; }
.vb-rank-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.vb-rank-table th {
  background: #fff7ed;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  font-weight: 700;
}
.vb-rank-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 10px;
}
.vb-rank-table tr:nth-child(even) td { background: #fafafa; }
.vb-rank-table .t-center { text-align: center; }
.vb-rank-table .t-right  { text-align: right; }
.vb-btn-link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d8cbb8;
  background: #f7f1e8; color: #5a5145; text-decoration: none;
}
.vb-btn-link:hover { filter: brightness(0.97); }

/* === Aセット用追記：累計投票＋類似ユニット === */

.vb-votecount {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #b45309;
  margin: 10px 0 20px;
}

.vb-related {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px 14px;
  margin-top: 18px;
}

.vb-related-list {
  margin-top: 10px;
}

.vb-related-item {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 15px;
}

.vb-related-item a {
  color: #1d4ed8;
  text-decoration: none;
}

.vb-related-item a:hover {
  text-decoration: underline;
}


/************************************
** 研究カテゴリーボタン + グリッド + ユニット一覧（最終仕上げ版）
************************************/

/* === カテゴリーボタン === */
.research-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.research-category-btn {
  background: #eaf2ff;
  border: 1px solid #a7c1ff;
  border-radius: 6px;
  padding: 6px 10px;
  color: #002244;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 110px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

.research-category-btn:hover {
  background: #cde0ff;
}

.research-category-btn.active {
  background: #a7c1ff;
  color: #fff;
}

/* === 研究グリッド（A1〜E5） === */
.research-grid {
  display: flex;
  flex-direction: column;
  align-items: center; /* ★ 5×5中央寄せ */
  margin: 10px 0;
}

.research-row {
  display: flex;
  justify-content: center; /* ★ 横中央寄せ */
  margin: 4px 0;
}

.research-cell {
  width: 80px;
  height: 50px;
  background: #fff;
  border: 1px solid #ddd;
  margin: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.research-cell button {
  background: #fef6d9;
  border: 1px solid #cbb;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-weight: 600; /* ★ 太字で視認性UP */
  color: #3a2a00;  /* ★ コントラスト高め */
  transition: background 0.2s ease;
}

.research-cell button:hover {
  background: #ffedb5;
}

/* === ユニット一覧 === */
.research-unit-section {
  margin-top: 16px;
  border: 1px solid #f2e2a2;
  background: #fff9e6;
  border-radius: 6px;
  padding: 10px 14px;
  max-width: 700px;       /* ★ 横幅を制限して */
  margin-left: auto;      /* ★ 中央寄せ */
  margin-right: auto;
}

.research-unit-header {
  font-weight: bold;
  background: #fff3c0;
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-align: left;
}

.research-unit-link {
  display: block;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 4px 0;
  text-decoration: none;
  color: #003366;
  transition: background 0.2s ease;
}

.research-unit-link:hover {
  background: #fff2cc;
}

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 834px) {
  .research-categories {
    gap: 6px;
  }

  .research-category-btn {
    flex: 1 1 calc(33.33% - 6px);
    min-width: unset;
    font-size: 13px;
    padding: 5px;
  }

  .research-cell {
    width: 64px;
    height: 42px;
  }

  .research-unit-link {
    font-size: 13px;
    padding: 5px 10px;
  }

  .research-unit-section {
    max-width: 95%; /* スマホはほぼ全幅 */
  }
}

/* === グローバルナビ（ヘッダーメニュー）をボタン風に === */
#navi ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 10px 0;
  padding: 0;
}

#navi ul li a {
  display: inline-block;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#navi ul li a:hover {
  background: #f0f3fa;
  border-color: #888;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  color: #000;
}

/* スマホ対応：ボタン幅を広めに */
@media screen and (max-width: 600px) {
  #navi ul {
    gap: 6px;
  }
  #navi ul li a {
    padding: 8px 14px;
    font-size: 0.9em;
  }
}

/* === トップページ限定：金属調ナビボタンデザイン === */
body.home #navi ul li a {
  background: linear-gradient(180deg, #f5f7fa 0%, #d8dde6 100%);
  border: 1px solid #a2a9b4;
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6),
              0 1px 3px rgba(0,0,0,0.2);
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  transition: all 0.25s ease;
}

body.home #navi ul li a:hover {
  background: linear-gradient(180deg, #e9ecf2 0%, #c5ccd8 100%);
  border-color: #8b93a0;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.9),
              0 2px 5px rgba(0,0,0,0.3);
  transform: translateY(-1px);
  color: #000;
}

/* トップページ：ナビ位置調整（やや下に余白を作る） */
body.home #navi {
  margin-bottom: 20px;
}

/* スマホ調整 */
@media screen and (max-width: 600px) {
  body.home #navi ul li a {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

/* === トップページ限定：見出しとリンクだけ金属調 === */

/* 見出し（h2） */
body.home h2 {
  background: linear-gradient(180deg, #f4f6fa 0%, #d6dae2 100%);
  border: 1px solid #a2a8b1;
  color: #0c0c0c;
  padding: 10px 15px;
  border-radius: 6px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7),
              0 1px 2px rgba(0,0,0,0.15);
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  margin-bottom: 15px;
}

/* 見出しの文字をやや太くして安定感を出す */
body.home h2 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* 通常リンク */
body.home a {
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
}

/* ホバー時に金属の反射光を演出 */
body.home a:hover {
  color: #000;
  background: linear-gradient(180deg, #f9fafb 0%, #cfd3db 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.9),
              0 1px 3px rgba(0,0,0,0.15);
  padding: 2px 4px;
}

/* スマホ微調整（余白を少し減らす） */
@media screen and (max-width: 600px) {
  body.home h2 {
    font-size: 1.1em;
    padding: 8px 10px;
  }
}


/* === Bパターン：企業公式風の2カラムフッター === */
.footer-b {
  margin-top: 60px;
  padding: 20px 30px;
  background: linear-gradient(180deg, #f8f9fb, #dfe3e8);
  border-top: 1px solid #a9adb3;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9em;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.8);
}

/* 左：リンク群 */
.footer-left a {
  color: #222;
  text-decoration: none;
  margin-right: 10px;
  transition: all 0.2s ease;
}
.footer-left a:hover {
  color: #000;
  background: linear-gradient(180deg, #ffffff, #dce0e7);
  border-radius: 3px;
  padding: 2px 4px;
}

/* 右：コピーライト */
.footer-right {
  color: #555;
  text-align: right;
  flex-shrink: 0;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .footer-b {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .footer-right {
    text-align: center;
  }
}

/****************************************************
 * Skillページ：完全安定版（PC横並び・スマホ縦並び）
 ****************************************************/
.skill-section{
  margin:0 auto;
  max-width:800px;
  font-size:15px;
  line-height:1.6;
}

/* 検索フォーム */
.skill-search-bar{
  display:flex;
  flex-wrap:wrap;              /* スマホ時は自動で折り返し */
  align-items:center;
  justify-content:flex-start;
  gap:24px;
  background:#eaf2ff;
  border:1px solid #a7c1ff;
  border-radius:8px;
  box-shadow:1px 1px 3px rgba(0,0,0,.05);
  padding:10px 14px;
  margin:10px auto 8px;
  box-sizing:border-box;
}
.skill-search-item{
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:600;
  color:#002244;
}
.skill-search-item input,
.skill-search-item select{
  padding:6px 8px;
  font-size:14px;
  border:1px solid #a7c1ff;
  border-radius:6px;
  background:#fff;
  height:34px;
  width:160px;
}

/* TablePress */
.tablepress-id-5{
  width:100% !important;
  border-collapse:collapse !important;
  table-layout:fixed !important;
  margin-top:8px;
  font-size:15px !important;
}
.tablepress-id-5 th,
.tablepress-id-5 td{
  padding:6px 10px !important;
  border:1px solid #ccc !important;
  vertical-align:top !important;
  word-break:break-word !important;
}
.tablepress-id-5 th:nth-child(1),
.tablepress-id-5 td:nth-child(1){ width:60px !important; text-align:center !important; }
.tablepress-id-5 th:nth-child(2),
.tablepress-id-5 td:nth-child(2){ width:100px !important; }
.tablepress-id-5 th:nth-child(3),
.tablepress-id-5 td:nth-child(3){ width:auto !important; }
.tablepress-id-5 tbody tr:nth-child(odd) td{ background:#f9f9ff !important; }
.tablepress-id-5 tbody tr:nth-child(even) td{ background:#fff !important; }

/* スマホ */
@media screen and (max-width:834px){
  .skill-search-bar{ flex-direction:column; align-items:center; text-align:center; gap:8px; }
  .skill-search-item{ justify-content:center; width:100%; }
  .skill-search-item input,.skill-search-item select{ width:180px; }
  .tablepress-id-5 th,.tablepress-id-5 td{ padding:4px 6px !important; }
  .tablepress-id-5 th:nth-child(1),.tablepress-id-5 td:nth-child(1){ width:50px !important; }
  .tablepress-id-5 th:nth-child(2),.tablepress-id-5 td:nth-child(2){ width:80px !important; }
}


/****************************************************
 * 装備ページ：装備種 横並び → 検索「スキル検索：□」横並び
 * PC整列／スマホは自然に縦流れ（崩壊防止）
 ****************************************************/

/* === 共通 === */
.equip-section{
  margin:0 auto;
  max-width:900px;
  font-size:15px;
  line-height:1.6;
}

/* コントロール枠（子を並び替えるためにflex化） */
.equip-controls{
  background:#eaf2ff;
  border:1px solid #a7c1ff;
  border-radius:8px;
  box-shadow:1px 1px 3px rgba(0,0,0,.05);
  padding:12px 14px;
  margin:10px auto 8px;
  max-width:900px;

  display:flex;
  flex-direction:column;
  gap:10px;
}

/* 行 */
.equip-row{ display:block; }

/* 並び順：装備種を上、検索を下 */
.equip-controls .equip-row:nth-child(1){ order:2; } /* 検索 */
.equip-controls .equip-row:nth-child(2){ order:1; } /* 装備種 */

/* === 装備種（横1列ベース、幅が足りなければ自然に2行以上OK） === */
.equip-types{
  display:flex !important;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
}
.equip-types br{ display:none !important; } /* エディタ改行の無効化 */

.equip-types-label{
  display:none; /* 一列運用なので見出しは省略。必要なら block に戻してOK */
  font-weight:600; color:#002244; margin-right:8px;
}

.equip-types label{
  display:inline-flex !important;   /* Cocoonの block/100% を打ち消し */
  width:auto !important;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border:1px solid #d6e4ff;
  border-radius:8px;
  background:#f7fbff;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.equip-types input[type="checkbox"]{ transform:translateY(1px); }
.equip-types label:has(input:checked),
.equip-types label input:checked + span{
  background:#dbe9ff; border-color:#9fbaff; box-shadow:0 1px 0 rgba(0,0,0,.04) inset;
}

/* === スキル検索「ラベル：入力」を横並びに === */
.equip-search{
  display:flex;
  align-items:center;
  gap:10px;
}
/* ←中央寄せにしたければ下1行を有効化
   .equip-search{ justify-content:center; } */
.equip-search label{
  font-weight:600; color:#002244;
}
#equip-skill{
  padding:6px 8px;
  font-size:14px;
  border:1px solid #a7c1ff;
  border-radius:6px;
  background:#fff;
  height:34px;
  width:280px;
}

/* === TablePress（id=1） === */
.tablepress-id-1{
  width:100% !important;
  border-collapse:collapse !important;
  table-layout:fixed !important;
  margin-top:8px;
  font-size:15px !important;
}
.tablepress-id-1 th,
.tablepress-id-1 td{
  padding:6px 10px !important;
  border:1px solid #ccc !important;
  vertical-align:top !important;
  word-break:break-word !important;
  white-space:nowrap;
}
.tablepress-id-1 td:nth-child(3){ white-space:normal; } /* 装備名は折返し可 */

.tablepress-id-1 th:nth-child(1), .tablepress-id-1 td:nth-child(1){ width:70px !important; text-align:center; }
.tablepress-id-1 th:nth-child(2), .tablepress-id-1 td:nth-child(2){ width:56px !important; text-align:center; }
.tablepress-id-1 th:nth-child(3), .tablepress-id-1 td:nth-child(3){ width:220px !important; }
.tablepress-id-1 th:nth-child(4), .tablepress-id-1 td:nth-child(4),
.tablepress-id-1 th:nth-child(5), .tablepress-id-1 td:nth-child(5),
.tablepress-id-1 th:nth-child(6), .tablepress-id-1 td:nth-child(6),
.tablepress-id-1 th:nth-child(7), .tablepress-id-1 td:nth-child(7){ width:48px !important; text-align:right; }

.tablepress-id-1 thead th{ position:sticky; top:0; z-index:2; background:#e6f0ff !important; }
.tablepress-id-1_wrapper{ overflow-x:auto; }
.tablepress-id-1 tbody tr:hover td{ background:#eef5ff !important; }

/* DataTables純正検索は使わない */
.tablepress-id-1_wrapper .dataTables_filter{ display:none !important; }

/* === スマホ === */
@media (max-width:834px){
  .equip-section{ font-size:14px; }
  .equip-controls{ gap:8px; }

  /* 装備種は自然に複数行でOK（崩れ防止） */
  .equip-types{ gap:8px 8px; }

  /* 検索：横幅が厳しくなったら2段で美しく折返し */
  .equip-search{ flex-wrap:wrap; }
  .equip-search label{ margin-right:0; }
  #equip-skill{
    width:100%;
    min-width:0;
  }

  .tablepress-id-1 th, .tablepress-id-1 td{
    padding:4px 6px !important;
    font-size:14px !important;
  }
  .tablepress-id-1 th:nth-child(3), .tablepress-id-1 td:nth-child(3){
    width:200px !important;
  }
}

/* === PC：スキル検索「ラベル：□」を中央寄せ === */
.equip-search{
  justify-content: center;   /* ←中央寄せに変更 */
}

/* === SP：表が潰れる対策（横スクロール前提） === */
@media (max-width: 834px){
  /* ラッパーを確実に横スクロール可に */
  .tablepress-id-1_wrapper{
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
  }
  /* テーブル自体に最小幅を持たせて潰れ防止 */
  .tablepress-id-1{
    min-width: 820px;              /* ★ここが効きます。必要なら780〜900で微調整 */
    table-layout: fixed !important;
  }
  /* 文字の折返し抑制（数値列など） */
  .tablepress-id-1 th,
  .tablepress-id-1 td{
    white-space: nowrap;
  }
  /* iOSでstickyが暴れるときは下を有効化
  .tablepress-id-1 thead th{ position: static !important; }
  */
}

/* ===== VenusBlood 称号ページ（table id=4） ===== */

/* 版全体 */
.vb-title .title-section{ max-width:980px; margin:0 auto; font-size:15px; line-height:1.6; }
.vb-title *{ box-sizing:border-box; }

/* --- 検索UI枠 --- */
#title-controls{
  background:#eaf2ff; border:1px solid #a7c1ff; border-radius:8px;
  box-shadow:1px 1px 3px rgba(0,0,0,.05);
  padding:12px 14px; margin:10px auto 18px;
}

/* Classicエディタの<p><br>で崩れないように（超重要） */
#title-controls br{ display:none !important; }
#title-controls p{ margin:0 !important; display:inline !important; }

/* 行レイアウト：2段横並びでも崩れない */
#title-controls .title-grid{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:12px 18px; /* 縦/横の間隔 */
}

/* 各フィールドを低背の横並びに固定 */
#title-controls .field{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
#title-controls .label{ font-weight:600; color:#002244; margin-right:6px; }

/* チェック「あり」を1行で */
#title-controls .flag{ display:inline-flex; align-items:center; gap:6px; }
#title-controls input[type="checkbox"]{ margin:0; transform:translateY(1px); }

/* 入力類の共通スタイル */
#title-controls select,
#title-controls input[type="text"]{
  height:34px; padding:6px 8px; font-size:14px;
  border:1px solid #a7c1ff; border-radius:6px; background:#fff;
}

/* 幅（短め指定：要望どおり） */
#title-affinity{ width:120px; } /* 特攻（例：不死/悪/竜） */
#title-skill{ width:160px; }    /* スキル（最大4文字程度） */

/* スマホ */
@media (max-width:834px){
  .vb-title .title-section{ font-size:14px; }
  #title-controls .title-grid{ justify-content:center; gap:10px 14px; }
  #title-controls select, #title-controls input[type="text"]{ height:32px; }
  #title-affinity{ width:96px; }
  #title-skill{ width:128px; }
}

/* --- TablePress id=4：列幅・見た目 --- */
.tablepress-id-4{
  width:100% !important; border-collapse:collapse !important; table-layout:fixed !important;
  font-size:15px !important;
}
.tablepress-id-4 th, .tablepress-id-4 td{
  padding:6px 10px !important; border:1px solid #ccc !important;
  vertical-align:top !important; white-space:nowrap;
}

/* 名称(4列目)は折返しOK／スキル(最終列)は可変で広く */
.tablepress-id-4 th:nth-child(4), .tablepress-id-4 td:nth-child(4){ width:220px !important; white-space:normal; }
.tablepress-id-4 th:nth-child(13), .tablepress-id-4 td:nth-child(13){ width:auto !important; white-space:normal; }

/* それ以外（武勲/成長度/文字/接頭/接尾/攻/防/速/知/特攻/加護）は同幅 */
.tablepress-id-4 th:nth-child(1), .tablepress-id-4 td:nth-child(1){ width:56px !important; text-align:center; } /* 武勲 */
.tablepress-id-4 th:nth-child(2), .tablepress-id-4 td:nth-child(2),
.tablepress-id-4 th:nth-child(3), .tablepress-id-4 td:nth-child(3),
.tablepress-id-4 th:nth-child(5), .tablepress-id-4 td:nth-child(5),
.tablepress-id-4 th:nth-child(6), .tablepress-id-4 td:nth-child(6),
.tablepress-id-4 th:nth-child(7), .tablepress-id-4 td:nth-child(7),
.tablepress-id-4 th:nth-child(8), .tablepress-id-4 td:nth-child(8),
.tablepress-id-4 th:nth-child(9), .tablepress-id-4 td:nth-child(9),
.tablepress-id-4 th:nth-child(10), .tablepress-id-4 td:nth-child(10),
.tablepress-id-4 th:nth-child(11), .tablepress-id-4 td:nth-child(11),
.tablepress-id-4 th:nth-child(12), .tablepress-id-4 td:nth-child(12){
  width:56px !important; text-align:center;
}

/* ヘッダ固定 & SPは横スクロール */
.tablepress-id-4 thead th{ position:sticky; top:0; z-index:2; background:#e6f0ff !important; }
.tablepress-id-4_wrapper{ overflow-x:auto; }
@media (max-width:834px){ .tablepress-id-4{ min-width:900px; } }

/* DataTables 純正検索は隠す（自前UIを使うため） */
.tablepress-id-4_wrapper .dataTables_filter{ display:none !important; }

/* TablePress #4：スマホ幅でスキル列(13列目)を広めにして折り返しOK */
@media (max-width: 600px){
  .tablepress-id-4 th:nth-child(13),
  .tablepress-id-4 td:nth-child(13){
    width: 180px !important;     /* ←好みで 160～220px に調整 */
    min-width: 180px !important;
    white-space: normal !important;
    line-height: 1.4;
  }
  /* かわりに数値列をちょい圧縮（横スクロール前提なら省略可） */
  .tablepress-id-4 th:nth-child(7), .tablepress-id-4 td:nth-child(7),  /* 攻 */
  .tablepress-id-4 th:nth-child(8), .tablepress-id-4 td:nth-child(8),  /* 防 */
  .tablepress-id-4 th:nth-child(9), .tablepress-id-4 td:nth-child(9),  /* 速 */
  .tablepress-id-4 th:nth-child(10), .tablepress-id-4 td:nth-child(10),/* 知 */
  .tablepress-id-4 th:nth-child(12), .tablepress-id-4 td:nth-child(12) /* 加護 */
  { width: 46px !important; }
}

/* === Cocoon標準のフッターコピーライトを非表示 === */
#footer,
.footer-bottom,
.footer-credit,
.footer-container,
#site-bottom {
  display: none !important;
}


/* === ハイブリッド版B：装飾寄り === */
.vb-top.hybrid-bold {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
  color: #222;
}

.vb-hero {
  text-align: center;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #e0e2e8 70%, #cfd2da 100%);
  border: 1px solid #999;
  border-radius: 12px;
  padding: 38px 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 0 10px rgba(255,255,255,0.6);
  margin-bottom: 30px;
}

.vb-hero h1 {
  font-size: 1.9em;
  margin-bottom: 10px;
  color: #222;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.vb-hero p {
  font-size: 0.95em;
  color: #333;
}

.vb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.vb-card {
  background: linear-gradient(180deg, #fdfdfd 0%, #e5e6eb 100%);
  border: 1px solid #aaa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 3px 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vb-card:hover {
  transform: translateY(-4px);
  box-shadow: 3px 6px 14px rgba(0,0,0,0.25);
}

.vb-card h2 {
  font-size: 1.25em;
  margin-bottom: 10px;
  border-bottom: 2px solid #666;
  padding-bottom: 4px;
}

.vb-card a {
  text-decoration: none;
  color: #1f2b5c;
}

.vb-card a:hover {
  color: #000;
  text-shadow: 0 0 3px rgba(150,150,255,0.4);
}

.vb-news {
  background: linear-gradient(180deg, #f7f8fc 0%, #e9eaf1 100%);
  border: 1px solid #999;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.vb-news h2 {
  border-bottom: 2px solid #666;
  margin-bottom: 8px;
}

/* === 投稿・更新日時を完全非表示（Cocoon固定ページ用） === */
.post-meta,
.date-tags,
.post-date,
.updated {
  display: none !important;
}

/* === グローバルナビ：ハイブリッドBスタイル === */
.vb-global-nav {
  text-align: center;
  margin: 10px 0 20px 0;
}

.vb-global-list {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vb-global-list li {
  list-style: none;
}

.vb-global-list a {
  display: inline-block;
  background: linear-gradient(180deg, #f9f9fc 0%, #dcdde3 100%);
  border: 1px solid #999;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.15);
  text-decoration: none;
  color: #222;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.vb-global-list a:hover {
  background: linear-gradient(180deg, #fefefe 0%, #e0e1e7 100%);
  transform: translateY(-2px);
  box-shadow: 2px 4px 8px rgba(0,0,0,0.25);
}


/* === お問い合わせフォーム：全体調和版 === */
.wpcf7-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 28px 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f7 100%);
  border: 1px solid #c9ccd2;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08), inset 0 0 8px rgba(255,255,255,0.6);
  font-family: "Segoe UI", sans-serif;
}

/* === 各ラベル === */
.wpcf7 label {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* === 入力欄 === */
.wpcf7 input,
.wpcf7 textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 1em;
  border: 1px solid #bbb;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  transition: all 0.25s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: #8896c2;
  box-shadow: 0 0 6px rgba(120,130,190,0.4);
  outline: none;
}

.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

/* === 送信ボタン === */
.wpcf7-submit {
  background: linear-gradient(180deg, #e5e7ed 0%, #cfd2da 100%);
  color: #222;
  border: 1px solid #aaa;
  padding: 10px 25px;
  font-size: 1.05em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 0 6px rgba(255,255,255,0.7);
}

.wpcf7-submit:hover {
  background: linear-gradient(180deg, #d7d9df 0%, #babec6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* === 送信結果・エラーメッセージ === */
.wpcf7-response-output {
  margin-top: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #f8f9fb;
  border: 1px solid #d0d2d7;
  font-size: 0.95em;
  color: #333;
}

/* === スマホ対応 === */
@media screen and (max-width: 768px) {
  .wpcf7-form {
    padding: 20px;
  }
}

/* お問い合わせページ：営業お断りメッセージ（中央寄せver） */
.contact-note {
  text-align: center;
  margin: 20px auto 0 auto; /* ← autoで中央寄せ */
  font-size: 0.9em;
  color: #666;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  max-width: 600px; /* ←幅を制限して読みやすく */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}



/* === 準備中ページ専用デザイン === */
.vb-underconstruction {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px 30px;
  text-align: center;
  background: linear-gradient(180deg, #fdfdfd 0%, #eef0f4 100%);
  border: 1px solid #ccc;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

.vb-underconstruction .vb-construction-icon {
  font-size: 2.8em;
  margin-bottom: 10px;
}

.vb-underconstruction h2 {
  font-size: 1.4em;
  font-weight: bold;
  color: #222;
  margin-bottom: 12px;
}

.vb-underconstruction p {
  font-size: 1em;
  color: #444;
  line-height: 1.6;
}

@media screen and (max-width: 600px) {
  .vb-underconstruction {
    margin: 60px 15px;
    padding: 30px 20px;
  }
  .vb-underconstruction h2 {
    font-size: 1.2em;
  }
}

/* === 工事中タグのミニ表示 === */
.under-construction-tag {
  display: inline-block;
  font-size: 0.75em;
  color: #fff;
  background: linear-gradient(to bottom, #6fa8dc, #3d85c6);
  padding: 2px 6px;
  margin-left: 5px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  font-weight: 600;
}

/* === Display Posts お知らせ一覧用 === */
.display-posts-listing {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ccc;
}
.display-posts-listing li {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  font-size: 14px;
}
.display-posts-listing a {
  text-decoration: none;
  color: #333;
}
.display-posts-listing a:hover {
  color: #1a4b8b;
  text-decoration: underline;
}
.display-posts-date {
  color: #666;
  margin-right: 6px;
}

/* === Display Posts お知らせ一覧用 === */
.display-posts-listing {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ccc;
}
.display-posts-listing li {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
  font-size: 14px;
}
.display-posts-listing a {
  text-decoration: none;
  color: #333;
}
.display-posts-listing a:hover {
  color: #1a4b8b;
  text-decoration: underline;
}
.display-posts-date {
  color: #666;
  margin-right: 6px;
}
.display-posts-listing li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.display-posts-date {
  color: #666;
  font-size: 13px;
  margin-left: 8px;
  white-space: nowrap;
}
/* Display Posts のリンク無効化 */
.display-posts-listing a {
  pointer-events: none;
  cursor: default;
  color: #333;
  text-decoration: none;
}
.display-posts-listing a:hover {
  color: #333;
  text-decoration: none;
}

/* === Display Posts：日付→本文の順に並び替え === */
.display-posts-listing li {
  display: flex;
  flex-direction: row-reverse;  /* 順番を反転 */
  justify-content: flex-start;
  align-items: center;
  gap: 8px;                     /* 日付と本文の間隔 */
}
.display-posts-date {
  color: #666;
  font-size: 13px;
  white-space: nowrap;
}

/* === Display Posts：日付→本文（左寄せ調整版） === */
.display-posts-listing {
  text-align: left; /* 全体を左寄せに */
}

.display-posts-listing li {
  display: flex;
  flex-direction: row-reverse; /* 日付→本文の順 */
  justify-content: flex-end; /* ←ここを変更して左寄せにする */
  align-items: center;
  gap: 8px;
}

.display-posts-date {
  color: #666;
  font-size: 13px;
  white-space: nowrap;
}
.display-posts-listing {
  margin-top: 6px;
  line-height: 1.6;
}


/* ===== 最終バックアップ基準点 この↑は弄らない===== */


#ranking-container {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#ranking-table {
  width: 100%;
  border-collapse: collapse;
}

#ranking-table th, #ranking-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

#ranking-table th {
  background: linear-gradient(#f9f9f9, #eee);
  font-weight: bold;
}

#ranking-table tr:nth-child(odd) td {
  background: #fafafa;
}

#ranking-table tr:nth-child(1) td:first-child {
  font-weight: bold;
  color: #d88;
}

