  :root{
    --radius-lg: 8px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --font-display: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(.2,.8,.2,1);
  }

  /* ===== THEME: GREEN ===== */
  body[data-theme="green"]{
    --hue: 150; --sat: 32%;
    --bg-sat: 12%; --bg-sat-soft: 6%; --bg-sat-strong: 14%;
    --bg-l1: 95%; --bg-l2: 96%; --grad-top: 79%; --grad-mid: 96%;
    --page-bg: #EFF5F1; --popular-bg: #4C8868; --footer-bg: #1E3528; --footer-menu-bg: #2F8F5C;
  }
  body[data-theme="green"].dark{
    --hue: 140; --sat: 38%;
    --bg-sat: 22%; --bg-sat-soft: 16%; --bg-sat-strong: 20%;
    --bg-l1: 24%; --bg-l2: 15%; --grad-top: 15%; --grad-mid: 21%;
    --page-bg: #16241A; --popular-bg: #1E4028; --footer-bg: #0B160F;
  }

  /* ===== THEME: BLUE ===== */
  body[data-theme="blue"]{
    --hue: 213; --sat: 60%;
    --bg-sat: 18%; --bg-sat-soft: 8%; --bg-sat-strong: 22%;
    --bg-l1: 95%; --bg-l2: 96%; --grad-top: 78%; --grad-mid: 96%;
    --page-bg: #EEF2FB; --popular-bg: #3E658B; --footer-bg: #1B2B3C; --footer-menu-bg: #235A8F;
  }
  body[data-theme="blue"].dark{
    --hue: 222; --sat: 50%;
    --bg-sat: 34%; --bg-sat-soft: 24%; --bg-sat-strong: 32%;
    --bg-l1: 24%; --bg-l2: 15%; --grad-top: 15%; --grad-mid: 21%;
    --page-bg: #121A2E; --popular-bg: #1D3050; --footer-bg: #0A0F1D;
  }

  /* ===== THEME: GRAY ===== */
  body[data-theme="gray"]{
    --hue: 210; --sat: 20%;
    --bg-sat: 5%; --bg-sat-soft: 2%; --bg-sat-strong: 8%;
    --bg-l1: 95%; --bg-l2: 96%; --grad-top: 81%; --grad-mid: 96%;
    --page-bg: #F1F2F4; --popular-bg: #5B636B; --footer-bg: #272B2E; --footer-menu-bg: #4B5763;
  }
  body[data-theme="gray"].dark{
    --hue: 212; --sat: 24%;
    --bg-sat: 12%; --bg-sat-soft: 8%; --bg-sat-strong: 10%;
    --bg-l1: 24%; --bg-l2: 16%; --grad-top: 16%; --grad-mid: 22%;
    --page-bg: #1C1E21; --popular-bg: #2A2E33; --footer-bg: #121416;
  }

  body{
    --glass-bg: hsl(var(--hue) 6% 99% / .92);
    --glass-border: hsl(var(--hue) 10% 85%);
    --glass-shadow: hsl(var(--hue) 50% 25% / .16);
    --text-main: hsl(calc(var(--hue) + 10) 25% 15%);
    --text-sub: hsl(calc(var(--hue) + 10) 12% 40%);
    --accent: hsl(var(--hue) var(--sat) 46%);
    --accent-soft: hsl(var(--hue) var(--sat) 46% / .13);
    --accent-strong: hsl(var(--hue) var(--sat) 36%);
    --gold: #C79A3E;
    --gold-soft: #C79A3E22;
    --hover-bg: var(--accent); --hover-ink: #fff;   /* メニュー・ボタンのホバー/選択中の、面と文字の色 */
  }
  body.dark{
    --glass-bg: hsl(var(--hue) calc(var(--bg-sat-strong) * 0.5) 12% / .94);
    --glass-border: hsl(var(--hue) calc(var(--bg-sat-strong) * 0.4) 26%);
    --glass-shadow: hsl(0 0% 0% / .5);
    --text-main: hsl(calc(var(--hue) - 10) 14% 84%);
    --text-sub: hsl(calc(var(--hue) - 10) 12% 68%);
    --accent: hsl(var(--hue) var(--sat) 30%);
    --accent-soft: hsl(var(--hue) var(--sat) 30% / .22);
    --accent-strong: hsl(var(--hue) var(--sat) 56%);
    --gold: #E8C36B;
    --gold-soft: #E8C36B22;
    /* ダークモードは、アクセントカラーを暗い背景に薄く混ぜた面＋明るい文字（真っ白にしない） */
    --hover-bg: color-mix(in srgb, var(--accent-strong) 30%, var(--page-bg));
    --hover-ink: color-mix(in srgb, var(--accent-strong) 50%, #fff);
    --navy-surface: color-mix(in srgb, hsl(var(--hue) 70% 55%) 20%, var(--page-bg));   /* ダークモードのカード・帯の、ネイビー系の面 */
    --header-bg: hsl(var(--hue) 40% 16%);   /* ダークモードのヘッダー：ページ(約12%)より少し明るくして、見分けられるようにする */
  }

  *{ box-sizing:border-box; margin:0; padding:0; }

  body{
    font-family: var(--font-body);
    color: var(--text-main);
    min-height:100vh;
    background-color: var(--page-bg);
    transition: background-color .5s var(--ease), color .4s var(--ease);
  }

  .wrap{ max-width:1142px; margin:0 auto; padding:0 24px; }

  .glass{
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .08);
    transition: background .5s var(--ease), border .5s var(--ease), box-shadow .5s var(--ease);
  }
  body.dark .glass{ box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .35); }
  
  /* ---- Header ---- */
  header{
    --ctl-w: 72px;   /* 右端のボタン1つの幅（画面の幅に応じて変わる） */
    width: 100%;
    height: 90px;
    padding: 0;
    position: relative;
    background-color: #ffffff;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 14px -6px hsl(0 0% 0% / .12);
    display:flex; align-items:center;
  }
  body.dark header{
    background-color: var(--header-bg);
    box-shadow: 0 4px 14px -6px hsl(0 0% 0% / .4);
  }
  .header-inner{ display:flex; align-items:center; justify-content:space-between; gap:32px; position:relative; z-index:1; width:100%; align-self:stretch; /* メニューをヘッダーの高さいっぱいに広げるため、上下いっぱいに伸ばす */ }
  .logo{ display:flex; align-items:center; gap:14px; font-family: 'Noto Sans JP', sans-serif; font-weight:900; font-size:2.1rem; letter-spacing:.03em; flex-shrink:0; }
  .logo-link{ display:block; width:220px; height:90px; background-image:url('logo.png'); background-size:contain; background-repeat:no-repeat; background-position:left center; }
  body.dark .logo-link{ background-image:url('logo-dark.png'); }

  .header-right{ display:flex; flex-direction:column; align-items:flex-end; gap:14px; min-width:0; flex:1; align-self:stretch; }

  /* ダークモード・検索のボタン：メニューの列とは別に、ヘッダー全体(画面の幅いっぱい)の右端に置く。ヘッダーの高さいっぱいの四角 */
  .search-area{ position:absolute; top:0; right:0; bottom:0; z-index:50; display:flex; flex-direction:row; align-items:stretch; gap:0; border-left:1px solid var(--glass-border); }
  .theme-controls{ display:flex; align-items:stretch; gap:0; box-sizing:border-box; }

  /* ---- ヘッダー内検索：アイコン→クリックで展開 ---- */
  .topbar-search{ position:relative; display:flex; align-items:stretch; align-self:stretch; }
  .topbar-search-toggle{
    display:flex; align-items:center; justify-content:center;
    width:var(--ctl-w); height:100%; border:none; border-radius:0; cursor:pointer;
    background: transparent; color: var(--text-sub); transition: background .18s, color .18s;
    font-family:inherit; font-size:1rem; font-weight:600;
  }
  .topbar-search-toggle svg{ width:18px; height:18px; }
  .topbar-search-toggle:hover, .topbar-search.is-open .topbar-search-toggle{ background: var(--hover-bg); color: var(--hover-ink); }
  .topbar-search-box{
    position:absolute; top:calc(100% + 1px); right:0; z-index:20;
    display:flex; align-items:center; width:260px;
    background: var(--glass-bg); border:1px solid var(--glass-border); border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px -6px hsl(0 0% 0% / .25);
    opacity:0; visibility:hidden; transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
  }
  .topbar-search.is-open .topbar-search-box{ opacity:1; visibility:visible; transform: translateY(0); }
  .topbar-search-box input{
    flex:1; min-width:0; border:none; background:transparent; padding:9px 12px;
    font-size:.85rem; color: var(--text-main); outline:none;
  }
  .topbar-search-box .search-btn{
    flex-shrink:0; border:none; background:transparent; cursor:pointer;
    width:36px; height:36px; display:flex; align-items:center; justify-content:center;
    color: var(--text-sub);
  }
  .topbar-search-box .search-btn:hover{ color: var(--accent-strong); }

  
  /* ダークモード切替：メニューと同じく、ヘッダーの高さいっぱいの四角。ホバーで、メニューと同じ色(--hover-bg / --hover-ink) */
  .orb-btn{ width:var(--ctl-w); align-self:stretch; font-family:inherit; font-size:1rem; font-weight:600; border:none; border-radius:0; cursor:pointer;
    background: transparent; color: var(--text-sub); box-shadow:none;
    position:relative; transition: background .2s var(--ease), color .2s var(--ease);
    display:flex; align-items:center; justify-content:center; }
  .orb-btn:hover{ background: var(--hover-bg); color: var(--hover-ink); }
  .orb-btn svg{ width:18px; height:18px; position:relative; z-index:1; color:currentColor; }
  .orb-btn .icon-moon, .mobile-nav-dark-toggle .icon-moon{ display:none; }
  body.dark .orb-btn .icon-sun, body.dark .mobile-nav-dark-toggle .icon-sun{ display:none; }
  body.dark .orb-btn .icon-moon, body.dark .mobile-nav-dark-toggle .icon-moon{ display:block; }

  .search-box{ display:flex; align-items:center; width:200px; height:40px; box-sizing:border-box; background: hsl(0 0% 100% / .8); border:1px solid var(--glass-border); border-radius: var(--radius-sm); overflow:hidden; min-width:0; flex-shrink:1; }
  body.dark .search-box{ background: hsl(0 0% 100% / .06); }
  .search-box input{
    background:transparent; border:none; outline:none; height:100%; box-sizing:border-box;
    padding:0 6px 0 12px; font-family: var(--font-body); font-size:.85rem;
    color: var(--text-main); width:100%; min-width:60px; flex:1;
  }
  .search-box input::placeholder{ color: var(--text-sub); }
  .search-btn{
    background: var(--accent); border:none; color:#fff;
    width:36px; height:100%; cursor:pointer; font-size:.88rem;
    display:flex; align-items:center; justify-content:center;
  }
  .search-btn svg{ width:16px; height:16px; flex-shrink:0; }

  /* ---- ハンバーガーメニュー（スマホ用） ---- */
  .mobile-menu-btn{
    display:none; align-items:center; justify-content:center;
    width:36px; height:36px; flex-shrink:0;
    background:transparent; border:1px solid var(--glass-border); border-radius:6px;
    color: var(--text-main); cursor:pointer;
  }
  .mobile-menu-btn svg{ width:20px; height:20px; }
  .mobile-menu-btn:hover{ background: hsl(0 0% 0% / .04); }
  body.dark .mobile-menu-btn:hover{ background: hsl(0 0% 100% / .06); }

  /* 目次用ハンバーガー（左上）。ヘッダーの中に収めている（スマホ幅では、ヘッダーごと、
     下スクロールで隠れ、上スクロールで出る。下の「スマホ幅のヘッダー」を参照）。
     TOCがあるページだけJSで .is-enabled を付けて表示する。
     サイズ・見た目は右側の .mobile-menu-btn と完全に揃えている。 */
  .mobile-toc-btn{
    display:none; align-items:center; justify-content:center;
    width:36px; height:36px; flex-shrink:0;
    background:transparent; border:1px solid var(--glass-border); border-radius:6px;
    color: var(--text-main); cursor:pointer;
  }
  .mobile-toc-btn svg{ width:20px; height:20px; }
  .mobile-toc-btn:hover{ background: hsl(0 0% 0% / .04); }
  body.dark .mobile-toc-btn:hover{ background: hsl(0 0% 100% / .06); }

  .mobile-nav-overlay{
    position:fixed; inset:0; background: hsl(0 0% 0% / .5);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity:0; pointer-events:none; transition: opacity .25s var(--ease);
    z-index:998;
  }
  .mobile-nav-overlay.open{ opacity:1; pointer-events:auto; }

  .mobile-nav-drawer{
    position:fixed; top:0; right:0; height:100%; width:min(320px, 85vw);
    background: var(--glass-bg); box-shadow: -6px 0 24px hsl(0 0% 0% / .25);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateX(100%); visibility:hidden; transition: transform .3s var(--ease), visibility 0s linear .3s;
    z-index:999; overflow-y:auto; box-sizing:border-box; padding:20px;
    display:flex; flex-direction:column; gap:22px;
  }
  .mobile-nav-drawer.open{ visibility:visible; transform: translateX(0); transition: transform .3s var(--ease); }

  .mobile-nav-drawer-head{ display:flex; align-items:center; justify-content:space-between; }
  .mobile-nav-drawer-title{ font-family: var(--font-body); font-weight:700; font-size:1.05rem; }
  .mobile-nav-close{
    display:flex; align-items:center; justify-content:center;
    width:32px; height:32px; background:transparent; border:none; color: var(--text-sub); cursor:pointer;
  }
  .mobile-nav-close svg{ width:18px; height:18px; }

  .mobile-nav-links{ display:flex; flex-direction:column; }
  .mobile-nav-links .subnav-item{
    display:flex; align-items:center; gap:10px;
    padding:12px 6px; text-decoration:none; color: var(--text-main);
    font-size:.92rem; font-weight:600;
    border-top:1px solid var(--glass-border);
  }
  .mobile-nav-links .subnav-item:first-child{ border-top:none; }
  .mobile-nav-links .subnav-item svg{ width:18px; height:18px; flex-shrink:0; color: var(--text-sub); }
  .mobile-nav-links .subnav-item.active{ color: var(--accent-strong); }
  .mobile-nav-links .subnav-item.active svg{ color: var(--accent-strong); }

  .mobile-nav-quick-actions{ display:flex; flex-direction:column; gap:8px; }
  .mobile-nav-quick-actions .quick-action-btn{ justify-content:center; width:100%; box-sizing:border-box; }

  .mobile-nav-dark-toggle{
    display:flex; align-items:center; justify-content:center; gap:10px;
    padding:12px; background: hsl(0 0% 0% / .04); border:1px solid var(--glass-border); border-radius: var(--radius-sm);
    color: var(--text-main); font-size:.88rem; font-weight:600; cursor:pointer;
  }
  body.dark .mobile-nav-dark-toggle{ background: hsl(0 0% 100% / .06); }
  .mobile-nav-dark-toggle svg{ width:17px; height:17px; }

  .header-nav-group{ display:flex; flex-direction:column; gap:12px; align-items:flex-end; max-width:100%; flex:1; min-height:0; }
  /* メニューの枠（グレーの箱）はやめて、タブをヘッダーの上端〜下端いっぱいに並べる */
  .subnav-track{ position:relative; display:flex; align-items:stretch; gap:0; flex:1; box-sizing:border-box; background:none; padding:0; border-radius:0; max-width:100%; }
  body.dark .subnav-track{ background:none; }
  .subnav-indicator{
    position:absolute; height:100%;
    background: var(--hover-bg); border-radius:0;
    box-shadow:none;
    opacity:0;
    transition: left .3s var(--ease), top .3s var(--ease), width .3s var(--ease), opacity .2s;
  }
  .subnav-main{ position:relative; display:flex; align-items:stretch; gap:0; z-index:1; }
  .subnav-main a{
    display:flex; align-items:center; gap:6px; flex-shrink:0; white-space:nowrap;
    text-decoration:none; color: var(--text-sub); font-size:1rem; font-weight:600;
    padding:8px 16px; border-radius:4px; transition: color .25s, background .2s;
  }
  /* 上段のタブは、ヘッダーの高さいっぱい（角丸なし）。プルダウンの中のリンクは、この指定の対象外 */
  .subnav-main > a, .subnav-main > .nav-dropdown > a{ padding:0 18px; border-radius:0; }
  .subnav-main a svg{ width:16px; height:16px; flex-shrink:0; }
  /* ホバー：背景がアクセントカラー、文字が白。プルダウンを開いている間も、「投資ナレッジ」はこの色のままにする */
  .subnav-main > a:hover, .subnav-main > .nav-dropdown > a:hover,
  .nav-dropdown:hover > a, .nav-dropdown:focus-within > a{ background: var(--hover-bg); color: var(--hover-ink); }
  .subnav-main a.active{ color: var(--hover-ink); }
  .subnav-main a.active:hover{ background:transparent; }

  .nav-dropdown{ position:relative; display:flex; }

  /* ---- スマホ幅のヘッダー ----
     下へスクロールすると隠れ、上へスクロールすると出てくる（出入りは header.js が
     .header-hidden / .header-pinned を付け外しして行う）。出ているあいだ（最上部以外）は、
     白ベースの半透明＋背景のぼかし（ダークモードは暗い色の半透明）。
     ※ 以前は、広告との重なり（誤クリック誘導）を避けるため、ヘッダーを追尾させない方針だった。
        広告を載せるときは、ヘッダーと広告が重ならないか、必ず見直すこと。
        この動きを止めたいときは、header.js の AUTO_HIDE_HEADER を false にする。 */
  @media (max-width: 860px){
    html, body{ overscroll-behavior-y: none; }   /* 最上部で下に引っ張ったとき、ヘッダーの上に本文の色が見えるのを防ぐ */
    header{
      position: sticky; top: 0; z-index: 100;
      transition: transform .28s var(--ease), background-color .25s, box-shadow .25s;
    }
    header.header-hidden{ transform: translateY(-100%); box-shadow:none; }
    header.header-pinned{ box-shadow: 0 6px 20px -10px hsl(0 0% 0% / .35); }
    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
      header.header-pinned{
        background-color: hsl(0 0% 100% / .72);
        -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8);
        border-bottom-color: hsl(0 0% 100% / .55);
      }
      body.dark header.header-pinned{
        background-color: color-mix(in srgb, var(--header-bg) 72%, transparent);
        border-bottom-color: hsl(0 0% 100% / .08);
      }
    }
  }

  /* 投資ナレッジのプルダウン：上段のメニューを、縦に並べた形。タブの真下に、タブと同じ幅で展開し、
     項目は角のない四角（ホバー・今のページは、上段と同じ色） */
  .nav-dropdown-menu{
    position:absolute; top:100%; left:0; margin-top:1px;
    background:#fff; border:1px solid var(--glass-border); border-top:none; border-radius:0;
    box-shadow: 0 10px 26px -6px hsl(0 0% 0% / .2);
    padding:0; min-width:100%; width:max-content;
    opacity:0; visibility:hidden; transform:translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index:30;
  }
  body.dark .nav-dropdown-menu{ background: var(--header-bg); }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu{
    opacity:1; visibility:visible; transform:translateY(0);
  }
  .nav-dropdown-menu a{
    display:flex; align-items:center; gap:6px; height:60px; padding:0 18px; border-radius:0;
    font-size:1rem; font-weight:600; color:var(--text-sub); text-decoration:none; white-space:nowrap;   /* 上段のメニューと同じ文字サイズ・余白（幅が狭いときは下の @media で一緒に小さくする） */
  }
  .nav-dropdown-menu a + a{ border-top:1px solid var(--glass-border); }
  .nav-dropdown-menu a svg{ width:16px; height:16px; flex-shrink:0; }
  /* プルダウンの中：ホバー、または今開いているページのリンクは、アクセントカラーの背景＋白文字 */
  .nav-dropdown-menu a:hover, .nav-dropdown-menu a.active{ background: var(--hover-bg); color: var(--hover-ink); }

  /* PCの中でも、幅が狭いときは、文字・余白・ロゴを少しずつ小さくして、メニューが収まるようにする
     （メニュー4つ＋ロゴ＋右側のボタンが、1行に収まる最小限の大きさ。スマホ幅(860px以下)は別の作り） */
  /* 幅の広い画面では、右端のボタンを、横長の四角（104px）にする */
  @media (min-width: 1280px){
    header{ --ctl-w: 104px; }
  }
  /* PC幅：メニューの右端が、右端のボタンの下に入り込まないよう、右の余白を取る。
     画面が十分に広く、本文の外側に余白があるときは、余白の分だけ減らす（本文の幅いっぱいにメニューを置ける） */
  @media (min-width: 861px){
    header .header-inner{ padding-right: max(24px, calc(var(--ctl-w) * 2 + 16px - max(0px, (100vw - 1142px) / 2))); }
  }
  @media (max-width: 1200px){
    .subnav-main > a svg, .subnav-main > .nav-dropdown > a svg{ display:none; }
    .subnav-main > a, .subnav-main > .nav-dropdown > a{ font-size:.95rem; padding:0 14px; }
    .nav-dropdown-menu a{ font-size:.95rem; padding:0 14px; height:56px; }
  }
  @media (min-width: 861px) and (max-width: 1020px){
    .subnav-main > a, .subnav-main > .nav-dropdown > a{ font-size:.85rem; padding:0 10px; }
    .nav-dropdown-menu a{ font-size:.85rem; padding:0 10px; height:52px; }
    .logo-link{ width:170px; }
    .header-inner{ gap:20px; }
    header{ --ctl-w: 60px; }
  }

  .quick-actions-inline{
    display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; align-items:center;
  }
  .quick-action-btn{
    display:inline-flex; align-items:center; gap:6px;
    height:34px; box-sizing:border-box;
    text-decoration:none; font-size:.8rem; font-weight:600;
    color:var(--text-sub); padding:0 13px; background: hsl(0 0% 0% / .04);
    border:1px solid var(--glass-border); border-radius: var(--radius-sm);
    white-space:nowrap; transition: all .2s var(--ease);
  }
  .quick-action-btn svg{ width:15px; height:15px; flex-shrink:0; }
  body.dark .quick-action-btn{ background: hsl(0 0% 100% / .06); }
  .quick-action-btn:hover{
    background: var(--accent); color: #fff; border-color: var(--accent);
  }

  /* イメージカラー：常時ベタ塗り、ホバーで淡色に切り替え */
  .quick-action-btn.qa-rss{ background:#FF6B00; border-color:#FF6B00; color:#fff; }
  .quick-action-btn.qa-rss:hover{ background:#FF9142; border-color:#FF9142; color:#fff; }
  body.dark .quick-action-btn.qa-rss{ color: hsl(0 0% 85%); }
  body.dark .quick-action-btn.qa-rss:hover{ background:#B34E00; border-color:#B34E00; color: hsl(0 0% 85%); }

  .quick-action-btn.qa-feedly{ background:#2BB24C; border-color:#2BB24C; color:#fff; }
  .quick-action-btn.qa-feedly:hover{ background:#5BCB74; border-color:#5BCB74; color:#fff; }
  body.dark .quick-action-btn.qa-feedly{ color: hsl(0 0% 85%); }
  body.dark .quick-action-btn.qa-feedly:hover{ background:#1F7E38; border-color:#1F7E38; color: hsl(0 0% 85%); }

  .quick-action-btn.qa-google{ background:#4285F4; border-color:#4285F4; color:#fff; }
  .quick-action-btn.qa-google:hover{ background:#78A9FA; border-color:#78A9FA; color:#fff; }
  body.dark .quick-action-btn.qa-google{ color: hsl(0 0% 85%); }
  body.dark .quick-action-btn.qa-google:hover{ background:#2F5FB8; border-color:#2F5FB8; color: hsl(0 0% 85%); }


  /* ---- 見出し共通 ---- */
  .news-section-head{
    color: var(--text-main);
    font-size: 1.05rem; font-weight:700;
    padding: 10px 20px 14px 30px;
    display:flex; align-items:center; gap:10px;
    position: relative;
    margin: 0 0 24px;
  }
  .news-section-head svg{ width:20px; height:20px; color:var(--accent-strong); flex-shrink:0; }
  .news-section-head::before,
  .news-section-head::after{
    content: ""; display: block; position: absolute;
  }
  .news-section-head::before{
    bottom: -5px; left: 1px;
    width: 5px; height: 20px;
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: skewX(-15deg);
  }
  .news-section-head::after{
    left: 15px; bottom: 0;
    width: calc(100% - 8px); height: 2px;
    background: var(--accent);
  }
  .section-title{ position:relative; padding-top:16px; margin-bottom:20px; }
  .section-title .corner-tri{ position:absolute; top:0; left:0; width:16px; height:16px;
    background: var(--accent-strong); clip-path: polygon(0 0, 100% 0, 0 100%); }
  .section-title .line{ position:absolute; top:0; left:0; right:0; height:2px; background: var(--accent-strong); }
  .section-title .txt{ display:block; padding-top:10px; font-family: var(--font-display); font-size:1.15rem; font-weight:700; }

  /* ---- TOP RANKING (見出し帯＋本体の2層構成。注目記事/右カラムとは別意匠) ---- */
  .ranking-panel{
    padding: 0; position:relative; height:340px; box-sizing:border-box; overflow:hidden;
    display:flex; flex-direction:column;
    border: 1px solid var(--glass-border);
  }

  .ranking-title-badge{
    position:absolute; top:0; left:0; z-index:2;
    display:inline-flex; align-items:center; gap:8px;
    background: var(--accent); color:#fff;
    padding:8px 18px 8px 14px;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    font-family: var(--font-body); font-weight:700; font-size:1.05rem;
  }
  body.dark .ranking-title-badge{ color: hsl(0 0% 85%); }

  .ad-slot{
    border: 2px dashed hsl(0 0% 55%);
    background: hsl(0 0% 50% / .08);
    display:flex; align-items:center; justify-content:center;
    color: hsl(0 0% 40%);
    font-family: var(--font-mono); font-size:.72rem; letter-spacing:.04em;
    flex-shrink:0;
  }
  body.dark .ad-slot{ border-color:hsl(0 0% 55%); background:hsl(0 0% 100% / .06); color:hsl(0 0% 72%); }
  .ad-728x90{ width:100%; max-width:728px; height:auto; aspect-ratio:728/90; }
  .ad-970x90{ width:100%; max-width:970px; height:auto; aspect-ratio:970/90; }
  .ad-970x250{ width:100%; max-width:970px; height:auto; aspect-ratio:970/250; }
  .ad-336x280{ width:100%; max-width:336px; min-height:100px; margin-bottom:0; }
  .ad-row-336{ display:flex; justify-content:space-between; gap:16px; margin: 24px 0; width:100%; max-width:728px; }
  
  .ranking-row{ display:flex; gap:20px; align-items:center; margin: 34px 0; max-width:1094px; }
  .ranking-row .ranking-panel{ flex:1; min-width:0; margin:0; }
  .ranking-row .ad-336x280{ flex-shrink:0; }
  .ranking-head{
    display:flex; align-items:center; justify-content:flex-end; gap:8px;
    padding: 16px 24px 8px; margin:0;
    background: transparent;
  }

  /* ランキングタブ（サブナビと同じスライド式インジケーター） */
  .ranking-tabs{ position:relative; display:flex; gap:0; background: hsl(0 0% 0% / .06); padding:3px; border:1px solid var(--glass-border); border-radius: var(--radius-sm); }
  body.dark .ranking-tabs{ background: hsl(0 0% 100% / .06); }
  .ranking-tabs-indicator{
    position:absolute; top:3px; left:3px; height:calc(100% - 6px);
    background: var(--accent); border-radius:2px;
    box-shadow: 0 1px 4px hsl(0 0% 0% / .15);
    transition: left .25s var(--ease), width .25s var(--ease);
  }
  .rtab{ position:relative; z-index:1; font-family: var(--font-body); font-size:.8rem; font-weight:600; padding:5px 12px; cursor:pointer; color:var(--text-sub); background:transparent; border:none; border-radius: 2px; transition: color .2s; }
  .rtab.active{ color:#fff; font-weight:700; }
  body.dark .rtab.active{ color: hsl(0 0% 85%); }
  
  .ranking-body{ display:flex; align-items:stretch; gap:12px; flex:1; min-height:0; padding: 8px 24px 20px; }
  
  /* ナビボタン（シルバー感＋ホバー赤） */
  .rnav{ flex-shrink:0; width:36px; cursor:pointer; font-size:.92rem; line-height:1;
    align-self:stretch; height:auto; box-sizing:border-box; padding:0; margin:0;
    background: linear-gradient(180deg, hsl(0 0% 97%), hsl(0 0% 88%));
    border: 1px solid hsl(0 0% 75%); border-radius:var(--radius-sm);
    box-shadow: 0 1px 3px hsl(0 0% 0% / .12);
    color: #000000;
    transition: all .2s var(--ease);
    display:flex; align-items:center; justify-content:center; }
  .rnav:hover{
    color: #E5484D !important;
    background: linear-gradient(180deg, #ffffff, hsl(0 0% 90%));
    border-color: hsl(0 0% 55%);
    box-shadow: 0 2px 6px hsl(0 0% 0% / .18);
  }
  body.dark .rnav{
    background: linear-gradient(180deg, hsl(var(--hue) 18% 22%), hsl(var(--hue) 18% 13%));
    border-color: hsl(var(--hue) 15% 30%);
    box-shadow: 0 1px 3px hsl(0 0% 0% / .4);
    color: #FFFFFF; }
  body.dark .rnav:hover{
    color: #FF6B6B !important;
    background: linear-gradient(180deg, hsl(var(--hue) 18% 28%), hsl(var(--hue) 18% 18%));
    border-color: hsl(var(--hue) 15% 38%);
    box-shadow: 0 2px 6px hsl(0 0% 0% / .35);
  }

  .ranking-grid{ flex:1; display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; align-content:stretch; }
  
  .rank-slot{ padding:14px 10px; text-align:center; position:relative;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    background: hsl(0 0% 100% / .45); border: 1px solid var(--glass-border); border-radius:var(--radius-md);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    overflow:hidden;
  }
  body.dark .rank-slot{ background: hsl(0 0% 100% / .04); }
  .rank-slot:hover{ transform: translateY(-3px); box-shadow: 0 6px 16px -4px hsl(0 0% 0% / .12); }
  
  .rank-icon{ width:22px; height:22px; margin-bottom:4px; opacity:.85; color: var(--accent-strong); }
  .rank-type{ display:inline-block; font-size:.62rem; font-weight:700; color:#fff; padding:2px 9px; border-radius:10px; margin-bottom:7px; letter-spacing:.02em; }
  .rank-type.type-article{ background: var(--accent); }
  .rank-type.type-wiki{ background: #8B5CF6; }
  .rank-type.type-live{ background: #E5484D; }
  .rank-type.type-quote{ background: #C9971E; }
  .rank-slot .rname{ font-size:.86rem; font-weight:700; margin:2px 0 4px; line-height:1.35; color: var(--text-main);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .rank-slot .rdelta{ font-size:.7rem; color:var(--accent-strong); font-family: var(--font-mono); font-weight:600; background: var(--accent-soft); padding:2px 8px; border-radius:10px; }

  /* ---- ミニランキングの種類タグ（右カラム 総合アクセスTOP10） ---- */
  .mini-rank-type{ display:inline-block; font-size:.6rem; font-weight:700; color:#fff; padding:1px 7px; border-radius:8px; }
  .mini-rank-type.type-article{ background: var(--accent); }
  .mini-rank-type.type-wiki{ background: #8B5CF6; }
  .mini-rank-type.type-live{ background: #E5484D; }
  .mini-rank-type.type-quote{ background: #C9971E; }

  /* ---- 投資配信者ランキング（トップページ上部） ---- */
  .live-investors-panel{
    width:100%; margin: 0 0 24px; box-sizing:border-box;
    display:flex; flex-direction:column;
    border: 1px solid var(--glass-border);
  }
  .live-panel-head{
    display:flex; align-items:center; gap:10px; flex-shrink:0;
    padding:15px 24px; border-bottom:1px solid var(--glass-border);
  }
  .live-play-badge{
    width:30px; height:21px; border-radius:6px; background:#E5484D; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
  }
  .live-play-badge svg{ width:11px; height:11px; }
  @keyframes live-pulse{
    0%{ box-shadow: 0 0 0 0 rgba(229,72,77,.5); }
    70%{ box-shadow: 0 0 0 7px rgba(229,72,77,0); }
    100%{ box-shadow: 0 0 0 0 rgba(229,72,77,0); }
  }
  .live-panel-title{ font-family: var(--font-body); font-weight:700; font-size:1.1rem; }
  .live-list{ display:flex; flex-direction:column; }
  .live-item{
    display:flex; flex-wrap:wrap; align-items:center; gap:14px;
    padding:12px 20px; border-top:1px solid var(--glass-border);
    text-decoration:none; color:inherit; transition: background-color .18s;
  }
  .live-item:first-child{ border-top:none; }
  .live-item:hover{ background: hsl(0 0% 0% / .03); }
  body.dark .live-item:hover{ background: hsl(0 0% 100% / .04); }
  .live-thumb-wrap{
    display:block; position:relative; width:182px; height:102px; flex-shrink:0; border-radius:8px; overflow:hidden;
  }
  .live-thumb{ width:100%; height:100%; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); transition: transform .2s; }
  .live-thumb-wrap:hover .live-thumb{ transform: scale(1.03); }
  .live-thumb-play{ display:none; }
  .live-info{ flex:1; min-width:0; width:100%; display:flex; flex-direction:column; gap:6px; }
  .live-topic{ font-size:.92rem; font-weight:700; color:var(--text-main); line-height:1.4;
    display:block; overflow:hidden; width:100%;
    min-height: calc(1.4em * 2); max-height: calc(1.4em * 2); min-width:0; overflow-wrap:anywhere;
    text-decoration:none; cursor:pointer; }
  .live-name-row{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
  .live-avatar{ width:18px; height:18px; border-radius:50%; flex-shrink:0; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
  .live-name{ font-size:.8rem; color:var(--text-sub); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
  .live-name-with-cat{ display:flex; align-items:center; gap:6px; min-width:0; width:100%; }
  .live-category-tag{
    font-size:.68rem; font-weight:700; color: var(--accent-strong);
    background: hsl(var(--accent-hue, 210) 70% 55% / .12);
    padding:1px 7px; border-radius:8px; flex-shrink:0;
  }
  .live-elapsed{ font-size:.78rem; color:var(--text-sub); font-family:var(--font-mono); }
  .live-elapsed-line{ font-size:.78rem; color:var(--text-sub); font-family:var(--font-mono); }
  /* アイコン＋配信者名/視聴者数をまとめた行。アイコンは名前+視聴者数の2行分の高さに合わせる */
  .live-name-viewers-row{ display:flex; align-items:center; gap:10px; min-width:0; width:100%; }
  .live-name-viewers-text{ min-width:0; display:flex; flex-direction:column; gap:4px; flex:1; }
  .live-viewers-block{ flex-shrink:0; text-align:right; min-width:78px; }
  .live-info > .live-viewers-inline, .live-info > .live-schedule-badge, .live-info > .live-duration-line{ margin-bottom:0; }

  .live-viewers-count{ display:flex; align-items:center; justify-content:flex-end; font-family:var(--font-mono); font-weight:600; font-size:1rem; color:#E5484D; }
  .live-viewers-label{ font-size:.62rem; color:var(--text-sub); margin-top:2px; }
  /* 接続者数の演出：規模に応じて太さ・大きさだけを変える（発光やアイコンは無し） */
  .live-viewers-count.tier-normal{ font-size:1rem; font-weight:600; }
  .live-viewers-count.tier-warm{ font-size:1.1rem; font-weight:800; }
  .live-viewers-count.tier-hot{ font-size:1.3rem; font-weight:900; }

  /* 投資系YouTuber・配信者一覧ページ限定：サムネイル拡大＋テキスト拡大（top.htmlの配信中パネルには影響しない） */
  .live-list-lg .live-item{ gap:16px 20px; padding:16px 20px; align-items:stretch; }
  .live-list-lg .live-thumb-wrap{ width:200px; height:113px; }
  .live-list-lg .live-thumb-play svg{ width:36px; height:36px; }
  .live-list-lg .live-topic{ font-size:1.1rem; margin-bottom:2px; }
  .live-list-lg .live-avatar{ width:44px; height:44px; flex-shrink:0; }
  .live-list-lg .live-name{ font-size:.95rem; }
  .live-list-lg .live-elapsed{ font-size:.95rem; }
  .live-list-lg .live-elapsed-line{ font-size:.85rem; }

  /* ランキング順位バッジ（サムネイルの左） */
  /* ランキング順位バッジ：サムネイル左上にオーバーレイ表示 */
  .live-rank-badge{
    position:absolute; top:6px; left:6px; z-index:2;
    display:flex; align-items:center; justify-content:center;
    min-width:22px; height:22px; padding:0 5px; border-radius:5px;
    background: hsl(0 0% 0% / .65); color:#fff;
    font-family: var(--font-mono); font-weight:800; font-size:.82rem;
  }
  .featured-live-row .live-item:nth-child(1) .live-rank-badge{ background: linear-gradient(135deg, #FFE29A, var(--gold)); color:#3a2a05; }
  .featured-live-row .live-item:nth-child(2) .live-rank-badge{ background: linear-gradient(135deg, #E7EBEF, #939FAC); color:#2b2f34; }
  .featured-live-row .live-item:nth-child(3) .live-rank-badge{ background: linear-gradient(135deg, #E9C09B, #C98A52); color:#3a2005; }

  /* 同時接続者数：タイトル直下にインラインで表示 */
  .live-viewers-inline{
    display:flex; align-items:center; gap:6px; margin-bottom:8px;
    font-family: var(--font-mono); font-weight:700; font-size:.8rem; color:#E5484D;
  }
  .live-viewers-dot{
    width:8px; height:8px; border-radius:50%; background:#E5484D; flex-shrink:0;
    box-shadow:0 0 0 0 rgba(229,72,77,.5); animation: live-pulse 1.8s infinite;
  }
  .live-viewers-inline.tier-warm{ color:#E07A3F; }
  .live-viewers-inline.tier-normal{ color: var(--text-sub); }
  .live-viewers-inline.tier-normal .live-viewers-dot{ background: var(--text-sub); animation:none; box-shadow:none; }
  .live-stat-elapsed{ color: var(--text-main); font-weight:600; }

  /* 配信予定タブ：日時バッジ（同時接続数の代わり） */
  .live-schedule-badge{
    display:flex; align-items:center; gap:6px; margin-bottom:8px;
    font-family: var(--font-mono); font-weight:700; font-size:.8rem; color: var(--accent-strong);
  }
  .live-schedule-badge .live-viewers-dot{ animation:none; box-shadow:none; }

  /* 配信終了タブ：終了バッジ（同時接続数の代わり・グレー基調） */
  .live-ended-badge{
    margin-bottom:2px;
    font-family: var(--font-mono); font-weight:700; font-size:.8rem; color: var(--text-sub);
  }
  .live-duration-line{ font-size:.8rem; color: var(--text-sub); font-family:var(--font-mono); font-weight:600; margin-bottom:8px; }
  /* 経過時間（グレー）。人気タブでは同時接続数を左側に併記（色は視聴者数の勢いで変化） */
  .live-elapsed-line{ font-size:.8rem; color: var(--text-sub); font-family:var(--font-mono); font-weight:600; margin-bottom:8px; }
  .live-elapsed-viewers{ color:#E5484D; font-weight:700; }
  .live-elapsed-viewers.tier-warm{ color:#E07A3F; }
  .live-elapsed-viewers.tier-normal{ color: var(--text-sub); }

  /* 目の疲れ対策：奇数=白背景／偶数=わずかに色の違う背景（ジグザグ配色） */
  .live-list-lg .live-item:nth-child(even){ background: hsl(220 14% 96%); }
  body.dark .live-list-lg .live-item:nth-child(even){ background: hsl(0 0% 100% / .035); }

  /* 配信終了タブ：重複コンテンツ対策の注記（直近のみ表示） */
  .live-panel-note{
    padding:12px 20px 16px; font-size:.78rem; color: var(--text-sub); text-align:center;
    border-top:1px solid var(--glass-border);
  }

  @media (max-width: 860px){
    .live-list-lg .live-thumb-wrap{ width:100%; height:auto; aspect-ratio:16/9; }
  }

  /* ---- 注目のライブ配信（見出しは通常幅のまま／コンテンツ部分だけ少し広げてカルーセル化） ---- */
  .featured-live-section{ margin:22px 0 30px; }
  .featured-live-heading{
    display:flex; align-items:center; gap:8px;
    font-family: var(--font-display); font-size:1.15rem; font-weight:700; color:var(--text-main);
    margin-bottom:16px;
  }
  .featured-live-heading-icon{ display:flex; color:#E5484D; }
  .featured-live-section > .featured-live-heading{
    padding-left:16px;
  }
  .featured-live-heading-icon svg{ width:22px; height:22px; }

  .featured-live-carousel-wrap .rnav{ display:none; }
  .featured-live-carousel-wrap{
    display:flex; align-items:stretch; gap:10px;
    width:100vw; position:relative; left:50%; transform:translateX(-50%);
  }
  .featured-live-row{
    flex:1; min-width:0; display:flex; justify-content:center; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory;
    scrollbar-width:none; -ms-overflow-style:none; padding:10px 24px;
  }
  .featured-live-row::-webkit-scrollbar{ display:none; }

  .featured-live-card{
    flex:0 0 280px; width:280px; scroll-snap-align:start;
    display:flex; flex-direction:column; text-decoration:none; color:inherit;
    border-radius: var(--radius-lg); padding:10px; box-sizing:border-box;
    background: transparent; position:relative; isolation:isolate;
  }
  /* YouTube風ホバー：コンテンツ自体は動かさず、背後の白い層だけが外側に広がる（影なし） */
  .featured-live-card::before{
    content:""; position:absolute; inset:0; z-index:-1;
    background: var(--glass-bg); border-radius: var(--radius-lg);
    transition: inset .45s ease;
  }
  .featured-live-card:hover::before{ inset:-10px; background: hsl(var(--accent-hue, 210) 70% 55% / .07); }
  body.dark .featured-live-card:hover::before{ background: hsl(var(--accent-hue, 210) 70% 55% / .12); }
  .featured-live-thumb{
    position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius: var(--radius-lg);
  }
  .featured-live-thumb .live-thumb-play svg{ width:46px; height:46px; }
  /* タイトルはカード幅いっぱいの独立ブロック（2行クランプ）。アイコンは
     配信者名＋視聴者数の2行分の高さに合わせて、その左に配置する */
  .featured-live-title{
    font-size:.92rem; font-weight:700; color:var(--text-main); line-height:1.4;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    min-height: calc(1.4em * 2);
    margin-top:10px;
  }
  .featured-live-body{ display:flex; align-items:center; gap:10px; margin-top:6px; }
  .featured-live-avatar{
    width:38px; height:38px; border-radius:50%; flex-shrink:0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }
  .featured-live-text{ min-width:0; display:flex; flex-direction:column; gap:4px; flex:1; }
  .featured-live-name-row{ display:flex; align-items:center; gap:6px; min-width:0; }
  .featured-live-name{ font-size:.78rem; font-weight:600; color: var(--text-sub); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
  .featured-live-substats{
    display:flex; align-items:center; justify-content:flex-start; flex-wrap:nowrap; gap:8px;
    font-size:.78rem; color: var(--text-sub); overflow:hidden;
  }
  .featured-live-stats{
    display:flex; align-items:center; gap:5px;
    font-family: var(--font-mono); font-weight:700; color:#E5484D;
  }
  .featured-live-stats.tier-warm{ color:#E07A3F; }
  .featured-live-stats.tier-normal{ color: var(--text-sub); }
  .featured-live-elapsed{ font-family: var(--font-mono); color: var(--text-sub); }

  @media (max-width: 860px){
    .featured-live-carousel-wrap{ width:100%; position:static; left:auto; transform:none; }
    .featured-live-carousel-wrap .rnav{ display:none; }
    .featured-live-row{ display:grid; grid-template-columns: 1fr; overflow:visible; }
    .featured-live-card{ flex:none; width:100%; }
    .featured-live-card:nth-child(n+4){ display:none; }
  }


  /* ---- 動画＋チャット モーダル ---- */
  .video-modal-backdrop{
    position:fixed; inset:0; z-index:300; display:none; align-items:center; justify-content:center;
    background: hsl(0 0% 0% / .72); padding:24px;
  }
  .video-modal-backdrop.open{ display:flex; }
  .video-modal{
    width:100%; max-width:1120px; max-height:90vh; display:flex; flex-direction:column;
    background: var(--card-bg, #fff); border-radius:12px; overflow:hidden; box-shadow:0 20px 60px hsl(0 0% 0% / .35);
  }
  body.dark .video-modal{ background:#15181d; }
  .video-modal-header{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:12px 16px; border-bottom:1px solid var(--glass-border);
  }
  .video-modal-title{ font-size:.95rem; font-weight:700; color:var(--text-main); }
  .video-modal-close{
    flex-shrink:0; width:30px; height:30px; border-radius:50%; border:none; cursor:pointer;
    background: hsl(0 0% 50% / .12); color: var(--text-main); font-size:.9rem; line-height:1;
  }
  .video-modal-close:hover{ background: var(--accent-strong); color:#fff; }
  .video-modal-body{ display:flex; flex:1; min-height:0; }
  .video-modal-player{ flex:1; min-width:0; aspect-ratio:16/9; background:#000; }
  .video-modal-player iframe{ width:100%; height:100%; display:block; }
  .video-modal-chat{ width:340px; flex-shrink:0; border-left:1px solid var(--glass-border); }
  .video-modal-chat iframe{ width:100%; height:100%; display:block; }
  @media (max-width: 860px){
    .video-modal{ max-height:95vh; }
    .video-modal-body{ flex-direction:column; overflow-y:auto; }
    .video-modal-player{ aspect-ratio:16/9; flex:none; }
    .video-modal-chat{ width:100%; height:320px; border-left:none; border-top:1px solid var(--glass-border); }
  }

  /* ---- 人気投資家（2列×5行） ---- */
  .popular-investors-grid{
    display:grid; grid-template-columns: repeat(2, 1fr); gap:16px;
    margin-top:10px;
  }
  .investor-card{
    display:flex; flex-direction:column; gap:10px; min-width:0;
    padding:16px 18px; border-radius: var(--radius-md);
    border: 1px solid var(--glass-border); background: var(--glass-bg);
    text-decoration:none; color:inherit; transition: transform .18s, box-shadow .18s;
  }
  .investor-head{ display:flex; align-items:center; gap:10px; }
  .investor-avatar{
    width:44px; height:44px; border-radius:50%; flex-shrink:0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }
  .investor-name{ font-size:1rem; font-weight:800; color: var(--text-main); text-decoration:none; }
  .investor-name:hover{ color: var(--accent-strong); text-decoration:underline; }
  .investor-recent-links{ display:flex; flex-direction:column; gap:4px; padding-left:2px; }
  .investor-recent-link{
    display:flex; align-items:baseline; gap:8px; font-size:.86rem; color: var(--text-sub); line-height:1.4;
    position:relative; padding-left:12px; text-decoration:none; min-width:0;
  }
  .investor-recent-link:hover{ color: var(--accent-strong); }
  .investor-recent-link:hover .investor-recent-title{ text-decoration:underline; }
  .investor-recent-link::before{ content:"·"; position:absolute; left:0; color: var(--accent-strong); font-weight:900; }
  .investor-recent-title{
    flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .investor-recent-date{
    flex-shrink:0; font-family: var(--font-mono); font-size:.78rem; color: var(--text-sub); opacity:.75;
  }
  .investor-recent-live-tag{
    flex-shrink:0; font-size:.62rem; font-weight:800; color:#fff; background:#E5484D;
    padding:1px 6px; border-radius:4px; letter-spacing:.02em;
  }
  .investor-recent-link.is-live .investor-recent-title{ color: var(--accent-strong); }
  .investor-recent-link.is-live .investor-recent-date{ color:#E5484D; opacity:1; font-weight:700; }
  @media (max-width: 640px){
    .popular-investors-grid{ grid-template-columns: 1fr; }
  }

  /* 人気投資家：バッジ型見出し（他セクションの見出しとは意匠を分ける） */
  .investor-section-heading{
    display:inline-flex; align-items:center; gap:8px;
    background: var(--accent); color:#fff;
    padding:8px 18px 8px 14px; margin:34px 0 8px;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    font-family: var(--font-body); font-weight:700; font-size:1.05rem;
  }
  body.dark .investor-section-heading{ color: hsl(0 0% 85%); }

  /* ---- 投資配信/動画一覧：サムネイル拡大カードグリッド（ライブ配信／動画 共通） ---- */
  .stream-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:32px 28px; }
  .stream-card{ display:flex; flex-direction:column; text-decoration:none; color:inherit; }
  .stream-thumb-wrap{ position:relative; width:100%; aspect-ratio:16/9; border-radius:10px; overflow:hidden; }
  .stream-thumb{ width:100%; height:100%; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); transition: transform .2s; }
  .stream-card:hover .stream-thumb{ transform: scale(1.03); }
  .stream-thumb-play{
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    background: linear-gradient(0deg, hsl(0 0% 0% / .22), transparent 45%);
  }
  .stream-thumb-play svg{ width:58px; height:58px; opacity:.92; filter: drop-shadow(0 2px 5px hsl(0 0% 0% / .35)); }

  /* ライブ配信専用：サムネ左上のLIVEバッジ（点滅ドット） */
  .stream-live-badge{
    position:absolute; top:9px; left:9px; display:flex; align-items:center; gap:4px;
    background:#E5484D; color:#fff; font-size:.72rem; font-weight:800; letter-spacing:.04em;
    padding:4px 8px 4px 7px; border-radius:4px;
  }
  .stream-live-dot{ width:6px; height:6px; border-radius:50%; background:#fff; animation: stream-live-blink 1.3s infinite; }
  @keyframes stream-live-blink{ 0%,100%{ opacity:1; } 50%{ opacity:.25; } }

  /* サムネ右下：ライブ＝同時接続数 ／ 動画＝再生時間 */
  .stream-corner-badge{
    position:absolute; bottom:9px; right:9px; background:hsl(0 0% 0% / .68); color:#fff;
    font-family:var(--font-mono); font-size:.82rem; font-weight:700; padding:4px 8px; border-radius:4px;
  }
  .stream-corner-badge.is-viewers{ color:#ff8a8d; }

  .stream-info{ display:flex; gap:12px; padding-top:12px; }
  .stream-avatar{ width:44px; height:44px; border-radius:50%; flex-shrink:0; margin-top:1px; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
  .stream-text{ min-width:0; }
  .stream-title{
    font-size:1.3rem; font-weight:700; line-height:1.4; color:var(--text-main);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-bottom:8px;
  }
  .stream-meta-sub{ font-size:1rem; color:var(--text-sub); display:flex; flex-wrap:wrap; column-gap:10px; font-family:var(--font-mono); }
  .stream-meta-sub .stream-name{ font-size:1.05rem; font-weight:700; color:var(--text-sub); font-family:var(--font-body); }

  /* ---- 最新ニュース（ホバー連動プレビュー） ---- */
  .news-hover-panel{
    width:100%; margin: 0 0 24px; box-sizing:border-box;
    display:flex; flex-direction:column;
    border: 1px solid var(--glass-border);
  }
  .news-hover-head{
    display:flex; align-items:center; gap:10px; flex-shrink:0;
    padding:15px 24px; border-bottom:1px solid var(--glass-border);
  }
  .news-hover-badge{
    width:30px; height:21px; border-radius:6px; background:var(--accent); flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
  }
  .news-hover-badge svg{ width:14px; height:14px; }
  .news-hover-title{ font-family: var(--font-body); font-weight:700; font-size:1.05rem; }

  .news-hover-body{ display:flex; align-items:center; gap:20px; padding:20px 24px; }

  .news-hover-media{ display:flex; flex-direction:column; gap:10px; flex-shrink:0; width:300px; }
  .news-hover-thumb-wrap{
    position:sticky; top:20px; z-index:1;
    width:100%; height:190px; border-radius:var(--radius-md); overflow:hidden;
  }
  .news-hover-thumb{
    position:absolute; inset:0; opacity:0; transition: opacity .25s var(--ease);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }
  .news-hover-thumb.active{ opacity:1; }
  .news-hover-caption{ display:flex; align-items:center; gap:8px; }
  .news-hover-caption-time{ font-size:.74rem; color:var(--text-sub); font-family: var(--font-mono); }

  .news-hover-list{ flex:1; min-width:0; display:flex; flex-direction:column; }
  .news-hover-item{
    display:flex; padding:11px 10px; border-top:1px solid var(--glass-border); border-radius:6px;
    text-decoration:none; color:inherit; transition: background-color .18s;
  }
  .news-hover-item:first-child{ border-top:none; }
  .news-hover-item:hover, .news-hover-item.active{ background: var(--accent-soft); }
  .news-hover-item-title{
    min-height:2.6rem;
    font-size:.92rem; font-weight:700; line-height:1.5; color:var(--text-main);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .news-hover-item:hover .news-hover-item-title, .news-hover-item.active .news-hover-item-title{ color:var(--accent-strong); }

  @media (max-width: 640px){
    .news-hover-body{ flex-direction:column; align-items:stretch; }
    .news-hover-media{ width:100%; }
    .news-hover-thumb-wrap{ height:auto; aspect-ratio:16/9; }
  }

  /* ---- Layout ---- */
  .layout{ display:grid; grid-template-columns: minmax(0, 728px) 300px; gap:30px; padding-bottom:70px; }
  .layout > section{ min-width:0; }
  /* 投資系YouTuber・配信者一覧ページ限定：メインカラム左にカテゴリタブ用の列を追加。
     広告(970)を main+右カラムの行に配置しつつ、左カテゴリ列はその行から本文の行まで
     縦に貫通させることで、広告と同じラインからスタートするように揃える */
  .layout.layout-with-category{
    grid-template-columns: 150px minmax(0, 1fr) 300px;
    grid-template-rows: auto 1fr;
    max-width:1150px;
  }
  .layout.layout-with-category > .layout-cat-aside{ grid-column:1; grid-row:1 / 3; }
  .layout.layout-with-category > .layout-top-ad{ grid-column:2 / 4; grid-row:1; }
  .layout.layout-with-category > section{ grid-column:2; grid-row:2; }
  .layout.layout-with-category > aside:not(.layout-cat-aside){ grid-column:3; grid-row:2; }
  /* このページ限定でラップ幅を少し広げ、左カラム追加によるメインカラムの圧迫を緩和（他ページには影響しない） */
  .wrap.wrap-wide-live{
    max-width:1198px;
    margin-left: calc((100% - 1142px) / 2);
    margin-right: 0;
  }
  @media (max-width: 1198px){
    .wrap.wrap-wide-live{ margin-left:auto; margin-right:auto; }
  }

  /* カテゴリタブ（すべて／株／FX／仮想通貨／ゴールド）：デスクトップは縦並びの左カラム。背景付きの器の中にタブを収める */
  .category-filter-vertical{
    display:flex; flex-direction:column; gap:4px;
    align-self:start; position:sticky; top:20px;
    background: hsl(0 0% 0% / .035); border-radius: var(--radius-md); padding:8px;
  }
  body.dark .category-filter-vertical{ background: hsl(0 0% 100% / .04); }
  .category-filter-tab{
    display:flex; align-items:center; gap:9px;
    padding:10px 14px; border-radius: var(--radius-sm); font-size:.86rem; font-weight:600;
    color: var(--text-sub); text-decoration:none; transition: background-color .15s, color .15s;
  }
  .category-filter-tab svg{ width:18px; height:18px; flex-shrink:0; }
  .category-filter-tab span{ min-width:0; white-space:normal; overflow-wrap:anywhere; line-height:1.3; }
  .category-filter-tab:hover{ background: hsl(0 0% 0% / .06); color: var(--text-main); }
  .category-filter-tab.active{ background: var(--accent); color:#fff; }

  /* asideは既定でsection（本文）と同じ高さまでstretchされる（同じ行の
     グリッドアイテム同士なので）。その高さを内部で使い切って、
     ランキング枠（sticky）が伸び、「このサイトを登録」が常に本文の
     一番下＝フッターの少し上に来るようにする。
     ランキング枠自体にflex-growを与えると追尾やクリック判定が壊れる
     ことがあるため、中立なラッパー（.rank-sticky-wrap）で包んで
     そちらを伸ばしている（wiki個別ページと同じ仕組み）。 */
  .layout > aside{ display:flex; flex-direction:column; }
  .layout aside > *{ flex-shrink:0; }
  .layout .rank-sticky-wrap{ flex:1 1 auto; min-height:0; }
  .layout .rank-frame-block{ margin-bottom:0; }
  .layout .site-register-block{ margin-top:22px; margin-bottom:0; }
  /* 左のカテゴリタブ列は右サイドバー用のstretch挙動が不要（むしろ余分な余白の原因になる）ので解除 */
  .layout.layout-with-category > aside.layout-cat-aside{ display:block; }

  /* ---- コンテンツ切り替えタブ (前回デザイン維持＋クリックでスライド) ---- */
  .content-tabs{
    position:relative; display:flex; gap:0; margin-bottom:20px; width:100%; max-width:728px;
    background: hsl(0 0% 0% / .03);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    border-radius: var(--radius-sm);
    overflow:hidden;
  }
  body.dark .content-tabs{ background: hsl(0 0% 100% / .035); }
  .content-tabs-indicator{
    position:absolute; top:0; height:100%;
    background: var(--glass-bg);
    border: 2px solid var(--accent);
    border-bottom-color: var(--glass-bg);
    box-sizing: border-box;
    transition: left .3s var(--ease), width .3s var(--ease);
  }
  .content-tab{
    position:relative; z-index:1; flex: 1;
    display:flex; align-items:center; justify-content:center; gap:7px;
    text-decoration:none; color:var(--text-sub); font-size:.88rem; font-weight:600;
    padding:9px 10px 8px;
    background: transparent;
    border-bottom: 2px solid var(--accent);
    box-sizing: border-box;
    transition: color .2s, background-color .2s;
  }
  .content-tab svg{ display:block; width:18px; height:18px; flex-shrink:0; transform: translateY(1px); }
  .content-tab-label{ display:block; line-height:1; }
  .content-tab:hover{ color: var(--accent-strong); background: hsl(0 0% 0% / .04); }
  body.dark .content-tab:hover{ background: hsl(0 0% 100% / .05); }

  .content-tab.active{
    color: var(--accent-strong);
    border-bottom-color: transparent;
  }
  .content-tab.active:hover{ background:transparent; }

  /* ---- Feed: 横並び正方形カード ---- */
  .feed-grid{ display:flex; flex-wrap:wrap; justify-content:space-between; row-gap:24px; margin-bottom:20px; width:100%; max-width:728px; }
  .grid-card{ width:calc(50% - 12px); padding:0; overflow:hidden; }

  .grid-thumb, .feed-thumb, .popular-thumb, .video-thumb, .featured-thumb{
    background: hsl(0 0% 88%);
    display:flex; align-items:center; justify-content:center;
    color: hsl(0 0% 55%);
    font-family: var(--font-mono); letter-spacing:.04em;
    overflow:hidden; position:relative;
  }
  body.dark .grid-thumb, body.dark .feed-thumb, body.dark .popular-thumb, body.dark .video-thumb, body.dark .featured-thumb{
    background: hsl(0 0% 24%); color: hsl(0 0% 62%);
  }
  
  .grid-thumb::after, .feed-thumb::after, .popular-thumb::after, .featured-thumb::after{
    content:'NO IMAGE'; font-size:.72rem;
    transition: transform .3s var(--ease);
    display:inline-block;
  }
  .featured-thumb::after{ font-size:.85rem; }
  .video-thumb::after{ content:'NO IMAGE'; font-size:.56rem; transition: transform .3s var(--ease); display:inline-block; }

  .grid-card:hover .grid-thumb::after,
  .feed-row:hover .feed-thumb::after,
  .featured-thumb-wrap:hover .featured-thumb::after,
  .popular-card:hover .popular-thumb::after {
    transform: scale(1.18);
  }

  .grid-thumb{ width:100%; height:auto; aspect-ratio:16/9; }
  .grid-body{ padding:12px 14px 16px; }
  .grid-title{ font-size:.92rem; font-weight:700; line-height:1.5; cursor:pointer; margin-bottom:8px; }
  .grid-title:hover{ color: var(--accent-strong); }

  /* ---- 注目記事 ---- */
  .grid-card.featured{ width:100%; max-width:728px; flex-basis:100%; position:relative; overflow:visible; border-radius:0; }
  .featured-body{ padding:34px 40px; text-align:left; }
  .featured-meta-top{ margin-bottom:14px; }
  .featured-title{
    display:block;
    font-size:1.35rem; font-weight:700; line-height:1.6; margin-bottom:16px;
    color: var(--text-main); text-decoration:none; cursor:pointer; transition: color .18s;
  }
  .featured-title:hover{ color: var(--accent-strong); }

  .share-row{ display:flex; margin-bottom:22px; border-radius: var(--radius-sm); overflow:hidden; }
  .share-btn{
    flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
    padding:12px 10px; text-decoration:none; font-size:.85rem; font-weight:700; color:#fff;
    transition: background-color .2s;
  }
  .share-btn span{ font-size:1rem; font-weight:900; }
  .share-x{ background:#000000; }
  .share-x:hover{ background:#333333; }
  .share-line{ background:#06C755; }
  .share-line:hover{ background:#05b34c; }
  .share-fb{ background:#1877F2; }
  .share-fb:hover{ background:#1464cc; }
  .share-hatena{ background:#00A4DE; }
  .share-hatena:hover{ background:#0089ba; }

  body.dark .share-btn{ color: hsl(0 0% 85%); }
  body.dark .share-x{ background:#1A1A1A; }
  body.dark .share-x:hover{ background:#3A3A3A; }
  body.dark .share-line{ background:#0E8C4C; }
  body.dark .share-line:hover{ background:#0B6F3C; }
  body.dark .share-fb{ background:#1F5FB0; }
  body.dark .share-fb:hover{ background:#184A8A; }
  body.dark .share-hatena{ background:#0089ba; }
  body.dark .share-hatena:hover{ background:#006f94; }

  .featured-thumb-wrap{ display:flex; justify-content:center; margin-bottom:22px; overflow:hidden; border-radius: var(--radius-md); }
  .featured-thumb{ width:100%; height:260px; }
  .featured-lead{ font-size:.92rem; line-height:1.9; color:var(--text-sub); margin-bottom:24px; }

  .read-more-btn{
    display:flex; align-items:center; justify-content:center; gap:8px;
    text-decoration:none; font-size:.95rem; font-weight:700; color: var(--accent-strong);
    padding:14px 28px; border:2px solid var(--accent); border-radius: var(--radius-md);
    background: transparent; transition: background-color .2s, color .2s; width:100%;
  }
  .read-more-btn:hover{ background: var(--accent); color:#fff; }

  .corner-frame{ position:absolute; width:22px; height:22px; border-color:var(--accent); border-style:solid; pointer-events:none; }
  .corner-tl{ top:-2px; left:-2px; border-width:3px 0 0 3px; }
  .corner-tr{ top:-2px; right:-2px; border-width:3px 3px 0 0; }
  .corner-bl{ bottom:-2px; left:-2px; border-width:0 0 3px 3px; }
  .corner-br{ bottom:-2px; right:-2px; border-width:0 3px 3px 0; }

  /* ---- パンくずリスト ----
     各リンク自体を clip-path で矢印型に切り抜く。
     先頭＝右のみ尖る／中間＝左が凹み・右が尖る／末尾＝左のみ凹み。
     隣同士を --bc-notch 分だけ重ねることで、矢印の先端が
     次の項目の凹みにぴったりはまる。
     通常時はボーダーのみで輪郭が見え、ホバー時に塗りつぶしがつく。 */

.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-list {
  --bc-notch: 12px; /* 矢印のくびれ・尖りの深さ */
  --bc-overlap: 1px; /* 隣のパーツと、この分だけ重ねる（Chromeで、境目に細い隙間が見えるのを防ぐ） */
  
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .82rem;
  row-gap: 8px;
}

.breadcrumb-list li {
  display: flex;
  position: relative;
}

/* aタグ本体 */
.breadcrumb-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 30px;
  box-sizing: border-box;
  padding: 0 16px;
  color: var(--text-sub, #4a5568);
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

/* 1番目：右側だけ尖らせる */
.breadcrumb-list li:first-child a {
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-notch)) 0,
    100% 50%,
    calc(100% - var(--bc-notch)) 100%,
    0 100%
  );
  padding-right: calc(16px + var(--bc-notch));
}

/* 2番目以降（最後以外）：左を凹ませて右を尖らせる */
.breadcrumb-list li:not(:first-child):not(:last-child) a {
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-notch)) 0,
    100% 50%,
    calc(100% - var(--bc-notch)) 100%,
    0 100%,
    var(--bc-notch) 50%
  );
  padding-left: calc(16px + var(--bc-notch) + var(--bc-overlap));
  padding-right: calc(16px + var(--bc-notch));
  margin-left: calc(-1 * (var(--bc-notch) + var(--bc-overlap)));
}

/* 最後：左だけ凹ませて右は平ら */
.breadcrumb-list li:last-child a {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    var(--bc-notch) 50%
  );
  padding-left: calc(16px + var(--bc-notch) + var(--bc-overlap));
  margin-left: calc(-1 * (var(--bc-notch) + var(--bc-overlap)));
}

/* 2番目以降の左端にアクセントカラーのV字区切りを描画 */
.breadcrumb-list li:not(:first-child) a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 30px;
  background-color: var(--accent, #2b6cb0);
  
  /* strokeではなく、ホバー時と同じポリゴン形状（面描画）で作った太さ3pxのV字マスク */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 30'%3E%3Cpolygon points='0,0 3,0 15,15 3,30 0,30 12,15'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 30'%3E%3Cpolygon points='0,0 3,0 15,15 3,30 0,30 12,15'/%3E%3C/svg%3E") center/contain no-repeat;

  pointer-events: none;
  z-index: 2;
  transition: opacity .15s;
}

/* ホバー時本体 */
.breadcrumb-list a:hover {
  z-index: 10;
  background: var(--accent, #2b6cb0);
  color: #fff;
}

/* ホバー時：区切り線は消して背景のリボン型と完全合体 */
.breadcrumb-list li:not(:first-child) a:hover::before {
  opacity: 0;
}

/* アイコン用 */
.breadcrumb-home-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 5px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 20C20 20.5523 19.5523 21 19 21H5C4.44772 21 4 20.5523 4 20V11L1 11L11.3273 1.6115C11.7087 1.26475 12.2913 1.26475 12.6727 1.6115L23 11L20 11V20ZM11 13V19H13V13H11Z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 20C20 20.5523 19.5523 21 19 21H5C4.44772 21 4 20.5523 4 20V11L1 11L11.3273 1.6115C11.7087 1.26475 12.2913 1.26475 23 11L20 11V20ZM11 13V19H13V13H11Z'%3E%3C/path%3E%3C/svg%3E") center/contain no-repeat;
}
 /* ---- 個別記事ページ：本文タイポグラフィ ---- */
  .article-title{
    font-size:1.5rem; font-weight:800; line-height:1.55; margin-bottom:16px; color: var(--text-main);
  }
  /* 公開日時／最終更新日時：1つの共有グリッドにすることで、ラベルの有無・文字数に
     関わらず「2026...」の開始位置(グリッドの2列目)が常に揃うようにする。
     .article-datetime-row は display:contents で子をそのまま親グリッドの
     アイテムにしている */
  .article-datetime-block{
    display:grid; grid-template-columns: 4.4em auto;
    justify-content:flex-end; column-gap:8px; row-gap:2px;
    margin: -10px 0 16px;
    font-size:.72rem; font-family: var(--font-mono); color: var(--text-sub);
  }
  .article-datetime-row{ display:contents; }
  .article-datetime-label{ text-align:right; }
  .article-datetime-value{ text-align:left; }
  .article-body{ margin-top:8px; }
  .article-body p{ font-size:1rem; line-height:2; color: var(--text-main); margin-bottom:24px; }

  /* h2：左右をブラケット（角括弧）で挟む見出し（頂いたサンプルCSSをそのまま移植） */
  .article-body h2{
    font-size:1.25rem; font-weight:800; color: var(--text-main);
    padding:1.25rem 1.875rem; display:block; position:relative;
    margin:44px 0 22px;
  }
  .article-body h2::before,
  .article-body h2::after{
    content:''; width:10px; height:calc(100% - 6px); position:absolute; top:0;
  }
  .article-body h2::before{
    border-left:2px solid var(--accent); border-top:2px solid var(--accent); border-bottom:2px solid var(--accent);
    left:0;
  }
  .article-body h2::after{
    border-right:2px solid var(--accent); border-top:2px solid var(--accent); border-bottom:2px solid var(--accent);
    right:0;
  }

  /* h3：下線＋左下の傾いたブラケット（頂いたサンプルCSSをそのまま移植） */
  .article-body h3{
    font-size:1.125rem; font-weight:700; color: var(--text-main);
    padding:10px 20px 10px 30px; display:block; position:relative;
    margin:36px 0 20px;
  }
  .article-body h3::before,
  .article-body h3::after{ content:""; display:block; position:absolute; }
  .article-body h3::before{
    bottom:-5px; left:1px; width:5px; height:20px;
    border-left:2px solid var(--accent); border-right:2px solid var(--accent);
    transform: skewX(-15deg);
  }
  .article-body h3::after{
    left:15px; bottom:0; width:calc(100% - 8px); height:2px;
    background: var(--accent);
  }

  /* h4：矢印ブレット＋太字（FontAwesomeの代わりにCSS三角形を使用） */
  .article-body h4{
    font-size:1rem; font-weight:800; color: var(--text-main);
    display:block; position:relative;
    padding:6px 0 6px 26px; margin:28px 0 14px;
  }
  .article-body h4::before{
    content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
    width:0; height:0;
    border-top:6px solid transparent; border-bottom:6px solid transparent;
    border-left:9px solid var(--accent);
  }

  /* blockquote：アクセントカラー参照のdashed枠、角は完全な四角 */
  .article-body blockquote{
    margin:24px 0; padding:20px 22px;
    border:1px dashed var(--accent); border-radius:0;
    background: var(--accent-soft);
    font-size:.95rem; line-height:1.85; color: var(--text-sub); font-style:italic;
  }

  .article-body ul, .article-body ol{ margin:0 0 26px; padding-left:1.5em; }
  .article-body li{ font-size:1rem; line-height:1.9; color: var(--text-main); margin-bottom:10px; }
  .article-body strong{ color: var(--text-main); font-weight:800; }

  /* 記事途中の336×280広告：中央寄せ */
  .article-mid-ad{ display:flex; justify-content:center; margin:32px 0; }

  /* 記事末尾：左に336×280広告、右にSNSボタン縦並び（PC） */
  .article-end-block{ display:flex; gap:24px; align-items:stretch; margin-top:40px; }
  .article-end-block .ad-336x280{ flex-shrink:0; }
  .share-box{
    flex:1; position:relative; box-sizing:border-box;
    border:1px solid var(--accent); border-radius: var(--radius-md);
    padding:20px 16px 16px;
  }
  .share-box-title{
    position:absolute; top:0; left:50%; transform:translate(-50%, -50%);
    background: var(--glass-bg); padding:0 10px;
    font-size:.8rem; font-weight:700; color: var(--text-sub); white-space:nowrap;
  }
  .share-col{ display:flex; flex-direction:column; gap:10px; height:100%; }
  .share-col .share-btn{ flex:1; }

  /* 記事枠内：関連記事（正方形サムネ＋下部にアクセントカラーの帯でタイトル） */
  .related-articles{ margin-top:36px; padding-top:26px; border-top:1px solid var(--glass-border); }
  .related-articles-title{ font-size:1rem; font-weight:800; color: var(--text-main); margin-bottom:16px; }
  .related-articles-list{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; }
  .related-article-item{
    position:relative; display:block; aspect-ratio:1/1; box-sizing:border-box;
    border-radius:8px; text-decoration:none; border:5px solid transparent;
    transition: border-color .15s;
  }
  .related-article-item:hover{ border-color: var(--accent); }
  .related-article-thumb-inner{
    position:absolute; inset:0; border-radius:4px; overflow:hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }
  .related-article-caption{
    position:absolute; left:0; right:0; bottom:0;
    background: var(--accent); color:#fff;
    font-size:.72rem; font-weight:700; line-height:1.35;
    padding:8px 9px; border-radius:0 0 4px 4px;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  }

  /* 記事枠の下：前後記事ナビ（サムネ＋アクセントカラーの帯でタイトル、ナビボタンは枠の高さいっぱいで密着） */
  .article-prevnext{ display:flex; gap:16px; margin:24px 0; max-width:728px; }
  .prevnext-item{
    flex:1; min-width:0; display:flex; align-items:stretch;
    text-decoration:none;
    border:1px solid hsl(0 0% 75%); border-radius: var(--radius-sm); overflow:hidden;
  }
  body.dark .prevnext-item{ border-color: hsl(var(--hue) 15% 30%); }
  .prevnext-item .rnav{ border:none; border-radius:0; pointer-events:none; box-shadow:none; }
  .prevnext-item:hover{ border-color: hsl(0 0% 55%); }
  body.dark .prevnext-item:hover{ border-color: hsl(var(--hue) 15% 38%); }
  .prevnext-item:hover .rnav{
    color: #E5484D !important;
    background: linear-gradient(180deg, #ffffff, hsl(0 0% 90%));
  }
  body.dark .prevnext-item:hover .rnav{
    color: #FF6B6B !important;
    background: linear-gradient(180deg, hsl(var(--hue) 18% 28%), hsl(var(--hue) 18% 18%));
  }
  .prevnext-thumb-sq{
    position:relative; flex:1; min-width:0; height:160px; overflow:hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }
  .prevnext-caption{
    position:absolute; left:0; right:0; bottom:0; background: var(--accent);
    color:#fff; font-size:.78rem; font-weight:700; line-height:1.4; padding:8px 10px;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }

  @media (max-width: 640px){
    .article-title{ font-size:1.22rem; }
    .article-body p, .article-body li{ font-size:.95rem; line-height:1.9; }
    .article-body h2{ font-size:1.1rem; padding:1rem 1.25rem; margin:34px 0 16px; }
    .article-body h3{ font-size:1rem; padding:8px 14px 8px 22px; margin:28px 0 16px; }
    .article-end-block{ flex-direction:column; }
    .article-end-block .ad-336x280{ width:100%; max-width:100%; margin:0 auto; }
    .related-articles-list{ grid-template-columns: repeat(2, 1fr); gap:10px; }
    .related-article-item{ border-width:3px; }
    .related-article-item:nth-child(9){ display:none; }
    .article-prevnext{ flex-direction:column; }
    .news-rank-thumb{ width:56px; height:56px; }
    .news-rank-item:nth-child(n+6){ display:none; }
    .news-rank-list.is-expanded .news-rank-item:nth-child(n+6){ display:flex; }
    .news-rank-more-zone{ display:block; padding:14px 18px 4px; }
  }

  /* ---- サイドバー：注目ニュースランキング（画像つき・タブ/ナビ無し） ---- */
  .news-rank-list{ display:flex; flex-direction:column; }
  .news-rank-more-zone{ display:none; text-align:center; }
  .news-rank-item{ display:flex; align-items:center; gap:12px; padding:11px 18px; text-decoration:none; border-top:1px solid var(--glass-border); }
  .news-rank-item:first-child{ border-top:none; }
  .news-rank-item:hover{ background: hsl(0 0% 0% / .03); }
  body.dark .news-rank-item:hover{ background: hsl(0 0% 100% / .04); }
  .news-rank-thumb{ width:150px; height:120px; border-radius:8px; flex-shrink:0; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
  .news-rank-title{
    font-size:.82rem; font-weight:600; line-height:1.4; color: var(--text-main);
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  }

  .feed-meta{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .feed-tag{ font-size:.64rem; padding:3px 9px; background:var(--accent-soft); color:var(--accent-strong); font-weight:700; border-radius:4px; }
  .feed-name{ font-size:.74rem; color:var(--text-sub); font-weight:600; }
  .feed-comments{ font-size:.72rem; color:var(--accent-strong); font-family: var(--font-mono); font-weight:600; }
  .feed-time{ font-size:.7rem; color:var(--text-sub); font-family: var(--font-mono); margin-left:auto; }

  /* ---- Feed: 横長リスト ---- */
  .feed-list{ display:flex; flex-direction:column; gap:18px; width:100%; max-width:728px; }
  .feed-row{ display:flex; align-items:stretch; padding: 0; width:728px; height:160px; max-width:100%; overflow:hidden; }
  .feed-row:hover{ background: hsl(0 0% 100% / .4); }
  body.dark .feed-row:hover{ background: hsl(0 0% 100% / .06); }
  .feed-thumb{ width:220px; flex-shrink:0; }
  .feed-main{ flex:1; min-width:0; padding:20px 24px; display:flex; flex-direction:column; justify-content:space-between; }
  .feed-title{ font-size:1rem; font-weight:700; line-height:1.6; cursor:pointer; margin-bottom:10px;
    min-height: calc(1.6em * 2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .feed-title:hover{ color: var(--accent-strong); }

  /* Sidebar Styles */
  /* ---- 右カラム：各ブロックごとに見出し＋コンテンツを同じ枠で囲む。見出し下にグレーの区切り線 ---- */
  .layout > aside{
    background: none;
    border: none;
    box-shadow: none;
  }
  .layout > aside > .glass{
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .08) !important;
    /* 上だけ角を丸めない（見出しの corner-tri / line 装飾と揃えるため） */
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
  }
  body.dark .layout > aside > .glass{ box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .35) !important; }

  .sidebar-block{ padding: 0 22px 6px; margin-bottom:34px; border-radius: var(--radius-lg); overflow:hidden; }
  .sidebar-block .section-title{
    display:flex; align-items:center; position:relative; overflow:hidden;
    margin: 0 -22px 18px;
    padding: 16px 22px 14px;
    border-bottom: 2px solid hsl(0 0% 50% / .18);
  }
  .sidebar-block .section-title .corner-tri{ top:0; left:0; width:25px; height:25px; }
  .sidebar-block .section-title .line{ left:0; right:0; height:3px; }
  .sidebar-block .section-title .txt{ font-family: var(--font-body); font-size:1.15rem; padding-top:0; }
  /* 見出しの直下に new-investor-list が続く箇所（新着・更新など）用。
     デフォルトの margin-bottom:18px だと項目間の間隔より広く空いてしまうため詰める */
  .sidebar-block .section-title.is-tight{ margin-bottom:0; }

  .sticky-sidebar-panel{
    position: sticky;
    top: 20px;
  }

  .prefer-site-link{
    display:flex; align-items:center; justify-content:center; gap:8px;
    background: var(--accent); color:#fff; text-decoration:none;
    font-size:.85rem; font-weight:700; padding:12px 16px; border-radius: var(--radius-sm);
    transition: background-color .2s;
  }
  .prefer-site-link svg{ width:17px; height:17px; flex-shrink:0; }
  .prefer-site-link:hover{ background: var(--accent-strong); }
  body.dark .prefer-site-link:hover{ background: hsl(var(--hue) var(--sat) 22%); }
  .prefer-site-note{ font-size:.72rem; color:var(--text-sub); margin-top:10px; line-height:1.7; }

  .register-actions{ display:flex; flex-direction:column; gap:8px; }
  .register-actions .quick-action-btn{ width:100%; height:45px; justify-content:center; box-sizing:border-box; }

  /* 24時間アクセスランキング／総合アクセスTOP10：見出し(.section-title.framed)だけを
     枠で囲み、ランキング本体(.rank-plain-list)は枠なし・見出しと同じ幅いっぱいに広げる。
     枠は角を一切丸めず、影は底辺にはつかないようにする（下にランキング画像が続くため）。 */
  .rank-frame-block{
    /* 親(.sidebar-block)の border-radius+overflow:hidden が子の角を丸く
       クリップしてしまうのを防ぐ */
    border-radius: 0;
    overflow: visible;
  }
  /* 見出しラッパー：底辺を1位の画像と重ねて隠すための値だけを持たせる（横幅の処理は
     見出し自身が担当する） */
  .rank-frame-head-wrap{
    margin-bottom: -17px;
  }
  .section-title.framed{
    /* 横幅は.rank-plain-listと同じ考え方で、自分自身の-22pxマージンでsidebar-blockの
       paddingを打ち消してフル幅にする */
    padding: 16px 22px 14px;
    border-bottom: none;
    border-radius: 0;
    /* 「このサイトを登録」(.glass)と全く同じ値 */
    box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .08);
  }
  body.dark .section-title.framed{
    box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .35);
  }
  .rank-plain-list{ margin: 0 -22px; }

  .mini-rank-item{ display:block; margin-bottom:14px; text-decoration:none; }
  .mini-rank-item:last-child{ margin-bottom:0; }
  /* outline はレイアウトサイズに影響せず、要素の外側（border-boxの外）に描画される。
     そのためborderのように空間を予約する必要がなく、通常時から画像を完全にフル幅で
     表示しつつ、ホバー時だけ外側にリング状の枠を出せる（サイズが一切変わらないので
     ガクつかない） */
  .mini-rank-thumb{
    position:relative; width:100%; aspect-ratio:16/10; overflow:hidden;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }
  .mini-rank-item:hover .mini-rank-thumb{ outline:5px solid var(--accent); outline-offset:0; }
  /* 基本形：サムネの上に乗らない文脈（注目ニュースランキング／人気投資家ランキング）でも
     同じサイズ・センタリングになるようにする。10のような2桁でも幅がズレない。 */
  .mini-rank-num{
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    width:26px; height:26px; box-sizing:border-box;
    font-family:var(--font-mono); font-weight:700; font-size:.82rem; line-height:1;
    border-radius:4px;
    background: hsl(0 0% 0% / .08); color:var(--text-sub);
  }
  body.dark .mini-rank-num{ background: hsl(0 0% 100% / .14); }
  /* サムネ上オーバーレイになる文脈（24時間アクセスランキング等）はこちらで上書き */
  .mini-rank-item .mini-rank-num{
    position:absolute; top:8px; left:8px; z-index:1;
    background: hsl(0 0% 100% / .85); color:var(--text-sub);
    box-shadow: 0 2px 6px hsl(0 0% 0% / .35);
  }
  .mini-rank-num.top1{ background:var(--gold); color:#3a2a05; }
  .mini-rank-num.top2{ background:#C7CDD4; color:#2c2c2c; }
  .mini-rank-num.top3{ background:#C98A52; color:#2c1a05; }
  .mini-rank-item .mini-rank-type{ position:absolute; top:8px; right:8px; z-index:1; }
  .mini-rank-caption{
    position:absolute; left:0; right:0; bottom:0;
    background: hsl(0 0% 0% / .55);
    padding:8px 10px;
    display:flex; align-items:center; justify-content:space-between; gap:8px;
  }
  .mini-rank-caption .mini-rank-name{
    font-size:.84rem; font-weight:700; color:#fff; margin:0;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  }
  .mini-rank-caption .mini-rank-meta{ font-size:.72rem; color:hsl(0 0% 100% / .85); font-family:var(--font-mono); margin-top:0; flex-shrink:0; }

  /* ---- 投資家タイムライン ---- */
  .timeline-list{ display:flex; flex-direction:column; }
  .timeline-item{
    display:flex; align-items:center; gap:14px; padding:15px 20px;
    border-top:1px solid var(--glass-border); text-decoration:none; color:inherit;
    transition: background-color .18s;
  }
  .timeline-item:first-child{ border-top:none; }
  .timeline-item:last-child{ padding-bottom:6px; }
  .timeline-item:hover{ background: hsl(0 0% 0% / .03); }
  body.dark .timeline-item:hover{ background: hsl(0 0% 100% / .04); }
  .timeline-avatar{ width:44px; height:44px; border-radius:50%; flex-shrink:0; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
  .timeline-body{ flex:1; min-width:0; }
  .timeline-top{ display:flex; align-items:baseline; gap:8px; margin-bottom:4px; }
  .timeline-name{ font-size:.95rem; font-weight:700; }
  .timeline-time{ font-size:.76rem; color:var(--text-sub); font-family:var(--font-mono); }
  .timeline-text{ font-size:.92rem; color:var(--text-main); line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

  /* 投資家タイムライン一覧ページ限定：複数行表示（top.htmlのプレビューには影響しない） */
  .timeline-list-lg .timeline-item{ padding:18px 22px; gap:16px; }
  .timeline-list-lg .timeline-avatar{ width:48px; height:48px; }
  .timeline-list-lg .timeline-text{
    white-space:normal; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
  }
  .timeline-list-lg .timeline-top .feed-tag{ padding:2px 8px; font-size:.68rem; }

  /* ---- 続きを表示ボタン ---- */
  .load-more-zone{ display:block; width:100%; max-width:728px; margin: 20px 0 34px; }
  .load-more-btn{
    width:648px; max-width:100%; margin:0 auto; display:block; box-sizing:border-box; padding:14px 28px; font-size:.95rem; font-weight:700; cursor:pointer; text-align:center;
    background: var(--glass-bg); color: var(--accent-strong); border:2px solid var(--accent); border-radius:var(--radius-md);
    transition: background-color .2s, color .2s;
  }
  .load-more-btn:hover{ background: var(--accent); color:#fff; }
  body.dark .load-more-btn:hover{ color: var(--text-main); }
  .load-more-btn:disabled{ opacity:.5; cursor:default; }
  .load-more-btn.square-full{ width:100%; max-width:728px; border-radius:0; }
  @media (max-width: 860px){
    .load-more-btn:not(.square-full){ width:calc(100% - 32px); }
  }

  /* ---- フッターメニュー（サイトについて／お問い合わせ／プライバシーポリシー） ---- */
  /* 旧トップバーと同じ配色・挙動。右カラムの位置に合わせて右寄せ */
  .footer-menu-box{
    width:100vw; position:relative; left:50%; transform:translateX(-50%);
    background: var(--footer-menu-bg);
    box-shadow: 0 -4px 14px -6px hsl(0 0% 0% / .18);
  }
  /* ダークモード：人気投資家の帯より深く、フッターより少し明るいネイビー */
  body.dark .footer-menu-box{ background: hsl(var(--hue) 38% 12.5%); box-shadow: 0 -4px 14px -6px hsl(0 0% 0% / .5); }
  /* 縦方向のpaddingは持たせず、リンク側の padding で帯の高さを作る。
     これでホバー時の背景が帯の縦幅いっぱいに広がる */
  .footer-menu-inner{ display:flex; justify-content:flex-end; padding:0 24px; }
  .footer-menu-links{ display:flex; align-items:stretch; gap:14px; flex-wrap:wrap; justify-content:flex-end; }
  .footer-menu-links a{
    display:flex; align-items:center;
    text-decoration:none; color: hsl(0 0% 100% / .85); font-size:.78rem;
    padding:14px 9px; border-radius:4px; transition: background .18s;
  }
  .footer-menu-links a:hover{ background: hsl(0 0% 0% / .18); }
  body.dark .footer-menu-links a{ color: hsl(0 0% 78% / .85); }
  body.dark .footer-menu-links a:hover{ background: hsl(0 0% 100% / .1); }

  /* ---- 人気投資家ランキング ---- */
  .popular-panel{ padding:22px; }
  .popular-divider{ width:100vw; position:relative; left:50%; transform:translateX(-50%); }
  .popular-band{
    width:100vw; position:relative; left:50%; transform:translateX(-50%);
    padding: 40px 0 50px;
    background-color: hsl(var(--hue), 33%, 49%);
    /* ヘッダーの下向きシャドウ(0 4px 14px -6px / .12)と対になるよう、同じ数値を上向きに */
    box-shadow: 0 -4px 14px -6px hsl(0 0% 0% / .12);
  }
  body.dark .popular-band{
    background-color: hsl(var(--hue), 36%, 16.5%);   /* ダークモード：下へ行くほど深くなる。人気投資家の帯(約16%) → フッターメニュー(約12%) → フッター(約8%) */
    box-shadow: 0 -4px 14px -6px hsl(0 0% 0% / .4);
  }
  .popular-heading{
    display:flex; align-items:center; justify-content:center; gap:10px;
    text-align:center; font-family: var(--font-display); font-size:1.45rem; font-weight:700; margin:36px 0 26px; color:#fff;
  }
  body.dark .popular-heading{ color: hsl(0 0% 80%); }
  .popular-heading svg{ width:28px; height:28px; fill:var(--gold); }
  .popular-cols{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
  .popular-mobile-tabs{ display:none; }
  .popular-col-title{ display:flex; align-items:center; justify-content:center; gap:8px; font-family: var(--font-display); font-size:1.05rem; font-weight:700; margin-bottom:18px; padding-bottom:10px; border-bottom:2px solid var(--accent-strong); text-align:center; }
  .popular-col-title svg{ width:20px; height:20px; flex-shrink:0; color: var(--accent-strong); }
  .popular-list{ display:flex; flex-direction:column; }
  .popular-list-item{
    display:flex; align-items:center; gap:12px;
    padding:10px 4px; border-top:1px solid var(--glass-border);
    text-decoration:none; color:inherit;
    transition: background-color .15s;
  }
  .popular-list-item:first-child{ border-top:none; }
  .popular-list-item:hover{ background: var(--accent-soft); }
  .popular-list-rank{
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    width:26px; height:26px; box-sizing:border-box;
    font-family:var(--font-mono); font-weight:700; font-size:.82rem; line-height:1;
    border-radius:4px;
    background: hsl(0 0% 0% / .08); color:var(--text-sub);
  }
  body.dark .popular-list-rank{ background: hsl(0 0% 100% / .14); }
  .popular-list-rank.top1{ background:var(--gold); color:#3a2a05; }
  .popular-list-rank.top2{ background:#C7CDD4; color:#2c2c2c; }
  .popular-list-rank.top3{ background:#C98A52; color:#2c1a05; }
  .popular-list-thumb{
    width:44px; height:44px; border-radius:8px; flex-shrink:0;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  }
  .popular-list-name{ font-size:.88rem; font-weight:700; color: var(--text-main); }

  /* ---- フッター (背景色を濃く変更・視認性強化) ---- */
  footer{
    width:100vw; position:relative; left:50%; transform:translateX(-50%);
    padding: 50px 0 60px;
    background-color: var(--footer-bg);
  }
  .footer-notice{
    max-width: 920px; margin: 0 auto; padding: 22px 32px;
    background: none;
    border: none;
    box-shadow: none;
    color: #E2E8F0; font-size: .85rem; line-height: 1.7;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    text-align: left;
  }
  .footer-notice-text{ display:flex; align-items:center; gap:14px; flex:1; min-width:0; }
  .footer-notice strong{ color: #FFFFFF; font-weight:700; }
  body.dark .footer-notice{ color: hsl(210 14% 62%); }
  body.dark .footer-notice strong{ color: hsl(0 0% 80%); }
  body.dark .footer-notice svg{ color: #3AA86E; }
  .footer-notice svg{ width: 22px; height: 22px; flex-shrink: 0; color: #4ADE80; }
  .footer-logo{
    display:block; width:260px; height:100px; flex-shrink:0;
    background-image:url('logo.png'); background-size:contain; background-repeat:no-repeat; background-position:right center;
  }
  body.dark .footer-logo{ background-image:url('logo-dark.png'); }

  /* 336px固定の右カラムを両立できない幅では、右カラムをメインカラムの下に
     スタックする（728pxのメインカラム自体はここまで minmax(0,1fr) で
     フルードに縮んでいる） */
  @media (max-width: 900px){
    .layout{ grid-template-columns: minmax(0, 1fr); }
    section{ min-width:0; }
    aside{ width:100%; min-width:0; }
    .sticky-sidebar-panel{ position:static; }
    .layout.layout-with-category{ grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap:20px; }
    .layout.layout-with-category > .layout-top-ad{ grid-column:1; grid-row:1; margin-top:0; }
    .layout.layout-with-category > .layout-cat-aside{ grid-column:1; grid-row:2; }
    .layout.layout-with-category > section{ grid-column:1; grid-row:3; }
    .layout.layout-with-category > aside:not(.layout-cat-aside){ grid-column:1; grid-row:4; }
    .category-filter-vertical{
      width:100%; box-sizing:border-box;
      flex-direction:row; gap:6px; position:static; overflow-x:auto;
      margin-bottom:0; scrollbar-width:none; -ms-overflow-style:none;
    }
    .category-filter-vertical::-webkit-scrollbar{ display:none; }
    .category-filter-tab{ flex-shrink:0; white-space:nowrap; }
  }

  @media (max-width: 860px){
    .wrap{ padding:0 14px; }

    .header-inner{ justify-content:flex-end; min-height:90px; }
    .logo{ position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); }
    /* サイトナビ用ハンバーガー（右：アクセント背景+白い線）とは色を反転させ、
       白背景+アクセントの縁取り+アクセントの線、にしてひと目で区別できるようにする */
    .mobile-toc-btn.is-enabled{ display:flex; margin-right:auto; background:#fff; border:1.5px solid var(--accent); color: var(--accent); }
    body.dark .mobile-toc-btn.is-enabled{ background: hsl(220 22% 16%); }
    .mobile-toc-btn.is-enabled:hover{ background: var(--accent-soft); }
    .mobile-menu-btn{ display:flex; background: var(--accent); border-color: var(--accent); color:#fff; }
    .mobile-menu-btn:hover{ background: var(--accent-strong); }
    .header-right{ display:none; }
    .search-area{ display:none; }

    .footer-notice{ flex-direction:column; align-items:flex-end; gap:16px; }
    .footer-logo{ width:160px; height:62px; }

    .feed-grid{ width:100%; flex-direction:column; }
    .grid-card{ width:100%; }
    .feed-list{ width:100%; }
    .ad-row-336{ width:100%; flex-direction:column; align-items:center; gap:16px; }
    .ad-row-336 .ad-slot:nth-child(2){ display:none; }
    .load-more-zone{ width:100%; }
    .content-tabs{ width:100%; }
    
    .featured-body{ padding:24px 20px; }
    .featured-thumb{ width:100%; height:auto; aspect-ratio:16/9; }
    .grid-thumb{ width:100%; height:auto; aspect-ratio: 16/9; }
    .ranking-panel{ height:auto; }
    .ranking-head{ flex-wrap:wrap; row-gap:8px; padding:14px 16px 10px; justify-content:flex-start; }
    .ranking-title-badge{ position:static; margin-right:auto; }
    .ranking-tabs{ flex-wrap:wrap; }
    .rtab{ padding:5px 9px; font-size:.74rem; }
    .ranking-grid{
      display:flex; grid-template-columns:none; overflow-x:auto; scroll-snap-type:x mandatory;
      gap:10px; padding-bottom:2px; -webkit-overflow-scrolling:touch; scrollbar-width:none;
    }
    .ranking-grid::-webkit-scrollbar{ display:none; }
    .rank-slot{ flex:0 0 auto; width:62%; min-height:180px; scroll-snap-align:start; padding:22px 14px; }
    .rank-icon{ width:34px; height:34px; margin-bottom:8px; }
    .rank-slot .rname{ font-size:1rem; }
    .rank-slot .rdelta{ font-size:.8rem; }
    .popular-mobile-tabs{ display:flex; gap:8px; margin-bottom:16px; }
    .pmtab{
      flex:1; padding:9px; border:1px solid #fff; background:#fff;
      border-radius: var(--radius-sm); font-size:.85rem; font-weight:700;
      color: var(--accent-strong); cursor:pointer; transition: background-color .15s, color .15s, border-color .15s;
    }
    .pmtab.active{ background: var(--accent); color:#fff; border-color: var(--accent); }
    /* ダークモード：選んでいないタブは暗い面＋灰色の文字、選んでいるタブは、ネイビーの面＋明るい青の文字＋うすい縁取り（白文字にしない） */
    body.dark .pmtab{ background: hsl(0 0% 100% / .06); border-color: hsl(0 0% 100% / .12); color: var(--text-sub); }
    body.dark .pmtab.active{ background: var(--hover-bg); color: var(--hover-ink); border-color: color-mix(in srgb, var(--accent-strong) 60%, transparent); }
    .popular-cols{ display:block; }
    .popular-panel{ display:none; }
    .popular-panel.pm-active{ display:block; }
    .ranking-row{ flex-direction:column; }
    .ranking-row .ad-336x280{ display:none; }
    .feed-row{ flex-direction:column; width:100%; height:auto; }
    .feed-thumb{ width:100%; height:180px; }
    .feed-time{ margin-left:0; }
    .stream-grid{ grid-template-columns: repeat(2, 1fr); gap:20px 14px; }
  }

  @media (max-width: 560px){
    .stream-grid{ grid-template-columns: 1fr; }
  }

  @media (max-width: 480px){
    .live-item{ flex-wrap:wrap; }
    .live-thumb-wrap{ width:100%; height:auto; aspect-ratio:16/9; }
    .live-viewers-block{ margin-left:auto; }
  }
  body{ overflow-x: hidden; }

/* ============================================================
   投資家名鑑（Wiki一覧）ページ専用
   ============================================================ */
.list-page-title{
  font-family: var(--font-display); font-size:1.7rem; font-weight:800;
  line-height:1.4; margin-bottom:10px; color: var(--text-main);
}
.page-lead{ font-size:.92rem; line-height:1.9; color: var(--text-sub); margin-bottom:28px; }

.wiki-toolbar{ padding:22px; margin-bottom:30px; }

.wiki-search-box{
  display:flex; align-items:center; width:100%; height:46px; box-sizing:border-box;
  background: hsl(0 0% 100% / .8); border:1px solid var(--glass-border);
  border-radius: var(--radius-sm); overflow:hidden; margin-bottom:22px;
}
body.dark .wiki-search-box{ background: hsl(0 0% 100% / .06); }
.wiki-search-box input{
  flex:1; height:100%; border:none; background:transparent; padding:0 16px;
  font-size:.92rem; color:var(--text-main); outline:none; min-width:0;
}
.wiki-search-box input::placeholder{ color: var(--text-sub); }
.wiki-search-box .search-btn{
  width:46px; height:100%; flex-shrink:0; border:none; background:var(--accent);
  color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition: background-color .15s;
}
.wiki-search-box .search-btn svg{ width:18px; height:18px; }
.wiki-search-box .search-btn:hover{ background: var(--accent-strong); }

.wiki-toolbar-label{ font-size:.72rem; font-weight:700; color:var(--text-sub); margin: 0 0 9px; letter-spacing:.03em; }

.kana-index{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:22px; }
.kana-btn{
  width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--glass-border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size:.85rem; font-weight:700; color:var(--text-main);
  text-decoration:none; background: hsl(0 0% 100% / .5);
  transition: background-color .15s, color .15s, border-color .15s;
}
body.dark .kana-btn{ background: hsl(0 0% 100% / .05); }
.kana-btn:hover{ background: var(--accent); color:#fff; border-color: var(--accent); }
.kana-btn.is-disabled{ opacity:.32; pointer-events:none; }

.style-tag-filter{ display:flex; flex-wrap:wrap; gap:8px; }
.style-tag-btn{
  height:32px; padding:0 15px; border:1px solid var(--glass-border); border-radius:999px;
  background: hsl(0 0% 100% / .5); color:var(--text-sub); font-size:.8rem; font-weight:600;
  cursor:pointer; transition: background-color .15s, color .15s, border-color .15s;
}
body.dark .style-tag-btn{ background: hsl(0 0% 100% / .05); }
.style-tag-btn:hover{ border-color: var(--accent); color: var(--accent-strong); }
.style-tag-btn.active{ background: var(--accent); color:#fff; border-color: var(--accent); }

.wiki-kana-group{ margin-bottom:32px; scroll-margin-top:24px; }
.wiki-kana-group.is-hidden{ display:none; }
.wiki-list{ display:flex; flex-direction:column; }
/* 一覧カードの中に見出し（例：あ／4件）を内包するタイトルバー。用語集・格言集など複数ページで共用 */
.term-list-head{
  display:flex; align-items:center; gap:12px;
  padding:12px 18px;
  border-bottom:1px solid var(--glass-border);
}
.term-list-badge{
  width:50px; height:50px; border-radius:8px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.6rem;
}
.term-list-count{ margin-left:auto; font-size:1rem; color: var(--text-sub); font-family: var(--font-mono); }

/* サイドバー：右カラム最上部の広告（実広告サイズぴったり・枠なし。
   実際の広告タグが入る想定のため、プレースホルダー装飾は付けない） */
.sidebar-ad-slot{
  width:100%; max-width:336px; aspect-ratio:336/280; margin:0 0 24px;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-sub); font-family: var(--font-mono); font-size:.7rem; letter-spacing:.03em;
}
/* 右カラムは300pxだが、広告枠だけは実測336pxを確保（アドセンスのレスポンシブが
   親要素の実測幅で判定するため、300pxのままだと336×280相当の広告が出せない）。
   はみ出た分は右側に流す。スマホは右カラムが100%幅で積み重なるため対象外。 */
@media (min-width: 900px){
  .layout > aside{ overflow:visible; }
  .layout > aside .glass{ overflow:visible; }
  .sidebar-ad-slot{ width:336px; }
}

/* モックアップ比較用：336pxと300pxを枠付きで並べて確認できるようにする表示
   （window.SIDEBAR_AD_HTML で差し替えて使う。本番の広告タグには使わない） */
.ad-size-compare{ display:flex; gap:16px; align-items:flex-start; margin:0 0 24px; flex-wrap:wrap; }
.ad-size-compare-box{
  border: 2px dashed hsl(0 0% 55%); background: hsl(0 0% 50% / .08);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  color: hsl(0 0% 40%); font-family: var(--font-mono); font-size:.7rem; letter-spacing:.03em;
  aspect-ratio:336/280; flex-shrink:0;
}
body.dark .ad-size-compare-box{ border-color:hsl(0 0% 55%); background:hsl(0 0% 100% / .06); color:hsl(0 0% 72%); }
.ad-size-compare-box.w336{ width:336px; }
.ad-size-compare-box.w300{ width:300px; }

/* あ行などの見出し：右カラムの section-title（コーナー三角+上ライン）とは
   あえて別デザインにした、インデックス用のディバイダー。
   バッジの左端を、下の投資家アイコン（.wiki-item の左padding18px分）に揃える */
.kana-divider{
  display:flex; align-items:center; gap:14px; margin:0 0 14px; padding-left:18px; scroll-margin-top:24px;
}
.kana-divider-badge{
  width:38px; height:38px; border-radius:10px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.05rem;
}
.kana-divider-line{ flex:1; height:1px; background: var(--glass-border); }
.kana-divider-count{
  flex-shrink:0; font-family: var(--font-mono); font-size:.72rem; font-weight:500;
  color: var(--text-sub);
}

.wiki-item{
  display:flex; align-items:center; gap:14px; padding:13px 18px;
  border-top:1px solid var(--glass-border); text-decoration:none; color:inherit;
  transition: background-color .15s; position:relative;
}
.wiki-item.is-hidden{ display:none; }
.wiki-item:first-child{ border-top:none; }
.wiki-item:hover{ background: hsl(0 0% 0% / .03); }
body.dark .wiki-item:hover{ background: hsl(0 0% 100% / .04); }

/* 詳細ページへのCTA。普段は非表示、行にホバーしたときだけ右側に浮かび上がる。
   スマホはホバー概念が無く常に余白も少ないため出さない（下の@mediaで非表示） */
.wiki-item-cta{
  position:absolute; right:18px; top:50%; transform:translateY(-50%);
  padding:7px 18px; border-radius:999px; white-space:nowrap;
  background: var(--accent); color:#fff; font-size:.78rem; font-weight:700;
  opacity:0; pointer-events:none; transition: opacity .15s;
}
.wiki-item:hover .wiki-item-cta{ opacity:1; pointer-events:auto; }

.wiki-item-icon{
  width:44px; height:44px; border-radius: var(--radius-sm); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color:#fff; font-family: var(--font-display); font-weight:700; font-size:1.05rem;
}
.wiki-item-body{ flex:1; min-width:0; }
.wiki-item-name{ font-size:.95rem; font-weight:700; color: var(--text-main); margin-bottom:3px; padding-left:2px; }
.wiki-item-meta{ display:flex; align-items:center; gap:8px; font-size:.78rem; color: var(--text-sub); min-width:0; }
.wiki-item-style-tag{
  flex-shrink:0; font-size:.68rem; font-weight:700; padding:2px 9px; border-radius:999px;
  background: var(--accent-soft); color: var(--accent-strong);
}
.wiki-item-achievement{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.wiki-empty-note{ padding:34px 18px; text-align:center; color:var(--text-sub); font-size:.85rem; }

/* サイドバー：新着・更新の投資家（.sidebar-blockの左右paddingを打ち消して
   リンクの当たり判定・ホバー背景を枠の横幅いっぱいに広げる） */
.new-investor-list{ display:flex; flex-direction:column; margin: 0 -22px -6px; }
.new-investor-item{
  display:flex; align-items:center; gap:10px; padding:11px 22px;
  border-top:1px solid var(--glass-border); text-decoration:none; color:inherit;
  transition: background-color .15s;
}
.new-investor-item:first-child{ border-top:none; }
.new-investor-item:last-child{ padding-bottom:17px; border-radius:0 0 var(--radius-lg) var(--radius-lg); }
.new-investor-item:hover{ background: var(--accent-soft); }
.new-badge{
  flex-shrink:0; font-size:.62rem; font-weight:800; padding:3px 7px; border-radius:4px;
  background: var(--gold); color:#3a2a05; letter-spacing:.02em;
}
.new-investor-name{ font-size:.85rem; font-weight:700; color: var(--text-main); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width: 880px){
  .list-page-title{ font-size:1.4rem; }
  .kana-btn{ width:31px; height:31px; font-size:.8rem; }
  .wiki-item-meta{ flex-wrap:wrap; }
  .wiki-item-cta{ display:none; }
}

/* ============================================================
   投資家Wiki 個別ページ：インフォボックス（右カラム最上部）
   ============================================================ */
.wiki-infobox{ padding:26px 22px; text-align:center; margin-bottom:34px; }
.wiki-infobox-icon{
  width:72px; height:72px; border-radius: var(--radius-md); margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color:#fff; font-family: var(--font-display); font-weight:800; font-size:1.7rem;
}
.wiki-infobox-name{ font-family: var(--font-display); font-weight:800; font-size:1.15rem; color: var(--text-main); margin-bottom:10px; }
.wiki-infobox-tags{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-bottom:14px; }

.wiki-infobox-social{ display:flex; justify-content:center; gap:10px; margin-bottom:18px; }
.wiki-infobox-social-btn{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--glass-border); color: var(--text-sub); background: hsl(0 0% 100% / .5);
  transition: background-color .15s, color .15s, border-color .15s;
}
body.dark .wiki-infobox-social-btn{ background: hsl(0 0% 100% / .05); }
.wiki-infobox-social-btn svg{ width:16px; height:16px; }
.wiki-infobox-social-btn:hover{ background: var(--accent); border-color: var(--accent); color:#fff; }

.wiki-infobox-lead{
  font-size:.82rem; line-height:1.85; color: var(--text-sub); text-align:left;
  padding-top:16px; margin-bottom:4px; border-top:1px solid var(--glass-border);
}
.wiki-infobox-stats{ margin:14px 0 0; }
.wiki-infobox-stats-row{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding:9px 0; border-top:1px solid var(--glass-border); font-size:.8rem;
}
.wiki-infobox-stats-row:first-child{ border-top:none; }
.wiki-infobox-stats dt{ color: var(--text-sub); font-family: var(--font-mono); font-size:.68rem; letter-spacing:.02em; flex-shrink:0; }
.wiki-infobox-stats dd{ margin:0; font-weight:700; color: var(--text-main); text-align:right; }

/* ============================================================
   投資家Wiki 個別ページ：タブ直上の広告／メインカラムの枠／関連リンク
   ============================================================ */
.article-top-ad{ margin: 0 0 22px; }

/* メインカラムをコーナーブラケット付きの枠で囲む（既存の.corner-frameを流用） */
.wiki-main-frame{ position:relative; padding:34px; margin-bottom:0; }

.related-links{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:6px; }
.related-link-item{
  display:inline-flex; align-items:center; height:34px; padding:0 16px;
  border:1px solid var(--glass-border); border-radius:999px;
  background: hsl(0 0% 100% / .5); color: var(--text-main); text-decoration:none;
  font-size:.8rem; font-weight:600; transition: background-color .15s, border-color .15s, color .15s;
}
body.dark .related-link-item{ background: hsl(0 0% 100% / .05); }
.related-link-item:hover{ background: var(--accent); border-color: var(--accent); color:#fff; }

/* ============================================================
   投資家Wiki 個別ページ専用のレイアウト（.wiki-detail-layout）
   通常の .layout とは別クラス・別定義にしてあるので、他ページの
   .layout（news/live/timelineなど）には一切影響しない。

   右カラムは「プロフィール＋共通サイドバー」を .wiki-side-col という
   1つのグリッドアイテム（内部はflexで縦積み）にまとめている。
   これにより右カラムの高さが本文側の高さに引っ張られず、
   プロフィールと共通サイドバーの間に不自然な空白ができない。

   モバイルだけ .wiki-side-col を display:contents で解体し、
   プロフィールと共通サイドバーを別々の位置（本文の上／下）に
   配置し直せるようにしている。

   目次あり（.has-toc）：「パンくず+広告」はTOC分の幅も使って全幅表示のまま、
   目次だけが本文と同じ高さから始まる（＝広告が狭くならない）。
   ============================================================ */
.wiki-detail-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  grid-template-areas: "top side" "main side";
  gap:22px; padding-bottom:70px;
}
.wiki-detail-layout > .wiki-top-block{ grid-area: top; min-width:0; }
.wiki-detail-layout > section{ grid-area: main; min-width:0; }
.wiki-side-col{ grid-area: side; align-self:stretch; display:flex; flex-direction:column; gap:22px; }
.wiki-detail-layout .wiki-infobox{ grid-area: infobox; margin-bottom:0; }
.wiki-detail-layout aside{ grid-area: aside; background:none; border:none; box-shadow:none; }
.wiki-detail-layout aside > .glass{
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .08) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
}
body.dark .wiki-detail-layout aside > .glass{ box-shadow: 0 4px 16px -2px hsl(0 0% 0% / .35) !important; }

/* 「このサイトを登録」：追尾はさせず、本文の一番下（トップページへ→・目次が
   止まる位置と同じ底辺）に固定設置。asideをmainと同じ高さまで伸ばした上で、
   ランキング枠を包む中立なラッパー（.rank-sticky-wrap）にflex:1を与えて
   残りの縦スペースを埋めさせている。stickyの効いた要素そのものに
   flex-growを与えると追尾やクリック判定が壊れることがあるため、
   「伸ばす役目」と「stickyする役目」を別の要素に分けている。

   本当の原因は「このサイトを登録」自身が持っていた共通の margin-bottom:34px
   でした。登録ブロックは常に一番最後の要素なので、この下マージンは何にも
   使われないまま、登録ブロックの「見た目上の底」をasideの本当の底（＝本文の
   底）より34px上に押し上げていました。ここで打ち消し、代わりにランキング〜
   登録の間隔は margin-top 側で作っている。 */
@media (min-width: 901px){
  .wiki-side-col > aside{
    flex:1 1 auto; min-height:0;
    display:flex; flex-direction:column;
  }
  .wiki-side-col aside > *{ flex-shrink:0; }
  .wiki-side-col .rank-sticky-wrap{ flex:1 1 auto; min-height:0; }
  .wiki-side-col .rank-frame-block{ margin-bottom:0; }
  .wiki-side-col .site-register-block{ margin-top:22px; margin-bottom:0; }
}

/* パンくず＋広告：グリッドの行間隔（22px）だけで下との間隔を作るので、
   breadcrumb自身の下マージンはここでは0にして二重に空かないようにする */
.wiki-top-block .breadcrumb{ margin-bottom:0; }

/* 目次：デフォルトは非表示。JSが見出し数の条件を満たしたときだけ
   親に .has-toc を付け、左端に3カラム目として追加する。
   「top」行はtoc+main分の幅もまたいで全幅のままにし、広告が狭くならない
   ようにしている。目次自体は2行目（本文と同じ高さ）から始まる。 */
.wiki-toc{ display:none; }
.wiki-detail-layout.has-toc{
  grid-template-columns: 170px minmax(0, 1fr) 336px;
  grid-template-areas: "top top side" "toc main side";
}
.wiki-detail-layout.has-toc > .wiki-toc{
  display:block; grid-area: toc; position:sticky; top:22px; align-self:start;
}

@media (max-width: 900px){
  .wiki-detail-layout,
  .wiki-detail-layout.has-toc{
    grid-template-columns: 1fr;
    grid-template-areas: "top" "infobox" "main" "aside";
  }
  /* モバイルではプロフィールと共通サイドバーを別位置に再配置したいので、
     ラッパーをdisplay:contentsで解体して個別のグリッドアイテムに戻す */
  .wiki-side-col{ display:contents; }
  .wiki-detail-layout.has-toc > .wiki-toc{ display:none; }
}

/* 目次の中身：右カラムのインフォボックスと揃えたカード見た目 ＋
   ナンバリングで「目次らしさ」を出す */
.wiki-toc.glass{ padding:20px 16px; }
.wiki-toc-title{
  display:flex; align-items:center; gap:8px;
  font-family: var(--font-display); font-weight:800; font-size:.85rem; color: var(--text-main);
  margin-bottom:12px; padding-bottom:10px; border-bottom:1px solid var(--glass-border);
}
.wiki-toc-title svg{ width:16px; height:16px; flex-shrink:0; color: var(--accent); }
.wiki-toc-list{ list-style:none; margin:0 -16px; padding:0; display:flex; flex-direction:column; gap:3px; }
.wiki-toc-list a{
  display:flex; align-items:center; gap:9px; width:100%; box-sizing:border-box;
  padding:7px 16px; border-radius:0;
  font-size:.79rem; line-height:1.4; color: var(--text-sub); text-decoration:none;
  transition: background-color .15s, color .15s;
}
.wiki-toc-list a:hover{ background: hsl(0 0% 0% / .04); color: var(--text-main); }
body.dark .wiki-toc-list a:hover{ background: hsl(0 0% 100% / .05); }
.wiki-toc-num{
  width:18px; height:18px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:.65rem; font-weight:700;
  background: var(--accent-soft); color: var(--accent-strong);
  transition: background-color .15s, color .15s;
}
.wiki-toc-list a.active{ color: var(--accent-strong); font-weight:700; }
.wiki-toc-list a.active .wiki-toc-num{ background: var(--accent); color:#fff; }

.wiki-main-frame h2{ scroll-margin-top:20px; }

/* ============================================================
   用語・格言ページ用の「本文内目次」。投資家詳細ページのような
   左カラム固定＋スクロール追従は行わず、タイトル直下にアコーディオンで
   差し込むだけのシンプルな作り（見出しが4個以上のときだけJSで生成）。
   中身のリスト自体は .wiki-toc-list を流用し、箱のデザインだけ
   本文にネストしても浮きすぎないよう軽くしている。
   ============================================================ */
.wiki-inline-toc{
  border:1px solid var(--glass-border); border-radius: var(--radius-md);
  background: var(--glass-bg); margin:4px 0 32px; overflow:hidden;
}
.wiki-inline-toc-toggle{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  padding:14px 18px; background:none; border:none; cursor:pointer;
  font-family: var(--font-display); font-weight:800; font-size:.95rem; color: var(--text-main);
}
.wiki-inline-toc-toggle-label{ display:flex; align-items:center; gap:8px; }
.wiki-inline-toc-toggle-label svg{ width:16px; height:16px; color: var(--accent); }
.wiki-inline-toc-chevron{ width:16px; height:16px; color: var(--text-sub); transition: transform .2s; }
.wiki-inline-toc.is-open .wiki-inline-toc-chevron{ transform:rotate(180deg); }
.wiki-inline-toc-body{ display:none; padding:0 18px 14px; }
.wiki-inline-toc.is-open .wiki-inline-toc-body{ display:block; }
.wiki-inline-toc .wiki-toc-list{ margin:0; }
.wiki-inline-toc .wiki-toc-list a{ padding:7px 6px; border-radius:6px; }

/* ============================================================
   Wiki本文用の見出し（プロフィール／投資スタイル／代表実績）。
   ニュース記事の角括弧見出し（.article-body h2）とも、モジュール用の
   .boxed-heading とも別デザインにして「Wikiらしさ」を出している。
   下線＋小さな■マークの、事典見出し風のシンプルな構成。
   マークはCSSの::beforeで自動生成しているので、HTML側でアイコン用の
   spanや文字を毎回入力する必要はなく、h2にクラスを付けるだけでよい。
   .article-body h2 と同じ要素・同じ特異度なので、後勝ちで確実に
   上書きされるよう .article-body の文脈まで含めて指定している。
   ============================================================ */
.article-body h2.wiki-section-heading{
  display:flex; align-items:center; gap:12px;
  font-family: var(--font-display); font-weight:800; font-size:1.3rem; letter-spacing:.02em;
  color: var(--text-main);
  padding:0 0 12px; margin:44px 0 20px;
  border:none; border-bottom:3px solid var(--accent);
}
.article-body h2.wiki-section-heading::before{
  content:''; position:static; display:inline-block; flex-shrink:0;
  width:11px; height:11px; margin:0 2px; border:none;
  background: var(--accent); transform:rotate(45deg);
}
.article-body h2.wiki-section-heading::after{ content:none; }
.article-body h2.wiki-section-heading:first-child{ margin-top:28px; }

/* Wiki本文用のh3（メリット／デメリットなど小見出し）。斜めブラケットは使わず、
   小さな正方形マーカー＋太字のシンプルな見た目にする */
.article-body h3.wiki-subheading{
  display:flex; align-items:center; gap:10px;
  font-size:1.05rem; font-weight:700; color: var(--text-main);
  padding:0; margin:30px 0 12px;
  border:none;
}
.article-body h3.wiki-subheading::before,
.article-body h3.wiki-subheading::after{ content:none; }
.wiki-subheading-mark{
  display:inline-block; width:9px; height:9px; border-radius:2px;
  background: var(--accent); flex-shrink:0;
}

/* Wiki本文用のblockquote。斜体・グレー文字をやめて通常の黒文字にする */
.article-body blockquote.wiki-quote{
  font-style:normal; color: var(--text-main);
}

/* Wiki本文用のtable。使い方の例などの計算を、余白の大きいリストや
   縦線つきの引用ボックスではなく、シンプルな罫線表で見せる */
.article-body table{
  width:100%; border-collapse:collapse; margin:20px 0 26px; font-size:.95rem;
}
.article-body th, .article-body td{
  padding:10px 16px; border:1px solid var(--glass-border); text-align:left; color: var(--text-main);
}
.article-body th{ background: var(--accent-soft); font-weight:700; white-space:nowrap; }

/* タイトル下のバナー（YouTubeのチャンネルバナーのような横長画像枠。
   実写真が用意でき次第、背景画像に差し替える想定のプレースホルダー） */
.wiki-title-banner{
  width:100%; aspect-ratio: 4.5 / 1; border-radius: var(--radius-md);
  margin: 20px 0 28px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: hsl(0 0% 100% / .85); font-family: var(--font-display); font-weight:800;
  font-size:1.6rem; letter-spacing:.05em;
}
@media (max-width: 560px){
  .wiki-title-banner{ aspect-ratio: 3 / 1; font-size:1.15rem; }
}

/* ============================================================
   見出し：アイコン付き枠見出し（Font Awesome不要・既存のSVGアイコンを流用）
   ============================================================ */
.boxed-heading{
  position:relative; display:flex; align-items:center;
  margin:0 0 16px; padding:0.7em 1em;
  border:1px solid var(--accent); border-left:2.5em solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  font-family: var(--font-display); font-weight:800; font-size:1.05rem; color: var(--text-main);
}
.boxed-heading-icon{
  /* border-left（2.5em幅の色帯）の水平中央に来るよう計算した値：
     帯は [-2.5em, 0] の範囲。アイコン幅1.3emなので中央揃えは -1.9em */
  position:absolute; left:-1.9em; top:50%; transform:translate(0, -50%);
  width:1.3em; height:1.3em; color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.boxed-heading-icon svg{ width:100%; height:100%; display:block; }

/* ============================================================
   動画分析専用カード：横長（左サムネ／右テキスト）のリスト形式
   ============================================================ */
.analysis-video-list{ display:flex; flex-direction:column; gap:14px; margin-bottom:34px; }
.analysis-video-card{
  display:flex; flex-direction:row; align-items:stretch; text-decoration:none; color:inherit;
  border:1px solid var(--glass-border); border-radius: var(--radius-md); overflow:hidden;
  background: var(--glass-bg); transition: box-shadow .2s, transform .2s;
}
.analysis-video-card:hover{ box-shadow: 0 8px 22px -6px hsl(0 0% 0% / .18); transform: translateY(-2px); }
.analysis-video-thumb-wrap{ position:relative; width:200px; flex-shrink:0; aspect-ratio:16/9; }
.analysis-video-thumb{ position:absolute; inset:0; background: linear-gradient(135deg, var(--accent), var(--accent-strong)); }
.analysis-video-play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(0deg, hsl(0 0% 0% / .25), transparent 45%);
}
.analysis-video-play svg{ width:32px; height:32px; filter: drop-shadow(0 2px 5px hsl(0 0% 0% / .35)); }
.analysis-video-duration{
  position:absolute; right:7px; bottom:7px; padding:2px 6px; border-radius:4px;
  background: hsl(0 0% 0% / .68); color:#fff; font-family: var(--font-mono); font-size:.68rem; font-weight:700;
}
.analysis-video-body{ flex:1; min-width:0; padding:12px 18px; display:flex; flex-direction:column; justify-content:center; }
.analysis-video-title{
  font-size:.9rem; font-weight:700; line-height:1.55; color: var(--text-main); margin-bottom:8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.analysis-video-meta{ display:flex; align-items:center; gap:8px; font-size:.75rem; color: var(--text-sub); }
.analysis-video-meta .analysis-video-name{ font-weight:700; color: var(--text-sub); }

@media (max-width: 560px){
  .analysis-video-thumb-wrap{ width:120px; }
  .analysis-video-body{ padding:10px 12px; }
}

/* ============================================================
   SNS分析／ニュース用のカード（サムネの代わりにアイコンを使う、
   動画カードと視覚的な重さを揃えたバージョン）
   ============================================================ */
.analysis-card-list{ display:flex; flex-direction:column; gap:14px; margin-bottom:34px; }
.analysis-card{
  display:flex; align-items:center; gap:14px; padding:16px 18px;
  border:1px solid var(--glass-border); border-radius: var(--radius-md);
  background: var(--glass-bg); text-decoration:none; color:inherit;
  transition: box-shadow .2s, transform .2s;
}
.analysis-card:hover{ box-shadow: 0 8px 22px -6px hsl(0 0% 0% / .18); transform: translateY(-2px); }
.analysis-card-icon{
  width:44px; height:44px; border-radius: var(--radius-sm); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color:#fff;
}
.analysis-card-icon svg{ width:22px; height:22px; }
.analysis-card-body{ flex:1; min-width:0; }
.analysis-card-title{
  font-size:.9rem; font-weight:700; line-height:1.5; color: var(--text-main); margin-bottom:7px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.analysis-card-meta{ display:flex; align-items:center; gap:8px; font-size:.75rem; color: var(--text-sub); }
.analysis-card-tag{
  flex-shrink:0; font-size:.68rem; font-weight:700; padding:2px 9px; border-radius:999px;
  background: var(--accent-soft); color: var(--accent-strong);
}

/* ============================================================
   配信中インジケーター（インフォボックスの最終更新の下に表示）。
   サイトのテーマカラーとは別に、配信＝赤、という一般的な認識に
   合わせてLIVE専用の色を使っている。
   ============================================================ */
.wiki-live-indicator{
  display:flex; flex-direction:column; gap:8px;
  margin:0 -22px; padding:14px 22px 16px; border-top:1px solid var(--glass-border);
  text-decoration:none; color:inherit; text-align:left;
  transition: background-color .15s;
}
.wiki-live-indicator:hover{ background: hsl(0 0% 0% / .04); }
body.dark .wiki-live-indicator:hover{ background: hsl(0 0% 100% / .05); }
.wiki-live-top{ display:flex; align-items:center; gap:7px; }
.wiki-live-dot{
  width:8px; height:8px; border-radius:50%; background: hsl(4 85% 55%); flex-shrink:0;
  animation: wiki-live-pulse 1.4s ease-in-out infinite;
}
@keyframes wiki-live-pulse{
  0%, 100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.4; transform:scale(.8); }
}
.wiki-live-label{ font-size:.78rem; font-weight:800; letter-spacing:.02em; color: hsl(4 78% 45%); }
body.dark .wiki-live-label{ color: hsl(4 85% 68%); }
.wiki-live-viewers{ margin-left:auto; font-size:.7rem; font-family: var(--font-mono); color: var(--text-sub); }
.wiki-live-thumb-wrap{ position:relative; width:100%; aspect-ratio:16/9; border-radius: var(--radius-sm); overflow:hidden; }
.wiki-live-thumb{ position:absolute; inset:0; background: linear-gradient(135deg, hsl(4 78% 55%), hsl(340 75% 48%)); }
.wiki-live-play{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background: linear-gradient(0deg, hsl(0 0% 0% / .25), transparent 45%); }
.wiki-live-play svg{ width:28px; height:28px; }
.wiki-live-title{
  font-size:.78rem; line-height:1.5; color: var(--text-main); font-weight:600; text-align:left;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* ============================================================
   配信履歴（数値サマリー＋タイムライン＋過去ログのアコーディオン）
   ============================================================ */
.stream-heatmap-card{ padding:26px; margin-bottom:34px; }

.stream-stats-row{ display:grid; grid-template-columns: repeat(3, 1fr); gap:12px; margin-bottom:18px; }
.stream-stat-box{
  padding:16px 10px; border-radius: var(--radius-md); text-align:center;
  background: hsl(0 0% 0% / .025); border:1px solid var(--glass-border);
}
body.dark .stream-stat-box{ background: hsl(0 0% 100% / .04); }
.stream-stat-value{ font-family: var(--font-display); font-weight:800; font-size:1.4rem; color: var(--accent-strong); }
.stream-stat-label{ font-size:.7rem; color: var(--text-sub); margin-bottom:5px; }

.stream-timeline{ display:flex; flex-direction:column; }
.stream-timeline-item{ display:flex; gap:12px; padding:12px 0; }
.stream-timeline-item + .stream-timeline-item{ border-top:1px solid var(--glass-border); }
.stream-timeline-dot{
  width:9px; height:9px; border-radius:50%; background: var(--accent); flex-shrink:0; margin-top:6px;
}
.stream-timeline-body{ flex:1; min-width:0; }
.stream-timeline-meta{ font-size:.76rem; font-family: var(--font-mono); color: var(--text-sub); margin-bottom:4px; }
.stream-timeline-duration{ color: var(--text-sub); }
.stream-timeline-title{ font-size:.9rem; font-weight:700; color: var(--text-main); margin-bottom:6px; line-height:1.5; }
.stream-timeline-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.stream-timeline-tag{ font-size:.72rem; color: var(--accent-strong); background: var(--accent-soft); padding:2px 8px; border-radius:999px; }

.stream-timeline-latest-badge{
  display:inline-block; font-size:.66rem; font-weight:800; color:#fff;
  background: var(--accent); padding:1px 7px; border-radius:999px; margin-right:2px;
  font-family: var(--font-body);
}

.stream-archive-toggle{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  margin-top:16px; padding:12px; border:1px dashed var(--glass-border); border-radius: var(--radius-sm);
  background:transparent; color: var(--text-sub); font-size:.82rem; font-weight:700; cursor:pointer;
  transition: background-color .15s, color .15s;
}
.stream-archive-toggle:hover{ background: hsl(0 0% 0% / .03); color: var(--text-main); }
body.dark .stream-archive-toggle:hover{ background: hsl(0 0% 100% / .05); }
.stream-archive-chevron{ width:15px; height:15px; transition: transform .2s; flex-shrink:0; }
.stream-archive-toggle.is-open .stream-archive-chevron{ transform: rotate(180deg); }
.stream-archive-chevron.is-open{ transform: rotate(180deg); }
.stream-archive-toggle-bottom{ margin-top:14px; }
.stream-timeline-archive{ margin-top:4px; }

/* 過去ログ：1ヶ月ごとの個別アコーディオン。それぞれ独立して開閉できるので、
   長いログを開いたあとでも、その場ですぐ閉じられる */
.stream-archive-month + .stream-archive-month{ border-top:1px solid var(--glass-border); }
.stream-archive-month-toggle{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  padding:12px 4px; background:transparent; border:none; cursor:pointer;
  font-size:.83rem; font-weight:700; color: var(--text-main);
  transition: color .15s;
}
.stream-archive-month-toggle:hover{ color: var(--accent-strong); }
.stream-archive-month-toggle .stream-archive-chevron{ color: var(--text-sub); }
.stream-archive-month-body{ padding-bottom:6px; }

/* 過去ログ：去年以前は年単位のアコーディオンでさらに1段まとめる。
   開くとその年の月別アコーディオンが中に現れる */
.stream-archive-year + .stream-archive-year{ border-top:1px solid var(--glass-border); }
.stream-archive-year-toggle{
  display:flex; align-items:center; justify-content:space-between; width:100%;
  padding:13px 4px; background:transparent; border:none; cursor:pointer;
  font-family: var(--font-display); font-size:.92rem; font-weight:800; color: var(--text-main);
  transition: color .15s;
}
.stream-archive-year-toggle:hover{ color: var(--accent-strong); }
.stream-archive-year-toggle .stream-archive-chevron{ color: var(--text-sub); }
.stream-archive-year-body{ padding:0 0 6px 14px; border-left:2px solid var(--glass-border); margin-left:4px; }

@media (max-width: 560px){
  .stream-heatmap-card{ padding:18px; }
  .stream-stats-row{ gap:8px; }
  .stream-stat-value{ font-size:1.15rem; }
  .stream-stat-label{ font-size:.64rem; }
}

/* ============================================================
   目次（モバイル用ドロワー）。開閉ボタン自体はヘッダー内（header.js側の
   .mobile-toc-btn）にあり、ここではオーバーレイとドロワーだけを扱う。
   ヘッダー自体は追尾させず、ボタンをヘッダー内に収めることで、スクロール時に
   広告（AdSense等）と重なる可能性を避けている。
   AdSenseの誤クリック誘導ポリシー対策として、オーバーレイ・ドロワーとも
   backdrop-filter でぼかしを入れ、裏の広告が透けて見えたり誤タップの
   対象になったりしないようにしている（サイトナビ用ドロワーと同じ対策）。
   ============================================================ */

.wiki-toc-mobile-overlay{
  display:none; position:fixed; inset:0; background: hsl(0 0% 0% / .45); z-index:998;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity:0; pointer-events:none; transition: opacity .2s;
}
.wiki-toc-mobile-overlay.open{ display:block; opacity:1; pointer-events:auto; }

.wiki-toc-mobile-drawer{
  position:fixed; top:0; left:0; height:100%; width:min(300px, 78vw); z-index:999;
  background: var(--glass-bg); box-shadow: 4px 0 24px hsl(0 0% 0% / .25);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateX(-100%); visibility:hidden; transition: transform .3s var(--ease), visibility 0s linear .3s;
  padding:20px; overflow-y:auto; box-sizing:border-box;
}
.wiki-toc-mobile-drawer.open{ visibility:visible; transform: translateX(0); transition: transform .3s var(--ease); }
.wiki-toc-mobile-head{
  display:flex; align-items:center; justify-content:space-between;
  padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid var(--glass-border);
}
.wiki-toc-mobile-head-title{ font-family: var(--font-display); font-weight:800; font-size:1rem; color: var(--text-main); }
.wiki-toc-mobile-close{
  display:flex; align-items:center; justify-content:center;
  width:32px; height:32px; background:transparent; border:none; color: var(--text-sub); cursor:pointer;
}
.wiki-toc-mobile-close svg{ width:18px; height:18px; }

/* ============================================================
   Wiki個別ページでのシェアボックス調整。
   共有の .share-box / .share-col / .share-btn は article.html の
   728px本文（336広告と横並び）を前提にしているため、Wikiの狭い
   メインカラムでは縦積みのままだと不格好に見える。
   ここでは .wiki-share-box というスコープ付きクラスの中だけに絞って
   デスクトップのみ横並びへ上書きしている（共有クラス自体は変更しない
   ＝article.html側の見た目には一切影響しない）。
   モバイルはbase側（.share-col、縦積み）のまま、何も上書きしない。
   ============================================================ */
.wiki-share-box{ margin-bottom:30px; }
@media (min-width: 901px){
  .wiki-share-box .share-col{ flex-direction:row; height:auto; }
}

/* ============================================================
   レスポンシブ広告（AdSenseのレスポンシブ枠。固定サイズの728x90/336x280とは
   別に、幅いっぱい・高さは可変というプレースホルダー）
   ============================================================ */
.ad-responsive{
  width:100%; min-height:100px; padding:20px 0; margin:24px 0;
}
