@font-face {
	font-family: 'arrows';
	src:url('../fonts/arrows/arrows.eot');
	src:url('../fonts/arrows/arrows.eot?#iefix') format('embedded-opentype'),
		url('../fonts/arrows/arrows.woff') format('woff'),
		url('../fonts/arrows/arrows.ttf') format('truetype'),
		url('../fonts/arrows/arrows.svg#arrows') format('svg');
	font-style: normal;
}

body {
	padding: 0 !important;  /* 「アンカー広告」がページを押し下げないように指定 */
}

#modal-hint {
	background-color:#44fd;
}
#hint-body{
	color:#444;
}
.hint-spc {
	text-align:center;
	border:2px solid #02d;
	border-radius:5px;
	margin:10px auto;
	padding:10px;
}
.hint-spc2 {
	text-align:center;
	margin-top:5px;
	margin-bottom:5px;
}

#tsaOthMessage
{
	color:brown;
}

#tsaOthControlPanelStart{
	text-align:center;
}

.startoth {
	color:brown;
	font-weight:700;
	margin-bottom:1em;
}

#helpoth {
	color:white;
	margin-top:1em;
}

#helpline {
	text-align:right;
}

.result_blue {
	background:blue;
	color:white;
	font-weight:900;
}

.result_red {
	background:#d42;
	color:white;
	font-weight:900;
}

.result_not {
	background:#060;
	color:white;
	font-weight:900;
}

.stopoth {
	color:white;
	font-weight:700;
	margin-bottom:1em;
}

#tsaOthPieceStatus {
	color:#00f;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	text-align:center;
	background:#fff;
	padding:1em;
	border: 2px solid #00f;
	margin-bottom:1em;
}

#tsaOthPieceStatusLine{
	color:#00f;
}
.prob-wrapper {
	background:#259;
	overflow-y : scroll;
}
#word-answer {
	border: 1px solid #000;
	padding-top:0.2em;
	padding-bottom:0.2em;
	font-size:120%;
}

#board {
	padding:1em;
}

.kbtable  {
	width: 100%;
	margin:1em auto;
	table-layout:fixed;
}

.kbtr {
	width:100%;
}

.kbtd {
	text-align:center;
}

.kbbtn {
	padding:0.5em;
	width:3em;
	margin:0 auto;
}


#tsaOthTable{
	width:100%;
	background:#484;
	margin: 0 auto;
	border: 2px solid #fff;
}

.cellspe
{
	color:white;
	background: #6a6;
	border : 2px solid #8f8;
	padding:0.1em;
	margin:0.5em;
	text-align:center;
	vertical-align:middle;
	width:60px;
	height:60px;
	font-size:12pt;
}

.cell0
{
	color:white;
	border : 1px solid white;
	padding:0.1em;
	margin:0.5em;
	text-align:center;
	vertical-align:middle;
	width:60px;
	height:60px;
	font-size:12pt;
}
.st1
{
	display:inline-block;
	line-height:40px;
	background:#d42;
	color:white;
	text-align:center;
	vertical-align:middle;
	width:40px;
	height:40px;
	font-size:10pt;
	font-weight:700;
	border-radius:50%;
	filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
}
.st2
{
	display:inline-block;
	line-height:40px;
	background:#02d;
	color:white;
	margin:0 auto;
	text-align:center;
	vertical-align:middle;
	width:40px;
	height:40px;
	font-size:10pt;
	font-weight:700;
	border-radius:50%;
	filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
}

.prob-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
}

.prob-wrapper .bb-bookblock {
	width: 100%;
	height: 100%;
	-webkit-perspective: 2000px;
	perspective: 2000px;
}

.prob-side {
	width: 50%;
	float: left;
	height: 100%;
	overflow: hidden;
	background: #fff;
	/* Centering with flexbox */
	display: -webkit-box;
	display: -moz-box;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: row;
	flex-direction: row;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-pack: center;
	-moz-box-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-moz-box-align: center;
	-webkit-align-items: center;
	align-items: center;
}

.prob-firstpage h1 {
	font-size: 2.625em;
	line-height: 1.3;
	margin: 0;
	font-weight: 300;
	background: #fff;
}

.prob-firstpage h1 span {
	display: block;
	font-size: 60%;
	opacity: 0.3;
	padding: 0 0 0.6em 0.1em;
}

.prob-firstpage {
	text-align: center;
	padding-top: 10%;
	width: 50%;
	float: left;
	height: 100%;
}

.prob-allpage {
	text-align: center;
	padding-top: 0%;
	width: 100%;
	float: left;
	height: 100%;
}

.prob-toppage-title {
	text-align: center;
	padding-top: 20px;
	padding-left:3%;
	padding-right:3%;
	width: 100%;
	float: left;
	height: 100%;
	color:white;
	background: #484;
}

.prob-toppage-title2 {
	text-align: center;
	padding-top: 20px;
	padding-left:3%;
	padding-right:3%;
	width: 100%;
	float: left;
	height: 100%;
	color:white;
	background: #07c;
}



.prob-endpage {
	text-align: center;
	padding-top: 20px;
	width: 100%;
	float: left;
	height: 100%;
	background:#259;
}

.prob-endpage #end {
	margin-top:40px;
}

.prob-probpage-title {
	text-align: center;
	padding-top: 20px;
	padding-left:5%;
	padding-right:5%;
	width: 100%;
	float: left;
	height: 100%;
	background: #07c;
}

.prob-anspage-title {
	text-align: center;
	padding-top: 20px;
	padding-left:5%;
	padding-right:5%;
	width: 100%;
	float: left;
	height: 100%;
	background:#080;
	color:white;
}

.prob-side p {
	padding: 8%;
	font-size: 1.8em;
	font-weight: 300;
}

.prob-wrapper h3 {
	font-size: 1.4em;
	font-weight: 300;
	margin: 0.4em 0 1em;
}


.prob-icon:before {
	font-family: 'arrows';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	font-size: 30px;
	line-height: 40px;
	display: block;
	-webkit-font-smoothing: antialiased;
}

.prob-icon-first:before,
.prob-icon-last:before {
	content: "\e002";
}

.prob-icon-arrow-left:before,
.prob-icon-arrow-right:before {
	content: "\e003";
}

.prob-icon-arrow-left:before,
.prob-icon-first:before {
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}

/* No JS */
.no-js .prob-wrapper {
	height: auto;
}

.no-js .prob-content {
	height: 470px;
}

#float-menu {
    position: relative;
    width: 100px;
    height: 470px;
    margin-left: 110px;
    display: block;
    border: #e0e0e0 1px solid;
    z-index: 2;
	background-color: red;
	
}

.prob-boardpage-title {
	text-align: center;
	padding-top: 20px;
	width: 100%;
	float: left;
	height: 100%;
	background: #66a;
}

.prob-wrapper > navtsw {
	width: 40px;
	height: 40px;
	position: fixed;
	top: 5px;
	left:5px;
	margin-top:2px;
	z-index: 1000;
	text-align: center;
}
.prob-wrapper > navt {
	width: 160px;
	height: 40px;
	position: fixed;
	top: 5px;
	left:50px;
	z-index: 1000;
	text-align: center;
}
.prob-wrapper > navt .rect {
	display: inline-block;
	width: 40px;
	height: 40px;
	text-align: center;
	border-radius: 2px;
	background: #1baede;
	color: #fff;
	font-size: 0;
	margin: 2px;
}
.prob-wrapper > navt .rectExit {
	display: inline-block;
	width: 40px;
	height: 40px;
	text-align: center;
	border-radius: 2px;
	color: #fff;
	font-size: 0;
	margin: 2px;
	margin-left:20px;
}

.prob-wrapper > navtssw {
	width: 40px;
	height: 40px;
	position: fixed;
	top: 5px;
	left:5px;
	margin-top:2px;
	z-index: 1000;
	text-align: center;
}

.prob-wrapper > navts {
	width: 190px;
	height: 40px;
	position: fixed;
	top: 5px;
	left:50px;
	z-index: 1000;
	text-align: center;
}
.prob-wrapper > navts .rect {
	display: inline-block;
	width: 40px;
	height: 40px;
	text-align: center;
	border-radius: 2px;
	background: #1baede;
	color: #fff;
	font-size: 0;
	margin: 2px;
}
.prob-wrapper > navts .rectExit {
	display: inline-block;
	width: 40px;
	height: 40px;
	text-align: center;
	border-radius: 2px;
	color: #fff;
	font-size: 0;
	margin: 2px;
}

#proborder {
	margin-left:20px;
	padding:5px;
}

pre {
	color:#fff;
}

.container {
	max-width:100%;
}

.prob-sp
{
	margin-right:2em;
}

#top_box {
	width:300px;
	margin:0 auto;
	text-align:left;
	border: 3px solid #fff;
	padding:1em;
	border-radius: 10px;        /* CSS3草案 */  
    -webkit-border-radius: 10px;    /* Safari,Google Chrome用 */  
	-moz-border-radius: 10px;   /* Firefox用 */  
}

.ret-box {
	margin-top:1em;
}

.box48 {
	border: 2px solid #fff;
	background:#fff;
	border-radius: 5px;        /* CSS3草案 */  
    -webkit-border-radius: 5px;    /* Safari,Google Chrome用 */  
	-moz-border-radius: 5px;   /* Firefox用 */
	margin-left:2em;
}

.qbox48 {
	margin-left:2em;
}

#modal_word{
	color:#000;
}

#body1 p {
	color:#000;
}

.word-title {
	font-weight:700;
	background:#ff8;
	padding: 0.2em;
	border: 1px solid #222;
}

#word-info, #word-answer {
	font-family: 'Courier New', Courier, monospace;
}

#start {
	margin-top:0px;
	text-align:center;
}

#cancel-title, #cancel-body {
	color: #222;
}
/*====================
 - 〜479px：SP縦
 - 480px〜599px：SP横
 - 600px〜959px：タブレット
 - 960px〜1279px：小型PC
 - 1280px〜：大型PC
====================*/







@media screen and (max-width: 61.75em){
	.prob-side {
		font-size: 70%;
	}
}

@media screen and (max-width: 33em){
	.prob-side {
		font-size: 60%;
	}
}

/* 〜479px：SP縦
------------------------------ */
h1 {
	font-size: 1.6em;
	line-height: 1.9;
	margin: 0;
	font-weight: 700;
	color: #fff;
}

h2 {
	font-size: 1.5em;
	line-height: 1.9;
	margin: 0;
	font-weight: 700;
	color: #fff;
}

p {
	font-size: 1.5em;
	line-height: 1.3;
	margin: 0;
	font-weight: 700;
	color: #fff;
	margin-top:5px;
}

a {
	color: #fff;
}

a:hover {
	color: #1bdeae;
	opacity:0.8;
}

#top_title {
	margin-top:10px;
}

#top_title2 {
	margin-bottom:1.5em;
}

#top_1 {
	margin-top:25px;
}

#top_2 {
	margin-bottom:20px;
}
#prob, #ans{
	margin-top:30px;
}

div.elmLeft{
	text-align: left;
	float: left;
}

div.elmRight{
	text-align: right;
}

.gohome {
	margin-left:1em;
	margin-top:2em;
}

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

.icon1 {
	margin-right:1em;
	padding:5px;
}

/* 飾り */
.box1 {
    position: relative;
	margin-left: 10px;
	margin-right: 10px;
    padding: 10px 10px 7px;
	border: solid 2px #FFC107;
}
.box1 p {
    margin: 0; 
    padding: 0;
}

.box2 {
    position: relative;
	margin-left: 10px;
	margin-right: 10px;
    padding: 10px 10px 7px;
	border: solid 2px #81aa07;
	margin-top:10px;
}
.box2 p {
    margin: 0; 
    padding: 0;
}
/* 480px〜599px：SP横
------------------------------ */
@media screen and (min-width:480px) and (max-width:599px) {
	h1 {
		font-size: 1.6em;
		line-height: 1.9;
		margin: 0;
		font-weight: 700;
		color: #fff;
	}
	
	h2 {
		font-size: 1.4em;
		line-height: 1.9;
		margin: 0;
		font-weight: 700;
		color: #fff;
	}
	
	p {
		font-size: 1.3em;
		line-height: 1.3;
		margin: 0;
		font-weight: 700;
		color: #fff;
	}
	
	a {
		color: #fff;
	}
	
	a:hover {
		color: #1bdeae;
        opacity:0.8;
    }
	
	#top_title {
		margin-top:0px;
	}
	#top_1 {
		margin-top:25px;
	}
	#top_2 {
		margin-top:20px;
	}
	#prob, #ans{
		margin-top:30px;
	}
	.copyright {
		left:10px;
		top:5px;
		text-align:right;
		margin-right:10px;
		font-size:1em;
		color:white;
	}
	
/* 飾り */
	.box1 {
	    position: relative;
	    padding: 10px 10px 7px;
		border: solid 2px #FFC107;
		margin-left: 10px;
		margin-right: 10px;
	}
	.box1 p {
	    margin: 0; 
	    padding: 0;
	}
	.box2 {
		position: relative;
		margin-left: 10px;
		margin-right: 10px;
			padding: 10px 10px 7px;
		border: solid 2px #81aa07;
		margin-top:10px;
	}
	.box2 p {
		margin: 0; 
		padding: 0;
	}
}
/* 600px〜959px：タブレット
------------------------------ */
@media screen and (min-width:600px) and (max-width:959px) {
    h1 {
        font-size: 1.8em;
        line-height: 1.9;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    h2 {
        font-size: 1.5em;
        line-height: 1.9;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    p {
        font-size: 1.5em;
        line-height: 1.3;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    a {
        color: #fff;
    }
    
    a:hover {
		color: #1bdeae;
        opacity:0.8;
    }
    
	#top_title{
		margin-top:30px;
	}
	#top_title2 {
		margin-bottom:2.0em;
	}
	
	#top_1 {
		margin-top:30px;
	}
	#top_2 {
		margin-top:20px;
	}
	#prob, #ans{
		margin-top:50px;
	}
	.copyright {
		left:10px;
		top:10px;
		text-align:right;
		margin-right:10px;
		font-size:1em;
		color:white;
	}
	
/* 飾り */
.box1 {
    position: relative;
    padding: 25px 10px 7px;
	border: solid 2px #FFC107;
	width:80%;
	margin: 0 auto;
}
.box1 .box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #FFC107;
    color: #ffffff;
    font-weight: bold;
}
.box1 p {
    margin: 0; 
    padding: 0;
}
	.box2 {
		position: relative;
		width:80%;
		margin: 0 auto;
		padding: 25px 10px 7px;
		border: solid 2px #81aa07;
		margin-top:10px;
	}
	.box2 .box-title {
		position: absolute;
		display: inline-block;
		top: -2px;
		left: -2px;
		padding: 0 9px;
		height: 25px;
		line-height: 25px;
		font-size: 17px;
		background: #81aa07;
		color: #ffffff;
		font-weight: bold;
	}
	.box2 p {
		margin: 0; 
		padding: 0;
    }
    #probn {
		margin-top:15%;
		margin-bottom:30px;
	}
	#ansn {
		margin-top:15%;
		margin-bottom:30px;
	}
    #end {
		margin-top:15%;
		margin-bottom:30px;
	}
	#endmsg {
		margin-top:15%;
		margin-bottom:30px;
	}
	.cell0
	{
		color:white;
		border : 1px solid white;
		padding:0.1em;
		margin:0.5em;
		text-align:center;
		vertical-align:middle;
		width:100px;
		height:100px;
		font-size:12pt;
	}
	.st1
	{
		display:inline-block;
		line-height:80px;
		background:#d42;
		color:white;
		text-align:center;
		vertical-align:middle;
		width:80px;
		height:80px;
		font-size:13pt;
		font-weight:700;
		border-radius:50%;
		filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
	}
	.st2
	{
		display:inline-block;
		line-height:80px;
		background:#02d;
		color:white;
		margin:0 auto;
		text-align:center;
		vertical-align:middle;
		width:80px;
		height:80px;
		font-size:13pt;
		font-weight:700;
		border-radius:50%;
		filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
	}

	#word-answer {
		margin-left:1em;
	}

}
/* 960px〜1279px：小型PC
------------------------------ */
@media screen and (min-width:960px) and (max-width:1279px) {
    h1 {
        font-size: 1.9em;
        line-height: 1.9;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    h2 {
        font-size: 1.6em;
        line-height: 1.9;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    p {
        font-size: 1.5em;
        line-height: 1.3;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    a {
        color: #fff;
    }
    
    a:hover {
		color: #1bdeae;
        opacity:0.8;
    }
    
	#top_title{
		margin-top:40px;
	}
	#top_title2 {
		margin-bottom:2.5em;
	}
	#top_1 {
		margin-top:25px;
	}
	#top_2 {
		margin-top:20px;
	}
	#prob, #ans{
		margin-top:50px;
	}
	.copyright {
		left:10px;
		top:10px;
		text-align:right;
		margin-right:10px;
		font-size:1em;
		color:white;
	}

	
	/* 飾り */
.box1 {
    position: relative;
    padding: 25px 10px 7px;
	border: solid 2px #FFC107;
	width:50%;
	margin: 0 auto;
}
.box1 .box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #FFC107;
    color: #ffffff;
    font-weight: bold;
}
.box1 p {
    margin: 0; 
    padding: 0;
}
	.box2 {
		position: relative;
		width:50%;
		margin: 0 auto;
		padding: 25px 10px 7px;
		border: solid 2px #81aa07;
		margin-top:10px;
	}
	.box2 .box-title {
		position: absolute;
		display: inline-block;
		top: -2px;
		left: -2px;
		padding: 0 9px;
		height: 25px;
		line-height: 25px;
		font-size: 17px;
		background: #81aa07;
		color: #ffffff;
		font-weight: bold;
	}
	.box2 p {
		margin: 0; 
		padding: 0;
    }
    #probn {
		margin-top:20%;
		margin-bottom:30px;
	}
	#ansn {
		margin-top:20%;
		margin-bottom:30px;
	}
    #end {
		margin-top:20%;
		margin-bottom:30px;
	}
	#endmsg {
		margin-top:20%;
		margin-bottom:30px;
	}
	.cell0
	{
		color:white;
		border : 1px solid white;
		padding:0.1em;
		margin:0.5em;
		text-align:center;
		vertical-align:middle;
		width:100px;
		height:100px;
		font-size:12pt;
	}
	.st1
	{
		display:inline-block;
		line-height:80px;
		background:#d42;
		color:white;
		text-align:center;
		vertical-align:middle;
		width:80px;
		height:80px;
		font-size:13pt;
		font-weight:700;
		border-radius:50%;
		filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
	}
	.st2
	{
		display:inline-block;
		line-height:80px;
		background:#02d;
		color:white;
		margin:0 auto;
		text-align:center;
		vertical-align:middle;
		width:80px;
		height:80px;
		font-size:13pt;
		font-weight:700;
		border-radius:50%;
		filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
	}
	#word-answer {
		margin-left:1em;
	}		
}
/* 1280px〜：大型PC
------------------------------ */
@media screen and (min-width:1280px) {
    h1 {
        font-size: 1.8em;
        line-height: 1.9;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    h2 {
        font-size: 1.5em;
        line-height: 1.9;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    p {
        font-size: 1.5em;
        line-height: 1.3;
        margin: 0;
        font-weight: 700;
        color: #fff;
    }
    
    a {
        color: #fff;
    }
    
    a:hover {
		color: #1bdeae;
        opacity:0.8;
    }
    
	#top_title{
		margin-top:40px;
	}
	#top_title2 {
		margin-bottom:2.6em;
	}

	#top_1 {
		margin-top:25px;
	}
	#top_2 {
		margin-top:20px;
	}
	#prob, #ans{
		margin-top:50px;
	}
	.copyright {
		left:10px;
		top:10px;
		text-align:right;
		margin-right:10px;
		font-size:1em;
		color:white;
	}
	
/* 飾り */
.box1 {
    position: relative;
    padding: 25px 10px 7px;
	border: solid 2px #FFC107;
	width:50%;
	margin: 0 auto;
}
.box1 .box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #FFC107;
    color: #ffffff;
    font-weight: bold;
}
.box1 p {
    margin: 0; 
    padding: 0;
}
	.box2 {
		position: relative;
		width:50%;
		margin: 0 auto;
		padding: 25px 10px 7px;
		border: solid 2px #81aa07;
		margin-top:10px;
	}
	.box2 .box-title {
		position: absolute;
		display: inline-block;
		top: -2px;
		left: -2px;
		padding: 0 9px;
		height: 25px;
		line-height: 25px;
		font-size: 17px;
		background: #81aa07;
		color: #ffffff;
		font-weight: bold;
	}
	.box2 p {
		margin: 0; 
		padding: 0;
    }
    #probn {
		margin-top:15%;
		margin-bottom:30px;
	}
	#ansn {
		margin-top:15%;
		margin-bottom:30px;
	}
    #end {
		margin-top:15%;
		margin-bottom:30px;
	}
	#endmsg {
		margin-top:15%;
		margin-bottom:30px;
	}

	.cell0
{
	color:white;
	border : 1px solid white;
	padding:0.1em;
	margin:0.5em;
	text-align:center;
	vertical-align:middle;
	width:100px;
	height:100px;
	font-size:12pt;
}
.st1
{
	display:inline-block;
	line-height:80px;
	background:#d42;
	color:white;
	text-align:center;
	vertical-align:middle;
	width:80px;
	height:80px;
	font-size:13pt;
	font-weight:700;
	border-radius:50%;
	filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
}
.st2
{
	display:inline-block;
	line-height:80px;
	background:#02d;
	color:white;
	margin:0 auto;
	text-align:center;
	vertical-align:middle;
	width:80px;
	height:80px;
	font-size:13pt;
	font-weight:700;
	border-radius:50%;
	filter: drop-shadow(5px 5px 3px rgba(0,0,0,.8));
}

	#word-answer {
		margin-left:1em;
	}		

}
@media screen and (orientation: landscape) {
	/* 横向きの場合のスタイル */

	.nav-box{
		display:flex;
		margin:0 auto;
		width:480px;
	}
	
	.s_b{
	}

	.order1 {
		order: 1;
	  }
	  .order2 {
		order: 2;
	  }
	  .order3 {
		order: 3;
	  }
	  .order4 {
		order: 4;
	  }
	  .order5 {
		order: 5;
	  }
	  .order6 {
		order: 6;
	  }
	  .order7 {
		order: 7;
	  }
	  .order8 {
		order: 8;
	  }
	
	.prob-wrapper > nav {
		width: 100%;
		height: 40px;
		margin: 1em auto 0;
		position: fixed;
		bottom: 20px;
		z-index: 1000;
		text-align: center;
	}


	.prob-wrapper > nav .rect {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
	}

	.prob-wrapper > nav .rectFirst {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-Right:20px;
	}
	
	.prob-wrapper > nav .rectLast {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-left:20px;
	}

	.prob-wrapper > nav .rectExit {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-left:20px;
	}


	.prob-wrapper > nav .rectAP {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1b8040;
		color: #fff;
		font-size: 0;
		margin: 2px;
	}
	
	.prob-wrapper > nav .rectAS {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1bdeae;
		color: #fff;
		font-size: 0;
		margin: 2px;
	}

	.prob-wrapper > nav .rectsok {
		display: inline-block;
		width: 80px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-left:10px;
	}

	.prob-wrapper > nav .rectsno {
		display: inline-block;
		width: 80px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
	}

	.prob-wrapper > nav a:hover {
		opacity: 0.6;
		color: #1bdeae;	
	}
}
@media screen and (orientation: portrait) {
	/* 縦向きの場合のスタイル */

	.nav-box{
		display:flex;
		margin:0 auto;
		height:88px;
		width:300px;
		flex-wrap: wrap;
	}

	.s_b{
		display:inline-block;
		margin:0 auto;
		width:130px;
		height:44px;
		padding-bottom:0px;
	}

	.order1 {
		order: 1;
	  }
	  .order2 {
		order: 2;
	  }
	  .order3 {
		order: 3;
	  }
	  .order4 {
		order: 4;
	  }
	  .order5 {
		order: 5;
	  }
	  .order6 {
		order: 7;
	  }
	  .order7 {
		order: 6;
	  }
	  .order8 {
		order: 8;
	  }

	  .prob-wrapper > nav {
		width: 100%;
		margin: 1em auto 0;
		position: fixed;
		bottom: 20px;
		z-index: 1000;
		text-align: center;
	}
	
	.prob-wrapper > nav .rect {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
	}
	
	.prob-wrapper > nav .rectFirst {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-Right:20px;
	}
	
	.prob-wrapper > nav .rectLast {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-left:20px;
	}

	.prob-wrapper > nav .rectAP {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1b8040;
		color: #fff;
		font-size: 0;
		margin: 2px;
	}
	
	.prob-wrapper > nav .rectAS {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1bdeae;
		color: #fff;
		font-size: 0;
		margin: 2px;
	}

	.prob-wrapper > nav .rectExit {
		display: inline-block;
		width: 40px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		font-size: 0;
		margin: 2px;
	}

	.prob-wrapper > nav .rectsok {
		display: inline-block;
		width: 80px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-left:10px;
	}

	.prob-wrapper > nav .rectsno {
		display: inline-block;
		width: 80px;
		height: 40px;
		text-align: center;
		border-radius: 2px;
		background: #1baede;
		color: #fff;
		font-size: 0;
		margin: 2px;
		margin-left:10px;
		margin-right:10px;
	}

	.prob-wrapper > nav a:hover {
		opacity: 0.6;
		color: #1bdeae;	
	}
	
	#probn {
		margin-top:20%;
		margin-bottom:30px;
	}
	#ansn {
		margin-top:20%;
		margin-bottom:30px;
    }
	#end {
		margin-top:20%;
		margin-bottom:30px;
	}
	#endmsg {
		margin-top:20%;
		margin-bottom:30px;
    }
}
