/* =========================================================================
   岡山ニュース速報 — 共通デザインシステム
   WordPress テーマ化を想定（header / footer / sidebar / index / archive / single）
   ========================================================================= */

/* ---- デザイントークン ---- */
:root {
  /* ベース：信頼感のあるネイビー／ブルー */
  --navy:         #172944;   /* ヘッダー濃紺 */
  --navy-2:       #243857;   /* ヘッダーグラデ下 */
  --blue:         #145cb0;   /* プライマリ・リンク */
  --blue-strong:  #0047a2;
  --blue-tint:    #e4f0ff;   /* 薄い青背景 */
  --blue-line:    #c0d3ec;

  /* 岡山らしいアクセント：桃色（小さく効かせる） */
  --peach:        #ef86a0;
  --peach-strong: #e06283;
  --peach-tint:   #ffebef;

  /* ニュートラル（やや冷たい白〜墨） */
  --bg:        #f4f6f8;
  --surface:   #ffffff;
  --ink:       #1c1f25;
  --ink-2:     #44484e;
  --muted:     #6b6f76;
  --faint:     #96989d;
  --line:      #dcdee1;
  --line-2:    #eaebee;

  /* 緊急・防災 */
  --alert:        #cc2823;
  --alert-strong: #b70000;
  --alert-tint:   #ffebe6;

  /* カテゴリ色（一覧性のための色分け） */
  --cat-news:    #c9302d;   /* ニュース・事件：赤 */
  --cat-event:   #d67523;   /* イベント：橙 */
  --cat-gourmet: #d75c84;   /* 開店・閉店：桃 */
  --cat-traffic: #008096;   /* 交通：青緑 */
  --cat-bousai:  #26894c;   /* 防災・天気：緑 */
  --cat-gov:     #3063a6;   /* 行政：青 */
  --cat-life:    #9d712d;   /* 地域・暮らし：琥珀 */
  --cat-sports:  #4c59b2;   /* スポーツ：藍 */
  --cat-tourism: #0d7b68;   /* 観光：深緑 */
  --cat-jobs:    #7b4aa0;   /* 求人：紫 */

  /* レイアウト */
  --maxw: 1200px;
  --gap: 28px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(66, 72, 83, 0.06), 0 1px 3px rgba(66, 72, 83, 0.05);
  --shadow-md: 0 4px 16px rgba(50, 59, 74, 0.08), 0 1px 3px rgba(50, 59, 74, 0.06);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }   /* 390pxでの意図しない横スクロールを防止 */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---- 汎用コンテナ ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- レスポンシブグリッドユーティリティ（インラインstyleの代わり） ---- */
.grid-lead { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.grid-duo  { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .grid-lead { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-duo { grid-template-columns: 1fr; gap: 22px; } }

/* =========================================================================
   ヘッダー上部：ユーティリティバー（日付・天気・検索）
   ========================================================================= */
.utility {
  background: var(--navy);
  color: #e0e5eb;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.utility__left { display: flex; align-items: center; gap: 16px; }
.utility__date { letter-spacing: 0.02em; }
.utility__date b { color: #fff; font-weight: 700; }
.utility__wx { display: flex; align-items: center; gap: 6px; color: #d3d8de; line-height: 1.5; }
.utility__wx .temp { color: #fff; font-weight: 700; }
.utility__right { display: flex; align-items: center; gap: 18px; }
.utility__link { color: #caced4; transition: color .15s; }
.utility__link:hover { color: #fff; }

/* =========================================================================
   メインヘッダー：文字ロゴ＋検索
   ========================================================================= */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }

/* 文字ロゴ */
.logo { display: inline-flex; align-items: baseline; gap: 2px; line-height: 1; }
.logo__mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 900; letter-spacing: -0.01em;
}
.logo__pref {
  font-size: 30px; color: var(--navy);
  position: relative; padding-right: 2px;
}
/* 「岡山」の上に桃色の小さなドット（岡山＝桃のアクセント） */
.logo__pref::after {
  content: ""; position: absolute; top: -3px; right: -7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--peach-strong);
}
.logo__main { font-size: 30px; color: var(--blue-strong); }
.logo__badge {
  margin-left: 12px; align-self: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--muted); border-left: 1px solid var(--line);
  padding-left: 12px;
}
.logo__sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 6px; letter-spacing: 0.04em; }

.masthead__tools { display: flex; align-items: center; gap: 12px; }
.search {
  display: flex; align-items: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 8px 7px 16px; width: 280px;
}
.search input { border: 0; background: transparent; outline: none; font-family: inherit; font-size: 14px; width: 100%; color: var(--ink); }
.search button {
  border: 0; background: var(--blue); color: #fff;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  flex-shrink: 0;
}
.icon-btn {
  display: none; width: 42px; height: 42px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  align-items: center; justify-content: center;
}

/* =========================================================================
   グローバルナビ（カテゴリ）
   ========================================================================= */
.gnav { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(14, 22, 36, 0.18); }
.gnav .wrap { display: flex; align-items: stretch; }
.gnav__home {
  display: flex; align-items: center; gap: 7px; padding: 0 18px; color: #fff;
  font-weight: 700; font-size: 14px; background: var(--blue-strong);
  flex-shrink: 0; white-space: nowrap;
}
.gnav__list { display: flex; flex: 1; flex-wrap: wrap; }
.gnav__list a {
  display: flex; align-items: center; padding: 14px 17px;
  color: #dadee5; font-weight: 500; font-size: 14.5px;
  border-bottom: 3px solid transparent; transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.gnav__list a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.gnav__list a.is-active { color: #fff; border-bottom-color: var(--peach-strong); }
.gnav__list.is-open { flex-wrap: wrap; }
.gnav__more { display: none; }

/* =========================================================================
   速報テロップ（流れるニュースバー）
   ========================================================================= */
.ticker {
  display: flex; align-items: stretch; background: var(--surface);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.ticker__label {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--alert); color: #fff; font-weight: 900;
  padding: 0 16px; font-size: 13.5px; letter-spacing: 0.06em;
}
.ticker__label .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.ticker__viewport { overflow: hidden; flex: 1; position: relative; }
.ticker__track { display: flex; align-items: center; gap: 48px; white-space: nowrap; padding: 11px 0; width: max-content; animation: ticker-scroll 38s linear infinite; }
.ticker__viewport:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ticker__item time { color: var(--peach-strong); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.ticker__item:hover { color: var(--blue-strong); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================================
   防災・緊急アラート帯
   ========================================================================= */
.alertband {
  background: var(--alert-strong);
  color: #fff;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 14px, transparent 14px 28px);
}
.alertband .wrap { display: flex; align-items: center; gap: 16px; padding-top: 11px; padding-bottom: 11px; }
.alertband__tag {
  flex-shrink: 0; background: #fff; color: var(--alert-strong);
  font-weight: 900; font-size: 12.5px; padding: 4px 11px; border-radius: 4px; letter-spacing: 0.04em;
}
.alertband__text { font-weight: 700; font-size: 14.5px; flex: 1; }
.alertband__text a { text-decoration: underline; text-underline-offset: 3px; }
.alertband__time { font-size: 12.5px; opacity: 0.85; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* =========================================================================
   レイアウトグリッド：本文 + サイドバー
   ========================================================================= */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--gap); padding-top: 28px; padding-bottom: 48px; }
.main { min-width: 0; }
.sidebar { min-width: 0; }

/* =========================================================================
   セクション見出し
   ========================================================================= */
.shead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.shead__title {
  font-size: 19px; font-weight: 900; color: var(--ink);
  display: inline-flex; align-items: center; gap: 11px;
}
.shead__title::before {
  content: ""; width: 5px; height: 21px; border-radius: 2px; background: var(--blue);
}
.shead__more { font-size: 13px; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.shead__more:hover { color: var(--blue); }

/* =========================================================================
   カテゴリラベル（バッジ）
   ========================================================================= */
.cat {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700;
  color: #fff; padding: 3px 9px; border-radius: 3px; letter-spacing: 0.02em; line-height: 1.5;
}
.cat--news { background: var(--cat-news); }
.cat--event { background: var(--cat-event); }
.cat--gourmet { background: var(--cat-gourmet); }
.cat--traffic { background: var(--cat-traffic); }
.cat--bousai { background: var(--cat-bousai); }
.cat--gov { background: var(--cat-gov); }
.cat--life { background: var(--cat-life); }
.cat--sports { background: var(--cat-sports); }
.cat--tourism { background: var(--cat-tourism); }
.cat--jobs { background: var(--cat-jobs); }

/* =========================================================================
   画像プレースホルダ（実画像が入るまで）
   ========================================================================= */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.46), transparent 0 9%, transparent 10%),
    linear-gradient(135deg, #686f58, #1f3e49 62%, #142337);
}
.ph::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.24) 0 8%, transparent 8% 12%, rgba(255,255,255,.18) 12% 24%, transparent 24% 100%),
    linear-gradient(180deg, rgba(30,45,54,.15), rgba(12,24,32,.72));
  clip-path: polygon(0 36%, 12% 18%, 22% 42%, 35% 22%, 52% 46%, 66% 20%, 82% 38%, 100% 16%, 100% 100%, 0 100%);
}
.ph::after {
  content: "";
  position: relative;
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, transparent, rgba(0,0,0,.18));
  mix-blend-mode: screen;
  opacity: .42;
}
.ph__scene {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  z-index: 1;
}
.ph__mark {
  position: relative;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 13px;
  font-weight: 900;
}
.ph__area {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(12, 20, 28, .72);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.ph--news, .ph--news-incident { background: radial-gradient(circle at 72% 18%, #f3d1c7 0 8%, transparent 9%), linear-gradient(135deg, #8e2d3a, #33424e 66%, #18212a); }
.ph--event { background: radial-gradient(circle at 28% 28%, #ffe1a6 0 7%, transparent 8%), linear-gradient(135deg, #b6652a, #6f3a55 60%, #23303c); }
.ph--gourmet, .ph--開店・閉店 { background: radial-gradient(circle at 72% 26%, #ffe7ec 0 8%, transparent 9%), linear-gradient(135deg, #b94769, #8b6936 62%, #26303a); }
.ph--traffic, .ph--交通 { background: linear-gradient(120deg, transparent 0 44%, rgba(255,255,255,.75) 45% 48%, transparent 49% 100%), linear-gradient(135deg, #186b78, #56606b 58%, #1d2530); }
.ph--bousai, .ph--weather-safety, .ph--天気・防災 { background: radial-gradient(circle at 70% 20%, #dbe9f4 0 9%, transparent 10%), linear-gradient(135deg, #35556c, #2f734d 62%, #142537); }
.ph--gov, .ph--government-notice, .ph--行政 { background: linear-gradient(90deg, rgba(255,255,255,.16) 0 10%, transparent 10% 16%, rgba(255,255,255,.12) 16% 26%, transparent 26% 100%), linear-gradient(135deg, #596879, #8b876d 62%, #26313a); }
.ph--life, .ph--local-life { background: radial-gradient(circle at 25% 22%, #ecd8a1 0 7%, transparent 8%), linear-gradient(135deg, #8a6e3c, #3f695f 62%, #25313a); }
.ph--sports { background: radial-gradient(circle at 70% 24%, #f4f0dc 0 7%, transparent 8%), linear-gradient(135deg, #3f7f58, #4059a3 60%, #1d2634); }
.ph--tourism, .ph--観光 { background: radial-gradient(circle at 72% 18%, #fff0b3 0 8%, transparent 9%), linear-gradient(135deg, #247c6f, #816d3f 60%, #24303b); }
.ph--jobs, .ph--求人 { background: linear-gradient(135deg, #6a557c, #5c6b73 60%, #222d37); }

.info-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.info-card strong { display: block; font-size: 15px; margin-bottom: 7px; color: var(--ink); }
.info-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.info-card--gourmet { border-left-color: var(--cat-gourmet); }
.info-card--bousai { border-left-color: var(--cat-bousai); }
.info-card--sports { border-left-color: var(--cat-sports); }
.info-card--traffic { border-left-color: var(--cat-traffic); }
.info-card--tourism { border-left-color: var(--cat-tourism); }
.info-card--jobs { border-left-color: var(--cat-jobs); }
.portal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.portal-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 700;
}
.portal-link span { color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 430px) { .portal-grid { grid-template-columns: 1fr; } }

.portal-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 34px; }
.portal-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.portal-action strong { font-size: 16px; font-weight: 900; line-height: 1.45; }
.portal-action span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.portal-action b { margin-top: auto; color: var(--blue-strong); font-size: 13px; }
.portal-action--tourism { border-top-color: var(--cat-tourism); }
.portal-action--jobs { border-top-color: var(--cat-jobs); }
.portal-action--submit { border-top-color: var(--peach-strong); }
@media (max-width: 820px) { .portal-actions { grid-template-columns: 1fr; } }

/* =========================================================================
   ニュースカード
   ========================================================================= */
/* リード（特大） */
.lead { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.lead__media { aspect-ratio: 16 / 9; }
.lead__media img, .card__media img, .feed__thumb img, .article__hero img { width: 100%; height: 100%; object-fit: cover; }
.lead__body { padding: 20px 22px 22px; }
.lead__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.lead__title { font-size: 25px; font-weight: 900; line-height: 1.4; letter-spacing: 0; }
.lead__title a:hover { color: var(--blue-strong); }
.lead__excerpt { color: var(--ink-2); font-size: 14.5px; margin-top: 11px; }
.lead time, .meta time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* サブカード（画像左／テキスト右、または縦） */
.cards { display: grid; gap: 18px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 8px; }
.card__title { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.card__title a:hover { color: var(--blue-strong); }
.card__foot { margin-top: auto; }

/* 横並びリスト型（時系列速報など） */
.feed { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.feed__item { display: flex; gap: 15px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); transition: background .12s; }
.feed__item:last-child { border-bottom: 0; }
.feed__item:hover { background: var(--blue-tint); }
.feed__thumb { width: 132px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; }
.feed__main { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.feed__meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.feed__title { font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.feed__title a:hover { color: var(--blue-strong); }
.feed__excerpt { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* コンパクト見出しリスト（番号なし） */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.list__item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.list__item:last-child { border-bottom: 0; }
.list__item:hover { background: var(--blue-tint); }
.list__title { font-size: 14.5px; font-weight: 500; line-height: 1.55; }
.list__title:hover { color: var(--blue-strong); }

/* =========================================================================
   サイドバー部品
   ========================================================================= */
.widget { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin-bottom: 22px; overflow: hidden; }
.widget__head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 2px solid var(--blue); font-weight: 900; font-size: 15px; }
.widget__head .ic { color: var(--blue); }
.widget__body { padding: 16px; }

/* 天気ウィジェット */
.wx { padding: 0; }
.wx__today { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%); color: #fff; }
.wx__loc { font-size: 13px; opacity: 0.9; }
.wx__big { display: flex; align-items: center; gap: 12px; }
.wx__icon { font-size: 34px; line-height: 1; }
.wx__temp { font-size: 38px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.wx__temp small { font-size: 18px; font-weight: 700; }
.wx__hl { font-size: 13px; text-align: right; }
.wx__hl .hi { color: #ffaf9f; font-weight: 700; }
.wx__hl .lo { color: #97d8f8; font-weight: 700; }
.wx__week { display: grid; grid-template-columns: repeat(5, 1fr); }
.wx__day { text-align: center; padding: 11px 4px; border-right: 1px solid var(--line-2); font-size: 12px; }
.wx__day:last-child { border-right: 0; }
.wx__day .d { color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.wx__day .e { font-size: 19px; margin: 2px 0; }
.wx__day .t { font-variant-numeric: tabular-nums; font-size: 11.5px; }
.wx__day .t .h { color: var(--cat-news); font-weight: 700; }
.wx__day .t .l { color: var(--cat-traffic); }

/* ランキング */
.rank { counter-reset: rk; }
.rank__item { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.rank__item:last-child { border-bottom: 0; padding-bottom: 0; }
.rank__item:first-child { padding-top: 0; }
.rank__num {
  counter-increment: rk; flex-shrink: 0; width: 26px; height: 26px; border-radius: 5px;
  display: grid; place-items: center; font-weight: 900; font-size: 14px;
  background: var(--bg); color: var(--muted); font-variant-numeric: tabular-nums;
}
.rank__item:nth-child(1) .rank__num { background: var(--blue-strong); color: #fff; }
.rank__item:nth-child(2) .rank__num { background: var(--blue); color: #fff; }
.rank__item:nth-child(3) .rank__num { background: var(--peach-strong); color: #fff; }
.rank__num::before { content: counter(rk); }
.rank__title { font-size: 14px; font-weight: 500; line-height: 1.5; }
.rank__title:hover { color: var(--blue-strong); }
.rank__views { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

/* 広告枠 */
.ad {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; color: var(--faint);
  font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: 0.05em;
  margin-bottom: 22px; padding: 14px;
}
.ad--rect { aspect-ratio: 300 / 250; }
.ad--bill { aspect-ratio: 970 / 90; }
.ad__tag { position: relative; }
.ad__label { position: absolute; top: -23px; left: 0; font-size: 10px; color: var(--faint); }

/* カテゴリ一覧（サイドバー） */
.catlist { display: grid; gap: 1px; background: var(--line-2); }
.catlist a { display: flex; align-items: center; justify-content: space-between; background: var(--surface); padding: 12px 16px; font-size: 14px; font-weight: 500; transition: background .12s; }
.catlist a:hover { background: var(--blue-tint); color: var(--blue-strong); }
.catlist a.is-empty { color: var(--muted); background: #fbfcfd; }
.catlist .bar { width: 4px; align-self: stretch; border-radius: 2px; margin-right: 10px; }
.catlist .left { display: flex; align-items: center; }
.catlist .count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sidebar__bottom-ad { margin-top: 22px; }

/* SNSフォロー */
.sns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sns a { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: var(--radius); color: #fff; font-size: 13px; font-weight: 700; }
.sns .x { background: #14161b; }
.sns .line { background: #20a04e; }
.sns .fb { background: #3458ac; }
.sns .ig { background: #c33353; }

/* =========================================================================
   フッター
   ========================================================================= */
.footer { background: var(--navy); color: #bfc5cc; margin-top: 20px; }
.footer__top { padding: 44px 0 36px; }
.footer__top .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand .logo__mark { font-size: 22px; }
.footer__brand .logo__pref { font-size: 22px; color: #fff; }
.footer__brand .logo__main { font-size: 22px; color: #9cc0f1; }
.footer__brand p { font-size: 13px; color: #9a9fa5; margin-top: 14px; max-width: 30ch; }
.footer__col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 0.04em; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { font-size: 13px; color: #b3b8be; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 12px; color: #8b9095; }
.footer__bottom .links { display: flex; gap: 18px; }

/* =========================================================================
   パンくず
   ========================================================================= */
.crumbs { font-size: 12.5px; color: var(--muted); padding: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a:hover { color: var(--blue); }
.crumbs .sep { color: var(--faint); }

/* =========================================================================
   ボタン・ページネーション
   ========================================================================= */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: var(--radius); font-weight: 700; font-size: 14px; border: 1px solid transparent; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-strong); }
.btn--ghost { background: var(--surface); color: var(--blue-strong); border-color: var(--blue-line); }
.btn--ghost:hover { background: var(--blue-tint); }
.btn--block { display: flex; width: 100%; justify-content: center; }

.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 34px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--radius); font-size: 14px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .is-current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager .dots { border: 0; background: transparent; }

/* =========================================================================
   カテゴリ見出しバナー（アーカイブ）
   ========================================================================= */
.cathero { background: var(--surface); border-bottom: 1px solid var(--line); }
.cathero .wrap { display: flex; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.cathero__mark { width: 6px; height: 46px; border-radius: 3px; background: var(--cat-news); flex-shrink: 0; }
.cathero__title { font-size: 27px; font-weight: 900; letter-spacing: -0.01em; }
.cathero__desc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cathero__count { margin-left: auto; font-size: 13px; color: var(--muted); }
.cathero__count b { color: var(--ink); font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* サブカテゴリ／並び替えタブ */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar__tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.toolbar__sort { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.toolbar__sort select { font-family: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }

/* アーカイブ用の大きめカードグリッド */
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .archive-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   記事詳細（single）
   ========================================================================= */
.article { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.article__head { padding: 26px 34px 22px; border-bottom: 1px solid var(--line-2); }
.article__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.article__meta time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.article__region { font-size: 12px; color: var(--blue-strong); background: var(--blue-tint); padding: 3px 9px; border-radius: 3px; font-weight: 700; }
.article__title { font-size: 30px; font-weight: 900; line-height: 1.45; letter-spacing: -0.01em; }
.article__byline { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; gap: 12px; }
.article__author { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.article__author .av { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-tint); display: grid; place-items: center; color: var(--blue-strong); font-weight: 900; font-size: 14px; }

/* シェアボタン */
.share { display: flex; align-items: center; gap: 8px; }
.share__btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share__btn.x { background: #14161b; }
.share__btn.line { background: #20a04e; }
.share__btn.fb { background: #3458ac; }
.share__btn.copy { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.share__btn.copy.is-copied { border-color: var(--blue); color: var(--blue); }
.share__btn:hover { opacity: 0.88; }

.article__hero { aspect-ratio: 16 / 9; }
.article__cap { font-size: 12px; color: var(--muted); padding: 8px 34px 0; }
.article__body { padding: 26px 34px 34px; font-size: 16.5px; line-height: 2; color: var(--ink); }
.article__body > p { margin-bottom: 1.4em; }
.article__body h2 { font-size: 21px; font-weight: 900; margin: 1.8em 0 0.7em; padding-left: 13px; border-left: 5px solid var(--blue); line-height: 1.5; }
.article__body h3 { font-size: 18px; font-weight: 700; margin: 1.5em 0 0.5em; }
.article__body a { color: var(--blue-strong); text-decoration: underline; text-underline-offset: 2px; }
.article__body .note { background: var(--blue-tint); border-radius: var(--radius); padding: 16px 18px; font-size: 14.5px; line-height: 1.8; margin: 1.4em 0; }
.article__body figure { margin: 1.6em 0; }
.article__body figure .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.article__body figcaption { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.notice-pr { display:flex; gap:10px; align-items:flex-start; margin:18px 34px; padding:14px 16px; border:1px solid #f0c36d; background:#fff8e6; color:#5b4300; border-radius:8px; line-height:1.6; }
.article__adnote { margin:22px 0 0; padding:12px 14px; border:1px solid var(--line-2); border-radius:8px; background:var(--surface-2); color:var(--muted); font-size:13px; }
.okn-ad, .ad { contain: layout paint; }
.okn-ad { display:block; min-height:90px; overflow:hidden; margin: 20px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); }
.okn-ad__label { display:block; margin-bottom:8px; color: var(--muted); font-size: 12px; text-align: center; }
.okn-ad--header, .ad--bill { min-height:90px; }
.okn-ad--infeed { min-height:100px; }
.okn-ad--inarticle { display:none; }
.okn-ad--below { min-height:220px; }
.okn-ad--sidebar { min-height:0; }
img { height:auto; }
iframe, ins.adsbygoogle { max-width:100%; }
.google-auto-placed { max-width: 100%; clear: both; }
body > ins.adsbygoogle, body > .adsbygoogle { max-width: 100vw !important; overflow: hidden; }

/* タグ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 34px 26px; }
.tags a { font-size: 13px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }
.tags a:hover { border-color: var(--blue); color: var(--blue); }
.tags a::before { content: "#"; color: var(--faint); margin-right: 2px; }

/* シェア（下部・大） */
.sharebar { display: flex; align-items: center; gap: 10px; padding: 20px 34px; border-top: 1px solid var(--line-2); background: var(--bg); flex-wrap: wrap; }
.sharebar__label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.sharebar a { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius); color: #fff; font-size: 13px; font-weight: 700; }
.sharebar .x { background: #14161b; } .sharebar .line { background: #20a04e; } .sharebar .fb { background: #3458ac; }

/* 関連記事 */
.related { margin-top: 36px; }
.related-card .related-card__media { aspect-ratio: 4 / 3; min-height: 150px; }
.related-card .card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.related-card .article__region { font-size: 11.5px; padding: 3px 8px; }
@media (max-width: 720px) {
  .article__head, .article__body, .tags, .article__cap { padding-left: 20px; padding-right: 20px; }
  .notice-pr { margin-left:20px; margin-right:20px; }
  .sharebar { padding-left: 20px; padding-right: 20px; }
  .article__title { font-size: 23px; }
}

/* =========================================================================
   レスポンシブ
   ========================================================================= */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr 280px; }
}
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
  .sidebar > * { margin-bottom: 0; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .search { display: none; }
  .icon-btn { display: inline-flex; }
  .gnav { position: static; }
  .gnav .wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gnav .wrap::-webkit-scrollbar { display: none; }
  .gnav__home { position: sticky; left: 0; z-index: 2; }
  .utility__right { display: none; }
  .footer__top .wrap { grid-template-columns: 1fr 1fr; gap: 28px; }
  .lead__title { font-size: 21px; }
  .okn-ad--sidebar, .okn-ad--infeed { display:none; }
}
@media (max-width: 560px) {
  .sidebar { grid-template-columns: 1fr; }
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .feed__item { gap: 12px; padding: 14px; }
  .feed__thumb { width: 92px; }
  .feed__title { font-size: 15px; }
  .feed__excerpt { -webkit-line-clamp: 3; }
  .logo__pref, .logo__main { font-size: 24px; }
  .logo__badge { display: none; }
  .footer__top .wrap { grid-template-columns: 1fr; gap: 22px; }
  .wx__week { grid-template-columns: repeat(5, 1fr); }
}
