/* =========================
   front-page (home) only
========================= */
body.home header.hero{
  text-align:center;
  padding:120px 20px;
  background:#f7f7f7;
  margin:0;
}

/* タイトル */
body.home header.hero h1{
  font-size:40px;
  line-height:1.2;
  margin:0 0 14px;
}

/* 説明文 */
body.home header.hero p{
  margin:0 0 28px;
  font-size:14px;
  line-height:1.8;
  opacity:.85;
}

/* ボタン並び */
body.home header.hero .hero-buttons{
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ボタン */
body.home header.hero .hero-buttons a{
  display:inline-block;
  padding:12px 24px;
  min-width:160px;
  border-radius:6px;
  background:#222;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}

/* サブボタン */
body.home header.hero .hero-buttons a.btn-sub{
  background:#6b6b6b;
}

/* ホバー */
body.home header.hero .hero-buttons a:hover{
  opacity:.9;
}

/* セクション共通（下に続けるとき用） */
body.home #main.site-main section{
  max-width:920px;
  margin:60px auto;
  padding:0 20px;
}

/* スマホ調整 */
@media (max-width: 600px){
  body.home header.hero{
    padding:80px 16px;
  }
  body.home header.hero h1{
    font-size:28px;
  }
  body.home header.hero .hero-buttons a{
    min-width:0;
    width:100%;
    max-width:320px;
  }
}

/* トップページ：Google広告の典型タグ（枠ごと）を消す */
body.home ins.adsbygoogle,
body.home iframe[id^="google_ads_iframe"],
body.home iframe[src*="googleads"],
body.home iframe[src*="doubleclick"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* トップページ：広告っぽい枠の min-height を潰す */
body.home [class*="ad"],
body.home [id*="ad"] {
  min-height: 0 !important;
}

/* トップ：広告の残骸（空の枠）を潰す */
body.home ins.adsbygoogle,
body.home .adsbygoogle,
body.home [id*="gpt"],
body.home [id*="google_ads"],
body.home [id*="ad_container"],
body.home [class*="ad_container"],
body.home [class*="ad-"],
body.home [class*="ads-"]{
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* トップ：空枠だけが残るタイプを無力化 */
body.home [style*="min-height"],
body.home [style*="height"]{
  min-height: 0 !important;
  height: auto !important;
}

/* トップ：左右に出る「＾」付きのサイドレールUIを消す */
body.home svg [style*="right-side-rail-drop-shadow"],
body.home svg [style*="left-side-rail-drop-shadow"] {
  display: none !important;
}
/* トップ：side-rail っぽい要素（広告の残骸コンテナ）をまとめて潰す */
body.home [id*="side-rail"],
body.home [class*="side-rail"],
body.home [id*="siderail"],
body.home [class*="siderail"],
body.home [id*="rail"],
body.home [class*="rail"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.home #content,
body.home .wrap,
body.home .main,
body.home #main {
  min-height: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* トップ：AIOSEOのSEOプレビュー（Shadow DOMのラッパー）を消す */
body.home .aioseo-seo-preview-shadow-wrapper {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
/* トップ：AIOSEOが差し込むモーダル/ポータル系もまとめて消す */
body.home #aioseo-modal-portal,
body.home .aioseo-app,
body.home .aioseo-modal {
  display: none !important;
}

/* トップ：ヒーローの下の余白を詰める */
body.home header.hero {
  padding-bottom: 40px !important; /* 120px→40pxくらいに */
}

/* トップ：ヒーロー直後のセクションの上余白を消す */
body.home header.hero + section,
body.home header.hero + .latest,
body.home .latest {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* トップ：テーマ側の余白（よく犯人）を潰す */
body.home #content,
body.home .wrap,
body.home .main,
body.home #main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* トップ：sectionの上下余白を詰める */
body.home #main.site-main section {
  margin: 30px auto !important;
}

/* トップ：固定heightが入ってる要素を解除（Xeoryの大枠候補） */
body.home #content,
body.home .wrap,
body.home .main,
body.home #main,
body.home .content,
body.home .content-area {
  height: auto !important;
  min-height: 0 !important;
}

/* トップ：本文に出ちゃってるフッターメニューを消す（これだけ残す） */
body.home #footer-nav,
body.home .menu-home-container {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* =========================
   Latest posts cards
========================= */
body.home .latest h2{
  text-align:center;
  margin: 0 0 22px;
}

body.home .post-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

body.home .post-card{
  display:block;
  border:1px solid #e6e6e6;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  text-decoration:none;
}

body.home .post-card:hover{
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

body.home .post-thumb{
  aspect-ratio: 16 / 9;
  background:#f2f2f2;
  overflow:hidden;
}

body.home .post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

body.home .post-body{
  padding:14px 14px 16px;
}

body.home .post-title{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.4;
  color:#111;
}

body.home .post-meta{
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:#444;
  opacity:.8;
}

body.home .post-cat{
  padding:3px 8px;
  border-radius:999px;
  border:1px solid #e6e6e6;
}

/* responsive */
@media (max-width: 900px){
  body.home .post-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  body.home .post-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Category Tabs
========================= */
body.home .cat-tabs{
  max-width: 920px;
  margin: 40px auto;
  padding: 0 20px;
}

body.home .cat-tabs h2{
  text-align:center;
  margin: 0 0 18px;
}

body.home .tab-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom: 18px;
}

body.home .tab-btn{
  appearance:none;
  border:1px solid #e6e6e6;
  background:#fff;
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}

body.home .tab-btn.is-active{
  background:#222;
  color:#fff;
  border-color:#222;
}

body.home .tab-panel{
  display:none;
}

body.home .tab-panel.is-active{
  display:block;
}

body.home .tab-empty{
  text-align:center;
  margin: 24px 0;
  opacity:.75;
}

body.home .tab-more{
  text-align:center;
  margin-top: 14px;
}

body.home .tab-more-link{
  text-decoration:none;
  font-weight:700;
}
body.home .tab-more-link:hover{
  opacity:.85;
}

body .recommended{
  max-width: 920px;
  margin: 50px auto;
  padding: 0 20px;
}
body .recommended-title{
  text-align: center;
  margin: 0 0 18px;
}