@charset "utf-8";

/* --- 全体レイアウト --- */
.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* 親要素として幅を確保 */
}

h1 {
    text-align: center;
    font-family: "Yuji Syuku", serif;
    margin: 0; /* これを追加 */
}

/* --- コースリスト --- */
.course-list-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 850px;
    width: 100%; /* 幅いっぱいに広がるのを防ぐ */
    margin: 10px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.course-card {
    flex: 1;
    min-width: 200px;
    padding: 0px 0px 10px 0px;
    border-radius: 8px;
    text-align: center;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.red-bg { background-color: #f88282; }
.pink-bg { background-color: #ffdddd; }
.yellow-bg { background-color: #ffffcc; }

.course-name {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.course-price {
    font-size: 1.3em;
    margin-top: 5px;
}

/* --- 案内ボックス --- */
.highlight-box {
    background-color: #fffc4e;
    border: 1px solid #ff4b4b;
    padding: 10px 15px;
    margin: 0 auto 10px; /* 中央寄せ */
    border-radius: 5px;
    max-width: 800px;
    width: calc(100% - 30px);
}

.highlight-box p {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center; /* 文言を中央に */
}

.info-box-container {
    max-width: 800px;
    margin: 0 auto;
}

.info-box-container p {
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 15px;
    font-size: 18px; /* 太めのフォントは少し小さくした方が上品に見えます */
    font-weight: 500;
    line-height: 1.0;
    letter-spacing: 0.05em; /* 文字の間隔をわずかに広げると読みやすさUP */
}

/* --- Swiperコンテナの設定（ここが重要！） --- */
.mySwiper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 30px; /* 下のドット（ページネーション）用のスペース */
}
/* スライド内の画像を枠（960px）にフィットさせる */
.swiper-slide img {
    width: 100% !important;
    height: auto;
    display: block;
    border-radius: 8px; /* 角を少し丸くすると綺麗です */
}

/* 矢印ボタン */
.swiper-button-next,
.swiper-button-prev {
    color: #8b0000;
    background: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    top: 50%; /* 画像の高さの中央に配置 */
    transform: translateY(-50%);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* --- スマホ向けの調整 --- */
@media screen and (max-width: 768px) {
    .course-list-container {
        flex-direction: column; /* スマホでは縦並び */
        align-items: center;
    }

    .course-card {
        width: 100%;
        max-width: 300px;
    }

    .mySwiper {
        width: 95%; /* スマホでは少し余白を作る */
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}