  /* メインの幅：以前「1150くらいで開放感があった」とのことだったので調べたところ、
     実際には元の3カラム版CSS(.wrap.wrap-wide-live { max-width:1198px;
     margin-left: calc((100% - 1142px)/2); margin-right:0; })がそのまま
     効いていた状態でした（1198px − 左右パディング48px = 1150px）。
     ここを1100pxなどに独自に上書きすると、幅だけでなく左右の余白の
     取り方（非対称マージン）も変わってしまい、パンくずの位置がズレて
     見えていたのはこれが原因でした。というわけで、ここでは何も上書き
     せず、元の共有ルールをそのまま使うようにしています（このstyleブロック
     に.wrap-wide-liveの指定を書かないのが正解、という結論です）。 */
  .live-onecolumn-wrap{ display:block; padding-bottom:70px; }

  /* ===== カテゴリごとのイメージカラー =====
     選択中(またはホバー中)のカテゴリがこの色になり、見出しのバッジ・並び替えメニューの選択色にも引き継がれる。「全て」はサイトのアクセントカラー。
     色を変えたい時は、ここの値だけ差し替えればよい。 */
  body{ --cat-all: var(--accent); --cat-stock:#5A8DE4; --cat-fx:#0F766E; --cat-crypto:#7C3AED; --cat-gold:#A16207; }
  /* ダークモードの --cat-* は、面と文字の色を作るための「元の色」。画面には、下の「ダークモードの配色」で混ぜた色を使う。
     「全て」は、株と青が重ならないよう、青みのある灰色にしている */
  body.dark{ --cat-all: hsl(var(--hue) 28% 58%); --cat-stock:#4F7BE0; --cat-fx:#12968C; --cat-crypto:#8B5CF6; --cat-gold:#B7791F; }

  /* 見出し行(人気投資家と同じ部品を流用)：選択中のカテゴリの色(--cat-color)をバッジ・カテゴリタブ・メニューに使う */
  .investor-head-row.live-main-head{ margin-top:20px; }
  .live-main-head .investor-section-heading, .investor-head-row[data-cat] .investor-section-heading{ background: var(--cat-color); transition: background-color .2s; }
  /* 人気投資家の行も、選択中のカテゴリの色(--cat-color)をバッジとタブに使う */
  .investor-head-row[data-cat]{ --cat-color: var(--cat-all); }
  .investor-head-row[data-cat="stock"]{ --cat-color: var(--cat-stock); }
  .investor-head-row[data-cat="fx"]{ --cat-color: var(--cat-fx); }
  .investor-head-row[data-cat="crypto"]{ --cat-color: var(--cat-crypto); }
  .investor-head-row[data-cat="gold"]{ --cat-color: var(--cat-gold); }
  .featured-live-section.tab-hidden{ display:none !important; }
  .featured-live-section.all-hidden{ display:none !important; }
  /* 順位バッジ：カテゴリで絞り込んだときは、カテゴリ内の順位に数え直す(JSがバッジの数字と data-tier を更新する)。
     金・銀・銅は、共通CSSの「注目枠の何番目か」ではなく、数え直した順位(1〜3位)に付ける */
  .live-stream-area .live-item .live-rank-badge[data-tier="n"],
  .live-stream-area .featured-live-row .live-item .live-rank-badge[data-tier="n"]{ background: hsl(0 0% 0% / .65); color:#fff; }
  .live-stream-area .live-item .live-rank-badge[data-tier="1"]{ background: linear-gradient(135deg, #FFE29A, var(--gold)); color:#3a2a05; }
  .live-stream-area .live-item .live-rank-badge[data-tier="2"]{ background: linear-gradient(135deg, #E7EBEF, #939FAC); color:#2b2f34; }
  .live-stream-area .live-item .live-rank-badge[data-tier="3"]{ background: linear-gradient(135deg, #E9C09B, #C98A52); color:#3a2005; }   /* 絞り込みで全カードが隠れたら、空の枠ごと隠す */   /* 人気タブ以外では、同接上位の注目枠は出さない */

  /* カテゴリタブ：形・ホバー挙動は人気投資家と共通。色だけ各カテゴリのイメージカラー */
  .live-cat-tab{ display:flex; align-items:center; justify-content:center; text-decoration:none; }
  .investor-cat-tab:is([data-icat="all"],[data-cat="all"]){ --cat-color: var(--cat-all); }
  .investor-cat-tab:is([data-icat="stock"],[data-cat="stock"]){ --cat-color: var(--cat-stock); }
  .investor-cat-tab:is([data-icat="fx"],[data-cat="fx"]){ --cat-color: var(--cat-fx); }
  .investor-cat-tab:is([data-icat="crypto"],[data-cat="crypto"]){ --cat-color: var(--cat-crypto); }
  .investor-cat-tab:is([data-icat="gold"],[data-cat="gold"]){ --cat-color: var(--cat-gold); }

  /* 見出しバッジ＝並び替えのプルダウン。メニューは斜めの切り抜きの外(兄弟要素)に置き、はみ出して表示する */
  .live-sort-wrap{ position:relative; flex-shrink:0; display:flex; }
  .live-sort-badge{ cursor:pointer; user-select:none; -webkit-user-select:none; }
  .live-sort-badge:hover{ filter: brightness(1.08); }
  .live-sort-badge:focus-visible{ outline:2px solid var(--cat-color); outline-offset:2px; }
  .live-sort-chev{ width:14px !important; height:14px !important; transition: transform .2s; }
  .live-sort-wrap.open .live-sort-chev{ transform: rotate(180deg); }
  .live-sort-menu{
    position:absolute; top:calc(100% + 6px); left:0; z-index:60; display:none; flex-direction:row; gap:2px;
    width:auto; min-width:0; height:auto; margin:0; padding:4px; overflow:visible;
    background: var(--page-bg); border:1px solid var(--glass-border); border-radius: var(--radius-md);
    box-shadow: 0 8px 24px hsl(0 0% 0% / .14);
  }
  .live-sort-wrap.open .live-sort-menu{ display:flex; }
  /* 広告の誤クリック対策：注目枠が隠れて広告が見出しの近くに繰り上がっても、開いたメニューが広告に届かないよう、
     見出しと広告の間に最低限の余白(メニュー高さ約46px＋余裕)を常に確保する。メニューを開閉・選択しても広告が動いて
     指の位置に来ないよう、余白は固定。注目枠が表示されているときは枠のほうが高いので、この余白は影響しない */
  .live-menu-clearance{ min-height:56px; }
  body.dark .live-sort-wrap .live-sort-menu{ background: color-mix(in srgb, #fff 7%, var(--page-bg)); }   /* 共通CSSの半透明背景に負けないよう不透明にする */
  .live-sort-menu .content-tabs-indicator{ display:none; }
  .live-sort-menu .content-tab{
    flex:none; height:auto; padding:9px 14px; justify-content:flex-start; gap:8px; white-space:nowrap;
    border:none; border-radius: var(--radius-sm); background:transparent; box-shadow:none;
    font-size:.88rem; font-weight:600; color: var(--text-sub);
  }
  .live-sort-menu .content-tab:hover{ background: color-mix(in srgb, var(--cat-color) 12%, transparent); color: var(--cat-color); }
  .live-sort-menu .content-tab.active, .live-sort-menu .content-tab.active:hover{
    background: color-mix(in srgb, var(--cat-color) 18%, transparent); color: var(--cat-color);
  }

  /* スマホ幅：斜めを小さく、余白を詰めて、バッジ＋5カテゴリを1行に収める */
  @media (max-width: 640px){
    .investor-head-row.live-main-head{ --inv-slant: 7px; --inv-gap: 3px; }
    .live-main-head .investor-section-heading{ padding:9px calc(var(--inv-slant) + 6px) 9px 10px; font-size:.88rem; gap:4px; }
    .live-main-head .investor-section-heading > svg:first-child{ display:none; }
    .live-heading-cat{ display:none; }   /* スマホ幅：バッジが長くなるため「カテゴリの」の部分は省く */
    .investor-cat-tabs .live-cat-tab{ font-size:.72rem; padding:0 calc(var(--inv-slant) + 1px); }
    .investor-cat-tabs .live-cat-tab:last-child{ padding-right:8px; }
    /* スマホ幅：4項目を2×2に並べる（高さ約90px） */
    .live-sort-wrap.open .live-sort-menu{ display:grid; grid-template-columns:1fr 1fr; width:min(340px, calc(100vw - 28px)); }
    .live-menu-clearance{ min-height:100px; }
  }

  /* 見出しは.featured-live-heading（注目のライブ配信と同じ、装飾なし＋アイコン）を流用 */

  /* 現在配信中のライブ/新着/配信予定/アーカイブ：横一列のリストから、
     注目のライブ配信と同じ雰囲気の「カード」を336px×3列で並べるグリッドへ
     変更。3列分（+間隔）が1100pxを超える場合は、1100pxを基準に左右均等に
     はみ出すよう、グリッド自体は中身の幅ぴったりにしてmargin:autoで中央
     寄せしている。 */
  /* 広告の上の3件(.featured-live-row)も、下の一覧と全く同じ3列グリッドにして幅・間隔を揃える */
  .live-list-lg, .featured-live-row{
    display:grid; grid-template-columns: repeat(3, 336px); gap:20px;
    width:calc(336px * 3 + 20px * 2); max-width:none; margin:0 auto; padding:20px 0; overflow:visible;
  }
  .live-list-lg .live-item, .featured-live-row .live-item{
    display:flex; flex-direction:column; align-items:stretch; gap:0; min-width:0;
    padding:10px; box-sizing:border-box; border:none;
    background: transparent; position:relative; isolation:isolate; border-radius: var(--radius-lg);
  }
  .live-list-lg .live-item:hover, .featured-live-row .live-item:hover{ z-index:20; }
  .live-list-lg .live-name-viewers-row, .featured-live-row .live-name-viewers-row{ min-width:0; }
  .live-list-lg .live-item::before, .featured-live-row .live-item::before{
    content:""; position:absolute; inset:0; z-index:-1;
    background: var(--glass-bg); border-radius: var(--radius-lg);
    transition: inset .45s ease;
  }
  .live-list-lg .live-item:hover::before, .featured-live-row .live-item:hover::before{ inset:-10px; background: hsl(var(--accent-hue, 210) 70% 55% / .07); }
  /* ダークモード：配信カードの背景は、ネイビー系の面＋うすい縁取り（ページの背景と、はっきり区別できるように）。
     ホバーすると、少し明るいネイビーになる */
  body.dark .live-list-lg .live-item::before, body.dark .featured-live-row .live-item::before{
    background: var(--navy-surface);
    box-shadow: inset 0 0 0 1px hsl(var(--hue) 45% 55% / .16);
  }
  body.dark .live-list-lg .live-item:hover::before, body.dark .featured-live-row .live-item:hover::before{
    background: color-mix(in srgb, hsl(var(--hue) 70% 55%) 30%, var(--page-bg));
  }
  .live-list-lg .live-thumb-wrap, .featured-live-row .live-thumb-wrap{ width:100%; height:auto; aspect-ratio:16/9; border-radius: var(--radius-lg); }
  /* サムネイルの拡大を、サムネそのものではなくカード全体のホバーで発火させる */
  .live-list-lg .live-item:hover .live-thumb, .featured-live-row .live-item:hover .live-thumb{ transform: scale(1.03); }
  .live-list-lg .live-info, .featured-live-row .live-info{ padding:10px 2px 4px; gap:8px; overflow:hidden; }
  .live-name-viewers-text{ overflow:hidden; }
  .live-onecolumn-wrap .live-investors-panel, .live-panel-wrap .live-investors-panel{ border:none; margin:0; }
  .live-stream-area{ display:flex; flex-direction:column; }
  .live-stream-area > .live-menu-clearance{ order:1; }
  .live-stream-area > .ad-970x250{ order:2; }
  .live-stream-area > .live-panel-wrap{ order:3; }
  .live-stream-area.few > .ad-970x250{ order:4; }                   /* 配信が少ないとき：一覧の下へ */
  .live-stream-area.few .live-menu-clearance{ min-height:0; }       /* 広告が見出しの近くに来ないので、メニュー用の余白は不要 */

  @media (max-width: 900px){
    .live-list-lg, .featured-live-row{ grid-template-columns: repeat(2, 1fr); width:100%; max-width:100%; }
  }
  @media (max-width: 640px){
    .live-list-lg, .featured-live-row{ grid-template-columns: 1fr; width:100%; max-width:100%; }
  }

  /* 人気投資家の「直近の配信」：テキストリンクではなく、サムネ付きの
     横長カード（旧・現在配信中のライブの行デザイン）を流用する */
  .featured-live-row .live-item{ flex:none; width:auto; }

  /* YouTube風：配信時間はテキストではなく、サムネ右下のバッジで表示する */
  .live-thumb-wrap{ position:relative; }
  .live-duration-badge{
    position:absolute; right:6px; bottom:6px; z-index:2;
    background: hsl(0 0% 0% / .8); color:#fff; font-family: var(--font-mono);
    font-size:.72rem; font-weight:700; padding:1px 5px; border-radius:4px; line-height:1.5;
  }

  /* 人気投資家：ニュース記事一覧風のホバー切り替えパネル。
     左に大きいサムネ1枚、右にタイトル一覧。項目にホバーするとサムネが切り替わる。 */
  .investor-hover-panel{ display:flex; gap:14px; margin-top:8px; }
  .investor-hover-thumb-wrap{ position:relative; width:180px; flex-shrink:0; aspect-ratio:16/9; border-radius:8px; overflow:hidden; }
  .investor-hover-thumb{
    width:100%; height:100%; background-color: var(--glass-bg);
    background-size:cover; background-position:center; transition: opacity .15s ease;
  }
  .investor-hover-list{ flex:1; min-width:0; display:flex; flex-direction:column; }
  .investor-hover-item{
    display:flex; flex-direction:column; gap:2px; padding:6px 8px; border-radius:8px;
    text-decoration:none; color:inherit;
  }
  .investor-hover-item:hover, .investor-hover-item.active{ background: hsl(0 0% 0% / .045); }
  body.dark .investor-hover-item:hover, body.dark .investor-hover-item.active{ background: hsl(0 0% 100% / .06); }
  .investor-hover-item.active .investor-hover-title{ color: var(--accent-strong); }
  .investor-hover-live-tag{
    align-self:flex-start; background:#E5484D; color:#fff; font-size:.6rem; font-weight:800;
    padding:1px 6px; border-radius:4px; letter-spacing:.02em; margin-bottom:1px;
  }
  .investor-hover-title{
    font-size:.82rem; font-weight:600; color: var(--text-main);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .investor-hover-date{ font-size:.72rem; color: var(--text-sub); font-family: var(--font-mono); }
  /* 日付の横に並べる「LIVE」表示（配信中の項目のみ） */
  .investor-hover-meta{ display:flex; align-items:center; gap:6px; }
  /* スマホ：サムネを上（横幅いっぱい）、タイトル3つを下に縦に並べる。タイトルは、2行まで表示する（日付つきの長いタイトル対策）。PCは、これまでどおり、左にサムネ・右にタイトル */
  @media (max-width: 640px){
    .investor-hover-panel{ flex-direction:column; gap:10px; }
    .investor-hover-thumb-wrap{ width:100%; }
    .investor-hover-item{ padding:9px 10px; gap:3px; }
    .investor-hover-title{
      font-size:.9rem; line-height:1.4; white-space:normal;
      display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    }
    .investor-hover-date{ font-size:.75rem; }
  }
  /* タッチ端末（ホバーできない端末）：選ばれているタイトルの横に、「タップで開く」の案内を出す
     （1回目のタップはサムネの切り替え、すでに選ばれているタイトルをタップすると、配信が開く） */
  @media (hover: none){
    .investor-hover-item.active .investor-hover-meta::after{
      content:"▶ タップで開く"; margin-left:auto; font-size:.7rem; font-weight:700; color: var(--accent-strong);
    }
  }
  /* 人気投資家：見出し＋カテゴリを1行にまとめ、斜めのラインで噛み合わせる。
     --inv-slant が斜めの水平方向のずれ量(px)。見出し右端・各タブの左右端が全て同じ角度になる。
     数字を大きくすると角度が強くなる。 */
  .investor-head-row{
    --inv-slant: 18px; --inv-gap: 8px;   /* 斜めの角度と、タブ同士のすき間(ゆとり) */
    display:flex; align-items:stretch; margin:40px 0 14px;
  }
  .investor-head-row .investor-section-heading{
    margin:0; flex-shrink:0;
    padding:10px calc(var(--inv-slant) + 14px) 10px 16px;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--inv-slant)) 100%, 0 100%);
  }
  .investor-cat-tabs{
    display:flex; align-items:stretch; flex:1; min-width:0;
    margin-left: calc(var(--inv-slant) * -1);   /* 見出しとの隙間はなし（タブ同士の隙間のみ --inv-gap） */
    overflow-x:auto; scrollbar-width:none;
  }
  .investor-cat-tabs::-webkit-scrollbar{ display:none; }
  /* セクション見出し(人気投資家と同じ斜めバッジ)の右側に伸びる細いライン。区切りとして視線を止める */
  .section-head-line{
    flex:1; align-self:flex-start; height:2px; background: var(--accent); opacity:.35;
    margin-left: 0;   /* バッジ上辺の右端に隙間なくつなげて、上辺に沿って伸ばす */
  }
  .investor-section-heading svg{ width:20px; height:20px; flex-shrink:0; }
  .investor-cat-tab{
    position:relative; flex:1 0 0; min-width:max-content; text-align:center; white-space:nowrap;
    padding:0 calc(var(--inv-slant) + 8px); border:none; background:transparent;
    color: var(--text-sub); font-size:.88rem; font-weight:700; font-family:inherit; cursor:pointer;
    transition: color .15s;
  }
  /* 隣のタブとは斜めの分だけ重ねて、間隔(--inv-gap)を保ったまま斜めに噛み合わせる */
  .investor-cat-tab + .investor-cat-tab{ margin-left: calc(var(--inv-slant) * -1 + var(--inv-gap)); }
  /* 斜めの形は背景(::before)だけに適用し、文字は切り抜かない。普段は透明で、ホバー/選択時にだけ形が見える */
  .investor-cat-tab::before{
    content:""; position:absolute; inset:0; z-index:-1; background: hsl(0 0% 0% / .07);
    clip-path: polygon(var(--inv-slant) 0, 100% 0, calc(100% - var(--inv-slant)) 100%, 0 100%);
    transition: background-color .15s;
  }
  /* 最後のカテゴリだけ、右端は斜めにせず四角にする */
  .investor-cat-tab:last-child{ padding-right:18px; }
  .investor-cat-tab:last-child::before{
    clip-path: polygon(var(--inv-slant) 0, 100% 0, 100% 100%, 0 100%);
  }
  .investor-cat-tabs{ isolation:isolate; }
  body.dark .investor-cat-tab::before{ background: hsl(0 0% 100% / .1); }
  /* ホバーすると選択状態と同じ色になる */
  .investor-cat-tab:hover, .investor-cat-tab.active{ color:#fff; }
  .investor-cat-tab:hover::before, .investor-cat-tab.active::before{ background: var(--cat-color, var(--accent)); }

  /* ===== ダークモードの配色（目に優しい、落ち着いた色） =====
     色の面は「カテゴリの色を、暗い背景に薄く混ぜた色」、文字は「同じ色を明るくした色」にする。真っ白の文字は使わない。
     --tone-fill が大きいほど面が濃く、--tone-ink が大きいほど文字が元の色に近づく。 */
  body.dark{ --tone-fill: 28%; --tone-ink: 55%; }
  body.dark .live-main-head .investor-section-heading,
  body.dark .investor-head-row[data-cat] .investor-section-heading{
    background: color-mix(in srgb, var(--cat-color) var(--tone-fill), var(--page-bg));
    color: color-mix(in srgb, var(--cat-color) var(--tone-ink), #fff);
  }
  body.dark .investor-cat-tab:hover::before, body.dark .investor-cat-tab.active::before{
    background: color-mix(in srgb, var(--cat-color, var(--accent)) var(--tone-fill), var(--page-bg));
  }
  body.dark .investor-cat-tab:hover, body.dark .investor-cat-tab.active{
    color: color-mix(in srgb, var(--cat-color, var(--accent)) var(--tone-ink), #fff);
  }
  body.dark .live-sort-menu .content-tab:hover, body.dark .live-sort-menu .content-tab.active,
  body.dark .live-sort-menu .content-tab.active:hover{
    background: color-mix(in srgb, var(--cat-color) var(--tone-fill), var(--page-bg));
    color: color-mix(in srgb, var(--cat-color) var(--tone-ink), #fff);
  }
  @media (max-width: 640px){
    .investor-head-row{ --inv-slant: 14px; --inv-gap: 4px; }
    .investor-cat-tab{ font-size:.8rem; padding:0 calc(var(--inv-slant) + 4px); }
  }
  /* PC幅：見出しとカテゴリの間を大きく空け、カテゴリは右寄せ（人気投資家・見出し行で共通）。
     スマホ幅は横幅が足りないため、従来どおり見出しの隣に全幅で並べる */
  @media (min-width: 641px){
    .investor-cat-tabs{ flex:0 1 auto; max-width:100%; margin-left:auto; }
    .investor-cat-tab{ flex:0 0 auto; min-width:116px; }
  }
  /* カテゴリのアイコン：広い画面だけ表示し、横幅も約1.3倍にする。狭い画面では非表示にして、ラベルが折り返さないようにする */
  .investor-cat-tab{ display:flex; align-items:center; justify-content:center; gap:7px; }
  .investor-cat-tab svg{ display:none; width:16px; height:16px; flex-shrink:0; }
  @media (min-width: 1100px){
    .investor-cat-tab{ min-width:150px; }
    .investor-cat-tab svg{ display:block; }
  }
  /* 入りきらないときは折り返さず、横にスライドして選ぶ（スクロールバーは出さない）。
     続きがある側の端を薄くぼかして、スライドできることを示す(.fade-l / .fade-r は下のJSが付け外しする) */
  .investor-cat-tabs{ overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
  .investor-cat-tabs.fade-r{ -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 26px),transparent); mask-image:linear-gradient(to right,#000 calc(100% - 26px),transparent); }
  .investor-cat-tabs.fade-l{ -webkit-mask-image:linear-gradient(to left,#000 calc(100% - 26px),transparent); mask-image:linear-gradient(to left,#000 calc(100% - 26px),transparent); }
  .investor-cat-tabs.fade-l.fade-r{ -webkit-mask-image:linear-gradient(to right,transparent,#000 26px,#000 calc(100% - 26px),transparent); mask-image:linear-gradient(to right,transparent,#000 26px,#000 calc(100% - 26px),transparent); }
  .investor-hover-live-inline{
    background:#E5484D; color:#fff; font-size:.6rem; font-weight:800;
    padding:1px 6px; border-radius:4px; letter-spacing:.02em; line-height:1.4;
  }

  /* 注目枠は3枚固定で通常幅に収まるため、左右ナビ（カルーセル）は使わない */
  .featured-live-carousel-wrap .rnav{ display:none !important; }

  /* 注目のライブ配信のアイコンを少し大きく、テキストのはみ出しを二重に防止 */
  /* 広告の上の3件と下の一覧が同じカードに見えるよう、文字・アイコンの大きさも一覧(.live-list-lg)に揃える */
  .featured-live-row .live-topic{ font-size:1.1rem; margin-bottom:2px; }
  .featured-live-row .live-avatar{ width:44px; height:44px; flex-shrink:0; }
  .featured-live-row .live-name{ font-size:.95rem; }
  .featured-live-row .live-elapsed-line{ font-size:.85rem; }
  .featured-live-row .live-info{ overflow:hidden; }

  /* ランキングの集計時点の表示（HTMLに書き込まれた時点の目安。空のときは出さない） */
  .ranking-snapshot-note{ margin:8px 4px 0; font-size:.78rem; color: var(--text-sub); }
  .ranking-snapshot-note:empty{ display:none; }
