body {
  background-color: #0b0231;
  color: #3b2412;
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}


.page-center {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 12px 72px;
  box-sizing: border-box;
  background-color: #ffffcc;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}


h1 {
  text-align: center;
  color: #3b2412;
  margin: 8px 0 24px;
}

.page-center > h1,
.page-center > p,
.page-center > p.dialogue,
.page-center > p.credit,
.page-center > p.poem {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

p {
  line-height: 1.8;
  text-indent: 1em;
  margin: 14px 0;
}

p a {
  color: #b5651d;
}

p.dialogue {
  text-indent: 0;
  margin: 10px 0;
  padding: 6px 14px;
  background-color: #fff8e0;
  border-left: 4px solid #cc9933;
  border-radius: 0 6px 6px 0;
}

p.credit {
  text-indent: 0;
  text-align: center;
  font-size: 13px;
  color: #6b5a3a;
  margin: 4px 0 14px;
}

p.poem {
  text-indent: 0;
  text-align: center;
}

p img.img-left {
  float: left;
  max-width: 46%;
  margin: 4px 16px 10px 0;
  border-radius: 4px;
}

p img.img-right {
  float: right;
  max-width: 46%;
  margin: 4px 0 10px 16px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  p img.img-left,
  p img.img-right {
    float: none;
    display: block;
    max-width: 100%;
    margin: 12px auto;
  }
}

.illustration {
  text-align: center;
  margin: 20px 0;
}

.illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  margin: 20px 0;
}

.photo-row figure {
  margin: 0;
  padding: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  max-width: 100%;
}

.photo-row img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.nav-label {
  font-weight: bold;
  text-align: left;
  text-indent: 0;
  margin: 20px 0 4px;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 16px;
}

.chapter-nav a {
  display: block;
  box-sizing: border-box;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

.chapter-nav a.nav-link-last-clicked {
  background-color: rgba(90, 58, 122, 0.18);
  border-color: rgba(90, 58, 122, 0.5);
  color: #5a3a7a;
}

.photo-row figure a.nav-link-last-clicked img {
  outline: 3px solid rgba(90, 58, 122, 0.7);
  outline-offset: 2px;
  border-radius: 4px;
}

.extra-links {
  text-align: center;
  text-indent: 0;
  margin: 8px 0;
  color: #8a6a4a;
}

hr {
  border: none;
  border-top: 1px solid #4a4468;
  margin: 28px auto;
  max-width: 640px;
}

/* シリーズ物「前へ／次へ」ナビ（insert-series-nav.jsで自動挿入） */
.series-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 12px 16px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.series-nav a {
  color: #0000cc;
  text-decoration: none;
  font-weight: bold;
  flex: 1 1 auto;
  min-width: 0;
}

.series-nav-prev {
  text-align: left;
}

.series-nav-next {
  text-align: right;
}

.series-nav a:hover,
.series-nav a:focus-visible {
  text-decoration: underline;
}

.series-nav-disabled {
  color: #aaaaaa;
  font-weight: bold;
  white-space: nowrap;
}

.series-nav-title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 0.85em;
  color: #666666;
}
