@charset "UTF-8";

/* course.html */

/* max-width: 800px で設計 */



/* 〇 CSS担当 Etou isao */

/* 〇 修正 Yokomichi Kazuha & Sakamaki Ryu */



/* ★ ヒーロー画像 */

.hero.course {
    background-image: url(../image/course/course_hero.jpg);
}



/* ★ キャッチコピー */

.catchcopy h2 {
    text-align: center;
    font-size: clamp(24px, 6vw, 40px);
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 50px;
    padding-top: 50px;
}

.catchcopy h3 {
    font-size: clamp(12px, 3vw, 20px);
    text-align: center;
    margin-bottom: 30px;
    margin-top: 60px;
}

.catch-sub p {
    font-size: clamp(12px, 3vw, 20px);
    text-align: center;
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 40px;
}



/* ★ コース紹介 */

.course-menubox {
    position: relative;
    text-align: center;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    padding-bottom: 30px;
    padding-top: 40px;
    background-image: url("../image/course/couse_background.jpg");
    background-repeat: repeat;
    z-index: 1;
}

.course-menu {
    display: block;
    width: clamp(300px, 350px, 400px);
    margin: 0 auto;
    text-align: center;
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    font-style: normal;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    font-size: clamp(20px, 1.3vw, 26px);
    box-shadow: #989898 0.8vw 0.6vw 0.3vw 0;
    padding: 0.8em 1.5em;
    max-width: 300px;
    white-space: nowrap;
    margin-bottom: 50px;
}

.items {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    max-height: 1600px;
    /*全体の領域とflexを指定*/
}

@media (max-width: 700px) {
    .items {
        margin-top: 20px;
    }
}

.item {
    position: relative;
    max-height: 400px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5px;
    /*領域内更にflexで分割*/
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* 初期状態（透明＋少し下に移動） */
}

.job {
    width: 50%;
    /*各段の画像幅50%まで*/
}

.job img {
    flex-grow: 1;
    max-width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: cover;
}

.margin-b30 {
    margin-bottom: 30px;
}

.item:nth-child(2) {
    flex-direction: row-reverse;
    /*コース一覧２段目の左右入れ替え処理*/
}

.item:nth-child(2) .job img {
    right: auto;
    left: 0;
    /* 2番目のアイテムの画像を右寄せに */
}

.item::before {
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: 60%;
    /*文字領域から画像領域に少し被らせる*/
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
    /*ここで背景画像を設定（単色のわたあめみたいなやつ） */
}

.item:nth-child(1)::before {
    right: 0;
    left: auto;
    background-image: url("../image/course/course_greenback.png");
    background-position: right center;
    /*  1番目の背景画像を **右寄せ** */
}

.item:nth-child(2)::before {
    left: 0;
    right: auto;
    background-image: url("../image/course/course_yellowback.png");
    background-position: left center;
    /*  2番目の背景画像を **左寄せ** */
}

.item:nth-child(3)::before {
    right: 0;
    left: auto;
    background-image: url("../image/course/course_blueback.png");
    background-position: right center;
    /*  3番目の背景画像を **右寄せ** */
}

.item2 {
    display: block;
    text-align: center;
    padding-top: 60px;
}

@media (max-width: 700px) {
    .item2 {
        padding-top: 30px;
    }
}
.job2{
    display: block;
    width: 300px;
    margin: 0 auto;
}

.job2 p{
    color: #fff;
    background-color: #8c8c8c;
    font-size: clamp(20px, 1.3vw, 26px);
    border-radius: 30px;
    width: 300px;
    text-align: center;
    margin: 20px auto 0 auto;
    padding: 10px 0;
}

.yajirushi {
    color: #fff;
    margin-left: 10px;
}

.item-list {
    padding-left: 5%;
    font-size: clamp(10px, 2vw, 16px);
    /*コース一覧内の文字サイズはここ*/
    white-space: nowrap;
    color: black;
    flex-grow: 1;
    /* 残りの領域をすべて使う */
}

@media (max-width: 410px) {

    .item-list.r {
        padding-left: 2%;
        font-size: clamp(10px, 2vw, 16px);
        /*コース一覧内の文字サイズはここ*/
        white-space: nowrap;
        color: black;
        flex-grow: 1;
        /* 残りの領域をすべて使う */
    }
}



/* ★ ●を作り、階段状にずらす処理 */

.item-list li {
    position: relative;
    margin-bottom: 10px;
    /* 各項目の間隔 */
    padding-left: calc(1em * var(--indent) + 20px);
    /* ●の位置をずらす */
    width: 100%;
    /* 親の幅いっぱいにする */
}

@media (max-width: 380px) {
    .item-list li {
        padding-left: 12px;
    }

    .pad-l-380 {
        padding-left: 4px;
    }
}

@media (max-width: 340px) {
    .item-list li {
        padding-left: 6px;
    }
}

.item-list li::before {
    content: "●";
    /* `●` をカスタム */
    position: absolute;
    left: calc(1.0em * var(--indent));
    /* ●を階段状にずらす */
    top: 0;
    font-size: 1.0em;
    /* ●の大きさ */
    color: black;
    /* ●の色（カスタマイズ可能） */
}

@media (max-width: 380px) {
    .item-list li::before {
        content: none;
        /* `●` を非表示に */
    }
}



/* ★ ●を階段状にずらす処理 */

.item-list li:nth-child(1) {
    --indent: 0;
    /* 1行目から順に●ごとインデントを増やす 1行目はそのまま*/
}

.item-list li:nth-child(2) {
    --indent: 0.5;
    /* 2行目は1文字分ずらす 　以下同様の処理*/
}

.item-list li:nth-child(3) {
    --indent: 1;
}

.item-list li:nth-child(4) {
    --indent: 1.5;
}

.item-list li:nth-child(5) {
    --indent: 2;
}

.item-list li:nth-child(6) {
    --indent: 2.5;
}

.item-list li:nth-child(7) {
    --indent: 3;
}

.item-list li:nth-child(8) {
    --indent: 3.5;
}

.item-list li:nth-child(9) {
    --indent: 4;
}



/* 400px以下で  消える　専用コード */

@media (max-width: 450px) {
    .break-450-course {
        display: none;
    }
}



/* ★ フェードインの設定 */

.item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* 初期状態（透明＋少し下に移動） */
}

.item.show {
    opacity: 1;
    transform: translateY(0);
    /* スクロールで表示されたら適用 */
}



/* ★ スワイパーの設定 */

.swiper-title {
    width: clamp(300px, 350px, 400px);
    text-align: center;
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0 auto;
    margin-top: 60px;
    margin-bottom: 40px;
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    font-size: clamp(20px, 1.3vw, 26px);
    box-shadow: #989898 0.8vw 0.6vw 0.3vw 0;
    padding: 0.8em 1.5em;
    max-width: 300px;
    white-space: nowrap;
}

.catch-sub-hitokoto p {
    font-size: clamp(12px, 3vw, 20px);
    text-align: center;
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 60px;
}

.swiper {
    max-width: 1200px;
    margin: 0 auto;
}

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

.infinite-slider {
    border: #8c8c8c 1px solid;
}

.container h3 {
    text-align: center;
}



/* スライダーのwrapper */
.infinite-slider .swiper-wrapper {
    transition-timing-function: linear;
    padding: 30px;
}

/* スライド */
.infinite-slider .swiper-slide {
    height: 400px !important;
    /* 高さを指定 */
    width: auto !important;
    margin: 0 20px;
}

/* スライド内の画像 */
.infinite-slider .swiper-slide img {
    width: auto;
    height: 100%;
}

@media (max-width: 1200px) {
    .infinite-slider .swiper-slide {
        max-width: 100% !important;
        max-height: 350px !important;
        margin: auto 15px;
        /* 余白を狭くする */
    }
}

@media (max-width: 1000px) {
    .infinite-slider .swiper-slide {
        max-height: 300px !important;
        /* スマホ用の高さ調整 */
        margin: auto 10px;
        /* 余白を狭くする */
    }
}

@media (max-width: 800px) {
    .infinite-slider .swiper-slide {
        max-height: 250px !important;
        /* スマホ用の高さ調整 */
    }
}

@media (max-width: 600px) {
    .infinite-slider .swiper-slide {
        max-height: 200px !important;
        /* スマホ用の高さ調整 */
    }
}




/* ★ 講師紹介　*/

.teacher-introduce-img {
    width: 100%;
    margin: 50px auto 0;
}

.teacher-introduce {
    padding-bottom: 60px;
    width: 100%;
    margin: 0 auto;
    background-color: #f7f5f2;
    text-align: center;
}



/* ★ 講師紹介の見出し枠と文字設定 */

.teacher-h3 {
    width: clamp(200px, 40%, 350px);
    text-align: center;
    display: inline-block;
    font-size: clamp(20px, 2.8vw, 40px);
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    margin: 10px auto 20px;
    padding: 25px;
    border: 2px solid black;
    background-color: #ffffff;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
    /* 以下、追記で上書きして他ページと統一 */
    border: 1px solid #000;
    background-color: #fff;
    color: #000;
    font-size: clamp(20px, 1.3vw, 26px);
    box-shadow: #989898 0.8vw 0.6vw 0.3vw 0;
    padding: 0.8em 1.5em;
    max-width: 300px;
    white-space: nowrap;
}

.introduce {
    font-family: "Zen Old Mincho", serif;
    text-align: center;
    font-size: clamp(14px, 3vw, 20px);
    margin-top: 30px;
    opacity: 0;
    /* 初期状態で非表示 */
    transform: translateY(50px);
    /* 少し下にずらす */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* `.introduce` の.item と同じアニメーション */
    margin-bottom: 40px;
}

.teacher-introduce-box.container {
    padding-bottom: 60px;
}

.introduce.show {
    opacity: 1;
    transform: translateY(0);
    /*スクロールで表示*/
}

.teacher-image ul {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    /*講師部分flexで横並び均等配置*/
}

.teacher-image ul li {
    flex: 1;
    /* 均等幅にする */
    text-align: center;
    padding: 2%;
}

.teacher-name {
    color: #000000;
    font-size: clamp(18px, 3vw, 22px);
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 400px) {
    .teacher-name {
        margin-top: 20px;
    }
}

.teacher-job {
    color: #000000;
    font-size: clamp(14px, 2.5vw, 18px);
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 400px) {
    .teacher-job {
        margin-top: 20px;
    }
}

.teacher-resume {
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 400px) {
    .teacher-resume {
        margin-top: 20px;
    }
}


.teacher-message {
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(26px, 6vw, 30px);
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    margin: 50px auto 0 auto;
    padding: 30px 5% 30px 5%;
    border: 2px solid rgb(221, 239, 204);
    background-color: #ffffff;
    width: fit-content;
    /* コンテンツの幅にフィット */
}


.teacher-message h4 {
    text-align: center;
}



/* ★ 講師メッセージ下線の処理 */

.teacher-underline {
    text-align: center;
}

.teacher-underline p {
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.teacher-underline .line {
    width: auto;
    height: 1.2px;
    background-color: black;
}

.teacher-underline .line:last-child {
    display: none;
    /*下線最終行は出さない*/
}



/* ★ スラッシュ表示コード */

.slash {
    align-items: center;
    /* 線を上下中央 */
    display: flex;
    /* 文字と横線を横並び */
    justify-content: center;
    /* 文字を中央寄せ */
}

.slash::before,
.slash::after {
    background-color: #000000;
    /* 線の色 */
    border-radius: 5px;
    /* 線の両端を丸く */
    content: "";
    height: 1.5px;
    /* 線の高さ */
    width: 40px;
    /* 線の長さ */
}

.slash::before {
    margin-right: 10px;
    /* 文字との余白 */
    transform: rotate(60deg);
    /* 傾ける */
}

.slash::after {
    margin-left: 10px;
    /* 文字との余白 */
    transform: rotate(-60deg);
    /* 傾ける */
}