:root {
  color-scheme: light;
  --ink: #16201d;
  --sub: #586963;
  --paper: #ffffff;
  --surface: #f3f7f4;
  --line: #d9e2dc;
  --green: #176b4d;
  --green-dark: #0f3f31;
  --gold: #b9892f;
  --blue: #236c9f;
  --shadow: 0 18px 52px rgba(22, 32, 29, 0.12);
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  background: #eef4f0;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(217, 226, 220, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.topbar nav {
  display: flex;
  gap: 18px;
  color: var(--sub);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 84px clamp(20px, 6vw, 80px);
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 43, 34, 0.88), rgba(18, 75, 54, 0.62)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.hero-inner {
  position: relative;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.button.primary {
  background: #fff;
  color: var(--green-dark);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -54px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metrics div {
  min-height: 112px;
  padding: 22px;
  background: var(--paper);
}

.metrics span {
  display: block;
  color: var(--sub);
  font-size: 13px;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.2;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  color: var(--sub);
}

.timeline,
.article-grid,
.ops-grid,
.trend-grid,
.command-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article,
.article-card,
.ops-grid article,
.trend-card,
.command-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
}

.timeline span {
  color: var(--blue);
  font-weight: 900;
}

h3 {
  margin: 8px 0 10px;
  line-height: 1.35;
}

.article-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 24px;
}

.command {
  padding-bottom: 40px;
}

.command-layout {
  grid-template-columns: 0.9fr 1.1fr;
}

.command-panel:first-child {
  border-color: rgba(23, 107, 77, 0.28);
  background: #f8fbf8;
}

.rule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--sub);
}

.watch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.watch-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--paper);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.trend-grid {
  grid-template-columns: repeat(3, 1fr);
}

.trend-card {
  position: relative;
}

.trend-card.accepted {
  border-color: rgba(23, 107, 77, 0.32);
}

.trend-card.pending {
  border-color: rgba(185, 137, 47, 0.38);
}

.trend-card strong {
  display: block;
  margin-top: 18px;
  color: var(--green-dark);
}

.article-card p,
.timeline p,
.ops-grid p,
.trend-card p,
.command-panel p {
  margin: 0;
  color: var(--sub);
}

.article-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-meta span {
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef4f0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.article-stats {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.article-stats div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.article-stats dt {
  color: var(--sub);
  font-size: 12px;
}

.article-stats dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce8e1;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.operation {
  padding-top: 44px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.ad-slot.placeholder {
  color: var(--sub);
  text-align: center;
}

.ad-slot span,
.ad-slot small {
  display: block;
}

.ad-slot strong {
  display: block;
  margin: 4px 0;
  color: var(--green-dark);
  font-size: 22px;
}

.plain-page {
  min-height: 100vh;
  padding-top: 32px;
}

.doc {
  max-width: 820px;
}

.doc h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: 0;
}

.doc h2 {
  margin: 36px 0 10px;
}

.doc p {
  color: var(--sub);
}

.ops-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 880px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics,
  .timeline,
  .article-grid,
  .ops-grid,
  .trend-grid,
  .command-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }
}
