:root {
	--color_main: #379bd2;
	--color_dark: #022a68;
	--sans-serif: "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}
body {
	overflow: hidden;
	font-size: 16px;
}

#book {
	max-height: 90dvh;
	position: relative;
}
#book::after {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	height: 100%;
	width: auto;
	aspect-ratio: 1.4149 / 1;
	box-shadow: 0 0 4px 2px rgba(0,0,0,0.2);
	z-index: 1;
	pointer-events: none;
}
#book.is-first-page::after {
	transform: translateX(0);
	aspect-ratio: 0.7074 / 1;
}
#book.is-last-page::after {
	transform: translateX(-100%);
	aspect-ratio: 0.7074 / 1;
}

.book-controller {
	position: relative;
	z-index: 99;
	display: flex;
	justify-content: center;
	gap: 4px;
	padding: 12px 12px;
	margin-top: 12px;
	align-items: center;
	background: var(--color_dark);
	width: fit-content;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 45px;
}
.book-controller button {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.2em;
	cursor: pointer;
}
.book-controller button:disabled {
	opacity: .5;
}
#pageNum {
	margin: auto 8px;
	color: #fff;
	font-size: 1.2em;
	line-height: 1;
	padding-bottom: .1em;
	font-family: var(--sans-serif);
}


#viewer{
    overflow:hidden;
    position:relative;
    touch-action:none;
    height: 90dvh;
    display: flex;
    align-items: center;
}

#zoom-layer{
    transform-origin:center center;
    will-change:transform;
    width: 100%;
}

#floatPrev, #floatNext {
	position: fixed;
	top: 45dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	font-size: 1.6em;
	width: 2em;
	height: 2em;
	padding: 0;
	border-radius: 1em;
	background-color: rgba(255,255,255,.67);
	border: none;
	color: var(--color_dark);
	cursor: pointer;
}

#floatNext {
	right: .67em;
}

#floatPrev {
	left: .67em;
}

#floatPrev:disabled, #floatNext:disabled {
	opacity: .5;
}

@media screen and (max-width: 798px){
	.book-controller button, #pageNum, #floatPrev, #floatNext {
		font-size: 24px;
	}
}

.page {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

.hp_logo a {
	position: fixed;
	top: 0;
	left: 24px;
	background: rgba(255,255,255,.67);
	padding: 16px;
}

.hp_logo a img {
	width: 48px;
}

@media screen and (max-width: 768px){
	.hp_logo {
		display: none;
	}
}