/* ===== Shared legacy fixed-page layout ===== */
.legacy-document-page {
  background: #f7f9fd;
  color: #162033;
}

.legacy-document-page .l-topTitleArea {
  position: relative;
  min-height: clamp(210px, 30vw, 380px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #123f8c;
}

.legacy-document-page .l-topTitleArea__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-document-page .l-topTitleArea::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 31, 78, 0.78), rgba(9, 31, 78, 0.34));
}

.legacy-document-page .l-topTitleArea__body {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1080px);
  color: #fff;
}

.legacy-document-page .c-pageTitle {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.18;
  font-weight: 900;
}

.legacy-document-page .c-pageTitle__subTitle {
  display: block;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.legacy-document-page .l-content {
  width: min(calc(100% - 40px), 980px);
  margin: 64px auto 96px;
}

.legacy-document-page .post_content {
  display: flow-root;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid #e5eaf2;
  background: #fff;
  box-shadow: 0 22px 58px rgba(18, 39, 78, 0.08);
}

.legacy-document-page .post_content > *:first-child {
  margin-top: 0;
}

.legacy-document-page .post_content p {
  margin: 18px 0 0;
  color: #2c3442;
  font-size: 1rem;
  line-height: 1.95;
}

.legacy-document-page .post_content h2 {
  margin: 48px 0 18px;
  padding: 15px 20px;
  background: #185fe7;
  color: #fff;
  font-size: clamp(1.22rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  font-weight: 900;
}

.legacy-document-page .post_content h3 {
  margin: 38px 0 14px;
  color: #0b245a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
  font-weight: 900;
}

.legacy-document-page .post_content h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 9px;
  background: #22b8cf;
}

.legacy-document-page .post_content ul,
.legacy-document-page .post_content ol {
  margin: 18px 0 0;
  padding-left: 1.4em;
  color: #2c3442;
  line-height: 1.95;
}

.legacy-document-page .post_content li + li {
  margin-top: 8px;
}

.legacy-document-page .post_content a {
  color: #185fe7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legacy-document-page figure {
  margin: 28px 0;
}

.legacy-document-page .post_content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 780px) {
  .legacy-document-page .l-content {
    width: min(calc(100% - 24px), 980px);
    margin: 36px auto 72px;
  }

  .legacy-document-page .post_content {
    padding: 24px 18px;
  }

  .legacy-document-page .post_content h2 {
    margin-top: 42px;
    padding: 14px 16px;
    font-size: 1.22rem;
  }
}
