@charset "utf-8";

#eg-base {
   -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
   tap-highlight-color: rgba(0, 0, 0, 0);
   -ms-user-select: none; /* IE 10+ */
   -moz-user-select: -moz-none;
   -khtml-user-select: none;
   -webkit-user-select: none;
   user-select: none;
}

.selectable {
   -ms-user-select: auto;
   -moz-user-select: auto;
   -khtml-user-select: auto;
   -webkit-user-select: auto;
   user-select: auto;
}

/****************************

 メインレイアウト
 
 ****************************/
#eg-base {
	position: relative;
	margin:20px;
	width:480px;
	height:600px;
	background-color:#aaa;
	overflow:hidden;
	z-index: 1;
}
#eg-base,#eg-main-window {
	outline: 1px solid #333;
}
#eg-base > div,
#eg-base > div > div,
#eg-base > div > div > div {
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	-ms-box-sizing:border-box;
	box-sizein:border-box;
}

#eg-ed-window {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	background-color:#fff;
	z-index: 2990;
}
#eg-ed-window img {
	width: 100%;
}
#eg-ed-backtitle {
	position: absolute;
	top: 80%;
	left: 52%;
	font-size:24px;
	color:#333;
}

#eg-title-window {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	background-color:#fff;
	z-index: 1000;
}

#eg-load-window {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	background-color:#999;
	z-index: 3000;
}

/* loader */
#eg-loader {
	position: absolute;
	top: 20%;
	left: 35%;
	width:30%;
	height:24%;
    border-radius: 50%;  /*CSS3で円を書く*/
    border: 8px solid #fff;  /*円に○の白枠をつける*/
    border-right-color: transparent; /*円の右にC状の空きをつける*/
	animation: spin 1s linear infinite; /*1秒毎にくるくる回転するアニメーション*/
}
@keyframes spin
{
    0% { transform: rotate(0deg);   opacity: 0.2; } /*0%の時は20％の透明度*/
    50%  { transform: rotate(180deg); opacity: 1.0; } /*50%の時は透明度なし*/
    100%   { transform: rotate(360deg); opacity: 0.2; } /*100%の時に20％の透明度に戻る*/
 
}
#eg-loading {
	position: absolute;
	top: 60%;
	left: 15%;
	font-size:48px;
	color:#fff;
}

#eg-tap-window,#eg-white-window {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
}

#eg-tap-window {
	display: none;
	z-index: 256;
}

#eg-white-window {
	background-color:#fff;
	z-index: 90;
}

#eg-menu-window {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	/*
	opacity: 0.9;
	background-color:#333;
	*/
	background: rgba(51,51,51, 0.9);
	z-index: 900;
}

#eg-dialog-window,
#eg-language-window,
#eg-sound-window,
#eg-backtitle-confirm-window {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	/*
	opacity: 0.9;
	background-color:#333;
	*/
	background: rgba(51,51,51, 0.9);
	z-index: 1200;
}

#eg-item-window {
	position: relative;
	width:100%;
	height:25%;
	background-color:#333;
	z-index: 99;
}

#eg-main-window {
	position: relative;
	width:100%;
	height:60%;
	background-color:#fff;
	overflow:hidden;
	z-index: 100;
}

#eg-message-window {
	position: relative;
	width:100%;
	height:15%;
	background-color:#99f;
	z-index: 99;
}

#eg-o-e-skip,#eg-o-e-next {
	position: absolute;
	height:auto;
	display: none;
}
#eg-o-e-skip {
	top:20%;
	left:77%;
	width:18%;
	z-index: 300;
}
#eg-o-e-next {
	top:86%;
	left:65%;
	width:28%;
	z-index: 154;
}

/* メッセージダイアログ */
#eg-msg-dialog-back {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display:none;
}

#eg-msg-dialog-back {height:100%;z-index: 299;}

#eg-msg-dialog,#eg-msg-dialog-text,#eg-msg-dialog-yes,#eg-msg-dialog-no,.eg-msg-dialog-yes-area,.eg-msg-dialog-no-area {
	position: absolute;
	display:none;
}

#eg-msg-dialog {
	top: 35%;
	left: 20%;
	width:60%;
	z-index: 253;
}

#eg-msg-dialog-text,#eg-msg-dialog-yes,#eg-msg-dialog-no {
	font-size: 24px;
	color: #fff;
	height: auto;
	z-index: 254;
}
#eg-msg-dialog-text {
	top: 40%;
	left: 25%;
	width: 50%;
	color: #333;
}
#eg-msg-dialog-yes,#eg-msg-dialog-no {top: 62%;width: 50%;15%}
#eg-msg-dialog-yes {left: 31%;}
#eg-msg-dialog-no {left: 57%;}

.eg-msg-dialog-yes-area,.eg-msg-dialog-no-area {
	top: 61%;
	left: 25%;
	width: 22%;
	height: 7%;
	z-index: 300;
}
.eg-msg-dialog-no-area {left: 54%;}

/****************************

 共通（フィルターウインドウ等）
 
 ****************************/
.eg-filter-window {
 	font-size:28px;
}

.eg-filter-window-caption {
 	font-size:2em;
	font-weight: bold;
	text-shadow:0px 0px 3px #ff6;
}


/****************************

 メイン画面（eg-main-window）
 
 ****************************/

#eg-dark-filter,#eg-demo-frame,#eg-msg-dialog-back {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	display:none;
}

#eg-dark-filter {
	height:100%;
	background-color:#333;
	z-index: 250;
}

#eg-demo-frame {height:100%;z-index: 251;}

.eg-scene {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	overflow:hidden;
}

.eg-obj {
	position: absolute;
}

.eg-obj-img {
	width:100%;
	height:auto;
}


/****************************

 移動ボタン（eg-move-btn）
 
 ****************************/
.eg-move-btn {
	font-size:48px;
	color: #666;
    text-shadow:0px 0px 3px #ff6;
	opacity: 0.5;
	z-index: 300;
}

.eg-move-btn:hover {
	opacity: 1;
}
#eg-move-0 {
	position: absolute;
	top: 0;
	left: 45%;
}
#eg-move-1 {
	position: absolute;
	top: 75%;
	left: 87%;
}
#eg-move-2 {
	position: absolute;
	top: 83%;
	left: 45%;
}
#eg-move-3 {
	position: absolute;
	top: 75%;
	left: 2%;
}
.eg-bgimg {
	top: 0;
    left: 0;
    z-index: 120;
    height: 100%;
}

.eg-scene,.eg-bgimg,.eg-obj,.eg-move-btn,.eg-item-detail {
	cursor: pointer;
}

/****************************

 アイテム欄（eg-item-window）
 
 ****************************/
#eg-item-area-left {
	position: relative;
	float: left;
	width: 92%;
	height: 100%;
	background-color:#000;
	z-index: 400;
}
#eg-item-area-left ul {
	position: absolute;
	margin: 0;
	padding: 3px;
	width: 100%;
	height: 100%;
	list-style:none;
}
#eg-item-area-left ul li {
	position: relative;
	float: left;
	padding: 0;
	width: 15%;
	height: 43%;
}

#eg-item-area-left ul li img {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.eg-item {
	margin: 0.65%;
	outline: 1px solid #fff;
}
.eg-item-selected {
	margin: 0.65%;
	outline: 2px solid #f00;
}


#eg-item-area-right {
	position: relative;
	float: left;
	width: 8%;
	height: 100%;
	background-color:#000;
	z-index: 400;
}

#eg-item-about-box {
	margin: 18% 6%;
	padding: 0;
	width: 70%;
	height: 90%;
	display: table;
}

#eg-item-about {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
}

.eg-item-about-off {
	outline: 2px solid #000;
	background-color:#cd853f;
	color:#666;
}

.eg-item-about-on {
	color:#dc143c;
	outline: 2px solid #ff8c00;
	background-color:#ffa500;
}


#eg-select-caption {
	position: absolute;
	top: 4%;
	left: 4%;
	width: 100px;
	height: 20%;
	border: 3px solid #f93;
	background-color: #f93;
	color: #fff;
	font-size:1.4em;
	font-weight:bold;
}

#eg-select-item {
	position: absolute;
	top: 24%;
	left: 4%;
	width: 100px;
	height: 100px;
	border: 3px solid #f93;
}
#eg-select-item-img {
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: pointer;
}

.eg-item-img, .eg-item-about-on {
	cursor: pointer;
}

.eg-item-used {
	opacity: 0.3;
}

.eg-item-num {
	position: absolute;
	right:0;
	bottom:0;
	text-align:right;
	width:35%;
	height:22%;
	margin:0;
	padding:2px;
	font-size:12px;
	color:#333;
	background: rgba(255,255,255, 0.8);
}


/****************************

 アイテム詳細画面（eg-item-detail）
 
 ****************************/
#eg-item-detail-back {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	background: rgba(51,51,51, 0.7);
	z-index: 400;
}

#eg-item-detail-box {
	position: absolute;
	top: 5%;
	left: 20%;
	width:60%;
	height:90%;
	background: rgba(51,51,51, 0.8);
	z-index: 450;
}

#eg-item-detail-area {
	position: absolute;
	top: 6%;
	left: 24%;
	width:52%;
	height:68%;
	z-index: 500;
}

#eg-item-detail-img {
	width: 100%;
	height: 100%;
}

#eg-item-detail-name {
	position: absolute;
	top: 76%;
	left: 24%;
	width:250px;
	height:60px;
	padding-top:2%;
	padding-left:2%;
	text-align:center;
	font-size:24px;
	color:#fff;
	/*opacity: 1;*/
	background-color:#000;
	z-index: 500;
}



/****************************

 メッセージ欄（eg-message-window）
 
 ****************************/
#eg-message-area {
	position: absolute;
	top:0;
	left:0;
	width:90%;
	height:100%;
	padding:2%;
	text-align:left;
	background-color:#ddd;
	font-size: 17px;
}
#eg-save-btn {
	position: absolute;
	top:0;
	left:90%;
	width:10%;
	height:50%;
	padding:2%;
	text-align:center;
	outline:solid 1px #fff;
	background-color:#444;
	color:#fff;
	font-size: 14px;
	cursor: pointer;
}
#eg-sound-btn {
	position: absolute;
	top:50%;
	left:90%;
	width:10%;
	height:50%;
	padding:1%;
	text-align:center;
	outline:solid 1px #fff;
	background-color:#444;
	color:#fff;
	font-size: 24px;
	cursor: pointer;
}
#eg-sound-btn img {
	width:95%;
}
/****************************

 ダイアログ的画面（eg-dialog-window）
 
 ****************************/
#eg-dialog-back {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	background: rgba(128,128,128, 0.1);
	z-index: 1201;
}

#eg-dialog-area {
	position: absolute;
	top: 35%;
	left: 18%;
	width:70%;
	height:20%;
	padding:8% 5% 5% 5%;
	text-align:center;
	border: solid 1px #333;
	-moz-border-radius: 30px;
	-webkit-border-radius: 30px;
  	border-radius: 30px;
	color: #333;
	background-color: #fff;
	font-size: 24px;
	z-index: 1202;
}

/****************************

 タイトル画面（eg-title-window）
 
 ****************************/

#eg-title-img {
	position: absolute;
	top:0;
	left:0;
	width:100%;
	height:auto;
}

#eg-title-back {
	position: absolute;
	top: 20%;
	left: 0;
	width: 100%;
	height: 23%;
	background: rgba(153,153,153, 0.7);
}

#eg-title {
	position: absolute;
	top: 23%;
	width:100%;
	text-align:center;
	font-size:2.5em;
	font-weight:bold;
	color: #fff;
}

#eg-sub-title {
	position: absolute;
	top: 33%;
	width:100%;
	text-align:center;
	font-size:1.6em;
	font-weight:bold;
	color: #fff;
}

.eg-title-btn {
	width: 100%;
	height: 9%;
	padding-top:1%;
 	text-align:center;
	border-top,border-bottom: 3px solid #f66;
	/*background-color: #4a4;*/
	background: rgba(68,170,68, 0.7);
	color: #fff;
	left: 0;
	font-size:2.0em;
	cursor: pointer;
}

.eg-title-btn:hover {
    text-shadow:0px 0px 3px #ff6;
    background-color: #4a4;
}


#eg-newgame-btn {
	position: absolute;
	top: 68%;
}

#eg-loadgame-btn {
	position: absolute;
	top: 81%;
}

.eg-title-setting-btn {
	position: absolute;
	top: 89%;
	width:30%;
	height:7%;
	/*padding-top:1%;*/
 	text-align:center;
	background-color: #ff8c00;
	font-size:1.8em;
	color: #fff;
	z-index:1100;
	cursor: pointer;
}

#eg-title-sound {
	left:60%;
	
}

#eg-title-language {
	left:10%;
}

.eg-title-setting-btn:hover {
    text-shadow:0px 0px 3px #ff6;
    background-color: #ffd700;
}


/****************************

 レスポンシブ
 
 ****************************/
/****** media query ******/
@media screen and (max-width: 500px)
{
	#eg-base {
		margin:5px;
/*		width:360px;
		height:450px;
*/
		width:336px;
		height:420px;
	}
	
	/******** メイン画面 ********/
	.eg-move-btn {
		font-size:24px;
	}
	

	#eg-move-0 {
		top: 0;
		left: 47%;
	}
	#eg-move-1 {
		top: 89%;
		left: 92%;
	}
	#eg-move-2 {
		top: 89%;
		left: 47%;
	}
	#eg-move-3 {
		top: 89%;
		left: 0%;
	}

	
	
	/******** アイテム詳細画面のアイテム名 ********/
	#eg-item-detail-name {
		width:175px;
		height:42px;
		font-size:18px;
	}
	
	/******** メッセージ画面 ********/
	#eg-message-area {
		font-size: 13px;
	}
	#eg-save-btn {
		padding:1.5% 0.7%;
		font-size: 11px;
	}
	#eg-sound-btn {
		font-size: 18px;
	}
	
	/******** ダイアログ ********/
	#eg-dialog-area {
		font-size: 18px;
	}
	#eg-msg-dialog-text,#eg-msg-dialog-yes,#eg-msg-dialog-no {
		font-size: 18px;
	}

	/******** タイトル画面 ********/
	#eg-title {
		font-size:1.8em;
	}
	#eg-sub-title {
		font-size:1.2em;
	}
	.eg-title-btn {
		font-size:1.4em;
	}
	.eg-title-setting-btn {
		font-size:1.1em;
	}
	.eg-title-c img {
		width:100%;
	}

	/******** ロード画面 ********/
	#eg-loading {
		font-size:36px;
	}
	
	/******** エンディング画面 ********/
	#eg-ed-backtitle {
		font-size:18px;
	}

}

/* 点滅 */
.blinking{
	-webkit-animation:blink 0.4s ease-in-out infinite alternate;
    -moz-animation:blink 0.4s ease-in-out infinite alternate;
    animation:blink 0.4s ease-in-out infinite alternate;
}
@-webkit-keyframes blink{
    0% {opacity:0.2;}
    50% {opacity:1;}
    100% {opacity:1;}
}
@-moz-keyframes blink{
    0% {opacity:0.2;}
    50% {opacity:1;}
    100% {opacity:1;}
}
@keyframes blink{
    0% {opacity:0.2;}
    50% {opacity:1;}
    100% {opacity:1;}
}





/*************************

 FontAwesome
 
 ************************/
 

@font-face {
  font-family: 'FontAwesome';
  src: url('../fonts/fontawesome-webfont.eot?v=4.4.0');
  src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* makes the font 33% larger relative to the icon container */
.fa-lg {
  font-size: 1.33333333em;
  line-height: 0.75em;
  vertical-align: -15%;
}
.fa-2x {
  font-size: 2em;
}
.fa-3x {
  font-size: 3em;
}
.fa-4x {
  font-size: 4em;
}
.fa-5x {
  font-size: 5em;
}
.fa-fw {
  width: 1.28571429em;
  text-align: center;
}
.fa-ul {
  padding-left: 0;
  margin-left: 2.14285714em;
  list-style-type: none;
}
.fa-ul > li {
  position: relative;
}
.fa-li {
  position: absolute;
  left: -2.14285714em;
  width: 2.14285714em;
  top: 0.14285714em;
  text-align: center;
}
.fa-li.fa-lg {
  left: -1.85714286em;
}
.fa-border {
  padding: .2em .25em .15em;
  border: solid 0.08em #eeeeee;
  border-radius: .1em;
}
.fa-pull-left {
  float: left;
}
.fa-pull-right {
  float: right;
}
.fa.fa-pull-left {
  margin-right: .3em;
}
.fa.fa-pull-right {
  margin-left: .3em;
}
/* Deprecated as of 4.4.0 */
.pull-right {
  float: right;
}
.pull-left {
  float: left;
}
.fa.pull-left {
  margin-right: .3em;
}
.fa.pull-right {
  margin-left: .3em;
}
.fa-spin {
  -webkit-animation: fa-spin 2s infinite linear;
  animation: fa-spin 2s infinite linear;
}
.fa-pulse {
  -webkit-animation: fa-spin 1s infinite steps(8);
  animation: fa-spin 1s infinite steps(8);
}
@-webkit-keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
@keyframes fa-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}
.fa-rotate-90 {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}
.fa-rotate-180 {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}
.fa-rotate-270 {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}
.fa-flip-horizontal {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);
  -webkit-transform: scale(-1, 1);
  -ms-transform: scale(-1, 1);
  transform: scale(-1, 1);
}
.fa-flip-vertical {
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);
  -webkit-transform: scale(1, -1);
  -ms-transform: scale(1, -1);
  transform: scale(1, -1);
}
:root .fa-rotate-90,
:root .fa-rotate-180,
:root .fa-rotate-270,
:root .fa-flip-horizontal,
:root .fa-flip-vertical {
  filter: none;
}
.fa-stack {
  position: relative;
  display: inline-block;
  width: 2em;
  height: 2em;
  line-height: 2em;
  vertical-align: middle;
}
.fa-stack-1x,
.fa-stack-2x {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
}
.fa-stack-1x {
  line-height: inherit;
}
.fa-stack-2x {
  font-size: 2em;
}
.fa-inverse {
  color: #ffffff;
}

.fa-bars:before {
  content: "\f0c9";
}
.fa-close:before {
  content: "\f00d";
}
.fa-arrow-circle-o-down:before {
  content: "\f01a";
}
.fa-arrow-circle-o-up:before {
  content: "\f01b";
}
.fa-arrow-circle-o-right:before {
  content: "\f18e";
}
.fa-arrow-circle-o-left:before {
  content: "\f190";
}
.fa-volume-off:before {
  content: "\f026";
}
.fa-volume-up:before {
  content: "\f028";
}
