@charset "UTF-8";
/* =========================================================================
   補助金不正 速報 共通スタイル（ポータル型レイアウト）
   - 初心者向けメモ：このファイル1枚でサイト全体の見た目を決めています。
   - 色は下の「:root」の変数を書き換えると、サイト全体が一括で変わります。
   ========================================================================= */

/* ---- 配色・基本設定 ---- */
:root {
  --ink-900: #0c1015;   /* ヘッダー・フッターの背景（墨色） */
  --ink:     #1b2330;   /* 本文の文字色 */
  --paper:   #f3f4f2;   /* ページの背景 */
  --card:    #ffffff;   /* カードの背景 */
  --line:    #e2e3e0;   /* 罫線 */
  --muted:   #5d6570;   /* 補足文字 */

  --red:      #c41e2d;  /* 速報・逮捕など強い色 */
  --red-soft: #fcecec;
  --amber:    #a5740a;  /* 注意 */
  --amber-soft:#fdf5e3;
  --green:    #2b7a53;  /* 対策・セーフ */
  --green-soft:#e9f4ee;
  --blue:     #2a5f9e;  /* リンク・中立 */
  --blue-soft:#eef3fa;

  --radius: 12px;
  --shadow: 0 1px 3px rgba(12, 16, 21, 0.06), 0 4px 14px rgba(12, 16, 21, 0.05);
  --maxw: 1180px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
}

/* ---- 土台 ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
h1, h2, h3, h4 { line-height: 1.45; }

/* ---- ヘッダー（ロゴ・検索・分野ナビ） ---- */
.site-header { background: var(--ink-900); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand .logo { background: var(--red); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 19px; flex: none; }
.brand small { display: block; font-weight: 400; font-size: 11.5px; color: #aab3bf; line-height: 1.3; }
.search { display: flex; flex: 0 1 360px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 7px 12px; border: 0; border-radius: 8px 0 0 8px; }
.search button { font: inherit; font-size: 14px; border: 0; background: var(--red); color: #fff; padding: 0 14px; border-radius: 0 8px 8px 0; cursor: pointer; }
.gnav { background: #161c24; border-top: 1px solid #222a35; }
.gnav .container { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gnav .container::-webkit-scrollbar { display: none; }
.gnav a { color: #d7dde5; text-decoration: none; font-size: 13.5px; padding: 9px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.gnav a:hover { color: #fff; border-bottom-color: var(--red); }

/* ---- 速報バー ---- */
.ticker { background: var(--red); color: #fff; font-size: 14px; }
.ticker .container { display: flex; gap: 12px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.ticker .label { background: #fff; color: var(--red); font-weight: 800; padding: 1px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.ticker a { color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker a:hover { text-decoration: underline; }

/* ---- 2段組み（本文＋サイドバー） ---- */
.page { padding-top: 20px; padding-bottom: 10px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.section { margin-bottom: 32px; scroll-margin-top: 124px; }
.side-box { scroll-margin-top: 124px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 2px solid var(--ink); margin: 0 0 14px; padding-bottom: 6px; }
.section-title h2 { font-size: 20px; margin: 0; }
.section-title h2 .kicker { color: var(--red); font-size: 11px; letter-spacing: .14em; font-weight: 800; display: block; line-height: 1.2; }
.section-title a { font-size: 13px; text-decoration: none; white-space: nowrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- 今朝の解説（トップの大きなカード） ---- */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; text-decoration: none; color: inherit; }
.featured .pic { background: #16223a; display: flex; align-items: center; }  /* 画像の上下にできる余白を濃紺で埋める */
.featured img { width: 100%; aspect-ratio: 1200 / 630; }
.featured .body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.featured h3 { font-size: 21px; margin: 0; }
.featured p { margin: 0; font-size: 14.5px; color: #3a4350; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.featured .more { margin-top: auto; font-weight: 700; color: var(--red); font-size: 14px; }
.featured:hover h3 { color: var(--red); }

/* ---- ニュースカード（サムネイル付き） ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 18px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(12,16,21,.12); }
.news-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: #d9dce0; }
.news-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.news-card .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.news-card .title { font-size: 14.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover .title { color: var(--red); }

/* ---- 分野別ブロック ---- */
.cat-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cat-block { padding: 14px 16px; border-top: 4px solid var(--c, var(--ink)); }
.cat-block h3 { margin: 0 0 6px; font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.cat-block h3 a { font-size: 12.5px; font-weight: 400; text-decoration: none; }
.cat-block h3 small { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 6px; }

/* ---- 小さな横長カード（サイドバー・分野別） ---- */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list a { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 8px 0; text-decoration: none; color: inherit; font-size: 13.5px; line-height: 1.5; font-weight: 600; }
.mini-list img { width: 112px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 6px; background: #d9dce0; }
.mini-list .date { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.mini-list a:hover { color: var(--red); }

/* ---- 一覧（絞り込み付き） ---- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filters select, .filters input { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filters input { flex: 1; min-width: 160px; }
.filters button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 0 12px; cursor: pointer; }
.count-note { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.news-list { display: grid; gap: 12px; }
.news-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.news-row img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 6px; background: #d9dce0; }
.news-row .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.news-row h4 { margin: 4px 0; font-size: 16px; }
.news-row p { margin: 0; font-size: 14px; color: #3a4350; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-row:hover h4 { color: var(--red); }
.load-more { display: block; margin: 16px auto 0; font: inherit; font-size: 14px; font-weight: 700; padding: 10px 28px; border: 1px solid var(--ink); background: #fff; border-radius: 999px; cursor: pointer; }
.load-more:hover { background: var(--ink); color: #fff; }

/* ---- サイドバー ---- */
.sidebar { display: grid; gap: 16px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.side-box h4 { margin: 0 0 10px; font-size: 15px; padding-left: 9px; border-left: 4px solid var(--red); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: var(--paper); border-radius: 8px; padding: 10px; }
.stat .n { font-size: 24px; font-weight: 800; line-height: 1.2; }
.stat .l { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: inherit; font-size: 12.5px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips b { color: var(--muted); font-weight: 400; margin-left: 4px; }
.cat-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.cat-list a { display: flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none; color: inherit; border-bottom: 1px dashed var(--line); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.cat-list b { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cat-list a:hover { color: var(--red); }
.bar-row { display: grid; grid-template-columns: 64px 1fr 22px; align-items: center; gap: 6px; font-size: 12px; margin: 2px 0; white-space: nowrap; }
.bar-track { background: #eceeef; border-radius: 4px; height: 10px; overflow: hidden; }
.bar-fill { background: var(--red); height: 100%; border-radius: 4px; }
.archive-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.archive-list li + li { border-top: 1px solid var(--line); }
.archive-list a { display: block; padding: 7px 0; text-decoration: none; color: inherit; line-height: 1.5; font-weight: 600; }
.archive-list .date { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.archive-list a:hover { color: var(--red); }
.side-brief { display: block; text-decoration: none; color: inherit; font-weight: 700; font-size: 14px; line-height: 1.5; }
.side-brief img { border-radius: 8px; margin-bottom: 6px; }
.side-brief:hover { color: var(--red); }

/* ---- 記事ページ（事件・解説） ---- */
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.article { overflow: hidden; }
.article .hero-img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.article-body { padding: 22px 26px 26px; }
.article h1 { font-size: 26px; margin: 10px 0 12px; }
.article .lead { font-size: 17px; }
.article h3 { font-size: 17px; margin: 26px 0 8px; padding-left: 10px; border-left: 4px solid var(--ink); }
.article ul { padding-left: 1.3em; margin: 6px 0; }
.article li { margin: 4px 0; }
.brief-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.box { border-radius: 10px; padding: 14px 16px; margin: 10px 0; }
.box p { margin: 0; }
.box.warn { background: var(--amber-soft); border-left: 4px solid var(--amber); }
.box.safe { background: var(--green-soft); border-left: 4px solid var(--green); }
.box.info { background: var(--blue-soft); border-left: 4px solid var(--blue); }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li::before { content: "☐ "; color: var(--green); font-weight: 700; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.facts-table th { width: 5.5em; color: var(--muted); font-weight: 600; white-space: nowrap; background: #fafaf8; }
.sources { font-size: 13px; color: var(--muted); margin-top: 18px; }
.archive-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.btn { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 14px; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--ink); }

/* ---- タグ ---- */
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #eef0f2; color: var(--ink); white-space: nowrap; line-height: 1.7; }
.tag.cat { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.tag.stage-逮捕, .tag.stage-起訴, .tag.stage-告発 { background: var(--red); color: #fff; }
.tag.stage-行政処分 { background: var(--amber-soft); color: var(--amber); }
.tag.stage-提訴 { background: var(--blue-soft); color: var(--blue); }
.tag.stage-判決 { background: #6e1932; color: #fff; }
.tag.stage-公表, .tag.stage-返還命令 { background: var(--amber-soft); color: var(--amber); }
.tag.stage-制度改正, .tag.stage-調査報告 { background: var(--blue-soft); color: var(--blue); }
.tag.stage-不起訴 { background: #eef0f2; color: var(--muted); }
.tag.stage-倒産 { background: #3a3f47; color: #fff; }

/* ---- M&A不正・事件コーナー ---- */
.gnav a.gnav-ma { color: #fff; font-weight: 700; background: rgba(196, 30, 45, .28); }
.tag.ma-badge { background: #1b2330; color: #fff; }
.ma-hero { padding: 22px 26px; margin-bottom: 24px; border-top: 5px solid #8c1e28; }
.ma-hero .kicker { color: #8c1e28; font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.ma-hero h1 { margin: 2px 0 8px; font-size: 26px; }
.ma-hero p { margin: 0 0 6px; font-size: 15px; }
.ma-hero-meta { color: var(--muted); font-size: 13px !important; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips button.on b { color: #c9d0d8; }
.side-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }
.side-check { margin: 0; font-size: 13.5px; line-height: 1.6; }
.side-check li { margin: 6px 0; }
.ma-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 14px; border-left: 5px solid #8c1e28; font-size: 14px; }
.ma-banner p { margin: 0; color: #3a4350; }

/* ---- フッター ---- */
.site-footer { background: var(--ink-900); color: #aab3bf; font-size: 13px; padding: 28px 0; margin-top: 30px; }
.site-footer a { color: #d7dde5; }
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 6px; }

/* ---- タブレット・スマホ表示 ---- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .featured { grid-template-columns: 1fr; }
  .cat-blocks { grid-template-columns: 1fr; }
  .card-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-row { grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .news-row h4 { font-size: 14.5px; }
  .news-row p { display: none; }
  .article-body { padding: 16px; }
  .article h1 { font-size: 21px; }
  .section-title h2 { font-size: 18px; }
}
@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
}
