@charset "utf-8";

/* @group ===== base ===== */
/* ================================================================= */

html{
	font-size: 10px;/*remの計算を簡単にするため*/
}


body{
	/*overflow-y: auto;短いページでもスクロールバーを出す。*/
	font-size: 1.8rem;
	line-height: 1.68;
	color: #333;
	font-family: "YakuHanJP", "Yu Gothic Medium", "游ゴシック体", YuGothic, sans-serif;
    -webkit-text-size-adjust: 100%;/*スマホで横向きにしたとき文字サイズが変わらないようにする。*/
	background:#ffd800;
}

@media (max-width:767px){
	body {
		font-size: 1.4rem;
	}
}
/* IE11は游ゴシックの下に隙間ができる。游ゴシックを使うときIE11はメイリオにする。 */
@media all and (-ms-high-contrast:none) {
  *::-ms-backdrop{
    font-family: "メイリオ", Meiryo, sans-serif;
  }
}


/*IE11用*/
main {
	display: block;
}

/*IE11用*/
picture {
	display: block;
}

/*IE11用 display:noneだとjQueryでサイズを取得できない。*/
@media all and (-ms-high-contrast:none) {
	*::-ms-backdrop, template {
		visibility: hidden;
		width: 0px;
		height: 0px;
		overflow: hidden;
		speak:none;/* 読み上げ無視。効果は不明。*/
	}
}

img,
svg,
iframe,
picture,
video {
	vertical-align: top;
}

img {
	max-width: 100%;
}

/* IE11でのSVGのサイズがおかしくなる問題
img[src$=".svg"] {
    width: 100%;
    height: auto;
}
*/

b,strong {
	font-weight: bold;
}

em,i {
	font-style: normal;
}

small {
	font-size: .8em;
}

/* 通常のテキストリンク */
a {
	color: blue;/* aタグに必ず色つける */
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

/* firefoxでの点線を消す。 */
a:active,a:hover {
    outline: 0;
}

/* ふわっと半透明になるホバー */
a.over {
	text-decoration: none;
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

a.over:hover {
	opacity: .7;
}


/* タッチデバイスでホーバーを無効。
ページを戻ってくるとホバーが効いたままになっているのを防ぐ。 */
@media (hover:none) {
    a:hover {
    	color: inherit;
    	text-decoration: underline;
    }

    a.over:hover {
		opacity: 1;
	}
}

/* @end */

/* @group ===== utility ===== */
/* ================================================================= */

.clearfix:after {
	content: "";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.inline-block{
	display: inline-block;
}

/* show hide */

@media screen and (min-width: 768px) {
	.is-sp {
		display: none;
	}
}

@media screen and (max-width: 767px){
	.is-pc {
		display: none;
	}
}

/* show hide
スマホ、タブレット、パソコンで切り分ける場合

pc:パソコン
tb:タブレット
sp:スマホ（.is-spと同じ）
pctb:パソコンとタブレット（.is-pcと同じ）
tbsp:タブレットとスマホ

*/

/* スマホ */
@media (max-width: 767px) {
  .only-pc,
  .only-tb,
  .only-pctb {
    display: none;
  }
}

/* タブレット */
@media (min-width: 768px) and (max-width: 991px) {
  .only-pc,
  .only-sp {
    display: none;
  }
}

/* パソコン */
@media (min-width: 992px) {
  .only-tb,
  .only-sp,
  .only-tbsp {
    display: none;
  }
}

/* @end */

/* @group ===== layout ===== */
/* ================================================================= */

.wrapper{
	padding:0 20px;
}
.contents{
	width: 100%;
	max-width:1000px;
	margin: 0 auto;
}
.contents-inner{
	padding: 3% 0 4.5%;
}

.head{padding:15px 0 0; width:100%; max-width:1000px;}

.contents_block{
	width:100%;
	padding:30px;
	box-sizing:border-box;
	background-color: #fff;
	border-radius:20px;
	margin-bottom:30px;
}

@media (max-width:980px){
	.wrapper{
		padding:0 15px;
	}
	.contents_block{
		width:100%;
		padding:25px;
		border-radius:20px;
		margin-bottom:30px;
	}
	.contents{
		width: 100%;
		padding: 0;
	}
}
@media (max-width:767px){
	.contents_block{
		width:100%;
		padding:25px 20px;
		border-radius:20px;
		margin-bottom:30px;
	}
}

@media (max-width:575px){
	.wrapper{
		padding:0 10px;
	}
	.contents {
		padding: 0;
	}
	.contents-inner {
		padding: 15px 0 20px;
	}
	.contents_block{
		padding:20px 20px;
	}
}
@media (max-width:480px){
	.contents {
		padding: 0;
	}
	.contents-inner {
		padding: 15px 0 20px;
	}
	.contents_block{
		padding:20px 15px;
	}
}

/* @end */

/* @group ===== form ===== */
/* ================================================================= */

input{
	background-color: #fff !important;
	border-radius: 5px;
	border: 1px solid #545454;
	width: 100%;
	padding: 0.3em 0.2em;
	font-size: 1em;
}

/* @end */



/* @group ===== components ===== */
/* ================================================================= */


/*********************************** ボタン *******************************/

.btn{
	color: #fff;
	max-width: 100%;
	background-color: #2d94cf;
	border: 2px solid #2d94cf;
	display: inline-block;
	line-height: 1.4;
	text-decoration: none;
	font-weight: bold;
	min-width: 240px;
	text-align: center;
	border-radius: 5px;
	padding: 0.56em 1em;
	transition: background-color 0.3s ease-in-out;
}
.btn:hover{
	background-color: #fff;
	color: #2d94cf;
}
.btn-cant-click{
	background-color: #bbbbbb;
	border: 2px solid #bbbbbb;
	pointer-events: none;
}
/* .btn-cant-click:hover{
	color: #bbbbbb;
} */

.btn.btn-arrow-icon{
	position: relative;
}
.btn.btn-arrow-icon{
	padding-right: 1.6em;
}
.btn.btn-arrow-icon::after{
	content: '';
    width: 0.5em;
    height: 0.5em;
    position: absolute;
    right: 20px;
    top: 50%;
    border-color: transparent;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    -webkit-transform: translate(0,-50%) rotate(45deg);
    transform: translate(0,-50%) rotate(45deg);
}

.btn.btn-arrow-icon:hover::after{
	border-top: 2px solid #2d94cf;
    border-right: 2px solid #2d94cf;
}
.btn-hint{
	min-width: auto;
	width: 28%;
    padding: 9px 0;
}
.btn-submit{
	min-width: auto;
	font-size: 1.4rem;
	line-height: 26px;
	padding: 0 0.6em;
}
.btn-print{
	font-size: 1.15em;
	margin-bottom: 1.6em;
}
.btn-close {
	font-size: 1.32em;
	width: 167px;
	display: block;
	min-width: auto;
	margin: 0 auto;
}
@media (max-width:980px){

	.btn-print {
		margin-bottom: 22px;
	}
}
@media (max-width:767px){
	.btn-submit {
		line-height: 23px;
	}
	.btn-hint {
		line-height: 1.4;
	}
}
@media (max-width:575px){

	.btn-submit {
		width: 100%;
	}
	.btn-hint {
		width: 32%;
		letter-spacing: normal;
	}
	.btn-print {
		margin-bottom: 18px;
	}
}
/*********************************** end ボタン *******************************/
/*********************************** タイトル *******************************/

.topics-title{
	color: #543005;
	font-size: 2em;
	font-weight: bold;
	line-height: 1.4;
	margin-bottom: 0.8em;
}

.title-obi{
	background-color: #51b639;
    color: #fff;
	padding: 12px 20px;
	font-weight: bold;
	line-height: 1.4;
}
.border-box .title-obi{
    margin: -20px -20px 20px;
}
@media (max-width:980px){
	.topics-title {
		margin-bottom: 2%;
		font-size: 1.6em;
	}


}
@media (max-width:767px){

	.topics-title {
		font-size: 1.5em;
	}
	.border-box .title-obi{
		margin: -15px -15px 15px;
		padding: 12px 15px;
	}
}
@media (max-width:575px){
	.topics-title {
		   margin-bottom:10px;
	}
	.border-box .title-obi {
		margin: -10px -10px 10px;
		padding: 10px 10px;
	}
}
/*********************************** end タイトル *******************************/
/*********************************** ボックス *******************************/

.border-box{
	border: 3px solid #51b639;
	border-radius: 5px;
	background-color: #fff;
	padding: 20px;
	margin-bottom: 3em;
}


.btn-tow-outer{
	text-align: center;
	letter-spacing: -0.4em;
	margin-bottom: 1.5em;
}
.btn-item{
	display: inline-block;
	letter-spacing: normal;
	margin-bottom: 1em;
}
.btn-item:nth-of-type(1){
	margin-right: 30px;
}
@media (max-width:980px){

	.btn-tow-outer {
		margin-bottom: 3%;
	}
	.border-box {
		margin-bottom: 6%;
	}

}

@media (max-width:767px){
	.border-box {
		padding: 15px;
	}
	.btn-item:nth-of-type(1) {
		margin-right: 4%;
	}
}
@media (max-width:575px){
	.border-box {
		padding: 10px;
		margin-bottom: 20px;
	}
	.btn-item:nth-of-type(1) {
		margin-right: 0;
	}
	.btn-item{
		width: 100%;
	}
	.btn-tow-outer {
		margin-bottom: 10px;
	}
}
/*********************************** end ボックス *******************************/

/* @end components */


/*********************************** 黒板 *******************************/

.blackboard{
	border: 1px solid #545454;
	width: 720px;
	max-width: 100%;
	margin: 0 auto;
	margin-bottom: 2.2em;
}
.blackboard-inner{
	border: 6px solid #cfcfcf;
	background-color: #336533;
	height: 100%;
	width: 100%;
	position: relative;
	/* padding-top: 60.4% */
}

.blackboard-content{
	width: 100%;
	height: 0;
	padding-bottom: 63.74%;
	overflow-y: scroll;
}

  .blackboard-content-in{
  	height:100%;
  	width:100%;
  	/* text-align: center; */
  	padding: 3% 5%;
  }
    .blackboard-content-in img{
    	width:100%;
    }

.blackboard-bottom{
	letter-spacing: -0.4em;
	border-top: 3px solid #cfcfcf;
	width: 100%;
	padding: 8px 0;
}


.blackboard .student-answer-block{
    letter-spacing: normal;
	display: inline-block;
    vertical-align: middle;
    width: 31.5%;
    text-align: center;
}
.blackboard .student-answer-contents{
	text-align: left;
	display: inline-block;
}
.student-answer-title{
	font-weight: bold;
	font-size: 0.9em;
	color: #fff;
}
.input-answer{
	width: 130px;
	display: inline-block;
	position:relative;
}

.ans-unit{
	font-size:0.5em;
	display:inline-block;
	line-height: 100%;
	position:absolute;
	right:0.3em;
	bottom:0.3em;
}
.submit-outer{
	display: inline-block;
}
.hint-title{

}

.hint-title::after{
	content: '\A';
	white-space: pre;
}
.hint-num{
	font-size: 1.3em;
}
.blackboard .hint-block{
	letter-spacing: normal;
	display: inline-block;
	vertical-align: middle;
	width: 35.5%;
	text-align: right;
	position: relative;
}
.hint-block::before{
	content: '';
	background:-webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255,1)), color-stop(33%, rgba(255,255,255,1)), color-stop(33%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0))) 0% 0%;
	background:linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,1) 33%, rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, 0) 100%) 0% 0%;
	background-size:2px 6px;
	width: 2px;
	height: 100%;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
}
.blackboard .btn-arrow-block{
	letter-spacing: normal;
	display: inline-block;
	vertical-align: middle;
	width: calc( 99.9% - 31.5% - 35.5%);
	text-align: center;
}
.btn-arrow{
    letter-spacing:-0.4em;
}
.border-btn-arrow{
	border: 3px solid #fff;
	width: 3em;
	height: 3em;
	position: relative;
	display: inline-block;
	border-radius: 3em;
	margin-left: 8px;
	letter-spacing: normal;
}
.border-btn-arrow:nth-of-type(1){
	margin-left:0;
}
.border-btn-arrow::before{
	content: '';
	width: 0.8em;
	height: 0.8em;
	position: absolute;
	left: 50%;
	top: 50%;
	border-color: transparent;
	border-top: 3px solid #fff;
	border-right: 3px solid #fff;
}
.border-btn-arrow.up::before{
    -webkit-transform: translate(-50%,-50%) rotate(-45deg);
	transform: translate(-50%,-50%) rotate(-45deg);
	margin-top: 0.3em;
}
.border-btn-arrow.down::before{
    -webkit-transform: translate(-50%,-50%) rotate(135deg);
	transform: translate(-50%,-50%) rotate(135deg);
	margin-top: -0.2em;
}
.border-btn-arrow.back-to-top::before{
    -webkit-transform: translate(-50%,-50%) rotate(-45deg);
	transform: translate(-50%,-50%) rotate(-45deg);
}
.border-btn-arrow.back-to-top::after{
	content: '';
	width: 0.8em;
	height: 0.8em;
	position: absolute;
	left: 50%;
	top: 50%;
	margin-top: 8px;
	border-color: transparent;
	border-top: 3px solid #fff;
	border-right: 3px solid #fff;
	-webkit-transform: translate(-50%,-50%) rotate(-45deg);
	transform: translate(-50%,-50%) rotate(-45deg);
}

.btn-blackboard-in-print{
	margin-bottom: 8px;
	/* display: none; */
}
.btn-blackboard-in-print .btn{
	min-width: auto;
	font-size: 1.4rem;
	padding: 0 10px;
	line-height: 26px;
}



.check-the-answer-block{
	letter-spacing: normal;
	display: inline-block;
	vertical-align: middle;
	width: calc( 31.5% + 35.5%);
	color: #fff;
	padding-left: 4%;
	padding-right: 10px;
}
.check-the-answer-text{
	font-weight: bold;
	font-size: 1.5em;
}
.check-the-answer-block .answer-result{
	color: #e10808;
	/* font-weight: bold; */
	font-size: 1.3em;
	background-color: #fff;
	padding: 5px 10px;
	border-radius: 10px;
	display: inline-block;
	margin-right: 10px;
}
.check-the-answer-block .answer-result.answer-result-ok{
	color:#e1a408;
}
@media (max-width:980px){
	.blackboard {
		margin-bottom: 4%;
	}
}

@media (max-width:767px){
	.blackboard-bottom {

		padding: 8px 20px;
	}
	.blackboard .student-answer-block {
		width: 100%;
		margin-bottom: 15px;
	}
	.blackboard .student-answer-contents {
		width: 100%;
		letter-spacing: -0.4em;
	}
	.student-answer-title {
		letter-spacing: normal;
		margin-bottom:5px;
		font-size: 1em;
	}
	.input-answer {
		width: calc(99.9% - 60px);
		letter-spacing: normal;
	}
	.submit-outer {
		letter-spacing: normal;
		width: 50px;
		margin-left: 10px;
	}
	.hint-block::before{
		content: none;
	}
	.blackboard .hint-block {
		width: 67%;
		text-align: center;
	}
	.check-the-answer-text {

		font-size: 1.4em;
	}
	.check-the-answer-block .answer-result {
		font-size:1.3em;
	}
}
@media (max-width:575px){


	.blackboard {
		margin-bottom: 30px;
	}



	.blackboard .hint-block {
		width: 100%;
		margin-bottom: 20px;
		/* letter-spacing: -0.4em; */
		text-align: center;
	}

	.blackboard .btn-arrow-block {
		width: 100%;
		letter-spacing: -0.4em;
	}
	.blackboard-bottom {padding: 8px 12px;}

.check-the-answer-block {
    width:100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 10px;
    margin-top: 6px;
}
	.check-the-answer-text {

		font-size: 1.2em;
	}
	.check-the-answer-block .answer-result {
		font-size:1.2em;
	}

	.btn-blackboard-in-print {
		display: inline-block;
		letter-spacing: normal;
		width: calc(99.9% - 150px);
		vertical-align: middle;
	}
	.btn-blackboard-in-print .btn {

		line-height: 40px;
		width: 100%;
	}
	.btn-arrow {
		display: inline-block;
		width: 150px;
		vertical-align: middle;
	}

}



@media (max-width:360px){
.btn-blackboard-in-print .btn {
padding: 10px;
		line-height: 1.4;
		width: 100%;
	}
}

/*********************************** end 黒板 *******************************/

.blackboard-modal{
	background-color:rgba(0,0,0,0.5);
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	z-index:999;
	display:flex;
	justify-content: center;
	flex-direction :column;
}
.loading img{
	display:block;
	max-width:100%;
	margin:0 auto;

}


/*********************************** 送信確認 *******************************/
.system-error{

	display:none;
	width: 80%;
	margin: 0 auto;

}
#ans-result{

	display:none;
	width: 80%;
	margin: 0 auto;
}
#ans-result{

    display:none;
    width: 80%;
    margin: 0 auto;
}
.hint_confirm{
	display:none;
	width: 80%;
	margin: 0 auto;
}
.confirm{
    display:none;
    width: 80%;
    margin: 0 auto;
}
.confirm-box{background-color: #fff;border-radius: 5px;padding: 20px;margin-bottom: 20px;}
	.confirm-text{
		font-weight: bold;
		font-size: 1.1em;
	}
	.confirm-text .note{
	font-weight: normal;
	font-size: 0.9em;
	}
	.confirm-text .submit-student-answer{
	display: inline-block;
	font-size: 2em;
	width: 80%;
	text-align: center;
	}
.confirm-btn-block{
	min-width: auto;
	text-align: right;
	}
.confirm-btn-block .btn{min-width: auto;}


@media (max-width:980px){
	.confirm-box{

	}
	.confirm-text{
		font-weight: bold;
		font-size: 1.1em;
	}
	.confirm-text .note{
	font-weight: normal;
	font-size: 0.9em;
	}
	.confirm-text .submit-student-answer{
	display: inline-block;
	font-size: 2em;
	width: 80%;
	text-align: center;
	}
	.confirm-btn-block{
	min-width: auto;
	text-align: right;
	}
	.confirm-btn-block .btn{

	}
}
@media (max-width:575px){
	.confirm{
		width: 100%;
	}
	.confirm-box{

	}
	.confirm-text{

	}
	.confirm-text .note{

	}
	.confirm-text .submit-student-answer{

	}
	.confirm-btn-block{

	}
	.confirm-btn-block .btn{

	}
}

/***********************************　end 送信確認 *******************************/


/*********************************** プリント *******************************/

.print{
	text-align: center;
	margin-bottom: 1em;
}
.print-text{
	font-size: 1.3rem;
}


@media (max-width:980px){
	.print {
		margin-bottom: 2%;
	}
}
@media (max-width:575px){
	.print {
		margin-bottom:10px;
	}
}

/***********************************　end プリント *******************************/

/*********************************** フッター *******************************/
.footer{
	text-align: center;
	margin-bottom: 1em;
}

@media (max-width:980px){

}

@media (max-width:575px){
.footer {
   padding:0 12px;
}
}
/*********************************** end フッター *******************************/
