/* =================================================
   活動内容セクション全体のデザイン
   ================================================= */
.activity-section {
    padding: 80px 20px;
    background-color: #e0f7fa; /* 淡い水色 */
}

.section-lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
    color: #444;
}

/* --- カードを並べるグリッド --- */
.activity-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- 個別のカードデザイン --- */
.activity-card {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    overflow: hidden; /* 画像の角丸をはみ出させない */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* --- カード内の画像 --- */
.activity-img {
    width: 100%;
    height: 200px;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 巨大な画像も枠に合わせて自動トリミング */
}

/* --- カード内のテキスト情報 --- */
.activity-content {
    padding: 25px;
}

.activity-content h3 {
    font-size: 1.4rem;
    color: #004e54; /* サイト共通のメインカラー */
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

/* タイトルの下の短い線 */
.activity-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #b3e5fc; /* 薄い水色 */
}

/* 日時・場所のアイコン付きテキスト */
.activity-date, .activity-place {
    font-size: 0.95rem;
    font-weight: bold;
    color: #00796b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-top: 15px;
}
/* スライダーセクションの調整 */
.activity-gallery {
    padding: 60px 0px 20px;
    background-color: #e0f7fa; /* トップに合わせた背景色 */
}

.mySwiper {
    width: 95%;
    max-width: 1200px; /* PCでの最大幅 */
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    /* cover から contain に変更 */
    object-fit: contain; 
    /* 背景色をつけると、余白が目立たず綺麗に見えます */
    background-color: #f9f9f9;
}

/* 矢印の色（Running鹿児島のテーマカラーに！） */
.swiper-button-next, 
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.9); /* 半透明の白背景 */
    width: 50px;           /* ボタンの横幅 */
    height: 50px;          /* ボタンの高さ */
    border-radius: 50%;    /* 真ん丸にする */
    color: #004e54;        /* 矢印の色（メインカラー） */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* 軽い影をつけて浮かせる */
    transition: all 0.3s ease;
}
/* 矢印のサイズを調整（Swiperのデフォルトは少し大きいので） */
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;       /* 矢印自体の大きさ */
    font-weight: bold;
}

/* --- ホバー（マウスを乗せた時）の動き --- */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #004e54; /* 背景をメインカラーに */
    color: #fff;               /* 矢印を白に */
    transform: scale(1.1);     /* 少し大きくする */
}

/* --- スマホ向けにサイズを少し小さく --- */
@media (max-width: 768px) {
    .swiper-slide img {
        /* スマホの時だけ、枠を埋め尽くすように切り抜く */
        object-fit: cover; 
        
        /* 
           もし画像が横長すぎて、大事な部分（桜島など）が
           左右に切れる場合は、ここを 80% などに調整するのもアリです 
        */
        width: 100%; 
        height: 100%;
    }
    .mySwiper {
        width: 100%;       /* スマホは横幅いっぱいにするのがおすすめ */
        /* ★ここがポイント：スマホでは比率を「もっと横長」にするか、高さを低くする */
        aspect-ratio: 21 / 9; /* 16:9よりも少しだけ縦を短く、または 2 / 1 などに調整 */
        height: auto;        /* 固定高さを解除 */
        border: none;        /* スマホでは枠線を消すと画像が大きく見えます */
        border-radius: 0;    /* 画面端まで画像を見せるなら0に */
    }
    activity-gallery {
        padding: 20px 0;    /* セクション自体の上下余白も詰めるとさらにスッキリ */
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }
}


/* =================================================
   レスポンシブ：画面幅が900px以下の時（スマホ・タブレット）
   ================================================= */
@media (max-width: 900px) {
    .activity-grid {
        flex-direction: column; /* 横並びから縦並びに変更 */
        align-items: center;
    }

    .activity-card {
        width: 100%;
        max-width: 500px; /* スマホで横に広がりすぎないように制限 */
    }

    .activity-img {
        height: 180px; /* スマホでは少し高さを抑える */
    }
}
/* スマホ対応 */
@media (max-width: 768px) {
    .mySwiper {
        height: 300px; /* スマホでは高さを抑える */
    }
}