/* =====================================================================
 * 施策2：事例 → 都道府県ページ導線
 * 読み込み：functions/new-lp.php kujo_enqueue_pref_links_css()
 * 対象：事例詳細（single-case）／事例一覧（archive-case）／都道府県LP（example-section）
 * 配色は既存CTA（#F93103 / #FC5E00）を踏襲
 * ===================================================================== */

/* ---------- 事例詳細：「場所」のリンク ---------- */
.single__case .details .single__case-location-link {
  color: #F93103;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.single__case .details .single__case-location-link:hover {
  opacity: 0.75;
}

/* ---------- 事例詳細：本文直下の県別ボタン ---------- */
.single__case-pref {
  margin: 32px 0 8px;
  padding: 24px 20px;
  background: #FFF4EE;
  border: 1px solid #FFD9C7;
  border-radius: 10px;
  text-align: center;
}
.single__case-pref__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
.single__case-pref__btn {
  display: block;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 24px;
  background: #F93103;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 0 #B52200;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.single__case-pref__btn:hover {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #B52200;
}
.single__case-pref__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.single__case-pref__more:hover {
  color: #F93103;
}

/* ---------- 事例詳細：CTA（[kujo_cta wrap="0"]） ----------
 * コラム詳細の .single__info-cta と同じく画面幅いっぱいに広げる。
 * 中身（.cta-section__main 等）の幅はshortcodes.php の上書きCSSで最大1000pxに収まる。
 */
.single__case > .section__inner > .single__case-cta {
  width: 100vw;
  max-width: 100vw;
  margin: 40px calc(50% - 50vw);
  padding: 0;
  box-sizing: border-box;
}
.single__case > .section__inner > .single__case-cta .cta-section,
.single__case > .section__inner > .single__case-cta .cta-section.max-container {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

/* ---------- 事例一覧：県絞り込み時の案内枠 ---------- */
.archive__pref-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 32px;
  padding: 20px 24px;
  background: #FFF4EE;
  border: 1px solid #FFD9C7;
  border-radius: 10px;
}
.archive__pref-banner__text {
  flex: 1 1 320px;
}
.archive__pref-banner__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.archive__pref-banner__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
.archive__pref-banner__btn {
  flex: 0 0 auto;
  padding: 14px 28px;
  background: #F93103;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 0 #B52200;
  white-space: nowrap;
}
.archive__pref-banner__btn:hover {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #B52200;
}

/* ---------- 都道府県LP：事例カードの詳細リンク／もっと見る ----------
 * スライド（.swiper-slide）は高さ固定のため、リンクはスライド全体を覆う透明なオーバーレイにし、
 * 「詳細はこちら」は右上の小さなバッジ（::after）で見せる
 */
.example-section__list--linked {
  position: relative;
}
.example-section__list-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0;
  color: transparent;
  text-decoration: none;
  background: transparent;
  border: 0;
}
/* スライドは index.css で高さ固定（SP 122.67vw / PC max 570px）のため本文が長いと溢れる。
 * 内容に合わせて伸びるようにし、最低高さだけ従来の値を残す（swiper-wrapper は flex なので高さは横並びで揃う） */
.example-section .swiper-slide.example-section__list {
  height: auto;
  min-height: 122.6666666667vw;
  box-sizing: border-box;
}
.example-section__list-text {
  overflow-wrap: anywhere;
}
.example-section__list--linked {
  padding-bottom: calc(5.3333333333vw + 30px);
}
@media screen and (min-width: 767px) {
  .example-section .swiper-slide.example-section__list {
    min-height: min(38vw, 570px);
  }
  .example-section__list--linked {
    padding-bottom: calc(min(1.3333333333vw, 20px) + 34px);
  }
}
.example-section__list--linked::after {
  content: "詳細はこちら";
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  background: #F93103;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 999px;
  pointer-events: none;
}
.example-section__list--linked:hover::after {
  background: #B52200;
}
.example-section__more-count {
  white-space: nowrap;
}
.example-section__more {
  margin-top: 28px;
  text-align: center;
}
.example-section__more-btn {
  display: inline-block;
  padding: 14px 32px;
  line-height: 1.4;
  background: #F93103;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 0 #B52200;
}
.example-section__more-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #B52200;
}

/* ---------- SP ---------- */
@media screen and (max-width: 766px) {
  .single__case-pref {
    margin: 24px 0 4px;
    padding: 20px 14px;
  }
  .single__case-pref__lead {
    font-size: 14px;
    text-align: left;
  }
  .single__case-pref__btn {
    font-size: 15px;
    padding: 14px 16px;
  }
  .archive__pref-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    margin-bottom: 24px;
  }
  .archive__pref-banner__title {
    font-size: 16px;
  }
  .archive__pref-banner__btn {
    text-align: center;
    white-space: normal;
  }
  .example-section__more-btn {
    display: block;
    margin: 0 4vw;
    padding: 14px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .example-section__more-count {
    font-size: 13px;
  }
}
@media screen and (max-width: 360px) {
  .example-section__more-btn {
    font-size: 13px;
    padding: 12px 8px;
  }
}
