@import url("/common/css/favor.css");

*{
	box-sizing:border-box;
}

body{
	padding:0;
	margin:0;
	/*background: #F0F0F0;*/
	background: #FFF;
}

.inner{
	max-width:900px;
	width:100%;
	padding:0 20px;
	margin:0 auto;
	box-sizing:border-box;
}

/*header
------------------------------------------*/
header{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 10000;
}

/*loginout
------------------------------------------*/
#loginout{
	position: fixed;
	top: 60px;
	left: 0;
	width: 100%;
	z-index: 10000;
}
/*eyecatch
------------------------------------------*/
#eyecatch{
	height: 150px;
	background: #FF9900;
	padding: 0;
	margin:0;
}

#eyecatch p{
	height: 100%;
	text-align: center;
	padding: 20px 0;
	margin:0;
	color: #FFF;
	text-align: center;
}

/* contents
------------------------------------------*/
#contents{
	width: 100%;
	padding: 80px 0 20px;
	overflow:hidden;
}

#contents main {
    position: relative;
    box-sizing: border-box;
    max-width: 100vw;
}

main h3{
	color: #666;
	padding:10px 0 0;
	margin: 0 0 0 15px;
	font-size: 16px;
}


/*main
------------------------------------------*/
.title{
	position: relative;
	padding:10px 0 0 25px;
	margin: 0;
}

.title h3{
	padding: 0;
	margin: 0;
}

/* all .back
------------------------------------------*/
#contents .back {
    top: -2px;
}

.back,
.readmore{
	position: absolute;
	top: 10px;
	right: 0;
	display: block;
	width: 100px;
	color: #00f;
	text-decoration: underline;
	margin: 0 0 0 auto;
	cursor: pointer;
	font-size: 14px;
	padding: 5px;
}


.bgBox{
	padding:5px 10px 0;
 	overflow-x:scroll;
 	overflow-y:hidden;
}

div.title{
 	position: relative;
}

div.title:before,
div.title:after{
	position: absolute;
	display: block;
	font-size: 30px;
	color: #FFF;
	top: 110px;
	width: 20px;
	pointer-events: none;
	text-shadow: 2px 2px 5px #0003;
	font-weight: bold;
}

div.title:before{
	display: none;
}

div.title.before:before{
	display: block;
}

div.title.after:after{
	display:none;
}

div.title:before{
	left: -33px;
	content: "〈";
	animation: rl 1.5s infinite;
}

div.title:after{
	right: -20px;
	content: "〉";
	animation: lr 1.5s infinite;
}


@media(min-width: 580px){
	div.title:after,
	div.title:before{
		display: none;
	}
}

@keyframes lr {
  0% {
    transform: translate(-15px, 0px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

@keyframes rl {
  0% {
    transform: translate(15px, 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
}


.bgBox ul{
	display: flex;
	list-style:none;
	padding:0;
	margin:0;
}


.bgBox::-webkit-scrollbar{
	width: 5px;
	height: 8px;
	background:linear-gradient(#999,#fff);;
	border-radius:5px;
	border-right: 1px solid #CCC;
	border-bottom: 1px solid #CCC;
}

.bgBox::-webkit-scrollbar-thumb{
	background:linear-gradient( #b0c4de,#4169e1);
	border-radius:4px;
}

@media(max-width: 580px){

	.title{
		position: relative;
		padding:10px 20px 0 25px;
		margin: 0;
	}

	#contents	.inner{
		padding: 0;		
	}

	div.title:after{
		right: 0px;
	}

	div.title:before{
		left: -13px;
	}

	div.title:after{
		right: 0px;
	}

	.bgBox::-webkit-scrollbar{
		background: #FFF0;
		border: none;
	}

	.bgBox::-webkit-scrollbar-thumb{
		background: #FFF0;
	}

}

/*スクロールバー全体の背景*/
/*
.bgBox ul::-webkit-scrollbar-track {
  background: #FFF;
}
*/

/*スクロールバーの動く部分*/
/*
ul.bgBox ul::-webkit-scrollbar-thumb {
  background: #FFF;
  color: #FFF;
  border:20px;
}
*/

/*スクロールバーの動く部分のホバー（マウスオーバー）*/
/*
ul.bgBox ul::-webkit-scrollbar-thumb:hover {
  background: #999;
}
*/

.bgBox li{
	height: 100%;
	padding:10px;
	margin:0 5px 10px;
}

.bgBox li img{
    height:180px;
    width:auto;
    margin:0 auto 5px;
    display:block;
    border: 1px solid #ccc;
		cursor: pointer;
}

.bgBox li span{
	font-size: 14px;
	border: 1px solid #ccc;
	line-height: 1.0;
	display: block;
	width: 60px;
	margin: 0 auto;
	text-align: center;
	padding: 5px;
	border-radius:5px;
	cursor: pointer;
}

.bgBox li .hname{
	font-size: 14px;
	text-align: center;
}


/*#allbox
--------------------------------------------*/

#allBox {
	padding:5px 10px 0;
 	border-radius: 5px;
 }


#allBox ul{
	display: flex;
	flex-wrap: wrap;
	list-style:none;
	padding:0;
	margin:0;
}

#allBox li{
	position: relative;
	width:calc(100% / 4);
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.0;
}

#allBox li:before{
  content: "";
  display: block;
  padding-top: 100%;
}

#allBox li img{
	position: absolute;
	top: 5%;
	left: 5%;
    width:90%;
    height:90%;
    object-fit: contain;
    margin:0 auto 5px;
    display:block;
    /*border: 1px solid #ccc;*/
    /*background: #F0F0F0;*/
		cursor: pointer;
}

#allBox li .hname{
	position: absolute;
	top: 100%;
	width: 100%;
	text-align: center;
}

@media(max-width: 680px){
	#allBox li{width:calc(100% / 3);}
}

@media(max-width: 480px){
	#allBox li{width:calc(100% / 2);}
}


/*sidemenu
------------------------------------------*/
#sidemenu{
	position:fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 0;
	margin: 0;
}

#sidemenu ul{
	width: 100%;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	display: flex;
	list-style:none;
	border-top: 1px solid #999;
	background: #FFF;
}

#sidemenu ul li{
	padding: 10px 0;
	flex: auto;
	line-height: 1.0;
	cursor: pointer;
	text-align: center;
}

#sidemenu ul li span{
	display: block;
	text-align: center;
	font-size: 12px;
}

#sidemenu ul li svg{
	margin: 0 auto;
	margin-bottom: 10px;
	font-size: 16px;
}


/*ReadFirst
------------------------------------------*/
#readme{
	position: fixed;
	top:100%;
	left: 0;
}

#readme.active{
	position: fixed;
	top:0;
	left: 0;
	padding: 20px 0;
	width: 100%;
	height:100vh;
	z-index: 10010;
	background: #FFF;
	overflow-y: scroll;
	box-sizing: border-box;
}

#ReadFirst{
	padding:0;
}

#readme #pmark img{
	width: 150px;
	height: 150px;
	object-fit: contain;
}

#ReadFirst > div{
	padding:0 20px;
}

#ReadFirst > div *{
	line-height: 1.75;
	font-size: 14px;
	text-align: center;
	margin:0;
}

#ReadFirst h2{
  padding:10px;
	margin:0;
	color:#fff;
	text-align:center;
	background:#f24a0c;
	position:relative;
	z-index:100;
	margin:0 40px 0px;
}

#ReadFirst #pmark{
	/*margin-bottom: -20px;*/
	margin-bottom:20px;
}

#ReadFirst #pmark a{
	display: none;
}

#ReadFirst #btnBox{
	padding-top: 20px;
}

#ReadFirst h2:before{
	content:'';
    width:30px;
    height:30px;
    background:#f24a0c;
    display:inline-block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform:translate(-50%,8px) rotate(145deg) skewX(20deg);
    z-index:-1;
}

/*sidebar
------------------------------------------*/
#btnBox{
	padding:0;
	margin:0;
	text-align:center;
}

/*button
------------------------------------------*/
.button1{
	padding:5px 30px;
	margin:0 auto;
	color:#fff;
	background:#ff1744;
	text-align:center;
	text-decoration:none;
	display:inline-block;
	border-radius:5px;
	font-size:18px;
	font-weight:bold;
}


/*footer
------------------------------------------*/
#footer{
/*	position: fixed;
	bottom: 0;
	left: 0;
*/	
	padding:10px 15px;
	background: #ccc;
	width: 100%;
	color: #FFF;
	text-align: center;
	font-size: 14px;
	line-height: 1.2;
}

#footer br{
	display: none;
}

@media(max-width: 480px){
	#footer br{
		display:block;
	}
}

#footerNavi{
	max-width: 640px;
	margin: 0 auto;
	padding: 0 20px;
}

#footerNavi ul,
#footerNavi ul li{
	list-style: none;
	padding: 0;
	margin: 0;
	text-align:center;
}

#footerNavi ul{
	display: flex;
	flex-wrap: wrap;
}

#footerNavi ul li{
	flex: auto;
	margin: 0;
}

#footerNavi ul li span{
	display: block;
	padding: 10px 0 0;
	font-size: 14px;
	text-decoration: none;
	color: #333;
	cursor: pointer;
}

#footerNavi span img{
	height: 35px;
	width: auto;
}
