body{
	background:url(/omikuji/img/bg.jpg);
	color:#000;
	min-height:740px;
}

#wrapper {
	text-align:center;
	transform:translate(-50%,-50%);
	position:absolute;
	left:50%;
	top:50%;
	height:660px;
}
h2 {
	position:relative;
	line-height:0;
	height:167px;
}
h2 .title{
	transform:translateY(-50%);
	position:absolute;
	left:50%;
	top:50%;
	margin-left:-326px;
}

h2 .img{
	position:absolute;
	left:50%;
	bottom:0;
	margin-left:160px;
}
h2 .txt{
	position:absolute;
	left:50%;
	top:-24px;
	margin-left:133px;
}

#container {
	background:#fff;
	border:8px solid #c30d23;
	box-sizing:border-box;
	width:860px;
	height:375px;
	padding:4px;
	margin:0 auto;
}
#container.done {
	background:url(/omikuji/img/mikuji_pc.png) center center no-repeat #fff;
}
#container img {
	display:block;
}

#container .inner{
	border:4px solid #c30d23;
	box-sizing:border-box;
	position: relative;
	height:100%;
	transition:all 3s ease;
}
#container .inner.def{
	opacity:0;
}


#container .title {
	position:absolute;
	right:14px;
	top:12px;
	width:140px;
}
#container .title img{
	margin:0 auto;
}

#pic {
	position:absolute;
	left:14px;
	top:15px;
	width:400px;
	height:314px;
	overflow:hidden;
}

#text {
	position:absolute;
	left:414px;
	top:15px;
	width:260px;
	height:314px;
	overflow:hidden;
}
#text li{
	box-sizing:border-box;
	width:260px;
	height:314px;
	padding-top:10px;
}

#text img{
	margin:0 auto;
}

#label {
	position:absolute;
	right:14px;
	top:38px;
	width:140px;
	height:290px;
	overflow:hidden;
}

#pic ul,
#text ul,
#label ul{
	position:relative;
	transform:translateZ(0);
}
#pic ul.fix,
#text ul.fix {
	transition:all .6s ease;
}
#label ul.fix {
	transition:all .3s ease;
}
.ani{
	animation: nom 8.4s linear infinite;
}
.ani2{
	animation: nom2 8.4s linear infinite;
}
.ani3{
	animation: nom3 1.3s linear infinite;
}

@keyframes nom {
	0% { top:0;}
	100% {top:-8474px;}
}

@keyframes nom2 {
	0% { top:0;}
	100% {top:-8474px;}
}

@keyframes nom3 {
	0% { top:-1160px;}
	100% {top:0;}
}
#footer {
	line-height:0;
	padding:16px 0 0;
}



#share {
	margin: 5px 0 15px;
    /*height: 17px;*/
}
#share ul {
    /*height: 17px;*/
}
#share li {
	display: inline-block;
    padding: 0 10px;
}
#share li a {
	display: table-cell;
    text-align: center;
    vertical-align: middle;
    width: 60px;
    height: 30px;
    background: #fff;
}

.sp .pc,
.pc .sp{
	display:none;
}

body.sp{
	min-height:0;
	
}
.sp #wrapper {
	transform:translate(0,0)!important;
	position:relative;
	left:auto;
	top:auto!important;
	height:auto;
}
.sp h2 {
	padding:15px 15px 0;
	height:auto;
}

.sp #container {
	border-width:6px;
	width:auto;
	height:auto;
	padding:2px;
	margin:0 15px;
}

.sp #container.done {
	background-image:url(/omikuji/img/mikuji_sp.png);
	background-size:65px auto;
	min-height:400px;
}

.sp #container .inner{
	border-width:3px;
	position: relative;
	height:auto;
	padding:0 9px 10px;
}

.sp #container .title {
	position:relative;
	right:auto;
	top:auto;
	width:auto;
	padding:7px 0;
}
.sp #container .title img{
	height:15px;
}

.sp #label,
.sp #pic,
.sp #text {
	position:relative;
	left:auto;
	right:auto;
	top:auto;
	width:100%;
	height:auto;
	overflow:hidden;
}
.sp #container ul{
	display:-webkit-box;
}
.sp #container li,
.sp #text li{
	width:100%;
}
.sp #label li img,
.sp #pic li img{
	width:100%;
}



.sp #text li{
	display:-webkit-box;
	-webkit-box-align:center;
	zoom:.5;
	height:247px;
	padding:0;
}

.sp .ani{
	animation: sp_nom 13.5s linear infinite;
}
.sp .ani2{
	animation: sp_nom2 13.5s linear infinite;
}
.sp .ani3{
	animation: sp_nom3 1.3s linear infinite;
}

@keyframes sp_nom {
	0% { left:0;}
	100% {left:-2700%;}
}

@keyframes sp_nom2 {
	0% { left:0;}
	100% {left:-2700%;}
}

@keyframes sp_nom3 {
	0% { left:-400%;}
	100% {left:0;}
}

.sp #footer {
	padding:15px 0;
}
.sp #share {
    margin: 4px 0 20px;
}
ul.nav{
	display: block;
	border-top: solid 2px #fbc600;
	background:#000;
}

ul.nav>li{
	display: block;
	height:50px;
	border-bottom:solid 2px #fbc600;
}

ul.nav>li a{
	display:-webkit-box;
	-webkit-box-align:center;
	-webkit-box-pack:center;
	height:100%;
}
ul.nav>li.top a {
	background:#000;
}
.copyright {
	line-height:0;
	text-align:center;
	padding:5px 0;
	background:#fff;
}

@media screen and (max-height: 740px) {
  #wrapper {
	  transform:translate(-50%,0);
	  top:25px;
  }

}
