@keyframes snow {
0%{
	background-position:0 0;
}
100%{
background-position:500px 500px;
}
}

body{
	color: #003300;
	margin: 0 auto;
	padding:0;
	text-align: center;
	background:url(img/banner/main.png);
	font-family:'Lucida Grande', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, メイリオ, sans-serif;
}

a:link {
	color: #006666;
	font-weight:500;
	text-decoration: none;
}
a:visited {
	color: #666666;
}
a:active {
	color: #003333;
}
a:hover {
	color: #003333;
	text-decoration: underline;
}

/* ヘッダー */
header {
	margin:0;
}
header h1 {
	text-align: center;
	margin: 0 auto;

}
header img {
	width:100%;
	max-width:500px;
	box-shadow: 5px 5px 5px 1px #669;
	-moz-box-shadow: 5px 5px 5px 1px #669;
	-webkit-box-shadow: 5px 5px 5px 1px #669;
}

/* メインカラム */
#main {
	width:80%;
	max-width:800px;
	min-width:320px;
	margin: 0 auto;
	background-color:#ffffff;
	border: 1px #9999ff solid;
	box-shadow: 5px 5px 5px 1px #669;
	-moz-box-shadow: 5px 5px 5px 1px #669;
	-webkit-box-shadow: 5px 5px 5px 1px #669;
}
/*--------------------------------------
  モード
--------------------------------------*/
.mode {
	width:100%;
	max-width:720px;
	margin:0 auto;
}
.mode ul, .test_top{
	width:50%;
	min-width:320px;
	margin:0 auto;
	float:left;
}
.mode ul li {
	width:100%;
	height:53px;
	clear:both;
	line-height:140%;
}
.mode ul li a{
	display:block;
	width:100%;
	text-align:left;
}
.mode ul li a img{
	float:left;
	margin-right:10px;
}

/* バックナンバー */
.back_number {
	width:96%;
	max-width:600px;
	margin:0 auto;
	margin-top:18px;
	text-align: left;
	line-height:120%;
}
.back_number strong{
	color:#ffffff;
	background-color:#3333ff;
	display:block;
	width:50%;
	height: 35px;
	line-height:160%;
	text-align:center;
	box-sizing:border-box;
	border-bottom:1px #cccccc solid;
	border-right:1px #cccccc solid;
}
.back_number a:link{
	color:#ffffff;
	background-color:#3333ff;
	text-align: center;
	display:block;
	width:10%;
	height:20px;
	float:left;
	box-sizing:border-box;
	border-bottom:1px #cccccc solid;
	border-right:1px #cccccc solid;
}
.back_number a:visited	{
	background-color:#9999ff;
	color:#cccccc;
}


/* 問題ナンバー */
#status {
	margin: 0 auto;
	height:44px;
	width:80%;
	max-width:800px;
	min-width:320px;
	text-align:left;
}
#status h2 {
	font-size:18px;
	background-color:#0000ff;
	color:#ffffff;
	margin: 0 2px;
	padding-top:8px; 
	width:90px;
	height:33px;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border: 2px #0000ff solid;
	box-shadow: 3px 0px 2px #669;
	-moz-box-shadow: 3px 0px 2px #669;
	-webkit-box-shadow: 3px 0px 2px #669;
	float:left;
	text-align: center;
}
#status p {
	background-color:#ffffff;
	color:#333333;
	margin: 0 2px;
	padding-top:8px; 
	width:110px;
	height:35px;
	border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border: 1px #9999ff solid;
	border-bottom:none;
	box-shadow: 3px 0px 3px #669;
	-moz-box-shadow: 3px 0px 3px #669;
	-webkit-box-shadow: 3px 0px 3px #669;
	float:left;
	text-align: center;
}

/* パンくず */
.pan {
	text-align: left;
	margin-left:10px;
}

/* 問題 */
.question_main {
	width:50%;
	text-align:center;
	float:left;
}
.question_img{
	position:relative;
	margin:0 auto;
	width:173px;
	height:220px;
	background:url(img/banner/cup.png);
	font-size:100px;
	color:#000000;
	line-height: 280%;
	text-shadow:-1px -1px #fff, 1px -1px #fff, -1px 1px #fff, 1px 1px #fff;
}
.question_img p{
	width:100%;
	text-align:center;
	position:absolute;
	top:24px;
	left:0;
	font-size:18px;
	color:#3333ff;
	text-shadow:-1px -1px #fff, 1px -1px #fff, -1px 1px #fff, 1px 1px #fff;
	line-height: 100%;
}


/* 4択 */
.select{
	width:50%;
	text-align:center;
	margin:0 auto;
	margin-top:20px;
	float:left;
	font-size:20px;
}
.select a{
	display: table;
	color:#333333;
	text-align:left;
	margin:2px 5px;
	height:49px;
	float:left;
}
.select a span{
	display:table-cell;
	vertical-align: middle;
	line-height:22px;
	padding-left:46px;
	padding-top:2px;
}

.select0{
	width:150px;
	background:url(img/banner/a.png);
}
.select1{
	width:150px;
	background:url(img/banner/b.png);
}
.select2{
	width:150px;
	background:url(img/banner/c.png);
}
.select3{
	width:150px;
	background:url(img/banner/d.png);
}

/* フォーム */
.namein {
	padding: 10px;
	font-size: 24px;
	color:#000099;
	border:solid 1px #ccc;
	width:120px;
	height:30px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

.answerin {
	padding: 10px;
	font-size: 24px;
	color:#000099;
	border:solid 1px #ccc;
	width:120px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}
input:focus {
    border:solid 1px #000099;
}
.button {
	padding: 15px 5px 13px 5px;
	border:solid 1px #ccc;
	font-size: 18px;
	text-transform:uppercase;
	font-weight:bold;
	color:#333399;
	cursor:pointer;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#ddd), to(#aaa));
	background-image: -webkit-linear-gradient(top, #ddd, #aaa);
	background-image: -moz-linear-gradient(top, #ddd, #aaa);
	background-image: -ms-linear-gradient(top, #ddd, #aaa);
	background-image: -o-linear-gradient(top, #ddd, #aaa);
	background-image: linear-gradient(top, #ddd, #aaa);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ddd', endColorstr='#aaa',GradientType=0 ); /* IE6-9 */
	-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0px 1px 2px rgba(0, 0, 0, 0.2);

	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0px 1px 2px rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0px 1px 2px rgba(0, 0, 0, 0.2);
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;

	text-shadow: 0px -1px 1px rgba(255, 255, 255, 0.8);
}
textarea {
	padding: 10px;
	color:#000099;
	border:solid 1px #ccc;
	width:90%;
	max-width:400px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}


/* 答え */
.answer_box{
	min-height:90px;
	width:96%;
	max-width:500px;
	text-align: left;
	margin:0 auto;
	background-color:#ffffff;
	border: 2px #333399 solid;

}
.answer_box img{
	float:left;
	margin-right:10px;
}
.answer_box strong{
	color:#ff0000;
	text-decoration: underline;
}


/* 次の問題へ */
.pager a{
	display:inline-block;
	height:30px;
	padding:0 10px;
	font-size:18px;
	color:#ffffff;
	padding-top:3px;
	background-color:#3333ff;
	margin-top:3px;
	margin:0 auto;
	border:1px #000099 solid;
}
/*--------------------------------------
  ULのデフォルト
--------------------------------------*/
ul, li{
	list-style-type:none;
	padding:0;
	margin:0;
}
/*--------------------------------------
　フッターリンク
--------------------------------------*/
.footer_link {
	width:90%;
	max-width:640px;
	margin:0 auto;
}
.footer_link li {
	float:left;
	width:25%;
	line-height:130%;
	text-align:center;
	height:35px;
	font-size:14px;
	padding:8px 5px 0 5px;	
	background-color:#3333ff;
	box-sizing:border-box;
	border-bottom:1px #cccccc solid;
	border-right:1px #cccccc solid;
}
.footer_link li a {
	color:#ffffff;
}
/*--------------------------------------
　コピーライト
--------------------------------------*/
.copyright {
	color:#ffffff;
	font-size:14px;
	margin-top:10px;
	padding:10px 0;
	background-color:#3333ff;
	border-top:1px #cccccc solid;
}

/* 画像の幅 */
img {
	width: auto;
	height: auto;
	max-width: 100%;
	width /***/:auto;　
}

.home_side{
	max-width:300px;
	margin:0 auto;
	height:auto;
}

/* 検定モードセレクト */
.mode_select{
	width:270px;
	margin:0 auto;
	margin-top:6px;
	font-size:20px;
}
.mode_select a{
	width:84px;
	margin:0 3px;
	font-size:16px;
	display:block;
	height:24px;
	line-height:120%;
	padding:2px;
	text-align:center;
	border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	text-decoration: none;
	border: 1px #666699 solid;
	box-sizing:border-box;
	color:#ffffff;
	background:#3333ff;
	float:left;
}


/* 検定スコア */
.test_score {
	width:50%;
	min-width:320px;
	margin:0 auto;
	float:left;
}
.test_score a{
	margin:5px 0 2px 0;
}
.test_score p{
	width:250px;
	border-bottom:solid 2px #0000ff;
	margin:0 auto;
}

.test_score img{
	vertical-align:-10px;
}
.test_score span{
	font-size:40px;
	color:#ff4400;	
}
/* コメント */
.comment_box {
	width:50%;
	min-width:320px;
	margin:0 auto;
	float:left;
}
.comment{
	list-style-type: none;
	text-align: left;
	width:98%;
	max-width:500px;
	margin:0 auto;
	padding:0;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border: 2px #0000ff solid;
	font-size:16px;
}
.comment li{
	border-bottom: 1px #0000ff solid;
}
.comment img{
	vertical-align:-10px;
}
.comment p{
	margin:10px;
}
h3.comm {
	max-width:500px;
	margin:0 auto;
	text-align: left;
}


/* 検定のエンドページ */
.grading{
	width:320px;
	margin:0 auto;
	font-size:20px;
}

.grading img{
	float:left;
}

.result{
	width:640px;
	min-width:320px;
	margin:0 auto;
}


.result_question{
	width:150px;
	height:190px;
	background:url(img/banner/cup_150.png);
	font-size:80px;
	color:#000000;
	line-height: 290%;
	float:left;
	text-shadow:-1px -1px #fff, 1px -1px #fff, -1px 1px #fff, 1px 1px #fff;
}
.result p{
	margin-right:10px;
	width:150px;
	height:190px;
	line-height:170%;
	float:left;
	font-size:32px;
}

/* コメント */
.comment{
	list-style-type: none;
	text-align: left;
	width:98%;
	max-width:500px;
	margin:0 auto;
	padding:0;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border: 2px #0000ff solid;
	font-size:16px;
}
.comment li{
	border-bottom: 1px #0000ff solid;
}
.comment img{
	vertical-align:-10px;
}
.comment p{
	margin:10px;
}
h3.comm {
	max-width:500px;
	margin:0 auto;
	text-align: left;
}



/* グローバルメニュー */
.quiz_link{
	width:96%;
	max-width:600px;
	box-sizing: border-box;
	margin: 0 auto;
	text-align: left;
	background:#3333ff;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	background:-moz-linear-gradient(top, #3333ff, #9999ff);
	background:-webkit-gradient(linear, left top, left bottom, from(#3333ff), to(#9999ff));
	background: linear-gradient(to bottom, #3333ff, #9999ff);	
}
.quiz_link h3{
	width:100%;
	margin: 0 auto;
	color:#eeeeff;
	padding-top:10px;
	padding-left:5px;
	border:1px #eeeeff solid;
	border-top:none;
	border-right:none;
}
.quiz_link a, .quiz_link span{
	font-weight: bold;
	color:#eeeeff;
	float:left;
	box-sizing: border-box;
	display:block;
	width:25%;
	height:50px;
	font-size:16px;
	padding:10px 5px 5px 5px;	
	margin:0 auto;
	border:1px #eeeeff solid;
	border-top:none;
	border-right:none;
}
.quiz_link img{
	width:32px;
	height:32px;
	vertical-align:-6px;
	margin-right:5px;
}

/* 文字の色 */
strong {
	color:#0000ff;
}


/* 広告 */
.ad_home{
	color:#666666;
	width:50%;
	margin:0 auto;
	float:left;
}
.ad_question, .ad_answer{
	color:#666666;
	clear:both;
	max-width:728px;
	min-height:90px;
	margin:0 auto;
	margin-bottom:5px;
}
.ad_footer{
	color:#666666;
	width:100%;
	min-width:320px;
	margin:0 auto;
}
.ad_link_banner img{
	margin:0 auto;
	margin-bottom:3px;
}

.select_pr{
	width:310px;
	font-size:16px;
	background:url(img/banner/pr.png);
}



@media screen and (min-width: 640px){
body{
	background-attachment: fixed; 
	animation: snow 30s linear infinite;

}
}

@media screen and (max-width: 640px){
/* メインカラム */
#main {
	background-color:#ffffff;
	width:100%;
	border: 1px #9999ff solid;
	border-left:none;
	border-right:none;
	box-shadow: 0px 5px 5px 1px #669;
	-moz-box-shadow: 0px 5px 5px 1px #669;
	-webkit-box-shadow: 0px 5px 5px 1px #669;
}

/*--------------------------------------
  モード
--------------------------------------*/
.mode ul, .ad_home, .test_top{
	width:320px;
	margin:0 auto;
	float:none;
	clear:both;
	margin-bottom:6px;
}

/* 問題ナンバー */
#status h2 {
	font-size:16px;

}
#status p {
	font-size:16px;
	width:105px;
}

/* 問題 */
.question_main {
	width:100%;
	float:none;
}

.select {
	width:320px;
	margin-top:3px;
	float:none;
}

/* バックナンバー */
.back_number strong{
	width:50%;
	height:35px;
}
.back_number a:link{
	width:20%;
	height:20px;
}

/* 答え */
.answer_img{
	width:99%;
}

/*--------------------------------------
　フッターリンク
--------------------------------------*/
.footer_link li {
	width:50%;
}

/* エンドページ */
.result_question{
	margin-left:10px;
}

.result{
	width:100%;
	min-width:320px;
}

/* 検定スコア */
.test_score {
	width:100%;
	float:none;
	margin-bottom:10px;
	text-align: center;
}
/* コメント */
.comment_box {
	width:100%;
	float:none;
}

/* グローバルメニュー */
.quiz_link a,span{
	width:50%;
}
.quiz_link span{
	display:none;
}
}