@charset "UTF-8";

/*共通*/
.notice {
	background: url(../img/notice-image.jpg) no-repeat center top;
	background-size: cover;
}

/*お知らせ*/
#news .wrap {
	background: #eae9ea;
	width: 720px;
	padding: 20px;
}

#news ul::after {
	content: '';
	display: block;
	font-size: 0;
	clear: both;
}

#news li {
	width: 220px;
	height: 270px;
	float: left;
	background: #fff;
	margin-right: 10px;
}

#news li:nth-of-type(3n) {
	margin-right: 0;
}

#news li {
	position: relative;
	margin-bottom: 40px;
}

#news .date {
	margin: 20px 20px 10px;
	font-size: 1rem;
	color: #333;
	line-height: 1rem;
}

/*#news .category {
    width: 100px;
    padding: 0px 5px;
    font-size: 1rem;
    color: #fff;
    position: absolute;
    top: 150px;
    right: 20px;
    text-align: center;
    line-height: 2rem;
}*/

#news .detail {
    text-align: justify;
		word-wrap:break-word;
    margin: 0 20px 20px;
}

/*一覧*/
#news-list .inner div{
}
#news-list .inner div:after{
	content: '';
	display: block;
	font-size:0;
	clear: both;
}

#news-list article {
	position: relative;
	width:230px;
    height:280px;
	margin-right: 10px;
	float:left;
	background: #fff;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}

#news-list a:last-of-type article{
	margin-right: 0;
}

#news-list .news-thumb{
    width:100%;
    height:140px;
    background-size:cover;
}

#news-list p.date{
	margin: 20px 20px 10px;
	font-size:1rem;
	color:#333;
	line-height: 1rem;
}
#news-list div.cat{
	margin: 0 20px 10px;
	position: relative;
}
#news-list div.os-cat{
	padding: 0px 5px;
	font-size:1rem;
	color:#fff;
    background: #c9395f;
  float: left;
		margin: 0 20px 10px;
	text-align: center;
	line-height: 2rem;
    margin-right: 5px;
}

#news-list div.cat::after{
	content: '';
    display: block;
    font-size: 0;
    clear: both;
}

#news-list p.category{
	padding: 0px 5px;
	font-size:1rem;
	color:#fff;
  float: left;
	top:-5px;
	left:0;
	text-align: center;
	line-height: 2rem;
    margin-right: 5px;
}
#news-list p.cat-junior{
    background: #c06878;
}
#news-list p.cat-senior{
    background: #606a8e;
}
#news-list p.cat-guardians{
    background: #b8b663;
}
#news-list p.cat-openschool{
    background: #a27c3b;
}
#news-list p.cat-teacher {
    background: #678e24;
}
#news-list p.cat-important {
    background: #c9395f;
}
#news-list p.detail{
    clear: both;
	text-align: justify;
	margin: 0 20px 20px;
    line-height: 1.8rem;
}

#information-detail img{
    width:auto;
    height:auto;
}





/* 640pxまでの幅の場合に適応される */
@media screen and (max-width: 640px) {

/*お知らせ*/
#news .wrap {
	width: 100%;
}
#news-list .news-thumb{
    height:100px;
}
  
#news-list a article{
	position: relative;
	width: 49%;
	height: 280px;
	margin-right: 2%;
	margin-bottom: 2%;
	float:left;
	background: #fff;
}
#news-list a article::after{
	content: '';
	display: block;
	font-size:0;
	clear: both;
}
#news-list a:nth-of-type(even) article{
	margin-right: 0;
}
#news-list .tabBox article {
	position: relative;
	width: 49%;
	height:auto;
	margin-right: 2%;
	margin-bottom: 20px;
	float: left;
	background: #fff;
}
#news-list .tabBox article:nth-of-type(even) {
	margin-right: 0;
}
#news-list a article img {
	display: block;
	width:100%;
	height: auto;
	max-width: 100%;
}	
#news-list p.date {
	float: none;
	margin: 10px 10px 5px;
}	
#news-list p.category{
	position: static;
	float: left;
	width: auto;
  margin: 0px 2px 2px 0;
}
#news-list p.category:last-of-type{
	margin-right: 0;
}
    #news-list div.cat{
    margin: 0 10px 5px;
}
#news-list p.detail{
	float: left;
	text-align: justify;
	margin: 5px 10px 10px;
	word-break:break-all
}
    
    
    
    
    
#news li {
	width: 49%;
	height: 270px;
	float: left;
	background: #fff;
	margin-right: 2%;
}

#news li:nth-of-type(3n) {
	margin-right: 2%;
}	
	
#news li:nth-of-type(2n) {
	margin-right: 0;
}

#news li {
	position: relative;
	margin-bottom: 20px;
}
	
#news .date {
	margin: 10px;
}

#news .category {
	width: 90%;
	margin: 3px auto 10px;
	position: static;
}
	
#news .detail {
	text-align: justify;
	word-wrap:break-word;
	margin: 0 10px 10px;
}

}
