body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6,
pre, code, form, figure, fieldset, legend, input, textarea,
p, blockquote, th, td{
    margin: 0;
    padding: 0;
}

*, *::before, *::after{
    box-sizing: border-box;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    outline: none;
    color: #000;
}

dl, dt, dd{
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 400;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.8;
    color: #333;
    background-color: #f4f5f7;
}

header{
    padding: 1.5rem;
    text-align: center;
    background-color: #fff;
    background-image: url(../images/header_bg.png);
}

.logo{
    font-size: 4rem;
    display: inline-flex;
    margin: 0 auto;
    align-items: center;
}

.logo img{
    width: 100%;
    max-width: 418px;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

footer{
    font-size: 1.4rem;
    padding: 1.5rem;
    text-align: center;
    background-color: #fff;
}

.wrapper{
    display: grid;
    grid-template-columns: 860px 376px;
    column-gap: 20px;
    margin: 1.5rem auto;
    flex-grow: 1;
}

main{
    padding: 3.5rem 3rem;
    background-color: #fff;
}

aside{
    padding: 2.5rem;
    background-color: #fff;
}

h2.list_title{
    font-size: 1.4rem;
    font-weight: normal;
}

h2.article_title{
    font-size: 2.6rem;
    margin: 1.3rem 0;
}

h3{
    padding: 1.2rem;
    background-color: #f5f6f7;
    border-radius: 0.2rem;
}

main h3{
    font-size: 2.4rem;
    margin-bottom: 3.9rem;
}

aside h3{
    font-size: 2.1rem;
    margin-bottom: 1.6rem;
}

h4{
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    padding: 1.2rem 2rem;
    border-left: 7px solid #888;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

p, ul, button{
    font-size: 1.8rem;
    margin-bottom: 3.2rem;
}

.side_wrapper{
    padding: 0.5rem;
}

aside p{
    margin: 0.5rem 0;
}

aside img{
    width: 100%;
    max-width: 375px;
    margin: 0.5rem 0;
}

.follow{
    margin-bottom: 3rem;
}

.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eye_catch{
    width: 100%;
    max-width: 400px;
}

/*1255px以下*/
@media screen and (max-width: 1255px){
    .wrapper{
        grid-template-columns: 1fr 30%;
        margin: 1.5rem 0.5%;
    }
}

/*1023px以下*/
@media screen and (max-width: 1023px){
    .wrapper{
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }

    main{
        order: 0;
    }

    aside{
        order: 1;
    }

    .logo a {
        flex-direction: column;
        align-items: center;
    }

    main h3{
        font-size: 2rem;
        margin-bottom: 3.2rem;
    }

    h4{
        font-size: 1.8rem;
        padding: 1rem;
        margin-bottom: 2.9rem;
        line-height: 2.2rem;
    }

    p, ul, button{
        font-size: 1.5rem;
        margin-bottom: 2.8rem;
    }

    .eye_catch{
        width: 100%;
    }
}