/*
[Amazyu]過去問用スタイルシート
*/

div.amazyu_contents {
}

div.amazyu_contents ol > li {
	padding: 0 1rem 0 2.5rem;
	border-radius: 10px;
	border: 3px solid rgba(66, 66, 66, 0.3);
	background-color: #f8f8f2;
	font-weight: bold;
}
div.amazyu_contents ol > li a {
	display: block;
	padding: 0.8rem 0;
	color: black;
	font-weight: bold;
	text-decoration: none;
}
div.amazyu_contents ol > li span {
	display: block;
	padding: 0.8rem 0;
	color: black;
	font-weight: bold;
}
div.amazyu_contents ol > li:before {
	margin-top: 0.8rem;
	top: initial;
	left: 5px;
}

div.amazyu_contents .q_title_1 {
	font-size: 1.5rem;
}

div.amazyu_contents .q_title_2 {
	font-size: 1.25rem;
}

div.amazyu_contents .text-center,
div.ajax-wrap .text-center {
	text-align: center;
}

div.amazyu_contents .text-right,
div.ajax-wrap .text-right {
	text-align: right;
}

div.amazyu_contents tbody > tr:nth-child(even) > td {
	background-color: #FFE;
}

div.amazyu_contents td.q_list_item {
	position: relative;
	padding: 1rem 3rem 1rem 1rem;
}

div.amazyu_contents td.q_list_item p {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden; 
	margin: 0;
}

div.amazyu_contents td.q_list_item a {
	text-decoration: none;
	color: #333;
}

div.amazyu_contents td.q_list_item::after {
    position: absolute;
    top: 43%;
    right: 1.05em;
    width: 20px;
    height: 20px;
    background: no-repeat url(./img/item-open.png);
    content: "";
}

div.amazyu_contents td.q_list_item .q_no {
	font-weight: bold;
}
div.amazyu_contents td.q_list_item .q_sub {
	font-weight: bold;
/*	color: #0A0; */
}

div.amazyu_contents a.q_list_item > div {
	border:dashed 1px #CCC;
	padding:0.5rem;
}

/* MENU */
div.amazyu_contents .tbl-menu {
	border-collapse: separate;
    border-spacing: 10px;
}
div.amazyu_contents .tbl-menu th {
	padding: 0;
	border: none;
	background-color: white;
}
div.amazyu_contents .tbl-menu th img {
	margin: 0;
	width: 100%;
	max-width: 220px;
}
div.amazyu_contents .tbl-menu .sub-title {
	font-size: 1.0rem;
	cursor: pointer;
}
div.amazyu_contents .tbl-menu .sub-area {
	padding-top: 0.5rem;
}
div.amazyu_contents .tbl-menu .sub-btn {
	padding: 0 5px;
	margin: 0;
	display: inline-block;
	width: 50%;
}
div.amazyu_contents .tbl-menu .sub-btn img {
	margin: 0;
	width: 100%;
	max-width: 220px;
}
div.amazyu_contents .tbl-menu .disp-btn {
	display: inline-block;
	width: 50px;
	float: right;
}
div.amazyu_contents .tbl-menu .disp-btn img {
	margin: 0 0 10px 0;
}

div.amazyu_contents .tbl-menu td.btn-continue {
	padding: 0;
}
div.amazyu_contents .tbl-menu td.btn-continue > a {
	display: block;
	padding: 0.8rem 0.5rem;
	font-size: 1.0rem;
	line-height: 1.4rem;
	text-decoration: none;
}
}

@media only screen and (min-width: 981px) {
	div.amazyu_contents .tbl-menu .sub-title {
		font-size: 1.4rem;
	}
	div.amazyu_contents .tbl-menu .disp-btn img {
		margin: 0 0 10px 0;
	}
}

/* QUESTION PAGE */
div.amazyu_contents .page-info > div {
	display: inline-block;
	width: 50%;
	font-weight: bold;
}
div.amazyu_contents .page-info > div .text-no {
	color: red;
	font-size: 1.6rem;
}
div.amazyu_contents .page-info > div img {
	vertical-align: text-top;
	margin: 0;
}
div.amazyu_contents .question-no {
	background-color: var(--header-bg);
	color: white;
	padding: 0.2rem 0.6rem;
	border-radius:8px;
}
div.amazyu_contents a.btn-goto-answer {
	display: block;
	text-align: center;
	padding: 0.4rem;
	border-radius: 10px;
    box-shadow: 0 0 5px 0 #d3cdb0;
	text-decoration: none;
}

/* modal */
.ajax-wrap {
	position: relative;
/*	margin:10px auto; */
	max-width: 700px;
	background: #fff;
	padding: 20px;
}

.ajax-wrap h2 {
	margin-top: 1rem !important;
}

.q_img_box img {
	max-width: 100%;
}

div.amazyu_contents .q_img_none
{
	display: none;
}

/* popup change */
.mfp-bg {
  background: #666688 !important;
  opacity: 0.6 !important;
}

table.tbl-operation td {
	border: none !important;
	background-color: #FFF !important;
	text-align: center;
	width: 33%;
}
table.tbl-operation img {
	max-height: 80px;
}

.btn-open
{
    transform: scale(1, -1);
}

/* answer */
#q_answer .answer-img {
	width: 40%;
}
#q_answer .answer-res1 {
	padding-left: 1rem;
	font-size: 1.4rem;
	font-weight: bold;
	width: 60%;
}
#q_answer .answer-res1 > span {
    display: inline-block;
	width: 2.5rem;
	height: 2.5rem;
    line-height: 2.5rem;
	font-size: 1.4rem;
	margin-left: 1rem;
	background-color: var(--header-bg);
	color: white;
	border-radius:20px;
	text-align: center;
}
#q_answer .right-no {
	margin-left: 0.5rem;

    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1.6rem;
    font-weight: bold;
	font-size: 1.0rem;
	margin-left: 1rem;
	background-color: var(--header-bg);
	color: white;
	border-radius:20px;
	text-align: center;
}

#q_answer .answer-info {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
	align-items: center;

}
#q_answer .kaisetu {
	background-color: #ffcaca;
	padding: 0 0 0 1rem;
	font-weight: bold;
}
#q_answer .kaisetu > span {
	background-color: #fff;
	padding: 0.4rem 0.3rem 0.4rem 1rem;
}
#q_answer p.explain_1 {
	margin-top: 1rem;
	background-color: #dbdbda;
	padding: 0.3rem 2.4rem;
	font-weight: bold;
	border-radius:10px;
position: relative;
}
#q_answer p.explain_1 > span {
    font-family: inherit;
    background-color: var(--main-ttl-bg);
    border: 1px solid var(--main-ttl-bg);
    color: var(--main-ttl-color);
    width: 1.8em;
    height: 1.8em;
    line-height: 1.8em;
    font-weight: bold;
    display: block;
    text-align: center;
    border-radius: 50%;
    position: absolute;
    transform: scale(0.7);
    left: 5px;
}
#q_answer p.explain_1.ans_ok {
	background-color: #eeee22;
}

div.amazyu_contents .progress .progress_txt {
	margin-top: 1rem;
	line-height: 1.4rem;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
	align-items: center;
	font-weight: bold;
}
div.amazyu_contents .progress .progress_bar {
	text-align: center;
	border: 1px solid #AAA;
	border-radius:16px;
/*	background: -webkit-linear-gradient(left, #3df032 0%, #3df032 50%, #FFF 50%, #FFF 100%); */
}

/*
#q_answer .explain_10 span {
	background-color: var(--header-bg);
	color: white;
	padding: 0.2rem 0.6rem;
	border-radius:20px;
}
*/
@media only screen and (min-width: 981px) {
	#q_answer .answer-res1 {
		font-size: 2rem;
	}
	#q_answer .answer-res1 > span {
		width: 3.0rem;
		height: 3.0rem;
	    line-height: 3.0rem;
		font-size: 2.0rem;
		margin-left: 1rem;
		background-color: var(--header-bg);
		color: white;
		border-radius:28px;
	}
}

/* ALL LIST */
div.amazyu_contents table.q_tbl_list {
	border-collapse: separate;
    border-spacing: 10px;
}

div.amazyu_contents table.q_tbl_list td {
	border-radius:8px;
}

/* RESULT */
div.amazyu_contents .time {
	margin: 0;
	vertical-align: baseline;
}
div.amazyu_contents .result-info {
	font-size: 1.2rem;
	font-weight: bold;
}
div.amazyu_contents .result-info p {
	margin-top: 1rem;
	padding: 0.4rem;
	border-radius: 20px;
	border: 3px solid rgba(66, 66, 66, 0.3);
}
div.amazyu_contents .tbl-finish th {
	background-color: #ffe9e9;
	font-weight: bold;
}
div.amazyu_contents .tbl-finish td {
	background-color: #fff !important;
	font-weight: bold;
}
div.amazyu_contents .tbl-finish a {
	text-align: center;
	padding: 0.4rem 1rem;
	border-radius: 10px;
    box-shadow: 0 0 5px 0 #d3cdb0;
	text-decoration: none;
}
div.amazyu_contents .tbl-finish a.link-q {
	color: #fff;
	background-color: var(--header-bg);
}
div.amazyu_contents .tbl-finish a.link-a {
	color: #fff;
	background-color: #0081ce;
}
div.amazyu_contents .tbl-finish tr > th:nth-child(n+5) {
	width: 100px;
}

/*
 * 問題一覧（ルビフル対応）
 */
div.amazyu_contents p.q_list_item_ex {
	border: 1px solid #DDD;
	border-radius: 8px;
	padding: 1rem 44px 1rem 1rem;
	margin: 0.5rem;
	font-size: 90%;
	line-height: 1.8;
}
div.amazyu_contents p.q_list_item_ex .q_no {
	font-weight: bold;
}
div.amazyu_contents p.q_list_item_ex .q_sub {
	font-weight: bold;
}
div.amazyu_contents p.q_list_item_ex:nth-child(even) {
    background-color: #FFE;
}
div.amazyu_contents p.q_list_item_ex {
    background: no-repeat url(./img/item-open.png);
    background-position: right 15px center;
}
div.amazyu_contents p.q_list_item_ex a {
	text-decoration: none;
	color: #333;
}



.mfp-content {
	height: 80%;
}
