/* Vantage Politics Absolute Stability Style V168 */

:root { --primary: #2962ff; --header: #131722; --border: #e0e3eb; --text-main: #131722; --text-sub: #787b86; --bg-sub: #f8f9fd; }

/* 1. ベース・リセット */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; padding: 0; background: #fff; color: var(--text-main); display: flex; flex-direction: column; min-height: 100vh; align-items: center; -webkit-font-smoothing: antialiased; line-height: 1.6; }

/* 2. 物理構造 (1400pxワイド) */
.site-header { width: 100%; background: var(--header); color: #fff; padding: 18px 0; border-bottom: 2px solid var(--primary); position: sticky; top: 0; z-index: 1000; }
.header-container { width: 94%; max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.site-logo a { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 800; }

.main-content { width: 94%; max-width: 1400px; margin: 30px auto; flex: 1; display: flex; flex-direction: column; }
.content-wrapper { display: flex; gap: 45px; align-items: flex-start; width: 100%; }
.article-section, .static-page-container { flex: 1; min-width: 0; text-align: left !important; }
.sidebar-section { width: 320px; flex-shrink: 0; position: sticky; top: 110px; }

/* 3. ニュースリスト (V161高密度) */
.article-list { list-style: none !important; padding: 0 !important; margin: 0; }
.article-list li { padding: 14px 0; border-bottom: 1px solid #f0f3fa; list-style-type: none !important; }
.article-list a { text-decoration: none; color: inherit; display: block; }
.news-meta { font-size: 0.75rem; color: var(--text-sub); margin-bottom: 5px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.news-region { color: var(--primary); background: #eef2ff; padding: 2px 6px; border-radius: 4px; }
.news-title { font-size: 0.95rem; font-weight: 600; line-height: 1.5; margin-top: 4px; }
.article-list a:hover .news-title { color: var(--primary); }

/* 4. フィルタコンソール (ポータル専用) */
.filter-console { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; padding: 20px; background: var(--bg-sub); border-radius: 8px; border: 1px solid var(--border); }
.filter-top-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.tabs { display: flex; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 6px 14px; font-size: 0.85rem; font-weight: 700; cursor: pointer; color: var(--text-main); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.date-input { border: 1px solid var(--border); padding: 5px; border-radius: 4px; font-size: 0.85rem; }
.search-row { display: flex; gap: 10px; }
.search-input { flex: 1; padding: 10px 15px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.9rem; }
.search-btn { background: var(--primary); color: #fff; border: none; padding: 0 25px; border-radius: 4px; font-weight: 700; cursor: pointer; }

/* 5. 本文・お問い合わせカード (V168連動) */
.static-page-container h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 24px; color: var(--text-main); line-height: 1.3; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.static-page-container p { font-size: 1.05rem; line-height: 1.8; color: #334155; margin-bottom: 20px; }

.contact-card { background: var(--bg-sub); border: 1px solid var(--border); border-radius: 12px; padding: 40px; margin: 40px 0; display: flex; flex-direction: column; gap: 20px; max-width: 550px; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.email-label { font-size: 0.85rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; }
.email-address { font-size: 1.4rem; font-weight: 700; color: var(--header); word-break: break-all; }
.copy-btn { width: fit-content; background: var(--header); color: #fff; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.copy-btn:hover { background: var(--primary); }

/* 6. フッター・その他 */
.site-footer { width: 100%; background: var(--bg-sub); padding: 50px 0; border-top: 1px solid var(--border); margin-top: auto; text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: var(--text-sub); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.back-link { display: inline-block; background: var(--header); color: #fff; padding: 12px 24px; border-radius: 6px; text-decoration: none; font-weight: 700; margin-bottom: 30px; font-size: 0.9rem; }
.sanitized-text { color: var(--text-sub); border-bottom: 1px dotted #ccc; cursor: help; }
.ad-placeholder { background: var(--bg-sub); color: var(--text-sub); height: 400px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px dashed #ccc; font-weight: 700; }
.pagination-container { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { background: #fff; border: 1px solid var(--border); padding: 8px 14px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ad-placeholder {
  /* 背景と同化させ、枠線を物理的に抹殺 */
  background: #fff !important; 
  color: #fff !important; 
  border: none !important; 
  
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  user-select: none; /* 誤操作による選択を防止 */
}

/* 7. モバイルレスポンシブ (V169反映版) */
@media screen and (max-width: 820px) {
  /* 全体の余白調整 */
  .header-container, .main-content {
    width: 92%;
    margin-top: 20px;
  }

  /* 物理構造の転換：横並びから縦並びへ */
  .content-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  /* メインコンテンツの幅を100%解放 */
  .article-section, .static-page-container {
    width: 100%;
    order: 1;
  }

  /* サイドバーの固定解除と配置変更 */
  .sidebar-section {
    width: 100%;
    position: static; /* stickyを解除して流し込む */
    order: 2; /* 記事の後に配置 */
  }

  /* フィルタコンソールの最適化 */
  .filter-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs {
    flex-wrap: wrap; /* チップがはみ出さないよう折り返し */
  }

  .search-row {
    flex-direction: column;
  }

  .search-btn {
    padding: 12px 0;
  }

  /* 文字サイズの微調整 */
  .static-page-container h2 {
    font-size: 1.4rem;
  }

  /* お問い合わせカードのレスポンシブ化 */
  .contact-card {
    padding: 24px;
    width: auto;
    max-width: none;
  }

  .email-address {
    font-size: 1.1rem;
  }
}