/** over_real_post_infoショートコードで出力するコンテンツ **/
.over_real_post_info {
    border: 1px solid #e1e1e1;
    padding: 10px 6px 10px 6px; /* 内側の余白 */
    margin-bottom: 10px; /* 下の余白 */
    font-size: 14px;
}

.over_real_post_info ul {
    padding: 0;
    margin: 0;
}

.over_real_post_info li {
    padding: 6px 0;
    list-style-type: none; /** リストの装飾をなくす **/
}

.over_real_post_info .taxonomy-list {
    display: flex;
    flex-wrap: wrap; /* 折り返し */
    gap: 8px; /* アイテム間の余白 */
    align-items: center; /* 垂直方向の中央揃え */
}

/** 投稿に無関係の解像度は暗くする（リンクは無効化してない） **/
.over_real_post_info .resolution-list a:not(.owned-term){
    background-color: gray;
    filter:brightness(0.6);
}


/** カテゴリやタクソノミーのデザイン **/
.taxonomy-list a{
    background-color: #E95294;
    color:white !important;
    text-decoration: none;
    padding: 1px 5px;
    border-radius: 4px;
}

/** ページ上のカテゴリ説明 **/
.snaf_category_content,
.snaf_category_description,
.category-page-content
{
    font-size: 14px;
    background-color: #FEF3F4; /* 軽い背景色で区別 */
    border: 1px solid #e1e1e1; /* 境界線を追加 */
    padding: 10px 0 0 10px; /* 内側の余白 */
}

/** ページ上のカテゴリ説明にある良いねボタンは非表示 **/
.snaf_category_description .wpulike{
    display:none;
}

/* 画像の説明の下に余白を追加 */
.post-images .attachment-content {
    margin-bottom: 40px;
}


/** restriction_imagesショートコード用の画像表示 **/
    .restriction_images img {
        display: block; /* 最初の2枚はブロック表示 */
        margin-bottom: 0px; /* 縦スペース */
    }


    /** サンプル画像 **/
    .sample-container {
        border: 2px solid #F8B500; /* ボーダーの色 */
        padding: 40px 10px 60px 10px; /* 内側の余白 */
        background-color: #f9f9f9; /* 背景色 */
        position: relative; /* アイコンやテキストの絶対位置指定用 */
    }


    /** サンプル画像 **/
    .restriction_images .sample-images img:not(.lock-icon){
        filter: blur(2px) brightness(50%); /* ぼかし効果+暗くする */
        transition: filter 0.3s ease;
        max-width: 140px; /* デスクトップでの最大幅 */
    }

    .restriction_images .sample-images {
        display: flex; /* 3枚目以降は横並びに */
        gap: 10px; /* 横のスペースを空ける */
        flex-wrap: wrap;
        justify-content: center;
        position: relative; /* 親要素の位置基準を設定 */
    }

    /** ダイジェスト画像 **/
    .restriction_images .digest {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .restriction_images .digest a,
    .restriction_images .digest img{
        border:none;
        margin:0;
        padding:0;
    }


    /** ロックアイコン **/
    .restriction_images .lock-icon {
        z-index: 1;
        width: 200px!important;
        position: absolute!important;
        top: calc(50%);
        transform: translate(0%, -50%); /* アイコンの中央を基準にする */
        opacity: 0.8; /* アイコンの透明度 */
        pointer-events: none; /* アイコンのクリックイベントを無効にする */
    }

    .lock-text {
        z-index: 2;
        position: absolute; /* 親要素に対して絶対位置を指定 */
        top: calc(50% + 42px); /* 縦方向の少し下に配置 */
        left: 50%; /* 横方向の中央 */
        transform: translateX(-50%); /* テキストの中央を基準にする */
        color: white; /* テキストの色 */
        font-size: 24px; /* フォントサイズ */
        background: rgba(0, 0, 0, 0.7); /* 背景を半透明にする */
        padding: 5px; /* テキストの内側の余白 */
        border-radius: 5px; /* 角を丸くする */
        text-align: center; /* テキストを中央揃え */
    }

    /** 会員特典の箇条書き部分 **/
    .restriction_images ul {
        list-style: none; /* デフォルトのリストスタイルを消す */
        padding: 0;
    }

    .restriction_images li {
        text-align: center; /* テキストを中央揃え */
        position: relative;
    }

    .restriction_images li::before {
        content: "✔";
        position: relative;
        left: -6px;
        font-size: 16px;
        color: #F39800!important; /** なぜかスマホだと色が反映されない問題あり **/
    }

    /* モバイル表示用のメディアクエリ（画面幅が768px以下の場合） */
    @media screen and (max-width: 768px) {
        .restriction_images .sample-images img:not(.lock-icon) {
            max-width: 90px; /* モバイルでの最大幅を小さくする */
        }

        .restriction_images .sample-images {
            gap: 5px; /* 横のスペースを少し狭くする */
            justify-content: center;
        }
    }



/** 吹き出し（st-kaiwa）プラグイン **/
    /* 顔アイコンを非表示 */
    .st-kaiwa-none .st-kaiwa-face, .st-kaiwa-none-man .st-kaiwa-face {
        display: none; 
    }

    /** アイコンなしの場合、吹き出しを上向きに調整 **/
    .st-kaiwa-none .st-kaiwa-hukidashi::after, .st-kaiwa-none-man .st-kaiwa-hukidashi::after {
        top: -6px;
        left: 0px;
        border-width: 0 10px 10px 10px;
        transform: translateX(20%) rotate(90deg);
    }

    /** 男アイコンなしの場合、吹き出し▲を非表示 **/
    .st-kaiwa-none-man .st-kaiwa-hukidashi::after {
        display: none;;
    }    

/** ポイント **/
    /** 改行が入ってしまう問題を対処 **/
    .mycred-my-balance-wrapper, .mycred-my-balance-wrapper div {
        display: inline;
        color: red;
        font-weight: bold;
    }

/** cast_displayショートコード用 **/
    .cast-box {
        border: 1px solid #ddd;
        padding: 10px;
        margin: 20px 0;
        position: relative;
        font-size: smaller;
    }
    .cast-label {
        position: absolute;
        top: -10px;
        left: 10px;
        background: #E95294;
        color: white;
        padding: 0 5px;
        font-weight: bold;
        border-radius: 4px;
    }
    .cast-content {
        margin-top: 10px;
    }
    .cast-content h4 {
        margin-top: 0;
    }
    .cast-content ul {
        list-style-type: none;
        padding-left: 0;
    }


/** タグの階層構造 **/
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tagcloud .parent-tag {
    flex-basis: 100%;
    margin-bottom: 15px;
}

.tagcloud .parent-tag-name {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.tagcloud .child-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tagcloud .tag-cloud-link {
    display: inline-block;
    margin-right: 5px;
}


/** カテゴリの階層構造 **/
#categories-2 {
    max-width: 100%;
}

#categories-2 .widget-content-bottom-title {
    margin-bottom: 15px;
}

#categories-2 ul {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin: 0;
    list-style-type: none;
}

#categories-2 > ul > li {
    flex: 1 1 calc(33.333% - 20px);
    margin: 0 10px 20px;
    min-width: 200px;
}

#categories-2 ul ul {
    display: block;
    margin-left: 15px;
}

#categories-2 li {
    margin-bottom: 5px;
}

#categories-2 a {
    text-decoration: none;
    color: #333;
}

#categories-2 > ul > li > a {
    font-weight: bold;
    font-size: 1.1em;
}

#categories-2 ul ul li {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    #categories-2 > ul > li {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    #categories-2 > ul > li {
        flex: 1 1 100%;
    }
}

/* 画面幅が1024px以下で、かつタッチデバイス（スマホやタブレット）でボタンを非表示にする */
@media (max-width: 1024px) and (pointer: coarse) {
    .video-download-button {
        display: none; /* ボタンを非表示に */
    }
}