/* ============================================
   ブログページ専用CSS
============================================ */

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, #FFD93D 0%, #FF9F43 50%, #FF8C1A 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--bg-white);
    font-weight: 700;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--bg-white);
}

/* カテゴリーフィルター */
.blog-filter {
    padding: 30px 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background-color: var(--bg-white);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

/* ブログ記事一覧 */
.blog-list {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

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

.blog-card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8E8E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-white);
}

.blog-category.news {
    background-color: #3498DB;
}

.blog-category.event {
    background-color: #E74C3C;
}

.blog-category.daily {
    background-color: #F39C12;
}

.blog-category.work {
    background-color: #27AE60;
}

.blog-card-content {
    padding: 25px;
}

.blog-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more i {
    transition: transform 0.3s;
}

.blog-card:hover .read-more i {
    transform: translateX(5px);
}

/* 記事がない場合 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results p {
    font-size: 1.1rem;
}

/* ============================================
   個別記事ページ
============================================ */

/* パンくずリスト */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .separator {
    margin: 0 10px;
    color: var(--text-light);
}

/* 記事ヘッダー */
.blog-post {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.blog-post .container {
    max-width: 800px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.post-category {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.post-title {
    font-size: 2.2rem;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 20px;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.post-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 記事本文 */
.post-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
}

.post-content h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.post-content h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 30px 0 15px;
}

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

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 情報ボックス */
.info-box {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.info-box p {
    margin-bottom: 10px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.note-box {
    background-color: #E8F5E9;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.note-box p {
    margin: 0;
    color: var(--text-color);
}

/* 記事フッター */
.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: var(--bg-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* 関連記事 */
.related-posts {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.related-posts .container {
    max-width: 900px;
}

.related-posts .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
}

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

.related-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    height: 150px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8E8E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-image i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.related-content {
    padding: 20px;
}

.related-content time {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.related-content h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* ============================================
   レスポンシブデザイン
============================================ */

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .post-title {
        font-size: 1.8rem;
    }

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

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

    .related-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.1rem;
    }

    .post-title {
        font-size: 1.5rem;
    }
}
