/*
Theme Name: buddy-child
Template: buddyx
*/

/*トップ*/
.entry-title,
.entry-content {
    overflow-wrap: break-word;
}


.buddyx-article--masonry.without-masonry a.post-thumbnail {
    padding-top: 76.56% !important;
}

.buddyx-article--masonry .buddyx-article {
    padding: 0 !important;
    border: none !important;
}


/*フッター*/
.footer-widget {
    text-align: center;
}

/*記事投稿画像*/
.attachment-full {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto;
}

.entry-media-image>.post-thumbnail {
    padding-top: 0 !important;
}

/*アイコン修正*/



.wp_ulike_general_class {
    box-shadow: none !important;
    padding: 0 !important;
}

.wpulike {
    padding: 0 !important;
}

.wp_ulike_btn {
    font-size: 15px !important;
}

.fa-thumbs-up {
    color: #005599 !important;
}

.wp_ulike_btn {
    line-height: 0px !important;
}

.wp_ulike_counter_up {
    margin-left: -10px;
    font-size: 16px !important;
}

.simplefavorite-button {
    border: none;
    background: #ffffff00;
    margin-top: 2px;
}

.simplefavorite-button-count {
    margin-left: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #616161;
}
.simplefavorite-button.active {
    opacity: 1 !important;
}

.post-views-count{
    font-size: 16px;
    font-weight: 600;
    color: #616161;
}

.fa-heart {
    color: #ff0000;
}
.fa-star{
    color: darkorange;
    height: 23px !important;
}
.fa-eye{
    color:#295c9f;
    margin-right: 5px;
}

.meta-inline {
    display: inline;
    white-space: nowrap;
}

.meta-inline>* {
    display: inline-block;
    margin-right: 10px;
    /* 適宜調整 */
    vertical-align: middle;
}



.wp_ulike_general_class .wp_ulike_is_unliked {
    box-shadow: none;
}


/* アイコン＋数字を並べる共通ラッパー */
.post-meta-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    /* アイコン同士の間隔 */
    justify-content: flex-start;
    margin-top: 10px;
}

/* 各アイコン＋カウントセットのスタイル */
.post-meta-icons .meta-item {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    gap: 5px;
}

/* アイコンの統一サイズ調整 */
.post-meta-icons .meta-item i,
.post-meta-icons .meta-item svg {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

/*アイコン配置*/
#fixed {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
}
/*アイコンリスト右寄*/
#right_box{
    width: 210px;
    text-align: right;
    margin: 0 0 0 auto;
}

/*自分の投稿ページ*/
/* 「注目の画像:」の文言を非表示にする（画像とアイコンは残す） */
td[data-label="注目の画像:"]::before {
    content: none !important;
    /* ::before 疑似要素の内容を空にする */
    display: none !important;
    /* 疑似要素自体を非表示にする（これにより表示されていたテキストが消える） */
}

/* もし、モバイル表示時にテーブルがスタック表示（縦並び）になり、
   「注目の画像:」のラベルが消えなかった場合に備えて、
   メディアクエリ内で同じルールを再度指定しておくのも安全です */
@media (max-width: 767px) {

    /* モバイル表示のブレークポイントに合わせて調整 */
    td[data-label="注目の画像:"]::before {
        content: none !important;
        display: none !important;
    }

    td {
        display: block !important;
    }

    .post-edit-icon,
    .toggle-icon {
        display: none !important;
    }

    .data-column {
        display: inline-flex !important;
        width: 100%;
        position: relative !important;
        left: 170px;
        top: -170px;
    }

}

/* ==========================================================
   カスタムユーザーダッシュボード - 投稿一覧カード型レイアウト
   ========================================================== */

.user-posts-grid {
    display: grid;
    /* CSS Gridを使用 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* レスポンシブな3カラム（最小280px） */
    gap: 25px;
    /* カード間の隙間 */
    margin-top: 30px;
}

.user-post-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    /* 角丸に合わせて内容をクリップ */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* 軽い影 */
    display: flex;
    flex-direction: column;
    /* 内容を縦に並べる */
    height: 100%;
    /* 親要素に合わせて高さを揃える（Flexbox/Gridの均等配置用） */
}

.post-card-thumbnail {
    display: block;
    width: 100%;
    height: 200px;
    /* 画像の高さを固定 */
    overflow: hidden;
    position: relative;
    /* 画像のfit調整用 */
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像がボックスに収まるようにトリミング */
    transition: transform 0.3s ease;
    /* ホバーエフェクト */
}

.user-post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
    /* ホバーで少し拡大 */
}

.post-card-thumbnail.no-thumbnail {
    background-color: #f0f0f0;
    /* サムネイルがない場合の背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-thumbnail.no-thumbnail img {
    width: 80px;
    /* プレースホルダー画像のサイズ */
    height: auto;
    object-fit: contain;
    opacity: 0.5;
}

.post-card-content {
    padding: 15px;
    flex-grow: 1;
    /* コンテンツ部分が残りスペースを埋める */
    display: flex;
    flex-direction: column;
    /* 内容を縦に並べる */
    /* padding-bottom: 10px; */ /* post-card-footer に移動するため削除 */
}

.post-card-content h3 {
    margin-top: 0;
    margin-bottom: 5px; /* タイトルと投稿日の間隔を短縮 */
    font-size: 1.3em;
    line-height: 1.4;
    white-space: normal; /* 文字数制限なしのため、通常通り折り返しを許可 */
    overflow: visible; /* はみ出しを隠さない */
    text-overflow: clip; /* 「...」を表示しない */
}

.post-card-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card-content h3 a:hover {
    color: #0073aa;
    /* ホバー時の色 */
}

.post-card-meta {
    font-size: 0.8em;
    color: #888;
    margin-top: 0;
    margin-bottom: 10px;
}

/* ★投稿者アイコンと名前のスタイル */
.post-card-author {
    margin-bottom: 15px; /* 投稿者情報の下に余白 */
}

.post-card-author a {
    display: flex; /* Flexboxでアイコンと名前を横並びに */
    align-items: center; /* 垂直方向中央揃え */
    text-decoration: none;
    color: #555;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.post-card-author a:hover {
    color: #0073aa;
}

.post-card-author img.avatar {
    border-radius: 50%; /* アバターを丸く */
    margin-right: 8px; /* アバターと名前の間隔 */
    width: 32px; /* アバターのサイズ */
    height: 32px; /* アバターのサイズ */
    flex-shrink: 0; /* 縮小させない */
}

.post-card-author .author-name {
    font-weight: 500;
}


/* ★post-card-footer (統計情報とアクションボタンのラッパー) */
.post-card-footer {
    display: flex; /* Flexboxで中身を横並びにする */
    justify-content: space-between; /* 統計情報を左、ボタンを右に配置 */
    align-items: center; /* 縦方向の中央揃え */
    margin-top: auto; /* post-card-content の下部に固定 */
    padding-top: 10px; /* 上部に余白 */
    padding-bottom: 5px; /* 下部に余白 */
    border-top: 1px solid #eee; /* 上部に区切り線 */
    background-color: #fcfcfc; /* 背景色 */
    margin-left: -15px; /* 親のpaddingを打ち消す */
    margin-right: -15px; /* 親のpaddingを打ち消す */
    padding-left: 15px; /* 本来のpaddingを戻す */
    padding-right: 15px; /* 本来のpaddingを戻す */
}

/* 統計情報 */
.post-card-stats {
    display: flex; /* 統計情報を横並びにする */
    justify-content: flex-start; /* 左寄せ */
    align-items: center; /* 縦方向の中央揃え */
    gap: 10px; /* アイテム間の隙間 */
    font-size: 0.9em;
    color: #555;
    /* post-card-footer に移動したため不要なスタイルを削除 */
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.post-card-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 5px; /* アイコンと数字の間の隙間 */
}

/* Dashicons のスタイル調整 */
.post-card-stats .dashicons {
    font-size: 1.2em; /* アイコンのサイズ */
    width: 1.2em;
    height: 1.2em;
    line-height: 1;
    color: #888; /* アイコンの色 */
}

/* 各統計アイコンの色を強調したい場合 */
.post-card-stats .stat-item.views .dashicons {
    color: #295c9f; /* 青 */
}
.post-card-stats .stat-item.likes .dashicons {
    color: #E91E63; /* ピンク */
}
.post-card-stats .stat-item.favorites .dashicons {
    color: #FFC107; /* 黄 */
}


/* アクションボタン */
.post-card-actions {
    display: flex;
    gap: 10px;
    /* ボタン間の隙間 */
    /* post-card-footer に移動したため不要なスタイルを削除 */
    padding: 0;
    border-top: none;
    background-color: transparent;
}

.post-action-button {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #0073aa;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-align: center;
}

.post-action-button:hover {
    background-color: #005f8f;
    border-color: #005f8f;
}

.post-action-button.edit-button {
    background-color: #14687b;
    /* 編集ボタンの色 */
    border-color: #14687b;
}

.post-action-button.edit-button:hover {
    background-color: ##23a9c7 !important;
    border-color: ##23a9c7 !important;
}

.post-action-button.delete-button {
    background-color: #d9534f;
    /* 削除ボタンの色 */
    border-color: #d9534f;
}

.post-action-button.delete-button:hover {
    background-color: #c9302c;
    border-color: #c9302c;
}


/* 既存のカスタムダッシュボードレイアウトのCSS（以前の回答より） */
.custom-user-dashboard-wrapper {
    max-width: 1200px;
    /* 全体の最大幅を設定 */
    margin: 0 auto;
    /* 中央寄せ */
    padding: 20px;
}

.custom-dashboard-layout {
    display: flex;
    /* Flexboxで左右のカラムを作成 */
    flex-wrap: wrap;
    /* 画面幅が狭い場合に折り返しを許可 */
    gap: 30px;
    /* カラム間のスペース */
}

.custom-dashboard-sidebar {
    flex: 0 0 250px;
    /* 固定幅のサイドバー (例: 250px) */
    background-color: #f8f8f8;
    /* サイドバーの背景色 */
    padding: 20px;
    border-right: 1px solid #eee;
    /* 右の境界線 */
}

.custom-dashboard-sidebar h3 {
    margin-top: 0;
    color: #333;
}

.dashboard-nav-menu {
    list-style: none;
    /* リストの点を削除 */
    padding: 0;
    margin: 0;
}

.dashboard-nav-menu li {
    margin-bottom: 10px;
}

.dashboard-nav-menu a {
    display: block;
    padding: 8px 10px;
    background-color: #eee;
    color: #333;
    text-decoration: none;
    border-radius: 44px;
}

.dashboard-nav-menu a:hover {
    background-color: #ddd;
    color: #000;
}

.custom-dashboard-content {
    flex-grow: 1;
    /* 残りのスペースをすべて占める */
    /*background-color: #fff; *
    /* コンテンツエリアの背景色 */
    /*padding: 20px;*/
    /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    /* 影を追加 */
}

/* ページネーションのスタイル */
.custom-pagination {
    margin-top: 30px;
    text-align: center;
}

.custom-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.custom-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.custom-pagination .page-numbers:hover:not(.current) {
    background-color: #eee;
    color: #000;
}


/* モバイル表示時の調整 */
@media (max-width: 767px) {
    .custom-dashboard-layout {
        flex-direction: column;
        /* 縦並びにする */
        gap: 20px;
    }

    .custom-dashboard-sidebar {
        flex: 0 0 auto;
        /* 幅を自動調整 */
        border-right: none;
        /* 右の境界線を削除 */
        border-bottom: 1px solid #eee;
        /* 下に境界線を追加 */
    }

    .user-posts-grid {
        grid-template-columns: 1fr;
        /* モバイルでは1列にする */
    }

    .user-post-card {
        margin-bottom: 20px;
        /* カード間のスペース */
    }
}


/* WPUFの特定のショートコード出力に対するスタイル調整例 */
.wpuf-dashboard table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wpuf-dashboard table th,
.wpuf-dashboard table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}


/*タイトル表示調整*/
.user-post-card>h3,.post-card-content>H3 {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-top: 15px;
    text-align: center;
}


/*お気に入り一覧ページ*/

body.page-id-277 .favorite-item-author-link {
    display: flex;         /* これをFlexコンテナにする */
    align-items: center;   /* 子要素（アバターと名前）を縦方向の中央に揃える */
    gap: 5px;              /* 必要であれば、アバターと名前の間に少しスペースを開ける（任意） */
}
body.page-id-277 .favorites-list{
    font-size: 20px;
}

body.page-id-277 .favorites-list > li > p{
    margin: 0 0 0px
}

body.page-id-277 .author-avatar>img{
    border-radius: 50px;
    width: 50px;
}

body.page-id-277 .simplefavorite-button{
    font-size: 20px;
    background: rgba(0, 0, 0, 0);
    margin-top: 25px;
}

@media screen and (max-width: 48em) {
    body.page-id-277 ul.favorites-list {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0 !important;
    }

    body.page-id-277 .attachment-thumbnail {
        width: 100px;
    }

    body.page-id-277 .favorites-list {
        font-size: 13px !important;
    }

body.page-id-277 .simplefavorite-button {
    font-size: 13px;
    background: rgba(0, 0, 0, 0);
    margin-top: 10px;
    }
}

/*フッター*/

@media screen and (max-width: 48em) {
    .footer-inner {
        margin: 0 !important;
    }
}