/* ------------------------------
    news detail
--------------------------------*/
.mo-news-detail .p-news {
  margin: 135px 0 0;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news {
    margin: 140px 0 0;
  }
}

.mo-news-detail .p-news .news__head {
  display: flex;
  gap: 0 10px;
  align-items: center
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .news__head {
    gap: 0 30px
  }
}

.mo-news-detail .p-news .news__date {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .news__date {
    font-size: 16px;
    letter-spacing: .06em
  }
}

.mo-news-detail .p-news .news__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 53.5px;
  height: 20px;
  padding: 0 10px;
  font-family: var(--font-en);
  font-size: 9px;
  color: rgba(var(--color-black-rgb), .7);
  letter-spacing: .02em;
  background: var(--color-gray03);
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .news__tag {
    min-width: 80px;
    height: 30px;
    padding: 0 15px;
    font-size: 14px
  }
}

.mo-news-detail .p-news .news__body {
  margin: 7px 0 0;
  border-bottom: 1px solid var(--color-gray05);
  padding: 0 0 10px;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .news__body {
    margin: 10px 0 0;
  }
}

.mo-news-detail .p-news .news__body .news__txt .txt {
  font-size: 20px;
  letter-spacing: .06em;
  line-height: 1.4;
  font-weight: 400;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .news__body .news__txt .txt {
    font-size: 40px;
    line-height: 2;
  }
}

/* 記事本体のコンテナ */
.mo-news-detail .p-news .p-news__container {
  margin: 26px 0 0;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .p-news__container {
    margin: 80px 0 0;
  }
}

/* ページネーション */
.mo-news-detail .p-news .pagination {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 38px 0;
  margin: 50px auto 0;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .pagination {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    margin: 80px auto 0;
  }
}

.mo-news-detail .p-news .pagination .prev {
  grid-column: 1/2;
  grid-row: 1/2;
  width: fit-content;
  display: flex;
  align-items: center;
  flex-flow: row-reverse;
  gap: 0 10px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .pagination .prev {
    grid-column: 1/2;
    gap: 0 20px;
    font-size: 14px;
  }
}

.mo-news-detail .p-news .pagination .next {
  grid-column: 2/3;
  grid-row: 1/2;
  margin: auto 0 auto auto;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0 10px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .pagination .next {
    grid-column: 3/4;
    gap: 0 20px;
    font-size: 14px;
  }
}

.mo-news-detail .p-news .pagination .btn__icon-link {
  width: 5px;
  height: 8.5px;
  content: "";
  background: var(--color-black01);
  mask: url(/wp-content/themes/mecdesign/assets/images/pages/icons/icon_arw-link.svg) no-repeat center / contain;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .pagination .btn__icon-link {
    width: 10px;
    height: 17px;
  }
}

.mo-news-detail .p-news .pagination .prev .btn__icon-link {
  transform: rotate(180deg);
}

.mo-news-detail .p-news .pagination .c-btn-primary {
  margin: 0 auto;
  grid-column: 1/-1;
}

@media (min-width: 768px) {
  .mo-news-detail .p-news .pagination .c-btn-primary {
    grid-column: 2/3;
  }
}

/* ------------------------------
    block editor from WordPress
--------------------------------*/
/* base */
.editor *:first-child {
  margin-top: 0;
}

.editor *:not(:first-child) {
  margin-top: 20px;
  margin-bottom: 0;
}

.editor *[class^="wp-block-"] {
  margin-top: 50px;
  margin-bottom: 0;
  color: var(--color-black02);
  font-family: var(--font-serif);
}

@media (min-width: 768px) {
  .editor *[class^="wp-block-"] {
    margin-top: 80px;
  }
}

.editor p {
  color: var(--color-black02);
  font-family: var(--font-serif);
  font-size: 12px;
}

.editor a {
  color: var(--color-black01);
  font-family: var(--font-serif);
  text-decoration: underline;
  font-size: 12px;
}

@media (min-width: 768px) {
  .editor p {
    font-size: 16px;
  }

  .editor a {
    text-decoration: underline;
    font-size: 16px;
  }
}

/* 見出し要素の上下マージン */
.editor h1,
.editor h2,
.editor h3 {
  margin-top: 50px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .editor h1,
  .editor h2,
  .editor h3 {
    margin-top: 80px;
  }
}

/* 画像要素 */
.editor figure.wp-block-image {
  max-width: 100%;
  text-align: center;
}

.editor figure.wp-block-image img {
  max-width: 100%;
}

.editor figure.wp-block-image.size-full :where(figcaption) {
  margin-top: 12px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .editor figure.wp-block-image.size-full :where(figcaption) {
    margin-top: 20px;
    margin-bottom: 0;
  }
}

.editor figure.wp-block-image:not(.size-full) figcaption {
  font-size: 12px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.9), 0 0 2px rgb(0, 0, 0) !important;
}

@media (min-width: 768px) {
  .editor figure.wp-block-image img {
    max-width: 100%;
    width: auto;
    margin-inline: auto;
  }
}

/* 画像下リンク */
.editor figure.wp-block-image+a {
  display: block;
  width: fit-content;
  text-align: center;
}

/* ※：注釈文字サイズ用class */
.editor p.has-small-font-size {
  margin-top: 12px;
  font-size: 9px !important;
}

@media (min-width: 768px) {
  .editor p.has-small-font-size {
    margin-top: 15px;
    font-size: 12px !important;
  }
}

/* --- テーブルのスタイル --- */
/* figureで囲まれていない素のtableにも対応 */
.editor figure.wp-block-table>table,
.editor table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
}

.editor figure.wp-block-table>table th,
.editor table th,
.editor figure.wp-block-table>table td,
.editor table td {
  border: 1px solid #ccc;
  padding: 0.75rem 1em;
  text-align: left;
  vertical-align: top;
}

.editor figure.wp-block-table>table th,
.editor table th {
  background-color: #f0f0f0;
  font-weight: bold;
}