/* ブログ専用スタイル */

/* ブログコンテンツのスタイリング */
.blog-post-content {
    line-height: 1.8;
    font-size: 16px;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    color: #2d3748;
}

.blog-post-content h1 {
    font-size: 2.25rem;
    border-bottom: 3px solid #007bff;
    padding-bottom: 0.5rem;
}

.blog-post-content h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.3rem;
}

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

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.blog-post-content blockquote {
    border-left: 4px solid #007bff;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background-color: #f7fafc;
    font-style: italic;
    color: #2d3748;
    border-radius: 0 6px 6px 0;
}

.blog-post-content code {
    background-color: #f7fafc;
    color: #e53e3e;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
}

.blog-post-content pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-post-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.blog-post-content th,
.blog-post-content td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    text-align: left;
}

.blog-post-content th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.blog-post-content td {
    color: #4a5568;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-post-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 2rem 0;
}

/* ブログメタ情報 */
.blog-post-meta {
    font-size: 0.875rem;
    color: #718096;
}

.blog-post-meta a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-meta a:hover {
    color: #0056b3;
}

/* タグクラウド */
.tag-cloud .badge {
    transition: all 0.2s ease;
}

.tag-cloud .badge:hover {
    background-color: #007bff !important;
    color: white !important;
    transform: translateY(-1px);
}

/* ページネーション */
.pagination .page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* サイドバー */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar .bg-solitude-blue {
    transition: box-shadow 0.2s ease;
}

.blog-sidebar .bg-solitude-blue:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
    .blog-post-content {
        font-size: 15px;
    }
    
    .blog-post-content h1 {
        font-size: 2rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.75rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.375rem;
    }
    
    .blog-post-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .blog-post-content table {
        font-size: 0.875rem;
    }
    
    .blog-post-content th,
    .blog-post-content td {
        padding: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .blog-post-content {
        font-size: 14px;
    }
    
    .blog-post-content h1 {
        font-size: 1.75rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-post-content h3 {
        font-size: 1.25rem;
    }
    
    .blog-post-content ul,
    .blog-post-content ol {
        padding-left: 1.5rem;
    }
    
    .blog-post-content blockquote {
        padding: 0.75rem 1rem;
        margin: 1rem 0;
    }
    
    .blog-post-content pre {
        padding: 0.75rem;
        margin: 1rem 0;
        font-size: 0.75rem;
    }
}

/* 読み込みアニメーション */
.blog-post-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-item:hover {
    transform: translateY(-5px);
}

.blog-post-item .box-shadow-double-large {
    transition: box-shadow 0.2s ease;
}

.blog-post-item:hover .box-shadow-double-large {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* 警告・注意ボックス */
.blog-post-content .alert {
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post-content .alert-info {
    background-color: #e6f3ff;
    color: #0c5aa6;
    border-left: 4px solid #007bff;
}

.blog-post-content .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.blog-post-content .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}