
/* normalize.css v2.1.3 | MIT License | git.io/normalize */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block
}

audio,
canvas,
video {
  display: inline-block
}

audio:not([controls]) {
  display: none;
  height: 0
}

[hidden],
template {
  display: none
}

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0
}

a {
  background: transparent
}

a:focus {
  outline: thin dotted
}

a:active,
a:hover {
  outline: 0
}

h1 {
  font-size: 2em;
  margin: .67em 0
}

abbr[title] {
  border-bottom: 1px dotted
}

b,
strong {
  font-weight: bold
}

dfn {
  font-style: italic
}

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0
}

mark {
  background: #ff0;
  color: #000
}

code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em
}

pre {
  white-space: pre-wrap
}

q {
  quotes: "\201C" "\201D" "\2018" "\2019"
}

small {
  font-size: 80%
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sup {
  top: -.5em
}

sub {
  bottom: -.25em
}

img {
  border: 0
}

svg:not(:root) {
  overflow: hidden
}

figure {
  margin: 0
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: .35em .625em .75em
}

legend {
  border: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}

button,
input {
  line-height: normal
}

button,
select {
  text-transform: none
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="search"] {
  -webkit-appearance: textfield;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  box-sizing: content-box
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0
}

textarea {
  overflow: auto;
  vertical-align: top;
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

.unresolved {
  opacity: 0;
  visibility: hidden;
}

body {
  color: #666;
  overflow: hidden;
  width: 100%
}

input[type="range"] {
  -webkit-appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #eee;
  border: 1;
  height: 1.5em
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #aaa;
  text-align: center;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  -webkit-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box
}

input[type="range"]::-webkit-slider-thumb:before {
  content: "";
  display: inline-block;
  background-color: #333;
  width: 15px;
  height: 15px;
  border: 1px solid transparent;
  border-radius: 15px;
  margin: 6px auto 0;
  -webkit-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box
}

input[type="range"]::-webkit-slider-thumb:hover {
  background-color: #777
}

input[type="range"]:active::-webkit-slider-thumb {
  background-color: #66c
}

input[type="range"]:active::-webkit-slider-thumb:before {
  background-color: #339
}

input[type="range"]:disabled {
  background-color: #888;
}

input[type="range"]:disabled::-webkit-slider-thumb {
  background-color: #333;
  cursor: default;
}

input[type="range"]:disabled::-webkit-slider-thumb:before {
  background-color: #333;
}

input[type="range"]:disabled::-webkit-slider-thumb:hover {
  background-color: #333;
}

input[type="range"]:disabled:active::-webkit-slider-thumb {
  background-color: #333;
}

input[type="range"]:disabled:active::-webkit-slider-thumb:before {
  background-color: #333;
}

input[type="range"]:focus {
  outline: none
}

input[type="range"]::-moz-range-thumb {
  text-align: center;
  width: 30px;
  height: 30px;
  border: 1px solid #000;
  border-radius: 30px;
  cursor: pointer;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box
}

input[type="range"]::-moz-range-track {
  width: 0;
  height: 0
}

input[type="range"]::-ms-thumb {
  height: 1.5em;
  width: 1.5em;
  border: none;
  border-radius: 50%;
  background: #aaa
}

input[type="range"]::-ms-track {
  background: transparent;
  border-color: transparent;
  color: transparent
}

input[type="range"]::-ms-fill-lower {
  background: #eee;
  border-radius: 10px
}

input[type="range"]::-ms-fill-upper {
  background: #eee;
  border-radius: 10px
}

input[type="range"]:focus::-ms-fill-lower {
  background: #eee
}

input[type="range"]:focus::-ms-fill-upper {
  background: #eee
}

input[type="range"]::-ms-tooltip {
  display: none
}

.btn {
  cursor: pointer;
  margin: 10px
}

.btn-icon {
  width: 30px;
  height: 30px;
  margin: auto;
  display: block
}

.btn-title {
  display: block;
  position: relative;
  height: 10px;
  font-size: .7em;
  text-align: center
}

.btn-disabled+.btn-title {
  color: #696969
}

.btn-has-bookmark,
.btn-selected {
  filter: drop-shadow(0 0 8px #fff);
  -webkit-filter: drop-shadow(0 0 8px #fff);
  -moz-filter: drop-shadow(0 0 8px #fff);
  -o-filter: drop-shadow(0 0 8px #fff);
  -ms-filter: drop-shadow(0 0 8px #fff)
}

.view-control {
  position: fixed; /* safe-area-inset-xxxについていく滑らかさはfixedが一番よい */
  bottom: 0;
  z-index: 10;
  width: 100%;
  max-height: 125px;
  padding-bottom: env(safe-area-inset-bottom);
  background-color: rgba(0, 0, 0, 0.8);
  touch-action: none;
}

.view-control.state-open {
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.view-control.state-close {
  padding-bottom: 0;
  transform: translateY(125px);
  transition: transform 0.2s ease;
}

.view-control.state-open-imediate {
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(0);
}

.view-control.state-close-imediate {
  padding-bottom: 0;
  transform: translateY(125px);
}

.view-title {
  flex: 1 1 auto;
  z-index: 10;
  color: #fff;
  text-align: center;
  margin: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.view-title #cgv-title {
  height: 25px;
  font-weight: bold;
  font-size: 17px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis
}

.view-title #cgv-author {
  height: 18px;
  font-size: 12px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis
}

.view-list {
  position: absolute;
  top: 60px;
  width: 100%;
  z-index: 10;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  font-size: 17px;
  overflow-y: scroll;
  scroll-behavior: smooth;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

.view-list.view-list-vertical-fit {
  top: 0;
  width: 80%;
  margin: 0 10%;
}

.view-list div {
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 5px;
  margin-left: 16px;
  margin-right: 16px;
  display: block;
  text-align: left
}

.view-list div:not(:last-child):not(.arrow-down):not(.arrow-up) {
  border-bottom: solid 1px #fff
}

.view-list .list-title {
  text-align: center
}

.view-list .list-title:first-child {
  margin: 4px;
}

.view-list .list-item {
  display: flex;
}

.view-list .list-group-title {
  font-weight: bold;
  padding-top: 32px;
  padding-bottom: 0;
  color: #f5f5dc
}

.view-list .list-item-title {
  flex: 1 1 auto;
  pointer-events: none;
}

.view-list .list-item-page {
  flex-shrink: 0;
}

.view-list .list-item-empty {
  display: block;
  text-align: center;
}

.view-list .list-item-navigation-no-link {
  color: #bbbbbb;
}

.view-list .arrow {
  position: fixed;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  left: 50%;
  border: 40px solid transparent;
  -webkit-transform: translateX(-40px);
  -moz-transform: translateX(-40px);
  -o-transform: translateX(-40px);
  -ms-transform: translateX(-40px);
  transform: translateX(-40px);
  opacity: .5;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
  filter: alpha(opacity=50);
}

.view-list .arrow-down {
  border-top: 40px solid #fff
}

.view-list .arrow-up {
  border-bottom: 40px solid #fff
}

.clickable-item-highlighted {
  background-color: rgba(128, 128, 128, .6);
}

.view-list.state-open {
  border-top: 1px solid #fff;
  transition: max-height 0.3s ease-in;
}

.view-list.state-open-imediate {
  border-top: 1px solid #fff;
}

.view-list.state-close {
  border-top: 0px solid transparent;
  transition: max-height 0.3s ease-out, border-top 0.2s ease 0.3s;
}

.view-list.state-close-imediate {
  border-top: 0px solid transparent;
}

.view-header {
  display: flex; 
  align-items: center;
  position: fixed; /* safe-area-inset-xxxについていく滑らかさはfixedが一番よい */
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 20;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: .8em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  padding-top: env(safe-area-inset-top);
  touch-action: none;
}

.view-header.state-open {
  transform: translateY(0);
  transition: transform 0.2s ease;
}

.view-header.state-close {
  transform: translateY(-60px);
  transition: transform 0.2s ease;
}

.view-header.state-open-imediate {
  transform: translateY(0);
}

.view-header.state-close-imediate {
  transform: translateY(-60px);
}

.view-settings select {
  min-width: 4em
}

.view-settings [type=checkbox] {
  max-height: 0;
  max-width: 0;
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: alpha(opacity=0)
}

.view-settings [type=checkbox]+label {
  display: block;
  position: relative;
  -webkit-box-shadow: inset 0 0 0 1px #d5d5d5;
  box-shadow: inset 0 0 0 1px #d5d5d5;
  text-indent: -5000px;
  height: 30px;
  width: 50px;
  border-radius: 15px;
  -webkit-transform: translateY(-10%);
  -moz-transform: translateY(-10%);
  -o-transform: translateY(-10%);
  -ms-transform: translateY(-10%);
  transform: translateY(-10%)
}

.view-settings [type=checkbox]+label:before {
  content: "";
  position: absolute;
  display: block;
  height: 30px;
  width: 30px;
  top: 0;
  left: 0;
  border-radius: 15px;
  background: #3b89ff;
  -moz-transition: .25s ease-in-out;
  -webkit-transition: .25s ease-in-out;
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  -ms-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out
}

.view-settings [type=checkbox]+label:after {
  content: "";
  position: absolute;
  display: block;
  height: 30px;
  width: 30px;
  top: 0;
  left: 0;
  border-radius: 15px;
  background: #fff;
  -webkit-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
  -moz-transition: .25s ease-in-out;
  -webkit-transition: .25s ease-in-out;
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  -ms-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out
}

.view-settings [type=checkbox]:checked+label:before {
  width: 50px;
  background: #3b89ff
}

.view-settings [type=checkbox]:checked+label:after {
  left: 20px;
  -webkit-box-shadow: inset 0 0 0 1px #3b89ff, 0 2px 4px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px #3b89ff, 0 2px 4px rgba(0, 0, 0, 0.2)
}

.view-settings output {
  width: 4ch;
  text-align: right;
}

.view-settings .input-range-wrapper {
  width: 30%;
  height: 1em;
}

.view-settings .setting-slider {
  width: 100%;
  border-radius: 1em;
  padding: 0;
  border: 0
}

.view-slider {
  z-index: 10;
  width: 100%;
  color: #fff;
  font-size: .7em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.view-slider .slider-container {
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: box;
  display: flex;
  padding: 1.5em;
}

.view-slider .slider-container .slider-label {
  font-weight: bold;
  padding-left: .5em;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -o-box-flex: 1;
  box-flex: 1;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  text-align: right
}

.view-slider .slider-container [name=page] {
  border-radius: 1em;
  padding: 0;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  -o-box-flex: 1;
  box-flex: 1;
  -webkit-flex: 1 0 auto;
  -ms-flex: 1 0 auto;
  flex: 1 0 auto
}

.view-toolbar {
  display: flex;
  justify-content: space-around;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  color: #fff;
  font-size: .8em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  touch-action: none;
}

.view-toast {
  position: absolute;
  z-index: 9999;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: none;
  width: 90%;
  text-align: center;
  flex-direction: column;
  align-items: center;
  touch-action: none;
}

.view-toast.state-open {
  opacity: 1;
}

.view-toast.state-close {
  opacity: 0;
  transition: opacity 0.3s linear;
}

.view-toast .view-toast-message {
  display: inline-block;
  padding: 12px 25px 10px;
  border-radius: 3px;
  background-color: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 14px;
}

.view-toast .view-toast-message p{
  margin: 0;
  padding: 0;
}

.view-modal {
  position: absolute;
  z-index: 9999;
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, .4);
  touch-action: none;
}

.view-modal.state-open {
  opacity: 1;
}

.view-modal.state-close {
  opacity: 0;
  transition: opacity 0.3s linear;
}

.view-modal .view-modal-message {
  display: inline-block;
  padding: 12px 25px 10px;
  border-radius: 3px;
  background-color: rgba(0,0,0,0.9);
  color: #fff;
  font-size: 14px;
}

.view-modal .view-modal-message p{
  margin: 0;
  padding: 0;
}

#view-zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
}
#view-zoom button {
  margin: 0;
  outline: 0;
  box-sizing: border-box;
  display: block;
  width: 48px;
  height: 48px;
  float: left;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 2px rgba(0,0,0,0.3);
}
#view-zoom button:active {
  background-color: #ccc;
}
#view-zoom button:first-child:not(:last-child) {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}
#view-zoom button:not(:first-child):not(:last-child) {
  border-radius: 0;
}
#view-zoom button:last-child:not(:first-child) {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

#viewer_wrapper {
  position: absolute;
}