@charset "UTF-8";

*{
    margin: 0;
    padding: 0;
    line-height: 1;
}

ul{
    list-style: none;
}
a{
    text-decoration: none;
}

img{
    vertical-align: bottom;
}

/* ここまでリセットCSS----------------------- */


.container{
    max-width: 960px;
    padding: 20px;
    margin: 0 auto;
}


/* header----------------------- */
.header{
    background: url(../img/banner.jpg) no-repeat 0 0;
    height: 150px;
    /* padding: 40px 0 40px 20px; */
    margin-bottom: 30px;
}

.header>h1,.header>p{
    color: #fff;
    padding-left: 20px;
}

.header>h1{
    padding-top: 50px;
    margin-bottom: 10px;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
}

.header>p{
    font-family: 'Shippori Mincho', serif;
    font-weight: 500;
}


/* nav----------------------- */

.g-nav{
    background-color: #fdc;
    margin-bottom: 40px;
}

/* 横並びの設定-------------------- */
.g-nav ul{
    display: flex;
    justify-content: space-between;
}

.g-nav li{
    width: 20%;
    height: 50px;
    line-height: 50px;
    border-right: 1px solid #900;
    /* box-sizing: border-box; */
}

.g-nav li:first-of-type{
    border-left: 1px solid #900;
}

.g-nav a{
    display: block;
    line-height: 50px;
    text-align: center;
    color: #900;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
}

.g-nav a:hover{
    color: #fff;
    background-color: #900;
}

.main{
    margin-bottom: 50px;
}

/* section----------------------- */

.contents>h2{
    background-color: #900;
    color: #fff;
    font-family: 'Shippori Mincho', serif;
    font-weight: 700;
    padding: 10px 0 10px 10px;
    margin-bottom: 15px;
}

.contents>p{
    line-height: 1.7;
    margin-bottom: 30px;
    overflow: hidden;
}

.contents img{
    float: left;
    margin-right: 30px;
}


/* footer----------------------- */

.footer{
    background-color: #900;
    height: 100px;
}

.footer>p{
    text-align: center;
    color: #fff;
    line-height: 100px;
}


/* メディアクエリ----------------------------------- */
@media (max-width:960px){

    .container{
        max-width: 100%;
        padding: 0;
    }
    
    
    /* header----------------------- */
    .header{
        background: url(../img/banner.jpg) no-repeat center 0;/* position0 0 だと写真が見えないから左右方向centerに */
        height: 150px;
        /* padding: 40px 0 40px 20px; */
        margin-bottom: 30px;
    }
    
    /* .header>h1,.header>p{
        color: #fff;
        padding-left: 20px;
    } */
    
    .header>h1{
        padding-top: 30px;
        margin-bottom: 10px;
        font-family: 'Shippori Mincho', serif;
        font-weight: 700;
    }
    
    .header>p{
        /* font-family: 'Shippori Mincho', serif;
        font-weight: 500; */
        line-height: 1.7;/* 改行の可能性があるから追加 */
    }
    
    
    /* nav----------------------- */
    
    /* .g-nav{
        background-color: #fdc;
        margin-bottom: 40px;
    } */
    
    /* 横並びの設定-------------------- */
    .g-nav ul{
        display: block;
    }
    
    .g-nav li{
        width: 100%;
        /* height: 50px;
        line-height: 50px; */
        border-right: 0;
        border-bottom: 1px solid #900;
    }
    
    .g-nav li:first-of-type{
        border-left: 0;
        border-top: 1px solid #900;
    }
    
    .g-nav a{
        display: block;
        /* line-height: 50px;
        text-align: center;
        color: #900; */
    }
    
    /* .g-nav a:hover{
        color: #fff;
        background-color: #900;
    } */
    
    /* .main{
        margin-bottom: 50px;
    } */
    
    /* section----------------------- */
    
    .contents>h2{
        text-align: center;
        /* background-color: #900;
        color: #fff;
        font-family: 'Shippori Mincho', serif;
        font-weight: 700;
        padding: 10px 0 10px 10px;
        margin-bottom: 15px; */
    }
    
    .contents>p{
        padding: 0 20px;/* テキスト開始位置調整 */
        /* line-height: 1.7;
        margin-bottom: 30px;
        overflow: hidden; */
    }
    
    .contents img{
        float: none;
        margin-right: 0;
        margin: 0 auto 15px;
        display: block;
    }
    
    
    /* footer----------------------- */
    
    .footer{
        background-color: #900;
        height: 100px;
    }
    
    .footer>p{
        text-align: center;
        color: #fff;
        line-height: 100px;
    }

}/* media end-------------------------------------- */