/* 全体のレイアウト調整 */
.width-calc {
    text-align: center;
    width: calc(75% - 30px);
    background-color: #fdf5e6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.box {
    position: relative;
    display: inline-block;
    text-align: center;
}

.box-text {
    position: absolute;
    background: rgba(127, 255, 212, 0.8);
    color: #333;
    top: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.thumbnail-size {
    width: 180px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.thumbnail-size:hover {
    transform: scale(1.05);
}

.post-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

.post-title:hover {
    color: #008b8b;
}

.post-content {
    font-size: 16px;
    color: #666;
}

.text-wrap {
    margin-left: 50px;
    text-align: left;
}

.text-right {
    text-align: right;
    right: 10px;
    color: #777;
    font-size: 14px;
}

.flex-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

.width-calc {
    flex: 3;
}

.sidebar {
    flex: 1;
    margin: 10px;
}

.flex-contents {
    margin: 20px 0;
    border: solid 2px #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.flex-contents:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.post-wrap {
    display: flex;
    padding: 15px;
    background-color: #f0f8ff;
    border-radius: 10px;
}

.posts {
    margin: auto;
    width: 85%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) and (max-height: 1366px) {
    .post-title {
        font-size: 18px;
    }

    .text-wrap {
        margin-left: 20px;
    }

    .sidebar {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
}

@media screen and (min-width: 431px) and (max-width: 960px) {
    .post-title {
        font-size: 16px;
    }

    .text-wrap {
        margin-left: 15px;
    }

    .thumbnail-size {
        width: 140px;
    }
}

@media screen and (max-width: 430px) {
    .box-text {
        font-size: 12px;
        padding: 0px;
    }

    .width-calc {
        width: 100%;
        padding: 0px;
    }

    .post-title {
        font-size: 14px;
    }

    .post-content {
        font-size: 12px;
    }

    .text-wrap {
        margin-left: 10px;
    }

    .flex-wrap {
        display: block;
    }

    .thumbnail-size {
        width: 120px;
    }

    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
}