/* CSS Document */
@import url("reset.css");
@import url("swiper-bundle.min.css");
@import url("common.css");
@import url("styles.css");


/* path
---------------------------------------------------------- */
.contents .path{ margin: 0 0 50px 0;}

.path h2{
	margin: 0 !important;
	padding: 0 !important;
}
.path h2::before{ display: none !important;}

.search_genre{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 50px 0 0 0;
}
.dropdown_tit{
	padding: 20px;
	background-color: #fff;
}


/* search
---------------------------------------------------------- */
.researchers_list{
	margin: 50px 0;
	grid-template-columns: repeat(3, 1fr);
}

h3.search_tit{
	margin: 0 0 50px 0;
	padding: 30px 0 !important;
	border: none;
	border-top: 1px solid var(--main-color);
	border-bottom: 1px solid var(--main-color);
	text-align: center;
}

/* dropdown */
.search_genre {
	display: flex;
	gap: 20px; /* メニュー同士の間隔 */
	font-family: sans-serif;
}
.dropdown{
	position: relative;
	width: 100%;
}
.dropdown input[type="checkbox"] { display: none;}

.dropdown_button {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	cursor: pointer;
	font-family: var(--primary-font-set);
	font-weight: bold;
	user-select: none;
	transition: background-color 0.3s;
}

.dropdown_button:hover { background-color: var(--bg-color);}

.dropdown_button .arrow {
	width: 8px;
	height: 8px;
	border-top: 2px solid #333;
	border-right: 2px solid #333;
	transform: rotate(135deg);
	transition: transform 0.3s;
	margin-top: -5px;
}

.dropdown_list {
	display: none; /* デフォルトは非表示 */
	position: absolute; /* 親要素の下に浮かせる */
	top: 100%;
	left: 0;
	width: 100%;
	max-height: 30vh;
	margin: 0;
	padding: 0;
	background-color: #fff;
	border: 1px solid #ccc;
	border-top: none;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	z-index: 10;
	font-size: 0.9rem;
	list-style: none;
	overflow-y: scroll;
}
.dropdown_list ul{ margin: 0;}
.dropdown_list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #eee;
	list-style: none;
}
.dropdown_list li:last-child { border-bottom: none;}

.dropdown_list li a {
	display: block;
	padding: 10px 15px;
	font-weight: normal;
	color: #333;
	text-decoration: none;
	transition: background-color 0.2s;
}

.dropdown_list li a:hover {
	background-color: var(--bg-color);
	color: var(--blue-color);
}

.dropdown_list::-webkit-scrollbar { width: 8px;}
.dropdown_list::-webkit-scrollbar-track { background: var(--bg-color); }
.dropdown_list::-webkit-scrollbar-thumb {
	background: hsl(var(--main-hue), var(--main-saturation), 40%);
	border-radius: 4px;
}
.dropdown_list::-webkit-scrollbar-thumb:hover { background: #999;}

/* チェックが入った時（:checked）の直後にある兄弟要素のulを表示する */
.dropdown input[type="checkbox"]:checked ~ .dropdown_list { display: block;}
/* チェックが入った時、ラベルの中の矢印を回転させる */
.dropdown input[type="checkbox"]:checked + .dropdown_button .arrow {
	transform: rotate(-45deg); /* 上向き矢印 */
	margin-top: 2px;
}
/* チェックが入った時、ボタンの色を変える */
.dropdown input[type="checkbox"]:checked + .dropdown_button {
	background-color: var(--bg-color);
	color: var(--main-color);
}

.search_indexes h3::before{ display: none;}

@media screen and (max-width: 768px) and  (orientation: portrait) {
	.researchers_list{
		grid-template-columns: 1fr;
		gap: 10px;
		margin: 20px 0;
	}
	.search_tit{
		margin-bottom: 20px;
		padding: 20px 0 !important;
	}
	.search_genre{
		margin-top: 20px;
		display: block;
	}
	.dropdown{ margin-top: 20px;}
}
