@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');

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

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

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

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

/* ========================================
   1. ヘッダー周り（強制横並び・線なしスッキリ版）
   ======================================== */
#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;
}

/* ロゴを絶対に「左（1番目）」にする */
.logo-header {
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

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

/* キャッチフレーズを絶対に「右（2番目）」にする */
.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: 20px 0 !important;
        gap: 12px !important;
    }
    .tagline {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ========================================
   ヘッダーとコンテンツ周りの「影・線」を内側まで完全消去
   ======================================== */
#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. フィルターエリア（ボタンのみスッキリ版・左右30px余白）
   ======================================== */
/* 大枠の余白調整と、下の線を完全に消す */
#content-top .widget,
#content-top > div,
#content-top > section,
.list-top-widgets .widget {
    display: block !important;
    border-bottom: none !important;
    padding: 0 20px !important; /* ★ここを変更：左右に30pxの余白を追加 */
    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 {
    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;
}

/* ▼ スマホ表示の時の「ボタンを並べるエリア」のpadding調整 ▼ */
@media screen and (max-width: 768px) {

    /* 1. 大枠（画面の端とボタンエリア全体の間）の余白 */
    #content-top .widget,
    #content-top > div,
    #content-top > section,
    .list-top-widgets .widget {
        /* 【指定方法】上下 左右 の順です */
        /* ★ここを調整（例：左右に10pxの隙間が欲しい場合は 0 10px にします） */
        padding: 0 5px !important; 
    }

    /* 2. ボタンエリア自体の内側の余白（リストの開始位置） */
    #content-top ul,
    #content-top .tagcloud,
    #content-top div[class*="tag-cloud"],
    .list-top-widgets ul,
    .list-top-widgets .tagcloud {
        /* 【指定方法】上 右 下 左 の順番（時計回り）です */
        /* ★ここを調整（例：左だけ15px空けたい場合は 0 0 0 15px にします） */
        padding: 0 0 0 0 !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; /* ボタンが強制的に広がるのを防ぐ */
    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;
}

/* タグアイコン（🏷）、投稿数（数字）、未分類カテゴリーを隠す */
.tag-icon, .fa-tag, .post-count, .cat-item-1 {
    display: none !important;
}


/* ========================================
   ヘッダーロゴのフォント変更（Oswald）
   ======================================== */
.logo-header,
.logo-header a,
.site-name-text {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important; /* 700がOswaldのBoldです */
    letter-spacing: 0.05em !important; /* Oswaldは少しだけ字間を開けるとロゴっぽさが増します */
}


/* ========================================
   トップページ（一覧）の動画カードタイトルの調整
   ======================================== */
.list .entry-card-title,
.entry-card-content .entry-card-title {
    /* ▼ テキストの配置 ▼ */
    text-align: left !important; /* 左寄せ（中央にしたい場合は center に変更） */

    /* ▼ 文字のサイズ・行間 ▼ */
    font-size: 14px !important; /* ★文字の大きさ（お好みで調整） */
    line-height: 1.6 !important; /* ★行間（1.4〜1.6あたりが綺麗です） */

    /* ▼ 余白の調整 ▼ */
    /* 上 右 下 左 の順です。画像と文字の隙間を変えたい場合は「上(10px)」を調整します */
    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) {
    .list .entry-card-title,
    .entry-card-content .entry-card-title {
        font-size: 13px !important; /* スマホ用の文字サイズ */
        line-height: 1.5 !important;
    }
}


/* ========================================
   動画カード（サムネイル）の隙間をなくす
   ======================================== */
.ect-3-columns .entry-card-wrap {
    width: 33% !important; /* ぴったり3等分にする */
    padding: 0 0 40px !important; /* カード間の隙間をゼロにする */
}


/* ========================================
   SNSシェア・フォローボタンのグレー化
   ======================================== */
/* すべての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;
}


/* ========================================
   関連（おすすめ）記事の見出しをカスタマイズ
   ======================================== */
/* ▼ 1. メインの見出し（RECOMEND の部分） ▼ */
.related-entry-heading {
    text-align: left !important; /* 左寄せ */
    color: #333333 !important; /* 文字色 */
    font-family: 'Oswald', sans-serif !important; /* Oswaldフォント */
    font-weight: 700 !important; /* 太字 */
    letter-spacing: 0.05em !important;
    font-size: 30px !important; /* メイン文字の大きさ（!importantを追加しました） */
    
    /* 余白や線のリセット */
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important; /* 下の動画カードとの余白 */
}

/* 疑似要素（見えない線やマーク）を消す */
.related-entry-heading::before,
.related-entry-heading::after {
    content: none !important;
    display: none !important;
}

/* ======================================== */
/* ▼ 2. サブタイトル（おすすめの動画 の部分） ▼ */
.related-entry-heading .sub-caption {
    display: inline-block !important; /* 横並びにする */
    font-family: sans-serif !important; /* Oswaldを解除して綺麗な日本語フォントに */
    font-size: 16px !important; /* ★日本語部分のサイズをここで調整 */
    font-weight: normal !important; /* 太字を解除（太くしたい場合は bold に） */
    color: #666666 !important; /* ★少しグレーにするなどお好みで */
    margin-left: 5px !important; /* ★左の「RECOMEND」との距離（隙間） */
    opacity: 1 !important; /* スクショにあった半透明(0.5)を解除してハッキリ見せる */
    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; /* 行間（1.4〜1.6あたりが読みやすいです） */

    /* ▼ 余白の調整 ▼ */
    /* margin: 上 右 下 左; の順です。左を0にすると画像と左端がピタッと揃います */
    margin: 10px 0 0 0 !important; 
    padding: 0 !important;

    /* ▼ その他の装飾（お好みで） ▼ */
    font-weight: bold !important; /* 太字（標準にするなら normal） */
    letter-spacing: 0.05em !important; /* 字間（不要なら 0） */
    color: #333333 !important; /* 文字色 */
}


/* ========================================
   詳細ページ（個別記事）のタイトル調整
   ======================================== */
.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;

    /* ================================= */
    /* ▼▼ ここから追加：位置と余白の調整 ▼▼ */
    /* ================================= */
    
    /* 1. テキストの配置（center: 中央寄せ / left: 左寄せ） */
    text-align: left !important; 

    /* 2. タイトルの周りの余白（上 右 下 左 の順） */
    /* 下に30pxの余白を空けて、動画との間隔を少し取る設定にしています */
    margin: 0 0 50px 0 !important; 
    
    /* 3. 内側の余白（基本は0でOKです） */
    padding: 0 !important; 
}

/* ▼ スマホで見た時だけサイズをさらに変えたい場合はこちら ▼ */
@media screen and (max-width: 768px) {
    .article h1,
    .entry-title {
        font-size: 20px !important; /* スマホ用の文字サイズ */
    }
}


/* ========================================
   動画サイズの制限を解除（管理画面での操作を有効化）
   ======================================== */
.entry-content .video-container {
    max-width: 80% !important; /* 640pxのストッパーを解除し、親（ブロック）の幅に合わせる */
	margin: 0 auto 30px 0 !important; /* 上0、右auto、下30px、左0 */
    /* margin: 0 auto !important; 親（ブロック）が中央寄せされた時、中身も素直に中央へ行くようにする */
}


/* ========================================
   詳細ページ内の見出し（H2）のカスタマイズ
   ======================================== */
.article h2 {
    /* ▼ 1. 文字のサイズ・色 ▼ */
    font-size: 18px !important; /* H1（26px）より少し小さめが綺麗です */
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    color: #333333 !important;
    line-height: 1.5 !important;

    /* ▼ 2. Cocoonデフォルトの装飾（背景や線）をリセット ▼ */
    background: transparent !important; /* 背景色を透明にする */
    border: none !important; /* 左右上下の線を一旦すべて消す */

    /* ▼ 3. シンプルな下線だけを引く（完全無地にするならこの行を消す） ▼ */
    border-bottom: none !important; 

    /* ▼ 4. 余白の調整 ▼ */
    padding: 0 0 10px 0 !important; /* 文字と下線の間の隙間 */
    margin: 50px 0 0 0 !important; /* 見出し自体の上下の余白（上50px、下0px） */
}

/* Cocoonのスキンによっては、見出しの横に「謎のアイコンや線」が出るので念のため消す */
.article h2::before,
.article h2::after {
    content: none !important;
    display: none !important;
}

/* ▼ スマホで見た時だけサイズを変えたい場合はこちら ▼ */
@media screen and (max-width: 768px) {
    .article h2 {
        font-size: 18px !important; /* スマホ用の文字サイズ */
    }
}