@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.monthly-posts .posts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.monthly-posts .post-item {
    width: calc(50% - 10px); /* 2カラムの幅に設定 */
    box-sizing: border-box;
    background: #eee7d8; /* 背景色を変更 */
    padding: 10px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.monthly-posts .post-thumbnail {
    width: 100%;
    height: 200px; /* サムネイルの高さを固定 */
    overflow: hidden; /* オーバーフロー部分を隠す */
    margin-bottom: 10px;
    position: relative;
}

.monthly-posts .post-thumbnail img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.monthly-posts .post-title {
    font-size: 1em;
    margin-top: 10px;
    color: #2f1709; /* タイトルの色を変更 */
}

.monthly-posts .post-title a {
    text-decoration: none;
    color: #2f1709; /* リンクの色を変更 */
}

.monthly-posts .post-title a:hover {
    color: #0073aa;
}

/* スマートフォン向けのスタイル */
@media (max-width: 768px) {
    .monthly-posts .post-item {
        width: 100%; /* 幅を100%に設定し、縦並びにする */
        margin-bottom: 20px;
    }
}

