.studystyle {
	font-family: 'Pacifico', cursive;
}

body {
	background-color: #fff;
}

h1 {
	font-size: 18pt;
	text-align: center;
	color: #364e96;
	/*文字色*/
	padding: 0.5em 0;
	/*上下の余白*/
	border-top: solid 3px #364e96;
	/*上線*/
	border-bottom: solid 3px #364e96;
	/*下線*/
}


.copyright {
	left: 10px;
	top: 5px;
	text-align: right;
	margin-right: 10px;
	font-size: 1em;
	color: #222;
}

#ans-prob,
#prob-prob {
	font-size: 120%;
	color: #222;
	background-color: white;
	position: relative;
	margin: 2em 0;
	padding: 0.5em 1em;
	border: solid 3px #07f;
	border-radius: 0 5px 5px 5px;
}

#ans-prob .box-title,
#prob-prob .box-title {
	position: absolute;
	display: inline-block;
	top: -27px;
	left: -3px;
	padding: 0 9px;
	height: 25px;
	line-height: 25px;
	font-size: 17px;
	background: #07f;
	color: #ffffff;
	font-weight: bold;
	border-radius: 5px 5px 0 0;
}

#ans-prob p,
#prob-prob p {
	padding: 0;
}

#ans-ans {
	color: #222;
	background-color: white;
	position: relative;
	margin: 2em 0;
	padding: 0.5em 1em;
	border: solid 3px #0a4;
	border-radius: 0 5px 5px 5px;
}

#ans-ans .box-title {
	position: absolute;
	display: inline-block;
	top: -27px;
	left: -3px;
	padding: 0 9px;
	height: 25px;
	line-height: 25px;
	font-size: 17px;
	background: #0a4;
	color: #ffffff;
	font-weight: bold;
	border-radius: 5px 5px 0 0;
}

#ans-ans p {
	margin: 0;
	padding: 0;
}

#ans-desc {
	color: #222;
	background-color: white;
	position: relative;
	margin: 2em 0;
	padding: 0.5em 1em;
	border: solid 3px #a0a;
	border-radius: 0 5px 5px 5px;
}

#ans-desc .box-title {
	position: absolute;
	display: inline-block;
	top: -27px;
	left: -3px;
	padding: 0 9px;
	height: 25px;
	line-height: 25px;
	font-size: 17px;
	background: #a0a;
	color: #ffffff;
	font-weight: bold;
	border-radius: 5px 5px 0 0;
}

#ans-desc p {
	margin: 0;
	padding: 0;
}

#prob-title,
#ans-title {
	position: relative;
	padding: 0.25em 1em;
	border-top: solid 2px black;
	border-bottom: solid 2px black;
	text-align:center;
}

#prob-title:before,
#ans-title:before,
#prob-title:after,
#ans-title:after {
	content: '';
	position: absolute;
	top: -7px;
	width: 2px;
	height: -webkit-calc(100% + 14px);
	height: calc(100% + 14px);
	background-color: black;
}

#prob-title:before,
#ans-title:before {
	left: 7px;
}

#prob-title:after,
#ans-title:after {
	right: 7px;
}

#prob-next, #ans-next{
	margin-left:auto;
	color:white;
}

#prob-first,#ans-first {
	margin-left:auto;
	margin-right:1em;
	color:white;
}

#prob-last,#ans-last {
	margin-right:auto;
	margin-left:1em;
	color:white;
}

#prob-prev10,#prob-next10,#ans-prev10,#ans-next10 {
	margin:0 auto;
	color:white;
}

#prob-top, #ans-top {
	margin:0 auto;
	color:white;
}

.button-row{
	display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
	margin-bottom:1em;
}

.button-row2 {
	display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
	margin-bottom:1em;
	margin-top:1em;
}

.right-end {
	margin-right:0px;
}

.desc-table {
	margin:1em 0;
}
.desc-table td {
	border:1px solid #222;
	padding:0.5em;
	text-align:center;
}

.divsqr {
	border: 1px solid #222;
	padding:0.5em;
}