.mj-page-heading {
  background-color: rgb(var(--color-background));
}

.mj-page-heading__stage {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

.mj-page-heading__bg {
  position: absolute;
  inset: -80px 0;
  z-index: -2;
  pointer-events: none;
  opacity: var(--mj-bg-opacity, 0.3);
}

.mj-page-heading__bg-image,
.mj-page-heading__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 背景の上に薄い膜を置き、本文のコントラストを確保する */
.mj-page-heading__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(var(--color-background), 0.93),
    rgba(var(--color-background), 0.72) 65%,
    rgba(var(--color-background), 0.45)
  );
}

.mj-page-heading__inner {
  position: relative;
}

.mj-page-heading__title {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-block-end: 18px;
}

.mj-page-heading__lead {
  max-width: 48em;
  margin-block-end: 0;
}

.mj-page-heading__lead > :last-child {
  margin-block-end: 0;
}

@media (max-width: 760px) {
  .mj-page-heading__title {
    font-size: 30px;
    line-height: 1.65;
  }
}

/* 参照実装 .page-title>.water-surface{opacity:.5} */
.mj-page-heading__water { z-index: -1; }
.mj-page-heading__water .mj-water-surface { opacity: 0.5; }

/* 設定欄で入れた改行をそのまま反映する */
.mj-page-heading__title {
  white-space: pre-line;
}

/* 参照 .breadcrumb{font-size:12px;color:var(--muted);margin-bottom:25px} */
.mj-page-heading__crumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: rgb(var(--color-light-text));
  margin-block-end: 25px;
}

.mj-page-heading__crumb a {
  color: inherit;
  text-decoration: none;
}

.mj-page-heading__crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 参照 .page-title{padding:70px 0 65px} h1{font-size:42px;margin-bottom:18px;line-height:1.6} */
.mj-page-heading__title {
  font-size: 42px;
  line-height: 1.6;
  margin-block-end: 18px;
}

@media (max-width: 760px) {
  .mj-page-heading__title { font-size: 29px; }
}

/* 参照 .article-body .note{font-size:13px} 相当。記事の公開日 */
.mj-page-heading__date {
  margin-block-start: 18px;
}
