/** 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;
}
/************************************
** メンバーシップ比較表 (Shortcode: [membership_comparison_table])
** コンパクト・ミニマリズム
************************************/
.m-comp-wrapper {
    max-width: 460px; /* 一番長い項目が1行で収まる限界まで絞る */
    margin: 40px auto;
}

.m-comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* 全体的に1px小さくして密度を上げる */
    color: #374151;
    line-height: 1.4;
}

/* ヘッダー */
.m-comp-table th {
    padding: 16px 4px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #4b5563;
    background: transparent !important;
    border: none !important;
}

.m-comp-table th.m-comp-h-feature {
    text-align: left;
    width: 1%; /* 文字幅に合わせる */
    white-space: nowrap;
    background: #fff !important;
}

.m-comp-table th.m-comp-h-free {
    background: #f9fafb !important;
    color: #4b5563;
    border-radius: 8px 8px 0 0;
}

.m-comp-table th.m-comp-h-paid {
    background: #fff5f7 !important;
    color: #EF7AAB;
    border-radius: 8px 8px 0 0;
}

/* カラム幅の最適化（データセル） */
.m-comp-table td:first-child {
    white-space: nowrap;
}

/* ボディセル */
.m-comp-table td {
    padding: 12px 6px;
    text-align: center;
    border: none !important;
    vertical-align: middle;
}

.m-comp-table td.m-comp-label {
    text-align: left;
    font-weight: 700;
    color: #111827;
    padding-left: 8px;
    padding-right: 12px;
    font-size: 13px; /* 1行で収めるために少し小さく */
    letter-spacing: -0.02em; /* 文字間を詰めて横幅を節約 */
}

/* カラム別スタイル */
.m-comp-table .m-comp-free {
    color: #4b5563;
}

/* 有料会員カラム全体を強調 */
.m-comp-table .m-comp-paid {
    color: #111827;
    font-weight: 700;
    background: #fff5f7 !important; /* カラム全体をピンクバック */
}

/* 最後の行の角丸調整（カラムを独立した塊に見せるため） */
.m-comp-table tr:last-child td.m-comp-h-free {
    border-radius: 0 0 0 8px;
}
.m-comp-table tr:last-child td.m-comp-paid {
    border-radius: 0 0 8px 0;
}

/* 料金表示のリファイン */
.price-group {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    text-align: left;
}

.price-item {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.m-comp-table .price {
    color: #111827; /* 黒で地味に */
    font-size: 1.2em;
    font-weight: 800;
    line-height: 1;
}

/* ラベル補足 */
.label-sub {
    font-size: 10px;
    color: #6b7280;
    font-weight: normal;
    display: block;
    margin-top: 2px;
}

.period {
    font-size: 11px;
    color: #4b5563; /* 一般ユーザー側と同じ濃さに調整 */
    font-weight: normal;
}

/* 数値のアピール */
.highlight-num {
    color: #EF7AAB; /* 数字をピンクで強調 */
    font-weight: 800;
    font-size: 1.4em; /* さらに大きく強調 */
    display: inline-block;
    line-height: 1;
}

/* 記号 */
.m-comp-icon-check {
    color: #EF7AAB;
    width: 20px;
    height: 20px;
}

.m-comp-dash {
    color: #94a3b8; /* 視認性を上げるために濃く */
}

/* モバイル対応 */
@media screen and (max-width: 640px) {
    .m-comp-wrapper {
        margin: 20px 0;
    }
    .m-comp-table th, 
    .m-comp-table td {
        padding: 12px 6px;
        font-size: 13px;
    }
    .m-comp-table .price {
        font-size: 1.2em;
    }
}
