@charset "UTF-8";

body{
    font-family:'Hiragino Kaku Gothic Pro','Meiryo',sans-serif;
    font-size:15px;
    border-top:15px solid#79a1b1;
}
a{
    text-decoration:none;
    color:#333;
}

.logo{
    text-align:center;
    margin-top:40px;
    margin-bottom:30px;
}


.logo img{
    display:inline-block;
    margin-bottom:5px;
    width: 25%;
}
.w_inner{
    width: 1200px;
    margin:0 auto;
 }


header{
    height: 200px;
    padding:0px;
}

.container{
    display: flex;
}
main{
    flex: 1 1 70%;
    
    padding:20px;
}
.b_botm{
    width: 300px;
    border-bottom :5px solid #79a1b1;
    margin-bottom: 20px;
}

.flex-item{
    display:flex;
    justify-content: space-between;
}

.flex-item:not(:last-child){
    margin-bottom: 50px;
}
.flex-item:nth-child(odd){
    flex-direction: row-reverse;
}

.flex-item_img{
    width: 38%;
    align-items: center;
    padding-right: 10px;
}
.flex-item_img img{
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.flex-item_txt{
    width: 58%;
}
.flex-item_txt h2{
    font-size: 18px;
    padding: 10px 0;
    border-bottom :5px solid #333;
    margin-bottom: 50px;
}
.flex-item_txt p{
    line-height: 1.5;
}

@media screen and(max-width:767px){
    .flex-item{
        flex-direction: column;
        align-items: center;
    }
    .flex-item:nth-child(odd){
        flex-direction: column;
    }
    .flex-item_img{
        width: 100%;
        height: 250px;
        padding-bottom: 30px;
    }
    .flex-item_txt{
        width: 100%;
    }
}

/*main p{
    height:200px;
}*/
aside{
    position: sticky;
    top:0;
    height: 370px;
    flex: 1 1 30%;
    min-width: 300px;
    /*background: coral;*/
    padding: 20px;
}
ul{
    margin-top: 0px;
    list-style: none;
    border-top: 2px solid #79a1b1;
}
ul li{
    margin-top: 20px;
    border-bottom: 1px solid #ddd;
}
ul a{
    padding: 10px;
    display: block;
}
ul a:hover{
    color: #79a1b1;

}

/*footer{
    height:150px;
    background: pink;
    padding:20px;
}*/
.footer{
    margin-top: 40px;
    
}
.pp_link{
    text-align: right;
    margin-bottom: 20px;
}
.copy{
    text-align: center;
    background: #79a1b1;
    color: #fff;
    font-size: 12px;
    padding: 7px 0 3px;
}


@media screen and (max-width: 1025px){
    
    .w_inner{
        width:90%;
        margin:0 auto;
        max-width: 1200px;
     }
     .header_img{
        text-align:center;
        margin-top: 50px;
        margin-bottom:50px;  
    }
    .header_img img{
        display:inline-block;
        height:300px;
        width: 100%;
    }
    .container_service .service img{
        margin-bottom:20px;
        width: 200px;
    }
    h1{
        font-size: 27px
    }
    
    aside{
        position: sticky;
        top:0;
        height: 370px;
        flex: 1 1 30%;
        min-width: 120px;
        /*background: coral;*/
        padding: 20px;
    }
    
    
}

@media screen and (max-width: 768px){
    .w_inner{
        width:90%;
        margin:0 auto;
     }
     .logo{
        text-align:center;
        margin-top:40px;
        margin-bottom:30px;
    }
     .logo img{
        display:inline-block;
        margin-bottom:5px;
        width: 50%;
    }
     h1{
        font-size:20px;
    }
    header{
        height: 150px;
        padding:0px;
    }

    .container{
        display:block;
    }
    .footer{
        margin-top: 50px;
    }
    .pp_link{
        text-align: right;
        margin-top: 50px;
        margin-bottom: 20px;
    }
    .copy{
        text-align: center;
        background: #79a1b1;
        color: #fff;
        font-size: 12px;
        padding: 7px 0 3px;
    }

}

@media screen and (max-width: 480px) { 
    .w_inner{
        width:90%;
        margin:0 auto;
     }
     .logo{
        text-align:center;
        margin-top:40px;
        margin-bottom:30px;
    }
     .logo img{
        display:inline-block;
        margin-bottom:5px;
        width: 50%;
    }
     h1{
        font-size:20px;
    }
    header{
        height: 150px;
        padding:0px;
    }

    .b_botm{
        width: 300px;
        border-bottom :5px solid #79a1b1;
        margin-bottom: 50px;
    }

    .flex-item{
        flex-direction: column;
        align-items: center;
    }
    .flex-item:nth-child(odd){
        flex-direction: column;
    }
    .flex-item_img{
        display:contents;
        width: 100%;
        height: 250px;
        padding-bottom: 30px;
    }
    .flex-item_txt{
        width: 100%;
    }

}