@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
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ========================================
   1. サイト全体・ベース設定（背景白・影なし）
   ======================================== */
/* ヘッダーとコンテンツ周りの「影・線」を内側まで完全消去 */
#header-container, .header-container,
#header-container-in, .header-container-in,
#header, .header,
#header-in, .header-in,
.hlt-center-logo,
#content-top, .content-top,
#content, .content,
#navi, .navi {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* サイト全体の背景を真っ白にして「影っぽく見える隙間のグレー」も消す */
body, #container, #content, #content-top, .content-top, #main, .main {
    background-color: #ffffff !important;
}


/* ========================================
   2. ヘッダー周り（ロゴ・キャッチフレーズ）
   ======================================== */
#header {
    background-color: #ffffff !important;
    border-bottom: none !important;
}

/* ヘッダーの中身を強制的に1行にする */
.header-in, .header-container-in {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 20px 0 20px 35px !important;
    border: none !important;
}

/* ロゴの配置とフォント（Oswald） */
.logo-header {
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.logo-header,
.logo-header a,
.site-name-text {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

/* サイトタイトル文字のデザイン */
.site-name-text {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: #333 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* キャッチフレーズの配置 */
.tagline {
    order: 2 !important;
    display: block !important;
    font-size: 12px !important;
    color: #999 !important;
    margin: 0 0 0 0 !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1 !important;
    text-align: left !important;
    width: auto !important;
}

/* ▼ スマホ表示の時のヘッダー調整 ▼ */
@media screen and (max-width: 768px) {
    .header-in, .header-container-in {
        flex-direction: column !important;
        padding: 10px 0 !important;
        gap: 8px !important;
    }
    .tagline {
        margin: 0 !important;
        padding: 0 !important;
    }
}


/* ========================================
   3. フィルターエリア（上部のカテゴリー・タグボタン）
   ======================================== */
/* 大枠の余白調整 */
#content-top .widget,
#content-top > div,
#content-top > section,
.list-top-widgets .widget {
    display: block !important;
    border-bottom: none !important;
    padding: 0 20px !important;
    margin-bottom: 10px !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

/* 不要な見出し・アイコン・数字を消す */
#content-top .widget-title,
#content-top .wp-block-heading,
#content-top h2,
#content-top h3,
.list-top-widgets .widget-title,
.tag-icon, .fa-tag, .post-count, .cat-item-1 {
    display: none !important;
}

/* ボタンを並べるエリア */
#content-top ul,
#content-top .tagcloud,
#content-top div[class*="tag-cloud"],
.list-top-widgets ul,
.list-top-widgets .tagcloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 0 0 0 40px !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    border: none !important;
}

/* リストの点や内側の不要な線を消す */
#content-top li,
.list-top-widgets li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    flex: 0 0 auto !important;
}
#content-top li::before,
.list-top-widgets li::before {
    content: none !important;
}

/* ボタン（リンク）のデザイン */
#content-top a,
.list-top-widgets a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    flex: 0 0 auto !important;
	/* ★ここを追加（見えない余白をリセット） */
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    color: #444444 !important;
    font-size: 12px !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}
#content-top a:hover,
.list-top-widgets a:hover {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

/* ▼ スマホ表示の時のフィルターエリア調整 ▼ */
@media screen and (max-width: 768px) {
    #content-top .widget,
    #content-top > div,
    #content-top > section,
    .list-top-widgets .widget {
        padding: 0 5px !important; 
    }
    #content-top ul,
    #content-top .tagcloud,
    #content-top div[class*="tag-cloud"],
    .list-top-widgets ul,
    .list-top-widgets .tagcloud {
        padding: 0 0 0 0 !important; 
    }
}


/* ========================================
   4. 一覧・アーカイブページ（見出し・動画カード）
   ======================================== */
/* カテゴリー・タグページの見出し（アーカイブタイトル） */
.archive-title {
    font-size: 24px !important;
    letter-spacing: 0.05em !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    text-align: left !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}
.archive-title .fa,
.archive-title .fas {
    font-size: 22px !important;
    margin-right: 10px !important;
    color: #333333 !important;
}

/* ▼▼ ここから大改修：自動計算で完全に均等なサイズにする ▼▼ */
/* 親枠（リスト）をFlexboxにして、カード間の隙間を「gap」で一括管理する */
.ect-3-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px 15px !important; /* 上下30px、左右15pxの均等な隙間 */
}

/* 各カードのサイズを計算式で完全に揃える */
.ect-3-columns .entry-card-wrap {
    /* 「全体の幅」から「左右の隙間（15px×2箇所＝30px）」を引いた幅を、ピッタリ3等分する */
    width: calc((100% - 30px) / 3) !important;
    padding: 0 !important; /* 古い余白設定をリセット */
    margin: 0 !important;
}
/* ▲▲ ここまで ▲▲ */


/* トップページ（一覧）の動画カードタイトル */
.list .entry-card-title,
.entry-card-content .entry-card-title {
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    color: #333333 !important;
}

/* ▼ スマホ表示の時の一覧ページ調整 ▼ */
@media screen and (max-width: 768px) {
    .archive-title {
        font-size: 20px !important;
        margin: 30px 0 20px 0 !important;
    }
    .list .entry-card-title,
    .entry-card-content .entry-card-title {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    /* スマホでは1列（100%）にする */
    .ect-3-columns .entry-card-wrap {
        width: 100% !important; 
        padding: 0 !important; 
    }
}

/* ▼ タブレット表示（769px〜1023px）の時は2列にする ▼ */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .ect-3-columns .entry-card-wrap {
        /* 「全体の幅」から「左右の隙間（15px×1箇所＝15px）」を引いた幅を、2等分する */
        width: calc((100% - 15px) / 2) !important;
        padding: 0 !important; 
    }
}


/* ========================================
   5. 詳細ページ（タイトル・H2・2カラム・動画）
   ======================================== */
/* 詳細ページ（個別記事）のH1タイトル調整 */
.article h1,
.entry-title {
    font-size: 24px !important; 
    line-height: 1.4 !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    color: #333333 !important;
    text-align: left !important; 
    margin: 0 0 -30px 0 !important; 
    padding: 0 !important; 
}

/* 動画サイズの制限を解除 */
.entry-content .video-container {
    max-width: 100% !important;
    margin: 0 auto !important;
}

/* 詳細ページ内の見出し（H2）のカスタマイズ */
.article h2 {
    font-size: 18px !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    color: #333333 !important;
    line-height: 1.5 !important;
    background: transparent !important;
    border: none !important;
    /* border-bottom: none !important; */
	border-bottom: 1px solid #eeeeee !important;
    padding: 0 0 10px 0 !important;
    margin: 50px 0 0 0 !important;
}
.article h2::before,
.article h2::after {
    content: none !important;
    display: none !important;
}

/* 2カラムレイアウト時のテキスト余白・位置調整 */
.entry-content .wp-block-columns h2 {
    margin-top: 30px !important;
}
.entry-content .wp-block-columns h2:first-of-type {
    margin-top: 25px !important; 
    padding-top: 0 !important;
}
.entry-content .wp-block-columns p {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

/* ▼ スマホ表示の時の詳細ページ調整 ▼ */
@media screen and (max-width: 768px) {
    .article h1,
    .entry-title {
        font-size: 20px !important;
    }
    .article h2 {
        font-size: 18px !important;
    }
}


/* ========================================
   6. 記事下（SNS・RECOMMEND・前後ナビ）
   ======================================== */
/* SNSシェア・フォローボタンのグレー化 */
.sns-share-buttons a,
.sns-follow-buttons a,
.sns-share-buttons a[class*="sn-"],
.sns-follow-buttons a[class*="sn-"] {
    background-color: #b3b3b3 !important;
    border-color: #b3b3b3 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}
.sns-share-buttons a:hover,
.sns-follow-buttons a:hover,
.sns-share-buttons a[class*="sn-"]:hover,
.sns-follow-buttons a[class*="sn-"]:hover {
    background-color: #888888 !important;
    border-color: #888888 !important;
}

/* RECOMMEND（おすすめ）記事のメイン見出し */
.related-entry-heading {
    text-align: left !important;
    color: #333333 !important;
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    font-size: 30px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 70px 0 10px 0 !important;
}
.related-entry-heading::before,
.related-entry-heading::after {
    content: none !important;
    display: none !important;
}

/* RECOMMEND サブタイトル（おすすめの動画） */
.related-entry-heading .sub-caption {
    display: inline-block !important;
    font-family: sans-serif !important;
    font-size: 16px !important;
    font-weight: normal !important;
    color: #666666 !important;
    margin-left: 5px !important;
    opacity: 1 !important;
    letter-spacing: normal !important;
}

/* 関連（おすすめ）記事のカードタイトル */
.related-entries .related-entry-card-title,
.rect-vertical-card .related-entry-card-title {
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin: 10px 0 0 0 !important; 
    padding: 0 !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    color: #333333 !important;
}

/* RECOMMENDと「前後の記事」の間の余白調整 */
.related-entries {
    margin-bottom: 70px !important;
}
.pager-post-navi {
    margin-top: 0 !important; 
}


/* ========================================
   7. 一覧ページ下部（コンテンツとフッターの間）の余白を詰める
   ======================================== */
/* 1. メインエリアとコンテンツエリアの下余白を消す */
#main, .main,
#content, .content {
    margin-bottom: 50px !important;
    padding-bottom: 0 !important;
}

/* 2. 見えないページネーション（次へボタンエリア）の余白を消す */
.pagination {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* 3. フッター自体の上の余白もリセットする */
#footer, .footer-container {
    margin-top: 0 !important;
}