

.app_container {
	margin: 0 2.5vw;
    margin-top: 2rem;
}

.question_img {
	width: 70%;
	max-height: 75vh;
	overflow-y: scroll;
	border: 2px solid #1E3575;
	border-radius: 8px;
	opacity: 1;
}

/* .question_img::-webkit-scrollbar-track {
	background-color: #ffffff;
	border-radius: 100px;
	margin-top: 5px;
    margin-bottom: 5px;
} */

.question_img::-webkit-scrollbar {
	height: 20px;
	width: 16px;
}

.question_img::-webkit-scrollbar-thumb {
	background: #1E3575;
	border-radius: 100px;
	border:3px solid transparent;
    background-clip: padding-box;
}


/*ボタンの設定*/
/* .question_img::-webkit-scrollbar-button:single-button {
	background-color: #1E3575;
	display: block;
	border-style: solid;
	height: 12px;
	width: 12px;
} */
/* 縦のスクロール
/* Up */
/* .question_img::-webkit-scrollbar-button:single-button:vertical:decrement { */
/* border-top: 10px solid transparent;
border-right: 10px solid transparent;
border-bottom: 10px solid blue;
border-left: 10px solid transparent;
} */
/* Down */
/* .question_img::-webkit-scrollbar-button:single-button:vertical:increment {
border-top: 10px solid blue;
border-right: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
} */


.question_img img {
	width: 100%;
}

.choice_area {
	width: 40%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.choice_button {
	width: 100%;
}

.next_button {
	width: 13.5rem;
	height: 50px;
	text-align: center;
	padding: 0 0.5em;
	border: 0px solid gray;
	background-color: gray;
	border-radius: 50px;
	box-sizing: border-box;
	color: white;
	font-size: 1.4rem;
	letter-spacing: 0.5px;
	margin: 0 2vw 3vh auto;
}

.next_button:hover {
	cursor: pointer;
	background-color: gray;
}

.test_area {
	display: flex;
	justify-content: flex-start;
	/* flex-direction: column; */
}

.choice_radio_button {
	display: none;
	position: relative;
	width: 100%;

}

.button_area label {
    display: inline-block;
	padding: 7px 15px;;
    margin-left: 8%;
    margin-left: calc((90% - 15px - (54px * 4)) / 4);
    margin-bottom: 2%;
    min-width: 13px;
    /* min-height: 30px; */
    min-height: 20px;
	text-align: left;
	font-size: 20px;
	line-height: 20px;
	cursor: pointer;
	border: 2px solid #1E3575;
	border-radius: 5px;
}

.buttons label:first-child {
    margin-left: 0%;
    color: #DD5555;
}

input[type="radio"]:checked+label {
	background: #1E3575;
	color: #ffffff;
}

.question_title {
	height: auto;
	margin: auto;
	position: absolute;
	display: inline-block;
	top: -13px;
	left: 20px;
	padding: 0 10px;
	line-height: 1;
	background: #fafdff;
	font-weight: bold;
	text-align: left;
	font-family: 'Noto Sans JP', sans-serif;
	letter-spacing: 0px;
	color: #1E3575;
	opacity: 1;
}

.title_border {
	border: 1px solid #1E3575;
	padding: 0 10px;
}

.button_area {
	word-wrap: break-word;
	margin: 0em 0em 0em auto;
	width: 100%;
	text-align: right;
}

.button_area>.buttons {

	min-height: 70px;
	width: 90%;
	text-align: left;
    /* display: flex; */
    line-height: 20px;
	padding-left: 5px;
	position: relative;
	margin: 1em 1.5em 3vh 1em;
	padding: 0.9em 0.8em 1.1vh 2em;
	border: 2px solid #1E3575;
	opacity: 1;
	border-radius: 8px;
	background-color: #fafdff;
	box-sizing: border-box;
}

.nowrap {
	white-space: nowrap;
}

.result_area {
	justify-content: space-between;
	display: flex;
	align-items: center;
}

.result {
	display: flex;

}

.next>form {
	margin-right: 0%;

}

.next {
	/* margin: 0 10% 0 auto; */
	margin: 0em 0em 0em auto;
}

th,
td {
	border: solid 1px;
	padding: 10px;
	width: 30%;
	height: 20%;
}

table {
	border-collapse: collapse;
	font-size: 1.5rem;
	text-align: center;

}

.red {
	color: #DD5555;
	border-color: black;
}

.blue {
	color: #2288EE;
	font-size: 1.8rem;
	border-color: black;
}

.modal {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal .inner {
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.9);
	margin: 10px;
	display: block;
	width: 960px;
	height: 540px;
	border: 3px solid #1E3575;
	border-radius: 50px;
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
	padding: 20px;
	text-align: center;
	background-color: rgba(255, 255, 255, 1);
	max-width: 600px;
	max-height: 400px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	color: #333;
	font-size: 1.5rem;
	animation: fadeInAnimation 200ms ease-out;
}

#modal-close-button {
	width: 15rem;
	height: auto;
	padding: 1em 1em;
	font-size: 17px;
	letter-spacing: 0.5px;
	line-height: 1.3;
	margin-top: 60px;
}


@keyframes fadeInAnimation {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.question_number {
	font-size: 32px;
}

@media screen and (max-width: 1200px) {
    .button_area>.buttons {
        width: calc(100% - 1em);
        padding: 1vh;
        text-align: center;
    }

    .button_area label {
        margin: 3% 2%;
    }
}

@media screen and (max-width: 1000px) {
    .test_area {
        height: 97%;
    }

    .question_img {
        max-height: 100%;
    }

    .choice_area {
        max-height: 100%;
        overflow-y: scroll;
    }

    .next_button {
        font-size: 1.2rem;
    }

    @media (orientation: portrait) {
        .button_area > .buttons {
            padding: 1%;
            margin-bottom: 8%;
        }
    }
}
