body {
    background-color: var(--bg-color);
}

.blog-title {
    position: relative;
}

.blog-title p {
    /* color: #555;
    -webkit-text-stroke: 1px #ffffff;
    font-weight: bold; */
    position: absolute;
    left: 50%;
    top: 40%;
    z-index: 2;
    margin: 0;
    font-size: 15vw;
    transform: translate(-50%, -50%);

    color: #333; /* 文字色 */
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif; /* お好みのフォントに変更可 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 軽いシャドウ */
    pointer-events: none;
}


.blog-mainimg {
    /* margin-left: 50%;
    transform: translate(-50%);
    width: auto;
    height:50vh; */
    opacity: 0.7;
    pointer-events: none;
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center;
    /* margin-left: 10vw; */
    /* border-radius: 0 0 15px 15px; */
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 2%;
    padding-bottom: 0;
    margin: 5%;
    margin-bottom: 0;
    gap: 20px;
}

.blog-contents {
    /* border-radius: 3%; */
    border-top: none;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-contents:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-box {
    /* display: inline-block; */
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: var(--item-color);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* object-position: 0 15%; */
    /* border-radius: 2% 2% 0 0; */
}

.blog-details {
    font-size: 1.1em;
    text-align: center;
    padding: 2%;
}

.blog-date {
    display: block;
    margin-left: 2%;
    text-align: left;
    font-weight: bolder;
}

.blog-subject {
    margin: 3% 0;
    font-size: 1.2em;
}

.blog-author {
    display: block;
    text-align: right;
    margin-right: 2%;
}

.pagination-area {
    display: flex;
    margin: 3%;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.pagination-area button {
    color: white;
    background-color: #333;
    border: 1px solid white;
    border-radius: 15%;
    border: none;
    width: 40px;
    height: 40px;
}

.pagination-area button:hover {
    background-color: #444;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pagination-area p {
    font-size: 25px;
}

@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-img {
        height: unset;
        height: 120px;
    }
    .blog-details {
        font-size: 0.8em
    }
}

@media (max-width: 480px) {
    .blog-title .blog-mainimg {
        height: 70vw;
        object-position: 50% 30%;
    }
    .blog-container {
        grid-template-columns: 1fr;
    }
    .blog-img {
        height: unset;
        height: 140px;
    }
}
