:root {
  --bg: #07080c;
  --bg-soft: #0e1118;
  --card: #141821;
  --card-hover: #1a1f2b;
  --line: rgba(232, 234, 239, 0.08);
  --text: #e8eaef;
  --muted: #9aa3b5;
  --faint: #6b7384;
  --accent: #e23d3d;
  --accent-2: #f0c14b;
  --accent-soft: rgba(226, 61, 61, 0.14);
  --gold-soft: rgba(240, 193, 75, 0.12);
  --ok: #3ecf8e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --header-h: 72px;
  --max: 1180px;
  --font: "IBM Plex Sans", "Noto Sans JP", system-ui, sans-serif;
  --display: "Syne", "IBM Plex Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(226, 61, 61, 0.12), transparent 55%),
    radial-gradient(900px 400px at 0% 20%, rgba(240, 193, 75, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus {
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 12, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner, .wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.logo-mark::before, .logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(226, 61, 61, 0.55);
  border-radius: 50%;
}
.logo-mark::after {
  inset: 12px;
  background: var(--accent);
  border: 0;
}
.logo span { color: var(--accent-2); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav a:hover, .nav a.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.hero {
  padding: 64px 0 36px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(226, 61, 61, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(226, 61, 61, 0.05), 0 0 0 96px rgba(226, 61, 61, 0.04);
  pointer-events: none;
}
.kicker {
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 10px 0 14px;
  max-width: 16ch;
}
.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}
.chip, .filter-btn {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.filter-btn.is-active, .chip-accent {
  border-color: rgba(226, 61, 61, 0.45);
  background: var(--accent-soft);
  color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 72px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 61, 61, 0.35);
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}
.card-body { padding: 16px 16px 18px; }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--faint);
  font-size: 0.8rem;
}
.card h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 8px 0 8px;
  line-height: 1.25;
}
.card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-2);
}

.article-hero {
  padding: 36px 0 12px;
}
.article-cover {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 18px 0 28px;
}
.article-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 8px 0 12px;
}
.byline { color: var(--muted); font-size: 0.92rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0 28px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.stat dt { color: var(--faint); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stat dd { margin: 4px 0 0; font-weight: 700; }
.prose { max-width: 76ch; }
.prose h2 {
  font-family: var(--display);
  margin: 36px 0 10px;
  font-size: 1.45rem;
}
.prose p, .prose li { color: #c9ced9; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 10px 0; }
.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
}
.lang-meter {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px;
}
.lang-meter i {
  width: 22px;
  height: 8px;
  border-radius: 99px;
  background: #2a3140;
}
.lang-meter i.on { background: var(--accent); }

.static-page { padding: 48px 0 80px; }
.static-page h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.static-page h2 { margin-top: 32px; font-family: var(--display); }
.static-page p, .static-page li { color: var(--muted); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.contact-card, form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
label { display: block; font-size: 0.86rem; margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
textarea { min-height: 140px; resize: vertical; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  background: #06070b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-2); }
.tiny { color: var(--faint); font-size: 0.82rem; margin-top: 24px; }

.empty {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 48px 0 80px;
}

.ad-slot {
  margin: 24px 0 28px;
  padding: 12px 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  min-height: 90px;
  text-align: center;
  overflow: hidden;
}
.ad-label {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-slot ins.adsbygoogle {
  display: block;
  min-height: 90px;
}

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(7, 8, 12, 0.97);
    padding: 12px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.is-open { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .article-cover img { aspect-ratio: 16 / 9; }
}
