/* セキュリティアドバイザリ公開サイト
   配色・書体は faweb.net (assets/css/style.css) に合わせている:
   基調 #02538f / 罫線 #ccdde9 / 淡背景 #f2f6f9 / 本文 #333
   文字は黒基調とし、基調色は帯・バー・リンクなどのアクセントに限定する。
   h2 は faweb.net と同じ「左に太い紺バー + 淡青→白グラデーション」 */
:root {
  --primary: #02538f;
  --primary-dark: #05417f;
  --line: #ccdde9;
  --bg-light: #f2f6f9;
  --fg: #333;
  --muted: #707070;
  --link: #0e5289;
  --accent: #d7000f;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  color: var(--fg);
  font-family: Arial, "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "Noto Sans Japanese", "Noto Sans CJK JP", "メイリオ", Meiryo, sans-serif;
  line-height: 1.8;
  background: #fff;
}
a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--primary); text-decoration: none; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1rem; }

/* ヘッダー: 上端に基調色のライン、白地に黒の組織名 */
.site-header { background: #fff; border-top: 4px solid var(--primary); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; }
.site-header .org { font-weight: 700; color: var(--fg); letter-spacing: .02em; }
.site-header .lang { font-size: .88rem; }
.site-header .lang a { text-decoration: none; }
.site-header .lang a:hover { text-decoration: underline; }
.site-header .lang .sep { margin: 0 .55em; color: var(--line); }

main.wrap { padding: 1.8rem 1rem 3.5rem; }

/* h1: 黒の太字 + 左に基調色の太バー、下線は淡青 */
h1 {
  font-size: 1.5rem;
  color: var(--fg);
  font-weight: 700;
  line-height: 1.4;
  margin: .4rem 0 1.4rem;
  padding: .1rem 0 .7rem .8rem;
  border-left: 6px solid var(--primary);
  border-bottom: 2px solid var(--line);
}

/* h2: faweb.net と同じ「左に紺の太バー + 淡青→白のグラデーション帯」。文字は黒 */
h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 2.2rem 0 .9rem;
  padding: .5rem .9rem .5rem calc(.9rem + 6px);
  position: relative;
  background: linear-gradient(90deg, var(--line) 0, #fff 100%);
  border: 0;
}
h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%; width: 6px;
  background-color: var(--primary);
}

.intro { margin: 0 0 1.4rem; }
.breadcrumb { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
.breadcrumb a { color: var(--muted); }

/* 絞り込み (年・製品): ボタン状のリンク。選択中は ✓ 付きの紺ボタン */
.filters { margin: 0 0 .9rem; padding: .7rem .9rem; background: var(--bg-light); border: 1px solid var(--line); font-size: .9rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .45rem; }
.filter-row + .filter-row { margin-top: .55rem; }
.filter-label { color: var(--muted); margin-right: .2rem; min-width: 4.5em; }
.filter-note { margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.filters a {
  display: inline-block; padding: .28rem 1rem; border: 1px solid #b6cbdb; border-radius: 4px;
  background: #fff; color: var(--link); text-decoration: none; line-height: 1.4;
  box-shadow: 0 1px 0 rgba(2, 83, 143, .12);
}
.filters a:hover { border-color: var(--primary); background: #eaf2f8; color: var(--primary); }
.filters a.active {
  background: var(--primary); border-color: var(--primary-dark); color: #fff; font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.filters a.active::before { content: "✓ "; }

/* 絞り込みステータス帯: 何で絞り込んでいるかを一覧の直前に明示 */
.filter-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 1rem; padding: .5rem .9rem;
  background: var(--primary); color: #fff; border-radius: 4px; font-size: .95rem;
}
.filter-status .fs-label { opacity: .85; }
.filter-status strong { font-size: 1.05rem; }
.filter-status .fs-count { opacity: .85; }
.filter-status .fs-clear {
  margin-left: auto; color: #fff; text-decoration: none; font-size: .85rem;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: .12rem .8rem;
}
.filter-status .fs-clear:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* ページ送り */
.pager { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: 1.2rem 0 0; font-size: .95rem; }
.pager a, .pager .current { display: inline-block; min-width: 2.1em; text-align: center; padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; }
.pager a:hover { border-color: var(--primary); }
.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 表: ヘッダは淡青背景・黒文字、罫線は淡青。一覧は行ホバーで淡青 */
table { border-collapse: collapse; width: 100%; margin: .6rem 0 1.4rem; }
th, td { border: 1px solid var(--line); padding: .55rem .85rem; text-align: left; vertical-align: top; }
th { background: var(--bg-light); color: var(--fg); font-weight: 700; }
table.list .col-id { white-space: nowrap; width: 10.5em; }
table.list .col-date { white-space: nowrap; width: 8em; }
table.list tbody tr:hover td { background: var(--bg-light); }
table.list a { text-decoration: none; }
table.list a:hover { text-decoration: underline; }
table.list td.col-id a { font-weight: 700; }

.updated { color: var(--accent); font-size: .85em; margin-left: .35em; font-weight: 700; }

/* 詳細ページのメタ情報 (ID・公開日・更新日): 1行の帯にまとめる */
dl.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 2.2rem;
  margin: 0 0 1.6rem;
  padding: .55rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--line);
  font-size: .92rem;
}
dl.meta > div { display: flex; gap: .6rem; }
dl.meta dt { color: var(--muted); font-weight: 400; }
dl.meta dt::after { content: ":"; margin-left: .1em; }
dl.meta dd { margin: 0; font-weight: 700; }

article.advisory { line-height: 1.9; }
article.advisory table { font-size: .92em; }
article.advisory ul { padding-left: 1.4em; }
article.advisory li { margin: .15em 0; }
article.advisory blockquote {
  margin: 0 0 1.4rem;
  padding: .6rem 1rem;
  background: #fdf6ec;
  border: 1px solid #e8d5b0;
  border-left: 4px solid #d99e2b;
  color: #6b5518;
  font-size: .9rem;
  line-height: 1.7;
}
article.advisory blockquote p { margin: 0; }

.back { margin-top: 2.4rem; }
.back a {
  display: inline-block;
  padding: .5rem 1.6rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: .9rem;
}
.back a:hover { background: var(--primary-dark); color: #fff; }

.site-footer { background: var(--bg-light); border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer .wrap { padding: 1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.site-footer .copy { margin: 0; }
.site-footer .links a { text-decoration: none; }
.site-footer .links a:hover { text-decoration: underline; }
.site-footer .links .sep { margin: 0 .55em; color: var(--line); }
/* 外部リンクの印: 親サイト (faweb.net) の本文リンクと同じ Font Awesome 5 Free "clone" (24d) をテキストの前に SVG で再現
   (Icons: CC BY 4.0 https://fontawesome.com/license/free) */
.site-footer .links a[target="_blank"]::before { content: ""; display: inline-block; width: .8em; height: .8em; margin: 0 5px 0 0; vertical-align: -.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%2302538f' d='M464 0H144c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h320c26.51 0 48-21.49 48-48v-48h48c26.51 0 48-21.49 48-48V48c0-26.51-21.49-48-48-48zM362 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h42v224c0 26.51 21.49 48 48 48h224v42a6 6 0 0 1-6 6zm96-96H150a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h308a6 6 0 0 1 6 6v308a6 6 0 0 1-6 6z'/%3E%3C/svg%3E") no-repeat center / contain; }

@media (max-width: 40rem) {
  html { font-size: 15px; }
  h1 { font-size: 1.3rem; }
  table.list .col-date { width: 6.5em; }
  dl.meta { flex-direction: column; gap: .1rem; }
}
