/* 自動売買の検証ログ — 2026-09-27 全面リニューアル
   ブランド: X のアイコン・ヘッダーと同じ藍色（#4f4fd8）＋ミント＋マーカーの黄色。
   比較メディアの定番の作り（帯のナビ・2カラム・バナー型アイキャッチ・色つき見出し・結論ボックス）にそろえる。 */
:root {
  --brand: #4f4fd8;
  --brand-deep: #2f2d9e;
  --brand-ink: #3a38c4;
  --brand-soft: #eeeefe;
  --mint: #22b98a;
  --mint-soft: #e3f7ef;
  --marker: #ffe25c;
  --cta: #f26b1d;
  --cta-deep: #d4560d;
  --loss: #e0435e;
  --bg: #f4f5fa;
  --card: #ffffff;
  --text: #1c2033;
  --muted: #5b6078;
  --line: #e2e4ef;
  --warn-soft: #fff6dc;
  --shadow: 0 1px 2px rgba(20, 22, 60, .06), 0 4px 16px rgba(20, 22, 60, .06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7373f0; --brand-deep: #2a2980; --brand-ink: #a9a9ff; --brand-soft: #23244a;
    --mint: #3fd6a0; --mint-soft: #16332a; --marker: #6b5a12;
    --bg: #10111f; --card: #191a2e; --text: #e8e9f5; --muted: #a3a6c2; --line: #2c2e4c;
    --warn-soft: #2e2818; --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
:root[data-theme="dark"] {
  --brand: #7373f0; --brand-deep: #2a2980; --brand-ink: #a9a9ff; --brand-soft: #23244a;
  --mint: #3fd6a0; --mint-soft: #16332a; --marker: #6b5a12;
  --bg: #10111f; --card: #191a2e; --text: #e8e9f5; --muted: #a3a6c2; --line: #2c2e4c;
  --warn-soft: #2e2818; --shadow: 0 1px 2px rgba(0,0,0,.3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px; line-height: 1.9; font-feature-settings: "palt" 0;
}
a { color: var(--brand-ink); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.container { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .container { padding-inline: 24px; } }
.ico { flex: none; vertical-align: -3px; }
.small { font-size: .82rem; color: var(--muted); line-height: 1.7; }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--card); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-weight: 900; font-size: 1.3rem; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--brand-ink); }
.brand-tag { font-size: .72rem; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; align-items: center; gap: 14px; font-size: .85rem; font-weight: 700; flex: none; }
.topbar-links a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.topbar-links .x-link { background: var(--text); color: var(--card); padding: 6px 14px; border-radius: 999px; }
@media (max-width: 719px) {
  .brand-tag, .topbar-links a:not(.x-link) { display: none; }
  .brand-name { font-size: 1.12rem; }
  .topbar-links .x-link { padding: 5px 11px; font-size: .78rem; }
}
.navband { background: linear-gradient(90deg, var(--brand-deep), #4f4fd8); }
.navband-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.navband-inner::-webkit-scrollbar { display: none; }
.navband a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap;
  padding: 11px 14px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 3px solid transparent;
}
.navband a:hover { background: rgba(255,255,255,.1); }
.navband a[aria-current="page"] { border-bottom-color: #5ee0b0; background: rgba(255,255,255,.08); }
.draft-banner { background: var(--warn-soft); text-align: center; padding: 6px; font-size: .82rem; }

/* ---------- 2カラム ---------- */
.layout { display: grid; gap: 32px; padding-block: 28px 56px; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; } }
.main { min-width: 0; }

/* ---------- ボタン・ラベル ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff;
  padding: 11px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; border: 0; line-height: 1.4;
}
.btn:hover { filter: brightness(1.08); }
.btn.cta { background: var(--cta); box-shadow: 0 3px 0 var(--cta-deep); }
.btn.ghost { background: transparent; color: var(--brand-ink); border: 1.5px solid currentColor; }
.btn.ghost-white { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn.small { padding: 6px 14px; font-size: .8rem; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px 1px 8px; text-decoration: none; line-height: 1.7;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }
.pill-badge { display: inline-block; font-size: .74rem; font-weight: 700; background: var(--marker); color: #1c2033; border-radius: 999px; padding: 1px 10px; line-height: 1.7; }
.pill-pr { display: inline-block; font-size: .74rem; font-weight: 700; border: 1px solid var(--muted); color: var(--muted); border-radius: 4px; padding: 0 6px; }
.pill-draft { display: inline-block; font-size: .74rem; font-weight: 700; background: var(--warn-soft); border-radius: 4px; padding: 0 8px; }

/* ---------- トップ: ヒーロー ---------- */
.hero {
  color: #fff; position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(160deg, #5b5ce6 0%, #3432a8 100%);
}
.hero::after { /* 値動きの線（赤い下落を1か所） */
  content: ""; position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 95 L90 88 L180 92 L270 70 L360 76 L450 55 L540 62 L630 40 L700 88 L790 70 L880 76 L970 50 L1060 56 L1200 30' fill='none' stroke='white' stroke-opacity='.55' stroke-width='3'/%3E%3Cpath d='M630 40 L700 88' stroke='%23ff5470' stroke-width='4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero-inner { display: grid; gap: 28px; padding-block: 36px 56px; position: relative; z-index: 1; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; padding-block: 48px 72px; } }
.hero-kicker { display: inline-block; margin: 0 0 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 2px 14px; font-size: .82rem; font-weight: 700; }
.hero-title { margin: 0; font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.3; font-weight: 900; letter-spacing: .01em; }
.hero-title mark { background: linear-gradient(transparent 62%, rgba(255,226,92,.95) 62%); color: #fff; padding: 0 .06em; }
.hero-sub { margin: 16px 0 0; max-width: 36em; color: #e3e3ff; font-size: .98rem; }
.hero-stats { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.hero-stats li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 12px; }
.hero-stats strong { display: block; font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 900; line-height: 1.2; }
.hero-stats small { font-size: .78rem; margin-left: 2px; }
.hero-stats span { display: block; font-size: .74rem; color: #d9d9ff; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.hero-card { background: var(--card); color: var(--text); border-radius: 18px; padding: 20px 22px; box-shadow: 0 16px 40px rgba(10, 8, 60, .35); }
.hero-card-title { margin: 6px 0 0; font-weight: 700; color: var(--muted); font-size: .9rem; }
.hero-card-figure { margin: 0 0 10px; font-weight: 800; font-size: 1.15rem; }
.hero-card-figure strong { font-size: 3rem; line-height: 1; color: var(--brand-ink); margin-right: 4px; }
.hero-card-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; margin-top: 6px; }
.live { margin: 0; font-size: .78rem; font-weight: 700; color: var(--mint); display: flex; align-items: center; gap: 6px; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live .dot { animation: none; } }
.gauge { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.gauge li { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .78rem; }
.gauge li.yes { background: var(--brand); color: #fff; }
.gauge li.no { border: 2px solid var(--line); color: var(--muted); }
.gauge.mini li { font-size: .62rem; }

/* ---------- セクション見出し ---------- */
.sec-h { font-size: 1.3rem; font-weight: 900; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.sec-h::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--brand), transparent); opacity: .35; }
.sec-h span { position: relative; padding-left: 14px; }
.sec-h span::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: var(--brand); }
section + section { margin-top: 44px; }

/* ---------- トップ: 目的から探す ---------- */
.purpose-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .purpose-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.purpose-grid a {
  display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--radius); padding: 16px;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); border-top: 4px solid var(--cat); transition: transform .15s;
}
.purpose-grid a:hover { transform: translateY(-2px); }
.purpose-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--cat); margin-bottom: 10px; }
.purpose-name { font-weight: 800; line-height: 1.45; }
.purpose-desc { font-size: .8rem; color: var(--muted); line-height: 1.6; margin-top: 4px; flex: 1; }
.purpose-count { font-size: .78rem; font-weight: 700; color: var(--brand-ink); margin-top: 10px; display: inline-flex; align-items: center; gap: 2px; }

/* ---------- 記事カード ---------- */
.feature {
  display: grid; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--text); margin-bottom: 16px;
}
@media (min-width: 720px) { .feature { grid-template-columns: 1.15fr 1fr; } }
.feature img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.feature-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; justify-content: center; }
.feature-title { font-weight: 800; font-size: 1.15rem; line-height: 1.55; }
.feature-desc { font-size: .86rem; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature .pill { align-self: flex-start; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card {
  display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s;
}
.card:hover, .feature:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 22, 60, .12); }
.thumb { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px 16px; flex: 1; }
.card-title { font-weight: 800; line-height: 1.55; font-size: .95rem; }
.card-desc { font-size: .8rem; color: var(--muted); line-height: 1.65; }
.card-meta { font-size: .74rem; color: var(--muted); margin-top: auto; }

/* ---------- トップ: 約束 ---------- */
.promise-list { list-style: none; counter-reset: p; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
@media (min-width: 720px) { .promise-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promise-list li { counter-increment: p; background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: relative; }
.promise-list li::before { content: counter(p); position: absolute; top: -10px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: .9rem; }
.promise-list strong { display: block; margin-top: 6px; }
.promise-list span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.7; margin-top: 4px; }

/* ---------- カテゴリの見出し帯 ---------- */
.cat-hero { color: #fff; background:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(160deg, #5b5ce6, #3432a8); padding-block: 22px 28px; }
.cat-hero h1 { margin: 6px 0 4px; font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 900; display: flex; align-items: center; gap: 12px; }
.cat-hero-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cat); border: 2px solid rgba(255,255,255,.6); }
.cat-hero p { margin: 0; color: #e3e3ff; max-width: 44em; }
.cat-hero .cat-hero-count { margin-top: 8px; font-weight: 700; font-size: .85rem; }
.breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24em; }
.breadcrumb.on-dark, .breadcrumb.on-dark a { color: #d9d9ff; }

/* ---------- 記事 ---------- */
.article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 16px 28px; }
@media (min-width: 720px) { .article { padding: 32px 40px 40px; } }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.article h1 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.5; margin: 0 0 12px; font-weight: 900; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--muted); font-size: .8rem; margin: 0 0 16px; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.meta-author img { border-radius: 50%; }
.eyecatch { display: block; width: 100%; border-radius: 12px; aspect-ratio: 1200 / 630; object-fit: cover; }
.pr-label { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 10px 14px; font-size: .85rem; font-weight: 600; border-radius: 0 8px 8px 0; }
.writer { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 18px 0; }
.writer img { border-radius: 50%; flex: none; background: var(--brand-soft); }
.writer p { margin: 0; }
.writer-role { font-size: .7rem; font-weight: 700; color: var(--muted); }
.writer-name { font-weight: 800; font-size: .95rem; }
.writer-name span { font-weight: 400; font-size: .76rem; color: var(--muted); }
.writer-bio { font-size: .8rem; color: var(--muted); line-height: 1.6; }

.keystats { background: var(--brand-soft); border-radius: 12px; padding: 14px; margin: 18px 0; }
.keystats-h { margin: 0 0 10px; font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 6px; color: var(--brand-ink); }
.keystats-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.keystat { background: var(--card); border-radius: 10px; padding: 12px 14px; border-bottom: 3px solid var(--brand); }
.keystat-value { margin: 0; font-size: 1.6rem; font-weight: 900; line-height: 1.25; color: var(--brand-ink); }
.keystat-label { margin: 4px 0 0; font-size: .76rem; color: var(--muted); line-height: 1.55; }

.toc { border: 2px solid var(--brand-soft); border-radius: 12px; padding: 0; margin: 22px 0; overflow: hidden; }
.toc-title { margin: 0; background: var(--brand-soft); padding: 8px 16px; font-weight: 800; display: flex; align-items: center; gap: 6px; color: var(--brand-ink); }
.toc ol { margin: 0; padding: 10px 16px 12px 2.4em; font-size: .9rem; }
.toc li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.toc li:last-child { border-bottom: 0; }
.toc li::marker { color: var(--brand-ink); font-weight: 800; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--brand-ink); text-decoration: underline; }

/* 本文 */
.body > :first-child { margin-top: 0; }
.body h2 {
  font-size: 1.28rem; line-height: 1.5; font-weight: 800; color: #fff; margin: 2.4em -4px 1em; padding: 12px 18px;
  background: linear-gradient(100deg, var(--brand-deep), #4f4fd8); border-radius: 10px; position: relative;
}
.body h2::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 5px; border-radius: 0 3px 3px 0; background: #5ee0b0; }
.body h3 { font-size: 1.1rem; font-weight: 800; margin: 2em 0 .8em; padding: 6px 12px; border-left: 5px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; }
.body h4 { font-size: 1rem; margin: 1.6em 0 .6em; padding-bottom: 4px; border-bottom: 2px dotted var(--brand); display: inline-block; }
.body p { margin: 1em 0; }
.body strong { background: linear-gradient(transparent 62%, var(--marker) 62%); font-weight: 800; }
.body h2 strong, .body h3 strong, .body th strong { background: none; }
.body ul, .body ol { padding-left: 1.5em; }
.body li { margin: .3em 0; }
.body li::marker { color: var(--brand-ink); }
.body img { display: block; margin: 1.4em auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.body blockquote { margin: 1.2em 0; padding: 12px 18px; background: var(--bg); border-left: 4px solid var(--line); color: var(--muted); border-radius: 0 8px 8px 0; }
.body hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }

/* 結論ボックス（本文の最初の .point） */
.body .point { position: relative; border: 2px solid var(--brand); border-radius: 12px; padding: 22px 18px 6px; margin: 28px 0 22px; background: var(--card); }
.body .point::before { content: "この記事の結論"; position: absolute; top: -13px; left: 14px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; padding: 1px 12px; border-radius: 999px; }
.body .point p { margin: 0 0 14px; }
.body .caution { position: relative; border: 2px solid #f0b400; border-radius: 12px; padding: 20px 18px 6px; margin: 26px 0; background: var(--warn-soft); }
.body .caution::before { content: "注意"; position: absolute; top: -13px; left: 14px; background: #f0b400; color: #1c2033; font-size: .78rem; font-weight: 800; padding: 1px 12px; border-radius: 999px; }

/* 表 */
.table-scroll { overflow-x: auto; margin: 1.4em 0; border-radius: 10px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.table-scroll table, .body table { border-collapse: collapse; width: 100%; font-size: .88rem; line-height: 1.6; }
.body th, .body td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.body th + th, .body td + td { border-left: 1px solid var(--line); }
.body thead th { background: var(--brand-deep); color: #fff; font-weight: 700; white-space: nowrap; border-left-color: rgba(255,255,255,.2); }
.body tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.body tbody td:first-child { font-weight: 700; background: var(--brand-soft); min-width: 7em; }
.body tbody tr:last-child td { border-bottom: 0; }
.body td { font-variant-numeric: tabular-nums; }
.body td.mk { text-align: center; font-size: 1.2rem; font-weight: 900; }
.mk-best { color: #d9480f; } .mk-good { color: var(--mint); } .mk-fair { color: #b08400; } .mk-bad { color: var(--muted); }
.body table.fit thead th:first-child { background: var(--mint); }
.body table.fit thead th:last-child { background: #8a8fa8; }
.body table.fit tbody td:first-child { background: var(--mint-soft); font-weight: 600; }
.body table.fit td { width: 50%; }
.body table.fit td::before { font-weight: 900; margin-right: 6px; }
.body table.fit td:first-child::before { content: "○"; color: var(--mint); }
.body table.fit td:last-child::before { content: "×"; color: var(--muted); }

/* ブログカード */
.blogcard { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 1.2em 0; text-decoration: none; color: var(--text); background: var(--card); position: relative; }
.blogcard:hover { border-color: var(--brand); }
.blogcard img { width: 150px; flex: none; border-radius: 8px; aspect-ratio: 1200 / 630; object-fit: cover; margin: 0; border: 0; }
.blogcard-label { display: inline-block; font-size: .7rem; font-weight: 800; color: #fff; background: var(--mint); border-radius: 4px; padding: 0 8px; margin-bottom: 4px; }
.blogcard-title { display: block; font-weight: 700; font-size: .9rem; line-height: 1.55; }
@media (max-width: 500px) { .blogcard img { width: 110px; } .blogcard-title { font-size: .84rem; } }

.data-dl { display: flex; gap: 10px; align-items: flex-start; background: var(--mint-soft); border-radius: 10px; padding: 12px 14px; font-size: .88rem; margin-top: 2em; }
.data-dl .ico { color: var(--mint); margin-top: 4px; }
.data-dl small { color: var(--muted); }
.evidence { margin-top: 1.6em; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.evidence-h { font-weight: 800; color: var(--text); margin: 0; }
.evidence ul { padding-left: 1.2em; word-break: break-all; margin: 6px 0; }
.author { display: flex; gap: 16px; align-items: flex-start; background: var(--brand-soft); border-radius: 14px; padding: 18px; margin-top: 2em; }
.author img { border-radius: 50%; flex: none; border: 3px solid var(--card); }
.author p { margin: 0; }
.author-title { font-size: .72rem; color: var(--brand-ink); font-weight: 800; }
.author-name { font-weight: 900; font-size: 1.1rem; }
.author-role { font-weight: 400; font-size: .76rem; color: var(--muted); margin-left: 8px; }
.author-bio { font-size: .84rem; color: var(--muted); margin-top: 4px !important; line-height: 1.7; }
.author-links { font-size: .82rem; margin-top: 8px !important; display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; }
@media (max-width: 500px) { .author img { width: 64px; height: 64px; } }
.disclaimer { margin-top: 1.4em; padding: 12px 14px; background: var(--bg); border-radius: 10px; font-size: .78rem; color: var(--muted); line-height: 1.7; }
.related { margin-top: 36px; }
.lead { color: var(--muted); }

/* ---------- サイドバー ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.side-h { margin: -16px -16px 14px; padding: 10px 16px; font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--brand-soft); color: var(--brand-ink); }
.profile { text-align: center; }
.profile-img { border-radius: 50%; border: 4px solid var(--brand-soft); display: block; margin: 0 auto 6px; }
.profile-name { margin: 0; font-weight: 900; font-size: 1.1rem; }
.profile-bio { font-size: .8rem; color: var(--muted); line-height: 1.7; text-align: left; margin: 8px 0 12px; }
.profile-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0; }
.side-paper-figure { margin: 4px 0 8px; font-weight: 700; }
.side-paper-figure strong { font-size: 2.2rem; color: var(--brand-ink); line-height: 1; margin-right: 2px; }
.side-paper-figure span { font-size: .85rem; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank-list a { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; text-decoration: none; color: var(--text); position: relative; }
.rank-list img { width: 110px; border-radius: 6px; aspect-ratio: 1200 / 630; object-fit: cover; }
.rank-title { font-size: .8rem; font-weight: 700; line-height: 1.55; }
.rank-no { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--card); font-size: .75rem; font-weight: 900; display: grid; place-items: center; z-index: 1; }
.rank-list li:nth-child(1) .rank-no { background: #d4a106; color: #fff; }
.rank-list li:nth-child(2) .rank-no { background: #8e96a8; color: #fff; }
.rank-list li:nth-child(3) .rank-no { background: #b87333; color: #fff; }
.rank-list a:hover .rank-title { color: var(--brand-ink); }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .88rem; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cat-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--cat); color: #fff; flex: none; }
.side-cats .count { margin-left: auto; font-size: .74rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 0 8px; }
.side-toc { position: sticky; top: 16px; }
.side-toc ol { margin: 0; padding-left: 1.4em; font-size: .82rem; line-height: 1.6; }
.side-toc li { padding: 4px 0; }
.side-toc li::marker { color: var(--brand-ink); font-weight: 800; }
.side-toc a { color: var(--text); text-decoration: none; }
.side-toc a:hover { color: var(--brand-ink); }
@media (max-width: 999px) { .side-toc { display: none; } }

/* ---------- ペーパー・固定ページ ---------- */
.paper-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 1.5em 0; }
.stats { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.stats li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 2px 0; font-size: .92rem; }
.stats .v { font-variant-numeric: tabular-nums; font-weight: 700; }
.judges { list-style: none; padding: 0 !important; font-size: .9rem; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.judges li { background: var(--brand-soft); border-radius: 8px; padding: 6px 10px; margin: 0; }
.judges .no { background: var(--bg); color: var(--muted); }
.table-wrap { overflow-x: auto; }
.contact-form { display: grid; gap: 6px; max-width: 560px; margin-top: 1.5em; }
.contact-form label { font-weight: 700; font-size: .9rem; margin-top: 8px; }
.contact-form input, .contact-form textarea { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-form button { justify-self: start; cursor: pointer; margin-top: 6px; }
.contact-form button:disabled { opacity: .6; cursor: wait; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 700; color: var(--brand-ink); }

/* ---------- フッター ---------- */
.site-footer { background: #17163f; color: #c9cae6; font-size: .84rem; }
.footer-grid { display: grid; gap: 24px; padding-block: 36px 20px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand-footer { color: #fff; }
.brand-footer .brand-name em { color: #9d9dff; }
.footer-lead { line-height: 1.8; margin: 10px 0 0; max-width: 30em; }
.site-footer nav { display: flex; flex-direction: column; gap: 4px; }
.footer-h { color: #fff; font-weight: 800; margin: 0 0 4px; }
.site-footer nav a { color: #c9cae6; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 14px 24px; font-size: .76rem; }
.footer-bottom p { margin: 4px 0; }
.sidebar section + section, .sidebar nav { margin-top: 0; }
@media (max-width: 719px) {
  .hero-stats { gap: 6px; }
  .hero-stats li { padding: 8px; }
  .hero-stats strong { font-size: 1.15rem; white-space: nowrap; }
  .hero-stats small { font-size: .62rem; }
  .hero-stats span { font-size: .66rem; }
  .keystats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keystat { padding: 10px; }
  .keystat-value { font-size: 1.3rem; }
  .writer { align-items: flex-start; }
}
@media (max-width: 500px) { .writer-name span { display: block; } }
@media (max-width: 719px) { .body thead th { white-space: normal; } .body th, .body td { padding: 8px 9px; } .body tbody td:first-child { min-width: 5.5em; } .table-scroll table { font-size: .82rem; } }
.meta-check { display: inline-flex; align-items: center; gap: 3px; color: var(--mint); font-weight: 700; }
