/* Blog page content styles */
div.content {
    max-width: 90%;
}
.content-wrapper>.content {
    padding: 0 .5rem;
    margin: 0 auto;
} 
/* Blog page img styles */
.img-responsive { 
    max-width: 100%; height: auto; 
}
.img-rounded {
    border-radius: 6px; /* 角の丸み具合を調整 */
}
.img-thumbnail {
    padding: 4px; /* 内側の余白 */
    line-height: 1.42857143;
    background-color: #fff; /* 背景色 */
    border: 1px solid #ddd; /* 枠線 */
    border-radius: 4px; /* 角の丸み */
    transition: all .2s ease-in-out; /* アニメーション効果 */
    display: inline-block; /* インラインブロック要素として表示 */
    max-width: 100%; /* 最大幅 */
    height: auto; /* 高さ自動調整 */
}

/* Blog page next-prev-post styles */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}
.post-navigation .prev-post,
.post-navigation .next-post {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    width: 45%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.post-navigation a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    width: 100%;
}
.post-navigation .text {
    flex: 1;
    text-align: center; /* 変更 */
}
.post-navigation .arrow {
    font-size: 24px;
    font-weight: bold;
    color: #888;
    transition: color 0.3s ease;
}
.post-navigation .prev-post:hover,
.post-navigation .next-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.post-navigation .prev-post:hover .arrow,
.post-navigation .next-post:hover .arrow {
    color: #f1af59;
}

/*画面サイズに合わせた変更*/
@media only screen and (min-width: 800px) {
    .post-navigation .text {
        display: inline;
    }
}
@media only screen and (max-width: 400px) {
    .post-navigation .text {
        display: none;
    }
    .next-post a{
        display: flex;
        justify-content: space-around;
    }
    .prev-post a{
        display: flex;
        justify-content: space-around;
    }
}

/* Blog page card thumbnail styles */
.thumbnail-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    font-size: 2rem;
}
.thumbnail-title {
    position: absolute;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    background: rgba(250,203,197, 0.6); /* 半透明の背景 */
    color: #fff;
    padding: 5% 5%;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    opacity: 1;
}
.card-body p {
    font-size: 1.1rem;
    line-height: 1.8;
}
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-footer span {
    display: flex;
    align-items: center;
    gap: 5px; /* アイコンと数字の間隔を調整 */
}
.card-footer::after, .card-header::after {
    content: none; 
}