/** 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; /* 縦スペース */
    }


    /** サンプル画像 (image-restriction.css へ移動済み) **/




/** 吹き出し（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; /* ボタンを非表示に */
    }
}

/* プレビュー画像は snaf-video-player.css の .video-images-grid で定義 */


/************************************
** ヘッダー・プラグイン修正 (style.cssより移動)
************************************/

/* ヘッダー背景を中央切り抜きにする（PC・モバイル共通） */
.header {
  background-size: cover !important;
  background-position: center center !important;
}

/* Spotlight（ライトボックス）内のヘッダーへの干渉を防ぐ */
#spotlight .header {
  background-image: none !important;
  background-color: rgba(0, 0, 0, 0) !important; /** ヘッダーにより画像が薄く暗くなるのを防ぐ **/
}

/* ヘッダー高さ調整（レスポンシブ） */
@media screen and (min-width: 1024px) {
  .header { min-height: 280px; }
}
@media screen and (max-width: 1023px) {
  .header { min-height: 120px; }
}
@media screen and (max-width: 480px) {
  .header { min-height: 100px; }
}


/************************************
** カテゴリ・タグ関連 (style.cssより移動)
************************************/

/* カテゴリ説明の行数制限（line-clamp） */
.cat-desc-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4; /* デフォルト */
  line-height: 1.6;
  margin: 0 0 0.5em 0;
}

@media screen and (max-width: 834px) {
  .cat-desc-excerpt { -webkit-line-clamp: 3; }
}

@media screen and (max-width: 480px) {
  .cat-desc-excerpt { -webkit-line-clamp: 2; }
}

/* 読み切りリンクのスタイル微調整 */
.cat-desc-readmore { 
  display: block; 
  margin-top: 0.4em; 
  font-weight: 600; 
}

/* フル説明を JS 展開で表示する際の初期非表示スタイル */
.category-description-full { display: none; }

/* 他シリーズピックアップのタグバッジ（SEO用HTMLテキスト） */
.tag-badge {
  display: inline-block !important;
  font-size: 0.65em !important;
  background: #e74c3c !important;
  color: #fff !important;
  padding: 1px 6px !important;
  border-radius: 3px !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  font-weight: bold !important;
}


/************************************
** 汎用ユーティリティ (style.cssより移動)
************************************/

/* 太字・赤色 */
.hutoaka {
  color: red;
  font-weight: bold;
}

/* 円記号を小さく表示 */
span.yen {
  font-size: smaller;
}

/************************************
** フッター・モバイルメニュー
************************************/

/* フッターのカテゴリーリスト */
#content-bottom .wp-block-categories-list.wp-block-categories {
    display: flex;
    flex-wrap: wrap;
}

#content-bottom li.cat-item{
	 flex-basis: calc(100% / 6);
    box-sizing: border-box;
}

/* オプション: リストアイテム間に少し余白を追加 */
#content-bottom li:not(:nth-child(3n)) {
    margin-right: 20px;
}


/** フッターモバイルボタン **/
/* アイコンを消す */
.custom-menu-icon {
  display: none !important;
}

/* 文字の大きさと位置調整 */
.custom-menu-caption {
  font-size: 14px !important; /* 5個だと14-15pxが綺麗に収まります */
  font-weight: bold;
  display: block;
}

/* ボタン全体のデザイン調整 */
.mobile-footer-menu-buttons li a {
  border-right: none !important; /* 境界線を消してスッキリさせる */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff; /* 背景色 */
  color: #333; /* 文字色 */
}

/* 押した時の反応（少し色を変える） */
.mobile-footer-menu-buttons li a:active {
  background-color: #f0f0f0;
}