/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: May 27 2026 | 00:52:02 */
/* 投稿一覧カード */

.my-posts-list {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

    gap: 24px;

    margin-top: 30px;
}

/* カード本体 */

.my-post-item {

    background: #fff;

    border-radius: 18px;

    padding: 24px;

    box-shadow: 0 8px 24px rgba(0,0,0,.08);

    transition: .25s;

    position: relative;
}

/* ホバー */

.my-post-item:hover {

    transform: translateY(-4px);

    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* タイトル */

.my-post-item h3 {

    font-size: 20px;

    margin-bottom: 12px;

    line-height: 1.5;
}

/* 日付 */

.my-post-item .post-date {

    font-size: 13px;

    color: #777;

    margin-bottom: 18px;
}

/* ボタンエリア */

.my-post-item .post-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

/* ボタン 

.my-post-item .post-actions a {

    display: inline-block;

    padding: 10px 16px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;

    transition: .2s;

    background: #f0f0f0;
}
*/
/* hover */

.my-post-item .post-actions a:hover {

    opacity: .8;
}

/* 投稿一覧カード */

.my-posts-list {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

    gap: 24px;

    margin-top: 30px;
}

/* カード */

.my-post-item {

    background: #fff;

    border-radius: 18px;

    padding: 24px;

    box-shadow: 0 8px 24px rgba(0,0,0,.08);

    transition: .25s;
}

/* hover */

.my-post-item:hover {

    transform: translateY(-4px);

    box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

/* 投稿タイプ */

.post-type-label {

    display: inline-block;

    background: #222;

    color: #fff;

    font-size: 12px;

    padding: 4px 10px;

    border-radius: 30px;

    margin-bottom: 12px;
}

/* タイトル */

.my-post-item h3 {

    font-size: 20px;

    margin-bottom: 12px;

    line-height: 1.5;
}

/* 日付 */

.post-date {

    font-size: 13px;

    color: #777;

    margin-bottom: 18px;
}

/* ボタン群 */

.post-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

/* ボタン 

.post-actions a {

    display: inline-block;

    padding: 10px 16px;

    border-radius: 8px;

    text-decoration: none;

    background: #f0f0f0;

    transition: .2s;
}

.post-actions a:hover {

    opacity: .8;
}
*/
/* アイキャッチ */

.post-thumbnail {

    margin-bottom: 16px;

    overflow: hidden;

    border-radius: 12px;
}

.post-thumbnail img {

    width: 100%;

    height: 220px;

    object-fit: cover;

    display: block;

    transition: .3s;
}

.my-post-item:hover .post-thumbnail img {

    transform: scale(1.04);
}

/* 下書き */

.draft-label {

    display: inline-block;

    background: #d9534f;

    color: #fff;

    font-size: 12px;

    padding: 4px 10px;

    border-radius: 30px;

    margin-bottom: 12px;

    margin-left: 8px;
}

/* NEW */

.new-label {

    display: inline-block;

    background: #28a745;

    color: #fff;

    font-size: 12px;

    padding: 4px 10px;

    border-radius: 30px;

    margin-bottom: 12px;

    margin-left: 8px;
}

/* ページネーション */

.my-pagination {

    margin-top: 40px;

    text-align: center;
}

.my-pagination .page-numbers {

    display: inline-block;

    padding: 10px 14px;

    margin: 0 4px;

    background: #fff;

    border-radius: 8px;

    text-decoration: none;
}

/* 検索 */

.my-post-search {

    display: flex;

    gap: 10px;

    margin-bottom: 30px;
}

.my-post-search input {

    flex: 1;

    padding: 12px 16px;

    border-radius: 8px;

    border: 1px solid #ddd;
}

.my-post-search button {

    padding: 12px 20px;

    border: none;

    border-radius: 8px;

    cursor: pointer;
}

/* カードクリック */

.my-post-item {

    cursor: pointer;

    position: relative;
}

/* ボタンは通常クリック */

.post-actions {

    position: relative;

    z-index: 10;
}

.my-post-item::after {

    content: "→";

    position: absolute;

    right: 20px;

    top: 20px;

    font-size: 22px;

    opacity: .3;
}

/* =========================
   スマホ横スワイプカード
========================= */

@media (max-width: 768px) {

    .my-posts-list {

        display: flex;

        overflow-x: auto;

        gap: 16px;

        padding-bottom: 10px;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;
    }

    /* スクロールバー少し控えめ */

    .my-posts-list::-webkit-scrollbar {

        height: 6px;
    }

    .my-posts-list::-webkit-scrollbar-thumb {

        background: rgba(0,0,0,.2);

        border-radius: 20px;
    }

    /* カード固定幅 */

    .my-post-item {

        min-width: 85%;

        flex: 0 0 auto;

        scroll-snap-align: start;
    }
}