/* 記事本文（TinyMCE）— Enter=段落 / Shift+Enter=改行 / 箇条書き */
.cms-article-body,
.cms-body,
.prose .cms-article-body,
.prose .cms-body {
  font-size: 1rem;
  line-height: 1.75;
  word-wrap: break-word;
}

.cms-article-body p,
.cms-body p {
  margin: 0 0 1em;
}

.cms-article-body p:last-child,
.cms-body p:last-child {
  margin-bottom: 0;
}

.cms-article-body ul,
.cms-article-body ol,
.cms-body ul,
.cms-body ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.cms-article-body ul,
.cms-body ul {
  list-style-type: disc;
}

.cms-article-body ol,
.cms-body ol {
  list-style-type: decimal;
}

.cms-article-body li,
.cms-body li {
  margin: 0.25em 0;
}

.cms-article-body ul ul,
.cms-article-body ul ol,
.cms-article-body ol ul,
.cms-article-body ol ol,
.cms-body ul ul,
.cms-body ul ol,
.cms-body ol ul,
.cms-body ol ol {
  margin-bottom: 0;
}

.cms-article-body img,
.cms-body img {
  max-width: 100%;
  height: auto;
}

.cms-article-body blockquote,
.cms-body blockquote {
  margin: 0 0 1em;
  padding: 0.25em 0 0.25em 1em;
  border-left: 4px solid #cbd5e1;
  color: #475569;
}

.cms-article-body .cms-text-marker,
.cms-body .cms-text-marker {
  background: linear-gradient(#fff59d, #fff59d) no-repeat bottom;
  background-size: 100% 60%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.prose .cms-article-body h1,
.prose .cms-body h1,
.cms-article-body h1,
.cms-body h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.25em 0 0.6em;
  color: #0f172a;
  scroll-margin-top: 6rem;
}

.prose .cms-article-body h2,
.prose .cms-body h2,
.cms-article-body h2,
.cms-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.15em 0 0.55em;
  color: #0f172a;
  scroll-margin-top: 6rem;
}

.prose .cms-article-body h3,
.prose .cms-body h3,
.cms-article-body h3,
.cms-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 1em 0 0.5em;
  color: #1e293b;
  scroll-margin-top: 6rem;
}

.prose .cms-article-body h4,
.prose .cms-body h4,
.cms-article-body h4,
.cms-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0.9em 0 0.45em;
  color: #334155;
  scroll-margin-top: 6rem;
}

.cms-article-body h1:first-child,
.cms-article-body h2:first-child,
.cms-article-body h3:first-child,
.cms-article-body h4:first-child,
.cms-body h1:first-child,
.cms-body h2:first-child,
.cms-body h3:first-child,
.cms-body h4:first-child {
  margin-top: 0;
}

.cms-article-body .cms-toc,
.cms-body .cms-toc {
  margin: 0 0 1.5em;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.cms-article-body .cms-toc__title,
.cms-body .cms-toc__title {
  margin: 0;
  padding: 0.7em 1.25em;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: #455f88;
  width: 100%;
  box-sizing: border-box;
}

.cms-article-body .cms-toc__note,
.cms-body .cms-toc__note {
  margin: 0;
  padding: 1em 1.25em;
  font-size: 0.875rem;
  color: #64748b;
}

.cms-article-body .cms-toc__list,
.cms-body .cms-toc__list {
  margin: 0;
  padding: 0 0.8rem;
  list-style: none;
}

.cms-article-body .cms-toc__item,
.cms-body .cms-toc__item {
  margin: 0;
  padding: 0.7em 0;
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: none;
}

.cms-article-body .cms-toc__item--h2-break,
.cms-body .cms-toc__item--h2-break {
  border-top: 1px solid #cbd5e1;
  margin-top: 0.35em;
  padding-top: 0.85em;
}

.cms-article-body .cms-toc__level-1,
.cms-body .cms-toc__level-1 {
  font-weight: 700;
}

.cms-article-body .cms-toc__level-2,
.cms-body .cms-toc__level-2 {
  padding-left: 0;
}

.cms-article-body .cms-toc__level-3,
.cms-body .cms-toc__level-3 {
  padding-left: 1em;
}

.cms-article-body .cms-toc__level-4,
.cms-body .cms-toc__level-4 {
  padding-left: 2em;
}

.cms-article-body .cms-toc__link,
.cms-body .cms-toc__link {
  display: flex;
  align-items: flex-start;
  gap: 0.35em;
  color: #1d4ed8;
  text-decoration: none;
}

.cms-article-body .cms-toc__num,
.cms-body .cms-toc__num {
  flex-shrink: 0;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  color: #475569;
  font-weight: 700;
}

.cms-article-body .cms-toc__num::after,
.cms-body .cms-toc__num::after {
  content: ".";
}

.cms-article-body .cms-toc__text,
.cms-body .cms-toc__text {
  flex: 1;
  min-width: 0;
}

.cms-article-body .cms-toc__link:hover,
.cms-body .cms-toc__link:hover {
  text-decoration: underline;
}

html:has(.cms-article-body .cms-toc),
html:has(.cms-body .cms-toc) {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

.cms-author-card--compact {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1.5em;
}

.cms-author-card__compact-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  padding: 0.5rem 0;
}

.cms-author-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #86a0cd;
  background: #fff;
}

.cms-author-card__compact-text {
  text-align: left;
  min-width: 0;
}

.cms-author-card__position {
  margin: 0 0 0.25em;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  color: #755a2c;
}

.cms-author-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #002045;
}

.cms-author-card--full {
  margin: 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 32, 69, 0.06);
}

.cms-detail-supplement {
  box-sizing: border-box;
  width: 100%;
  max-width: 700px;
  margin: 2.75em auto 0;
}

.cms-detail-supplement .cms-related-articles {
  margin-top: 2rem;
}

.cms-author-card__author-label {
  margin: 0 0 0.75em;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #002045;
}

.cms-author-card__full-grid {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.cms-author-card__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.cms-author-card--full .cms-author-card__photo {
  width: 120px;
  height: 120px;
  border-color: #86a0cd;
}

.cms-author-card__profile-text .cms-author-card__position {
  font-size: 0.875rem;
}

.cms-author-card__profile-text .cms-author-card__name {
  font-size: 1.125rem;
}

.cms-author-card__comment {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: #43474e;
}

.cms-author-card__content {
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-width: 0;
}

.cms-author-card__career-body {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #43474e;
}

.cms-author-card__comment + .cms-author-card__career-body {
  margin-top: 0.25em;
}

.cms-related-articles {
  width: 100%;
}

.cms-related-articles__panel {
  background: #fff;
  border: 1px solid #e0e3e5;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 32, 69, 0.06);
}

.cms-related-articles__head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e0e3e5;
}

.cms-related-articles__eyebrow {
  margin: 0 0 0.35em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #755a2c;
}

.cms-related-articles__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cms-related-articles__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: #002045;
}

.cms-related-articles__count {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
}

.cms-related-articles__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cms-related-articles__item {
  margin: 0;
}

.cms-related-articles__item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #e0e3e5;
  border-radius: 10px;
  background: #f7fafc;
  text-decoration: none;
  color: #002045;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cms-related-articles__item > a:hover {
  background: #eef1f3;
  border-color: #86a0cd;
  box-shadow: 0 2px 8px rgba(0, 32, 69, 0.08);
}

.cms-related-articles__item > a > span:first-child {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.5;
}

.cms-related-articles__item .material-symbols-outlined {
  font-size: 1.35rem;
  color: #755a2c;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cms-author-card--compact .cms-author-card__photo {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 640px) {
  .cms-author-card__full-grid {
    grid-template-columns: 1fr;
  }

  .cms-author-card__profile {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
  }

  .cms-author-card--full .cms-author-card__photo {
    width: 80px;
    height: 80px;
  }
}
