/* NOX MARKET LAB 共通スタイル（index.html から切り出し。記事ページも使う） */
:root {
  --bg: #fcfcfa;
  --bg-alt: #f4f4f0;
  --bg-nav: rgba(252, 252, 250, 0.88);
  --text: #1a1a18;
  --muted: #6b6b66;
  --line: #e3e3de;
  --accent: #1a1a18;
  --on-accent: #fcfcfa;
  --shadow: 0 10px 30px rgba(26, 26, 24, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --bg-alt: #1b1b1a;
    --bg-nav: rgba(20, 20, 19, 0.85);
    --text: #ecebe6;
    --muted: #9a9a93;
    --line: #2c2c2a;
    --accent: #ecebe6;
    --on-accent: #141413;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
::selection { background: var(--accent); color: var(--on-accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---- スキップリンク ---- */
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s;
}
.skip:focus { top: 12px; }

/* ---- ナビ ---- */
.nav {
  position: sticky;
  top: 0;
  background: var(--bg-nav);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo svg { width: 22px; height: 22px; flex: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.76rem; }
  .nav-logo span { display: none; }
}

/* ---- ヒーロー ---- */
.hero {
  padding: 128px 0 108px;
  text-align: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero .eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero .logo {
  font-size: clamp(1.9rem, 5.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-wrap: balance;
}
.hero .copy {
  margin-top: 18px;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.hero .lead {
  margin: 28px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 0.95rem;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 40px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cta svg { width: 16px; height: 16px; }
.cta:hover { background: var(--accent); color: var(--on-accent); transform: translateY(-1px); }
.cta.fill { background: var(--accent); color: var(--on-accent); }
.cta.fill:hover { opacity: 0.88; }
.cta.ghost { border-color: var(--line); color: var(--muted); }
.cta.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---- セクション共通 ---- */
section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }
.sec-label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.sec-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 8px 0 44px;
  text-wrap: balance;
}

/* ---- フェードイン ---- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta, .topic, .nav-links a::after { transition: none; }
}

/* ---- プロフィール ---- */
.profile-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}
.profile-mark {
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  background: var(--bg);
}
.profile-body p + p { margin-top: 16px; }
.profile-body .name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.profile-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  letter-spacing: 0.04em;
  background: var(--bg);
  line-height: 1.8;
}
@media (max-width: 560px) {
  .profile-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- 発信内容 ---- */
.topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.topic {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.7s ease;
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--muted); }
.topic .no {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.topic h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.topic p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .topics { grid-template-columns: 1fr; }
}

/* ---- スタンス ---- */
.stance-list { list-style: none; max-width: 640px; }
.stance-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 18px;
  align-items: baseline;
}
.stance-list li:first-child { border-top: 1px solid var(--line); }
.stance-list .k {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.stance-list .v {
  color: var(--muted);
  font-size: 0.92rem;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .stance-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- フォロー ---- */
.follow { text-align: center; }
.follow .sec-title { margin-bottom: 20px; }
.follow .cta { margin-top: 28px; }
.follow .handle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* ---- フッター ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.9;
}
footer .disclaimer { max-width: 560px; margin: 0 auto 14px; text-wrap: pretty; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* =====================================================================
   記事（/articles/）
   ===================================================================== */
.page-head { padding: 72px 0 40px; }
.page-head .sec-title { margin-bottom: 8px; }
.page-head .desc { color: var(--muted); font-size: 0.92rem; }

.article-list { list-style: none; }
.article-list .ym {
  font-size: 0.78rem; letter-spacing: 0.18em; color: var(--muted);
  margin: 40px 0 8px; font-variant-numeric: tabular-nums;
}
.article-list .ym:first-child { margin-top: 0; }
.article-list li.item { border-top: 1px solid var(--line); }
.article-list li.item:last-child { border-bottom: 1px solid var(--line); }
.article-list a.entry {
  display: grid; grid-template-columns: 7em 1fr; gap: 20px; align-items: baseline;
  padding: 20px 0; color: inherit; text-decoration: none; transition: background 0.2s;
}
.article-list a.entry:hover .t { text-decoration: underline; text-underline-offset: 4px; }
.article-list .d { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.article-list .t { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.03em; line-height: 1.7; text-wrap: balance; }
.article-list .l { display: block; margin-top: 4px; color: var(--muted); font-size: 0.88rem; font-weight: 400; line-height: 1.8; text-wrap: pretty; }
@media (max-width: 560px) { .article-list a.entry { grid-template-columns: 1fr; gap: 4px; } }

/* トップの最新記事 */
.latest { display: grid; gap: 0; }
.latest .more { margin-top: 28px; }

/* 記事本文 */
.article { padding: 64px 0 96px; }
.article .container { max-width: 720px; }
.article-head { margin-bottom: 44px; }
.article-head .date { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.article-head h1 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-weight: 700; letter-spacing: 0.04em; line-height: 1.6; margin-top: 10px; text-wrap: balance; }
.article-head .lead { margin-top: 18px; font-size: 1rem; color: var(--muted); text-wrap: pretty; }
.article-head .asof { margin-top: 14px; font-size: 0.78rem; color: var(--muted); line-height: 1.8; padding: 10px 14px; border-left: 2px solid var(--line); }

.prose { font-size: 0.98rem; line-height: 2.05; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.05em; margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--line); line-height: 1.6; }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.02rem; font-weight: 700; margin-top: 2em; letter-spacing: 0.03em; }
.prose p { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 700; }
.prose em { font-style: normal; border-bottom: 1px solid var(--muted); }
.prose blockquote { border-left: 2px solid var(--line); padding: 4px 18px; color: var(--muted); font-size: 0.94rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose a { color: inherit; text-underline-offset: 3px; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.86em; background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; }

.prose .table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.88rem; line-height: 1.7; font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.prose th { font-weight: 700; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; border-bottom-width: 2px; }
.prose td:nth-child(n+2), .prose th:nth-child(n+2) { text-align: right; }
.prose td:last-child, .prose th:last-child { white-space: normal; text-align: left; }
.prose .up { color: #1f7a3a; } .prose .down { color: #b83232; }
@media (prefers-color-scheme: dark) { .prose .up { color: #5fc27a; } .prose .down { color: #f07a7a; } }

.prose .verdict { display: inline-block; font-size: 0.74rem; letter-spacing: 0.12em; padding: 2px 10px; border: 1px solid currentColor; border-radius: 999px; margin-right: 8px; vertical-align: middle; }
.prose .verdict.hit { color: #1f7a3a; } .prose .verdict.partial { color: #a06a00; } .prose .verdict.miss { color: #b83232; }
@media (prefers-color-scheme: dark) { .prose .verdict.hit { color: #5fc27a; } .prose .verdict.partial { color: #e0b050; } .prose .verdict.miss { color: #f07a7a; } }

.prose .scenario { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: var(--bg-alt); }
.prose .scenario + .scenario { margin-top: 12px; }
.prose .scenario .sc-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-weight: 700; letter-spacing: 0.03em; }
.prose .scenario .sc-prob { color: var(--muted); font-size: 0.85rem; white-space: nowrap; font-weight: 400; }
.prose .scenario .sc-range { margin-top: 4px; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.prose .scenario p { margin-top: 8px; font-size: 0.92rem; }

.article-foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-foot .disclaimer { font-size: 0.78rem; color: var(--muted); line-height: 1.9; text-wrap: pretty; }
.article-foot .share { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.article-nav { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 0.88rem; }
.article-nav a { color: var(--muted); text-decoration: none; display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.2s, color 0.2s; }
.article-nav a:hover { border-color: var(--accent); color: var(--text); }
.article-nav .lbl { display: block; font-size: 0.72rem; letter-spacing: 0.14em; }
.article-nav .next { text-align: right; }
@media (max-width: 560px) { .article-nav { grid-template-columns: 1fr; } }
