@charset "UTF-8";

a{
    color: black;
    text-decoration: none;
}

li{
    list-style: none;
}

img{
    max-width: 100%;
    vertical-align: bottom;
}

header{
    height: 100px;
    padding: 40px 0 0 50px;
}

.site-title{
    width: 100px;
}

.site-title img{
    max-width: 100%;
}

nav{
    width: 100%;
    height: 100vh;
    background-color: red;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    opacity: 0;
    text-align: center;
    transition: all 0.6s ease;
    visibility: hidden;
}

nav .logo{
    width: 100px;
    position: absolute;
    top: 40px;
    left: 50px;
}

nav .menu{
    margin: 80px 0 40px 0;
}

nav .menu li{
    margin-bottom: 20px;
}

nav .menu a{
    color: white;
}

nav .btn{
    width: 250px;
    border: solid 1px white;
    color: white;
    padding: 15px 0;
    margin: 0 auto;
    position: relative;
    transform: 0.3s ease-in-out;
    display: block;
}

nav .btn::after{
    content: "";
    width: 250px;
    border-right: solid 1px white;
    border-bottom: solid 1px white;
    padding: 15px 0;
    position: absolute;
    right: -6px;
    bottom: -6px;
}

nav .btn:hover{
    background-color: white;
    color: red;
}

.hamburger{
    width: 100px;
    height: 100px;
    background-color: red;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 30;
    cursor: pointer;
    transition: 0.3s;
}

.hamburger span{
    width: 50px;
    height: 2px;
    background: white;
    position: absolute;
    left: 25px;
    transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1){
    top:36px;
}

.hamburger span:nth-child(2){
    top: 50px;
}

.hamburger span:nth-child(3){
    top: 64px;
}

.open nav{
    opacity: 1;
    visibility: visible;
}

.open .hamburger span:nth-child(1){
    top: 47px;
    background: white;
    transform: rotate(-45deg);
}

.open .hamburger span:nth-child(2){
    top: 47px;
    background: white;
    transform: rotate(45deg);
}

.open  .hamburger span:nth-child(3){
    top: 47px;
    background: white;
    transform: rotate(45deg);
}

.mainvisual{
    height: 720px;
    position: relative;
    margin-bottom: 120px;
}

.mainvisual .text{
    position: absolute;
    top:280px;
    left: 10%;
    z-index: 10;
}

.mainvisual .title{
    font-size: 46px;
    margin-bottom: 30px;
    text-shadow: 0 4px 6px white;
}

.mainvisual .text .btn{
    background-color: red;
    border-bottom: 6px solid brown;
    border-radius: 10px;
    color: white;
    font-size: 24px;
    display: block;
    padding: 15px 35px;
    text-align: center;
    transition: 0.3s;
    position: relative;
}

.mainvisual .text .btn::after{
    content: "";
    width: 16px;
    height: 16px;
    border-top: solid 3px white;
    border-right: solid 3px white;
    transform: rotate(45deg);
    position: absolute;
    top: 26px;
    right: 30px;
}

.mainvisual .text .btn:hover{
    opacity: 0.9;
    transform: scale(1.05);
}

.fade li{
    width: 75%;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    animation: fade 15s infinite;
}

.fade li img{
    width: 100%;
    height: 720px;
    object-fit: cover;
}

.fade li::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    box-shadow: inset 0 0 20px 20px white;
}

.fade li:nth-child(1){
    animation-delay: 0s;
}

.fade li:nth-child(2){
    animation-delay: 5s;
}

.fade li:nth-child(3){
    animation-delay: 10s;
}

@keyframes fade{
    0%{
        opacity: 0;
    }

    15%{
        opacity: 1;
    }

    30%{
        opacity: 1;
    }

    45%{
        opacity: 0;
    }

    100%{
        opacity: 0;
    }
}

.reason{
    margin-bottom: 120px;
}

.section-title{
    font-size: 36px;
    margin-bottom: 100px;
    text-align: center;
    position: relative;
}

.section-title::after{
    content: "";
    width: 100px;
    height: 3px;
    background-color: black;
    display: block;
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.reason .bg{
    background-color: red;
    padding: 80px 0;
}

.reason .slide{
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 5%;
    opacity: 0;
}

.reason .slide img{
    width: auto;
    height: 60px;
    margin-right: 30px;
}

.reason  .slide .title{
    color: red;
    display: block;
    font-size: 28px;
}

.reason .slide .text{
    display: block;
    font-size: 18px;
}

.reason .inview-slide-left{
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 40px;
}

.reason .inview-slide-right{
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    margin-left: auto;
}

.reason .slide-left{
    animation: slide-left 0.5s ease-out 0s 1 forwards;
}

@keyframes slide-left {
    0%{
        transform: translateX(-50%);
    }

    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-right{
    animation: slide-right 0.5s ease-out 0s 1 forwards;
}

@keyframes slide-right{
    0%{
        transform: translateX(50%);
    }

    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

.voice{
    margin-bottom: 120px;
}

.wrapper{
    width: 100%;
    max-width: 860px;
    margin: 0 auto ;
}

.item-left{
    justify-content: flex-start;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    margin-bottom: 60px;
}

.student img{
    width: 120px;
    background-color: gray;
    border-radius: 50%;
    margin-bottom: 10px;
}

.student .name{
    font-size: 12px;
    text-align: center;
}

.item-left .balloon-text{
    margin-left: 25px;
    width: 60%;
    display: flex;
    justify-content: center;
    background: lightblue;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.item-left .balloon-text::before{
    content: "";
    position: absolute;
    top: 60%;
    left: 0;
    margin-left: -30px;
    border: 15px solid transparent;
    border-right: 15px solid lightblue;
}

.item-right{
    justify-content: flex-end;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    margin-bottom: 60px;
}

.item-right .balloon-text{
    margin-left: 25px;
    width: 60%;
    display: flex;
    justify-content: center;
    background: lightblue;
    border-radius: 15px;
    padding: 20px;
    position: relative;
    margin-right: 25px;
}

.item-right .balloon-text::before{
    content: "";
    position: absolute;
    top: 60%;
    right: 0;
    margin-right: -30px;
    border: 15px solid transparent;
    border-left: 15px solid lightblue;
}

.balloon{
    animation: balloon 0.5s ease-out 0s 1 forwards;
}

@keyframes balloon {
    0%{
        transform: scale(0.1);
        opacity: 0;
    }

    100%{
        transform: scale(1);
        opacity: 1;
    }
}

.summary{
    background: url("../img/bg.gif") repeat;
    animation: fall 10s infinite linear;
    padding: 60px 0;
    margin-bottom: 120px;
}

@keyframes fall{
    0%{
        background-position: 0 0;
    }

    100%{
        background-position: -700px 700px;
    }
}

.summary .menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.summary .menu li{
    width: 48%;
    background-color: white;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 32px;
}

.summary .menu-title{
    text-align: center;
}

.summary .menu-title .ja{
    display: block;
    font-size: 28px;
    margin-bottom: 15px;
}

.summary .menu-title .en{
    display: block;
    font-size: 18px;
    margin-bottom: 30px;
}

.entry{
    margin-bottom: 120px;
    text-align: center;
}

.entry .title{
    font-size: 32px;
    margin-bottom: 5px;
}

.entry .catchphrase{
    font-size: 18px;
    margin-bottom: 40px;
}

.entry .btn{
    background-color: red;
    border-radius: 40px;
    color: white;
    font-size: 28px;
    display: block;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

footer{
    background-color: whitesmoke;
    padding: 60px 0 20px 0;
}

footer .inner{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 60px;
}

footer .inner .menu{
    padding: 10px 0 0 10px;
}

footer .inner .menu li{
    margin-bottom: 3px;
}

footer a{
    font-size: 14px;
    transition: 0.3s;
}

footer a:hover{
    opacity: 0.7;
}

footer .copyright{
    text-align: center;
    font-size: 10px;
}

@media(max-width: 900px){
    header{
        padding: 25px 0 0 25px;
    }

    .nav .logo{
        top: 25px;
        left: 25px;
    }

    .nav .menu{
        margin-top: 110px;
    }

    .hamburger{
        width: 75px;
        height: 75px;
    }

    .hamburger span{
        width: 35px;
        left: 21px;
    }

    .hamburger span:nth-child(1){
        top: 26px;
    }

    .hamburger span:nth-child(2){
        top: 37px;
    }

    .hamburger span:nth-child(3){
        top: 48px;
    }

    .mainvisual{
        height: 490px;
        margin-bottom: 80px;
    }

    .mainvisual .text{
    width: calc(100% - 32px);
    top: 50vh;
    left: 16px;
    }

    .mainvisual .text .title{
        font-size: 28px;
        margin-bottom: 10px;
    }

    .mainvisual .text .btn{
        width: 100%;
    }

    .fade li{
        width: 100%;
    }

    .fade li img{
        height: 300px;
    }

    .reason{
        margin-bottom: 80px;
    }

    .section-title{
        font-size: 28px;
        margin-bottom: 60px;
    }

    .section-title::after{
        width: 80px;
    }

    .bg{
        padding: 40px 0;
    }

    .reason .slide{
        width: calc(100% - 16px);
    }

    .voice{
        margin-bottom: 80px;
    }

    .wrapper{
        padding: 0 16px;
    }

    .voice .item-left{
        flex-direction: column-reverse;
        align-items: center;
        margin-bottom: 40px;
    }

    .voice .student{
        text-align: center;
    }

    .voice .item-left .balloon-text{
        width: 100%;
        margin: 0 0 30px 0;
    }

    .voice .item-left .balloon-text::before{
        margin-left: calc(50% - 15px);
        top: 100%;
        border: 15px solid transparent;
        border-top: 15px solid lightblue;
    }

    .voice .item-right{
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }

    .voice .item-right .balloon-text{
        width: 100%;
        margin: 0 0 30px 0;
    }

    .voice .item-right .balloon-text::before{
        margin-right: calc(50% - 15px);
        top: 100%;
        border: 15px solid transparent;
        border-top: 15px solid lightblue;
    }

    .summary{
        margin-bottom: 80px;
    }

    .summary .menu{
        flex-direction: column;
    }

    .summary .menu li{
        width: 100%;
        padding: 30px;
    }

    .summary .menu-title .ja{
        font-size: 24px;
    }

    .summary .menu-title .en{
        font-size: 16px;
    }

    .entry{
        margin-bottom: 80px;
    }

    .entry .title{
        font-size: 24px;
    }

    .entry .catchphrase{
        font-size: 16px;
    }

    .entry .btn{
        font-size: 24px;
    }

    footer .inner{
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    footer a{
        font-size: 12px;
    }

    footer .inner .title{
        font-size: 15px;
    }
}