/* ブログ記事表示用CSS */

/* 最新記事セクション */
.latest-articles {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.latest-articles__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.latest-articles__title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
    position: relative;
}

.latest-articles__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.latest-articles__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.latest-article-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.latest-article-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.latest-article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f4f6;
    transition: transform 0.3s ease;
}

.latest-article-card:hover .latest-article-card__image img {
    transform: scale(1.05);
}

.latest-article-card__content {
    padding: 25px;
}

.latest-article-card__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.latest-article-card__meta time {
    color: #6b7280;
    font-weight: 500;
}

.latest-article-card__category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-article-card__title {
    margin-bottom: 15px;
}

.latest-article-card__title a {
    font-size: 16px;
    font-weight: bold;
    color: #1a202c;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.latest-article-card__title a:hover {
    color: #667eea;
}

.latest-article-card__excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
}

.latest-article-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.latest-article-card__link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.latest-article-card__link:hover {
    color: #5a6fd8;
}

.latest-article-card__views {
    color: #9ca3af;
    font-size: 0.8rem;
    font-weight: 500;
}

.latest-articles__cta {
    text-align: center;
}

.latest-articles__cta .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.latest-articles__cta .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* ブログページ用スタイル */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 20px;
}

.blog-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

.blog-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.blog-articles {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-article {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-article__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-article__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f4f6;
    transition: transform 0.3s ease;
}

.blog-article:hover .blog-article__image img {
    transform: scale(1.05);
}

.blog-article__content {
    padding: 30px;
}

.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.blog-article__meta time {
    color: #6b7280;
    font-weight: 500;
}

.blog-article__category {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-article__title {
    margin-bottom: 15px;
}

.blog-article__title a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a202c;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-article__title a:hover {
    color: #667eea;
}

.blog-article__excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-article__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.blog-article__link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-article__link:hover {
    color: #5a6fd8;
}

.blog-article__views {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.blog-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.blog-widget__title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.blog-widget__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-widget__list li {
    margin-bottom: 10px;
}

.blog-widget__list a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.blog-widget__list a:hover {
    color: #667eea;
}

.blog-widget__list a.active {
    color: #667eea;
    font-weight: 600;
}

/* 記事詳細ページ */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-detail__header {
    margin-bottom: 40px;
    text-align: center;
}

.article-detail__title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-detail__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1rem;
}

.article-detail__meta time {
    color: #6b7280;
    font-weight: 500;
}

.article-detail__category {
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-detail__views {
    color: #9ca3af;
    font-size: 0.9rem;
}

.article-detail__image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
}

.article-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f4f6;
}

.article-detail__content {
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
}

.article-detail__content h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #1a202c;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #e2e8f0;
}

.article-detail__content h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6b7280;
    margin: 40px 0 20px 0;
    padding: 10px 0 10px 16px;
    border-left: 4px solid #9ca3af;
    background-color: #f9fafb;
    border-radius: 0 8px 8px 0;
}

.article-detail__content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 30px 0 15px 0;
    padding: 8px 0;
    border-bottom: 2px solid #e5e7eb;
}

.article-detail__content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4b5563;
    margin: 25px 0 12px 0;
    padding-left: 12px;
    border-left: 3px solid #d1d5db;
}

.article-detail__content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-detail__content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-detail__content ul,
.article-detail__content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-detail__content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.article-detail__content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #4a5568;
}

.article-detail__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* 関連記事 */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.related-articles__title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-article {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-article__image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-article__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f4f6;
    transition: transform 0.3s ease;
}

.related-article:hover .related-article__image img {
    transform: scale(1.05);
}

.related-article__content {
    padding: 20px;
}

.related-article__title {
    margin-bottom: 10px;
}

.related-article__title a {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a202c;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-article__title a:hover {
    color: #667eea;
}

.related-article__excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article__meta {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .latest-articles__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .article-detail__title {
        font-size: 2rem;
    }
    
    .article-detail__meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-articles__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .latest-articles {
        padding: 40px 0;
    }
    
    .latest-articles__title {
        font-size: 2rem;
    }
    
    .latest-article-card__content {
        padding: 20px;
    }
    
    .latest-article-card__title a {
        font-size: 1.1rem;
    }
    
    .blog-container {
        padding: 20px 10px;
    }
    
    .article-detail {
        padding: 20px 10px;
    }
    
    .article-detail__title {
        font-size: 1.8rem;
    }
}
