:root {
	--rdsearch-bg: #f8f8f8;
}
.p-rdSearch {
	margin: 24px 0 40px;
}

.p-rdSearch__actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 18px;
}

.c-rdSearchBtn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 330px;
	height: 50px;
	border-radius: 8px;
	border: none;
	padding-left: 20px;
	background-color: var(--rdsearch-bg);
	color: var(--color-nkblue);
	font-weight: bold;
	font-size: 18px;
	line-height: 1.4;
	text-decoration: none;
	box-sizing: border-box;
}

.c-rdSearchBtn--filter {
	cursor: pointer;
}


.c-rdSearchBtn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 15px;
}

.c-rdSearchBtn__icon img {
	display: block;
	width: 34px;
	height: 34px;
}


.c-rdSearchKeyword {
	width: 460px;
	height: 50px;
}

.c-rdSearchKeyword__inner {
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--rdsearch-bg);
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 0 40px 0 14px;
	box-sizing: border-box;
}
.c-rdSearchKeyword__inner:focus-within {
	border-color: var(--color-nkblue);
}
.c-rdSearchKeyword__inner:focus-within .c-rdSearchKeyword__label {
	opacity: .65;
}
.c-rdSearchKeyword__input {
	flex: 1;
	height: 100%;
	border: none;
	background: transparent;
	color: #333;
	font-size: 1rem;
	padding: 0 0 0 6px;
	outline: none;
	border: none;
}

.c-rdSearchKeyword__label {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: var(--color-nkblue);
	font-weight: bold;
	font-size: 18px;
	white-space: nowrap;
}
.c-rdSearchKeyword__clear {
	position: absolute;
	right: 54px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	display: none;
	color: #999;
}

.c-rdSearchKeyword__submit {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.c-rdSearchKeyword__submit img {
	display: block;
	width: 34px;
	height: 34px;
}
@media screen and (max-width:1200px) {
	.p-rdSearch__panel {
		background-color: #aa0000;
		margin-left: -20px;
		margin-right: -20px;
		padding-left: 20px;
		padding-right: 20px;
	}
	.c-rdSearchKeyword {
		width: 100%;
	}
}





/*  開閉パネル  */
.p-rdSearch__panel {
	display: none;
	padding: 24px 32px;
	border: none;
	background-color: var(--rdsearch-bg);
}
.p-rdSearch.is-openFilter .p-rdSearch__panel--filter {
	display: block;
}
/* ボタンの下側の角丸を消して一体化 */
.p-rdSearch.is-openFilter .c-rdSearchBtn--filter {
	position: relative;
	background-color: var(--rdsearch-bg);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.p-rdSearch.is-openFilter .c-rdSearchBtn--filter::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 28px;
	background-color: var(--rdsearch-bg);
	pointer-events: none;
}

.p-rdSearch__cols {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}
/* 幅比 1 : 3 */
.p-rdSearch__col--pub {
	flex: 0 0 180px;
}
.p-rdSearch__col--cat {
	flex: 1 1 auto;
}
.p-rdSearch__divider {
	font-weight: bold;
	align-self: stretch;
	border-left: 2px dotted #999;
}
.c-checkList--cat {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 4px;
}
@media screen and (max-width: 1200px) and (min-width: 900px) {
	.p-rdSearch__col--pub { flex: 0 0 180px; }
	.p-rdSearch__col--cat { flex: 1 1 auto; }
	.c-checkList--cat {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
		row-gap : 4px;
	}
}
/* 横幅が小さいときは横罫線 */
@media screen and (max-width: 900px) {
	.p-rdSearch__cols {
		flex-direction: column;
	}
	.p-rdSearch__divider {
		border-left: none;
		border-top: 1px dotted #999;
		margin: 12px 0;
	}
	.c-checkList--cat {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 62px;
		row-gap: 4px;
		margin: 0 auto;
	}
}
@media screen and (max-width: 640px) {
	.c-checkList--cat {
		display: block;
	}
}

.p-rdSearch__colTitle {
	font-size: 1.1rem;
	margin: 0 0 8px;
	font-weight: bold;
}

.c-checkList {
	list-style: none;
	margin: 0;
	padding: 0;
}
.c-checkList li {
	margin: 4px 0;
}
.c-checkList label {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	cursor: pointer;
}

.c-checkLabel {
	display: inline-flex;
	align-items: center;
	gap: .25em;
}
.c-checkCount {
	color: var(--color-nkblue);
	font-size: .95em;
}

/* 下部ステータス行 */
.p-rdSearch__status {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 18px;
	padding-top: 12px;
	font-size: .95rem;
	line-height: 30px;
}
.p-rdSearch__statusText {
	margin: 0;
	font-weight: bold;
	line-height: 30px;
}
.p-rdSearch__clearBtn {
	display: inline-flex;
	align-items: center;
	margin-right: 36px;
	padding: 0;
	color: var(--color-nkblue);
	font-size: 18px;
	line-height: 30px;
	text-decoration: underline;
	background: none;
	border: none;
	cursor: pointer;
}


.p-rdSearch.is-openFilter .p-rdSearch__panel--filter {
	display: block;
}
/* 
@media (hover:hover) and (pointer:fine) and (min-width:1201px) {
	#RdSearch:hover .p-rdSearch__panel--filter {
		display: block;
	}
}
 */
@media screen and (min-width:1201px) {
	.p-rdSearch__actions {
		flex-wrap: wrap;
		align-items: flex-start;
	}
	.p-rdSearch__actions > form {
		flex: 0 0 auto;               /* ボタン＋入力は横並び */
	}
	.p-rdSearch__panel--filter {
		flex-basis: 100%;
		order: 2;
	}
}
@media screen and (max-width:1200px) {
	.p-rdSearch__actions {
		flex-direction: column;
		align-items: stretch;
	}
	.c-rdSearchBtn,
	.c-rdSearchKeyword {
		width: 100%;
	}
	.p-rdSearch__cols {
		grid-template-columns: 1fr;
	}
	.p-rdSearch__panel--filter {
		margin-top: 8px;
	}
	.p-rdSearch.is-openFilter .p-rdSearch__panel--filter {
		display: block;
	}
}

@media screen and (max-width:640px) {
	.p-rdSearch__clearBtn {
		margin-right: 8px;
	}

}









/* ---------------------------------------
   研究成果 検索結果タイル
---------------------------------------- */

/* 一覧（PC: 3列 / 900-1199px: 2列 / SP: 1列） */
.c-rdResults {
	list-style: none;
	margin: 24px 0 40px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 360px);
	column-gap: 50px;
	row-gap: 64px;
	justify-content: center;
}

/* 900-1199px: 2列 */
@media screen and (max-width: 1199px) and (min-width: 900px) {
	.c-rdResults {
		grid-template-columns: repeat(2, 360px);
	}
}

/* 〜899px: 1列（横幅は360〜760pxで可変） */
@media screen and (max-width: 899px) {
	.c-rdResults {
		grid-template-columns: minmax(0, 1fr);
		justify-content: center;
	}
}

/* ---------------------------------------
   カード本体
---------------------------------------- */
.c-rdCard {
	width: 360px;
	height: 700px; /* 画像282px + 本文エリア */
	--rdCardBg: #fff;
	background: var(--rdCardBg);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	box-sizing: border-box;
}

.c-rdCard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* SP時のサイズ変更（1列） */
@media screen and (max-width: 899px) {
	.c-rdCard {
		width: 100%;
		max-width: 760px;
		min-width: 360px;
		height: auto;
		margin: 0 auto;
	}

}

/* ---------------------------------------
   サムネイルエリア
---------------------------------------- */

.c-rdCard__thumb {
	position: relative;
	width: 100%;
	height: 282px;
	overflow: hidden;
}

.c-rdCard__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* デフォルトはPC用を表示 */
.c-rdCard__img--sp {
  display: none;
}

/* SPではワイド画像に差し替え */
@media screen and (max-width: 899px) {
  .c-rdCard__img--pc {
    display: none;
  }
  .c-rdCard__img--sp {
    display: block;
  }
}

/* 画像左上のカテゴリラベル */
.c-rdCard__tags {
	position: absolute;
	top: 18px;
	left: 18px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.c-rdTag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	min-height: 24px;
	border-radius: 12px;
	background-color: var(--color-nkblue);
	color: #fff;
	font-weight: bold;
	font-size: 12px;
	line-height: 1;
	white-space: nowrap;
	width: auto;
}

.c-rdCard__tags.c-rdCard__tags--detail{
	position: static;
	
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	margin: 0 0 24px;
}

/* ---------------------------------------
   本文エリア
---------------------------------------- */

.c-rdCard__body {
	display: flex;
	flex-direction: column;
/*	height: calc(100% - 282px); */
	padding: 16px 24px 20px 24px;
	height: calc(100% - var(--rdThumbH, 282px));
	min-height: 0;
	box-sizing: border-box;
/*	position: relative; */
	position: static;
}

.c-rdCard__meta {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: bold;
	color: #666;
}


.c-rdCard .c-rdCard__body .c-rdCard__title {
/*	display: -webkit-box; */
	display: block;
	margin: 6px 0 16px;
	height: auto; /* 96px; */
/*	min-height: 96px;  */
	font-size: 20px;
	line-height: 30px;
	overflow: visible; /* hidden;  */
	color: var(--color-nkblue);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.c-rdCard .c-rdCard__body .c-rdCard__title.c-rdCard__title--single {
/*
	display: flex;
	align-items: first;
	-webkit-line-clamp: unset;
	-webkit-box-orient: initial;
 */
}

.c-rdCard__body .c-rdCard__excerpt {
/*
	display: -webkit-box;
	flex: 0 0 auto; */
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	height: auto;
	font-size: 18px;
	line-height: 28px;
	overflow: hidden;
	position: relative;
/*	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--rdExcerptLines, 6);
	-webkit-line-clamp: 6; */
}
.c-rdCard__body .c-rdCard__excerpt::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 84px;  /* フェードの厚み */
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(255,255,255,0) 0%,
		rgba(255,255,255,0.00) 35%,
		rgba(255,255,255,0.35) 55%,
		rgba(255,255,255,0.70) 72%,
		rgba(255,255,255,0.92) 88%,
		var(--rdCardBg) 100%
	);
}
.c-rdCard__more {
	margin-top: auto;
	position: static;
/*
	position: absolute;
	right: 24px;
	bottom: 20px;
 */
	text-align: right;
}

.c-rdCard__moreBtn {
	display: inline-block;
	padding: 4px 20px;
	border: 2px solid var(--color-nkblue);
	font-size: 16px;
	color: var(--color-nkblue);
	font-weight: bold;
	position: relative;
	transition: background-color 0.2s ease, color 0.2s ease;
}
/*
.c-rdCard__moreBtn::after {
	content: "→";
	margin-left: 8px;
}
 */

/* hover */
@media (hover: hover) and (pointer: fine) {
  .c-rdCard__link:hover .c-rdCard__moreBtn {
    background-color: var(--color-nkblue);
    color: #fff;
  }
}

@media screen and (max-width: 899px) {
	.c-rdCard__body {
		height: auto;
		padding-bottom: 72px;
	}
	.c-rdCard__tags {
		top: 15px;
		left: 15px;
		gap: 6px;
	}
	.c-rdCard__thumb {
		height: auto;
	}
	.c-rdCard__img {
		height: auto;
	}
	.c-rdCard__title {
		font-size: 18px;
	}
	.c-rdCard__excerpt {
		font-size: 16px;
	}
	.c-rdCard .c-rdCard__body .c-rdCard__title {
		height: auto;
		max-height: 96px;
	}
	.c-rdCard .c-rdCard__body .c-rdCard__title.c-rdCard__title--single {
		display: -webkit-box;
		align-items: initial;
	}


}
@media screen and (max-width: 639px) {
	.c-rdCard__tags {
		display: none;
	}
}




/* =======================================
   Load More ボタン
   ---------------------------------------
   標準：白地＋青枠＋青文字（中央配置）
   hover：反転（青地＋白文字）
   読込中：背景 rgb(76,147,202) ＋ 回転アイコン
   ======================================= */
/* Load More */
.c-rdMore { text-align: center; margin: 70px 0 16px; }
.c-rdMore__btn{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  padding:16px 32px;border:2px solid var(--color-nkblue);
  background:#fff;color:var(--color-nkblue);font-weight:bold;font-size:18px;line-height:1;
  cursor:pointer;transition:background-color .2s,color .2s,border-color .2s,opacity .2s;
}
.c-rdMore__btn:hover,.c-rdMore__btn:focus-visible{
  background:var(--color-nkblue);color:#fff;outline:none;
}
.c-rdMore__btn.is-loading{
  background:rgb(76,147,202);color:#fff;border-color:rgb(76,147,202);
}
.c-rdMore__icon--spinner{width:20px;height:20px;display:none}
.c-rdMore__btn.is-loading .c-rdMore__icon--plus{display:none}
.c-rdMore__btn.is-loading .c-rdMore__icon--spinner{
  display:inline-block;animation:rdspin 1.6s steps(8,end) infinite;transform-origin:50% 50%;
}
.c-rdMore__btn:disabled{opacity:.5;cursor:default}
@keyframes rdspin{to{transform:rotate(360deg)}}

/* スケルトン（カード枠を崩さない） */
.c-rdCard.is-skel { position:relative; overflow:hidden; }
.c-rdCard.is-skel .u-skel{display:block;background:#e5e7eb;border-radius:6px}
.c-rdCard.is-skel .u-skel--thumb{height:282px}
.c-rdCard.is-skel .u-skel--title{height:20px;margin:16px 24px;width:70%}
.c-rdCard.is-skel .u-skel--line{height:14px;margin:8px 24px}
.c-rdCard.is-skel .u-skel::after{
  content:"";position:absolute;inset:0;transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);
  animation:skel 1.2s infinite;
}
@keyframes skel{100%{transform:translateX(100%)}}

.c-rdMore__btn[hidden]{ display:none; }



.p-rs-results-detail .l-section h3 {
	margin: 40px 0 26px;
}
