/* ============================================================
   news.css — ニュース（/news）専用の見た目。共通デザイン（style.css）には含めない。
   ============================================================ */

/* ---- 一覧の行（リンクとして使う） ---- */
a.feed-row.news-row{ text-decoration:none; color:inherit; margin-bottom:16px; }
.news-row .feed-title{ cursor:inherit; }
.feed-thumb[style], .featured-thumb[style], .related-article-thumb-inner[style]{ background-repeat:no-repeat; }
/* サムネイル（<img>）が入っているときは、style.css の「NO IMAGE」の文字を出さない（どのページでも、必ず効くように !important） */
.feed-thumb.has-img, .featured-thumb.has-img{ position:relative; overflow:hidden; background:hsl(0 0% 14%); }
.feed-thumb.has-img::after, .featured-thumb.has-img::after{ content:none !important; display:none !important; }
.feed-thumb.has-img img, .featured-thumb.has-img img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }

/* ---- タグ ---- */
.news-tags{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:22px 0 4px; }
.news-tags-list{ margin:0 0 22px; max-width:728px; }
.news-tags-label{ font-size:.78rem; font-weight:700; color:var(--text-sub); margin-right:2px; }
.news-tag-chip{
  display:inline-block; font-size:.8rem; font-weight:600; text-decoration:none;
  padding:4px 12px; border-radius:999px; background:var(--accent-soft); color:var(--accent-strong);
  transition: background-color .15s;
}
.news-tag-chip:hover{ background:var(--accent); color:#fff; }

/* ---- 記事の上の、種類・カテゴリ・チャンネル ---- */
.news-article-meta{ margin-bottom:10px; flex-wrap:wrap; }
/* ラベル行（種類・カテゴリ・配信者名）と、公開日時：同じ行。左がラベル、右が日時。1行目の高さをそろえる。狭いときは、日時が下の行に回って、右に寄る */
.article-head-row{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:8px 16px; margin:0 0 16px; }
.article-head-row .news-article-meta{ margin:0; }
.article-head-row .article-datetime-block{ margin:1px 0 0 auto; }
a.news-cat-link{ text-decoration:none; }
a.news-cat-link:hover{ background:var(--accent); color:#fff; }

/* ---- 動画を本文の終わりに出す記事：上のサムネイル（画像だけ）と、終わりの動画 ---- */
.news-hero{ position:relative; display:block; max-width:728px; margin:0 0 24px; aspect-ratio:16/9; overflow:hidden; line-height:0; border-radius:var(--radius-sm); background:hsl(0 0% 14%); }
.news-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.news-video.news-video-end{ margin-top:28px; }

/* ---- 動画（最初はサムネイルだけ） ---- */
.news-video{ margin:0 0 24px; max-width:728px; }
.news-video-thumb{
  position:relative; display:block; width:100%; aspect-ratio:16/9; padding:0; border:0; cursor:pointer;
  background:hsl(0 0% 14%); border-radius:var(--radius-sm); overflow:hidden;
}
.news-video-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.news-video-play{
  position:absolute; left:50%; top:50%; width:68px; height:48px; margin:-24px 0 0 -34px;
  background:hsl(0 0% 0% / .72); border-radius:12px; transition: background-color .15s;
}
.news-video-play::before{
  content:''; position:absolute; left:27px; top:14px;
  border-style:solid; border-width:10px 0 10px 18px; border-color:transparent transparent transparent #fff;
}
.news-video-thumb:hover .news-video-play, .news-video-thumb:focus-visible .news-video-play{ background:#e00; }
.news-video-caption{ margin-top:8px; font-size:.82rem; color:var(--text-sub); }
.news-video-caption a{ color:var(--accent-strong); }

/* ---- 本文の途中に出る動画 ---- */
.news-player{ margin:14px 0 22px; max-width:728px; }
.news-player-frame{ position:relative; width:100%; aspect-ratio:16/9; background:#000; border-radius:var(--radius-sm); overflow:hidden; }
.news-player-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.news-player-bar{ display:flex; justify-content:flex-end; align-items:center; margin-top:6px; font-size:.82rem; }
.news-player-close{
  font:inherit; font-size:.82rem; font-weight:700; padding:4px 14px; cursor:pointer;
  border:1px solid var(--accent); border-radius:999px; background:transparent; color:var(--accent-strong);
}
.news-player-close:hover{ background:var(--accent); color:#fff; }

/* ---- 本文の時刻ボタン ---- */
a.ts-link{
  display:inline-flex; align-items:center; gap:4px; text-decoration:none; white-space:nowrap;
  font-family:var(--font-mono); font-size:.82em; font-weight:700; line-height:1.5;
  padding:1px 9px 1px 7px; margin-right:4px; border-radius:999px;
  background:var(--accent-soft); color:var(--accent-strong); vertical-align:baseline;
  transition: background-color .15s, color .15s;
}
a.ts-link:hover{ background:var(--accent); color:#fff; }
.ts-play{ font-size:.7em; }

/* ---- 本文の、Wikiの名前へのリンク ---- */
.article-body a.name-link, a.name-link{ color:var(--accent-strong); text-decoration:underline; text-underline-offset:3px; }

/* ---- 一覧の、いちばん上の注目の記事 ---- */
/* サムネイルは、16:9のまま、切らずに出す（style.css は、高さを260pxに決めていて、画像の上下が切れるため） */
#featuredCard .featured-thumb{ height:auto; aspect-ratio:16/9; }
/* 注目の記事と、その下の記事の間に、20pxの余白 */
#featuredCard{ margin-bottom:20px; }

/* ---- Wikiのページの「関連ニュース」 ---- */
.wiki-related-news{ margin:0 0 8px; }
.wiki-related-news .feed-list{ max-width:none; }
/* 「〜のニュースをもっと見る」のボタン：ページ下のリンクの帯（knowledge.css）と同じ、ガラスの質感。直角・影なし。
   文字はサイトのイメージカラー。マウスを乗せると、イメージカラーのガラスになって、文字が白になる */
a.load-more-btn.wiki-related-news-more{
  display:block; width:100%; max-width:none; margin-top:16px; padding:15px 28px; text-decoration:none; border:none; border-radius:0;
  color:var(--accent-strong); font-weight:800;
  background-color:transparent;
  background-image:var(--kn-glass-face, linear-gradient(180deg, hsl(0 0% 100% / .88) 0%, hsl(0 0% 100% / .52) 55%, hsl(0 0% 100% / .62) 100%));
  box-shadow:var(--kn-glass-rim, inset 0 0 0 1px hsl(214 22% 70% / .55), inset 0 0 0 2.5px hsl(0 0% 100% / .65), inset 0 2px 2px hsl(0 0% 100% / .9));
  transition: background-image .2s, color .2s, box-shadow .2s;
}
a.load-more-btn.wiki-related-news-more:hover{
  color:var(--nw-hover-text, #fff); text-shadow:var(--nw-hover-tshadow, none); background-color:transparent;
  background-image:var(--nw-hover-face); box-shadow:var(--nw-hover-rim);
}
body.dark a.load-more-btn.wiki-related-news-more{ color:color-mix(in srgb, var(--accent) 45%, #fff); }

/* ---- 一覧の行のサムネイル：16:9のまま、全体を切らずに出す ----
   スマホ（860px以下）は、幅いっぱいで、16:9の高さにする */
.feed-thumb.has-img img{ object-fit:contain; }
/* パソコン：行の高さを160pxから120pxに下げて、画像の幅も 284px → 213px（120×16÷9）にする。画像は16:9のまま、全体を出す */
@media (min-width:861px){
  a.feed-row.news-row{ height:120px; }
  .news-row .feed-main{ padding:14px 20px; }
  .feed-thumb.has-img{ width:213px; }
  /* サムネイルがない行も、同じ幅にする：題名・日付が始まる位置が、どの行でも、サムネイルの右端からの決まった位置になる */
  .news-row .feed-thumb{ width:213px; flex:none; }
  /* 日付の高さを固定する：題名が1行でも2行でも、日付とタグは、行の下端に出る（記事を変えても、位置が動かない） */
  a.feed-row.news-row .feed-main{ display:flex; flex-direction:column; justify-content:space-between; min-width:0; }
  a.feed-row.news-row .feed-title{ flex:none; }
  a.feed-row.news-row .feed-meta{ margin-top:auto; flex-wrap:nowrap; overflow:hidden; white-space:nowrap; }   /* 1行に固定。入りきらないタグは、右端で薄れて消える（折り返さない） */
  a.feed-row.news-row .feed-meta .feed-tag{ flex:none; }
  a.feed-row.news-row .feed-meta{ -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image:linear-gradient(to right, #000 calc(100% - 28px), transparent); }
}
@media (max-width:860px){
  .feed-thumb.has-img{ width:100%; height:auto; aspect-ratio:16/9; }
}

/* ---- Wikiの「関連ニュース」：配信のカード（.stream-card）と同じ大きさの画像を上に、題名と日付を下に出す ----
   灰色の枠（.glass）は残して、配信のカードとは、別のカードに見えるようにする。
   ふだんは影なし。マウスを乗せると、影がついて、少し浮く */
.wiki-related-news .stream-grid{ grid-template-columns:1fr; gap:22px; }   /* 横いっぱいに、1枚ずつ */
a.wiki-news-card.glass, a.wiki-news-card.glass:hover{ text-decoration:none !important; }   /* 下線をつけない */
a.wiki-news-card.glass{
  padding:0; overflow:hidden; box-shadow:none;
  transition: box-shadow .2s ease, transform .2s ease;
}
a.wiki-news-card.glass:hover{
  box-shadow:0 10px 26px -6px hsl(0 0% 0% / .24);
  transform:translateY(-2px);
}
.wiki-news-card .stream-thumb-wrap{ border-radius:0; background:hsl(0 0% 14%); }
.wiki-news-card .stream-thumb-wrap img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .2s; }
.wiki-news-card:hover .stream-thumb-wrap img{ transform:scale(1.03); }
.wiki-news-card .stream-info{ padding:12px 14px 14px; }
.wiki-news-text{ flex:1; min-width:0; }
.wiki-news-card .stream-title{ font-size:1.05rem; -webkit-line-clamp:3; margin-bottom:8px; }
.wiki-news-card .stream-meta-sub{ font-size:.78rem; column-gap:8px; row-gap:2px; }

/* ============================================================
   ニュースの一覧：ガラスの質感の部品（タブ・タグ・続きを読むボタン）
   ページ下のリンクの帯（knowledge.css）と同じ作り。直角・縁（二重線）・上端のツヤ。文字と色は、サイトのイメージカラー（青）
   ※ knowledge.css が無くても動くように、ガラスの値は、この中に持っている（--nw-～）
   ============================================================ */
:root{
  --nw-face: linear-gradient(180deg, hsl(0 0% 100% / .88) 0%, hsl(0 0% 100% / .52) 55%, hsl(0 0% 100% / .62) 100%);
  --nw-rim: inset 0 0 0 1px hsl(214 22% 70% / .55), inset 0 0 0 2.5px hsl(0 0% 100% / .65), inset 0 2px 2px hsl(0 0% 100% / .9);
  --nw-sep: inset 1px 0 0 hsl(214 22% 70% / .45), inset 2px 0 0 hsl(0 0% 100% / .6);
  --nw-shadow: var(--gt-shadow, 0 1px 3px hsl(0 0% 0% / .07), 0 2px 8px -2px hsl(0 0% 0% / .06));
}
/* ★ サイトの青（--accent など）は、body に定義されている。青を使う変数は、:root ではなく body に置く（:root だと、青が見つからず、無効になる） */
body{
  /* ホバー：ページ下のリンクの帯と同じ。サイトの青の、透け感のあるガラス+白い内側の線とツヤ。文字は白 */
  --nw-hover-face: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, transparent) 0%, color-mix(in srgb, var(--accent) 92%, transparent) 55%, color-mix(in srgb, var(--accent) 86%, transparent) 100%);
  --nw-hover-rim: inset 0 0 0 1px hsl(0 0% 100% / .5), inset 0 0 0 2.5px hsl(0 0% 100% / .18), inset 0 2px 2px hsl(0 0% 100% / .6);
  --nw-hover-text: #fff;
  --nw-hover-tshadow: 0 1px 2px hsl(0 0% 0% / .22);
}
body.dark{
  --nw-face: linear-gradient(180deg, hsl(0 0% 100% / .16) 0%, hsl(0 0% 100% / .08) 60%, hsl(0 0% 100% / .11) 100%);
  --nw-rim: inset 0 0 0 1px hsl(0 0% 100% / .10), inset 0 1px 1px hsl(0 0% 100% / .18);
  --nw-sep: inset 1px 0 0 hsl(0 0% 100% / .10);
  --nw-shadow: var(--gt-shadow, 0 1px 3px hsl(0 0% 0% / .35), 0 2px 8px -2px hsl(0 0% 0% / .30));
  /* ダークは、帯と同じく、明るくなりすぎないよう、薄めにして縁を付ける */
  --nw-hover-face: linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 30%, transparent) 0%, color-mix(in srgb, var(--accent-strong) 40%, transparent) 55%, color-mix(in srgb, var(--accent-strong) 34%, transparent) 100%);
  --nw-hover-rim: inset 0 0 0 1px color-mix(in srgb, var(--accent-strong) 70%, transparent), inset 0 1px 1px hsl(0 0% 100% / .14);
  --nw-hover-text: #fff;
  --nw-hover-tshadow: none;
}

/* ---- カテゴリのタブ（総合・投資家・企業・相場）：前のデザイン（いま見ているタブを、細い線で囲む。下は開ける）のまま、ガラスの質感にした。
        線は、枠線（border）ではなく、内側の線（box-shadow）で引く（枠線だと、角が斜めに切れて、線の継ぎ目に隙間ができるため）。
        線の色：選んでいないタブの下線は、白に近いうすい色。選んでいるタブの囲みだけは、少し濃いめ（見分けがつくように）。太さは、整数のピクセル（1px・3px）にしてある。
        Firefox は、1.5px のような小数の太さを、上と左は太く、下と右は細く丸めて描くため、タブによって線の太さが違って見えていた。
        アイコンは、角の丸い四角のチップ。ホバーは、白いガラスが明るく浮く感じ（面は青くしない。文字は青のまま）。
        タブとタブの間には、ガラスの区切り（細い縦線+白い線）を入れてある（--tab-div）。
        ホバーしたタブは、上だけでなく、左右の辺の内側も白く光る（--tab-lit-left / --tab-lit-right）。区切りの線は、ホバーしても消さずに残す ---- */
.news-tabs{
  --tab-lit-left:  inset 3px 0 4px -2px hsl(0 0% 100% / .80);
  --tab-lit-right: inset -3px 0 4px -2px hsl(0 0% 100% / .80);
  --tab-lit-bottom: inset 0 -5px 4px -3px hsl(0 0% 100% / .80);
  --tab-div-hover: inset 1px 0 0 hsl(214 22% 70% / .20), inset 2px 0 0 hsl(0 0% 100% / .95);   /* ホバーしたタブの両側の区切り：線はうすく、白い面が明るくなる */
  margin-bottom:20px; border:none; border-radius:0; overflow:hidden;
  background-color:transparent; background-image:var(--nw-face);
  box-shadow:var(--nw-shadow), var(--nw-rim);
}
body.dark .news-tabs{
  --tab-lit-left:  inset 3px 0 4px -2px hsl(0 0% 100% / .14);
  --tab-lit-right: inset -3px 0 4px -2px hsl(0 0% 100% / .14);
  --tab-lit-bottom: inset 0 -5px 4px -3px hsl(0 0% 100% / .14);
  --tab-div-hover: inset 1px 0 0 hsl(0 0% 100% / .24);
}
.news-tabs .content-tab{
  --tab-div: 0 0 0 0 transparent;
  flex:1; min-width:0; padding:11px 6px 10px; gap:10px; box-sizing:border-box;
  font-size:.9rem; font-weight:700; color:var(--text-sub);
  background-color:transparent; background-image:none; border:none; border-radius:0;
  /* 下線：細いうすい青い線+その上の白い線（ガラスの二重線）+ 左の区切り */
  box-shadow:inset 0 -1px 0 color-mix(in srgb, var(--accent) 40%, transparent), inset 0 -3px 0 hsl(0 0% 100% / .65), var(--tab-div);
  transition: background-image .2s, box-shadow .2s, color .2s;
}
/* 区切り：2つ目から後ろのタブの左に */
.news-tabs .content-tab + .content-tab{ --tab-div: inset 1px 0 0 hsl(214 22% 70% / .45), inset 2px 0 0 hsl(0 0% 100% / .6); }
.news-tabs .news-tab-icon{
  width:34px; height:34px; flex:none; display:grid; place-items:center; border-radius:10px;
  background:color-mix(in srgb, var(--accent) 12%, transparent); color:var(--accent-strong);
  transition: background .2s, color .2s;
}
.news-tabs .news-tab-icon svg{ display:block; width:19px; height:19px; transform:none; }
.news-tabs .content-tab:hover{
  --tab-div: var(--tab-div-hover);
  color:var(--accent-strong);
  background-image:linear-gradient(180deg, hsl(0 0% 100% / .95), hsl(0 0% 100% / .72));
  box-shadow:inset 0 -1px 0 color-mix(in srgb, var(--accent) 24%, transparent), inset 0 -3px 0 hsl(0 0% 100% / .95), var(--tab-div), inset 0 2px 2px hsl(0 0% 100% / .95), var(--tab-lit-bottom), var(--tab-lit-left), var(--tab-lit-right);
}
/* ホバーしたタブの右隣：左の区切りも、ホバー用に変える。一番左のタブは、左に区切りが無い */
.news-tabs .content-tab:hover + .content-tab{ --tab-div: var(--tab-div-hover); }
.news-tabs .content-tab:first-child:hover{ --tab-div: 0 0 0 0 transparent; }
.news-tabs .content-tab:hover .news-tab-icon{ background:linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #fff)); color:#fff; }
/* 選んでいるタブ：上・左・右を、細いうすい青い線+白い内側の線で囲む（ガラスの二重線）。下は開ける。面は、白いガラスで、下にほんのり青 */
.news-tabs .content-tab.active, .news-tabs .content-tab.active:hover{
  color:var(--accent-strong);
  background-color:transparent;
  background-image:linear-gradient(180deg, hsl(0 0% 100% / .92) 0%, color-mix(in srgb, var(--accent) 14%, hsl(0 0% 100% / .62)) 100%);
  box-shadow:
    inset 1px 0 0 color-mix(in srgb, var(--accent-strong) 55%, transparent),
    inset -1px 0 0 color-mix(in srgb, var(--accent-strong) 55%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--accent-strong) 55%, transparent),
    inset 3px 0 0 hsl(0 0% 100% / .70),
    inset -3px 0 0 hsl(0 0% 100% / .70),
    inset 0 3px 0 hsl(0 0% 100% / .70),
    inset 0 6px 5px hsl(0 0% 100% / .75);
}
/* 選んでいるタブの右隣は、選んでいるタブの線があるので、左の区切りは入れない */
.news-tabs .content-tab.active + .content-tab{ --tab-div: 0 0 0 0 transparent; }
.news-tabs .content-tab.active .news-tab-icon{ background:linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #fff)); color:#fff; }
body.dark .news-tabs .content-tab{
  box-shadow:inset 0 -1px 0 color-mix(in srgb, var(--accent-strong) 45%, transparent), inset 0 -3px 0 hsl(0 0% 100% / .08), var(--tab-div);
}
body.dark .news-tabs .content-tab + .content-tab{ --tab-div: inset 1px 0 0 hsl(0 0% 100% / .10); }
body.dark .news-tabs .news-tab-icon{ background:color-mix(in srgb, var(--accent) 40%, var(--header-bg, var(--page-bg))); color:color-mix(in srgb, var(--accent) 45%, #fff); }
body.dark .news-tabs .content-tab:hover{
  --tab-div: var(--tab-div-hover);
  color:color-mix(in srgb, var(--accent) 45%, #fff);
  background-image:linear-gradient(180deg, hsl(0 0% 100% / .15), hsl(0 0% 100% / .08));
  box-shadow:inset 0 -1px 0 color-mix(in srgb, var(--accent-strong) 28%, transparent), inset 0 -3px 0 hsl(0 0% 100% / .18), var(--tab-div), inset 0 1px 1px hsl(0 0% 100% / .20), var(--tab-lit-bottom), var(--tab-lit-left), var(--tab-lit-right);
}
body.dark .news-tabs .content-tab:hover + .content-tab{ --tab-div: var(--tab-div-hover); }
body.dark .news-tabs .content-tab:first-child:hover{ --tab-div: 0 0 0 0 transparent; }
body.dark .news-tabs .content-tab:hover .news-tab-icon{ background:color-mix(in srgb, var(--accent) 62%, var(--header-bg, var(--page-bg))); color:#fff; }
body.dark .news-tabs .content-tab.active, body.dark .news-tabs .content-tab.active:hover{
  color:color-mix(in srgb, var(--accent) 45%, #fff);
  background-image:linear-gradient(180deg, hsl(0 0% 100% / .14) 0%, color-mix(in srgb, var(--accent-strong) 20%, hsl(0 0% 100% / .05)) 100%);
  box-shadow:
    inset 1px 0 0 color-mix(in srgb, var(--accent-strong) 70%, transparent),
    inset -1px 0 0 color-mix(in srgb, var(--accent-strong) 70%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--accent-strong) 70%, transparent),
    inset 3px 0 0 hsl(0 0% 100% / .06),
    inset -3px 0 0 hsl(0 0% 100% / .06),
    inset 0 3px 0 hsl(0 0% 100% / .06),
    inset 0 5px 4px hsl(0 0% 100% / .10);
}
body.dark .news-tabs .content-tab.active + .content-tab{ --tab-div: 0 0 0 0 transparent; }
body.dark .news-tabs .content-tab.active .news-tab-icon{ background:color-mix(in srgb, var(--accent) 62%, var(--header-bg, var(--page-bg))); color:#fff; }
@media (max-width:640px){
  .news-tabs .content-tab{ flex-direction:column; gap:5px; padding:9px 2px 8px; font-size:.74rem; }
  .news-tabs .news-tab-icon{ width:30px; height:30px; border-radius:9px; }
  .news-tabs .news-tab-icon svg{ width:17px; height:17px; }
}

/* ---- タグ（注目のタグ・記事のタグ）：直角のガラスの札。マウスを乗せると、青いガラスになって文字が白 ---- */
a.news-tag-chip{
  padding:6px 14px; border-radius:0; font-weight:700; color:var(--accent-strong);
  background-color:transparent; background-image:var(--nw-face); box-shadow:var(--nw-rim);
  transition: background-image .2s, color .2s, box-shadow .2s;
}
a.news-tag-chip:hover{
  color:var(--nw-hover-text); text-shadow:var(--nw-hover-tshadow); background-color:transparent; background-image:var(--nw-hover-face); box-shadow:var(--nw-hover-rim);
}
body.dark a.news-tag-chip{ color:color-mix(in srgb, var(--accent) 45%, #fff); }

/* ---- 「続きを読む」のボタン：直角のガラス。影なし。文字は青、マウスを乗せると青いガラスで文字が白 ---- */
a.read-more-btn{
  border:none; border-radius:0; font-weight:800; color:var(--accent-strong);
  background-color:transparent; background-image:var(--nw-face); box-shadow:var(--nw-rim);
  transition: background-image .2s, color .2s, box-shadow .2s;
}
a.read-more-btn:hover{
  color:var(--nw-hover-text); text-shadow:var(--nw-hover-tshadow); background-color:transparent; background-image:var(--nw-hover-face); box-shadow:var(--nw-hover-rim);
}
body.dark a.read-more-btn{ color:color-mix(in srgb, var(--accent) 45%, #fff); }

/* ============================================================
   ニュースの記事ページ：関連ニュース・前後のニュース
   ガラスの値（--nw-～）は、上の「ニュースの一覧：ガラスの質感の部品」と同じものを使う。直角・影は薄く・色はニュースの青
   ============================================================ */

/* ---- 関連ニュース（トップページの最新ニュースも、同じカード）：サムネイルが上、題名が下、日付は題名の左下。
        マウスを乗せている間：①サムネイルが少し拡大する ②カードのまわり（サムネイルのまわりも含む）の線が、青くなったり元に戻ったりを繰り返す。
        背景の色・影・カードの動きは、なし ---- */
.related-articles .related-articles-list.rn-grid{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:16px; margin:0; padding:0;
}
a.rn-card{
  position:relative; display:flex; flex-direction:column; gap:0; min-width:0; overflow:hidden; margin:0; padding:0;
  text-decoration:none; color:inherit; border-radius:0;
  background-color:transparent; background-image:var(--nw-face);
  box-shadow:var(--nw-shadow), var(--nw-rim);
}
a.rn-card:hover, a.rn-card:focus-visible{ text-decoration:none; }
a.rn-card:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; }

/* ① サムネイルの拡大（枠の外にはみ出さない：.rn-thumb が overflow:hidden） */
a.rn-card .rn-thumb img{ transition:transform .35s ease; }
a.rn-card:hover .rn-thumb img, a.rn-card:focus-visible .rn-thumb img{ transform:scale(1.05); }

/* ② 縁が光ったり戻ったり（青は使わない。白〜グレーだけ）：カードの一番外側に、ガラスの切り口のような、1pxの縁を重ねる。
      左上の縁＝光が当たって白、右下の縁＝影になってグレー、内側にごくうすい白い光。白はサムネイルの上で、グレーは背景の上で、それぞれ見える。太い白い枠にはならない。
      サムネイルの上にも重なるので、サムネイルのまわりも、同じ線でつながる（段差は出ない）。
      マウスを乗せている間だけ、その線の濃さを 0 → 1 → 0 と繰り返す。もとの線（ガラスの縁）は、変えない。
      離すと、二重の線は消えて、もとの線だけになる */
@keyframes rn-pulse{ 0%, 100%{ opacity:0; } 50%{ opacity:1; } }
a.rn-card::after{
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none; box-sizing:border-box;
  box-shadow:inset 1px 1px 0 hsl(0 0% 100% / .95), inset -1px -1px 0 hsl(214 12% 52% / .6), inset 0 0 10px hsl(0 0% 100% / .5);
  opacity:0;
}
body.dark a.rn-card::after{ box-shadow:inset 1px 1px 0 hsl(0 0% 100% / .6), inset -1px -1px 0 hsl(0 0% 0% / .55), inset 0 0 10px hsl(0 0% 100% / .14); }
a.rn-card:hover::after, a.rn-card:focus-visible::after{ animation:rn-pulse 1.6s ease-in-out infinite; }
/* 「動きを減らす」設定（OS）は、見ない。サイトの他のホバー（動画カードの拡大など）と同じ扱い。見る場合は、ここに @media (prefers-reduced-motion: reduce) を足す */
.rn-thumb{ position:relative; display:block; flex:none; margin:0; aspect-ratio:16/9; overflow:hidden; line-height:0; background:hsl(0 0% 14%); }
.rn-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.rn-info{
  flex:1; display:flex; flex-direction:column; justify-content:space-between; gap:8px; margin:0;
  padding:8px 13px 10px;
}
.rn-title{
  font-size:.92rem; font-weight:700; line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.rn-date{ font-size:.76rem; color:var(--text-sub); }
.rn-date .news-time{ color:inherit; }

/* ---- 前後のニュース（案C）：横いっぱいの行。前の記事が上（サムネが左）、次の記事が下（サムネが右）。
        ラベルは、サムネの上ではなく、ガラスの面の上にあるので、どんな画像でも読める。
        ホバーすると、行ぜんたいが青いガラスになって、文字が白 ---- */
.pn-nav{ display:grid; grid-template-columns:1fr; gap:12px; margin-top:24px; }
a.pn-item{
  display:flex; align-items:stretch; min-width:0; overflow:hidden;
  text-decoration:none; color:inherit; border-radius:0;
  background-color:transparent; background-image:var(--nw-face);
  box-shadow:var(--nw-shadow), var(--nw-rim); transition: background-image .2s, box-shadow .2s;
}
a.pn-item:hover, a.pn-item:focus-visible{
  text-decoration:none; background-image:var(--nw-hover-face); box-shadow:var(--nw-hover-rim);
}
.pn-text{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:8px; padding:18px 24px; }
.pn-prev .pn-text{ text-align:left; }     /* 前：サムネが左、文字は左そろえ */
.pn-next .pn-text{ text-align:right; }    /* 次：サムネが右、文字は右そろえ */
.pn-lab{ font-size:.82rem; font-weight:800; color:var(--accent-strong); transition:color .2s; }
body.dark .pn-lab{ color:color-mix(in srgb, var(--accent) 45%, #fff); }
.pn-arrow{ display:inline-block; font-size:.65rem; margin:0 4px; }
.pn-ttl{
  font-size:1.12rem; font-weight:700; line-height:1.5; transition:color .2s;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.pn-thumb{ position:relative; flex:none; width:300px; aspect-ratio:16/9; overflow:hidden; background:hsl(0 0% 14%); }
.pn-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
a.pn-item:hover :is(.pn-lab, .pn-ttl), a.pn-item:focus-visible :is(.pn-lab, .pn-ttl),
body.dark a.pn-item:hover .pn-lab, body.dark a.pn-item:focus-visible .pn-lab{ color:var(--nw-hover-text); text-shadow:var(--nw-hover-tshadow); }
@media (max-width:640px){
  .pn-thumb{ width:42%; }
  .pn-text{ padding:12px 14px; }
  .pn-ttl{ font-size:.98rem; }
}
/* ---- 一覧ページの最上部のパネル（.news-latest）：タブ＋最新3件。左に大きいサムネイル、右に題名3件（乗せると左が切り替わる）。4件目からは、下の横長カード ----
        タブの高さは、パソコンで約45px（アイコンと余白を小さくして、文字は14pxのまま）。スマホは上の .news-tabs のまま ---- */
.grid-card.news-latest{ position:relative; display:block; width:100%; max-width:none; height:auto; min-height:0; padding:0; margin-bottom:24px; }
.news-latest .news-tabs{ margin:0; }   /* タブは、枠の上・左・右にぴったりつける */
@media (min-width:641px){
  .news-latest .news-tabs .content-tab{ padding:9px 6px 8px; gap:8px; font-size:.875rem; }
  .news-latest .news-tabs .news-tab-icon{ width:28px; height:28px; border-radius:8px; }
  .news-latest .news-tabs .news-tab-icon svg{ width:16px; height:16px; }
}
.nl-body{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:22px; align-items:center; padding:20px 22px 22px; }
.nl-thumb-link{ display:block; border-radius:8px; overflow:hidden; line-height:0; text-decoration:none; }
.nl-thumb{ position:relative; aspect-ratio:16/9; overflow:hidden; background:hsl(0 0% 14%); }
.nl-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.nl-thumb-link:hover img{ transform:scale(1.04); }
.nl-meta{ display:flex; align-items:center; gap:10px; margin-top:8px; font-size:.76rem; color:var(--text-sub); }
.nl-meta .news-time{ color:inherit; }
.nl-meta{ flex-wrap:wrap; gap:4px 8px; }
.nl-meta .feed-time{ flex:none; width:15ch; white-space:nowrap; font-variant-numeric:tabular-nums; }
/* 一覧の1行：左に日付、そのあとにタグ（折り返せる） */
.news-row .feed-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
/* 日付の幅を固定する：「たった今」「3時間前」でも「2026/11/18 15:30」でも、タグが始まる位置がそろう */
.news-row .feed-time{ flex:none; width:15ch; white-space:nowrap; font-variant-numeric:tabular-nums; }
.nl-list{ display:flex; flex-direction:column; gap:6px; }
a.nl-item{ display:block; padding:12px 14px; border-radius:6px; color:inherit; text-decoration:none; background:transparent; }
.nl-ttl{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.95rem; font-weight:700; line-height:1.55; }   /* 2行まで（余白は外側の a に付けて、3行目が余白からはみ出して見えないようにする） */
.nl-set[hidden], .nl-main[hidden], .feed-list[hidden]{ display:none !important; }
a.nl-item:hover, a.nl-item:focus-visible, a.nl-item.is-on{ background:color-mix(in srgb, var(--accent) 12%, transparent); color:var(--accent-strong, var(--accent)); text-decoration:none; }
body.dark a.nl-item:hover, body.dark a.nl-item:focus-visible, body.dark a.nl-item.is-on{ background:color-mix(in srgb, var(--accent) 22%, transparent); color:color-mix(in srgb, var(--accent) 45%, #fff); }
@media (max-width:860px){
  .nl-body{ grid-template-columns:1fr; gap:14px; padding:16px 14px 16px; }
}

/* ---- 横長カードの題名は、2行まで ---- */
.news-row .feed-title{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* ---- 本文の、Xの投稿（X風のカード）：{{Xポスト ... }}。公式の埋め込みではなく、サイトのHTMLだけで作る。画像・ロゴ・数字は入れない ---- */
.xpost{ max-width:728px; margin:16px 0 22px; padding:14px 16px; border:1px solid hsl(205 18% 84%); border-radius:16px; background:#fff; color:#0f1419; }
.xpost-head{ display:flex; align-items:center; gap:10px; }
.xpost-ava{ width:40px; height:40px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; background:hsl(205 18% 84%); color:hsl(205 10% 38%); }
.xpost-who{ min-width:0; display:flex; flex-wrap:wrap; align-items:baseline; column-gap:6px; }
.xpost-name{ font-weight:700; font-size:.95rem; line-height:1.3; }
.xpost-id{ font-size:.88rem; color:hsl(205 10% 38%); line-height:1.3; white-space:nowrap; }
.xpost-body{ margin:10px 0 0; font-size:1rem; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.xpost-foot{ margin-top:10px; font-size:.82rem; color:hsl(205 10% 38%); }
.xpost-foot a{ color:inherit; text-decoration:none; }
.xpost-foot a:hover{ text-decoration:underline; text-underline-offset:3px; }
.xpost-link{ margin:0 0 8px; font-size:.82rem; color:hsl(205 10% 38%); }
body.dark .xpost{ background:#000; border-color:hsl(200 6% 20%); color:#e7e9ea; }
body.dark .xpost-ava{ background:hsl(200 6% 20%); color:hsl(205 10% 62%); }
body.dark .xpost-id, body.dark .xpost-foot, body.dark .xpost-link{ color:hsl(205 10% 62%); }
img.xpost-ava{ object-fit:cover; background:hsl(205 18% 84%); }
.xpost-imglink{ display:block; margin-top:10px; line-height:0; }
.xpost-img{ display:block; width:100%; height:auto; border-radius:12px; border:1px solid hsl(205 18% 84%); }
body.dark .xpost-img{ border-color:hsl(200 6% 20%); }
/* 引用ポスト（「引用: 上」）：引用しているポストの中に、引用元のポストを小さく入れる */
.xpost-nest{ margin-top:10px; padding:10px 12px; border:1px solid hsl(205 18% 84%); border-radius:12px; }
.xpost-nest-head{ display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px; font-size:.88rem; line-height:1.3; }
.xpost-nest-ava{ width:20px; height:20px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:700; object-fit:cover; background:hsl(205 18% 84%); color:hsl(205 10% 38%); }
.xpost-nest-link{ margin:0 0 6px; font-size:.78rem; color:hsl(205 10% 38%); }
.xpost-nest-name{ font-weight:700; }
.xpost-nest-id, .xpost-nest-date{ color:hsl(205 10% 38%); white-space:nowrap; }
.xpost-nest-date{ text-decoration:none; }
.xpost-nest-date:hover{ text-decoration:underline; text-underline-offset:3px; }
.xpost-nest-body{ margin:6px 0 0; font-size:.95rem; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.xpost-nest .xpost-imglink{ margin-top:8px; }
body.dark .xpost-nest{ border-color:hsl(200 6% 20%); }
body.dark .xpost-nest-ava{ background:hsl(200 6% 20%); color:hsl(205 10% 62%); }
body.dark .xpost-nest-id, body.dark .xpost-nest-date, body.dark .xpost-nest-link{ color:hsl(205 10% 62%); }

/* ---- サムネイルがないとき：真っ黒にせず、「NO IMAGE」と出す（最上部のパネル・関連ニュース・前後のニュース）。中身が空の箱だけに効く ---- */
.nl-thumb:empty::after, .rn-thumb:empty::after, .pn-thumb:empty::after{
  content:"NO IMAGE"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  line-height:1; font-size:.8rem; font-weight:700; letter-spacing:.14em; color:hsl(0 0% 48%);
}

/* ---- 題名が省略されているときの、全文のポップアップ（TIP_SCRIPT が出す）。ライト・ダークどちらでも、暗い色 ---- */
.news-tip{ position:fixed; z-index:9999; max-width:min(420px, calc(100vw - 16px)); padding:8px 12px; border-radius:8px; background:hsl(0 0% 10% / .96); color:#fff; font-size:.88rem; font-weight:600; line-height:1.55; overflow-wrap:anywhere; box-shadow:0 6px 20px hsl(0 0% 0% / .35); pointer-events:none; }
.news-tip[hidden]{ display:none; }

/* ---- 日付の開始位置を固定する：日付を、左端から始める ----
   一覧の1行：題名と同じ左端から。最上部のパネル：サムネイルの左端から。
   style.css が、日付を右に寄せているので（margin-left:auto や 右寄せ）、すべて打ち消す（!important） */
.news-latest .nl-meta, a.feed-row.news-row .feed-meta{ justify-content:flex-start !important; text-align:left !important; padding-left:0 !important; }
.news-latest .nl-meta .feed-time, a.feed-row.news-row .feed-meta .feed-time{ margin:0 !important; text-align:left !important; flex:none !important; position:static !important; float:none !important; order:0 !important; }
.news-latest .nl-meta > *, a.feed-row.news-row .feed-meta > *{ margin-left:0 !important; }
.news-latest .nl-meta > .feed-time, a.feed-row.news-row .feed-meta > .feed-time{ margin-right:0 !important; }