@charset 'UTF-8';

/*

    Layout

*/

/*  contents  */
div.contents {
	padding: 1.5rem 1rem;
}
@media screen and (max-width: 767px) {
	div.contents.withmenu div.menu1 {
		display: none;
		margin: 0 -10px;
		padding: 10px;
		background-color: #eeeeee;
	}
	div.contents.withmenu.menu1-open div.menu1 {
		display: block;
	}
}
@media screen and (min-width: 768px) {
	div.contents {
		width: 780px;
		min-height: calc(100vh - 60px - (2rem + (1.3rem * 1.5)));
		margin: 0 auto;
		padding: 6rem 0 3rem;
		box-sizing: border-box;
	}
	div.contents.withmenu {
		display: flex;
		width: 100%;
		padding: 0;
	}
	div.contents.withmenu div.main,
	div.contents.withmenu div.menu1,
	div.contents.withmenu div.menu2 {
		padding: 1rem;
		box-sizing: border-box;
	}
	div.contents.withmenu div.main {
		order: 2;
		flex-basis: auto;
		flex-grow: 2;
	}
	div.contents.withmenu div.menu1 {
		order: 1;
		flex-basis: 200px;
	}
	div.contents.withmenu div.menu2 {
		order: 3;
		flex-basis: 225px;
	}
}





/*

    Common

*/

/*  text selection  */
* {
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
input[type=text], input[type=password], input[type=submit], button, textarea {
	-webkit-user-select: auto;
}

/*  reset decoration  */
input[type=text], input[type=password], input[type=submit], button, textarea {
	-webkit-appearance: none;
	border-radius: 0;
}

/*  headings  */
h2 {
	margin: 0.25em 0;
	font-weight: normal;
	color: #333333;
}

/*  table  */
table {
	width: 100%;
}
table td {
	font-size: 1.5rem;
}

/*  description  */
.description {
	color: #666666;
	font-size: 1.5rem;
}

/*  notes  */
.notes {
	display: block;
	font-size: 1.3rem;
	color: #666666;
}
@media screen and (min-width: 768px) {
	span.notes {
		display: inline;
	}
}

/*  message  */
p.message {
	margin: 1em 0 2em;
	padding: 0.5em 1em;
	background-color: #eeeeee;
	border: 1px solid #cccccc;
	color: #666666;
	border-radius: 3px;
}
p.message.invalid {
	background-color: #f9dadd;
	border-color: #df4857;
	color: #df4857;
}
p.message.valid {
	background-color: #d8efdd;
	border-color: #3daf57;
	color: #3daf57;
}


/*  form  */
form input.invalid,
form textarea.invalid {
	border: 1px #df4857 solid;
}
form span.invalid {
	display: inline-block;
	padding: 0.25em 0.5em;
	border: 1px #df4857 solid;
	border-radius: 3px;
}
form .invalid-feedback {
	margin: 0;
	color: #df4857;
	font-size: 1.3rem;
}
form p.submit {
	text-align: center;
}
form input[type=submit],
form input[type=button] {
	margin-top: 1em;
	padding: 0.5em 3em;
	border: none;
	background-color: #007bff;
	font-size: 1.8rem;
	font-weight: bold;
	color: #ffffff;
	border-radius: 3px;
	cursor: pointer;
}
form input[type=submit][disabled=disabled],
form input[type=button][disabled=disabled] {
	background-color: #cccccc;
	cursor: default;
}
form label input[type=text] {
	margin-top: 0.25em;
}

/*  ok ng check loading  */
span.ok,
span.ng,
span.check {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin: 0 0.5em;
	background-size: cover;
	vertical-align: middle;
}
span.ok { background-image: url('images/ok.png');}
span.ng { background-image: url('images/ng.png');}
span.check { background-image: url('images/check.png');}
span.loading {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0 auto;
	border: 4px #007bff solid;
	border-top: 4px transparent solid;
	border-radius: 50%;
	animation: loading 1.0s infinite linear;
	box-sizing: border-box;
}
@keyframes loading {
	100% {
		transform: rotate(360deg); 
	}
}




/*

    Menu1

*/

/*  menu  */
div.menu1 h2 {
	margin: 1em 0 -1em;
	font-size: 1.5rem;
	color: #666666;
	font-weight: bold;
}

/*  questions  */
ul.questions {
	margin-bottom: 3em;
	letter-spacing: -0.4em;
}
ul.questions li {
	display: inline-block;
	margin: 0;
	padding: 0;
	letter-spacing: 0;
}

/*  legend  */
ul.legend1 li {
	margin: 0;
	list-style: none;
	font-size: 1.5rem;
}
ul.legend2 {
	letter-spacing: -0.4em;
}
ul.legend2 li {
	display: inline-block;
	width: 50%;
	margin: 0;
	letter-spacing: 0;
	font-size: 1.5rem;
}

/*  subject colors  */
a.subject1,
a.subject2,
a.subject3,
a.subject4,
a.subject5,
a.subject6 {
	display: inline-block;
	height: 20px;
	width: 20px;
	margin-right: 5px;
	line-height: 20px;
	font-size: 1rem;
	color: #ffffff;
	text-align: center;
	border-radius: 2px;
	box-sizing:border-box;
	vertical-align: middle;
}
a.subject1 { background-color: #e60039;}
a.subject2 { background-color: #541b86;}
a.subject3 { background-color: #005bac;}
a.subject4 { background-color: #3eb134;}
a.subject5 { background-color: #f08200;}
a.subject6 { background-color: #5a2201;}
a.subject1.answered { background-color: #f7b2c3;}
a.subject2.answered { background-color: #cbbada;}
a.subject3.answered { background-color: #b2cde6;}
a.subject4.answered { background-color: #c5e7c2;}
a.subject5.answered { background-color: #fad9b2;}
a.subject6.answered { background-color: #cdbcb2;}
a.confirm-letter { background-color: #ffffff;}
a.subject1.confirm-letter { color: #e60039; border: 1px #e60039 solid;}
a.subject2.confirm-letter { color: #541b86; border: 1px #541b86 solid;}
a.subject3.confirm-letter { color: #005bac; border: 1px #005bac solid;}
a.subject4.confirm-letter { color: #3eb134; border: 1px #3eb134 solid;}
a.subject5.confirm-letter { color: #f08200; border: 1px #f08200 solid;}
a.subject6.confirm-letter { color: #5a2201; border: 1px #5a2201 solid;}





/*

    Config timer

*/

/*  config */
a.openconfig {
	display: inline-block;
	padding: 0.25em 0.5em;
	background-color: #eeeeee;
	font-size: 1.5rem;
	color: #666666;
	font-weight: bold;
	border-radius: 3px;
	cursor: pointer;
}
a.openconfig:before {
	content: '';
	display: inline-block;
	width: 1.25em;
	height: 1.25em;
	margin-right: 0.5em;
	background-image: url('images/cog.png');
	background-size: cover;
	vertical-align: middle;
}
div.misc div.config {
	display: none;
	padding: 0.5rem 1rem;
	background-color: #ffffff;
	border-radius: 3px;
	box-shadow: 0px 0px 16px -6px;
}
div.misc div.config a {
	display: block;
	margin: 0.5em 0;
	color: #333333;
	font-size: 1.3rem;
	cursor: pointer;
}
div.misc div.config a span.current {
	font-weight: bold;
}
@media screen and (min-width: 768px) {
	div.misc div.config hr,
	div.misc div.config a.toggle-leftmenu {
		display: none;
	}
	div.misc div.config {
		position: absolute;
		margin-top: 5px;
		z-index: 6;
	}
}
@media screen and (max-width: 767px) {
	div.contents.withmenu {
		padding-bottom: 110px;
	}
	div.misc {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 10px 10px calc(2.0rem + 0.5rem + 0.5rem + 2rem);
		background-color: rgba(0,0,0,0.6);
		text-align: center;
		box-sizing: border-box;
		z-index: 8;
	}
	div.misc a.openconfig {
		float: left;
	}
	div.misc div.config {
		position: fixed;
		left: 10px;
		bottom: 110px;
		background-color: #ffffff;
		z-index: 10;
	}
}

/*  timer  */
div.misc p.timer {
	margin: 1rem 0;
	padding: 0.125em 0.5em;
	background-color: #ffffff;
	border: 1px #cccccc solid;
}
@media screen and (max-width: 767px) {
	div.misc p.timer {
		margin: 0 0 1rem;
		margin-left: 7em;
	}
}

/*  navigation  */
div.contents.withmenu div.menu2 nav.question a {
	display: inline-block;
	padding: 0.25em 1em;
	background-color: #eeeeee;
	font-size: 1.2rem;
	color: #666666;
	font-weight: bold;
	border-radius: 3px;
}
div.contents.withmenu div.menu2 nav.question a.next {
	font-size: 2.0rem;
	background-color: #007bff;
	color: #ffffff;
}
div.contents.withmenu div.menu2 nav.question a.confirm {
	background-color: #17a2b8;
	color: #ffffff;
}
div.contents.withmenu div.menu2 nav.question a.finish {
	font-size: 2.0rem;
	background-color: #ffc107;
	color: #ffffff;
}
@media screen and (min-width: 768px) {
	div.contents.withmenu div.menu2 div.answer {
		padding-bottom: 100px;
	}
	div.contents.withmenu div.menu2 nav.question {
		position: fixed;
		bottom: calc(2rem + (1.3rem * 1.5));
		right: 0;
		width: 205px;
		height: 75px;
		padding: 10px;
		background-color: #ffffff;
	}
	div.contents.withmenu div.menu2 nav.question a {
		position: absolute;
		font-size: 1.3rem;
		text-align: center;
	}
	div.contents.withmenu div.menu2 nav.question a.next {
		left: 10px;
		top: 10px;
		width: calc(205px - 2em);
	}
	div.contents.withmenu div.menu2 nav.question a.prev {
		bottom: 10px;
		left: 10px;
		width: calc(85px - 2em);
	}
	div.contents.withmenu div.menu2 nav.question a.confirm {
		bottom: 10px;
		right: 10px;
		width: calc(110px - 2em);
	}
}
@media screen and (max-width: 767px) {
	div.contents.withmenu div.menu2 nav.question {
		position: fixed;
		bottom: 10px;
		left: 10px;
		width: 100%;
		text-align: center;
		box-sizing: border-box;
		z-index: 9;
	}
	div.contents nav.finish {
		position: fixed;
		bottom: 10px;
		left: 10px;
		width: 100%;
		margin: 0;
		text-align: center;
		box-sizing: border-box;
		z-index: 9;
	}
}


/*  answer  */
div.contents.withmenu div.menu2 div.answer h2 {
	margin: 1.5em 0 0.25em;
	font-size: 1.5rem;
	color: #666666;
	font-weight: bold;
}
div.contents.withmenu div.menu2 div.answer p.confirm-letter {
	margin: 0.5em 0;
	padding: 0.25em;
	background-color: #eeeeee;
}
div.contents.withmenu div.menu2 div.answer label {
	white-space: nowrap;
}



/*

    Detail

*/

/*  login  */
form.login input[type=text], 
form.login input[type=password] {
	width: 100%;
}

/*  selection  */
form.selection select {
	width: 100%;
	height: 15em;
	padding: 0.5em;
}
form.selection select option {
	padding: 0;
}

/*  cherk result  */
table.check-result tr td:nth-child(2) {
	width: 2.5em;
	text-align: center;
}
@media screen and (max-width: 767px) {
	table.check-result tr *:nth-child(4) {
		display: none;
	}
}

/*  examination top  */
form.examination-top span.status {
	display: linline-block;
	margin: 0 2em;
}

/*  question  */
div.contents.withmenu div.question h2 {
	font-size: 3.0rem;
}
div.contents.withmenu div.question.font-large { font-size: 2.0rem;}
div.contents.withmenu div.question.font-small { font-size: 1.0rem;}
@media screen and (min-width: 768px) {
	div.contents.withmenu div.main {
		position: relative;
		padding: 1px 0;
	}
	div.contents.withmenu div.question {
		position: absolute;
		width: 100%;
		height: 100%;
		height: calc(100vh - 60px - (2rem + (1.3rem * 1.5)));
		padding: 1rem 2rem;
		border-left: 1px #cccccc solid;
		border-right: 1px #cccccc solid;
		overflow-y: scroll;
		box-sizing: border-box;
	}
}

/*  confirm answers  */
div.header {
	float: right;
}
table.confirm-answers {
	margin-top: 3em;
}
table.confirm-answers th,
table.confirm-answers td {
	text-align: center;
}
table.confirm-answers td span.unanswered {
	color: #ffc107;
}
table.confirm-answers td span.confirm-letter {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	background-image: url('images/check2.png');
	background-size: cover;
}
table.confirm-answers tr td:nth-child(4) a {
	display: inline-block;
	padding: 0.25em 1em;
	background-color: #17a2b8;
	font-size: 1.2rem;
	color: #ffffff;
	font-weight: bold;
	white-space: nowrap;
	border-radius: 3px;
}
nav.finish {
	margin: 2em 0;
}
nav.finish a {
	display: block;
	width: 8em;
	margin: 0 auto;
	padding: 0.25em 1em;
	background-color: #ffc107;
	font-size: 2rem;
	color: #ffffff;
	font-weight: bold;
	white-space: nowrap;
	border-radius: 3px;
	text-align: center;
}
