/* Frontline Legion — public site shared style (heraldic) */
:root {
  --bg: #080B17;
  --surface: #10142A;
  --surface-2: #1A1F38;
  --gold: #D9B964;
  --gold-deep: #8C6E2A;
  --hairline: rgba(217, 185, 100, 0.45);
  --parchment: #EDE6D6;
  --text-2: #9099AB;
  --muted: #5A6076;
  --crimson: #C74858;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--parchment);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted rgba(217, 185, 100, 0.3);
  transition: color 120ms ease;
}
a:hover { color: var(--parchment); }

.heraldic {
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.18em;
  font-weight: 600;
}

/* ── ヘッダー ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(8, 11, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.3em;
  font-size: 14px;
  color: var(--parchment);
}
.site-nav .brand img { width: 28px; height: 28px; }
.site-nav .spacer { flex: 1; }
.site-nav a.nav-link {
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--text-2);
  border-bottom: none;
}
.site-nav a.nav-link:hover { color: var(--gold); }

/* ── 共通レイアウト ──────────────────────────────────────────────────── */
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px;
}
.wrap--narrow { max-width: 720px; }

footer.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 28px 32px;
  margin-top: 64px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
footer.site-foot a { color: var(--text-2); border-bottom: none; }
footer.site-foot a:hover { color: var(--gold); }

/* ── 紋章セパレータ ──────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0;
}
.divider span:first-child,
.divider span:last-child {
  width: 80px;
  height: 1px;
  background: var(--hairline);
}
.divider .dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── 見出し ──────────────────────────────────────────────────────────── */
h1.display {
  font-family: "Cinzel", serif;
  font-size: 52px;
  letter-spacing: 0.2em;
  margin: 0;
  color: var(--parchment);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8),
               0 0 24px rgba(217, 185, 100, 0.35);
}
h2.heading {
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-size: 18px;
  margin: 28px 0 12px;
}
h3 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.12em;
  color: var(--parchment);
  font-size: 14px;
  margin: 16px 0 6px;
}

/* ── 法的ページ ──────────────────────────────────────────────────────── */
.legal-section {
  border-left: 1px solid var(--hairline);
  padding: 4px 16px;
  margin: 14px 0;
  color: var(--parchment);
}
.legal-section p { font-size: 14px; margin: 6px 0; }
.legal-meta {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}

/* ── マーケティングページ ──────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center top, #1A1F38 0%, #080B17 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("board_bg.png") center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  image-rendering: pixelated;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero img.emblem {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 24px rgba(217, 185, 100, 0.35));
}
.hero .sub {
  margin-top: 14px;
  padding: 4px 14px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.3em;
}

.section {
  padding: 56px 24px;
  border-top: 1px solid rgba(217, 185, 100, 0.18);
}
.section h2 { text-align: center; }
.section .lead {
  text-align: center;
  max-width: 640px;
  margin: 12px auto 28px;
  color: var(--text-2);
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.feature {
  border: 1px solid var(--hairline);
  background: rgba(16, 20, 42, 0.55);
  padding: 18px;
}
.feature .label {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--gold);
}
.feature h3 {
  margin: 6px 0 8px;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.feature p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.65;
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}
.faction {
  border: 1px solid var(--hairline);
  padding: 14px;
  text-align: center;
}
.faction .badge {
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 0.3em;
}
.faction .name { font-size: 14px; margin-top: 4px; color: var(--parchment); }
.faction .desc { font-size: 11px; color: var(--muted); margin-top: 6px; }

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.cta-row .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Cinzel", serif;
  letter-spacing: 0.25em;
  font-size: 13px;
  background: rgba(217, 185, 100, 0.06);
}
.cta-row .cta.primary {
  background: var(--gold);
  color: var(--bg);
}
.cta-row .cta--disabled {
  border-color: var(--muted);
  color: var(--muted);
  cursor: not-allowed;
  background: transparent;
}

@media (max-width: 720px) {
  .wrap { padding: 20px; }
  .site-nav { padding: 12px 18px; gap: 14px; }
  h1.display { font-size: 36px; letter-spacing: 0.16em; }
  .hero { padding: 60px 18px 40px; }
}
