@charset "utf-8";

/*:::::::::::::::::::::::::::::::::::::::::::::::::
投稿詳細 single
:::::::::::::::::::::::::::::::::::::::::::::::::*/
.blog-main {
    margin-top: 100px;
}
.blog-main .entry-header {
    margin-bottom: 30px;
}
.entry-header .blog-title {
    font-size: 1.6em;
    padding-top: 1em;
    margin-bottom: 10px;
    line-height: 1.5;

}

.single-post .entry-content p {
    margin-top: 1em;
}

.wp-block-heading {
    margin-top: 3em;
    margin-bottom: 1em;
}

h2.wp-block-heading {
    border-bottom: solid 3px #fff;
}

.wp-block-image {
    margin-top: 20px;
}

/*:::::::::::::::::::::::::::::::::::::::::::::::::
投稿一覧 archive.php home.php 共通
:::::::::::::::::::::::::::::::::::::::::::::::::*/
.archive-header {
    margin-bottom: 30px;
    text-align: center;
}

.archive-title {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
    font-size: 1.1em;
}

/* カテゴリー一覧 */
.category-list {
    margin-bottom: 30px;
}

.category-list h3 {
    margin: 0 0 15px 0;
    font-size: 1.3em;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 5px;
}

.category-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* border-bottom: solid 3px #fff;
    padding-bottom: 20px; */
}

.category-links li a {
    display: flex;
    padding: 8px 15px;
    background: #fff;
    text-decoration: none;
    border-radius: 100vh;
    transition: all 0.3s ease;
    align-items: baseline;
    /* width: fit-content; */
}

.category-links li a:hover {
    background: #92BDD9;
    color: white;
}

.category-links li a:before {
    content: "";
    width: 0.5em;
    height: 0.5em;
    background: #92BDD9;
    margin-right: 10px;
    border-radius: 100vh;
}

/* 投稿一覧 */
.archive-posts {
}

.post-item {
    display: flex;
    background: #fff;
    gap: 20px 15px;
    margin-top: 10px;
    border: solid 1px #92BDD9;
    padding: 6px;
    align-items: center;
    border-radius: 10px;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgb(0 0 0 / 9%);
}

.post-link {}

/* サムネイル（左側） */
.post-thumbnail {
    width: 200px;
    /* min-width: 200px; */
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

/* コンテンツ（右側） */
.post-content {
    flex: 1;
    min-width: 0;
    /* padding: 10px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
}

.post-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.9em;
    color: #f08080;
    /* margin-left: auto; */
    justify-content: space-between;
    flex-direction: row-reverse;
}

.post-date {
    color: #555;
    font-size: 0.9em;
}

.post-category a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.post-category a:hover {
    text-decoration: underline;
}

/* ページネーション */
.pagination {
    text-align: center;
    padding: 20px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    width: 2em;
    height: 2em;
    line-height: 1;
    text-align: center;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 100vh;
    transition: all 0.3s ease;
    background: #fff;
    font-family: "Aboreto", system-ui;
}

.pagination a:hover {
    background-color: #92BDD9;
    color: white;
}

.pagination .current {
    background: #00414B;
    color: white;
    border-color: #00414B;
}

.no-posts {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    padding: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    /* レスポンシブ */
    @media (max-width: 768px) {
        .blog-main {
            margin-top: 50px;
        }
        .post-link {
            flex-direction: column;
            height: auto;
        }

        .post-thumbnail {
            width: 120px;
            height: 120px;
        }

        .post-content {
            padding: 0 10px 0 0;
        }

        .post-meta {
            /* flex-direction: column; */
            align-items: flex-start;
            /* gap: 0; */
        }

        .archive-title {
            font-size: 2em;
        }

        .container {
            padding: 0 15px;
        }

        .category-links {
            /* justify-content: center; */
        }
    }

    @media (max-width: 480px) {
        .post-thumbnail {
            /* height: 150px; */
        }

        .post-title {
            font-size: 1em;
        }

        .archive-main {
            padding: 20px 0;
        }
    }