/**
         * 確定したCSSは以下
         */

.teacher-name {
    display: flex;
    align-items: baseline;
    /* 名前のベースラインを揃える */
    flex-wrap: nowrap;
    /* 通常時は横並びを維持 */
    font-size: 1.8em;
}

.teacher-name-en {
    margin-left: 10px;
    /* 日本語名と英語名の間にスペースを追加 */
    font-size: 0.8em;
    /* 必要に応じて英語名のサイズを調整 */
}


/* 画面幅が600px以下の場合 */

@media (max-width: 500px) {
    .teacher-name {
        flex-direction: column;
        /* 縦方向に並べる */
        align-items: flex-start;
        /* 左揃えに変更 */
    }
    .teacher-name-en {
        margin-left: 0;
        /* 横スペースをリセット */
        margin-top: 5px;
        /* 日本語名との間に垂直スペースを追加 */
    }
}


/**テキストの表示項目 */

.teacher-info {
    display: none;
}

.teacher-swiper-wrapper .swiper-slide-active .teacher-info {
    display: block;
}


/*
    カスタマイズ
    */

.teacher-section {
    background-color: gray;
    /* 高さを800pxに設定 */
    padding-top: 6vw;
    padding-bottom: 4vw;
    overflow: hidden;
}

.teacher-wrapper {
    overflow: visible;
}

.teacher-swiper {
    overflow: visible;
}

.teacher-swiper-slide {
    overflow: visible;
}

.swiper-slide.teacher-swiper-slide:empty {
    background-color: transparent;
    /* 空白スライドを透明に */
    height: 100px;
    /* 必要に応じて高さを指定 */
}

.teacher-swiper-wrapper .teacher-swiper-slide img {
    height: auto;
    width: 100%;
}

.teacher-swiper-slide {
    /**変更の可能性大 */
    width: 600px !important;
}

.teacher-next img {
    margin-left: -35px;
}

.teacher-after img {
    margin-left: -160px;
}

.teacher-prev img {
    margin-left: 35px;
}

.teacher-before img {
    margin-left: 160px;
}

.teacher-swiper-slide img {
    transform-origin: 50% 100%;
    transform: scale(0.7) !important;
    transition: .5s;
}

.teacher-swiper-slide.swiper-slide-active img {
    opacity: 1;
    transform: scale(1) !important;
    z-index: 1;
}


/**ボタンの位置変更 */

.teacher-swiper-button-container {
    position: absolute;
    top: 13%;
    left: 650px;
    width: 100px;
    height: 50px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    /* 任意でパディングを追加 */
}

.teacher-swiper-button-prev {
    /**要変更 */
    height: 25px;
    width: 25px;
}

.teacher-swiper-button-next {
    /**要変更 */
    height: 25px;
    width: 25px;
}


/* 前へ次への矢印カスタマイズ */

.teacher-swiper-button-prev::after,
.teacher-swiper-button-next::after {
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    margin: auto;
    height: 25px;
    width: 25px;
}

.teacher-info-container {
    min-height: 350px
}


/* 前への矢印カスタマイズ */

.teacher-swiper-button-prev::after {
    background-image: url(../../img/left_arrow.png);
}


/* 次への矢印カスタマイズ */

.teacher-swiper-button-next::after {
    background-image: url(../../img/right_arrow.png);
}

@media (max-width: 900px) {
    .teacher-swiper-button-container {
        top: 12%;
        left: 520px;
        width: 80px;
    }
    .teacher-swiper-slide {
        width: 500px !important;
    }
    .teacher-next img {
        margin-left: -50px;
    }
}

@media (max-width: 680px) {
    .teacher-swiper-button-container {
        top: 10%;
        left: 410px;
        width: 80px;
    }
    .teacher-swiper-slide {
        width: 400px !important;
    }
    .teacher-next img {
        margin-left: -40px;
    }
}

@media (max-width: 550px) {
    .teacher-swiper-button-container {
        top: 60vw;
        left: 70vw;
        width: 80px;
    }
    .teacher-swiper-slide {
        width: 100% !important;
    }
    .teacher-next img {
        margin-left: 100px;
    }
}

@media (max-width: 500px) {
    .teacher-swiper-button-container {
        top: 60vw;
        left: 68vw;
        width: 80px;
    }
}

@media (max-width: 450px) {
    .teacher-swiper-button-container {
        top: 60vw;
        left: 66vw;
        width: 16vw;
    }
}

@media (max-width: 400px) {
    .teacher-swiper-button-container {
        top: 60vw;
        left: 60vw;
        width: 20vw;
    }
}

.teacher-button-container {
    text-align: center;
    width: 100%;
    margin-top: 0px;
}

.teacher-button-container .teacher-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 80px;
    background-color: white;
    border: 0px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    position: relative;
    padding-right: 80px;
    /* 矢印のスペース確保 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* 矢印アイコンのスタイル */

.teacher-button-container .teacher-button .fa-arrow-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.teacher-button-container .teacher-button:hover {
    background-color: #f0f0f0;
}