/* =================================================================
    サブホームぺージよう共通スタイル
================================================================= */

/* --- スライダー全体の枠 --- */
.lab-hero-section {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* ほんのり影 */
    overflow: hidden; /* はみ出し防止 */
}

.lab-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* スライドを横に並べるラッパー */
.lab-slider-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* スマートな動き */
    width: 100%;
}

/* --- 各スライド (カード) --- */
.lab-slide-item {
    flex: 0 0 100%; /* 1枚で幅100% */
    display: flex;  /* 左右レイアウト */
    min-height: auto;
    align-items: center;
}

/* 左側: 画像 (幅55%) */
.slide-image {
    width: 55%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 530 / 300;
}

.slide-image a,
.slide-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいにトリミング */
    transition: transform 0.5s ease;
}

/* ホバーで画像が少し拡大する演出 */
.lab-slide-item:hover .slide-image img {
    transform: scale(1.05);
}

/* 右側: テキスト (幅45%) */
.slide-content {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 上下中央寄せ */
    background-color: #fff;
}

/* メタ情報 (日付・カテゴリ) */
.slide-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.slide-cat {
    background: #f0f2f5;
    color: #555;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* タイトル */
.slide-title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0 0 15px;
}
.slide-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}
.slide-title a:hover {
    color: #00796b; /* テーマカラー */
}

/* ディスクリプション */
.slide-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 続きを読むリンク */
.slide-more a {
    text-decoration: none;
    color: #00796b;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- インジケーター (.....) --- */
.lab-slider-dots {
    position: absolute;
    bottom: 20px;
    right: 30px; /* 右下に配置 */
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}
.slider-dot.active {
    background: #00796b;
    transform: scale(1.2);
}

/* --- スマホ・タブレット対応 (縦積み) --- */
@media (max-width: 899px) {
    .lab-slide-item {
        flex-direction: column; /* 縦並び */
        min-height: auto;
    }
    .slide-image, 
    .slide-content {
        width: 100%;
    }
    .slide-image {
        height: 200px; /* スマホでの画像高さ */
    }
    .slide-content {
        padding: 25px;
    }
    .slide-title {
        font-size: 1.3rem;
    }
    .lab-slider-dots {
        bottom: 15px;
        right: 0;
        left: 0;
        justify-content: center; /* スマホは中央下にドット */
    }
}