/**
 * article.css
 *
 * PRXオウンドメディアから移行したマガジン記事の本文スタイル。
 * single-magazine.php の .magazine-detail-content-inner.editor 内にのみ適用。
 *
 * ※ 現行 PRX サイト (https://prx.dentsuprc.co.jp/blog/) の computed style から取得。
 * ※ このファイルのみ編集すれば他テンプレートに影響しません。
 */

/* =============================================================
   ベース（本文エリア）
   ============================================================= */
.magazine-detail-content-inner.editor {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 1);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.magazine-detail-content-inner.editor > *:first-child {
  margin-top: 0;
}

/* =============================================================
   段落
   ============================================================= */
.magazine-detail-content-inner.editor p {
  margin: 10px 0 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.magazine-detail-content-inner.editor p + p {
  margin-top: 10px;
}

/* =============================================================
   見出し h2
   PRX実値: font-size:32px, font-weight:700, color:rgb(0,0,0),
            padding:0 0 10px, border-bottom:1px solid rgb(15,54,140)
   ============================================================= */
.magazine-detail-content-inner.editor h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgb(0, 0, 0);
  margin: 0;
  padding: 0 0 10px;
  border: none;
  border-bottom: 1px solid rgb(15, 54, 140);
  background: transparent;
}

/* heading wrapper (.rich-heading) が margin-top:10px を持つ */
.magazine-detail-content-inner.editor .rich-heading,
.magazine-detail-content-inner.editor .heading,
.magazine-detail-content-inner.editor [data-designpart="rich-heading-normal"] {
  margin: 10px 0 0;
  padding: 0;
}

/* h2の後のスペース: margin-bottom:12px (32px * coef - 20px) */
.magazine-detail-content-inner.editor h2 {
  margin-bottom: 12px;
}

/* 本文最初の要素の場合は上マージンなし */
.magazine-detail-content-inner.editor > *:first-child h2,
.magazine-detail-content-inner.editor > h2:first-child,
.magazine-detail-content-inner.editor > *:first-child [data-designpart="rich-heading-normal"] {
  margin-top: 0;
}

/* =============================================================
   見出し h3
   PRX実値: font-size:24px, font-weight:700, color:rgb(0,0,0),
            background:rgb(245,248,250), margin:30px 0 32px
   ============================================================= */
.magazine-detail-content-inner.editor h3 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgb(0, 0, 0);
  margin: 30px 0 12px;
  padding: 10px 16px;
  border: none;
  background-color: rgb(245, 248, 250);
}

/* =============================================================
   見出し h4
   PRX実値: font-size:20px(PC), 18px(SP)
   ============================================================= */
.magazine-detail-content-inner.editor h4 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: rgb(0, 0, 0);
  margin: 24px 0 4px;
  padding: 0;
}

/* =============================================================
   リンク
   PRX実値: color:rgba(45,110,179,1), hover:opacity:0.4
   ============================================================= */
.magazine-detail-content-inner.editor a {
  color: rgba(45, 110, 179, 1);
  text-decoration: none;
  transition: opacity 0.2s;
}

.magazine-detail-content-inner.editor a:hover {
  opacity: 0.4;
}

/* =============================================================
   画像
   PRX実値: max-width:100%, display:inline(元), margin:0
   ============================================================= */
.magazine-detail-content-inner.editor img {
  max-width: 100%;
  height: auto;
}

.magazine-detail-content-inner.editor p.align-center,
.magazine-detail-content-inner.editor .align-center {
  text-align: center;
}

.magazine-detail-content-inner.editor p.align-right,
.magazine-detail-content-inner.editor .align-right {
  text-align: right;
}

/* =============================================================
   資料ダウンロードリンク（▶ 付き）
   ============================================================= */
.magazine-detail-content-inner.editor p > strong > a,
.magazine-detail-content-inner.editor p > span > strong > a {
  color: rgba(45, 110, 179, 1);
  text-decoration: none;
}

/* ▶ 矢印（strong 内テキスト、aタグの外） */
.magazine-detail-content-inner.editor p > strong,
.magazine-detail-content-inner.editor p > span > strong {
  background: none;
  color: rgb(51, 51, 51);
}

/* =============================================================
   引用 (blockquote)
   ============================================================= */
.magazine-detail-content-inner.editor blockquote {
  margin: 16px 0;
  padding: 16px 20px;
  background: transparent;
  border: none;
  border-left: 3px solid #ccc;
  font-style: normal;
  color: inherit;
}

.magazine-detail-content-inner.editor blockquote p {
  margin: 8px 0;
}

.magazine-detail-content-inner.editor blockquote a {
  word-break: break-all;
}

/* =============================================================
   目次 (.contents-table / .table-of-contents)
   PRX実値: margin:10px 0, padding:10px, border:1px solid #eee,
            background:transparent, border-radius:0
   ============================================================= */
.magazine-detail-content-inner.editor .contents-table,
.magazine-detail-content-inner.editor .table-of-contents {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 0;
  background: transparent;
}

/* 入れ子の .contents-table（ferret-one HTML構造）の枠線を除去 */
.magazine-detail-content-inner.editor .contents-table .contents-table,
.magazine-detail-content-inner.editor .table-of-contents .contents-table {
  border: none;
  margin: 0;
  padding: 0;
}

.magazine-detail-content-inner.editor .contents-table > p:first-child,
.magazine-detail-content-inner.editor .table-of-contents > p:first-child,
.magazine-detail-content-inner.editor .contents-table [class*="title"],
.magazine-detail-content-inner.editor .table-of-contents [class*="title"] {
  font-weight: 700;
  font-size: inherit;
  margin: 0 0 8px;
}

.magazine-detail-content-inner.editor .contents-table .show-area,
.magazine-detail-content-inner.editor .table-of-contents .show-area {
  font-size: 13px;
  font-weight: 400;
  color: rgba(45, 110, 179, 1);
  cursor: pointer;
  margin-left: 8px;
}

.magazine-detail-content-inner.editor .contents-table ol,
.magazine-detail-content-inner.editor .table-of-contents ol {
  margin: 0 0 0 25px;
  padding: 0;
  list-style: none;
}

.magazine-detail-content-inner.editor .contents-table ol ol,
.magazine-detail-content-inner.editor .table-of-contents ol ol {
  margin-left: 20px;
}

.magazine-detail-content-inner.editor .contents-table li,
.magazine-detail-content-inner.editor .table-of-contents li {
  margin: 4px 0;
  font-size: inherit;
  line-height: 1.6;
}

.magazine-detail-content-inner.editor .contents-table li a,
.magazine-detail-content-inner.editor .table-of-contents li a {
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
}

.magazine-detail-content-inner.editor .contents-table li a:hover,
.magazine-detail-content-inner.editor .table-of-contents li a:hover {
  opacity: 0.4;
}

.magazine-detail-content-inner.editor .contents-table li span {
  font-weight: 700;
  margin-right: 4px;
}

/* =============================================================
   関連記事カード (.quote-link)
   PRX実値: .quote-link_entry border:1px solid #eee
            .quote-link-img 150x150
            .cont padding:0 0 0 20px
            .quote-link_title font-size:17.6px, weight:700, color:#2d6eb3
            .quote-link_desp font-size:12.8px, color:#2d6eb3
            .quote-link_site font-size:12.8px, color:#2d6eb3
   ============================================================= */
.magazine-detail-content-inner.editor .article-embed {
  margin: 16px 0;
}

.magazine-detail-content-inner.editor .quote-link {
  display: block;
  text-decoration: none;
}

.magazine-detail-content-inner.editor .quote-link a {
  text-decoration: none;
  color: inherit;
}

.magazine-detail-content-inner.editor .quote-link_entry {
  display: flex;
  border: 1px solid #eee;
  border-radius: 0;
  overflow: hidden;
}

.magazine-detail-content-inner.editor .quote-link a:hover .quote-link_entry {
  opacity: 0.7;
}

.magazine-detail-content-inner.editor .link-thumbnail {
  display: flex;
  flex-shrink: 0;
}

.magazine-detail-content-inner.editor .quote-link-img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  overflow: hidden;
}

.magazine-detail-content-inner.editor .quote-link-img-item {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.magazine-detail-content-inner.editor .quote-link .cont {
  display: block;
  padding: 0 0 0 20px;
  flex: 1;
  min-width: 0;
  align-self: center;
}

.magazine-detail-content-inner.editor .quote-link_title {
  font-size: 17.6px;
  font-weight: 700;
  color: rgba(45, 110, 179, 1);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.magazine-detail-content-inner.editor .quote-link_desp {
  font-size: 12.8px;
  color: rgba(45, 110, 179, 1);
  line-height: 1.75;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.magazine-detail-content-inner.editor .quote-link_site {
  font-size: 12.8px;
  color: rgba(45, 110, 179, 1);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================================
   テーブル
   PRX実値: border-color:#eee, padding:10px
   ============================================================= */
.magazine-detail-content-inner.editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.magazine-detail-content-inner.editor table th,
.magazine-detail-content-inner.editor table td {
  border: 1px solid #eee;
  padding: 10px;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  background-clip: padding-box;
  background-color: transparent;
}

.magazine-detail-content-inner.editor table th {
  font-weight: 700;
}

/* =============================================================
   リスト
   PRX実値: margin:0 0 0 25px
   ============================================================= */
.magazine-detail-content-inner.editor ul,
.magazine-detail-content-inner.editor ol {
  margin: 0 0 0 25px;
  padding: 0;
  color: inherit;
}

.magazine-detail-content-inner.editor li {
  margin: 4px 0;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.magazine-detail-content-inner.editor li a {
  font-size: inherit;
}

/* =============================================================
   強調
   ============================================================= */
.magazine-detail-content-inner.editor strong {
  font-weight: 700;
}

.magazine-detail-content-inner.editor em {
  font-style: italic;
}

/* =============================================================
   ferret-one 固有の不要属性をリセット
   ============================================================= */
.magazine-detail-content-inner.editor [contenteditable="false"] {
  outline: none;
  cursor: default;
  -webkit-user-modify: read-only;
}

/* =============================================================
   画像キャプション (wp-caption)
   ============================================================= */
.magazine-detail-content-inner.editor .wp-caption {
  max-width: 100%;
  margin: 8px auto;
}

.magazine-detail-content-inner.editor .wp-caption-text {
  font-size: 12px;
  line-height: 1.6;
  color: #666;
  margin: 4px 0 0;
  text-align: left;
}

/* =============================================================
   レスポンシブ（SP）
   PRX実値: font-size-sp:16px, h2:26px, h3:22px, h4:18px
   ============================================================= */
@media screen and (max-width: 768px) {
  .magazine-detail-content-inner.editor {
    font-size: 16px;
  }

  .magazine-detail-content-inner.editor h2 {
    font-size: 26px;
  }

  .magazine-detail-content-inner.editor h3 {
    font-size: 1.2rem;
  }

  .magazine-detail-content-inner.editor h4 {
    font-size: 18px;
  }

  .magazine-detail-content-inner.editor .quote-link_entry {
    flex-direction: column;
  }

  .magazine-detail-content-inner.editor .quote-link-img {
    width: 100%;
    height: 160px;
  }

  .magazine-detail-content-inner.editor .quote-link .cont {
    padding: 12px;
  }
}
