/* ===== ブレイズクラウン 攻略Wiki 共通スタイル ===== */

:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --surface-2: #faf7f2;
  --line: #e6dfd3;
  --text: #241f1a;
  --text-2: #6b6258;
  --text-3: #978d82;

  --flame: #d9481f;
  --flame-2: #f07a2a;
  --gold: #c98a1b;
  --gold-soft: #fbefd6;
  --link: #b23d16;

  --head-bg: #161a2b;
  --head-text: #f3ede2;
  --nav-hover: #f3ebdf;
  --nav-current: #fde8d9;

  /* キャラタイプ */
  --t-attacker: #d63f2f;
  --t-defender: #2f6fd6;
  --t-debuffer: #8a46c9;
  --t-summoner: #12928a;
  --t-trickster: #c47f12;
  --t-supporter: #3a9a3e;

  --lv1: #3a9a3e;
  --lv2: #c47f12;
  --lv3: #d63f2f;

  --shadow: 0 1px 2px rgba(40, 25, 10, .06), 0 4px 14px rgba(40, 25, 10, .06);
  --shadow-lift: 0 2px 4px rgba(40, 25, 10, .08), 0 10px 24px rgba(40, 25, 10, .12);
  --radius: 12px;
  --header-h: 60px;
  --sidebar-w: 248px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11131b;
    --surface: #1a1d28;
    --surface-2: #161924;
    --line: #2b2f3d;
    --text: #ece6dc;
    --text-2: #aaa294;
    --text-3: #7d776d;
    --gold-soft: #3a2c14;
    --link: #ff9563;
    --head-bg: #0b0d14;
    --nav-hover: #232736;
    --nav-current: #3a2318;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 10px 24px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  --bg: #11131b;
  --surface: #1a1d28;
  --surface-2: #161924;
  --line: #2b2f3d;
  --text: #ece6dc;
  --text-2: #aaa294;
  --text-3: #7d776d;
  --gold-soft: #3a2c14;
  --link: #ff9563;
  --head-bg: #0b0d14;
  --nav-hover: #232736;
  --nav-current: #3a2318;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 10px 24px rgba(0, 0, 0, .4);
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.ico { width: 20px; height: 20px; flex: none; }

/* 準備中のリンク：wikiの「未作成ページ」らしく点線で示す */
a.is-todo { cursor: help; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: var(--head-bg);
  color: var(--head-text);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--flame), var(--gold), var(--flame)) 1;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { filter: drop-shadow(0 0 6px rgba(240, 122, 42, .45)); }
.brand-text { font-weight: 900; font-size: 16px; white-space: nowrap; letter-spacing: .02em; }
.brand-sub {
  margin-left: 6px; padding: 1px 8px; border-radius: 6px;
  background: linear-gradient(180deg, #ffc93c, #f07a2a);
  color: #2a1406; font-size: 12px; vertical-align: 2px;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.menu-btn { display: none; }

.search { position: relative; margin-left: auto; width: min(340px, 40vw); }
.search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #a39c90; pointer-events: none; }
.search input {
  width: 100%; height: 38px;
  padding: 0 12px 0 38px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: var(--head-text);
  font: inherit; font-size: 14px; outline: none;
}
.search input::placeholder { color: #a39c90; }
.search input:focus { border-color: var(--flame-2); background: rgba(255, 255, 255, .12); }
.search-results {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: min(380px, calc(100vw - 32px));
  padding: 6px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.sr-item {
  display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 6px 8px; border-radius: 8px; color: var(--text);
}
.sr-item:hover, .sr-item.is-active { background: var(--nav-hover); text-decoration: none; }
.sr-item img, .sr-item .ico { grid-row: span 2; width: 32px; height: 32px; border-radius: 8px; }
.sr-item .ico { padding: 6px; background: var(--surface-2); color: var(--flame); }
.sr-label { font-weight: 700; font-size: 14px; line-height: 1.3; }
.sr-group { font-size: 12px; color: var(--text-3); line-height: 1.3; }
.sr-empty { margin: 0; padding: 10px; color: var(--text-3); font-size: 14px; }

/* ===== レイアウト ===== */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  max-width: 1320px; margin: 0 auto;
}
.main { padding: 24px 28px 48px; min-width: 0; }

/* ===== サイドメニュー ===== */
.sidebar {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: var(--surface);
  scrollbar-width: thin;
}
.sidebar-inner { padding: 14px 10px 32px; }
.nav-home, .nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 8px;
  color: var(--text); font-size: 14px; line-height: 1.4;
}
.nav-home { font-weight: 700; margin-bottom: 6px; }
.nav-home .ico, .nav-link .ico { color: var(--flame); width: 18px; height: 18px; }
.nav-home:hover, .nav-link:hover { background: var(--nav-hover); text-decoration: none; }
li[aria-current="page"] > .nav-link { background: var(--nav-current); font-weight: 700; }
.nav-badge { margin-left: auto; font-size: 12px; }
.nav-group { margin-top: 14px; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-title {
  margin: 0 0 4px; padding: 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--text-3);
}
.nav-chara-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px 6px; }
.nav-chara { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); font-size: 11px; line-height: 1.2; text-align: center; }
.nav-chara:hover { text-decoration: none; color: var(--text); }
.nav-chara img { width: 100%; aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); transition: transform .15s; }
.nav-chara:hover img { transform: translateY(-2px); border-color: var(--flame-2); }
.nav-chara span { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.scrim { display: none; }

/* ===== ヒーロー ===== */
.hero {
  position: relative; overflow: hidden;
  border-radius: 16px;
  min-height: 300px;
  display: flex; align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 24, .05) 0%, rgba(14, 12, 24, .55) 55%, rgba(14, 12, 24, .9) 100%),
    linear-gradient(90deg, rgba(14, 12, 24, .7) 0%, rgba(14, 12, 24, 0) 70%),
    url("../img/hero.jpg") center 35% / cover no-repeat;
}
.hero-body { display: flex; align-items: center; gap: 28px; width: 100%; padding: 24px 32px; }
.hero-logo { width: 250px; height: auto; flex: none; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .55)); }
.hero-text { min-width: 0; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 3px 12px 3px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--flame), var(--flame-2));
  font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(217, 72, 31, .45);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hero-title {
  margin: 0; line-height: 1.15;
  font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
}
.hero-lead { margin: 12px 0 18px; font-size: 14px; color: #ece4d6; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff; font-weight: 700; font-size: 14px;
  backdrop-filter: blur(6px);
  transition: background .15s, transform .15s;
}
.btn:hover { background: rgba(255, 255, 255, .24); text-decoration: none; transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, #f39a3d, var(--flame)); border-color: #f6b65a; box-shadow: 0 4px 14px rgba(217, 72, 31, .45); }
.btn-primary:hover { background: linear-gradient(180deg, #f6a64e, #e2552b); }

/* ===== セクション ===== */
.block { margin-top: 32px; }
.block-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.block-title {
  position: relative;
  margin: 0; padding-left: 14px;
  font-size: 20px; font-weight: 900; line-height: 1.3;
}
.block-title::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold), var(--flame));
}
.block-mark { margin-right: 6px; }
.block-sub { margin: 0; flex-basis: 100%; color: var(--text-2); font-size: 14px; }
.more { margin-left: auto; font-size: 13px; font-weight: 700; cursor: pointer; }
.more::after { content: " ›"; }

/* はじめての方へ */
.starter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.starter-card {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.starter-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--flame-2); }
.starter-step { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--gold); }
.starter-ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  border: 1px solid var(--line);
  color: var(--flame);
}
.starter-ico .ico { width: 24px; height: 24px; }
.starter-label { font-weight: 900; font-size: 16px; }
.starter-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* キャラクター */
.type-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.type-tab {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.type-tab span { font-size: 11px; color: var(--text-3); font-weight: 500; }
.type-tab:hover { border-color: var(--text-3); }
.type-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.type-tab[aria-selected="true"] span { color: inherit; opacity: .7; }

.chara-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.chara-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  animation: pop .25s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.chara-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--flame-2); }
.chara-face { position: relative; width: 100%; }
.chara-face img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 9px;
  background: linear-gradient(160deg, #3b2d22, #1b1a24);
}
.chara-type {
  position: absolute; left: 4px; bottom: 4px;
  padding: 0 6px; border-radius: 6px;
  font-size: 10px; font-weight: 700; line-height: 18px; color: #fff;
  background: var(--tc);
}
.chara-name { font-weight: 900; font-size: 14px; line-height: 1.3; margin-top: 2px; }
.chara-level { font-size: 11px; font-weight: 700; color: var(--lc); line-height: 1.2; }
.chara-level::before { content: "●"; font-size: 8px; margin-right: 3px; vertical-align: 1px; }
.chara-level.lv1 { --lc: var(--lv1); }
.chara-level.lv2 { --lc: var(--lv2); }
.chara-level.lv3 { --lc: var(--lv3); }
.chara-note { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }

.t-attacker { --tc: var(--t-attacker); }
.t-defender { --tc: var(--t-defender); }
.t-debuffer { --tc: var(--t-debuffer); }
.t-summoner { --tc: var(--t-summoner); }
.t-trickster { --tc: var(--t-trickster); }
.t-supporter { --tc: var(--t-supporter); }
.type-tab[class*="t-"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); }

/* お知らせ・βテスト */
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.two-col .block { margin-top: 32px; }
.news-list {
  list-style: none; margin: 0; padding: 4px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.news-list li {
  display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px;
  padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.news-tag {
  padding: 0 8px; border-radius: 6px;
  background: var(--gold-soft); color: var(--gold);
  font-size: 11px; font-weight: 700; line-height: 20px;
}
.news-text { color: var(--text); }

.beta-card {
  padding: 18px 18px 16px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(240, 122, 42, .14), transparent 60%),
    var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.beta-card .block-head { margin-bottom: 8px; }
.beta-facts { margin: 0; }
.beta-facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.beta-facts dt { color: var(--text-2); font-size: 13px; }
.beta-facts dd { margin: 0; font-weight: 700; font-size: 14px; }
.beta-facts small { display: block; font-weight: 400; color: var(--text-3); font-size: 12px; }
.beta-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.beta-link::after { content: " ›"; }

/* 攻略メニュー */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tile {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-weight: 700; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.tile:hover { text-decoration: none; border-color: var(--flame-2); background: var(--nav-hover); }
.tile-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); color: var(--flame); flex: none; }

/* ===== フッター ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 24px 28px 32px; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 900; }
.footer-note { margin: 0; color: var(--text-3); font-size: 12px; }

/* ===== トースト ===== */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px;
  background: var(--head-bg); color: var(--head-text);
  font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-lift);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== レスポンシブ ===== */
@media (max-width: 1100px) {
  .starter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 56px; }
  .layout { grid-template-columns: 1fr; }
  .menu-btn { display: grid; margin-left: -8px; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; z-index: 40;
    width: min(300px, 84vw); height: auto;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: var(--shadow-lift);
  }
  .menu-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 35; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  .main { padding: 16px 16px 40px; }
  .footer-inner { padding: 20px 16px 28px; }
  .hero { min-height: 260px; border-radius: 14px; }
  .hero-body { padding: 22px 18px; gap: 20px; }
  .hero-logo { width: 190px; }
}

@media (max-width: 600px) {
  .brand-text { font-size: 15px; }
  .brand img { width: 40px; height: 24px; }
  .hero-body { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 18px; }
  .hero-logo { width: 170px; align-self: center; margin-bottom: 4px; }
  .hero-title { font-size: 26px; }
  /* 検索は虫めがねだけにして、タップでヘッダー幅いっぱいに広げる */
  .search { width: 40px; flex: none; }
  .search input { padding: 0; color: transparent; cursor: pointer; }
  .search input::placeholder { color: transparent; }
  .search-ico { left: 11px; }
  .search:focus-within {
    position: absolute; left: 12px; right: 12px; width: auto; z-index: 2;
  }
  .search:focus-within input { padding: 0 12px 0 38px; color: var(--head-text); cursor: text; background: var(--head-bg); }
  .search:focus-within input::placeholder { color: #a39c90; }
  .search-results { width: 100%; }
  .hero-lead br { display: none; }
  .btn { height: 40px; padding: 0 14px; }
  .starter-card { padding: 14px; }
  .starter-label { font-size: 15px; }
  .chara-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
  .chara-name { font-size: 13px; }
  .news-list li { grid-template-columns: auto 1fr; }
  .news-text { grid-column: 1 / -1; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   記事ページ
   ===================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-bottom: 14px; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs .sep { color: var(--text-3); }
.crumbs [aria-current] { color: var(--text); font-weight: 700; }

.article { max-width: 880px; }
.article.is-wide { max-width: none; }
.article-head { padding-bottom: 16px; margin-bottom: 8px; border-bottom: 2px solid var(--line); }
.article-head h1 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; line-height: 1.3; }
.lead { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }
.meta { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
.meta-sep { margin: 0 6px; }

.article > h2 {
  position: relative;
  margin: 40px 0 14px; padding: 10px 14px 10px 18px;
  font-size: 20px; font-weight: 900; line-height: 1.4;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.article > h2::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 5px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold), var(--flame));
}
.article h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 900; }
.article p { margin: 10px 0; }
.article ul, .article ol { padding-left: 1.4em; margin: 10px 0; }
.article li { margin: 4px 0; }
.article li > ol { margin: 4px 0; }
.muted { color: var(--text-3); font-size: 13px; }
.nowrap { white-space: nowrap; }

/* 目次 */
.toc {
  margin: 18px 0 8px; padding: 14px 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.toc-title { margin: 0 0 6px !important; font-weight: 900; font-size: 14px; }
.toc ol { margin: 0 !important; padding-left: 1.6em !important; columns: 2; column-gap: 24px; }
.toc li { margin: 2px 0 !important; font-size: 14px; break-inside: avoid; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--link); }

/* 注意書き */
.note {
  padding: 10px 14px; border-radius: 10px;
  background: var(--gold-soft); color: var(--text);
  font-size: 13px;
}
.callout {
  margin: 18px 0; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px;
}
.callout.is-beta { border-left-color: var(--flame); background: linear-gradient(90deg, rgba(240, 122, 42, .08), transparent 60%), var(--surface); }
.callout-title { margin: 0 0 4px !important; font-weight: 900; }
.callout ul { margin: 4px 0 0; }

.points li { margin: 6px 0; }

/* 表 */
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data thead th { background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
table.data tbody th { background: var(--surface-2); font-weight: 700; white-space: nowrap; font-size: 13px; }
table.data tr:last-child > * { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; }
table.data .plus { color: var(--t-supporter); font-weight: 700; }
table.data .minus { color: var(--t-attacker); font-weight: 700; }
table.energy th, table.energy td { text-align: center; padding: 8px 6px; }
table.energy td.hot { color: var(--flame); font-weight: 900; }
table.sortable thead th { cursor: pointer; user-select: none; }
table.sortable thead th::after { content: " \2195"; color: var(--text-3); font-size: 10px; }
table.sortable thead th[aria-sort="ascending"]::after { content: " \25B2"; color: var(--flame); }
table.sortable thead th[aria-sort="descending"]::after { content: " \25BC"; color: var(--flame); }

/* チップ */
.chip { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 22px; color: #fff; background: var(--tc); white-space: nowrap; }
.chip-lv { font-size: 12px; font-weight: 700; color: var(--lc); white-space: nowrap; }
.chip-lv::before { content: "\25CF"; font-size: 8px; margin-right: 3px; vertical-align: 1px; }
.chip-lv.lv1 { --lc: var(--lv1); } .chip-lv.lv2 { --lc: var(--lv2); } .chip-lv.lv3 { --lc: var(--lv3); }
.chara-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); white-space: nowrap; }
.chara-chip img { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); }
.chara-chip:hover { color: var(--link); }

/* おすすめ編成・編成例 */
.recommend, .team {
  margin: 14px 0; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.recommend-title { margin: 0 0 10px !important; font-weight: 900; }
.recommend-team, .team-row { display: grid; grid-template-columns: repeat(3, minmax(0, 104px)); gap: 12px; }
.team ul { margin-bottom: 0; }
.team-member { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text); text-align: center; }
.team-member:hover { text-decoration: none; }
.team-member img { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(160deg, #3b2d22, #1b1a24); transition: transform .15s; }
.team-member:hover img { transform: translateY(-2px); border-color: var(--flame-2); }
.team-member span { font-weight: 900; font-size: 14px; }
.team-member small { font-size: 11px; color: var(--text-3); }

/* 配置の図 */
.board-demo { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.board { display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(3, 44px); gap: 4px; padding: 6px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.cell { display: grid; place-items: center; border-radius: 6px; background: var(--surface); border: 1px dashed var(--line); font-size: 12px; font-weight: 700; }
.cell.is-front { background: rgba(214, 63, 47, .12); border: 1px solid rgba(214, 63, 47, .35); }
.cell.is-back { background: rgba(47, 111, 214, .12); border: 1px solid rgba(47, 111, 214, .35); }
.board-arrow { font-size: 13px; font-weight: 700; color: var(--flame); }

/* 手順 */
.steps { list-style: none; counter-reset: st; padding: 0 !important; }
.steps li { position: relative; counter-increment: st; padding: 10px 0 10px 30px; border-left: 2px solid var(--line); margin: 0 0 0 15px !important; }
.steps li::before {
  content: counter(st); position: absolute; left: -16px; top: 10px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(180deg, #f39a3d, var(--flame)); color: #fff; font-weight: 900; font-size: 14px;
}
.steps li:last-child { border-left-color: transparent; }
.steps b { display: block; }
.steps span { display: block; color: var(--text-2); font-size: 14px; }

.tips li { margin: 8px 0; }

.order-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.order-groups div { padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.order-groups div:first-child { border-top: 3px solid var(--flame); }
.order-groups div:nth-child(2) { border-top: 3px solid var(--gold); }
.order-groups div:last-child { border-top: 3px solid var(--text-3); }
.order-groups b { display: block; font-size: 16px; }
.order-groups span { font-size: 13px; color: var(--text-2); }

/* 次に読む */
.next-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.next-links a { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.next-links a:hover { text-decoration: none; border-color: var(--flame-2); transform: translateY(-1px); }
.next-links b::after { content: " \203A"; color: var(--flame); }
.next-links span { font-size: 13px; color: var(--text-2); }

/* 状態異常 */
.status { margin: 14px 0; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.status:target { border-color: var(--flame-2); box-shadow: 0 0 0 3px rgba(240, 122, 42, .18); }
.status h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px !important; }
.status p { margin: 4px 0 8px; }
.status-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 900; color: #fff; background: var(--sc, #888); flex: none; }
.is-poison { --sc: #7a4bc0; } .is-burn { --sc: #e0562a; } .is-freeze { --sc: #3a8fd6; } .is-shock { --sc: #d6a514; }
.is-stun { --sc: #c9921a; } .is-silence { --sc: #6b6f7a; } .is-shield { --sc: #2f6fd6; } .is-cover { --sc: #2a8a5e; }
.is-haste { --sc: #e0562a; } .is-slow { --sc: #6b6f7a; } .is-crit { --sc: #d63f2f; }
.uses { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0 !important; margin: 6px 0 0 !important; }
.uses li { display: flex; align-items: center; gap: 6px; margin: 0 !important; font-size: 13px; }
.uses li span { color: var(--text-2); }

/* 用語 */
.glossary { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.glossary div { display: grid; grid-template-columns: 10em 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.glossary div:last-child { border-bottom: 0; }
.glossary div:target { background: var(--nav-current); }
.glossary dt { font-weight: 900; }
.glossary dd { margin: 0; font-size: 14px; }

/* FAQ */
.faq { margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.faq summary { position: relative; padding: 12px 40px 12px 44px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 14px; top: 13px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--flame); color: #fff; font-size: 12px; font-weight: 900; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; color: var(--text-3); font-size: 18px; }
.faq[open] summary::after { content: "\2212"; }
.faq > *:not(summary) { margin: 0 16px 12px 44px !important; }
.faq > ul { padding-left: 1.2em !important; }

/* 2列のカード */
.two-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.step-card { padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-card-title { margin: 0 0 4px !important; font-weight: 900; }
.step-card ol, .step-card ul { margin-bottom: 0; }
.step-card.is-ok { border-top: 3px solid var(--t-supporter); }
.step-card.is-ng { border-top: 3px solid var(--text-3); }

.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.role-cards div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.role-cards b { font-size: 16px; }
.role-cards span { font-size: 14px; }
.role-cards small { font-size: 12px; color: var(--text-3); }

/* 更新履歴 */
.history { list-style: none; padding: 0 !important; }
.history li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0 !important; }
.history time { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.history p { margin: 0 !important; }

/* 世界観 */
.hero-figure { margin: 18px 0; }
.hero-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-figure figcaption { margin-top: 6px; font-size: 12px; color: var(--text-3); text-align: center; }
.hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.hero-cards a { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.hero-cards a:hover { text-decoration: none; border-color: var(--flame-2); }
.hero-cards img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.hero-cards b { font-size: 16px; }
.hero-cards span { font-size: 13px; color: var(--text-2); }

.chara-grid.is-page { margin: 12px 0; }

/* =====================================================================
   キャラページ
   ===================================================================== */
.profile {
  display: grid; grid-template-columns: 180px 1fr; gap: 6px 24px;
  margin: 20px 0 14px; padding: 18px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(240, 122, 42, .12), transparent 55%), var(--surface);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.profile-face img { width: 100%; aspect-ratio: 1; border-radius: 14px; background: linear-gradient(160deg, #3b2d22, #1b1a24); border: 1px solid var(--line); }
.profile-body { min-width: 0; }
.profile-en { margin: 0 !important; font-size: 13px; letter-spacing: .14em; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.profile-job { margin: 0 0 8px !important; font-size: 14px; color: var(--text-2); }
.profile-chips { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.profile-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.profile-dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.profile-dl dt { font-size: 13px; color: var(--text-2); }
.profile-dl dd { margin: 0; font-weight: 700; text-align: right; }
.profile-dl dd b { font-size: 18px; font-variant-numeric: tabular-nums; }
.profile-dl small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); }
.profile-role { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); }
.role-label { margin: 0 !important; flex: none; font-size: 12px; font-weight: 900; color: var(--flame); }
.role-text { margin: 0 !important; font-weight: 700; }

.passive { padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.passive-name { display: flex; align-items: center; gap: 10px; margin: 0 0 4px !important; }
.passive p { margin: 0; }
.val { color: var(--flame); font-weight: 900; font-variant-numeric: tabular-nums; }

.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.article.is-wide .skill-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.skill-item[hidden] { display: none; }
.skill {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.skill.is-sp { border: 1px solid rgba(201, 138, 27, .55); background: linear-gradient(135deg, rgba(246, 182, 90, .14), transparent 55%), var(--surface); }
.skill-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.skill-kind { font-size: 11px; font-weight: 900; color: var(--text-3); letter-spacing: .04em; }
.skill.is-sp .skill-kind { color: var(--gold); }
.skill-name { margin: 0 !important; font-size: 17px !important; font-weight: 900; flex: 1 1 auto; }
.skill-owner { margin-left: auto; font-size: 13px; }
.skill-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-meta > span { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 6px; font-size: 12px; line-height: 22px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.skill-meta b { color: var(--text); font-size: 13px; }
.skill-meta .cost { background: var(--gold-soft); border-color: transparent; color: var(--gold); }
.skill-meta .cost b { color: var(--gold); }
.slv { font-size: 11px !important; color: var(--text-3) !important; font-weight: 500; }
.passive-name .slv { padding: 0 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); line-height: 20px; }
.skill-meta .el { font-weight: 700; color: #fff; border: 0; background: var(--ec, #888); }
.el-火 { --ec: #e0562a; } .el-水 { --ec: #2f7fd6; } .el-風 { --ec: #2a9a6a; } .el-地 { --ec: #9a6a3a; }
.el-雷 { --ec: #c9a012; } .el-光 { --ec: #c49a2a; } .el-闇 { --ec: #6a3fa8; } .el-無 { --ec: #7d8090; }
.skill-text { margin: 0 !important; font-size: 14px; line-height: 1.75; }
.skill-text .line { display: block; }
.tgt { display: inline-block; margin-right: 4px; padding: 0 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text-2); line-height: 20px; vertical-align: 1px; }
.term { font-weight: 700; text-decoration: underline dotted; text-underline-offset: 3px; }
.skill-cond { display: flex; gap: 10px; align-items: baseline; margin: auto 0 0 !important; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; }
.skill-cond span { flex: none; font-size: 11px; font-weight: 900; color: var(--gold); }

.link-list, .partner-list { list-style: none; padding: 0 !important; }
.link-list li, .partner-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); margin: 0 !important; }
.link-list li span, .partner-list li span { font-size: 14px; color: var(--text-2); }
.link-list a { font-weight: 700; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.pager a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 900; }
.pager a:hover { text-decoration: none; border-color: var(--flame-2); }
.pager img { width: 44px; height: 44px; border-radius: 10px; }
.pager small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); }
.pager-next { justify-content: flex-end; text-align: right; }

/* 絞り込み */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.filters label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.filters label.grow { flex: 1 1 200px; }
.filters select, .filters input {
  height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px;
}
.filters select:focus, .filters input:focus { outline: 2px solid var(--flame-2); outline-offset: -1px; }
.filter-count { font-size: 13px; color: var(--text-3); margin: 0 0 10px !important; }

/* SPD順 */
.spd-order { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; padding-left: 1.8em !important; }
.spd-order li { margin: 0 !important; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.spd-order li b { float: right; font-variant-numeric: tabular-nums; color: var(--flame); }

/* 召喚キャラ */
.summon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.summon { padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.summon:target { border-color: var(--flame-2); box-shadow: 0 0 0 3px rgba(240, 122, 42, .18); }
.summon h3 { margin: 0 0 6px !important; }
.summon-dl { margin: 0; }
.summon-dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summon-dl div:last-child { border-bottom: 0; }
.summon-dl dt { color: var(--text-2); font-size: 13px; flex: none; }
.summon-dl dd { margin: 0; text-align: right; }

@media (max-width: 860px) {
  .article > h2 { font-size: 18px; margin-top: 32px; }
  .profile { grid-template-columns: 120px 1fr; padding: 14px; gap: 6px 16px; }
  .profile-dl { grid-template-columns: 1fr; }
  .skill-grid, .summon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .toc ol { columns: 1; }
  .profile { grid-template-columns: 96px 1fr; }
  .profile-role { flex-direction: column; gap: 2px; }
  .next-links, .two-steps, .role-cards, .hero-cards, .order-groups { grid-template-columns: 1fr; }
  .glossary div { grid-template-columns: 1fr; gap: 2px; }
  .recommend-team, .team-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pager { grid-template-columns: 1fr; }
  .history li { grid-template-columns: auto 1fr; }
  .history p { grid-column: 1 / -1; }
  .filters label { flex: 1 1 calc(50% - 10px); }
  .filters select { width: 100%; }
  .board { grid-template-columns: repeat(3, 56px); }
}
.uses-label { margin: 8px 0 0 !important; font-size: 11px; font-weight: 900; color: var(--text-3); }
@media (max-width: 600px) { table.data td.nowrap, table.data th.nowrap { white-space: normal; min-width: 6em; } }

/* スキルカード画像 */
.skill.has-art { flex-direction: row; gap: 14px; }
/* カード画像は枠の外が透過。負のマージンで、枠の位置がこれまでの 84px のカードとそろうようにする */
.skill-art { flex: none; align-self: flex-start; width: 116px; height: auto; aspect-ratio: 380 / 428; margin: -9px -18px -9px -15px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .2)); }
.skill-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) {
  .skill.has-art { gap: 12px; }
  .skill-art { width: 88px; margin: -7px -14px -7px -11px; }
}

/* 解説動画 */
.starter-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.starter-wrap .starter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.movie { margin: 0 0 20px; }
.starter-wrap .movie { margin: 0; }
.movie video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; box-shadow: var(--shadow-lift); }
.movie figcaption { margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.movie figcaption b { display: block; font-size: 15px; color: var(--text); }
@media (max-width: 900px) {
  .starter-wrap { grid-template-columns: 1fr; }
}

/* トップのヒーローを低めに（解説動画を置いたので、元の3/4ほどの高さに） */
.hero { min-height: 225px; }
.hero-body { padding: 16px 28px; gap: 24px; }
.hero-logo { width: 190px; }
.hero-badge { margin-bottom: 6px; }
.hero-title { font-size: clamp(26px, 3.2vw, 34px); }
.hero-lead { margin: 8px 0 12px; }
.hero-actions .btn { height: 38px; }
.hero-text { flex: 1 1 auto; max-width: 680px; }
@media (max-width: 1100px) {
  .hero { min-height: 200px; }
  .hero-logo { width: 160px; }
}
@media (max-width: 600px) {
  .hero-body { padding: 14px 18px 18px; }
  .hero-logo { width: 130px; margin-bottom: 0; }
  .hero-title { font-size: 24px; }
}

/* 編成シミュレーター */
.sim { margin: 18px 0 8px; }
.sim-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sim-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1 1 420px; margin: 0; padding: 0; list-style: none; }
.sim-slot { min-height: 64px; border-radius: var(--radius); border: 2px dashed var(--line); display: flex; }
.sim-slot-empty { margin: auto; font-size: 13px; font-weight: 700; color: var(--text-3); }
.sim-slot.is-filled { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.sim-slot button {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  width: 100%; padding: 8px 28px 8px 8px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.sim-slot img { grid-row: span 2; width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: linear-gradient(160deg, #3b2d22, #1b1a24); }
.sim-slot-name { font-weight: 900; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-slot .chip { justify-self: start; font-size: 10px; line-height: 18px; padding: 0 6px; }
.sim-x { position: absolute; top: 6px; right: 8px; font-size: 16px; color: var(--text-3); }
.sim-slot button:hover .sim-x { color: var(--flame); }
.sim-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sub {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.btn-sub:hover { border-color: var(--flame-2); color: var(--flame); }
.sim-help { margin: 12px 0 8px !important; font-size: 13px; color: var(--text-2); }

.sim-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.sim-pick {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 6px 8px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.sim-pick:hover { transform: translateY(-2px); border-color: var(--flame-2); }
.sim-pick.is-on { border: 2px solid var(--flame); padding: 5px 5px 7px; box-shadow: 0 0 0 3px rgba(217, 72, 31, .15); background: var(--nav-current); }
.sim-pick-face { position: relative; width: 100%; }
.sim-pick-face img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: linear-gradient(160deg, #3b2d22, #1b1a24); }
.sim-pick.is-on .sim-pick-face::after {
  content: "✓"; position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--flame); color: #fff; font-size: 13px; font-weight: 900;
}
.sim-pick-name { font-weight: 900; font-size: 13px; line-height: 1.3; }

.sim-result:not(:empty) { margin-top: 22px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sim-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-summary span { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); }
.sim-summary b { font-size: 14px; color: var(--text); }
.sim-meters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 20px; margin: 16px 0 6px; }
.sim-meter { display: grid; grid-template-columns: 6.5em 1fr 4.5em; align-items: center; gap: 10px; font-size: 13px; }
.sim-meter-label { font-weight: 700; }
.sim-meter-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.sim-meter-bar i { height: 10px; border-radius: 3px; background: var(--line); }
.sim-meter-bar i.on { background: linear-gradient(90deg, var(--flame), var(--flame-2)); }
.sim-meter.is-invert .sim-meter-bar i.on { background: #8a8073; }
.sim-meter-word { font-size: 12px; color: var(--text-2); }
.sim-lists { display: grid; gap: 10px; margin-top: 14px; }
.sim-list { padding: 12px 14px; border-radius: 10px; border-left: 4px solid var(--lc); background: var(--surface-2); }
.sim-list h3 { margin: 0 0 6px !important; font-size: 14px !important; color: var(--lc); }
.sim-list ul { margin: 0; padding-left: 1.2em; }
.sim-list li { margin: 4px 0; font-size: 14px; line-height: 1.7; }
.sim-list.is-good { --lc: var(--lv1); }
.sim-list.is-care { --lc: var(--lv3); }
.sim-list.is-tip { --lc: var(--gold); }
.sim-deck-title { margin: 22px 0 10px !important; font-size: 15px !important; }
.sim-deck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sim-deck-chara { padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.sim-deck-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 900; color: var(--text); }
.sim-deck-head img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.sim-deck-cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sim-deck-cards li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; }
.sim-deck-cards img { grid-row: span 2; width: 48px; height: auto; aspect-ratio: 380 / 428; margin: -4px -8px -4px -6px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); }
.sim-card-kind { font-size: 10px; font-weight: 900; color: var(--text-3); }
.sim-card-name { grid-column: 2; font-size: 13px; font-weight: 700; line-height: 1.3; }
.sim-card-cost { grid-column: 3; grid-row: 1 / span 2; font-size: 12px; font-weight: 700; color: var(--gold); white-space: nowrap; text-align: right; }
.sim-card-cost small { display: block; font-size: 10px; color: var(--text-3); }
.sim-deck-cards li.is-sp { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); grid-template-rows: auto auto auto; }
.sim-deck-cards li.is-sp .sim-card-kind { color: var(--gold); }
.sim-card-cond { grid-column: 2 / span 2; font-size: 11px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 900px) {
  .sim-deck { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sim-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex-basis: 100%; }
  .sim-slot button { grid-template-columns: 1fr; justify-items: center; padding: 6px 6px 8px; text-align: center; }
  .sim-slot img { grid-row: auto; width: 44px; height: 44px; }
  .sim-slot .chip { justify-self: center; }
  .sim-slot-name { font-size: 12px; }
  .sim-x { top: 2px; right: 6px; }
  .sim-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .sim-pick-name { font-size: 12px; }
  .sim-pick .chara-level { font-size: 10px; }
  .sim-result:not(:empty) { padding: 14px 12px; }
  .sim-meter { grid-template-columns: 6em 1fr 4em; }
}
.sim-meter-word { white-space: nowrap; }
@media (max-width: 600px) {
  .sim-meter { grid-template-columns: 5.5em 1fr 4.6em; gap: 8px; }
  .sim-meter-word { font-size: 11px; }
}

/* 追加予定のキャラ（シルエット） */
.chara-card.is-coming { border-style: dashed; animation: none; }
.chara-card.is-coming:hover { transform: none; box-shadow: none; border-color: var(--line); }
.chara-card.is-coming .chara-face img {
  background: radial-gradient(circle at 50% 38%, #ffe2a8 0%, #f3a54c 45%, #b5482a 100%);
  opacity: .92;
}
.coming-wave {
  position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 6px;
  font-size: 10px; font-weight: 700; line-height: 18px; color: #fff; background: rgba(20, 16, 28, .8);
}
.chara-card.is-coming .chara-name { color: var(--text-3); letter-spacing: .1em; }
.coming-date { font-size: 11px; font-weight: 700; color: var(--flame); line-height: 1.2; }
.coming-date { white-space: nowrap; }

/* キャラページ：全身絵 */
.profile:has(.profile-face.is-full) { grid-template-columns: 280px 1fr; align-items: center; }
.profile-face.is-full {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  height: 340px; padding: 14px 10px 8px; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(60% 18% at 50% 96%, rgba(0, 0, 0, .28), transparent 70%),
    radial-gradient(90% 70% at 50% 40%, #fff3dc 0%, #f6c983 55%, #d9822f 100%);
  border: 1px solid var(--line);
}
.profile-face.is-full img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto;
  border: 0; border-radius: 0; background: none;
  filter: drop-shadow(0 6px 10px rgba(60, 30, 10, .25));
}
@media (max-width: 860px) {
  .profile:has(.profile-face.is-full) { grid-template-columns: 200px 1fr; }
  .profile-face.is-full { height: 280px; }
}
@media (max-width: 600px) {
  .profile:has(.profile-face.is-full) { grid-template-columns: 1fr; }
  .profile-face.is-full { height: 300px; }
}

/* トップ：ストア・公式X */
.store-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  margin-top: 16px; padding: 14px 20px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(240, 122, 42, .12), rgba(246, 182, 90, .06) 60%, transparent), var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.store-text { flex: 1 1 260px; min-width: 0; }
.store-label { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; font-size: 17px; font-weight: 900; color: var(--flame); }
.store-label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--flame); animation: pulse 1.8s infinite; }
.store-sub { margin: 2px 0 0 !important; font-size: 13px; color: var(--text-2); }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.store-badge { display: block; line-height: 0; border-radius: 8px; transition: transform .15s, opacity .15s; }
.store-badge:hover { transform: translateY(-2px); opacity: .9; }
.store-badge img { height: 44px; width: auto; }
@media (max-width: 600px) {
  .store-band { padding: 14px 16px; }
  .store-badges { gap: 8px; }
  .store-badge img { height: 38px; }
}

/* ===== 開発者コメント（キャラページ） ===== */
.dev-comment { display: flex; gap: 16px; align-items: flex-start; margin: 12px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.dev-who { flex: none; width: 84px; text-align: center; }
.dev-who img { display: block; width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; background: var(--gold-soft); border: 2px solid var(--gold); object-fit: cover; }
.dev-who p { margin: 0; line-height: 1.3; }
.dev-who b { display: block; font-size: 14px; }
.dev-who small { color: var(--text-3); font-size: 11px; }
.dev-text { position: relative; flex: 1; min-width: 0; padding: 12px 16px; border-radius: 10px; background: var(--surface-2); }
.dev-text::before { content: ""; position: absolute; left: -8px; top: 26px; border: 8px solid transparent; border-left: 0; border-right-color: var(--surface-2); }
.dev-text p { margin: 0 0 .6em; line-height: 1.85; }
.dev-text p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .dev-comment { flex-direction: column; gap: 10px; padding: 14px; }
  .dev-who { display: flex; align-items: center; gap: 10px; width: auto; text-align: left; }
  .dev-who img { width: 52px; height: 52px; margin: 0; }
  .dev-text::before { left: 22px; top: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--surface-2); }
}

/* ===== 育成（オーブ） ===== */
.orb { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; vertical-align: -2px; box-shadow: inset -2px -2px 3px rgba(0, 0, 0, .25), inset 2px 2px 3px rgba(255, 255, 255, .6); }
.orb-bronze { background: #b8743a; }
.orb-silver { background: #b9bfc8; }
.orb-gold { background: #e2b330; }
.orb-rainbow { background: conic-gradient(#ff6b6b, #ffd93d, #6bcb77, #4d96ff, #b96bff, #ff6b6b); }
.orb-table th.orb-col { text-align: center; }
.orb-table td.orb-yes { text-align: center; color: var(--t-supporter); font-weight: 900; }
.orb-table td.orb-no { text-align: center; color: var(--text-3); }
table.data.orb-table tbody th { white-space: normal; min-width: 180px; }
.orb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.orb-card { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.orb-card .orb { width: 18px; height: 18px; vertical-align: -3px; }
.orb-name { margin: 0 0 4px; font-weight: 900; }
.orb-use { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.orb-card ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.orb-memo { margin: 8px 0 0; font-size: 12px; color: var(--text-3); }
@media (max-width: 600px) {
  .orb-table th, .orb-table td { padding: 8px 6px; }
  table.data.orb-table { table-layout: fixed; }
  table.data.orb-table thead th:first-child { width: 42%; }
  table.data.orb-table tbody th { min-width: 0; }
  .orb-table th.orb-col { font-size: 10px; white-space: normal; line-height: 1.3; }
  .orb-table th.orb-col .orb { display: block; margin: 0 auto 3px; }
}

/* ===== 告知の帯（トップ、事前登録の帯の上） ===== */
.notice-band { margin-top: 16px; border-radius: 14px; background: linear-gradient(90deg, var(--flame), var(--flame-2)); box-shadow: var(--shadow); text-align: center; }
.notice-band p, .notice-band a { display: block; margin: 0; padding: 12px 20px; color: #fff; font-size: 18px; font-weight: 900; letter-spacing: .04em; text-decoration: none; }
.notice-band a:hover { opacity: .9; }
.notice-band .notice-sub { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; opacity: .92; }
@media (max-width: 600px) { .notice-band .notice-sub { font-size: 12px; } }
.notice-band + .store-band { margin-top: 10px; }
@media (max-width: 600px) { .notice-band p, .notice-band a { font-size: 16px; padding: 11px 14px; } }

/* ===== 召喚キャラのイラスト ===== */
.summon.has-art { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; }
.summon.has-art .summon-art { grid-row: 1 / span 2; }
.summon.has-art h3, .summon.has-art .summon-dl { grid-column: 2; }
.summon-art { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 150px; border-radius: 10px; background: radial-gradient(circle at 50% 70%, rgba(255, 255, 255, .7), transparent 65%), linear-gradient(160deg, #fbe3c4, #f2b77e); }
.summon-art img { display: block; max-width: 88%; max-height: 150px; width: auto; height: auto; filter: drop-shadow(0 4px 6px rgba(60, 30, 10, .3)); }
@media (max-width: 600px) {
  .summon.has-art { grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; }
  .summon-art { min-height: 120px; }
  .summon-art img { max-height: 112px; }
}

/* ===== 言語の切り替え（ヘッダー右端） ===== */
.lang-switch {
  display: flex; flex: none; padding: 3px; gap: 2px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}
.lang-switch a {
  display: grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  color: #cfc8bb; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.lang-switch a:hover { text-decoration: none; color: var(--head-text); background: rgba(255, 255, 255, .08); }
.lang-switch a[aria-current] { background: linear-gradient(180deg, #ffc93c, #f07a2a); color: #2a1406; }
.lang-switch .ls-short { display: none; }
@media (max-width: 600px) {
  .lang-switch a { padding: 0 9px; height: 28px; font-size: 12px; }
  .lang-switch .ls-full { display: none; }
  .lang-switch .ls-short { display: inline; }
  .site-header { gap: 8px; }
}
@media (max-width: 600px) {
  /* 言語の切り替えを置くぶん、ロゴ横の「攻略Wiki」は隠す */
  .brand-sub { display: none; }
  .brand { flex: 0 1 auto; overflow: hidden; }
}
