/* MT.net 移植用。WP の style.css は変更しない。
 * FVナビは現行どおり5件（お問い合わせは nth-child(5)）のため、
 * 4件構成向けのアイコン補正は置かない。
 */

.p-contact__form {
  overflow: hidden;
  line-height: 0;
}

.p-contact__form iframe,
.p-contact iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: none;
  background: transparent;
  overflow: hidden;
  vertical-align: top;
}

@media screen and (max-width: 767px) {
  .p-contact__form iframe,
  .p-contact iframe {
    min-height: 0;
  }
}

.p-news-entry {
  margin-top: 40px;
}

.p-news-entry__date {
  display: block;
  margin: 0 0 12px;
  color: #012851;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.p-news-entry__title {
  margin: 0 0 36px;
  color: #012851;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
}

.p-news-entry__body {
  color: #012851;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.875;
}

.p-news-entry__body p {
  margin: 0;
}

.p-news-entry__body p + p {
  margin-top: 1.5em;
}

.p-news-entry__action {
  margin-top: 80px;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .p-news-entry {
    margin-top: 24px;
  }

  .p-news-entry__title {
    margin-bottom: 24px;
    font-size: 20px;
  }

  .p-news-entry__action {
    margin-top: 48px;
  }
}

/* WPは本文内画像を出し、アイキャッチは display:none。
 * 本文に画像を入れない運用のため、詳細でもアイキャッチを表示する。 */
.p-blog-detail__eyecatch-img {
  display: block;
}

/* WPのパンくずはリンクにも class が付くため、未装飾の黒文字になる */
.c-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.c-breadcrumb a:hover,
.c-breadcrumb a:focus-visible {
  color: inherit;
  text-decoration: none;
}

.p-blog-toc {
  margin-top: 48px;
}

.p-blog-toc__inner {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  padding: 30px 40px 28px 30px;
  background: #fafafa;
}

.p-blog-toc__title {
  margin: 0 0 10px;
  color: #012851;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.p-blog-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-blog-toc__item + .p-blog-toc__item {
  margin-top: 8px;
}

.p-blog-toc__link {
  color: #3175e4;
  font-size: 14.4px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
}

.p-blog-toc__link:hover,
.p-blog-toc__link:focus-visible {
  text-decoration: underline;
}

.p-blog-toc__num {
  margin-right: .4em;
}

.p-blog-detail__body .summary-box {
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid #244f7b;
  background-color: #f5f6f8;
}

.p-blog-detail__body .summary-box > p:first-child {
  margin: 0;
  background-color: #244f7b;
  padding: 16px 20px;
  color: #fff;
  font-size: 21px;
  font-size: 1.3125rem;
  font-weight: 500;
  text-align: center;
}

.p-blog-detail__body .summary-box > p:last-child {
  margin: 0;
  background: transparent;
  padding: 45px 50px 60px;
  color: #012851;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .p-blog-toc {
    margin-top: 30px;
  }

  .p-blog-toc__inner {
    padding: 14px 18px 18px;
  }

  /* WP LuckyTOC: 見出し 1rem、項目 90%、行間 1.5、項目間隔 2px */
  .p-blog-toc__title {
    margin-bottom: 6px;
    font-size: 1rem;
  }

  .p-blog-toc__item + .p-blog-toc__item {
    margin-top: 2px;
  }

  .p-blog-toc__link {
    font-size: .9rem;
    line-height: 1.5;
  }

  .p-blog-detail__body .summary-box {
    margin-top: 35px;
  }

  .p-blog-detail__body .summary-box > p:first-child {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .p-blog-detail__body .summary-box > p:last-child {
    padding: 20px 25px 30px;
  }
}
