html{
    font-size: 10px;
}
/*html全体の基本のフォントサイズを10pxに指定する。これから先のrem（基準の何倍）の指定にかかってきている*/

a{
    font-size: 1.6rem;
    line-height: 1.5;
}
/**/

h2{
    font-size: 4.6rem;
    line-height: 1.5;
}
/**/ 

p{
    font-size: 1.6rem;
    line-height: 1.5;
}
/**/

.flex{
    display: flex;
}
/**/

body{
    width: 100%;
    position: relative;
    box-sizing: border-box;
}
/**/

section:not(.mv){
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0;
}
/**/

.wrap{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}
/**/

header{
    width: 100%;
    height: 110px;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
}
/**/

header ul{
    align-items: center;
}
/**/
header ul li{
    padding: 0 20px;
}
/**/
header ul li:first-of-type{
    padding-left: 0;
}
/**/
header ul li:last-of-type{
    padding-right: 0;
}
/**/

header a.header-btn{
    width: 144px;
    height: 50px;
    background-color: #FDD322;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
}
/**/

.mv{
    width: 100vw;
    height: 800px;
    background-image: url(img/sample1.png);
    z-index: -1;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/**/

.mv h2{
    font-size: 5.4rem;
}
/**/
.mv p{
    font-size: 1.8rem;
    margin-top: 40px;
}
/**/

.about{
    /*各アイテムを均等に配置し各アイテムの両側に半分の大きさの間隔を置く*/
    justify-content: space-around;
}
/**/

.about div{
    width: 80%;
    justify-content: space-between;
}
/**/

.about div{
    width: 45%;
    max-width: 435px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
/*上のと同じじゃない？*/

.about div h2{
    padding-bottom: 33px;
}
/**/

.about img{
    width: 45%;
    max-width: 538px;
    text-align: right;
}
/**/

section.service,section.employee{
    max-width: inherit;
    background-color: #0096E5;
}
/**/

section.service p,section.service h2,section.employee p,section.service h2{
    color:#fff;
}
/**/

.service div{
    display: flex;
    align-items: center;
}
/**/

.service ul{
    flex-wrap:wrap;
    justify-content: space-between;
}
/**/

.service ul li{
    width: 30%;
    padding: 34px 20px;
}
/**/

.service ul li p{
    margin-left: 80px;
}
/**/

.service div h2{
    margin-left: 24px;
    font-size: 3rem;
}
/**/


/*9回目はここから*/
.news h2{
    text-align: center;
    margin-bottom: 30px;
}
/**/

.news p{
    text-align: center;
    margin-bottom: 60px;
}
/**/

.news ul li{
    width: 25%;
    min-width: 344px;
    margin: 0 auto;
}
/**/

.news ul li h3{
    font-size: 2.4rem;
    line-height: 1.5;
    margin-bottom: 20px;
}
/**/

.news ul li p{
    font-size: 1.3rem;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 20px;
}
/**/

.news ul li p:last-of-type{
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 0;
}
/**/

.news a{
    width: 144px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    background-color: #F2F4F8;
    margin: 80px auto 0;
}
/**/

/*employee：従業員の意味　社員紹介のところ*/
.employee h2{
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}
/**/

.employee p{
    text-align: center;
    margin-bottom: 90px;
    color: #fff
}
/**/

.employee ul.flex{
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
}
/**/

.employee ul li h3{
    font-size: 2.4rem;
    line-height: 1.5;
    text-align: center;
    color: #fff;
    margin: 20px auto 15px;
}
/**/

.employee ul li p{
    margin-bottom: 15px;
    color: #fff;
}
/**/

.employee a{
    width:144px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 25px;
    background-color: #F2F4F8;
    margin: 117px auto 0;
}
/**/

.contact{
    width: 100%!important;/*!importantをつけると優先してこの設定を使う*/
    max-width: inherit!important;
    height: 780px;
    background-image: url(img/sample7.png);
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/**/

.contact div{
    width: 58%;
    max-width: 1120px;
    height: auto;
    margin: 0 auto;
    text-align: center;
    background-color: rgb(255,255,255,0.6);/*RGB指定だと4つ目が透明度なので透かした要素が作れる*/
    border-radius: 55px;
    padding: 115px 0;
}
/**/

.contact p{
    margin-top: 30px;
    font-size: 3.1rem;
}
/**/

.contact a{
    width: 520px;
    height: 123px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FDD322;
    box-shadow: 6px 6px 6px rgba(0,0,0,0);
    border-radius: 100px;
    font-size: 4rem;
    margin: 40px auto 0;
}
/**/

footer div:first-of-type{
    width: 100%;
    height: auto;
    background-color: #F5F5F5;
    padding: 135px 80px;
    margin: 0 auto;
    justify-content: space-between;
}
/**/

footer div:first-of-type ul{
    font-size: 2.4rem;
}
/**/

footer div:first-of-type ul li{
    padding: 20px 0;
}
/**/

footer div:first-of-type ul li,footer div:first-of-type ul li a{
    font-size: 1.8rem;
}
/**/

footer div:first-of-type ul:first-of-type{
    width: 50%;
    font-size: 3rem;
}
/**/

footer div:last-of-type{
    width: 100%;
    height: 80px;
    background-color: #0B1E4B;
    display: flex;
    align-items: center;
    justify-content: center;
    color:#fff;
    font-size: 1.3rem;
}
/*12,13回目　ナビゲーションボタン*/
.navbtn{
    display: none;
}


/*ここからレスポンシブ対応 ここだと1024px以下のときはここから下の設定を使う*/
/*どのピクセルで切り替えるかは、その時の主流のスマホiphoneなどのピクセルを調べて対応すると良い*/
@media only screen and (max-width:1024px){
    .flex{
        flex-direction: column;
    }
    /*クラスのflex（横向きに並べる）を画面が小さい時に縦並び（column）にする*/

    /*次回の講座で説明*/
    /*12回目、13回目ハンバーガーメニュー用*/
    header ul,header .header-btn{
        visibility: hidden;
    }
    /*ヘッダーを見えなくする。jQueryでハンバーガーメニューを作る*/
    header h1{
        padding-top: 30px;
    }
    header.flex{
        padding: 0;
    }
    header ul li{
        padding: 20px 0;
    }
    /*ボタンをクリックしたときのプロパティ*/
    header ul.active-nav{
        visibility: visible;
        width: 103vw;
        height: 100vh;
        position: fixed;
        background-color: #F5F5F5;
        z-index: 2;
        justify-content: center;
    }
    /*12，13回目ここまで*/

    h2,.mv h2{
        font-size: 2.2rem;
        line-height: 1.5;
    }
    .news ul li h3{
        font-size: 2.0rem;
    }
    p,mv p{
        font-size: 1.6rem;
        line-height: 1.5;
    }
    /*文字サイズを小さくしてるよ*/

    .mv div{
        width: 90%;
    }
    .about div ,.about img{
        width: 90%;
        max-width: inherit;
        margin: 0 auto;
    }
    .service ul li{
        width: 90%;
        margin: 0 auto;
    }
    .news ul li{
        width: 90%;
        height: inherit;
        margin: 0 auto 30px;
    }
    .employee ul li{
        text-align: center;
    }
    .employee ul li h3{
        font-size: 2.0rem;
    }
    .contact div{
        width: 75%;
    }
    .contact p{
        font-size: 1.6rem;
        padding: 0 10px;
    }
    .contact a{
        width: 70%;
        min-width: 200px;
        height: 80px;
        font-size: 1.6rem;
    }
    footer div:first-of-type ul li a,footer div:first-of-type ul li{
        font-size: 1.6rem;
    }
    footer ul{
        width: 95%!important;
        margin: 0 auto;
        margin-bottom: 40px;
        text-align: left;
    }

    /*navbtnナビゲーションボタンつくり*/
    .navbtn{
        display: block;
        position: absolute;
        background-color: #ccc;
        top: 20px;
        right: 0px;
        cursor: pointer;
        width: 50px;
        height: 50px;
        z-index: 2;
    }
    .navbtn span{
        display: inline-block;
        transition: all .4s;
        position: absolute;
        left: 14px;
        height: 3px;
        background: #000;
        width: 45%;
    }
    .navbtn span:nth-of-type(1){
        top: 15px;
    }
    .navbtn span:nth-of-type(2){
        top:23px;
    }
    .navbtn span:nth-of-type(3){
        top:31px;
    }
    .navbtn.active span:nth-of-type(1){
        top:18px;
        left:18px;
        transform: translateY(6px) rotate(-45deg);
        width: 30%;
    }
    .navbtn.active span:nth-of-type(2){
        opacity: 0;
    }
    .navbtn.active span:nth-of-type(3){
        top: 30px;
        left: 18px;
        transform: translateY(-6px) rotate(45deg);
        width: 30%;
    }

}

/*ここから動きを作るよう　jQueryとつながってる*/
section:not(.mv){
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.5s;
}
/*最初にはmv以外のセクションをみえないようにしている*/
section:not(.mv).scrollin{
    opacity: 1;
    transform: translateY(0);
}
/*opacity：投下をするかしないかのプロパティ　1:透過しない（見える)　0:透過（見えない）
transform: translateY(0)　向きや回転を決めてるよ。今回は縦方向に0pxに戻す。*/

