/* 補助金.com 全ページ共通：余白圧縮・広告適合レイアウト  hj_layout_compact.css  RL427
   ------------------------------------------------------------------
   目的：各ページのオーバーゆとり padding/margin を一括圧縮して、
        広告セクションを自然に組み込める空間を確保する。
        既存のページ別 CSS（.w / .card / section 等）に影響を最小化しつつ上書き。
   ---------------------------------------------------------------- */

/* === メインコンテナ：上下余白を詰める === */
.w{
 padding-top:18px!important;
 padding-bottom:44px!important;
}
@media (max-width:560px){
 .w{padding-top:14px!important;padding-bottom:32px!important}
}

/* === カード間の縦間隔を詰める === */
.card{
 margin-bottom:12px!important;
}
.card + .card{margin-top:0!important}

/* === セクション間の縦間隔 === */
section + section,
.card + section,
section + .card{
 margin-top:14px!important;
}

/* === h1 直後の説明文（.sub / .lead）の下余白 === */
.sub,p.sub,p.lead{
 margin-bottom:14px!important;
}

/* === note / 警告ボックスの下余白 === */
.note,.testbar,.disclaimer{
 margin-bottom:14px!important;
}

/* === コンテンツ間の冗長な区切り線・空白を削減 === */
hr{margin:14px 0!important;border-top:1px solid #ece3cc;border-bottom:0}
.divider,.sep,.spacer{height:auto!important;margin:8px 0!important}

/* === 内部ナビ・関連リンク帯の余白 === */
nav.related,.relatednav,.internal-nav,
nav.crumb{margin:0 0 10px!important;padding:0!important}

/* === フッター直前の余白を削減 === */
main > :last-child,
.w > :last-child{margin-bottom:0!important}

/* === 自動広告セクション周辺：内余白統一 === */
.hj-a8-auto-section{margin-top:14px!important;margin-bottom:8px!important}
.hj-a8-auto-section + .hj-a8-auto-section,
.hj-a8-mini-section + .hj-a8-mini-section{margin-top:4px!important}

/* === 印刷時はこれ自体を無効化（既存印刷CSSを尊重） === */
@media print{
 .w{padding-top:0!important;padding-bottom:0!important}
}
