/*
card-list.css

リンク一覧を細めのカード型グリッドで表示するためのCSS。
ページ側で .study-index などのスコープクラスを付けて使う。
*/

.study-index .study-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
	margin: 10px 0 26px;
}

.study-index .study-card {
	position: relative;
	display: flex;
	min-height: 58px;
	box-sizing: border-box;
	flex-direction: column;
	justify-content: center;
	padding: 11px 42px 11px 16px;
	border: 1px solid #d8e5ef;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(20, 55, 80, 0.06);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.study-index a.study-card::after {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	content: "";
	border-top: 2px solid #0969da;
	border-right: 2px solid #0969da;
	transform: translateY(-50%) rotate(45deg);
	transition: right 0.18s ease;
}

.study-index a.study-card:hover,
.study-index a.study-card:focus {
	border-color: #8fc5ef;
	background: #f7fbff;
	box-shadow: 0 8px 18px rgba(20, 55, 80, 0.12);
	transform: translateY(-1px);
}

.study-index a.study-card:hover::after,
.study-index a.study-card:focus::after {
	right: 13px;
}

.study-index .study-card-title {
	display: block;
	color: #12364f;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.study-index .study-card-description {
	display: block;
	margin-top: 4px;
	color: #667985;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.study-index .study-card-disabled .study-card-title {
	color: #6f7f89;
}

.study-index .study-card-disabled {
	background: #f7f9fb;
	box-shadow: none;
}

@media screen and (max-width: 766px) {
	.study-index .study-card-grid {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-bottom: 24px;
	}

	.study-index .study-card {
		min-height: 56px;
		padding: 10px 38px 10px 14px;
	}

	.study-index a.study-card::after {
		right: 14px;
	}

	.study-index a.study-card:hover::after,
	.study-index a.study-card:focus::after {
		right: 12px;
	}
}
