@charset "UTF-8";
/* CSS Document — 静的の数値を踏襲。WP は .wp-block-post-content 内のブロックに同値を当てる */

.news_dataarea {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
#news_detail .news_category {
  font-size: 12px;
  border: 1px solid #555;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  padding: 2px 10px;
  justify-content: center;
}
#news_detail .news_date {
  font-size: 20px;
  font-weight: 400;
}
#news_detail .news_detail_title {
  font-size: 20px;
  margin-bottom: 47px;
  line-height: 2;
  font-weight: 500;
}

/* ---------- 本文（WP: .wp-block-post-content / 静的: .common_inner 直下） ---------- */

#news_detail .common_inner .wp-block-post-content {
  font-size: 16px;
  line-height: 2;
}

/* 段落: 静的と同じ 16px / lh2 / 下 50px */
#news_detail .common_inner .wp-block-post-content p,
#news_detail .common_inner > p {
  font-size: 16px;
  line-height: 2;
  margin-top: 0;
  margin-bottom: 50px;
}

/* 図版: 静的と同じ 下 50px。画像ブロックの二重マージン防止 */
#news_detail .common_inner .wp-block-post-content > figure,
#news_detail .common_inner .wp-block-post-content > .wp-block-image,
#news_detail .common_inner > figure {
  margin-top: 0;
  margin-bottom: 50px;
}
#news_detail .common_inner .wp-block-post-content .wp-block-image figure {
  margin-bottom: 0;
}

/* 見出し・リスト・グループ等（段落・figure 以外の直下ブロック） */
#news_detail .common_inner .wp-block-post-content > *:not(p):not(figure):not(.wp-block-image) {
  margin-top: 0;
  margin-bottom: 50px;
}

#news_detail .common_inner .wp-block-post-content img,
#news_detail .common_inner > figure img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .common_inner {
    padding: 0 calc(20 * var(--vw375));
  }
  #news_detail .news_detail_title {
    font-size: calc(16 * var(--vw375));
    margin-bottom: calc(50 * var(--vw375));
  }
  #news_detail .common_inner .wp-block-post-content,
  #news_detail .common_inner .wp-block-post-content p,
  #news_detail .common_inner > p {
    font-size: calc(14 * var(--vw375));
  }
  #news_detail .common_inner .wp-block-post-content p,
  #news_detail .common_inner > p {
    margin-bottom: calc(50 * var(--vw375));
  }
  #news_detail .common_inner .wp-block-post-content > figure,
  #news_detail .common_inner .wp-block-post-content > .wp-block-image,
  #news_detail .common_inner > figure {
    margin-bottom: calc(20 * var(--vw375));
  }
  #news_detail .common_inner .wp-block-post-content > *:not(p):not(figure):not(.wp-block-image) {
    margin-bottom: calc(50 * var(--vw375));
  }
  #news_detail .news_date {
    font-size: calc(20 * var(--vw375));
  }
  #news_detail .news_category {
    font-size: calc(12 * var(--vw375));
  }
}
