/* ============================================================
   glass-trial.css — 【試験中】Wikiの個別ページの枠を、影なしのガラスの質感にする
   ページ下のリンクの帯（knowledge.css / page-head.css）と同じ作り：
     細い縁＋内側の白い縁（二重線）＋上端のツヤで厚みを出す。面は、白に近い半透明。影は、薄いものを選べる。
   四隅のカッコ（.corner-frame）は、そのまま残る。角は丸めない（直角）。
   対象：Wikiの個別ページ・一覧、用語集・格言集の個別ページ・一覧。
         メインの枠、右カラムの枠（人物情報・ランキングの見出し・「このサイトを登録」など）、左の目次、検索・絞り込みの枠、一覧の行を包む枠、記事の中の目次
   ★ 元に戻すとき：各テンプレート（wiki.html・wiki-list.html・glossary.html・glossary-list.html）の、この CSS を読み込む1行（glass-trial.css）を消すだけ。
   ★ トップページの枠（.top-frame：ランキング一覧・最新ニュース・投資の知識）も、対象に足してある（トップの top.html は、この CSS を読み込んでいる）。
   ★ まだ入れていないページ：ほかのページ。入れるときは、そのテンプレートに同じ1行を足す。最後に style.css に統合して、このファイルは消す。
   ★ 面の透け具合（--gt-face）、影（--gt-shadow）、縁の濃さ（--gt-edge）は、下の :root で調整できる。
   ============================================================ */
:root {
  /* ▼ 面の透け具合。大きいほど白に近い。 いま .90 ／ 前の試験版 .70 */
  --gt-face: linear-gradient(hsl(0 0% 100% / .90), hsl(0 0% 100% / .90));
  /* ▼ 影。切り替えるときは、下の「--gt-shadow:」の行の、「:」のあとを、次の3つのどれかに書き換える。
       ① 影なし   0 0 0 0 transparent
       ② 薄い影   0 1px 3px hsl(0 0% 0% / .07), 0 2px 8px -2px hsl(0 0% 0% / .06)    ← いま
       ③ 元の影   0 4px 16px -2px hsl(0 0% 0% / .08)   */
  --gt-shadow: 0 1px 3px hsl(0 0% 0% / .07), 0 2px 8px -2px hsl(0 0% 0% / .06);
  --gt-edge: hsl(214 22% 70% / .55);
  --gt-ring: hsl(0 0% 100% / .65);
  --gt-hi: hsl(0 0% 100% / .9);
}
body.dark {
  --gt-face: linear-gradient(hsl(0 0% 100% / .09), hsl(0 0% 100% / .09));
  --gt-shadow: 0 1px 3px hsl(0 0% 0% / .35), 0 2px 8px -2px hsl(0 0% 0% / .30);
  --gt-edge: hsl(0 0% 100% / .10);
  --gt-ring: transparent;
  --gt-hi: hsl(0 0% 100% / .18);
}

/* 既存の指定に !important があるもの（右カラム）にも勝てるように、body を付けて強くしてある */
body .wiki-main-frame.glass,
body .wiki-infobox.glass,
body .wiki-toc.glass,
body .wiki-toolbar.glass,
body .wiki-list.glass,
body .feed-row.glass,
body .grid-card.featured.glass,
body .top-frame.glass,
body .wiki-detail-layout aside > .glass,
body .layout > aside > .glass {
  background-color: transparent !important;
  background-image: var(--gt-face) !important;
  border: 1px solid var(--gt-edge) !important;
  box-shadow: var(--gt-shadow), inset 0 0 0 1.5px var(--gt-ring), inset 0 2px 2px var(--gt-hi) !important;
}

/* 右のランキングの見出し：下は、すぐ下のランキング画像と重なるので、下の縁は付けない */
body .wiki-detail-layout aside .section-title.glass.framed,
body .layout > aside .section-title.glass.framed {
  background-color: transparent !important;
  background-image: var(--gt-face) !important;
  border: 1px solid var(--gt-edge) !important;
  border-bottom: none !important;
  box-shadow: inset 0 0 0 1.5px var(--gt-ring), inset 0 2px 2px var(--gt-hi) !important;
}

/* 角は丸めない（直角）。メインカラムも、サイドの枠も */
body .wiki-main-frame.glass,
body .wiki-infobox.glass,
body .wiki-toc.glass,
body .wiki-detail-layout aside > .glass,
body .wiki-toolbar.glass,
body .wiki-list.glass,
body .feed-row.glass,
body .grid-card.featured.glass,
body .top-frame.glass,
body .layout > aside > .glass,
body .layout > aside .sidebar-block,
body .wiki-detail-layout aside .sidebar-block {
  border-radius: 0 !important;
}

/* 記事の中の目次（用語集・格言集の個別ページ。開け閉めする目次の枠） */
body .wiki-inline-toc {
  background-color: transparent;
  background-image: var(--gt-face);
  border: 1px solid var(--gt-edge);
  border-radius: 0;
  box-shadow: var(--gt-shadow), inset 0 0 0 1.5px var(--gt-ring), inset 0 2px 2px var(--gt-hi);
}

/* ダークモード：右カラムの枠には、元の指定に「body.dark …」で書かれた !important の影があるので、同じ強さで上書きする（これがないと、ダークだけ、元の影が残る） */
body.dark .wiki-detail-layout aside > .glass,
body.dark .layout > aside > .glass {
  box-shadow: var(--gt-shadow), inset 0 0 0 1.5px var(--gt-ring), inset 0 2px 2px var(--gt-hi) !important;
}

/* ニュース一覧の、2つ目以降の行：ホバーで、面がほんのり青くなる（!important で面を決めているので、ホバーも、ここで決める） */
body .feed-row.glass:hover{
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 7%, hsl(0 0% 100% / .90)), color-mix(in srgb, var(--accent) 7%, hsl(0 0% 100% / .90))) !important;
}
body.dark .feed-row.glass:hover{
  background-image: linear-gradient(hsl(0 0% 100% / .14), hsl(0 0% 100% / .14)) !important;
}
