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

/* ロゴのリンクスタイル */
.logo a {
    text-decoration: none;
    color: inherit;
}

/* アクティブナビゲーション */
.nav-menu a.active {
    color: #FF6B6B;
    font-weight: 700;
}

/* パンくずナビゲーション */
.breadcrumb {
    background-color: #F5F1EB;
    padding: 15px 0;
    margin-top: 70px;
    border-bottom: 1px solid #E0D5C7;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    font-size: 14px;
    color: #5D4037;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: #999;
}

.breadcrumb a {
    color: #5D4037;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #FF6B6B;
}

/* ブログヘッダー */
.blog-header {
    background: linear-gradient(135deg, #F5F1EB 0%, #E8DDD4 100%);
    padding: 60px 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #5D4037;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.blog-header p {
    font-size: 18px;
    color: #8D6E63;
    max-width: 600px;
    margin: 0 auto;
}

/* ブログメインコンテンツ */
.blog-main {
    padding: 60px 0;
    background-color: #FAF7F2;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* カテゴリフィルター */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E0D5C7;
}

.filter-btn {
    background-color: #F5F1EB;
    border: 2px solid #E0D5C7;
    color: #5D4037;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
    color: white;
}

/* ブログ記事グリッド */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ブログカード */
.blog-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #FF6B6B;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

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

.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.blog-card-title {
    margin-bottom: 15px;
}

.blog-card-title a {
    color: #5D4037;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #FF6B6B;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.blog-card-link {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.blog-card-link:hover {
    color: #FF5252;
}

/* ページネーション */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.pagination a {
    display: block;
    padding: 10px 15px;
    background-color: white;
    color: #5D4037;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #E0D5C7;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .active a {
    background-color: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

/* サイドバー */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    color: #5D4037;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B6B;
}

/* 検索フォーム */
.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #E0D5C7;
    border-radius: 8px;
    font-size: 14px;
}

.search-btn {
    background-color: #FF6B6B;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #FF5252;
}

/* カテゴリリスト */
.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #5D4037;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #F0F0F0;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: #FF6B6B;
}

.category-list span {
    background-color: #F5F1EB;
    color: #999;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 最新記事 */
.recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #F0F0F0;
}

.recent-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts a {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #5D4037;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #FF6B6B;
}

.recent-posts img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-posts h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-posts time {
    font-size: 12px;
    color: #999;
}

/* CTAウィジェット */
.cta-widget {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFB347 100%);
    color: white;
    text-align: center;
}

.cta-widget h3 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background-color: white;
    color: #FF6B6B;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 36px;
    }
    
    .blog-header p {
        font-size: 16px;
    }
    
    .blog-main {
        padding: 40px 0;
    }
    
    .blog-layout {
        padding: 0 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-filter {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb ol {
        font-size: 12px;
    }
    
    .blog-header {
        padding: 40px 0;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input,
    .search-btn {
        width: 100%;
    }
}

/* フィルタリング用のアニメーション */
.blog-card.hidden {
    display: none;
}

.blog-card.show {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

