/* 企業戦国志 サイト共通の見た目。動画と同じ色（墨・生成り・紅・金）でそろえる */
:root {
  --ink: #15110e;
  --ink-2: #211a15;
  --ink-3: #2d241d;
  --line: #4a3b2e;
  --text: #f3ead8;
  --muted: #b9ab92;
  --paper: #f4ecdc;
  --paper-ink: #2a211a;
  --crimson: #b01620;
  --crimson-2: #8a0f18;
  --gold: #e6b84a;
  --gold-2: #ffd650;
  --blue: #1f4e8c;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.35; letter-spacing: 0.04em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* 見出しの札（動画の左上の札と同じ形） */
.badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--crimson); color: #fff; text-decoration: none;
  font-family: var(--serif); font-weight: 900; letter-spacing: 0.12em;
  padding: 0.35em 0.8em; border: 2px solid var(--gold); box-shadow: 0 0 0 2px var(--crimson);
}
.badge img { width: 26px; height: 26px; border-radius: 50%; }
.badge:hover { color: #fff; background: var(--crimson-2); }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(21, 17, 14, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 14px; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-2); }

/* ファーストビュー */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,17,14,0.15) 0%, rgba(21,17,14,0.25) 40%, rgba(21,17,14,0.92) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 56px; }
.hero .kicker { font-family: var(--serif); color: var(--gold-2); font-weight: 700; letter-spacing: 0.2em; margin-bottom: 8px; }
.hero h1 {
  font-size: clamp(40px, 8vw, 84px); color: #fff8e8;
  text-shadow: 0 3px 0 var(--crimson-2), 0 0 24px rgba(0,0,0,0.6);
}
.hero .lead { max-width: 640px; margin-top: 16px; font-size: clamp(15px, 2.2vw, 18px); text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.hero.is-page { min-height: min(56vh, 520px); }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-block; padding: 12px 22px; text-decoration: none; font-weight: 700;
  border: 2px solid var(--gold); color: var(--ink); background: var(--gold); letter-spacing: 0.06em;
}
.btn:hover { background: var(--gold-2); color: var(--ink); }
.btn.ghost { background: rgba(21,17,14,0.55); color: var(--text); }
.btn.ghost:hover { background: rgba(21,17,14,0.85); color: var(--gold-2); }

/* 区切り */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.section h2::before { content: "◆ "; color: var(--crimson); font-size: 0.7em; vertical-align: 0.15em; }
.section .sub { color: var(--muted); margin-bottom: 28px; }
.section.paper { background: var(--paper); color: var(--paper-ink); border-top: 0; }
.section.paper .sub { color: #6b5a45; }
.section.paper a { color: var(--crimson); }

/* 勢力図の札（カード） */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; color: var(--text);
}
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 14px 16px 18px; }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }
.card .tag { position: absolute; top: 10px; left: 10px; background: var(--crimson); color: #fff; font-size: 12px; padding: 2px 8px; font-weight: 700; }
.card.soon { opacity: 0.6; }
.card.soon .tag { background: #555; }
a.card:hover { border-color: var(--gold); }

/* 陣営（3列） */
.camps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.camp { background: var(--ink-2); border: 1px solid var(--line); border-top: 8px solid var(--crimson); padding: 18px 18px 8px; }
.camp.honda { border-top-color: #e9e4da; }
.camp.nissan { border-top-color: var(--blue); }
.camp h3 { font-size: 22px; }
.camp .note { font-size: 13px; color: var(--muted); }
.camp ul { list-style: none; margin: 12px 0; padding: 0; }
.camp li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.camp li:last-child { border-bottom: 0; }
.camp li b { font-family: var(--serif); }
.camp li span { color: var(--gold-2); font-weight: 700; white-space: nowrap; }

/* 年表 */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--crimson); }
.timeline li { position: relative; padding: 0 0 22px 16px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 8px; width: 13px; height: 13px; background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; }
.timeline time { display: block; font-family: var(--serif); font-weight: 700; color: var(--gold-2); }

/* 表 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid #d6c8ad; text-align: left; vertical-align: top; }
table.data thead th { background: var(--paper-ink); color: var(--paper); font-weight: 700; white-space: nowrap; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tbody tr:nth-child(even) { background: rgba(0,0,0,0.035); }
.caption { font-size: 13px; color: #6b5a45; margin-top: 10px; }

/* 動画の埋め込み */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 18px; }
.short { aspect-ratio: 9 / 16; width: 100%; border: 0; background: #000; }
.wide-video { aspect-ratio: 16 / 9; width: 100%; border: 0; background: #000; }

/* 提携サイトへの案内 */
.partner { background: var(--ink-2); border: 1px solid var(--gold); padding: 22px; }
.partner h3 { font-size: 20px; margin-bottom: 8px; }
.partner .label { display: inline-block; font-size: 12px; border: 1px solid var(--muted); color: var(--muted); padding: 0 6px; margin-bottom: 8px; }
.partner ul { margin: 8px 0 0; padding-left: 1.2em; }

/* 出典・注記 */
.sources { font-size: 13px; color: var(--muted); }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: 4px; word-break: break-all; }
.fine { font-size: 13px; color: var(--muted); }

/* 本文ページ */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h2::before { content: "◆ "; color: var(--crimson); font-size: 0.7em; vertical-align: 0.15em; }
.prose ul { padding-left: 1.3em; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }

@media (max-width: 640px) {
  .site-nav { gap: 4px 12px; font-size: 13px; }
  .badge { font-size: 14px; }
  .section { padding: 48px 0; }
  .hero .wrap { padding-bottom: 40px; }
}

table.data.compact { min-width: 0; }
table.data.compact th { width: 9em; white-space: nowrap; }
.section.first { border-top: 0; }
.section.first h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }

.badge { white-space: nowrap; }
table.data td:first-child { min-width: 7.5em; }
.cards.mini { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 14px; }
.card.soon { opacity: 0.88; border-left: 4px solid var(--crimson); }
.card.soon .tag { position: static; display: inline-block; margin: 14px 16px 0; align-self: flex-start; }
.card.soon .body { padding-top: 8px; }
.subhead { font-family: var(--serif); font-size: 18px; margin: 36px 0 0; color: var(--gold-2); }
