/* 導入事例インタビュー */

/*==========================
  共通
===========================*/
.bg__white {
  padding: 3.4rem 1rem;
}

@media (min-width: 768px) {
  .bg__white {
    padding: 2.4rem 2rem;
  }
}


/* サービス名 */
.case-service {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.case-service__item {
  display: flex;
  padding: 0.4rem 1rem;
  font-size: 1.2rem;
  color: #514327;
  font-weight: bold;
  line-height: 1.5;
  border-radius: 4px;
  background: #fbf7ef;
}

.case-service__item:has(a) {
  padding: 0;
  background: none;
}

.case-service__item a {
  padding: 0.4rem 1rem;
  font-weight: bold;
  background: #fbf7ef;
  border-radius: 4px;
}

/*==========================
  一覧 archive
===========================*/
/* カード */
.archive-card__wrap {
  gap: 2.4rem;
  margin-bottom: 3.2rem;
}

.archive-card {
  padding: 2.4rem 1.6rem;
}

.archive-card__ttl {
  margin-bottom: 0.8rem;
  padding-left: 0;
  padding-right: 0;
  font-size: 2rem;
  color: #514327;
  line-height: 1.4;
}

.archive-card__service {
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: dotted 1px var(--light-green);
}

.archive-card__thumb {
  margin-bottom: 1.6rem;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.archive-card__thumb img {
  width: 100%;
  height: auto;
  max-width: 270px;
  aspect-ratio: 3/2;
  object-fit: contain;
}

.archive-card__excerpt {
  margin-bottom: 1.6rem;
  padding-left: 0;
  padding-right: 0;
  -webkit-line-clamp: none;
}

@media (min-width: 768px) {
  .archive-card__wrap {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
  }

  .archive-card__body {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .archive-card__excerpt {
    margin-bottom: 1.6rem;
  }

  .archive-card__link {
    margin-top: auto;
  }
}

/* もっと見るボタン */
.archive-more {
  text-align: center;
}

.archive-more__btn {
  width: 100%;
  max-width: 320px;
  padding: 1.4rem;
  color: var(--secondary);
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.8;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--white);
}

/*==========================
  詳細 single
===========================*/
/* タイトル */
.case-ttl__h1 {
  margin-bottom: 3.2rem;
}

.case-ttl__section {
  margin-bottom: 1.6rem;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 768px) {
  .case-ttl__h1 {
    margin-bottom: 4rem;
  }

  .case-ttl__section {
    font-size: 2.2rem;
    line-height: 2;
  }
}

/* 自治体情報 */
.case-meta__box {
  padding: 1rem 2rem 1.6rem;
  background: var(--white);
}

.case-meta__disc {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.case-meta__government--logo {
  justify-self: center;
  width: 100%;
  max-width: 220px;
}

.case-meta__government--logo img {
  text-align: center;
}

.case-meta__government--txt {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.2;
}

.case-meta__service {
  margin-bottom: 1rem;
  align-items: flex-start;
  flex-direction: column;
}

.case-meta__service .case-service__item {
  font-size: 1.6rem;
}

.case-meta__thumb {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

@media (min-width: 768px) {
  .case-meta__box {
    display: flex;
    justify-content: space-between;
    gap: 1.6rem 4rem;
    padding: 1.6rem;
  }
  
  .case-meta__disc {
    gap: 1.6rem;
  }

  .case-meta__government--logo {
    justify-self: start;
    max-width: 400px;
  }

  .case-meta__government--logo {
    text-align: left;
  }

  .case-meta__service {
    flex-direction: row;
    margin-bottom: 0;
  }

  .case-meta__service .case-service__item {
    font-size: 1.8rem;
  }

  .case-meta__thumb {
    max-width: 420px;
    max-height: 280px;
    overflow: hidden;
  }

  .case-meta__thumb img {
    object-fit: contain;
    object-position: center;
    aspect-ratio: 3 / 2;
  }
}

/* 本事例の導入サービスについて */
.single-case-service__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
}

.single-case-service__item {
  background: none;
}

.single-case-service__item a {
  font-size: 1.6rem;
  line-height: 1.2;

  padding: .6rem 2.4rem;
  border-radius: 999px;
  border: 1px solid #514327;
  background: #fbf7ef;
}

/* お問い合わせはこちら */
.case-contact__link {
  text-align: center;
}

.case-contact__link .link-btn {
  display: inline-block;
  width: auto;
  max-width: none;
  padding: 1rem 2.4rem;
  font-size: 1.8rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .case-contact__link .link-btn {
    padding: .8rem 4.4rem;
  }
}

/*==========================
  本文入力欄
===========================*/
/* 本文入力欄周り */
.case-content .bg__white {
  padding: 2.4rem 1rem;
}

@media (min-width: 768px) {
  .case-content .bg__white {
    padding: 1.6rem 4rem;
  }
}

/* WPデフォルトスタイルの上書き */
/* タイトル */
.case-content__box h2.wp-block-heading {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.6;
  padding-left: 1.7rem;
  border-left: 2px solid var(--secondary);
  margin-bottom: 2.4rem;
}

.case-content__box h3.wp-block-heading {
  margin-bottom: 2.4rem;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.8;
}

.case-content__box h4.wp-block-heading,
.case-content__box h5.wp-block-heading,
.case-content__box h6.wp-block-heading {
  margin-top: 0;
  margin-bottom: 2.4rem;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .case-content__box h3.wp-block-heading {
    font-size: 2.2rem;
  }

  .case-content__box h4.wp-block-heading,
  .case-content__box h5.wp-block-heading,
  .case-content__box h6.wp-block-heading {
    line-height: 2;
  }
}

/* その他のコンテンツ */
.case-content__box>div,
.case-content__box p,
.case-content__box .wp-block-gallery,
.case-content__box .wp-block-image,
.case-content__box li,
.case-content__box table {
  margin-bottom: 2.4rem;
  font-size: 1.8rem;
}

.case-content__box ul li {
  list-style: disc;
  list-style-position: inside;
}

.case-content__box ol li {
  list-style: decimal;
  list-style-position: inside;
}

/* 画像キャプション */
.case-content__box .wp-block-image figcaption {
  font-size: calc(1.8rem * 0.75);
}

@media (min-width: 768px) {

  .case-content__box p,
  .case-content__box .wp-block-gallery,
  .case-content__box .wp-block-image,
  .case-content__box li,
  .case-content__box table {
    font-size: 1.6rem;
  }
}

.case-content__box table,
.case-content__box dl {
  border-collapse: collapse;
}

.case-content__box th,
.case-content__box td,
.case-content__box dt,
.case-content__box dd {
  margin: 0;
  padding: 2rem 1rem;
  border: 1px solid var(--light-gray) !important;
}

.case-content__box tr:nth-of-type(odd),
.case-content__box dt:nth-of-type(odd),
.case-content__box dd:nth-of-type(odd) {
  background-color: var(--white-green);
}

.case-content__box tr:nth-of-type(even),
.case-content__box dt:nth-of-type(even),
.case-content__box dd:nth-of-type(even) {
  background-color: var(--white);
}

.case-content__box tr:last-of-type,
.case-content__box dt:last-of-type,
.case-content__box dd:last-of-type {
  border-bottom: 1px solid var(--light-gray);
}

/* ボタン */
.case-content__box .vk_button .vk_button_link.btn,
.editor-styles-wrapper .vk_button .vk_button_link.btn {
  font-size: calc(1.8rem * 1);
}

/* FAQブロック */
.vk_faq dt,
.vk_faq dd,
.vk_faq dt:last-of-type,
.vk_faq dd:last-of-type {
  border: none !important;
  background: transparent;
}

.vk_faq .vk_faq_title p {
  font-weight: bold;
}

.vk_faq .vk_faq_title:before {
  color: var(--primary) !important;
}

.vk_faq .vk_faq_content:before {
  color: var(--orange) !important;
}
