@charset "utf-8";
/* CSS Document */

/* news
--------------------------------------------*/
#index_contents #news {
    padding: 3rem 2rem;
	background-image: linear-gradient(rgba(96,96,141,0.75), rgba(96,96,141,0.75)), url("../img/index/slide1.jpg");
	background-size: cover; /* 画像が要素全体を覆うように拡大縮小 */
  	background-position: center center; /* 画像を中央に配置 */
  	background-repeat: no-repeat; /* 画像の繰り返しをしない */
  	color: #fff;
}

#news .category{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 0 0 2rem;
    line-height: 1.4rem;
	background: #fff;
	border: 2px solid var(--gray-color3);
}

#news .category button{
    position: relative;
    /*margin: 0 0.2rem;*/
    text-decoration: none;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    color: var(--black-color);
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
}

#news .category button:not(:last-of-type):nth-of-type(n+1) {
	border-right: 2px solid var(--gray-color3);
}

#news .category button:not(:last-of-type):nth-of-type(n+1):focus {
	border-right: 2px solid var(--blue-color);
}

#news .category button span {
	padding: 1.5rem 1rem 1.5rem 3.5rem;
	font-size: 0.9rem;
}

#news .category button:focus{
    outline: 3px var(--black-color) solid;
	z-index: 2;
}
    
#news .category button:after{
    position: absolute;
    content: '';
    background:  url("../img/common/arrow01.svg") no-repeat;
	background-size: contain;
    width: 10px;
    height: auto;
    inset:85% 0 0;
    margin: auto;
}

#news .category button:nth-child(1) span{background:  url("../img/common/icon_news01.svg") no-repeat;background-position: left center;}
#news .category button:nth-child(2) span{background:  url("../img/common/icon_news02.svg") no-repeat;background-position: left center;}
#news .category button:nth-child(3) span{background:  url("../img/common/icon_news03.svg") no-repeat;background-position: left center;}

#news .category button:nth-child(1):hover span,
#news .category button:nth-child(1).tab.active span{background: var(--blue-color) url("../img/common/icon_news01_on.svg") no-repeat;background-position: left center;}
#news .category button:nth-child(2):hover span,
#news .category button:nth-child(2).tab.active span{background: var(--blue-color) url("../img/common/icon_news02_on.svg") no-repeat;background-position: left center;}
#news .category button:nth-child(3):hover span,
#news .category button:nth-child(3).tab.active span{background: var(--blue-color) url("../img/common/icon_news03_on.svg") no-repeat;background-position: left center;}

#news .category button:nth-child(1) span,
#news .category button:nth-child(2) span,
#news .category button:nth-child(3) span,
#news .category button:nth-child(1):hover span,
#news .category button:nth-child(1).tab.active span,
#news .category button:nth-child(2):hover span,
#news .category button:nth-child(2).tab.active span,
#news .category button:nth-child(3):hover span,
#news .category button:nth-child(3).tab.active span {
	background-size: 3rem;
}

#news .category button.tab.active,
#news .category button:hover,
#news .category button:focus,
#news .category button:active{
    background-color: var(--blue-color);
    /*border-radius: 0.5rem;*/
	color: #fff;
}

#news .category button:last-of-type {
	border-bottom: none;
}


#index_contents #news .list {
  display: none;
}
#index_contents #news .list.active {
  display: block;
}

#news .list > ul{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-gap: 2rem;
    margin: 0 0 2rem;
}

@media screen and (max-width : 1200px){
	#news .list > ul {
		grid-template-columns: repeat(2,1fr);
	}
}

#news .list ul li a{
    position: relative;
    display: block;
    padding: 1.5rem;
	border-radius: 8px;
    text-decoration: none;
    color: var(--black-color);
    height: 100%;
	background-color: #fff;
	border: 2px solid var(--gray-color2);
}

#news .list ul li a:after{
	position: absolute;
    content: "";
    background: url(../img/common/arrow02_g.svg);
    width: 2rem;
    height: 2rem;
    top: 1rem;
    right: 1rem;
}

#news .list ul li a:hover{
    background: var(--blue-color2);
	border: 2px solid var(--blue-color);
}

#news .list ul li a:hover:after{
    background: url("../img/common/arrow02_b.svg");
}


#news .list ul li a span.date{
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
}

#news .list ul li a span.text{
    display: block;
    margin: 1rem 0;
}

#news .list ul li a span.text span{
    font-size: 1rem;
    font-weight: bold;
}

#news .list ul li a ul {
	display: flex;
	column-gap:1rem;
	row-gap:0.5rem;
	flex-wrap: wrap;
}

#news .list ul li a ul li{
    display: inline-block;
    padding:0.5rem 0.5rem 0.5rem 2.8rem;
    font-size: 0.9rem;
	border: 2px solid #FFDB99;
}

.cate01{background: url("../img/common/icon_news02.svg") no-repeat;background-position: left 0.5rem center; background-size: 30px;}/*病院より*/
.cate02{background: url("../img/common/icon_news03.svg") no-repeat;background-position: left 0.5rem center; background-size: 30px;}/*採用情報*/	

@media screen and (max-width : 959px){
#index_contents #news {
    padding: 3rem 1rem;
}
	
#news .category{
    grid-template-columns: repeat(2, 1fr);
}
	
	#news .category button:not(:last-of-type):nth-of-type(n+1) {
		border-right: none;
	}
	
	#news .category button:not(:last-of-type) {
		border-bottom: 2px solid var(--gray-color3);
	}
	
	#news .category button:nth-of-type(odd) {
	border-right: 2px solid var(--gray-color3)!important;
	}

	#news .category button:not(:last-of-type):focus {
	border-bottom: 2px solid var(--blue-color);
	}
	
	#news .category button:nth-of-type(odd):focus {
		border-right: 2px solid var(--blue-color)!important;
	}

	
	#news .category .tab.active,
	#news .category button:hover,
	#news .category button:focus,
	#news .category button:active{
    background-color: var(--blue-color);
	color: #fff;
	/*border: none;*/
}

	#news .list > ul{
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
	}
	
	#news .category button:nth-child(1) span,
	#news .category button:nth-child(2) span,
	#news .category button:nth-child(3) span,
	#news .category button:nth-child(1):hover span,
	#news .category button:nth-child(1).tab.active span,
	#news .category button:nth-child(2):hover span,
	#news .category button:nth-child(2).tab.active span,
	#news .category button:nth-child(3):hover span,
	#news .category button:nth-child(3).tab.active span
	{
	background-size: 2.6rem;
	}
	
	#news .category button:after {
		inset: 80% 0 0;
	}
	
	#news .category button span {
		padding:1.2rem 1rem 1.2rem 3rem;
	}
	
}

/*一覧ページ*/
#news.general .list{
    grid-template-columns: 1fr;
}

.news_cancer .list{
    display: grid;
    grid-gap: 1rem;
}
.news_cancer .list li a {
    padding: 1rem 3.5rem 1rem 1rem;
}

