.juku-details-header-section {
    padding-top: 2%;
}

.juku-details-header {
    font-size: 36px;
    font-weight: bold;
    color: #095493;
}

.juku-details-content {
    font-size: calc(14px + 3 * ((100vw - 280px) / 2280));
    margin: auto;
    text-align: center;
}

.juku-details-section .row .col-2 .school-tools {
    width: 85%;
}

.juku-details-section .row .col div span,
.juku-details-section .row .col-4 div span {
    display: block;
}

.juku-details-section .row div:first-child {
    text-align: right;
}

.juku-details-section .row div:last-child {
    text-align: left;
}

.juku-details-section .row .col-4 div span:first-child {
    font-size: 36px;
    font-weight: bold;
    color: #095493;
}

.juku-details-section .row .col-4 div span:last-child {
    font-size: 16px;
    color: #191919;
}

.juku-details-section .row .col-2 .school-tools {
    width: 85%;
}

.juku-details-section .orange-button-container {
    width: 31%;
}

.return-jp-section img:first-child {
    position: absolute;
    margin-top: 2%;
    margin-left: 1%;
    max-width: 28%;
    height: auto;
}

.return-jp-section {
    margin-top: 20px;
}

.juku-sensai-section {
    margin-top: 3%;
}

.juku-sensai-section .juku-sensai-header {
    color:#095493;
    font-weight: bold;
    font-size: 36px;
}

.juku-sensai-section .juku-sensai-row {
    display: none !important;
}

.juku-sensai-section .juku-sensai-row {
    position: relative;
    display: block !important;
    height: 320px;
    margin-bottom: 30px;
    background-color: #095493;
}

.juku-sensai-section .juku-sensai-row .sensai-bio-section {
    color: #fff;
    padding-top: 80px;
    width: 490px;
}

.juku-sensai-section .juku-sensai-row .sensai-img-section {
    margin-bottom: 2%;
}

.juku-sensai-section .juku-sensai-row .sensai-img-section .sensai-image {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: -75%;
}

.juku-sensai-section .spacer {
    height: 230px;
}

.university-accepted-header {
    margin-top: 50px;
    margin-bottom: 20px;
}

.university-entrance-record {
    font-size: 36px;
    font-weight: bold;
    color: #095493;
}

.university-states {
    font-size: 16px;
    font-weight: 600;
}

.university-japan {
    font-size: 16px;
    font-weight: 625;
}

.testimony-section {
    margin-top: 50px;
    padding-bottom: 50px;
    background-image: url("../images/testimony_bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
}

.testimony-header {
    padding-top: 25px;
    padding-bottom: 15px;
    font-size: 36px;
    color: #fff;
    font-weight: bold;
}

.testimony-center-section
{
    justify-content: center!important;
    flex-wrap: nowrap!important;
    display: flex!important;
}

.testimony-container {
    position: relative;
    padding: 0 10px;
}

.testimony {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
    text-align: center;
    color: #191919;
    width: 90%;
    font-size: calc(14px + 2 * ((100vw - 1024px) / 1536));
    font-weight: 600;
}

.gallery-header {
    margin-top: 45px;
    margin-bottom: 25px;
    font-size: 36px;
    font-weight: 700;
    color: #095493;
}

@media only screen and (min-width: 1024px) and (max-width: 1280px) {
    .juku-details-section {
        padding-top: 17%;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1170px) {
    .gallery-section .gallery-container.toggle-sm div img {
        width: 215px;
        height: 215px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .juku-details-section {
        padding-top: 15%;
    }

    .testimony {
        width: 520px;
        font-size: 24px;
    }

    .testimony-location {
        font-size: 30px;
    }

    .testimony-subject {
        font-size: 26px;
    }

    .testimony-center-section {
        display: block!important;
    }

    .testimony-section {
        background-image: url("../images/testimony_bg_sm.png");
    }

    .testimony-container {
        padding: 10px 0px;
    }

    .gallery-section .gallery-container.toggle-sm div img {
        width: 230px;
        height: 230px;
    }

    .testimony-bg-img img {
        display: none !important;
    }
}

@media only screen and (min-width: 812px) and (max-width: 932px) {
    .gallery-section .gallery-container.toggle-sm div img {
        width: 200px;
        height: 200px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 932px) {
    .gallery-section .gallery-container.toggle-sm div img {
        width: 190px;
        height: 190px;
    }
}

@media only screen and (min-width: 500px) and (max-width: 768px) {
    .banner-overlay {
        left: 19%;
        top: 85%;
        width: 75%;
    }

    .juku-details-section {
        padding-top: 35%;
    }

    .return-jp-section .return-prep-position {
        position: absolute;
        margin-top: 2%;
        margin-left: 1%;
        max-width: 28%;
        height: auto;
    }

    .testimony-center-section {
        display: block!important;
    }

    .testimony {
        font-size: calc(16px + 8 * ((100vw - 500px) / 268));
    }

    .testimony-location {
        font-size: calc(18px + 12 * ((100vw - 500px) / 268));
    }

    .testimony-subject {
        font-size: calc(18px + 8 * ((100vw - 500px) / 268));
    }

    .testimony-section {
        background-image: url("../images/testimony_bg_sm.png");
    }

    .testimony-container {
        padding: 10px 0px;
        width: 80%;
        margin: auto;
    }

    .gallery-section .gallery-container.sm div img {
        width: 230px;
        height: 230px;
    }
}

@media only screen and (min-width: 280px) and (max-width: 500px) {
    .juku-details-section {
        padding-top: 35%;
    }

    .juku-sensai-section .spacer {
        height: 125px;
    }

    .banner-overlay {
        left: 17%;
        top: 91%;
        width: 84%;
    }

    .testimony-bg-img img {
        display: none !important;
    }

    .testimony-center-section {
        display: block!important;
    }

    .testimony-section {
        background-image: url("../images/testimony_bg_sm.png");
    }

    .testimony {
        width: 81%;
        font-size: calc(9px + 7 * ((100vw - 280px) / 220));
    }

    .testimony-location {
        font-size: calc(11px + 7 * ((100vw - 280px) / 220));
        margin-top: 5px;
    }

    .testimony-subject {
        font-size: calc(10px + 8 * ((100vw - 280px) / 220));
        margin-top: 6px;
    }

    .testimony-container {
        width: 100%;
        margin: 0 auto 20px auto;
        padding: 0;
    }

    .juku-sensai-section .juku-sensai-row .sensai-img-section .sensai-image {
        top: -40%;
    }

    .juku-sensai-section .juku-sensai-row .sensai-bio-section {
        width: 360px;
        font-size: 14px;
    }

    .gallery-section .gallery-container.sm div img {
        width: 175px;
        height: 175px;
    }
}

@media only screen and (min-width: 280px) and (max-width: 412px) {
    .gallery-section .gallery-container.sm div img {
        width: 135px;
        height: 135px;
    }
}