/*
 Theme Name: Lucida-jp Child
 Theme URI: https://lucida-jp.com/
 Description: Lucida 専用カスタマイズ用の子テーマ
 Author: Mamoru Sasaki
 Author URI: https://lucida-jp.com/
 Template: cocoon-master
 Version: 1.0
*/
/* ==========================================
   OLD LUCIDA NAV (lc-nav-panel) を完全非表示
========================================== */

/* フルスクリーンメニュー本体 */
#lc-nav-panel {
  display: none !important;
}

/* そのメニューを開く古いハンバーガーボタン */
a[href="#lc-nav-panel"] {
  display: none !important;
}
/* ==========================================
   SP表示時：上部の黒いバー（.lc-header）を消す
========================================== */
@media (max-width: 768px) {
  .lc-header {
    display: none !important;
  }
  body {
    padding-top: 0 !important;
  }
}
/* ==========================================
   Cocoonデフォルトヘッダーを完全非表示
========================================== */
#header,
.header,
.header-container {
  display: none !important;
}

/* ヘッダー分の余白をゼロに */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* ==========================================
   LUCIDA：上部ヘッダー系を完全に消す
   （Cocoonヘッダー＋旧LUCIDAヘッダー＋新ヘッダーまとめて）
========================================== */
#header,
.header,
.header-container,
.lc-global-header,
.lc-header,
.site-header {
  display: none !important;
}

/* ヘッダー分の余白もゼロにする */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* 旧フルスクリーンメニューも念のため消す */
#lc-nav-panel,
a[href="#lc-nav-panel"] {
  display: none !important;
}
/* ==========================================
   LUCIDA：新ヘッダー（黒いバー）を完全に非表示
========================================== */
.lc-header {
  display: none !important;
}

/* ヘッダー分の余白もゼロに補正 */
body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* 最初のブロックの余白をゼロにする */
body > *:first-child {
  margin-top: 0 !important;
}
/* ==========================================
   SP幅：トップの白い余白を完全にゼロ化
========================================== */
@media (max-width: 1024px) {

  /* 最初の要素の margin/padding を全消し */
  body > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Cocoon が勝手に入れる “entry-content 上部の余白” を削除 */
  .entry-content,
  .content-inner,
  .wrap,
  .container,
  #content,
  #main,
  main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 画像スライダー（xo slider）周りの余白もゼロ固定 */
  .top_img_box_main,
  .top_img_box,
  .xo-slider,
  .metaslider,
  .metaslider .slides,
  .metaslider .slides li,
  .metaslider .flexslider {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 万が一のヘッダー残りカスも全消去 */
  header, #header, .header, .header-container, .site-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* body 自体に付いている余白も殺す */
  body {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

