/* ==========================================================================
   isa-fix.css — 白基調デザイン 最終補正
   ・黒いままのボタン（検索 / SNS / ドロワー）を白地に
   ・白背景に残った明るい文字をすべて濃色に
   必ず一番最後に読み込み、!important で旧テーマCSSにも勝たせます。
   ========================================================================== */

/* ---------- 1) ヘッダー：黒いままだったボタン類を白地に ---------- */
.sh-iconbtn,
.sh-iconbtn--primary,
.sh-iconbtn--menu {
  background: #FFFFFF !important;
  background-image: none !important;
  color: #0B1220 !important;
  border: 1px solid #BFCEE2 !important;
  box-shadow: 0 1px 0 #FFFFFF inset, 0 1px 3px rgba(15,35,70,.06) !important;
}
.sh-iconbtn:hover, .sh-iconbtn--menu:hover {
  color: #0B72D6 !important; border-color: #0B72D6 !important; background: #F3F8FD !important;
}
.sh-iconbtn svg { fill: currentColor !important; }

/* 検索バー本体 */
.sh-search, .sh-search__inner { background: #F6F9FD !important; }
.search-form input[type="text"], .search-form input[type="search"] {
  background: #FFFFFF !important; color: #0B1220 !important;
  border: 1px solid #BFCEE2 !important;
}
.search-form input::placeholder { color: #8A9AB1 !important; }
.search-form button {
  background: #FFFFFF !important; background-image: none !important;
  color: #0B72D6 !important; border: 1px solid #0B72D6 !important;
  clip-path: none !important; border-radius: 4px !important;
}
.search-form button:hover { background: #0B72D6 !important; color: #FFFFFF !important; }

/* SNS（Discord / YouTube / X）バナーを白地に */
.sh-sns a, .sh-sns a:link, .sh-sns a:visited {
  background: #FFFFFF !important; background-image: none !important;
  color: #0B1220 !important;
  border: 1px solid #BFCEE2 !important;
  box-shadow: 0 1px 0 #FFFFFF inset, 0 1px 3px rgba(15,35,70,.06) !important;
}
.sh-sns a:hover { background: #F3F8FD !important; border-color: #0B72D6 !important; color: #0B72D6 !important; }
.sh-sns img { background: transparent !important; }

/* ドロワー / ナビ */
.sh-drawer, .sh-drawer__inner { background: #F6F9FD !important; }
.sh-drawer__list a { background: #FFFFFF !important; color: #0B1220 !important; border-color: #D3DDEB !important; }
.sh-nav a, .sh-nav ul li a { background: transparent !important; color: #0B1220 !important; }

/* ---------- 2) 明るいままだった文字を濃色に（白背景での可読性） ---------- */
.isa-site, .isa-site *:not(.isa-keep-light):not(.isa-keep-light *) ,
.sh-header *, .site-header *, .site-footer *:not(.isa-keep-light):not(.isa-keep-light *) {
  color: #1F2C3D !important;
}
.isa-site h1, .isa-site h2, .isa-site h3, .isa-site h4, .isa-site h5, .isa-site h6,
.isa-head__title, .isa-card__title, .isa-post__title, .isa-panel__title,
.isa-cat__name, .isa-row__txt, .isa-mech__name, .isa-db__item, .isa-article__title,
.sh-logo__main { color: #0B1220 !important; }
.isa-card__desc, .isa-post__excerpt, .isa-row__txt small, .isa-cat__body,
.isa-site p, .isa-site li, .isa-site dd, .isa-site td, .isa-site small { color: #33475F !important; }
.sh-logo__sub, .isa-head__title span, .sh-drawer__label { color: #0B72D6 !important; }

/* ヒーロー：白ベールの上なので濃色で */
.isa-hero__eyebrow, .isa-hero__title, .isa-hero__lead, .isa-hero__stat, .isa-hero__stat b {
  color: #0B1220 !important;
}
.isa-hero__eyebrow { color: #0B72D6 !important; }
.isa-hero__stat b { color: #0B72D6 !important; }

/* 表（旧ダークヘッダーを白地に） */
.isa-entry th, .isa-table-wrap th, .isa-site table th {
  background: #EDF3FA !important; background-image: none !important; color: #0B1220 !important;
  border: 1px solid #D3DDEB !important;
}
.isa-entry td, .isa-table-wrap td, .isa-site table td {
  background: #FFFFFF !important; color: #33475F !important; border: 1px solid #E4EBF4 !important;
}

/* 白背景に白文字だったリンク/ボタン */
.isa-btn--ghost { background: #FFFFFF !important; color: #0B72D6 !important; }
.isa-head__more, .isa-site a { color: #0B72D6 !important; }
.isa-row__go, .isa-card__arrow { color: #0B72D6 !important; }

/* ---------- 3) 例外：色チップ・画像上のラベルは白文字のまま ---------- */
.isa-keep-light, .isa-keep-light *,
.isa-label, .isa-live, .isa-panel__badge, .isa-tier__rank, .isa-mech__rate,
.isa-cat__tag, .isa-post__label, .isa-hero__kv, .isa-btn--accent, .isa-hero__cta .isa-btn {
  color: #FFFFFF !important;
}
.isa-btn--ghost.isa-keep-light { color: #0B72D6 !important; }

/* フッターのロゴ：画像＋テキストを横並びで */
.sf-logo { display: inline-flex !important; align-items: center !important; gap: 10px !important; text-decoration: none !important; }
.sf-logo img { display: inline-block !important; }
.sf-logo__txt { font-weight: 900 !important; font-size: 18px !important; color: #0B1220 !important; letter-spacing: .04em !important; }

/* 記事カード左上のカテゴリラベルを必ず不透明の明るい色に */
.isa-label, .isa-post__label .isa-label, span.isa-label {
  background: #0B72D6 !important; color: #FFFFFF !important;
  border: 1px solid #FFFFFF !important; border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(11,18,32,.55) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.4) !important;
  padding: 5px 11px !important; font-weight: 800 !important;
  clip-path: none !important; -webkit-clip-path: none !important;
  opacity: 1 !important; filter: none !important;
}
.isa-label--beginner { background: #15803D !important; }
.isa-label--arena    { background: #DC2626 !important; }
.isa-label--zenith   { background: #7C3AED !important; }
.isa-label--event    { background: #EA580C !important; }
.isa-label--mech     { background: #1D4ED8 !important; }
.isa-label--pilot    { background: #DB2777 !important; }
.isa-label--parts    { background: #0891B2 !important; }
.isa-label--boss     { background: #B91C1C !important; }
.isa-label--news     { background: #0B72D6 !important; }
.isa-label--feature  { background: #7C3AED !important; }
