/*----------------------------------------------
                 基本的な共通設定
-----------------------------------------------*/
body {
    color: #082b48;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.5;
}

img {
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #082B48;
}

a:hover{
    opacity:0.7;
}

/*収まりよくするためにコンテナを設定*/
.container {
    width: 90%;
    max-width: 980px;
    margin: auto;
}

/*メイン部分が、ヘッダーに食い込まないためのストッパー やり方①。
食い込みは止まるが、あまりスマートなやり方ではない
.clear {
    clear: both
}*/


/*メイン部分がヘッダーに食い込まないようにストッパー やり方②。
セットで覚えておこう*/
.clear::after {
    /*afterとbeforeの疑似要素を使用する時はcontentが必要*/
    content:"";
    clear: both;
    display: block;
}


/*=====================================
            header
======================================*/

.header-left {
    float: left;
}

.header-right {
    float: right;
}

.header-title {
    font-weight: bold;
    font-size: 24px;
}


.header-nav-item {
    float: left;
    /*左右の間隔をあける*/
    margin-left: 50px;
}

header {
    padding:20px;
}

/*ヘッダーナビの左と右の高さを揃える。左は高さが36なので右も36に*/
.header-nav-item a {
    font-size: 15px;
    font-weight: 600;
    line-height: 36px;
}

/*=====================================
            トップ画像（最終的なもの）
======================================*/
.top {
    background-image: url(../img/main-vsual-nontitle.png);
    background-size: cover;
    padding: 80px 0;
}

.top-title {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.top-subtitle {
    font-size: 18px;
    text-align: center;
}


/*=====================================
               section共通
======================================*/
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/*=====================================
               アバウト
======================================*/
.about-left {
    float: left;
    width: 48%;
}

.about-right {
    float: right;
    width: 48%;
}

/*=====================================
            コース一覧
======================================*/

.course {
    background-color: #e3fcf4;
}

/*course-wrapperクラスに「display:flex」あてるだけで横並び*/
.course-wrapper {
    display: flex;
    /*30%ずつにした画像の間隔をいい感じに調整してくれる*/
    justify-content:space-between;
}

.course-item {
    width: 30%;
}

/*=====================================
コンタクト
======================================*/
.contact-message {
    text-align: center;
    margin-bottom: 20px;
}

/*似たようなもの（inputタイプtext）の時にも汎用性をもたせられるように*/
input[type="email"] {
    width:600px;
    border: 3px solid #d8d8d8;
    font-size: 18px;
    display: block;
    margin: auto;
    padding: 15px;
    border-radius: 999px;
    margin-bottom: 20px;
}

/*ボタン設定（共通のもの）*/
.btn {
    padding: 20px 60px;
    display: inline-block;
    background-color: #082b48;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
}

.btn:hover {
    opacity: 0.7;
    cursor: pointer;
}


/*ボタン設定（色だけかえる）*/
.btn-register {
    background-color: #ec6d64;
    display: block;
    margin: auto;
}

/*=====================================
            フッター
======================================*/

footer {
    background-color: #082b48;
    color:#fff;
    padding: 20px 0;
}

.copyright {
    font-size: 12px;
    float: right;
    /*↑これを入れると、高さがなくなるので、clear:bothを入れたい。
    そのために.copyrightの親要素にクラス名clear付与。*/
}



/*=====================================
            スマホ用表示（レスポンシブ）
======================================*/
/*タブレットで最も出回っているiPadが768pxなので、
それ以下の場合はスマホ用と考える*/

@media only screen and (max-width: 767px) {
   
    /*--------------------------------------
            ヘッダー用表示
    --------------------------------------*/
    .header-left {
        float: none;
    }

    .header-title {
        text-align: center;
    }

    .header-right {
        float: none;
    }

    .header-nav {
        /*親要素にflex*/
        display: flex;
        /*いい感じの間隔*/
        justify-content: space-between;
    }
    
    .header-nav-item {
        float:none;
        margin: 0;
    }

    /*--------------------------------------
            トップ画像表示
    --------------------------------------*/
    .top {
        padding:120px 0;
    }

    .top-title {
        font-size: 32px;
    }

    .top-subtitle {
        font-size: 14px;
    }

    /*=====================================
                section共通
    ======================================*/
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    section p {
        font-size: 14px;
    }
    /*=====================================
                アバウト
    ======================================*/
    .about-left {
        float: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .about-right {
        float: none;
        width: 100%;
    }

    /*=====================================
                コース一覧
    ======================================*/
    .course-wrapper {
        /*子要素が親要素に収まりきれない時に、
        自動的に改行してくれる。PC版にも入れておいたほうが良い*/
        flex-wrap: wrap;
    }
    
    /*親要素は30%で設定していた*/
    .course-item {
        width: 100%;
        margin-bottom: 20px;
    }

    /*=====================================
                お問い合わせ
    ======================================*/
    .contact
    input[type="email"] {
        width: 100%;
    }

    /*=====================================
                フッター
    ======================================*/
    .copyright {
        font-size: 10px;
        float: none;
        text-align: center;
    }

}
