@charset "UTF-8";

.qir_quarter,
.qir_graph,
.qir_group,
.qir_termButton {
	& li {
		cursor: pointer;
		display: inline-block;
		margin: 16px 8px 0;

		&:first-child {
			margin-left: 0;
		}

		& a {
			border: 1px solid #ccc;
			border-radius: 32px;
			box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
			color: #555;
			display: flex;
			align-items: center;
			justify-content: center;
			text-align: center;
			font-size: 16px;
			font-weight: bold;
			line-height: 1.2em;
			padding: 0 16px;
			height: 36px;
		}
	}

	& .activeCG {
		& a {
			color: #fff;
			background: #08287f;
		}
	}
}

.qir_white > .qir_quarter:first-child li,
.qir_white > .qir_buttonGroup:first-child li {
		margin-top: 0;
}

.qir_buttonGroup,
.qir_group,
.qir_termButton {
	margin-top: 8px;
}

.qir_buttonGroup {
	display: flex;
	gap: 16px;
}

.qir_DLList {
	margin-top: 16px;

	& li {
		& a {
			background: #285ae1;
			border-radius: 32px;
			box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
			color: #fff;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			font-size: 16px;
			font-weight: bold;
			line-height: 1.2em;
			padding: 0 16px;
			height: 36px;

			&:hover {
				background: #2c4a9b;
				opacity: 1;
			}
		}
	}
}

.qir_selectTerm {
	margin: 0 auto;
	text-align: center;
	width: 72%;

	& li {
		color: #333;
		display: inline-block;
		font-size: 16px;
		line-height: 1.2em;
		margin: 16px 8px 0;

		& label {
			cursor: pointer;
			display: inline-flex;
			align-items: center;

			& input {
				background: #f0f4ff;
				border: 2px solid #c0d2ff;
				cursor: pointer;
				margin-right: 8px;
				position: relative;
				width: 20px;
				height: 20px;

				&:checked {
					background: #285ae1;
					border-color: #285ae1;

					&::before {
						border-left: 2px solid #fff;
						border-bottom: 2px solid #fff;
						content: "";
						display: block;
						position: absolute;
						top: calc(50% - 2px);
						left: 50%;
						transform: translate(-50%, -50%) rotate(-45deg);
						width: 10px;
    				height: 5px;
					}
				}
			}
		}
	}
}

.qir_termButton {
	text-align: center;
}

.qir_endText {
	font-size: 14px;
	line-height: 1.6;
	margin-top: 24px;
}

.qir_tableArea {
	margin-top: 24px;
	overflow-x: auto;

	& table,
	& th,
	& td {
		border-collapse: collapse;
	}

	& table {
		max-width: 966px;
		width: 100%;

		& th,
		& td {
			border: 1px solid #c0d2ef;
			color: #333;
			font-size: 14px;
			line-height: 1.6em;
			padding: 12px;
		}

		& th {
			background: #f0f4ff;
			font-weight: bold;
			white-space: nowrap;
		}

		& td {
			background: #fff;
			text-align: right;
		}
	}
}

@media screen and (max-width: 768px) {
	.qir_buttonGroup {
		display: block;
	}

	.qir_selectTerm {
		display: flex;
		flex-wrap: wrap;
		gap: 16px;
		justify-content: center;
		margin-top: 16px;
		width: 100%;

		& li {
			margin: 0;
			width: calc((100% - 16px) / 2);

			&:nth-child(odd) {
				text-align: right;
			}

			&:nth-child(even) {
				text-align: left;
			}
		}
	}

	.qir_tableArea {
		& table {
			max-width: 345px;

			& th {
				padding: 8px;
			}
	
			& td {
				padding: 12px;
			}
		}
	}
}