/* Swiper */
/* PC時の横並び（コンテナは中央・画像は左寄せ） */
.container-primary {
    display: flex;
    flex-wrap: wrap; /* 3枚ごとに改行 */
    justify-content: flex-start; /* 画像を左寄せ */
    align-items: flex-start;
    overflow: hidden;
    /* max-width: 900px; 最大幅を制限（調整可能） */
    margin: 0 auto; /* コンテナを中央に配置 */
}

/* 画像の配置（3列・余白なし） */
.item {
    width: calc(100% / 3); /* 3列レイアウト（余白なし） */
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
/*    background-color: lightgray;*/
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* はみ出た部分を中央トリミング */
}


/* スマホ時のカルーセル */
.swiper-container {
    width: 100%;
    height: 50vh; /* 画面サイズの半分の高さ */
    display: block;
    position: relative;
    overflow: hidden; /* 横スクロールバグ防止 */
}

/* Swiperスライドのサイズ調整 */
.swiper-slide {
    width: 100% !important;
    height: 100%; /* スライドの高さを統一 */
    display: flex;
    align-items: center;
    justify-content: center;
/*    background-color: lightgray;*/
}

/* 画像の高さをスライドにフィットさせる */
.swiper-slide img {
    height: 100%; /* 縦幅をスライドに合わせる */
    width: 100%; /* 横幅は自動調整 */
    max-width: 100%; /* はみ出し防止 */
    /* object-fit: contain; 画像の比率を維持し、中央表示 */
    object-fit: cover; /* はみ出た部分を中央トリミング */
}

/* Swiperページネーション（中央配置） */
.swiper-pagination {
    position: absolute;
    top: 50%; /* 画像の中央に配置 */
    left: 50%;
    z-index: 10; /* 画像より前面に表示 */
    display: flex;
    gap: 8px;
}

/* ページネーションの点（カスタマイズ可能） */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7); /* 白の半透明 */
    width: 12px;
    height: 12px;
    opacity: 0.7;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.swiper-pagination-bullet-active {
    background: #fff; /* アクティブ時の色を変更 */
    opacity: 1;
}

