/* ブログセクションのスタイル */
.blog-section {
    padding: 6rem 4%;
    background-color: #fcfcfc;
}

.blog-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

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

.blog-subtitle {
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin: 0 0 12px 0;
}

.blog-catchphrase {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.blog-description {
    font-size: 0.95rem;
    line-height: 1.9;
    margin: 20px auto 0;
    max-width: 700px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.blog-card a, .blog-slide .blog-card {
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    background: #eef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-slide .blog-card-img {
    height: 380px; /* サムネイル領域を縦に広く */
    background-color: #f0f0f0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-no-img {
    color: #999;
}

.blog-slide .blog-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.1);
    opacity: 0.5;
    font-size: 1.1rem;
}

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-slide .blog-card-body {
    padding: 32px 36px;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.blog-date {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 0.5rem;
}

.blog-slide .blog-date {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.blog-slide .blog-category-tag {
    font-size: 0.75rem;
    border: 1px solid currentColor;
    padding: 2px 10px;
    border-radius: 4px;
    display: inline-block;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-slide .blog-card-title {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 14px;
}

.blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.blog-slide .blog-excerpt {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-btn-wrap {
    text-align: center;
    margin-top: 3rem;
}

.blog-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    border: 1px solid currentColor;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.blog-btn::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 10px;
    position: relative;
    top: -1px;
    transition: transform 0.3s ease;
}

.blog-btn:hover {
    text-decoration: none;
}

/* ==== トップページ ブログスライダー（ピークスタイル） ==== */
.blog-slider-viewport {
    position: relative;
    overflow: hidden;
    padding: 0 60px; /* 左右に矢印分のスペース */
}
.blog-slider-track {
    position: relative;
    height: 600px; /* カード全体の高さを拡大 */
}
.blog-slide {
    position: absolute;
    top: 0;
    width: 60%;
    left: 50%;
    transform: translateX(-50%) scale(1);
    transition: all 0.5s ease;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}
.blog-slide.is-prev {
    left: 0;
    transform: translateX(-30%) scale(1);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}
.blog-slide.is-next {
    left: 100%;
    transform: translateX(-70%) scale(1);
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}
.blog-slide.is-hidden {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.8);
}
.blog-slide .blog-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s, transform 0.3s;
    height: 580px; /* カードの高さを固定 */
}
.blog-slide.is-active .blog-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    transform: translateY(-3px);
}

/* 矢印ボタン */
.blog-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.blog-slider-prev {
    left: 12px;
}
.blog-slider-next {
    right: 12px;
}
/* ドットナビゲーション */
.blog-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.blog-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

@media screen and (max-width: 768px) {
    .blog-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .blog-header {
        margin-bottom: 28px;
    }
    .blog-subtitle, .blog-description {
        font-size: 0.85rem;
    }

    .blog-catchphrase {
        font-size: 1.8rem;
    }

    .blog-list {
        grid-template-columns: 1fr;
    }

    .blog-card-body {
        text-align: left;
    }

    .blog-slider-viewport {
        padding: 0;
        overflow: hidden;
    }
    .blog-slider-track {
        display: flex;
        height: auto;
        transition: transform 0.4s ease;
    }
    .blog-slide {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1 !important;
        flex: 0 0 100%;
        min-width: 100%;
        z-index: auto !important;
        pointer-events: auto !important;
        box-sizing: border-box;
        padding: 0 16px;
    }
    .blog-slide .blog-card {
        height: 420px; /* スマホ用の固定高さ */
    }
    .blog-slide .blog-card-img {
        height: 220px;
    }
    .blog-slide .blog-card-body {
        padding: 20px 24px;
    }
    .blog-slide .blog-card-title {
        font-size: 1.2rem;
    }
    .blog-slide .blog-excerpt {
        font-size: 0.9rem;
    }
    .blog-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .blog-slider-prev {
        left: 4px;
    }
    .blog-slider-next {
        right: 4px;
    }
}
