@charset 'utf-8';

.viewer {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  padding-top: 24px;
  overflow: hidden;
}

.page-list {
  display: flex;
  flex-direction: row-reverse;
  transition: transform 0.5s ease;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.page {
  flex-shrink: 0;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  background: center no-repeat url(/manga/wp/wp-content/themes/milkymanga/assets/images/loading.png);
}

.page img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #fff;
}

.book-end-content {
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.book-end-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
}

.book-end-link {
  padding-top: 24px;
  margin-bottom: 24px;
}

.book-end-link a {
  display: block;
  max-width: 320px;
  margin: 0 auto;
  padding: 0 24px;
  line-height: 48px;
  text-align: center;
  border: solid 1px var(--mainColor);
  border-radius: 24px;
  color: var(--mainColor);
  box-sizing: border-box;
}
.book-end-title {
	font-size:17px;
	margin-bottom:24px;
}
.book-end-artist a {
	text-decoration:underline;
}
.book-end-favorite {
	display:flex;
	flex-direction:column;
	align-items:center;
}
.book-end-favorite p {
  font-weight:bold;
  font-size:15px;
  margin-bottom:1em;
}

.page-control {
  max-width: 600px;
  margin: 10px auto;
  text-align: center;
  padding: 0 8px;
}

.page-control input[type='range'] {
  width: 100%;
}

.page-label {
  font-size: 12px;
  margin-top: 16px;
  color: #ddd;
}

input[type='range'] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  outline: none;
}

/* トラック（バー）部分 */
input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
}

input[type='range']::-moz-range-track {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
}

/* サム（つまみ）部分 */
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 20px;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-top: -7px; /* トラックとサムの位置調整 */
}

input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 20px;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
