.novel {
  max-width: 680px;
  margin: 2rem auto 0.5rem auto; /* ← autoで中央に */
  padding-left: 1rem;
  padding-right: 1rem;
  font-family: 'Playfair Display', serif;
  text-align: left;
  color: #2e3a4f;
  letter-spacing: 0.05em;
}


#novel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  /*color: #2e3a4f;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;*/
}

#novel-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  text-align: center;
  margin-top: 0;
  /*color: #2e3a4f;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;*/
}

.story-caption {
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: left;
  color: #384050;
  margin: 0.75rem 0 0;
}

details {
  margin: 1rem 0 2rem;
}

details > summary {
  cursor: pointer;
  font-size: 0.95rem;
  color: #2e3a4f;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(46, 58, 79, 0.2);
}

details > summary::marker {
  color: #2e3a4f;
}

details > summary::after {
  content: "+";
  margin-left: 0.4rem;
  font-size: 0.9rem;
  color: #2e3a4f;
}

details[open] > summary::after {
  content: "-";
}

details .story-caption {
  font-family: 'Playfair Display', serif;
  background: none;
  padding: 0.5rem 0 0;
  border-radius: 0;
}

details[open] ~ #story {
  color: #b2b7bd;
}

.story-body {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
  font-family: 'Georgia', serif;
}

.story-nav {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 3rem auto;
  font-size: 0.9rem;
}

.story-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  color: #2b2e36;
  display: inline-block;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.story-nav a:hover {
  color: #1a1a1a;
}

.story-nav a:hover::after {
  transform: scaleX(1);
}

/* 下線（アニメ前） */
.story-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background-color: #ccc;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* hoverできる端末（PCなど） */
@media (hover: hover) and (pointer: fine) {
  .story-nav a:hover {
    color: #1a1a1a;
  }
  .story-nav a:hover::after {
    transform: scaleX(1);
  }
}

/* hoverできない端末（スマホ） */
@media (hover: none) and (pointer: coarse) {
  .story-nav {
  padding: 0 1rem;
}
  .story-nav a::after {
    transform: scaleX(1); /* 常時表示 */
    transition: none;     /* スマホではアニメ不要 */
  }
}
