.richtext {
  font-size: 1rem;
  padding: 0 1rem;
}
.richtext > p {
  font-size: 1.6rem;
  line-height: 1.75;
  text-indent: 1rem;
  word-break: break-all;
  padding: 0;
  margin-bottom: 2rem;
}
.richtext > div {
  font-size: 1.6rem;
  line-height: 1.75;
  word-break: break-all;
  padding: 0;
  margin-bottom: 2rem;
}
.richtext > h2,
.richtext > h3 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.75;
  word-break: break-all;
  padding: 0;
  margin-bottom: 1rem;
}
.richtext > figure {
  text-align: center;
  margin-bottom: 2.4rem;
}
.richtext img {
  max-width: 100%;
  height: auto;
  display: inline;
}
.richtext > figure > figcaption {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}
.richtext > figure > small {
  font-size: 1.3rem;
  display: block;
  color: #999999;
  margin-top: 0.5rem;
}
.richtext > div.embed,
.richtext > div[class^='richtext-embed-'] {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.richtext > div.embed.youtube > iframe,
.richtext > div.richtext-embed-youtube > iframe,
.richtext > div.embed.vimeo > iframe,
.richtext > div.richtext-embed-vimeo > iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.richtext > div > hr {
  margin: 0.5rem 0;
  border: 0;
  border-top: 0.2rem solid #eee;
}
.richtext > p.spoiler,
.richtext > div.spoiler {
  position: relative;
  user-select: none;
  cursor: pointer;
}
.richtext > p.spoiler::before,
.richtext > div.spoiler::before {
  position: absolute;
  top: 3.6rem;
  left: 0;
  right: 0;
  background-color: #ffffff;
  content: "\26a0 ネタバレがあります。クリックで表示";
  font-weight: bold;
  color: #ff3300;
  z-index: 1;
  text-align: center;
  width: max-content;
  padding: 0.5rem 1.5rem;
  margin: 0 auto;
  border-radius: 0.5rem;
}
.richtext > p.spoiler > *,
.richtext > div.spoiler > * {
  -ms-filter: blur(0.6rem);
  filter: blur(0.6rem);
  cursor: pointer;
}
.richtext > p > span.spoiler,
.richtext > div > span.spoiler {
  -ms-filter: blur(0.6rem);
  filter: blur(0.6rem);
  cursor: pointer;
}
