/* Basic sample */

body{
	overflow:hidden;
	background-color:#fcfcfc;
	margin:0;
	padding:0;
}

.container {
	padding-right: 0!important;
	padding-left: 0!important;
	margin-right: 0!important;
	margin-left: 0!important;
}

.navbar {
	padding: .1rem 1rem!important;
}

.navbar-brand {
	font-size: 12pt!important;
}

.flipbook-viewport{
	overflow:hidden;
	width:100%;
	height:calc(100vh - 106px);
}

.flipbook-viewport .container{
	position:absolute;
	//top:50%;
	//left:50%;
	margin:auto;
	width: 100%!important;
	max-width: 100%!important;
	height: 100%!important;
	max-height: 100%!important;
}

.flipbook-viewport .flipbook{
	width:922px;
	height:600px;
	left:-461px;
	top:-300px;
}

.flipbook-viewport .page{
	width:461px;
	height:600px;
	background-color:white;
	background-repeat:no-repeat;
	background-size:100% 100%;
}

.flipbook .page{
	-webkit-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-moz-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-ms-box-shadow:0 0 20px rgba(0,0,0,0.2);
	-o-box-shadow:0 0 20px rgba(0,0,0,0.2);
	box-shadow:0 0 20px rgba(0,0,0,0.2);
}

.flipbook-viewport .page img{
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	margin:0;
}

.flipbook-viewport .shadow{
	box-shadow:0 0 0!important;
}

.flipbook-viewport .next-button,
.flipbook-viewport .previous-button{
	width:22px;
	height:100%;
	position:absolute;
	top:0;
}

.flipbook-viewport .next-button{
	right:-22px;
	-webkit-border-radius:0 15px 15px 0;
	-moz-border-radius:0 15px 15px 0;
	-ms-border-radius:0 15px 15px 0;
	-o-border-radius:0 15px 15px 0;
	border-radius:0 15px 15px 0;
}

.flipbook-viewport .previous-button{
	left:-22px;
	-webkit-border-radius:15px 0 0 15px;
	-moz-border-radius:15px 0 0 15px;
	-ms-border-radius:15px 0 0 15px;
	-o-border-radius:15px 0 0 15px;
	border-radius:15px 0 0 15px;
}

.flipbook-viewport .previous-button-hover,
.flipbook-viewport .next-button-hover{
	background-color:rgba(0,0,0, 0.2);
}

.flipbook-viewport .previous-button-hover,
.flipbook-viewport .previous-button-down{
	background-image:url(../images/arrows.png);
	background-position:-4px 50%;
	background-repeat:no-repeat;
}

.flipbook-viewport .previous-button-down,
.flipbook-viewport .next-button-down{
	background-color:rgba(0,0,0, 0.4);
}

.flipbook-viewport .next-button-hover,
.flipbook-viewport .next-button-down{
	background-image:url(../images/arrows.png);
	background-position:-38px 50%;
	background-repeat:no-repeat;
}

.zoom-icon{
	position:absolute;
	z-index:1000;
	width:22px;
	height:22px;
	top:10px;
	right:10px;
	background-image:url(../images/zoom-icons.png);
	background-size:88px 22px;
}

.footer {
	background-color: lightgray;
	height: 50px;
}

.footer .event-none {
	background: #9f9f9f!important;
	pointer-events: none;
}

.footer .zevent-none {
	background: #9f9f9f!important;
	pointer-events: none;
}

.footer .first-page {
	width: 45px;
	height: 30px;
	background: #009fff;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	cursor: pointer;
}

.footer .first-page::before {
    content: "";
	position: relative;
    top: 50%;   /* 縦軸をセンタリングする */ 
    left: 7px;
    transform: translateY(-50%);   /* 縦軸をセンタリングする */  
    border: 7px solid transparent;
    border-right: 8px solid #fff;   /* 好みで色を変えてください */
    display: block;
	height: 15px;
	width: 10px;
}

.footer .first-page::after {
    content: "";
	position: relative;
    left: 15px;
    transform: translateY(-50%);   /* 縦軸をセンタリングする */  
    border: 7px solid transparent;
    border-right: 8px solid #fff;   /* 好みで色を変えてください */
    display: block;
	height: 15px;
	width: 10px;
}

.footer .last-page {
	width: 45px;
	height: 30px;
	background: #009fff;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	cursor: pointer;
}

.footer .last-page::before {
    content: "";
	position: relative;
    top: 50%;   /* 縦軸をセンタリングする */ 
    left: 14px;
    transform: translateY(-50%);   /* 縦軸をセンタリングする */  
    border: 7px solid transparent;
    border-left: 8px solid #fff;   /* 好みで色を変えてください */
    display: block;
	height: 15px;
	width: 10px;
}

.footer .last-page::after {
    content: "";
	position: relative;
    left: 22px;
    transform: translateY(-50%);   /* 縦軸をセンタリングする */  
    border: 7px solid transparent;
    border-left: 8px solid #fff;   /* 好みで色を変えてください */
    display: block;
	height: 15px;
	width: 10px;
}

.footer .prev-page {
	width: 45px;
	height: 30px;
	background: #009fff;
	border-left: 1px solid rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.footer .prev-page::before {
    content: "";
	position: relative;
    top: 50%;   /* 縦軸をセンタリングする */ 
    left: 10px;
	width: 5px;
    transform: translateY(-50%);   /* 縦軸をセンタリングする */  
    border: 7px solid transparent;
    border-right: 8px solid #fff;   /* 好みで色を変えてください */
    display: block;
	height: 15px;
}

.footer .input-page {
	width: 55px
}

.footer .next-page {
	width: 45px;
	height: 30px;
	background: #009fff;
	border-right: 1px solid rgba(0, 0, 0, 0.3);
	cursor: pointer;
}

.footer .next-page::before {
    content: "";
	position: relative;
    top: 50%;   /* 縦軸をセンタリングする */ 
    left: 18px;
    transform: translateY(-50%);   /* 縦軸をセンタリングする */  
    border: 7px solid transparent;
    border-left: 8px solid #fff;   /* 好みで色を変えてください */
    display: block;
	height: 15px;
	width: 10px;
}

.footer .first-page:hover {
	background: #0040ff;;
}

.footer .prev-page:hover {
	background: #0040ff;;
}

.footer .next-page:hover {
	background: #0040ff;;
}

.footer .last-page:hover {
	background: #0040ff;;
}

.footer .zoom-in {
	margin-left: 20px;
	width: 45px;
	height: 30px;
	background: #009fff;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	cursor: pointer;
	position: relative;
}

.footer .zoom-in:before,
.footer .zoom-in:after {
	content: "";
	position: absolute;
	top: 13px;
	width: 16px;
	height: 4px;
	background-color: #fff;
	left: 14px;
}
.footer .zoom-in:after {
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

.footer .zoom-out {
	width: 45px;
	height: 30px;
	background: #009fff;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	border-left: solid 1px gray;
	cursor: pointer;
	position: relative;
}

.footer .zoom-out:after {
	content: "";
	position: absolute;
	top: 13px;
	width: 16px;
	height: 4px;
	background-color: #fff;
	left: 14px;
}

.footer .zoom-in:hover {
	background: #0040ff;;
}

.footer .zoom-out:hover {
	background: #0040ff;
}

	.footer .contents-panel {
		width: 120px;
		height: 30px;
		background: #e38634;
		border-radius: 5px;
		cursor: pointer;
		position: relative;
		line-height: 1.77;
		color: #fff;
		margin-left: auto;
		margin-right: 30px;
		opacity: 0;
		z-index: -1;
		pointer-events: none;
	}

.footer .contents-panel:hover {
	background: #ce6100;
}

.footer .mokuji-panel {
	width: 120px;
	height: 30px;
	background: #07ae68;
	border-radius: 5px;
	cursor: pointer;
	position: relative;
	line-height: 1.77;
	color: #fff;
	margin-left: 30px;
	margin-right: auto;
}

	.footer .mokuji-panel-none {
		width: 120px;
		height: 30px;
		background: #07ae68;
		border-radius: 5px;
		cursor: pointer;
		position: relative;
		line-height: 1.77;
		color: #fff;
		margin-left: 30px;
		margin-right: auto;
		opacity: 0;
		z-index: -1;
		pointer-events: none;
	}

.footer .mokuji-panel:hover {
	background: #047948;
}

.table-of-contents {
	height: 70px;
	width: 30px;
	background: #07ae68;
	position: fixed;
	bottom: 50px;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	z-index: 11;
	cursor: pointer;
	text-align: center;
	padding-top: 10px;
	color: #fff;
}

.table-of-contents.show-index {
	left: 300px;
	cursor: pointer;
}

.side-area {
	height: calc(100% - 106px);
	width: 300px;
	position: fixed;
	top: 56px;
	z-index: 11;
	display: none;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	background:rgba(51,112,121,0.8);
}

.side-area.show {
	display: block;
}

.side-area-right {
	height: calc(100% - 106px);
	width: 300px;
	position: fixed;
	top: 56px;
	left: calc(100% - 300px);
	z-index: 11;
	display: none;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
	background:rgba(206,97,0,0.7);
}

.side-area-right.show {
	display: block;
}

.page-canvas {
	position: absolute;
	cursor: pointer;
	opacity: 0;
}

.page-canvas:hover {
	opacity: 0;
}

.kanren-item {
	display: block;
	margin-left: 15px;
	margin-top: 7px;
	margin-bottom: 7px;
	text-decolation: none;
	color: white;
}

.kanren-item:hover {
	text-decoration: none!important;
}

.page.odd > span.pnum {
	display: flex;
	/*float: right;*/
	margin-right: 5px;
	position: relative;
	font-size: clamp(8px,1.7vmin,18px);
	height: 100%;
	align-items: end;
	justify-content: center;
}

.page.even > span.pnum {
	display: flex;
	/*float: left;*/
	margin-left: 5px;
	position: relative;
	font-size: clamp(8px,1.7vmin,18px);
	height: 100%;
	align-items: end;
	justify-content: center;
}

.page > span.pnum-middle {
	justify-content: center;
	display: flex;
	position: relative;
	/*top: calc(100% - 15px);*/
	font-size: clamp(8px,3vmin,18px);
	height: 100%;
	align-items: end;
}

.v-rotate {
	transform: scale(-1, 1) !important;
}