@charset "utf-8";

/* news.css */

.h1_bg.news {
    background-image: url(/wp-content/themes/conexio/images/h1_news.jpg);
}

a img {
    transition: all 0.3s;
}

a:hover img {
	opacity: 0.6;
}

figure a {
	display: block;
}

.aligncenter {
	display: block;
    margin: 0 auto 20px;
	text-align: center;
}

.alignright {
	display: block;
	float: none;
	margin-left: auto;
	margin-bottom: 20px;
    text-align: right;
}

.alignleft {
	display: block;
	float: none;
	margin-right: auto;
	margin-bottom: 20px;
    text-align: left;
}

.news .content_area p.news_ttl,
.archive .content_area p.news_ttl {
	margin-top: 2px;
}

.news .content_area ul,
.archive .content_area ul {
	padding-left: 0;
}

.news .news_tab,
.archive .news_tab {
	margin: 0 auto;
}

/* tab */
.news_tab {
    display: flex;
    flex-wrap: wrap;
    /*gap: 10px;*/
    list-style: none;
    padding: 0;
}

.news_tab .tab_item {
    cursor: pointer;
    padding: 18px 20px;
    transition: all 0.3s;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.5;
    color: #222;
    border-left: 1px solid #EEEEEE;
    min-width: 190px;
    display: flex;
    justify-content: center;
    transition: all ease 0.2s;
}
.news_tab .tab_item:last-child{
	border-right: 1px solid #EEEEEE;
}

.news_tab .tab_item:hover .tab_link {
    color: #0077C0;
}

.news_tab .tab_item.active {
    color: #0077C0;
}

.news_tab .tab_item .tab_link {
    text-decoration: none;
    display: inline-block;
    color: inherit;
	transition: all ease 0.2s;
}

.select_box_in {
    display: flex;
    align-items: center;
	gap: 10px;
}

.select_item.cate_select {
	display:none;
}

.select_name {
    font-size: 1.6rem;
}

.select_box_in:first-child .select_name{display:none;}
.select_item{
	position:relative;
}
.select_item.cate_select{display:none;}

/*
.select_item::after {
    position: absolute;
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transform: rotate(45deg);
    top: 0;
    bottom: 0;
    right: 10px;
    margin: auto;
}*/
/*
.select_item_in {
	display:block;
	width:100%;
	padding:12px 40px 13px 12px;
	background:#fff;
	color:#333 !important;
	font-family:var(--noto);
	font-size:1.6rem;
	letter-spacing:1.28px;
	line-height:2.4rem;
	webkit-appearance: none;
	appearance: none;
	cursor:pointer;
}*/

.select_item_in{
	display: block;
	width: 100%;
	padding: 14px 40px 14px 25px;
	margin-left: 15px;
	background: #fff;
	color: #0077c0 !important;
	font-family: var(--noto);
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.5;
	webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	border: 1px solid #CCCCCC;
	border-radius: 26px;
	min-width: 180px;
}

.news_wrap {
    max-width: 1140px;
    padding: 0 20px 80px;
    margin: auto;
}

.news_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.news_head {
    margin: 0;
    text-align: center;
	font-size: 2.8rem;
	font-weight: bold;
}

.select_wrap {
    display: none;
}

.news_cat_list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 10px 0 0 0;
}

.news_cat_item {
	position: relative;
    list-style: none;
    font-size: 2.0rem;
	font-weight: bold;
    line-height: 2.9rem;
}

.news_cat_item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 1px;
    height: 20px;
    background: #ccc;
}

.news_cat_item:last-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 1px;
    height: 20px;
    background: #ccc;
}

.news_cat_link {
    display: block;
    position: relative;
	margin: 0 30px;
    color: #333 ;
    text-decoration: none;
    cursor: pointer;
	opacity: .5;
}

.news_cat_link:hover, .on .news_cat_link {
	color: #0C91B1;
    opacity: 1;
}

.news_cat_link::before {
    background: #4BBCD0;
    bottom: -8px;
    content: "";
    display: block;
    height: 4px;
    left: 0;
    position: absolute;
    transition: all 0.2s ease;
    width: 0;
    z-index: 10;
}

.news_cat_link:hover::before, .on .news_cat_link::before {
    width: 100%;
}

.news_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    padding: 0;
    margin-bottom: 50px;
}

.news_item {
	list-style: none;
}
.news_thumb {
    position: relative;
    padding-bottom: 75%;
    margin-bottom: 15px;
    overflow: hidden;
}
.news_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;    
    transition: transform 0.3s ease;
}

.news_txt_in {
	transition: all 0.3s;
}

a:hover .news_thumb img {
    transform: scale(1.05);
	opacity: 1;
}

a:hover .news_txt_in {
	color: #0077C0;
}

a:hover .news_cate {
    border: 1px solid #0077C0;
    color: #0077C0;
}

.news_date {
	font-weight: 500;
	margin-right: 10px;
    font-size: 1.4rem;
    line-height: 1.2rem;
}

.news_title {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.4;
	margin:10px 0 0;
}

.news_item .news_title {
    font-size: 1.8rem;
}

.news_title:before{
	content:none;
}

.news_cate {
    border: 1px solid #0077C0;
	padding: 3px 8px 4px;
    border-radius: 9999px;
    color: #0077C0;
    font-size: 1.3rem;
    line-height: 2.2rem;
    text-align: center;
}

.news_link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #333 !important;
    text-decoration: none !important;
    transition: border 0.3s;
}

.news_wrap .link_btn {
	text-align: center;
}


/**** single.php ******/
#news_t {
	display: flex;
	flex-wrap: wrap;
    align-items: center;
	margin: 60px auto 0;
}

#news_s {
	border-bottom: 1px solid #ddd;
	margin: 60px 0;
	padding-bottom: 50px;
}

#news_s>*:first-child {
	margin-top: 0;
}

#news_s>*:last-child {
	margin-bottom: 0;
}

#news_retop {
	display: flex;
	justify-content: center;
}

#news_retop a {
    display: inline-block;
    position: relative;
    max-width: 273px;
    width: 100%;
    padding: 20px 50px 20px 30px;
    background: #0077C0;
    border: 1px solid #0077C0;
    border-radius: 50px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none !important;
    transition: background 0.3s, border 0.3s, color 0.3s;
    text-align: center;
}

#news_retop a:hover {
    background: #fff;
    border: 1px solid #0077C0;
    color: #0077C0;
}

#news_retop a:after {
    content: '';
    position: absolute;
    display: block;
    background: url(../images/arrow_r_white.svg);
    background-repeat: no-repeat;
    background-size: cover;
    width: 17px;
    height: 13px;
    right: 20px;
    top: calc(50% - 6px);
    transition: background 0.3s;
}

#news_retop a:hover::after {
    background: url(../images/arrow_r_blue.svg);
    animation: icon-arrow 0.4s cubic-bezier(0.29, 0.65, 0.62, 1) forwards;
}
.news_link[target="_blank"] {
    background: none;
    padding: 0;
}

a.news_link[target="_blank"] .news_title::after{
	content: '';
    display: inline-block;
    margin-left: 3px;
    width: 14px;
    height: 14px;
    background: url(../images/popup.svg) no-repeat center right;
    background-size: contain;
}

a.news_link[href$=".pdf"] .news_title::after {
  content: '';
  display: inline-block;
  margin-left: 3px;
  width: 14px;
  height: 14px;
  background: url('../images/icon_pdf.svg') no-repeat center center;
  background-size: contain;
}
/*
#news_s::after{
  content:"";
  display:block;
  clear:both;
}

#news_s > p:has(>img) {
  float:left;
}

#news_s > p:nth-of-type(1){ margin-right:20px; }

#news_s > p:nth-of-type(n+3){
  clear: both;
  width: 100%;
}
*/
/*#news_s > p:has(>img) {
  display:inline-block;
}*/
#news_s .news-img {
	display: inline-block;
}
#news_s .news-img {
  	width: calc(50% - 10px);   /* 片側分だけ引く（2カラムで合計20pxになる） */
  	padding-left: 10px;
  	padding-right: 10px;
	margin-bottom:10px;
  	box-sizing: border-box;
}

#news_s .news-img img {
  	width: 100%;
  	height: auto;
  	display: block;
}


@media screen and (max-width: 1100px) {
	.news_tab .tab_item{
		min-width:150px;
	}
}

@media screen and (max-width: 767px) {
	
	#news_s .news-img {
		display: block;
		width: 100%;
		padding:0;
	  }

	.news .news_tab,
	.archive .news_tab {
		/*margin: 30px auto 20px;*/
		display: none;
	}

	/* tab */

	.content_area .news_tab {
		justify-content: inherit;
	}

	.content_area .news_tab .tab_item {
		width: 50%;
		text-align: center;
		margin-bottom: 15px;
		margin-right: 0;
	}

	.content_area .news_tab .tab_item:nth-child(2n)::after {
		content: none;
	}

	.content_area .news_tab .tab_item:not(:last-child)::after {
		right: 0;
	}

	.content_area .news_tab li .tab_link {
		margin-right: 0;
	}

	.news_wrap {
		padding: 0 20px 60px;
	}
	
	.news_area {
        padding: 60px 20px 100px;
    }
	
	.news_head {
		font-size: 2.4rem;
	}
	
	.select_wrap {
        margin: 20px 0 20px;
        position: relative;
        display: block;
    }
	
	.select_news_tab {
        font-size: 1.3rem;
        line-height: 1.5rem;
        color: #333;
        border: 1px solid #ccc;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        outline: none;
        cursor: pointer;
        width: 100%;
        padding: 16px 18px;
        background: transparent;
    }

	.select_box {
		width:auto;
		/*margin-top: 35px;*/
	}
	.select_box_in{
		display:flex;
		align-items:center;
		/*max-width:400px;*/
		margin:auto;
	}

	
	.select_name {
		display:block!important;
        width: 75px;
        margin-bottom: 10px;
        text-align: right;
    }
	
	.select_item{
		width: calc(100% - 90px);
		margin-bottom: 10px;
	}
	.select_item.cate_select, .select_item.year_select{
		display:block;
		border:none;
	}
	/*
	.select_item::after{
		position: absolute;
        content: '';
        width: 0;
        height: 0;
        border-style: solid;
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
        border-top: 9px solid #0077c0;
        border-bottom: 0;
        margin: auto;
		top:0;
		right:20px;
		transform:unset;
	}*/
	.select_item_in{
		display: block;
        width: 100%;
		padding: 12px 40px 12px 25px;
        background: #fff;
        color: #0077c0 !important;
        font-family: var(--noto);
        font-size: 1.6rem;
        font-weight: 500;
        line-height: 1.5;
        webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        border: 1px solid #CCCCCC;
        border-radius: 26px;
       /* margin-top: 20px;*/
	}

	.post_search_box{margin-bottom:35px;}
	
	
	/*.select_wrap::after {
        position: absolute;
        content: '';
        width: 8px;
        height: 8px;
        border-right: 1px solid #222;
        border-bottom: 1px solid #222;
        transform: rotate(45deg);
        top: calc(50% - 5px);
        right: 17px;
        z-index: 1;
    }*/
	
	.news_top {
        display: block;
        margin-bottom: 30px;
    }
	
	.news_item {
        margin-bottom: 30px;
    }
	
	.news_link {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
	
	.news_list {
        margin-top: 30px;
		margin-bottom: 20px;
        display: block;
    }
	
	.news_list li {
        position: relative;
        padding-bottom: 0;
        width: 100%;
        margin-right: 0;
    }
	
	.news_list li a {
        display: flex;
	    align-items: flex-start;
    }
	
	.news_thumb {
        width: 150px;
        margin-right: 13px;
        padding-bottom: 90px;
	    margin-bottom: 0;
    }
	
	.news_txt {
        width: calc(100% - 113px);
    }
	
	.news_title {
        font-size: 2.2rem;
        margin-bottom: 0;
	    margin-top: 5px;
    }

	.news_item .news_title {
        font-size: 1.6rem;
		line-height: 1.2;
    }
	
	.news_date {
        font-size: 1.1rem;
        margin-right: 5px;
        margin-top: 1px;
    }
	
	.news_cate {
        font-size: 1.1rem;
        padding: 3px 8px 2px;
    }


	/**** single.php ******/

	#news_t {
		margin: 30px auto 0;
	}

	#news_s {
		padding: 0 0 20px 0;
		margin: 0 0 20px 0;
	}
	
	#news_s > p:nth-of-type(1) {
    	margin-right: 0;
	}

}

