@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* ==========================================
 * Cocoon 日付を復活させ、時計アイコンだけを消すコード
 * ========================================== */

/* 1. 時計やカレンダーの「アイコン（iタグ・spanタグ）」だけを非表示にする */
.date-tags i,
.date-tags span[class*="fa-"],
.date-tags .fa,
.date-tags .fas,
.date-tags .far {
    display: none !important;
}

/* 2. 表示エリアを横並びにする */
.date-tags {
    display: inline-flex !important;
    align-items: center;
    gap: 6px; /* 投稿日と最終更新の間隔 */
}

/* 3. 表示の並び順（投稿日を前、更新日を後ろに） */
.post-date {
    order: 1 !important;
}
.post-update {
    order: 2 !important;
}

/* 4. 更新日（後ろ側）の前に カッコ と「最終更新 」をつける */
.post-update::before {
    content: "( 投稿日 : " !important;
    display: inline !important;
}

/* 5. 更新日の後ろに閉じカッコをつける */
.post-update::after {
    content: " )" !important;
    display: inline !important;
}


/* ==========================================
 * 日付エリアの配置（右寄せ）と余白の調整
 * ========================================== */

/* 1. 日付全体を右寄せにする */
.date-tags {
    text-align: right !important;
    justify-content: flex-end !important;
    width: 100%;
}

/* JavaScriptで追加した同日表示用にも右寄せを適用 */
.date-tags {
    justify-content: flex-end !important;
}

/* 2. 日付エリアの上下の余白（マージン）を小さくする */
.date-tags {
    margin-top: 0px !important;    /* タイトルとの間の余白 */
    margin-bottom: 0px !important; /* 本文・アイキャッチとの間の余白 */
}


/* ==========================================
 * タイトル・本文まわりの上下余白を小さくする
 * ========================================== */

/* 1. 記事タイトル（h1）自体の上下の余白を縮める */
.article-header h1.entry-title {
    margin-top: 10px !important;    /* タイトルの上の余白 */
    margin-bottom: 5px !important;  /* タイトルの下（日付側）の余白 */
}

/* 2. タイトルエリア全体（日付など含む）と本文（またはアイキャッチ）の間の余白を縮める */
.article-header {
    margin-bottom: 15px !important; /* 通常30px〜40pxある隙間を半分以下に */
}

/* 3. 本文（メインコンテンツ）全体の上下の余白を縮める */
.entry-content {
    margin-top: 10px !important;    /* 本文が始まる前の上の余白 */
    margin-bottom: 20px !important; /* 本文が終わった後の下の余白 */
}

/* 4. 念のためアイキャッチ画像がある場合の上下余白も縮める */
.eye-catch {
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}