/* =========================================================
   Last War: Survival Season 6 攻略ガイド
   共通スタイル
   ========================================================= */

:root {
  --bg: #0d1117;
  --bg-soft: #141b25;
  --bg-card: #1a2330;
  --bg-card-hover: #212d3d;
  --border: #2a3645;
  --text: #e6edf3;
  --text-dim: #9aa7b5;
  --accent: #ff6b2b;        /* 軍事的オレンジ */
  --accent-soft: #ff8c52;
  --gold: #ffce4f;
  --green: #4ade80;
  --blue: #5aa9ff;
  --red: #ff5d5d;
  --purple: #b07bff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(
      circle at 15% 10%,
      rgba(255, 107, 43, 0.08),
      transparent 40%
    ),
    radial-gradient(circle at 85% 0%, rgba(90, 169, 255, 0.06), transparent 35%);
  background-attachment: fixed;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #c2410c);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255, 107, 43, 0.4);
}
.brand .logo-img {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 43, 0.4));
}
.brand .s6 {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.3rem;
  padding: 4px 10px;
  min-width: 44px;
  min-height: 42px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.hero .badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 43, 0.12);
  border: 1px solid rgba(255, 107, 43, 0.4);
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.08rem;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: pointer;
  border: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #d9531e);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 43, 0.35);
}
.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---------- Section ---------- */
.section {
  padding: 56px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}
.section-title .eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, border-color 0.15s ease,
    background 0.15s ease;
}
.card.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.card .more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Content article ---------- */
.article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 28px;
  scroll-margin-top: 80px; /* #リンクで飛んだ時に、上の固定の帯に隠れないように */
}
.article h2 {
  font-size: 1.6rem;
  margin: 8px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.article h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  color: var(--accent-soft);
}
.article p {
  margin-bottom: 14px;
  color: var(--text);
}
.article ul,
.article ol {
  margin: 0 0 16px 22px;
  color: var(--text);
}
.article li {
  margin-bottom: 8px;
}
.article strong {
  color: var(--gold);
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
thead th {
  background: var(--bg-soft);
  color: var(--accent-soft);
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--bg-card-hover);
}

/* ---------- Tier badges ---------- */
.tier {
  display: inline-block;
  width: 28px;
  text-align: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 2px 0;
  color: #0d1117;
}
.tier-S {
  background: var(--gold);
}
.tier-A {
  background: var(--green);
}
.tier-B {
  background: var(--blue);
}
.tier-C {
  background: var(--text-dim);
}

/* ---------- Callout ---------- */
.callout {
  border-left: 4px solid var(--blue);
  background: rgba(90, 169, 255, 0.08);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
  color: var(--text);
  font-size: 0.95rem;
}
.callout.tip {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}
.callout.warn {
  border-color: var(--red);
  background: rgba(255, 93, 93, 0.08);
}
.callout .label {
  font-weight: 800;
  margin-right: 6px;
}

/* ---------- Page header ---------- */
.page-head {
  padding: 50px 0 10px;
  text-align: center;
}
.page-head .eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin: 8px 0 12px;
}
.page-head p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- TOC ---------- */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.toc h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.toc ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.toc a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: rgba(255, 206, 79, 0.08);
  border: 1px solid rgba(255, 206, 79, 0.3);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 30px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.disclaimer strong {
  color: var(--gold);
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 36px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}
footer .foot-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
footer .foot-links a {
  color: var(--text-dim);
}

/* ---------- Feature list (S6) ---------- */
.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.feature .num {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: #0d1117;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text);
}
.feature p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery figure {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.gallery figure:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}
.gallery .placeholder {
  width: 100%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  background: repeating-linear-gradient(
    45deg,
    var(--bg-soft),
    var(--bg-soft) 12px,
    var(--bg-card) 12px,
    var(--bg-card) 24px
  );
  border-bottom: 1px solid var(--border);
}
.gallery .placeholder .ph-icon {
  font-size: 1.8rem;
  opacity: 0.6;
}
.gallery figcaption {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

/* ---------- Timeline (changelog) ---------- */
.timeline {
  position: relative;
  margin: 10px 0 0 10px;
  padding-left: 26px;
  border-left: 2px solid var(--border);
}
.timeline .entry {
  position: relative;
  padding-bottom: 28px;
}
.timeline .entry::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline .entry .date {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: 0.04em;
}
.timeline .entry h3 {
  font-size: 1.1rem;
  margin: 4px 0 8px;
  color: var(--text);
}
.timeline .entry ul {
  margin: 0 0 0 20px;
  color: var(--text-dim);
  font-size: 0.94rem;
}
.timeline .entry li {
  margin-bottom: 5px;
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}
.tag-new {
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.4);
}
.tag-update {
  background: rgba(90, 169, 255, 0.15);
  color: var(--blue);
  border: 1px solid rgba(90, 169, 255, 0.4);
}

/* ---------- Video（縦長の動画） ---------- */
.video-frame {
  margin: 20px auto 4px;
  max-width: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #000;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1100px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    gap: 2px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1rem;
    padding: 10px 12px;
  }
  .nav-toggle {
    display: block;
  }
}
@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    gap: 2px;
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .article {
    padding: 26px 20px;
  }
}
