/* Blog Archive (一覧ページ) */
.blog-archive {
    padding: 6rem 0 4rem 0;
    background: #f8fafc;
    min-height: 60vh;
}

.archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.archive-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Category Filter */
.blog-category-filter {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-bottom: 2px solid #e5e7eb;
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.filter-item {
    margin: 0;
}

.filter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #6366f1;
}

.filter-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.filter-link.active:hover {
    background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 100%);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.filter-link.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1), 0 4px 10px rgba(15, 23, 42, 0.08);
    border-color: #e2e8f0;
}

.post-card-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.post-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: transparent;
}

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

.blog-post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-category {
    margin-bottom: 0.75rem;
}

.category-badge-small {
    display: inline-block;
    background: #f1f5f9;
    color: #6366f1;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-card-excerpt {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-card-read-more {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.pagination .current {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

.no-posts {
    text-align: center;
    padding: 4rem 0;
}

.no-posts p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.back-home-link {
    display: inline-block;
    background: #6366f1;
    color: #ffffff;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-home-link:hover {
    background: #5b5bd6;
    transform: translateY(-1px);
}

/* Blog Single Post (詳細ページ) */
.blog-single-post {
    background: #f8fafc;
}

.blog-post-hero {
    position: relative;
    padding: 6rem 0 4rem 0;
    margin-top: -100px;
    padding-top: calc(6rem + 100px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    overflow: hidden;
}

.blog-post-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.blog-post-category {
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #6366f1;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.entry-header {
    text-align: left;
    width: 100%;
    margin: 0;
}

.entry-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.entry-meta {
    color: #6b7280;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 20px;
}

.post-content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.post-content-meta .blog-post-category {
    margin-bottom: 0;
}

.post-content-meta .category-badge {
    background: #f1f5f9;
}

.entry-featured-image {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.post-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    padding: 4rem 0;
    background: #ffffff;
}

.entry-content {
    width: 100%;
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.entry-content > * {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 2.5rem 0 1rem 0;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
}

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.entry-content blockquote {
    border-left: 4px solid #6366f1;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8fafc;
    border-radius: 8px;
    font-style: italic;
    color: #4b5563;
}

.entry-content a {
    color: #6366f1;
    text-decoration: none;
}

.entry-content a:hover {
    color: #5b5bd6;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.entry-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.entry-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.page-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Tags */
.entry-tags {
    width: 100%;
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.tags-label {
    font-weight: 600;
    color: #374151;
    margin-right: 0.5rem;
}

.tag-link {
    display: inline-block;
    background: #f1f5f9;
    color: #6366f1;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #6366f1;
    color: #ffffff;
}

/* Post Navigation */
.post-navigation {
    width: 100%;
    margin: 4rem 0 0;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    display: block;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.nav-next {
    text-align: right;
}

/* Related Posts */
.related-posts {
    width: 100%;
    margin: 5rem 0 0;
    padding-top: 4rem;
    border-top: 1px solid #e5e7eb;
}

.related-posts-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.related-post-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.related-post-image {
    height: 180px;
    overflow: hidden;
    background: transparent;
}

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

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.25rem;
}

.related-post-date {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: block;
}

.related-post-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

/* Blog Archive Responsive */
@media (max-width: 768px) {
    .blog-archive {
        padding: 4rem 0 3rem 0;
    }

    .archive-header {
        margin-bottom: 3rem;
    }

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

    .archive-description {
        font-size: 1rem;
    }

    .blog-category-filter {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }

    .filter-list {
        gap: 0.5rem;
    }

    .filter-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .filter-count {
        min-width: 1.25rem;
        height: 1.25rem;
        font-size: 0.75rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-post-hero {
        padding: 4rem 0 3rem 0;
        margin-top: -80px;
        padding-top: calc(4rem + 80px);
    }

    .entry-title {
        font-size: 2rem;
    }

    .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-post-content {
        padding: 3rem 0;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }

    .nav-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nav-next {
        text-align: left;
    }

    .related-posts {
        margin-top: 3rem;
        padding-top: 3rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-category-filter {
        padding: 0.75rem 0;
    }

    .filter-list {
        justify-content: flex-start;
        gap: 0.375rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .filter-link {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .filter-count {
        min-width: 1.125rem;
        height: 1.125rem;
        font-size: 0.6875rem;
        padding: 0 0.25rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .post-card-image {
        height: 180px;
    }

    .blog-post-hero {
        padding: 3rem 0 2rem 0;
        margin-top: -60px;
        padding-top: calc(3rem + 60px);
    }

    .entry-title {
        font-size: 1.75rem;
    }

    .blog-post-content {
        padding: 2rem 0;
    }

    .entry-content {
        font-size: 0.95rem;
    }

    .entry-content h2 {
        font-size: 1.375rem;
    }

    .entry-content h3 {
        font-size: 1.125rem;
    }

    .related-posts-grid {
        gap: 1.25rem;
    }

    .related-post-image {
        height: 150px;
    }
}
