/* スタッフカード一覧 */
.un_staffList {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 60px;
	margin-right: -10px;
	margin-left: -10px;
}

@media (width >= 768px) {
	.un_staffList {
		grid-template-columns: repeat(3, 1fr);
	}
}

.un_staffCard {
	position: relative;
	overflow: hidden;

	/* padding: 20px; */
	cursor: pointer;
	background: #fff;
	border: 2px solid #00B71F;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
	transition: transform 0.3s, box-shadow 0.3s;
}

.un_staffCard_arrow{
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	margin-bottom: 13px;

}

.un_staffCard:hover {
	box-shadow: 0 4px 16px rgb(0 0 0 / 15%);
	transform: translateY(-5px);
}

.un_staffCard_txt{
	position: relative;
	padding-bottom: 10px;
	margin: 10px 6px;

	/* width: fit-content; */
	font-size: 1.3rem;
	text-align: center;
	border-bottom: 1px solid #333;

	&::after {
		position: absolute;
		top: calc(100% + 2px);
		left: 50%;
		box-sizing: border-box;
		display: block;
		width: 16px;
		height: 1px;
		content: "";
		background: #fff;
		background-color: #333;
		box-shadow: 0 2px 0 #fff, 0 -2px 0 #fff;
		rotate: -50deg;
		translate: -25% 0;
	}
}

.un_staffCard_box{
	height: 100%;
	padding-bottom: 20px;
	text-align: center;
	background: #00B71F;
}

.un_staffCard_role {
	margin-top: 5px;
	margin-bottom: 5px;
	font-size: 1.3rem;
	color: #fff;

}

.un_staffCard_name {
	margin: 0;
	font-size: 1.8rem;
	font-weight: bold;
	color: #fff;
}

.un_staffCard_img {
	width: 70%;
	margin: 0 auto;

	/* aspect-ratio: 1 / 1; */
	margin-bottom: 15px;
	overflow: hidden;
	border-radius: 8px;
}

.un_staffCard_img img {
	width: 100%;
	height: 100%;

	//object-fit: cover;
}

/* モーダルウィンドウ */
.md_modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.md_modal.is_active {
	display: flex;
}

.md_modal_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgb(0 0 0 / 60%);
}

.md_modal_content {
	position: relative;
	z-index: 1001;
	width: 90%;
	max-width: 500px;
	height: 75vh;
	padding: 10px;
	overflow-y: auto;
	background: #fff;
	border: 2px solid #00B71F;
	border-radius: 12px;
	animation: modalFadeIn 0.3s ease;
}

@media (width >= 1024px) {
	.md_modal_content {
			height: 70vh;
	}
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (width <= 375px) {
	.md_modal_content {
		width: 90%;
		height: 500px;
		margin: 0 auto;
		overflow-y: auto;
	}
}


.md_modal_close {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	background: none;
	border: none;
}

.md_modal_close:hover {
	color: #333;
}

.md_modal_close span {
	margin-right: 4px;
	font-size: 1.2rem;
	vertical-align: middle;
}

.md_modal_body {
	text-align: center;
}

.md_md_modal_item{
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	padding: 6px;
	background: #00B71F;
	border-radius: 12px;
}

.md_modal_role {
	margin-right: 6px;
	margin-bottom: 10px;
	margin-bottom: 0;
	font-size: 12px;
	color: #fff;
}

.md_modal_name {
	margin: 0 0 20px;
	margin-bottom: 0;
	font-size: 1.8rem;
	font-weight: bold;
	color: #fff;
}

.md_modal_comm {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

.md_modal_img {
	width: 130px;
	height: auto;
	margin: 0 auto 10px;
}

.md_modal_img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.md_modal_box{
	padding: 10px;
	margin-top: 20px;
	background: #F0FFD5;
	border-radius: 12px;
}

.md_modal_box_ttl{
	text-align: left;

}

.md_modal_course {
	display: grid;
	flex-wrap: wrap;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	justify-items: center;
	margin-top: 10px;
}

.md_modal_course img {
	width: 100%;

	/* max-width: 50px; */
	height: auto;
}

/* 教習検定員資格 */
.md_modal_qualification {
	margin-top: 4px;
	color: #333;
	text-align: left;
}

.md_modal_qualification span {
	font-size: 1.6rem;
	font-weight: bold;
	color: #00B71F;
}

/* 質問・回答 */
.md_modal_info {
	margin-top: 20px;
	text-align: left;
}

.md_modal_info_item {
	/* padding: 15px;
	margin-bottom: 15px;
	background: #f9f9f9;
	border-radius: 8px; */
}

.md_modal_info_item dt {
	font-size: 15px;
	font-weight: bold;
	color: #333;
}

.md_modal_info_item dt::before {
	color: #00B71F;
	content: "●";
}

.md_modal_info_item dd {
	margin: 0;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.6;
	color: #555;
}

.md_modal_info_item dd::before {
	/* font-weight: bold;
	color: #888;
	content: "A. "; */
}

/* ナビゲーションボタン */
.md_modal_nav {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-top: 100px;
}

.md_modal_prev,
.md_modal_next {
	width: 100px;
	padding: 8px 10px;
	font-size: 14px;

	/* flex: 1; */
	color: #333;
	cursor: pointer;

	/* background: #fff;
	border: 1px solid #333;
	border-radius: 4px; */
	transition: background 0.3s, color 0.3s;
}

.md_modal_prev:hover,
.md_modal_next:hover {
	color: #00B71F;
}

.md_modal_prev:disabled,
.md_modal_next:disabled {
	cursor: not-allowed;
	opacity: 0.3;
}

.md_modal_prev:disabled:hover,
.md_modal_next:disabled:hover {
	color: #333;
	background: #fff;
}


.md_modal_prev > img{
	width: 24px;
	height: auto;
	margin-right: 6px;
}


.md_modal_next > img{
	width: 24px;
	height: auto;
	margin-left: 6px;
}
