/* page-blog.css */

/* Archive & Single Common Header */
.page-header {
    background-color: var(--color-bg-light);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--color-primary);
    font-family: 'Noto Serif JP', serif;
    font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs-area {
    background: var(--color-light-purple);
    padding: 10px 0;
}

.breadcrumbs-area .container {
    text-align: center;
}

/* --------------------------------------------------
   Archive Page (List)
-------------------------------------------------- */
.blog-archive-section {
    padding: 60px 0;
}

.blog-category-block {
    margin-bottom: 60px;
}

.blog-category-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Grid Layout for Posts */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
    /* Fallback */
}

.blog-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--color-text);
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.8rem;
    color: #999;
    align-self: flex-end;
}

/* --------------------------------------------------
   Single Page (Article)
-------------------------------------------------- */
.blog-single-section {
    padding: 60px 0;
}

.blog-article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.blog-article-title {
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-article-meta {
    color: #999;
    font-size: 0.9rem;
}

.blog-article-content {
    line-height: 1.8;
    font-size: 1rem;
}

.blog-article-content h2 {
    font-size: 1.5rem;
    border-left: 5px solid var(--color-primary);
    padding-left: 15px;
    margin: 40px 0 20px;
}

.blog-article-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
    color: var(--color-primary);
}

.blog-article-content p {
    margin-bottom: 20px;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

/* Pagination / Navigation */
.post-navigation {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: bold;
    border: 1px solid var(--color-primary);
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s;
}

.post-navigation a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article {
        padding: 20px;
    }

    .blog-article-title {
        font-size: 1.5rem;
    }

    /* Page Header の縦幅を狭くする */
    .page-header {
        /* 上下のpaddingを60pxから10pxに縮小（調整してください） */
        padding: 10px 0 22px 0;
    }

    /* ページタイトル (h1) の余白も微調整が必要であれば */
    .page-header h1 {
        margin-bottom: 5px;
        font-size: 1.6rem;
        font-weight: bold;
    }

    .page-header p {
        display: none;
    }
}