@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    color: #333;
    font-family: "Zen Maru Gothic", serif;
    letter-spacing: 0.1em;
}
a {
    text-decoration: none;
    color: #333;
}

.wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}
.sec-ttl {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}
.sec-ttl::after {
    content: "";
    display: block;
    background-color: #333;
    width: 100px;
    height: 3px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    margin: 0 auto;
}


/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
    height: 100px;
    padding: 40px 0 0 50px;
}
.site-ttl {
    width: 100px;
}
.site-ttl a {
    display: block;
}

/*-------------------------------------------
nav
--------------------------------------------*/
.hamburger {
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    z-index: 30;
    color: #fff;
    background-color: #fcd88a;
    transition: 0.3s;
    cursor: pointer;
}
.hamburger:hover {
    opacity: 0.7;
}

/* ハンバーガーメニューの線の設定（メニューが閉じている時） */
.hamburger span {
    width: 50px;
    height: 2px;
    background: #fff;
    display: block;
    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;
}
/*
ハンバーガーメニューの線の設定（メニューが開いている時）
1本目の線を-45度回転
*/
.hamburger.active span:nth-child(1) {
    top: 47px;
    left: 25px;
    transform: rotate(-45deg);
    background: #fff;
}
/* 2本目と3本目は重ねて45度回転 */
.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
    top: 47px;
    transform: rotate(45deg);
    background: #fff;
}
/*
メニューの設定
最初は閉じている状態なので、「opacity: 0;」「visibility: hidden;」
で要素を非表示にしておく
*/
#nav {
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    background: #fcd88a;
    color: #fff;
    text-align: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
/*
ハンバーガーメニューがクリックされた際に、jQueryで#navにactiveクラスを追加して、
メニューを表示させる。
*/
#nav .active {
    opacity: 1;
    visibility: visible;
}
#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: #fff;
    font-weight: bold;
}
#nav .btn {
    width: 250px;
    border: solid 1px #fff;
    color: #fff;
    display: block;
    font-weight: bold;
    padding: 15px 0;
    margin: 0 auto;
    position: relative;
    transition: 0.3s ease-in-out;
}
  /* ボタンの右と下の線は疑似要素で設定 */
#nav .btn::after {
    content: "";
    width: 250px;
    border-right: solid 1px #fff;
    border-bottom: solid 1px #fff;
    padding: 15px 0;
    position: absolute;
    right: -6px;
    bottom: -6px;
}
#nav .btn:hover {
    background-color: #fff;
    color: #fcd88a;
}



/*-------------------------------------------
Mainvisual
-------------------------------------------*/
#mainvisual {
    height: 720px;
    position: relative;
    margin-bottom: 120px;
}

/*
テキストとボタンが画像の上に表示されるように「z-index」を設定
*/
#mainvisual .txt {
    position: absolute;
    top: 280px;
    left: 10%;
    z-index: 10;
}

/*
「text-shadow」で文字の輪郭に白い影をつけることで、
文字が背景画像に埋もれないようにする
*/
#mainvisual .txt .ttl {
    font-size: 2.875rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 0 4px 6px  #fff;
}
#mainvisual .txt .btn {
    display: block;
    text-align: center;
    background-color: #fcd88a;
    color: #fff;
    font-size: 1.5rem;
    padding: 15px 35px;
    border-radius: 10px;
    border-bottom: 6px solid #b98c0f;
    transition: 0.3s;
    position: relative;
}
#mainvisual .txt .btn::after {
    content: "";
    display: block;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 26px;
    right: 30px;
    transform: rotate(45deg);
}
#mainvisual .txt .btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}
/*
メインビジュアル
*/
.fade li {
    position: absolute;
    width: 75%;
    right: 0;
    top: 0;
    /* 最初は3枚の画像を非表示にしておく */
    opacity: 0;
    /*
    アニメーションを実行
    fade：下で定義している「@keyframes fade」を実行
    15s：「@keyframes fade」の処理を15秒かけて実行
    infinite：アニメーションの処理を無限に繰り返す
    */
    animation: fade 15s infinite;
}
.fade li:nth-child(1) {
    /*
    1枚目の画像のアニメーション実行タイミングを設定
    「animation-delay: 0s;」ですぐに実行
    */
    animation-delay: 0s;
}
.fade li:nth-child(2) {
    animation-delay: 5s;
}
.fade li:nth-child(3) {
    animation-delay: 10s;
}

.fade li img {
    height: 720px;
    object-fit: cover;
    width: 100%;
}

/*
アニメーション処理
上の「animation」で15sを指定しているので下記の処理を15秒かけて実行
0%が0秒を表し、100%が15秒後を表す。

0%の「opacity: 0;」で非表示の状態からスタートし、
15%になるまでの間に少しづつ画像を表示（フェードイン）させる。
そこから30%の時点までは画像を表示させたままの状態を維持し、
45%の時点に向けて画像を非表示（フェードアウト）する。
そこから100%まで非表示の状態を維持する。
*/
@keyframes fade {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    30% {
        opacity: 1;
    }
    45% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
/*
「box-shadow」で画像のまわりをぼかす
*/
.fade li::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: inset 0px 0px 20px 20px#fff;
}


/*-------------------------------------------
Reason
-------------------------------------------*/
#reason {
    margin-bottom: 120px;
}

#reason .bg {
    background-color: #fcd88a;
    padding: 80px 0;
}
#reason .slide {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 5%;
    opacity: 0;
}
#reason .slide img {
    height: 60px;
    width: auto;
    margin-right: 30px;
}
#reason .slide .ttl {
    display: block;
    font-size: 1.75rem;
    font-weight: bold;
    color: #fcd88a;
}
#reason .slide .txt {
    display: block;
    font-size: 1.125rem;
}

#reason .inview-slide-left {
    margin-bottom: 40px;
    border-top-right-radius: 20px; 
    border-bottom-right-radius: 20px; 
}
/*
アニメーション（スライド左）を実行

slide-left：下で定義している「@keyframes slide-left」を実行
0.5s：アニメーションが始まってから終わるまでの時間（0.5sかけて実行）
ease-out：アニメーションの変化（開始時は早く、終了時は緩やかに変化）
0s：アニメーションが始まるまでの時間（0sですぐに実行）
1：アニメーションの繰り返し回数（1回）
forwards：アニメーション終了時の状態をそのまま維持
*/
#reason .inview-slide-left {
    animation: slide-left 0.5s ease-out 0s 1 forwards;
}

/*
アニメーション処理

最初は「translateX(-50%);」で左側に隠しておく
100%（0.5秒）かけて要素を表示させながら元の位置へ移動させる
*/
@keyframes slide-left {
    0% {
        transform: translateX(-50%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



#reason .inview-slide-right {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    margin-bottom: 40px;
}

/*
アニメーション（スライド右）を実行

※左の処理と同様
*/
#reason .inview-slide-right {
    animation: slide-right 0.5s ease-out 0s 1 forwards;
}
@keyframes slide-right {
    0% {
        transform: translateX(150%);
    }
    100% {
        opacity: 1;
        transform: translateX(100%);
    }
}


/*-------------------------------------------
Voice
-------------------------------------------*/
#voice {
    margin-bottom: 120px;
}
.item-left,
.item-right {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 60px;
    opacity: 0;
}
.item-left {
    justify-content: flex-start;
}
.item-left:last-of-type {
    margin-bottom: 0;
}

.item-right {
    justify-content: flex-end;
}
.student img {
    background-color: #cccccc;
    width: 120px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.name {
    text-align: center;
    font-size: .75rem;
}

/* ふきだしを設定 */
.item-left .balloon_txt,
.item-right .balloon_txt {
    width: 60%;
    height: 80px;
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #e9f1fb;
    border-radius: 15px;
    position: relative;
}
.item-left .balloon_txt {
    margin-left: 25px;
    display: block;
}
.item-right .balloon_txt {
    margin-right: 25px;
    display: block;
}

/* 左のふきだしの矢印部分を設定 */
.item-left .balloon_txt::before {
    position: absolute;
    content: "";
    left: 0;
    top: 50%;
    margin-left: -30px;
    border: 15px solid transparent;
    border-right: 15px solid #e9f1fb;
}
/* 右のふきだしの矢印部分を設定 */
.item-right .balloon_txt::after {
    position: absolute;
    content: "";
    top: 50%;
    right: 0;
    border: 15px solid transparent;
    border-left: 15px solid #e9f1fb;
    margin-right: -30px;
}  
/*
アニメーションを実行

balloon：下で定義している「@keyframes balloon」を実行
0.5s：アニメーションが始まってから終わるまでの時間（0.5sかけて実行）
ease-out：アニメーションの変化（開始時は早く、終了時は緩やかに変化）
0s：アニメーションが始まるまでの時間（0sですぐに実行）
1：アニメーションの繰り返し回数（1回）
forwards：アニメーション終了時の状態をそのまま維持
*/
.inview-balloon {
    animation: balloon 0.5s ease-out 0s 1 forwards;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
}
@keyframes balloon {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/*-------------------------------------------
Summary
-------------------------------------------*/
/*
アニメーションを実行

fall：下で定義している「@keyframes fall」を実行
10s：アニメーションが始まってから終わるまでの時間（10sかけて実行）
infinite：アニメーションの繰り返し回数(無限に繰り返す)
linear：アニメーションの変化（開始から終了まで一定に変化）
*/
#summary {
    margin-bottom: 120px;
    background-image: url(../img/orange_circle.png);
    animation: fall 10s infinite linear;
    padding: 60px 0;
}

/*
アニメーション処理

10秒かけて背景画像の位置「background-position」を移動させる動作を繰り返す
*/
@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: #fff;
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 32px;
    text-align: center;
}
#summary .menu li:nth-child(n + 3) {
    margin-bottom: 0;
}
#summary .menu-ttl {
    text-align: center;
    line-height: 1;
    font-weight: bold;
    margin-bottom: 30px;
}
.menu-ttl .ja {
    display: block;
    margin-bottom: 15px;
    font-size: 1.75rem;
}
.menu-ttl .en {
    display: block;
    font-size: 1.125rem;
}


/*-------------------------------------------
Entry
-------------------------------------------*/
#entry {
    margin-bottom: 120px;
    text-align: center;
}
#entry .ttl {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 5px;
}
.catchphrase {
    font-size: 1.125rem;
}
#entry .btn {
    display: block;
    margin-top: 40px;
    color: #fff;
    background-color: #fcd88a;
    font-weight: bold;
    font-size: 1.75rem;
    padding: 15px;
    border-radius: 40px;
    border: 3px solid #fcd88a;
    transition: 0.3s;
}
#entry .btn:hover {
    color: #fcd88a;
    background-color: #fff;
}


/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
    background-color: #e8e8e8;
    padding: 60px 0 20px 0;
}
#footer .inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}
#footer .inner > li {
    width: 25%;
}
#footer .ttl {
    font-weight: bold;
}
#footer .menu {
    padding: 10px 0 0 10px;
    font-size: 0.875rem;
    line-height: 1.725;
}
#footer .menu li {
    margin-bottom: 3px;
}

.copyright {
    font-size: 0.5rem;
    text-align: center;
}


@media screen and (max-width: 900px),print {
    .wrapper {
        padding-top: 0;
        padding-bottom: 0;
        padding-left: 16px;
        padding-right: 16px;
    }
    .sec-ttl {
        font-size: 1.75rem;
        margin-bottom: 60px;
    }
    .sec-ttl::after {
        width: 80px;
    }

    /*------------------------------------------
    header
    -------------------------------------------*/
    #header {
        padding: 25px 0 0 25px;
    }
    
    /*-------------------------------------------
    nav
    --------------------------------------------*/
    .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;
    }
    /*
    ハンバーガーメニューの線の設定（メニューが開いている時）
    1本目の線を-45度回転
    */
    .hamburger.active span:nth-child(1) {
        top: 37px;
        left: 21px;
    }
    /* 2本目と3本目は重ねて45度回転 */
    .hamburger.active span:nth-child(2),
    .hamburger.active span:nth-child(3) {
        top: 37px;
    }

    #nav .logo {
        top: 25px;
        left: 25px;
    }
    .nav-menu {
        margin-top: 110px;
    }
    
    
    /*-------------------------------------------
    Mainvisual
    -------------------------------------------*/
    #mainvisual {
        height: 490px;
        margin-bottom: 80px;
    }
    #mainvisual .fade li {
        width: 100%;
    }
    #mainvisual .fade li img {
        height: 300px;
    }

    #mainvisual .txt {
        top: 310px;
        left: 16px;
        width: calc(100% - 32px);
    }
    
    #mainvisual .txt .ttl {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }
    #mainvisual .txt .btn {
        width: 100%;
    }


    /*-------------------------------------------
    Reason
    -------------------------------------------*/
    #reason {
        margin-bottom: 80px;
    }
    
    #reason .bg {
        padding: 40px 0;
    }
    #reason .slide {
        width: calc(100% - 16px);
    }
    #reason .slide .ttl {
        font-size: 1.5rem;
    }
    
    @keyframes slide-left {
        0% {
        transform: translateX(-100%);
        }
        100% {
        opacity: 1;
        transform: translateX(0);
        }
    }
    
    @keyframes slide-right {
        0% {
            transform: translateX(100%);
        }
        100% {
            opacity: 1;
            transform: translateX(16px);
        }
    }
    
    
    /*-------------------------------------------
    Voice
    -------------------------------------------*/
    #voice {
        margin-bottom: 80px;
    }
    .item-left {
        margin-bottom: 40px;
        flex-direction: column-reverse;
        align-items: center;
    }
    .item-right {
        margin-bottom: 40px;
        flex-direction: column;
        align-items: center;
    }
    
    /* ふきだしを設定 */
    .item-left .balloon_txt,
    .item-right .balloon_txt {
        width: 100%;
        margin: 0 0 30px 0;
        padding-bottom: 0;
    }
    
    /* ふきだしの矢印部分を下に設定 */
    .item-left .balloon_txt::before,
    .item-right .balloon_txt::after {
        top: 100%;
        border: 15px solid transparent;
        border-top: 15px solid #e9f1fb;
    }
    .item-left .balloon_txt::before {
        margin-left: calc(50% - 15px);
    }
    .item-right .balloon_txt::after {
        margin-right: calc(50% - 15px);
    }
    
    /*-------------------------------------------
    Summary
    -------------------------------------------*/
    
    #summary {
        margin-bottom: 80px;
    }
    #summary .menu {
        flex-direction: column;
    }
    #summary .menu li {
        width: 100%;
        padding: 30px;
    }
    #summary .menu li:nth-child(3) {
        margin-bottom: 32px;
    }
    .menu-ttl .ja {
        font-size: 1.5rem;
    }
    .menu-ttl .en {
        font-size: 1rem;
    }
    
    
    /*-------------------------------------------
    Entry
    -------------------------------------------*/
    #entry {
        margin-bottom: 80px;
    }
    #entry .ttl {
        font-size: 1.5rem;
    }
    .catchphrase {
        font-size: 1rem;
    }
    #entry .btn {
        font-size: 1.5rem;
    }
    

    /*-------------------------------------------
    フッター
    -------------------------------------------*/
    #footer .inner {
        flex-wrap: wrap;
    }
    #footer .inner > li {
        width: 50%;
    }
    #footer .inner .title {
        font-size: 0.9375rem;
    }
    #footer .menu {
        font-size: 0.75rem;
        line-height: 1.5rem;
    }
    #footer .inner > li:nth-child(1),
    #footer .inner > li:nth-child(2) {
        margin-bottom: 30px;
    }

}