/* 戦国大図鑑 — Modern 和風 CSS */
@charset "UTF-8";

/* --- Reset & Variables --- */
:root {
  --bg: #faf9f6;
  --bg-alt: #f0eeea;
  --bg-card: #ffffff;
  --ink: #1a1a2e;
  --ink-light: #555;
  --ink-muted: #888;
  --gold: #b8860b;
  --gold-light: #d4a94b;
  --gold-gradient: linear-gradient(135deg, #d4a94b, #b8860b);
  --vermillion: #c0392b;
  --navy: #16213e;
  --navy-light: #1e2d4a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  line-height: 1.4;
}

a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--vermillion); }
img { max-width: 100%; height: auto; }

/* --- Icons --- */
.icon { width: 20px; height: 20px; vertical-align: -3px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; vertical-align: -2px; flex-shrink: 0; }
.card-arrow { opacity: 0; transition: all var(--transition); margin-left: auto; }
.card-arrow .icon-sm { width: 18px; height: 18px; }

/* --- Container --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.site-header {
  background: #16213e;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}
.site-logo:hover { color: #edc973; }
.site-logo .icon { width: 24px; height: 24px; stroke: var(--gold-light); }
.nav-toggle { display: none; background: none; border: none; color: #e0dcd4; cursor: pointer; padding: 8px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c8c4bc;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 500;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.site-nav a .icon { width: 18px; height: 18px; }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--bg-alt);
  padding: 10px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.breadcrumb a { color: var(--ink-light); font-weight: 500; }
.breadcrumb a:hover { color: var(--vermillion); }
.breadcrumb span { color: var(--ink); }
.bc-sep { color: #bbb; margin: 0 6px; font-size: 0.7rem; }

/* --- Main --- */
.main-content { min-height: 60vh; margin-bottom: 0; }

/* --- Section --- */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-more { margin-top: 28px; text-align: center; }
.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vermillion);
  font-weight: 700;
  padding: 10px 24px;
  border: 1px solid var(--vermillion);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.section-more a:hover { background: var(--vermillion); color: #fff; }
.section-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--vermillion); font-weight: 700; }
.section-link-p { margin-top: 20px; }
.section-link-p a { color: var(--vermillion); font-weight: 700; }

/* --- Hero: Portal --- */
.hero-portal {
  background: linear-gradient(135deg, #0f172a 0%, var(--navy) 50%, #1e2d4a 100%);
  color: #f5f0e8;
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-portal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(212,169,75,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(192,57,43,0.05) 0%, transparent 60%);
  animation: float 20s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -2%); }
}
.hero-badge { margin-bottom: 20px; position: relative; }
.hero-badge .icon { width: 48px; height: 48px; stroke: var(--gold-light); opacity: 0.8; }
.hero-portal h1 {
  font-size: 3rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  position: relative;
}
.hero-subtitle { font-size: 1.05rem; color: #aaa; margin-bottom: 36px; position: relative; }
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vermillion);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(192,57,43,0.3);
}
.hero-cta:hover { background: #a0301f; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(192,57,43,0.4); }
.hero-cta .icon { width: 18px; height: 18px; }
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}
.hero-cta-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }
.hero-cta-secondary .icon { width: 18px; height: 18px; }

/* --- Hero: Busho --- */
.hero-busho {
  padding: 56px 0 44px;
  border-bottom: none;
  position: relative;
}
.hero-busho::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}
.hero-busho-inner { max-width: 700px; }
.hero-busho h1 { font-size: 2.4rem; margin-bottom: 8px; }
.hero-alias { font-size: 1.05rem; color: var(--ink-light); margin-bottom: 14px; letter-spacing: 0.1em; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Hero: Battle --- */
.hero-battle {
  background: linear-gradient(135deg, #0f172a 0%, var(--navy) 100%);
  color: #f5f0e8;
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}
.hero-battle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--vermillion), #e74c3c);
}
.hero-battle h1 { font-size: 2.2rem; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.hero-date { font-size: 1.05rem; color: #aaa; }

/* --- Stats Banner --- */
.stats-banner {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius);
  color: #f5f0e8;
  margin: 36px 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stat {
  text-align: center;
  padding: 28px 32px;
  flex: 1;
  position: relative;
}
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--gold-light); font-family: 'Noto Serif JP', serif; }
.stat-label { font-size: 0.82rem; color: #999; margin-top: 4px; }

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tag-faction { background: var(--navy); color: #e0dcd4; }
.tag-role { background: rgba(212,169,75,0.15); color: var(--gold); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag-cloud .tag { font-size: 0.85rem; padding: 8px 16px; cursor: pointer; transition: all var(--transition); }
.tag-cloud a.tag:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* --- Rarity Badges --- */
.rarity-badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.rarity-legendary { background: var(--gold-gradient); color: #16213e; }
.rarity-epic { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }
.rarity-rare { background: linear-gradient(135deg, #7b8fa8, #9db4cc); color: #fff; }
.rarity-uncommon { background: linear-gradient(135deg, #5b8a4e, #7ab666); color: #fff; }
.rarity-common { background: #e0dcd4; color: #555; }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.card-grid-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Busho Card */
.busho-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.busho-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.busho-card:hover .card-arrow { opacity: 1; transform: translateX(4px); }
.busho-card-accent { height: 4px; }
.busho-card-body { padding: 18px 20px; flex: 1; }
.busho-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.busho-alias { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 10px; letter-spacing: 0.02em; }
.busho-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.busho-card .card-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: var(--ink-muted);
}

/* Rarity card accents */
.busho-card.rarity-legendary { border-bottom: 2px solid var(--gold-light); }
.busho-card.rarity-epic { border-bottom: 2px solid var(--vermillion); }
.busho-card.rarity-rare { border-bottom: 2px solid #8e9aaf; }
.busho-card.rarity-uncommon { border-bottom: 2px solid #6b8e5c; }
.busho-card.rarity-common { border-bottom: 2px solid #ccc; }

/* Battle Card */
.battle-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.battle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.battle-card:hover .card-arrow { opacity: 1; transform: translateX(4px); }
.battle-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192,57,43,0.08);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--vermillion);
}
.battle-card-icon .icon { width: 22px; height: 22px; }
.battle-card-body { flex: 1; min-width: 0; }
.battle-card h3 { font-size: 1rem; margin-bottom: 4px; }
.battle-date, .battle-place { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--ink-muted); margin-right: 12px; }
.battle-date .icon, .battle-place .icon { width: 14px; height: 14px; }
.battle-result { font-size: 0.82rem; color: var(--ink-light); margin-top: 4px; }

/* Faction / Group / Role / Pref cards */
.faction-card, .group-card, .role-card, .pref-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--ink);
}
.faction-card:hover, .group-card:hover, .role-card:hover, .pref-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.faction-card h3, .group-card h3, .role-card h3, .pref-card h3 { font-size: 1rem; }
.pref-count { font-size: 0.82rem; color: var(--ink-muted); font-weight: 700; background: var(--bg-alt); padding: 4px 12px; border-radius: 20px; }
.pref-provinces { font-size: 0.75rem; color: var(--ink-muted); margin-top: 2px; }

/* Link Grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.link-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.link-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.link-card:hover::after { transform: scaleX(1); }
.link-card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); border-radius: 10px; margin-bottom: 16px; color: var(--gold); }
.link-card-icon .icon { width: 22px; height: 22px; }
.link-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.link-card p { font-size: 0.85rem; color: var(--ink-light); line-height: 1.6; }

/* --- Relation --- */
.relation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.relation-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--transition);
}
.relation-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.rel-name { font-weight: 700; font-size: 0.92rem; }
.rel-types { display: flex; gap: 4px; flex-wrap: wrap; }

.relation-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.rel-masterServant { background: var(--navy); }
.rel-alliance { background: #2e7d32; }
.rel-hostile { background: var(--vermillion); }
.rel-family { background: #7b1fa2; }
.rel-rival { background: var(--gold); color: var(--navy); }

.relation-profiles {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: center;
  margin: 48px 0;
  flex-wrap: wrap;
}
.rel-profile {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 36px;
  border-left: 5px solid;
  text-align: center;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  min-width: 200px;
  flex: 1;
  max-width: 320px;
  transition: all var(--transition);
}
.rel-profile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.rel-profile h2 { font-size: 1.3rem; margin-bottom: 6px; }
.rel-profile p { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 8px; }
.rel-type-center { font-size: 1.5rem; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rel-type-center .relation-badge { font-size: 0.85rem; padding: 4px 14px; }
.rel-type-header { margin: 24px 0 12px; }
.rel-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.rel-link {
  display: inline-block;
  background: var(--bg-card);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  font-weight: 500;
}
.rel-link:hover { background: var(--navy); color: #f5f0e8; transform: translateY(-2px); }

/* --- Info Table --- */
.info-table {
  width: 100%;
  max-width: 620px;
  margin: 28px 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-table th, .info-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.9rem;
}
.info-table tr:not(:last-child) th,
.info-table tr:not(:last-child) td { border-bottom: 1px solid var(--bg-alt); }
.info-table th {
  width: 130px;
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--ink);
}
.info-table td { background: var(--bg-card); }

/* --- Article Body --- */
.article-body { margin: 36px 0; }
.article-body h2 {
  font-size: 1.35rem;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  border-image: var(--gold-gradient) 1;
}
.article-body p { margin-bottom: 18px; line-height: 1.9; color: #333; }
.article-intro { font-size: 1.02rem; color: #444; line-height: 2; margin-bottom: 32px; }

/* Deep Dive */
.deep-dive { margin: 48px 0; }
.deep-dive h2 {
  font-size: 1.3rem;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  border-image: var(--gold-gradient) 1;
}
.deep-dive p { margin-bottom: 16px; line-height: 1.9; color: #333; }
.dd-text p { text-indent: 1em; }
.quotes-list, .trivia-list { margin: 14px 0 24px 20px; }
.quotes-list li, .trivia-list li { margin-bottom: 12px; line-height: 1.8; }
.quotes-list li { list-style: none; padding-left: 24px; position: relative; }
.quotes-list li::before { content: '\201C'; position: absolute; left: 0; top: -4px; font-size: 1.4rem; color: var(--gold); font-weight: 700; }

/* FAQ */
.faq-section { margin: 48px 0; }
.faq-section h2 {
  font-size: 1.3rem;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  border-image: var(--gold-gradient) 1;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q { font-size: 0.98rem; color: var(--navy); margin-bottom: 10px; }
.faq-q::before { content: 'Q.'; color: var(--gold); font-weight: 700; margin-right: 8px; }
.faq-a { font-size: 0.9rem; color: #444; line-height: 1.8; }

/* --- Ranking --- */
.ranking-list { margin: 28px 0; }
.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  margin-bottom: 4px;
}
.ranking-item:hover { background: var(--bg-alt); }
.ranking-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-muted);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  flex-shrink: 0;
  font-family: 'Noto Serif JP', serif;
}
.ranking-top3 .ranking-num {
  background: var(--gold-gradient);
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(212,169,75,0.3);
}
.ranking-top10 { }
.ranking-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-decoration: none;
  color: var(--ink);
}
.ranking-name { font-weight: 700; font-size: 1rem; }
.ranking-alias { font-size: 0.82rem; color: var(--ink-muted); }

/* --- Timeline --- */
.timeline { margin: 28px 0; }
.timeline-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  align-items: baseline;
  transition: background var(--transition);
}
.timeline-item:hover { background: var(--bg-alt); border-radius: var(--radius-sm); padding-left: 12px; margin-left: -12px; }
.timeline-year {
  font-weight: 700;
  font-family: 'Noto Serif JP', serif;
  color: var(--gold);
  min-width: 72px;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.timeline-name { font-weight: 700; color: var(--navy); }
.timeline-name:hover { color: var(--vermillion); }
.timeline-desc { font-size: 0.82rem; color: var(--ink-muted); margin-left: auto; }
.timeline-result { font-size: 0.82rem; color: var(--ink-muted); }

/* --- Map --- */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin: 32px 0;
}
.map-region h2 {
  font-size: 1.15rem;
  color: var(--gold);
  border-bottom: 2px solid transparent;
  border-image: var(--gold-gradient) 1;
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.map-pref-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: all var(--transition);
}
.map-pref-card:hover { transform: translateX(6px); box-shadow: var(--shadow); color: var(--ink); }
.map-pref-card h3 { font-size: 0.92rem; }
.map-count { font-weight: 400; color: var(--vermillion); font-size: 0.82rem; }
.map-top { font-size: 0.78rem; color: var(--ink-muted); }

/* --- Lord Profile (kashin) --- */
.lord-profile {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.lord-profile h2 { font-size: 1.2rem; margin-bottom: 4px; }
.lord-profile h2 a { color: var(--navy); }
.lord-profile h2 a:hover { color: var(--vermillion); }
.lord-profile p { font-size: 0.88rem; color: var(--ink-light); }

/* --- Tactics --- */
.tactics-list { margin: 24px 0; }
.tactic-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gold-light);
}
.tactic-item h3 { font-size: 0.98rem; margin-bottom: 8px; }
.tactic-item h3 a { color: var(--navy); }
.tactic-item h3 a:hover { color: var(--vermillion); }
.tactic-item p { font-size: 0.88rem; color: #444; }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.filter-btn {
  padding: 7px 18px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--bg);
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  transition: all var(--transition);
  font-weight: 500;
}
.filter-btn:hover { border-color: var(--gold-light); color: var(--gold); }
.filter-btn.active {
  background: var(--navy);
  color: #f5f0e8;
  border-color: var(--navy);
}

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, #0f172a, var(--navy));
  color: #f5f0e8;
  text-align: center;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,169,75,0.06) 0%, transparent 70%);
}
.cta-icon { margin-bottom: 16px; }
.cta-icon .icon { width: 40px; height: 40px; stroke: var(--gold-light); opacity: 0.7; }
.cta-section h2 { font-size: 1.4rem; margin-bottom: 14px; background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; }
.cta-section p { font-size: 0.92rem; color: #999; margin-bottom: 28px; position: relative; }
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--vermillion);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(192,57,43,0.3);
  position: relative;
}
.cta-button:hover { background: #a0301f; color: #fff; transform: translateY(-2px); }
.cta-button .icon-sm { width: 18px; height: 18px; }

.cta-inline {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  margin: 36px 0;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.cta-inline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}
.cta-inline-icon { margin-bottom: 12px; color: var(--gold); }
.cta-inline-icon .icon { width: 32px; height: 32px; }
.cta-inline p { font-size: 0.92rem; margin-bottom: 16px; color: var(--ink-light); }
.cta-button-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(212,169,75,0.2);
}
.cta-button-inline:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(212,169,75,0.3); color: var(--navy); }
.cta-button-inline .icon-sm { width: 16px; height: 16px; }

/* --- Footer --- */
.site-footer {
  background: #0f172a;
  color: #999;
  padding: 56px 0 32px;
  font-size: 0.85rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: var(--gold-light);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
}
.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  padding: 6px 0;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-col a:hover { color: var(--gold-light); transform: translateX(4px); }
.footer-col a .icon { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
  color: #666;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #2a2a3d;
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    font-size: 0.95rem;
    color: var(--gold-light);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
  }
  .site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
  .hero-portal { padding: 60px 0 50px; }
  .hero-portal h1 { font-size: 2rem; }
  .hero-busho h1, .hero-battle h1 { font-size: 1.7rem; }
  .stats-banner { flex-wrap: wrap; }
  .stat { min-width: 50%; padding: 20px 16px; }
  .stat:nth-child(2)::after { display: none; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .ranking-item { gap: 12px; padding: 12px 14px; }
  .relation-profiles { flex-direction: column; gap: 16px; }
  .rel-type-center { flex-direction: row; }
  .map-grid { grid-template-columns: 1fr; }
  .info-table th { width: 100px; }
  .link-grid { grid-template-columns: 1fr; }
  .timeline-item { flex-wrap: wrap; gap: 10px; }
  .timeline-desc { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .battle-card { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-portal { padding: 48px 0 40px; }
  .hero-portal h1 { font-size: 1.6rem; letter-spacing: 0.08em; }
  .section { padding: 36px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .busho-card-body { padding: 14px 16px; }
  .filter-bar { gap: 6px; padding: 12px; }
  .filter-btn { padding: 5px 12px; font-size: 0.75rem; }
  .cta-section { padding: 40px 16px; }
  .cta-section h2 { font-size: 1.15rem; }
  .stat-num { font-size: 1.5rem; }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .busho-card, .battle-card, .link-card, .faction-card, .group-card, .role-card, .pref-card, .faq-item {
    animation: fadeUp 0.4s ease both;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
