/*
Theme Name: corebit-lightning-child
Template: lightning
*/

/* メニューが開いている時のbody制御 */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* メインコンテンツの上部余白確保 */
body {
  padding-top: 70px; /* 通常ページはヘッダー高さ分の余白 */
}

/* ホームページのみヒーロー表示のため余白なし */
body.home {
  padding-top: 0;
}

/* 投稿ページ・固定ページの調整 */
body.single,
body.page:not(.home) {
  padding-top: 40px !important; /* ヘッダー高さ + 余白 */
}

/* メインコンテンツエリアの調整 */
.single main,
.page:not(.home) main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 投稿ページのentry-headerと固定ヘッダーの競合を防ぐ */
.single .entry-header,
.page:not(.home) .entry-header {
  /* 固定ヘッダーと区別するためのスタイル */
  position: static !important; /* 固定位置を無効化 */
  z-index: auto !important; /* z-indexをリセット */
  background: transparent !important; /* 背景を透明に */
  box-shadow: none !important; /* 影を削除 */
  margin-bottom: 20px; /* 下部余白 */
  padding: 20px 0; /* 上下の余白 */
  border-bottom: 1px solid #eee; /* 区切り線 */
}

/* 投稿タイトルのスタイル調整 */
.single .entry-title,
.page:not(.home) .entry-title {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 15px 0;
  color: #333;
  font-weight: 700;
}

/* メタ情報の調整 */
.single .entry-meta,
.page:not(.home) .entry-meta {
  font-size: 0.9rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.entry-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-meta-item i {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .single .entry-title,
  .page:not(.home) .entry-title {
    font-size: 1.5rem;
  }

  .single .entry-meta,
  .page:not(.home) .entry-meta {
    font-size: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .single main,
  .page:not(.home) main {
    padding: 15px;
  }
}
/* 投稿者・投稿日・更新日などを非表示 */
.post-meta,
.entry-meta,
.published,
.updated,
.byline,
.author,
.posted-on {
  display: none !important;
}

/* コメント欄を非表示 */
#comments,
.comments-area,
.comment-respond,
.comment-form,
.comment-reply-title {
  display: none !important;
}
