/*
 * blog.css
 * すぐサイト ブログ共通スタイル
 */

/* ブログヒーローセクション */
.blog-hero {
    padding: 6rem 2rem 3rem;
    background: white url('/blog/images/hero-blog-pc.webp') center center / cover no-repeat;
    text-align: center;
    border-bottom: 1px solid #cce3f1;
    position: relative;
}

/* WebP非対応ブラウザ用フォールバック */
.no-webp .blog-hero {
    background-image: url('/blog/images/hero-blog-pc.jpg');
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0e2f4c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-tagline {
    font-size: 1.1rem;
    color: #5a7a8f;
    max-width: 600px;
    margin: 0 auto;
}

/* 2列レイアウト */
.blog-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 0 0 3rem 0;
}

.blog-main {
    min-width: 0;
}

.blog-main h2 {
    font-size: 1.75rem;
    color: #0e2f4c;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #ff3300;
}

/* 記事ヘッダー */
.article-header {
    padding: 3rem 0;
    text-align: center;
}

.article-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #0e2f4c;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta {
    color: #5a7a8f;
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* 記事カード（ブログホーム用） */
.article-card {
    background: white;
    border: 1px solid #e6f1f8;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #164f78;
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 2rem;
}

.article-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.article-category {
    background: #e6f1f8;
    color: #164f78;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.article-title {
    font-size: 1.5rem;
    color: #0e2f4c;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.article-excerpt {
    color: #5a7a8f;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-read-more {
    color: #164f78;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-card:hover .article-read-more {
    color: #ff3300;
}

/* 記事本文のセクション */
section {
    padding: 3rem 0;
}

section h2 {
    font-size: 2rem;
    color: #0e2f4c;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ff3300;
}

section h3 {
    font-size: 1.5rem;
    color: #164f78;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* サイドバー */
.blog-sidebar {
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border: 1px solid #e6f1f8;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    color: #0e2f4c;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ff6633;
}

/* 会社紹介カード */
.company-info {
    text-align: center;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0e2f4c;
    margin-bottom: 0.75rem;
}

.company-description {
    font-size: 0.9rem;
    color: #5a7a8f;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.company-link {
    display: inline-block;
    background: white;
    color: #164f78;
    border: 1px solid #cce3f1;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.company-link:hover {
    background: #e6f1f8;
    border-color: #99c7e3;
    color: #123f62;
}

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

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    color: #164f78;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.category-list a:hover {
    background: #e6f1f8;
    color: #0e2f4c;
}

.category-count {
    color: #5a7a8f;
    font-size: 0.85rem;
}

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

.recent-posts li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e6f1f8;
}

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

.recent-posts a {
    display: block;
    text-decoration: none;
}

.recent-post-date {
    display: block;
    font-size: 0.8rem;
    color: #5a7a8f;
    margin-bottom: 0.25rem;
}

.recent-post-title {
    color: #164f78;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.recent-posts a:hover .recent-post-title {
    color: #ff3300;
}

/* 人気記事ランキング */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    margin-bottom: 1rem;
}

.popular-posts a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
}

.ranking-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ff3300, #ffcc33);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.ranking-title {
    color: #164f78;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.popular-posts a:hover .ranking-title {
    color: #ff3300;
}

/* ブレッドクラム */
.breadcrumb {
    padding: 0.5rem 0 0.25rem;
    margin-bottom: 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: #5a7a8f;
}

.breadcrumb a {
    color: #164f78;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #5a7a8f;
}

/* レスポンシブ */
@media (max-width: 1024px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 4rem 1rem 2rem;
        background-image: url('/blog/images/hero-blog-sp.webp');
        background-size: 100% auto;
        background-position: center center;
        min-height: 0;
    }

    .no-webp .blog-hero {
        background-image: url('/blog/images/hero-blog-sp.jpg');
    }

    .blog-content {
        padding: 2rem 0;
    }

    .article-card-link {
        padding: 1.5rem;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .article-header h1 {
        font-size: 1.75rem;
    }

    section h2 {
        font-size: 1.5rem;
    }
}
