/* ===========================
   blog-home.css
   ブログトップページ専用スタイル
   =========================== */

/* ヒーロー */
.blog-hero {
    background: linear-gradient(135deg, #1a6fb8 0%, #4da6e8 100%);
    color: #fff;
    text-align: center;
    padding: 48px 20px 40px;
}

.blog-hero-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.blog-hero-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.92;
}

@media (min-width: 768px) {
    .blog-hero {
        padding: 64px 40px 56px;
    }

    .blog-hero-title {
        font-size: 2.2rem;
    }

    .blog-hero-desc {
        font-size: 1.05rem;
    }
}

/* コンテナ */
.blog-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* カテゴリーナビ */
.blog-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0 16px;
}

.blog-cat-nav-item {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid #1a6fb8;
    border-radius: 999px;
    color: #1a6fb8;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
    background: #fff;
}

.blog-cat-nav-item:hover,
.blog-cat-nav-item.active {
    background: #1a6fb8;
    color: #fff;
}

/* セクション */
.blog-section {
    margin-top: 44px;
}

.blog-section-ttl {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a6fb8;
    border-left: 4px solid #1a6fb8;
    padding-left: 12px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .blog-section-ttl {
        font-size: 1.4rem;
    }
}

/* グリッド */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* 新着3件用・大きいグリッド */
.blog-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .blog-grid-large {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* 新着大きいカード */
.blog-card-large .blog-card-ttl {
    font-size: 1rem;
    -webkit-line-clamp: 2;
}

.blog-card-large .blog-card-body {
    padding: 14px 16px 18px;
}

/* カード */
.blog-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
}

.blog-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #e8f3fc;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #e8f3fc;
    min-height: 100px;
}

.blog-card-body {
    padding: 10px 12px 14px;
}

.blog-card-cat {
    display: inline-block;
    font-size: 0.72rem;
    background: #e8f3fc;
    color: #1a6fb8;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 6px;
    font-weight: bold;
}

.blog-card-ttl {
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 0.75rem;
    color: #888;
}

/* もっと見るボタン */
.blog-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.blog-more-btn {
    display: inline-block;
    padding: 10px 32px;
    border: 2px solid #1a6fb8;
    border-radius: 999px;
    color: #1a6fb8;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-more-btn:hover {
    background: #1a6fb8;
    color: #fff;
}

/* ===========================
   ホームページ最新記事セクション
   =========================== */
.sec-blog-latest {
    background: #e8f3fc;
    padding: 40px 16px;
}

.sec-blog-latest__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.sec-blog-latest__ttl {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a6fb8;
    margin-bottom: 16px;
}

.sec-blog-latest__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.sec-blog-latest__item {
    border-bottom: 1px solid #e0eaf5;
}

.sec-blog-latest__item:last-child {
    border-bottom: none;
}

.sec-blog-latest__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.sec-blog-latest__link:hover {
    background: #f0f7ff;
}

.sec-blog-latest__arrow {
    color: #1a6fb8;
    font-weight: bold;
    flex-shrink: 0;
}

.sec-blog-latest__title {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sec-blog-latest__date {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.sec-blog-latest__more {
    text-align: center;
}

.sec-blog-latest__btn {
    display: inline-block;
    padding: 10px 32px;
    border: 2px solid #1a6fb8;
    border-radius: 999px;
    color: #1a6fb8;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.sec-blog-latest__btn:hover {
    background: #1a6fb8;
    color: #fff;
}