@font-face {
	font-family: 'arrows';
	src: url('../font/arrows/arrows.eot');
	src: url('../font/arrows/arrows.eot?#iefix') format('embedded-opentype'),
		url('../font/arrows/arrows.woff') format('woff'),
		url('../font/arrows/arrows.ttf') format('truetype'),
		url('../font/arrows/arrows.svg#arrows') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* 1. 外側の枠が動かないように固定 */
.bb-custom-wrapper {
	position: relative;
	width: 100%;
	/* 画像の高さに合わせて数値を調整してください */
	height: 500px !important;
	min-height: 500px !important;
	max-height: 500px !important;
	margin: 0 auto 40px;
	overflow: visible;
	/* アニメーションがはみ出しても消えないように */
}

/* 2. BookBlock本体の高さも固定 */
.bb-bookblock {
	width: 100%;
	height: 500px !important;
	/* %ではなく、具体的な数値を指定 */
	position: relative;
	/* アニメーション中のチラつき・ズレ防止 */
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transform-style: preserve-3d;
	perspective: 2000px !important;
	transform-style: preserve-3d;
	overflow: hidden;

}

/* 3. 各アイテム（ページ）も親に合わせる */
.bb-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	background: #fff;
	transform-origin: left center;
	/* 左端を軸にする */
	transition: transform 0.8s ease-in-out, opacity 0.8s;
	backface-visibility: hidden;
	z-index: 1;
}

/* 「めくられ中」の古いページ */
.bb-flip-out {
	display: block !important;
	z-index: 2;
	transform: rotateY(-90deg);
	/* 左に90度倒れる */
	opacity: 0;
}

/* 「次に出てくる」新しいページ */
.bb-flip-in {
	display: block !important;
	z-index: 1;
	transform: rotateY(0deg);
	opacity: 1;
}


.bb-custom-wrapper .bb-bookblock {
	box-shadow: 0 12px 20px -10px rgba(81, 64, 49, 0.6);
}

.bb-custom-wrapper .bb-bookblock img {
	width: 100%;
}

.bb-custom-wrapper h3 {
	font-size: 1.4em;
	font-weight: 300;
	margin: 0.4em 0 1em;
}

.bb-custom-wrapper nav {
	width: 100%;
	height: 30px;
	margin: 1em auto 0;
	z-index: 0;
	display: flex;
	justify-content: center;
	position: absolute;
	/* 親要素（wrapper）に対して位置を固定 */
	bottom: -60px;
	/* 画像の下に配置 */
	left: 50%;
	transform: translateX(-50%);
}


.bb-custom-wrapper nav span {
	display: inline-block;
	width: 30px;
	height: 30px;
	text-align: center;
	border-radius: 2px;
	background-color: #ff681c;
	color: #fff;
	font-size: 0;
	margin: 2px;
	cursor: pointer;
	/* マウスを乗せた時に指マークにする */
	position: relative;
	z-index: 1000;
	/* 最前面に持ってくる */
}

.bb-custom-wrapper nav span:hover {
	opacity: 0.6;
}

.bb-custom-icon:before {
	font-family: 'arrows';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	font-size: 20px;
	line-height: 30px;
	display: block;
	-webkit-font-smoothing: antialiased;
}

.bb-custom-icon-first:before,
.bb-custom-icon-last:before {
	content: "\e002";
}

.bb-custom-icon-arrow-left:before,
.bb-custom-icon-arrow-right:before {
	content: "\e003";
}

.bb-custom-icon-arrow-left:before,
.bb-custom-icon-first:before {
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
}

/* No JS */
.no-js .bb-custom-wrapper {
	height: auto;
}

.no-js .bb-custom-content {
	height: 470px;
}