/**塾詳細セクション */

.tosho-section {
    background-color: #ffe6e6;
    /* 高さを800pxに設定 */
    position: relative;
    margin-top: 9vw;
    padding-top: 9vw;
    padding-bottom: 6vw;
    overflow: visible;
}

.tosho-section .title {
    text-align: center;
    font-size: 2vw;
    margin-top: -16vw;
}

.toshoSwiper {
    width: 100%;
    height: 120%;
}

.toshoSwiper .swiper-slide {
    margin-top: 50px;
    margin-bottom: 50px;
    width: fit-content;
    height: fit-content;
}

.toshoSwiper .swiper-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px
}

.toshoSwiper .swiper-pagination::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 0;
}

.toshoSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    margin: 0 5px;
    z-index: 1;
    transition: transform 0.3s;
}

.toshoSwiper .swiper-pagination-bullet-active {
    background: red;
    transform: scale(2);
}


/* 矢印ボタン */

.toshoSwiper .swiper-button-prev,
.toshoSwiper .swiper-button-next {
    background: #ff4500;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: abusolute;
    left: -20px;
    z-index: 10;
    transition: transform 1s ease-in-out;
}

.swiper-slide-active .swiper-button-next {
    display: none;
}

.toshoSwiper .swiper-slide:not(.swiper-slide-next) .swiper-button-next {
    display: none;
}


/* 矢印アイコンの色 */

.toshoSwiper .swiper-button-prev::after,
.toshoSwiper .swiper-button-next::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
}

.toshoSwiper .swiper-button-next::after {
    display: none;
}

.toshoSwiper .swiper-button-next svg {
    fill: white;
    width: 20px !important;
    height: 20px !important;
}

.tosho-card {
    display: flex;
    flex-direction: row;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    width: 100%;
    border-radius: 5px;
}

.tosho-card .image {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 350px;
}

.tosho-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tosho-card .content {
    flex: 2;
    padding: 30px;
    max-width: 100%;
}

.tosho-card .content .label {
    color: red;
    margin: 10px 0;
    font-weight: bold;
}

.tosho-card .content .title {
    font-size: 1.6em;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.tosho-card .content p {
    margin-bottom: 15px;
    font-size: 0.6em;
}

.tosho-card .content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tosho-card .content ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.tosho-card .content ul li p {
    margin: 0;
    font-size: 0.6em;
}

.tosho-card .content ul li .info {
    display: flex;
    align-items: center;
}

.tosho-card .content ul li .underline {
    text-decoration: underline;
    margin-right: 10px;
    min-width: 100px;
    font-size: 0.7em;
}

.tosho-card .content ul li .large-red {
    font-size: 1.6em;
    color: red;
    margin-right: 5px;
    text-align: right;
    min-width: 50px;
    display: block;
    font-weight: bold;
}

.tosho-card .content ul li .small-text {
    font-size: 0.6em;
}

.tosho-card .content ul li .small-text.small-text-sub {
    text-align: right;
    font-size: 0.6em;
    margin-left: 10px;
}

.tosho-card .number {
    position: absolute;
    top: -40px;
    left: 10px;
    color: red;
    padding: 5px;
    font-size: 60px;
    z-index: 10;
}

.scrolling-wrapper {
    overflow: hidden;
    display: flex;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    position: absolute;
    bottom: 0;
}


/* レスポンシブ対応 */

@media (max-width: 1000px) {
    .tosho-section .title {
        font-size: 3vw;
        margin-top: -19vw;
    }
}

@media (max-width: 800px) {
    .tosho-card {
        flex-direction: column;
    }
    .tosho-card {
        min-width: 550px;
        max-width: 550px;
        width: 550px;
    }
    .tosho-card .image {
        min-width: 300px;
        max-height: 400px;
    }
    .tosho-card .content {
        padding: 20px;
    }
}


/** スマホ */

@media (max-width: 640px) {
    .tosho-card {
        width: 100%-25px;
    }
    .tosho-card {
        min-width: 400px;
        width: 80vw;
    }
    .tosho-section .title {
        text-align: center;
        font-size: 4vw;
        margin-top: -23vw;
    }
    .tosho-card .content .title {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .tosho-card {
        width: 80vw;
        min-width: 80vw;
        margin-left: 20px;
    }
    .toshoSwiper .swiper-button-prev,
    .toshoSwiper .swiper-button-next {
        left: -50px;
        top: 300px
    }
    .tosho-card .number {
        left: 30px;
    }
}

@media (max-width: 320px) {
    .tosho-card {
        width: 80vw;
    }
}