@charset "UTF-8";

body{
    font-size: 16px;    
    font-family: Lato,"ヒラギノ角ゴ ProN","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ Pro","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
}

p{
    padding-bottom: 20px;
}

.header{
    background-color: #111111;
    height: 95px;
}

.header_inner{
    display: flex;
    width: 95%;
    height: 95px;
    margin: 0 auto;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

h1{
    width: 80%;
    height: 90px;
    line-height: 90px;        
}

h1 a{
    color: #fff;
    display: block;    
}

.toggle{
    width: 20%;
    position: relative; /*親要素にrelativeを指定する。*/
    z-index: 4;  /*sp_navより下にあると、ハンバーガーメニューを閉じることが出来ない。*/
}

.toggle::after{
    position: absolute;
    width: 100%;
    text-align: center;
    top: 60px;
    content: "menu";
    color: #fff;
}

.toggle span{
    display: block;
    position: absolute;
    left: 0;  /*絶対配置した要素の中央寄せ*/
    right: 0; /*絶対配置した要素の中央寄せ*/
    margin: auto; /*絶対配置した要素の中央寄せ*/
    width: 35px;
    border-bottom: solid 2px #fff;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
}

.toggle span:nth-child(1){
    top: 35px;
}

.toggle span:nth-child(2){
    top: 45px;
}

.toggle span:nth-child(3){
    top: 55px;
}

.toggle.active span:nth-child(1) {
    top: 45px;
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    transform: rotate(-45deg);
    border-bottom: solid 2px #fff;
}

/* 2番目と3番目のspanを45度に */
.toggle.active span:nth-child(2),
.toggle.active span:nth-child(3) {
    top: 45px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
    border-bottom: solid 2px #fff;
}

.sp_nav{
    position: fixed;
    z-index: 3;
    top: 0;
    right: 0;
    background-color: #111111;
    opacity: 0.9;
    width: 80%;
    height: 100%;
    transform: translateX(100%);
    transition: all 0.6s;
}

.sp_nav a{
    color: #fff;
}

.sp_nav.active{
    transform: translateX(0%);
}

.sp_nav_inner{
    padding-top: 95px;
    transform: translateX(100%);
    transition: all 1.2s;
    width: 80%;
    margin: 0 auto;
}

.sp_nav_inner.active{
    transform: translateX(0%);
}

.sp_nav_inner li{
    height: 5.2em;
    line-height: 1.5em;
    display: grid; /*2行の文字の上下中央寄せ。左右も中央寄せになる*/
    place-items: center; /*2行の文字の上下中央寄せ。左右も中央寄せになる*/
    text-align: center; /*1行目と2行目が左寄せになるので、それぞれ中央寄せして不揃いを解消*/
    border-bottom: 1px solid #333;
}

.nav{
    display: none;
}

.pc_mv{
    display: none;
}

.top_mv img{
    display: block;
    width: 100%;
}

h2{
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.main_inner{
    width: 95%;
    margin: 0 auto;
}

.main_inner section{
    padding-top: 55px;
}

.section_inner{
    padding-top: 30px;
}

.textlink{
    text-decoration: underline;
}

.main_inner h2{
    text-align: center;
}

.section_inner ul li{
    margin-bottom: 40px;
}

.section_inner ul li a{
    color: #111111;
}

.li_img{
    width: 100%;
    margin: 0 auto;
}

.li_img img{
    max-width: 100%;
    max-height: 100%;
}

.li_p_supplement{
    color: #71746e;
    font-size: 0.9em;
}

.fadeIn{
    opacity: 0;
    transform : translate(0, 50px);
    transition : all 1500ms;
}

.fadeIn.scrollIn{
    opacity: 1;
    transform: translate(0, 0);
}

footer{
    background-color: #111111;
    height: 25px;
    margin-top: 45px;
}

footer p{
    color: #fff;
    text-align: center;
    height: 25px;
    line-height: 25px;  /*上下の中央寄せにしたいため。*/
    letter-spacing: 0.2em;
    font-size: 0.8em;
    padding: 0;
}

.btnTop{
    position: fixed;
    right: 10px;
    bottom: 45px;
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    background-color: #000;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .5s,opacity .5s;
}

.btnTop.active{
    transform: translateY(0%);
    opacity: 1;
}

@media only screen and (min-width:480px) and (max-width:959px){
    .section_inner ul{
        display: flex;
        flex-wrap: wrap; /*この指定がないと、3分割にしているのに、4番目が入ってきてしまう。*/
    }

    .section_inner ul li{
        width: calc(100% / 2 - 1%);
    }

    .section_inner ul li:nth-child(odd){
        margin-right: 5px;
    }

    .section_inner ul li:nth-child(even){
        margin-left: 5px;
    }    
}

@media only screen and (min-width:960px) {
    body{
        font-size: 14px;
    }

    header{
        width: 100%;
        height: 100px;
        background-color: #111111;
        position: fixed;
        z-index: 100;
    }

    .header_inner{
        width: 960px;
        height: 100%;
        margin: 0 auto;
        display: flex;
    }

    h1{
        width: 30%;
    }

    .toggle{
        display: none;
    }

    .sp_nav{
        display: none;
    }

    .nav{
        width: 70%;
        display: block; /*この指定がないとPC版で非表示になってしまう。。*/
    }

    nav ul{
        display: flex;
    }

    nav ul li{
        width: calc(100% / 6);
        text-align: center;
        padding-top: 40px;
    }

    nav ul li a{
        color: #fff;
    }

    .pc_mv{
        display: block;
    }

    .sp_mv{
        display: none;
    }

    .main_inner{
        width: 960px;
        margin: 0 auto;
    }

    .main_inner section{
        padding-top: 65px;
    }

    .site_search input{
        display: block;
        width: 450px;
        margin: 0 auto;
        position: relative;
    }

    .site_search button{
        display: block;
        position: absolute;
        top: 5px;
        right: 260px;
    }

    .section_inner{
        padding-top: 35px;
    }

    .section_inner ul{
        display: flex;
        flex-wrap: wrap; /*この指定がないと、3分割にしているのに、4番目が入ってきてしまう。*/
    }

    .section_inner ul li{
        width: calc(100% / 3 - 1%); /*単なる3にすると2分割になってしまうため、-1%を入れている*/
        margin: 0 0.5% 20px;
    }

    .section_inner ul li:nth-child(3n+1){ /*●n+1の形で記述しないと効かなかった。1+n●とかではダメ*/
        margin-left: 0;
    }

    .section_inner ul li:nth-child(3n){
        margin-right: 0;
    }

    .li_img{
        width: 100%; /*画像を入れる枠の大きさを決める。横幅は親要素（li※厳密にはa）の横幅に合わせる*/ 
    }

    .li_img img{
        max-width: 100%; /*親要素（div）をはみ出さないように指定する*/
        max-height: 100%; /*親要素（div）をはみ出さないように指定する*/
    }

    .li_p{
        height: 80px;
    }

    .text_wrap{
        width: 650px;
        margin: 0 auto;
    }

    .footer_inner{
        width: 960px;
        margin: 0 auto;
    }
}