/**
 * クリニックサイト用 CPT アーカイブ・タクソノミー一覧
 * archive-voice.php / archive-case.php 用（header.php から読み込み）
 * ※ single-shop-new.css（店舗個別）とは分離
 */

/* --------------------------------------------------------------------------
 * お客様の声（店舗 single-shop-new の .p-customer-voice と同一レイアウト）
 * -------------------------------------------------------------------------- */

.p-customer-voice .single-shop-new__title-wrap {
  margin-top: 24px;
  margin-bottom: 0;
}

.p-customer-voice {
  background: #fff;
}

.p-customer-voice__inner {
  max-width: 1170px;
  margin-inline: auto;
}

.p-customer-voice__title-wrap {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

.p-customer-voice__title-wrap .p-customer-voice__ttl {
  margin: 0 0 12px;
  font-size: 30px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: bold;
  line-height: 1.3;
  color: #ee3f7c;
}

.p-customer-voice__lead {
  margin: 0 0 48px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  color: #000;
}

.p-customer-voice__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.p-customer-voice__item {
  margin: 0;
  min-width: 0;
}

.p-customer-voice__figure {
  margin: 0 0 16px;
}

.p-customer-voice__img {
  display: block;
  width: 100%;
  aspect-ratio: 360 / 257;
  object-fit: cover;
}

.p-customer-voice__cat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.p-customer-voice__cat-item {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  color: #000;
  text-decoration: none;
  background: #fff;
}

.p-customer-voice__cat-item:hover {
  opacity: 0.75;
}

.p-customer-voice__cat-item.is-active {
  background: #000;
  color: #fff;
}

.p-customer-voice__text {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: #000;
  text-align: justify;
}

.contents > .pager {
  margin: 0 auto 48px;
  max-width: 1170px;
  padding-inline: 20px;
}

@media (max-width: 750px) {
  .p-customer-voice__title-wrap .p-customer-voice__ttl {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .p-customer-voice__lead {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .p-customer-voice__list {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
  }

  .p-customer-voice__text {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* --------------------------------------------------------------------------
 * 改善実績 Before・After（archive-case.php / single-shop-new と同一レイアウト）
 * -------------------------------------------------------------------------- */

.p-before-after .single-shop-new__title-wrap {
  margin-top: 24px;
  margin-bottom: 0;
}

.p-before-after {
  background: #fff;
  box-sizing: border-box;
}

.p-before-after__inner {
  max-width: 1170px;
  margin-inline: auto;
}

.p-before-after__header {
  text-align: center;
  margin-top: 0;
  margin-bottom: 48px;
}

.p-before-after__ttl {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: bold;
  font-family: "M PLUS Rounded 1c", sans-serif;
  line-height: 1.3;
  color: #ee3f7c;
}

.p-before-after__lead {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  color: #000;
}

.p-before-after__note {
  margin: 0;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  color: #000;
}

.p-before-after__cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 50px;
}

.p-before-after__case {
  min-width: 0;
}

.p-before-after__case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 16px;
}

.p-before-after__case-head .p-before-after__case-ttl {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.p-before-after__case-head .p-customer-voice__cat {
  margin: 0;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.p-before-after__case-ttl {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.125;
  color: #000;
}

.p-before-after__compare {
  display: flex;
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  overflow: hidden;
}

/* img1 のみ（Before/After 合成1枚） */
.p-before-after__compare--merged {
  display: block;
}

.p-before-after__compare--merged .p-before-after__figure {
  width: 100%;
}

.p-before-after__compare--merged .p-before-after__img {
  object-fit: contain;
  object-position: center;
}

.p-before-after__half {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.p-before-after__half:first-child {
  border-right: 1px solid #e0e0e0;
}

.p-before-after__img {
  display: block;
  aspect-ratio: 4 / 2.5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
}

.p-before-after__label {
  margin: 0;
  padding: 10px 8px 12px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

.p-before-after__label--before {
  color: #000;
}

.p-before-after__label--after {
  color: #ee3f7c;
}

.p-before-after__comment {
  background: #fef9f0;
  box-sizing: border-box;
  min-height: 129px;
  padding: 17px 23px 20px;
}

.p-before-after__comment--tone2 {
  background: #fef8ee;
}

.p-before-after__comment-ttl {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: bold;
  line-height: normal;
  color: #000;
}

.p-before-after__comment-body {
  margin: 0;
  font-size: 12px;
  font-weight: normal;
  line-height: 18px;
  color: #000;
}

@media (max-width: 750px) {
  .p-before-after {
    padding: 32px 20px 48px;
  }

  .p-before-after__header {
    margin-bottom: 28px;
  }

  .p-before-after__ttl {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .p-before-after__lead {
    font-size: 16px;
  }

  .p-before-after__note {
    font-size: 11px;
  }

  .p-before-after__cases {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-before-after__case-ttl {
    font-size: 15px;
  }

  .p-before-after__label {
    font-size: 18px;
    padding: 8px 6px 10px;
  }

  .p-before-after__comment {
    min-height: 0;
    padding: 16px 18px;
  }

  .p-before-after__comment-body {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* お客様の声アーカイブ：ページヘッダー背景（画像は figure img のまま） */
.l-pageHeader.l-pageHeader--voice {
  background: #fcdee8 right no-repeat;
}
