#add-contents-top .paragraph {
  color: #333;
  line-height: 1.8;
  margin: 0 0 0.8rem;
  text-indent: 1em;
}
#add-contents-top .paragraph.no-indent {
  text-indent: 0;
}
#add-contents-top .paragraph.no-margin {
  margin: 0;
}
#add-contents-top .komidashi,
#add-contents-top .midashi {
  color: #333;
  line-height: 1.8;
  margin: 0 0 0.8rem;
}
#add-contents-top ul:not(.contents-link-list) {
  color: #333;
  line-height: 1.8;
  margin: 0 0 0.8rem;
}
#add-contents-top .contents-link-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 600px;
}
#add-contents-top .contents-link-list li {
  margin-bottom: 0.8rem;
}
#add-contents-top .contents-link-list li a {
  display: block;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #2b140b;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.15s;
}
#add-contents-top .contents-link-list li a:hover {
  background: rgba(139,69,19,0.08);
}
#add-contents-top .contents-link-list li a.img-link {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}
#add-contents-top .contents-link-list li a.img-link:hover {
  background: none;
}
#add-contents-top .contents-link-list li a.img-link img {
  display: block;
  max-width: 100%;
  height: auto;
}
#add-contents-top .hex-btn-item {
  text-align: center;
  margin-top: 1.2rem;
}
#add-contents-top .dl-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}
#comic-page {
  padding-bottom: 3rem;
}
#comic-page .section-box {
  max-width: 1200px;
  border: none;
  box-shadow: none;
}
#comic-page .section-box::before {
  display: none;
}
.comic-viewer {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.comic-btn {
  flex-shrink: 0;
  width: 44px;
  background: transparent;
  border: none;
  color: #1a0a06;
  font-size: 1.8rem;
  cursor: pointer;
  transition: text-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.comic-btn:hover {
  background: transparent;
  text-shadow: 0 0 8px rgba(139,69,19,0.6), 0 0 8px rgba(139,69,19,0.6);
}
.comic-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 480px) {
  .comic-btn {
    width: 28px;
    font-size: 1.2rem;
  }
}
.comic-scroll-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding: 0 20px 12px;
  user-select: none;
  scroll-behavior: smooth;
}
.comic-scroll-wrapper:active {
  cursor: grabbing;
}
.comic-scroll-track {
  display: flex;
  gap: 4px;
  width: max-content;
}
.comic-page {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 78vh;
  max-height: 800px;
}
.comic-page img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 800px;
  object-fit: contain;
  border: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.comic-footer-note {
  font-size: 0.8rem;
  color: #6a5060;
  text-align: center;
  margin-top: 8px;
  padding: 0 20px;
  opacity: 0.8;
}
@media (max-width: 800px) {
  .comic-viewer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .comic-scroll-wrapper {
    padding: 0 0 12px;
  }
  .comic-page {
    height: auto;
    max-height: none;
    aspect-ratio: 2/3;
  }
  .comic-page img {
    max-height: none;
    height: auto;
    width: 100%;
  }
}
.yonkoma-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.yonkoma-toc ul li {
  margin-bottom: 0.5rem;
}
.yonkoma-toc ul li a {
  color: #8b4513;
  text-decoration: none;
  font-weight: bold;
}
.yonkoma-toc ul li a:hover {
  text-decoration: underline;
}
.yonkoma-series h3 {
  font-size: 1.2rem;
  color: #2b140b;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #8b4513;
  margin-bottom: 0.5rem;
}
.yonkoma-series .series-author {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}
.yonkoma-series .episode-nav {
  background: #f9f6f2;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  line-height: 2;
}
.yonkoma-series .episode-nav a {
  color: #8b4513;
  text-decoration: none;
}
.yonkoma-series .episode-nav a:hover {
  text-decoration: underline;
}
.episode {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
.episode h4 {
  font-size: 1rem;
  color: #2b140b;
  margin: 0 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 4px solid #8b4513;
}
.episode-images {
  text-align: center;
}
.episode-images img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5rem auto;
}
@media (max-width: 1260px) {
  .yonkoma-series h3 {
    font-size: 1rem;
  }
  .yonkoma-series .episode-nav {
    font-size: 0.9rem;
  }
  .contents-link-list li a {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }
}
html.is-mobile-portrait .yonkoma-series h3 {
  font-size: 1rem;
}
html.is-mobile-portrait .yonkoma-series .episode-nav {
  font-size: 0.9rem;
}
html.is-mobile-portrait .contents-link-list li a {
  padding: 0.8rem 1rem;
  font-size: 1rem;
}
