:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #171717;
  --muted: #6e6a62;
  --line: #dfd8cb;
  --accent: #0a6b57;
  --accent-2: #b44732;
  --soft: #e8efe8;
  --blue: #295b8d;
  --shadow: 0 18px 50px rgba(49, 43, 32, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.live-panel {
  align-self: flex-start;
  display: flex;
  gap: 10px;
  min-width: 260px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.live-panel strong,
.live-panel span {
  display: block;
}

.live-panel span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.pulse {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(10, 107, 87, 0.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 28px 0 18px;
}

.lead-story,
.market-brief,
.detail-panel .sticky-detail {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead-story {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 380px;
  overflow: hidden;
}

.lead-story img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.badge-row,
.card-top,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-row span,
.card-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lead-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.lead-copy p,
.news-card p,
.resolution p {
  color: var(--muted);
  line-height: 1.75;
}

.probability-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 20px;
}

.probability-line strong,
.big-number strong {
  font-size: 58px;
  line-height: 1;
}

.up {
  color: var(--accent);
}

.down {
  color: var(--accent-2);
}

.flat {
  color: var(--muted);
}

.market-brief {
  padding: 22px;
}

.section-title p {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-title h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.mover {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.mover span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 20px;
}

.tabs button {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.tabs button.active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.row-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.news-card:hover {
  border-color: var(--accent);
}

.news-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.news-card p {
  flex: 1;
  margin-bottom: 18px;
}

.meter {
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #ede7dc;
  border-radius: 999px;
}

.meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  border-radius: inherit;
}

.card-bottom strong {
  font-size: 28px;
}

.card-bottom small {
  color: var(--muted);
}

.detail-panel {
  position: sticky;
  top: 14px;
}

.sticky-detail {
  padding: 20px;
}

.sticky-detail h2 {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.3;
}

.original {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.big-number {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.outcomes {
  display: grid;
  gap: 12px;
}

.outcome div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
}

.outcome i {
  display: block;
  height: 7px;
  background: var(--accent);
  border-radius: 999px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.facts div {
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.facts dt {
  color: var(--muted);
  font-size: 12px;
}

.facts dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.resolution h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.source-link {
  display: block;
  margin-top: 18px;
  padding: 13px 14px;
  color: white;
  text-align: center;
  text-decoration: none;
  background: var(--ink);
  border-radius: 8px;
}

.notice,
footer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

footer {
  margin-top: 42px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .site-header,
  .hero-grid,
  .content-grid,
  .lead-story {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .lead-story img {
    min-height: 220px;
    max-height: 320px;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(100% - 22px, 1180px);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .lead-copy,
  .market-brief,
  .sticky-detail {
    padding: 18px;
  }

  .probability-line strong,
  .big-number strong {
    font-size: 44px;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

