/* ========================================
   ブログページ専用スタイル
   ======================================== */

/* ブログヒーローセクション */
.blog-hero {
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    text-align: center;
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0ea5e9;
    margin-bottom: 20px;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 30px;
}

.blog-hero-note {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}

.blog-hero-note p {
    margin: 0;
    color: #78350f;
    font-size: 0.95rem;
}

/* カテゴリフィルター */
.blog-categories {
    padding: 40px 20px;
    background-color: #ffffff;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-btn {
    padding: 10px 24px;
    border: 2px solid #e2e8f0;
    background-color: #ffffff;
    color: #64748b;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    border-color: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* 記事一覧グリッド */
.blog-articles {
    padding: 60px 20px 100px;
    background-color: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* 記事カード */
.blog-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* カテゴリ別カラー */
.blog-card.from-blue-100 { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.blog-card.from-cyan-100 { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); }
.blog-card.from-green-100 { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.blog-card.from-yellow-100 { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.blog-card.from-orange-100 { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.blog-card.from-purple-100 { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); }
.blog-card.from-red-100 { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); }
.blog-card.from-pink-100 { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.blog-card-category {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(14, 165, 233, 0.15);
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card-date {
    color: #64748b;
    font-size: 0.85rem;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #0f172a;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #0ea5e9;
}

.blog-card-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(100, 116, 139, 0.1);
    color: #475569;
    border-radius: 12px;
    font-size: 0.8rem;
}

.blog-card-footer {
    margin-top: auto;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    color: #0ea5e9;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: #0369a1;
    transform: translateX(5px);
}

/* 記事ページ */
.breadcrumb {
    padding: 20px;
    background-color: #f8fafc;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #64748b;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0ea5e9;
}

.breadcrumb span {
    color: #0f172a;
}

.blog-article-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

/* 記事本文 */
.blog-article {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-ai-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.blog-ai-warning h3 {
    color: #78350f;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-ai-warning p {
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.blog-article-meta {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.blog-article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.blog-date,
.blog-category,
.blog-author {
    color: #64748b;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: #eff6ff;
    color: #0369a1;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 記事コンテンツ */
.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1e293b;
}

.blog-article-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0ea5e9;
}

.blog-article-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 40px;
    margin-bottom: 15px;
}

.blog-article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #334155;
    margin-top: 30px;
    margin-bottom: 12px;
}

.blog-article-content p {
    margin-bottom: 20px;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 20px 0 20px 25px;
}

.blog-article-content li {
    margin-bottom: 10px;
}

.blog-article-content strong {
    color: #0f172a;
    font-weight: 700;
}

.blog-article-content a {
    color: #0ea5e9;
    text-decoration: underline;
    font-weight: 600;
}

.blog-article-content a:hover {
    color: #0369a1;
}

.blog-article-content code {
    background-color: #fce7f3;
    color: #e11d48;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
}

.blog-article-content .code-block {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.blog-article-content .code-block pre {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-article-content .code-block code {
    background: none;
    color: inherit;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

.blog-article-content blockquote {
    border-left: 4px solid #0ea5e9;
    padding-left: 20px;
    margin: 30px 0;
    color: #475569;
    font-style: italic;
}

.blog-article-content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 40px 0;
}

/* 記事フッター */
.blog-article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.blog-article-footer p {
    color: #64748b;
    margin-bottom: 20px;
}

/* サイドバー */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-categories {
    list-style: none;
    padding: 0;
}

.sidebar-categories li {
    margin-bottom: 10px;
}

.sidebar-categories a {
    color: #475569;
    transition: all 0.3s ease;
    display: block;
    padding: 8px 0;
}

.sidebar-categories a:hover {
    color: #0ea5e9;
    padding-left: 5px;
}

.sidebar-section p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* メッセージ */
.loading-message,
.error-message,
.no-articles {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-size: 1.1rem;
}

.error-message {
    color: #dc2626;
}

/* ブログページのレスポンシブ */
@media (max-width: 1024px) {
    .blog-article-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article {
        padding: 30px 20px;
    }

    .blog-article-title {
        font-size: 1.8rem;
    }

    .category-buttons {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
