/*
 * p-components.css
 * 地域密着型シャトルバスサービス ページ改訂 追加コンポーネント
 * 追加日: 2026-05-22
 * 対象: /service/shuttle-bus/
 *
 * クラス名はすべて p- プレフィックスで既存テーマと分離
 * WordPress に本格統合する際は style.min.scss に移行する
 */

/* ============================================================
   解決できる課題 カードグリッド
============================================================ */
.p-challenges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

@media screen and (max-width: 767px) {
  .p-challenges {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.p-challenge {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #fdf5fc;
  border: 1px solid #edd9ea;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(182, 0, 129, .04);
}

.p-challenge__check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: #fcf0f8;
  color: #B60081;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.p-challenge__text {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
}

/* ============================================================
   当社の強み 3本の柱
============================================================ */
.p-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 12px 0 50px;
}

@media screen and (max-width: 767px) {
  .p-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 40px;
  }
}

.p-pillar {
  background: #fdf5fc;
  border-top: 4px solid #B60081;
  border-radius: 0 0 8px 8px;
  padding: 24px 22px;
  box-shadow: 0 2px 8px rgba(182, 0, 129, .06);
}

.p-pillar--2 {
  border-top-color: #E87800;
  background: #fff8f0;
  box-shadow: 0 2px 8px rgba(232, 120, 0, .06);
}

.p-pillar--3 {
  border-top-color: #2E7D5B;
  background: #f2f8f5;
  box-shadow: 0 2px 8px rgba(46, 125, 91, .06);
}

.p-pillar__no {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: .2em;
  color: #999;
  font-weight: 700;
  display: block;
}

.p-pillar__tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  background: #B60081;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.p-pillar--2 .p-pillar__tag {
  background: #E87800;
}

.p-pillar--3 .p-pillar__tag {
  background: #2E7D5B;
}

/* h4 を使用（テーマの h3 スタイルと干渉しないため） */
.p-pillar h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin: 12px 0 8px;
  color: #333;
  padding-left: 0;
}

.p-pillar p {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* ============================================================
   様々なシャトルバス運行に対応 業態タグ
============================================================ */
.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.p-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #edd9ea;
  border-radius: 999px;
  color: #B60081;
  background: #fdf5fc;
}

/* ============================================================
   安全運行の遵守 60項目チェックリスト
============================================================ */
.p-checklist {
  margin-top: 16px;
  padding: 18px 20px;
  background: #fdf5fc;
  border-radius: 6px;
  border-left: 3px solid #B60081;
}

.p-checklist__title {
  font-size: 13px;
  color: #B60081;
  font-weight: 700;
  margin-bottom: 10px;
}

.p-checklist__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .p-checklist__items {
    grid-template-columns: 1fr;
  }
}

.p-checklist__items li {
  font-size: 13px;
  color: #555;
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.p-checklist__items li::before {
  content: '✓';
  color: #B60081;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

/* ============================================================
   全国実績マップ（プレースホルダー）
============================================================ */
.p-locations {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  margin-top: 50px;
  margin-bottom: 4px;
}

@media screen and (max-width: 767px) {
  .p-locations {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.p-locations__map {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #f4f6fa 0%, #e8edf4 100%);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #aaa;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.p-locations__map::before {
  content: '';
  position: absolute;
  inset: 10% 15% 10% 20%;
  background: rgba(182, 0, 129, .1);
  clip-path: polygon(60% 0, 78% 8%, 90% 22%, 92% 38%, 86% 52%, 70% 60%, 52% 56%, 38% 70%, 30% 86%, 18% 96%, 8% 88%, 12% 74%, 22% 56%, 18% 38%, 28% 22%, 42% 12%);
}

.p-locations__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #B60081;
  box-shadow: 0 0 0 4px rgba(182, 0, 129, .2);
}

.p-locations__note {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, .85);
  padding: 3px 8px;
  border-radius: 4px;
  color: #aaa;
}

.p-locations__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.p-locations__lead {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  margin: 0;
}

.p-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.p-stat {
  padding: 16px;
  background: #fdf5fc;
  border-radius: 8px;
  text-align: center;
}

.p-stat__num {
  font-family: "Jost", sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #B60081;
  line-height: 1;
}

.p-stat__num small {
  font-size: 14px;
  font-family: "Noto Sans JP", sans-serif;
  margin-left: 2px;
}

.p-stat__label {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

/* ============================================================
   提供サービス一例 カテゴリカードグリッド
============================================================ */
.p-service-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}

@media screen and (max-width: 767px) {
  .p-service-cats {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
  .p-service-cats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.p-service-cat {
  background: #fdf5fc;
  border: 1px solid #edd9ea;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(182, 0, 129, .04);
}

.p-service-cat__tag {
  display: inline-block;
  padding: 3px 12px;
  background: #B60081;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* h4 を使用（テーマの h3 スタイルと干渉しないため） */
.p-service-cat h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 10px 0 12px;
  color: #333;
  line-height: 1.4;
  padding-left: 0;
}

.p-service-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-service-cat ul li {
  font-size: 13px;
  line-height: 1.8;
  color: #333;
  padding-left: 14px;
  position: relative;
}

.p-service-cat ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: #B60081;
  border-radius: 50%;
  border: none;
}

/* ============================================================
   その他 補足スタイル
============================================================ */
.c-single__text strong {
  font-weight: 700;
}

/* ============================================================
   ★ カラーパターン B（別案）
     セクション帯に薄マゼンダ背景 → カードは白で奥行きを演出
     HTML に class="is-pattern-b" を追加するだけで切替可能
============================================================ */

/* 解決できる課題：グリッド全体を薄マゼンダ帯にして個別カードは白 */
.is-pattern-b .p-challenges {
  background: #fdf5fc;
  padding: 20px 18px;
  border-radius: 10px;
  gap: 10px;
}

.is-pattern-b .p-challenge {
  background: #fff;
  border: 1px solid #E2E2E2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

/* 当社の強み 3本の柱：グラデーション背景でアクセント */
.is-pattern-b .p-pillar {
  background: linear-gradient(160deg, #fdf5fc 0%, #fff 65%);
  box-shadow: 0 2px 10px rgba(182, 0, 129, .07);
}

.is-pattern-b .p-pillar--2 {
  background: linear-gradient(160deg, #fff8f0 0%, #fff 65%);
  box-shadow: 0 2px 10px rgba(232, 120, 0, .07);
}

.is-pattern-b .p-pillar--3 {
  background: linear-gradient(160deg, #f2f8f5 0%, #fff 65%);
  box-shadow: 0 2px 10px rgba(46, 125, 91, .07);
}

/* 様々なシャトルバス運行：アウトライン（枠線のみ）スタイル */
.is-pattern-b .p-tag {
  background: transparent;
  border: 1.5px solid #B60081;
  color: #B60081;
}

/* 提供サービス一例：グリッド全体を薄マゼンダ帯にして個別カードは白 */
.is-pattern-b .p-service-cats {
  background: #fdf5fc;
  padding: 20px 18px;
  border-radius: 10px;
  gap: 12px;
}

.is-pattern-b .p-service-cat {
  background: #fff;
  border: 1px solid #E2E2E2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

/* ============================================================
   ★ ブラッシュアップ版 追加コンポーネント（index-brushup 準拠）
      追加日: 2026-05-25
============================================================ */

/* ------ セクション共通 ------ */
.p-section {
  padding: 80px 0;
}

.p-section--gray {
  background: #f7f7f7;
}

.p-section--magenta {
  background: #fdf5fc;
}

.p-section--dark {
  background: #1a1a2e;
}

@media screen and (max-width: 767px) {
  .p-section {
    padding: 50px 0;
  }
}

.p-section__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.p-section__heading {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  line-height: 1.35;
  margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
  .p-section__heading {
    font-size: 22px;
  }
}

.p-section__heading::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: #B60081;
  border-radius: 2px;
  margin-top: 10px;
}

.p-section__lead {
  font-size: 15px;
  color: #666;
  line-height: 1.9;
  margin-bottom: 36px;
}

.p-section__eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: #B60081;
  display: block;
  margin-bottom: 10px;
}

/* ------ 01 ファーストビュー ------ */
.p-fv {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, rgba(30, 10, 22, .82) 0%, rgba(100, 0, 72, .65) 100%),
    url('/cms/wp-content/uploads/2024/11/Category_02_PC-scaled.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 20px;
}

@media screen and (max-width: 767px) {
  .p-fv {
    min-height: 380px;
    padding: 50px 20px;
  }
}

.p-fv__inner {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.p-fv__eyebrow {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: .26em;
  font-weight: 700;
  color: rgba(255, 210, 240, .9);
  display: block;
  margin-bottom: 14px;
}

.p-fv__heading {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}

@media screen and (max-width: 767px) {
  .p-fv__heading {
    font-size: 24px;
  }
}

.p-fv__heading em {
  font-style: normal;
  color: #ffcce8;
}

.p-fv__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 600px;
}

@media screen and (max-width: 767px) {
  .p-fv__sub {
    font-size: 13px;
  }
}

.p-fv__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.p-fv__badge {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 6px;
  padding: 8px 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.p-fv__badge strong {
  font-size: 20px;
  font-family: "Jost", sans-serif;
  display: block;
  line-height: 1.1;
  color: #ffcce8;
}

.p-fv__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.p-fv__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}

.p-fv__cta--primary {
  background: #B60081;
  color: #fff;
}

.p-fv__cta--secondary {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
}

.p-fv__cta:hover {
  opacity: .85;
}

/* ------ 02 数字で見るシャトルバスサービス ------ */
.p-stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .p-stats-band {
    grid-template-columns: repeat(2, 1fr);
  }
}

.p-stats-band__item {
  background: #fff;
  padding: 28px 20px;
  text-align: center;
}

.p-stats-band__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.p-stats-band__num {
  font-family: "Jost", sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #B60081;
  line-height: 1;
  display: block;
}

.p-stats-band__num sup {
  font-size: 18px;
  vertical-align: super;
}

.p-stats-band__num small {
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}

.p-stats-band__label {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}

.p-stats-band__note {
  font-size: 11px;
  color: #B60081;
  font-weight: 700;
}

/* ------ 03 こんなお悩みありませんか？ ------ */
.p-concerns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media screen and (max-width: 767px) {
  .p-concerns {
    grid-template-columns: 1fr;
  }
}

.p-concern {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.p-concern__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #fdf5fc;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.p-concern__text {
  font-size: 14px;
  line-height: 1.75;
  color: #333;
}

/* ------ 04 お悩み別の解決ストーリー ------ */
.p-stories {
  display: grid;
  gap: 20px;
}

.p-story {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E2E2;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.p-story__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #fdf5fc;
  border-bottom: 1px solid #edd9ea;
}

.p-story__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #B60081;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.p-story__target {
  font-size: 12px;
  color: #B60081;
  font-weight: 700;
  display: block;
}

.p-story__title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-top: 2px;
}

.p-story__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 767px) {
  .p-story__body {
    grid-template-columns: 1fr;
  }
}

.p-story__col {
  padding: 20px 22px;
  border-right: 1px solid #f0f0f0;
}

.p-story__col:last-child {
  border-right: none;
}

@media screen and (max-width: 767px) {
  .p-story__col {
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }

  .p-story__col:last-child {
    border-bottom: none;
  }
}

.p-story__col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #999;
  display: block;
  margin-bottom: 8px;
}

.p-story__col p {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.p-story__col--effect p {
  color: #B60081;
  font-weight: 700;
}

/* ------ 05 選ばれる5つの理由 ------ */
.p-reasons {
  display: grid;
  gap: 16px;
}

.p-reason {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E2E2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

@media screen and (max-width: 767px) {
  .p-reason {
    grid-template-columns: 50px 1fr;
    gap: 14px;
    padding: 18px;
  }
}

.p-reason__num {
  width: 60px;
  height: 60px;
  background: #B60081;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Jost", sans-serif;
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .p-reason__num {
    width: 50px;
    height: 50px;
  }
}

.p-reason__num span {
  font-size: 9px;
  letter-spacing: .1em;
  display: block;
  text-align: center;
  line-height: 1;
}

.p-reason__num strong {
  font-size: 24px;
  font-weight: 700;
  display: block;
  text-align: center;
  line-height: 1.1;
}

.p-reason__tag {
  display: inline-block;
  padding: 2px 10px;
  background: #fdf5fc;
  border: 1px solid #edd9ea;
  border-radius: 999px;
  font-size: 11px;
  color: #B60081;
  font-weight: 700;
  margin-bottom: 8px;
}

.p-reason h4 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.4;
  padding-left: 0;
}

.p-reason p {
  font-size: 13px;
  color: #666;
  line-height: 1.85;
  margin: 0;
}

/* ------ 06 提供サービス一覧（3フェーズ） ------ */
.p-service-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media screen and (max-width: 767px) {
  .p-service-phases {
    grid-template-columns: 1fr;
  }
}

.p-service-phase {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E2E2;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.p-service-phase__head {
  padding: 16px 20px;
  background: #B60081;
  color: #fff;
}

.p-service-phase__head--orange {
  background: #E87800;
}

.p-service-phase__head--green {
  background: #2E7D5B;
}

.p-service-phase__phase {
  font-size: 10px;
  font-family: "Jost", sans-serif;
  letter-spacing: .15em;
  font-weight: 700;
  opacity: .8;
  display: block;
  margin-bottom: 4px;
}

.p-service-phase h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding-left: 0;
  line-height: 1.3;
}

.p-service-phase ul {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
}

.p-service-phase ul li {
  font-size: 13px;
  color: #444;
  padding: 6px 0 6px 18px;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
  line-height: 1.6;
}

.p-service-phase ul li:last-child {
  border-bottom: none;
}

.p-service-phase ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: #B60081;
  border-radius: 50%;
  border: none;
}

.p-service-phase--orange ul li::before {
  background: #E87800;
}

.p-service-phase--green ul li::before {
  background: #2E7D5B;
}

/* ------ 07 安全への取組み ------ */
.p-safety-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media screen and (max-width: 767px) {
  .p-safety-pillars {
    grid-template-columns: 1fr;
  }
}

.p-safety-pillar {
  background: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  border: 1px solid #E2E2E2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  text-align: center;
}

.p-safety-pillar__icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.p-safety-pillar h4 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  padding-left: 0;
}

.p-safety-pillar p {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

.p-safety-checklist {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  border: 1px solid #E2E2E2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.p-safety-checklist__title {
  font-size: 14px;
  font-weight: 700;
  color: #B60081;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #fdf5fc;
}

.p-safety-checklist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .p-safety-checklist__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.p-safety-checklist__grid li {
  font-size: 12px;
  color: #555;
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}

.p-safety-checklist__grid li::before {
  content: '✓';
  color: #B60081;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}

/* ------ 08 導入事例 ------ */
.p-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media screen and (max-width: 767px) {
  .p-cases {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) and (max-width: 1000px) {
  .p-cases {
    grid-template-columns: 1fr;
  }
}

.p-case {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #E2E2E2;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
}

.p-case__img {
  height: 160px;
  background: linear-gradient(135deg, #fdf5fc 0%, #e8d5e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 12px;
  position: relative;
}

.p-case__industry {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #B60081;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.p-case__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p-case__client {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
}

.p-case h4 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.4;
  padding-left: 0;
}

.p-case__meta {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.p-case__meta-row {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.p-case__meta-label {
  color: #999;
  white-space: nowrap;
  width: 56px;
  flex-shrink: 0;
}

.p-case__meta-val {
  color: #333;
}

.p-case__result {
  margin-top: 14px;
  padding: 10px 14px;
  background: #fdf5fc;
  border-radius: 6px;
  font-size: 13px;
  color: #B60081;
  font-weight: 700;
  line-height: 1.6;
}

/* ------ 09 お客様の声 ------ */
.p-voices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media screen and (max-width: 767px) {
  .p-voices {
    grid-template-columns: 1fr;
  }
}

.p-voice {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #E2E2E2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-voice__quote {
  font-size: 14px;
  color: #333;
  line-height: 1.85;
  position: relative;
  padding-left: 20px;
}

.p-voice__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 36px;
  font-family: Georgia, serif;
  color: #e0c0da;
  line-height: 1;
}

.p-voice__client {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.p-voice__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fdf5fc;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.p-voice__name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.p-voice__role {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ------ 10 導入の流れ ------ */
.p-flow {
  display: grid;
  gap: 0;
}

.p-flow__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  position: relative;
}

@media screen and (max-width: 767px) {
  .p-flow__step {
    grid-template-columns: 60px 1fr;
  }
}

.p-flow__step::after {
  content: '';
  position: absolute;
  left: 39px;
  top: 72px;
  bottom: 0;
  width: 2px;
  background: #edd9ea;
}

@media screen and (max-width: 767px) {
  .p-flow__step::after {
    left: 29px;
  }
}

.p-flow__step:last-child::after {
  display: none;
}

.p-flow__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 24px;
}

.p-flow__circle {
  width: 40px;
  height: 40px;
  background: #B60081;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 767px) {
  .p-flow__circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

.p-flow__right {
  padding: 20px 0 32px 16px;
}

.p-flow__days {
  font-size: 11px;
  color: #B60081;
  font-weight: 700;
  margin-bottom: 4px;
}

.p-flow__title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.p-flow__desc {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.p-flow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.p-flow__tag {
  display: inline-block;
  padding: 2px 10px;
  background: #fdf5fc;
  border: 1px solid #edd9ea;
  border-radius: 999px;
  font-size: 11px;
  color: #B60081;
}

.p-flow__tag--you {
  background: #f7f7f7;
  border-color: #E2E2E2;
  color: #666;
}

/* ------ 11 よくあるご質問（独自アコーディオン） ------ */
.p-faq-list {
  display: grid;
  gap: 10px;
}

.p-faq-item {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  overflow: hidden;
}

.p-faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
}

.p-faq-q__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #B60081;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  font-family: "Jost", sans-serif;
}

.p-faq-q__arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  transition: transform .2s;
}

.p-faq-q__arrow::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #B60081;
  border-bottom: 2px solid #B60081;
  transform: rotate(45deg);
  margin-top: -4px;
}

.p-faq-item.is-open .p-faq-q__arrow {
  transform: rotate(180deg);
}

.p-faq-item.is-open .p-faq-q__arrow::before {
  margin-top: 4px;
}

.p-faq-a {
  display: none;
  padding: 0 20px 18px 62px;
  font-size: 14px;
  color: #555;
  line-height: 1.85;
}

.p-faq-item.is-open .p-faq-a {
  display: block;
}

/* ------ 12 資料請求・お問い合わせ（多段CTA） ------ */
.p-cta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media screen and (max-width: 767px) {
  .p-cta-cards {
    grid-template-columns: 1fr;
  }
}

.p-cta-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid #E2E2E2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.p-cta-card--primary {
  border-color: #B60081;
  box-shadow: 0 4px 16px rgba(182, 0, 129, .12);
}

.p-cta-card__phase {
  font-size: 11px;
  color: #B60081;
  font-weight: 700;
  letter-spacing: .1em;
}

.p-cta-card__icon {
  font-size: 36px;
}

.p-cta-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin: 0;
  padding-left: 0;
}

.p-cta-card p {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
  margin: 0;
}

.p-cta-card__btn {
  display: inline-block;
  padding: 12px 24px;
  background: #B60081;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  transition: opacity .2s;
}

.p-cta-card__btn--outline {
  background: transparent;
  border: 1.5px solid #B60081;
  color: #B60081;
}

.p-cta-card__btn:hover {
  opacity: .82;
}

/* ------ ページ内タブナビ ------ */
.p-page-tabs {
  background: #fff;
  border-bottom: 2px solid #E2E2E2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.p-page-tabs__list {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  scrollbar-width: none;
}

.p-page-tabs__list::-webkit-scrollbar {
  display: none;
}

.p-page-tabs__list a {
  display: inline-block;
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}

.p-page-tabs__list a:hover {
  color: #B60081;
  border-bottom-color: #B60081;
}

/* ------ スティッキーバー（モバイル追従CTA） ------ */
.p-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8888;
  background: rgba(26, 26, 46, .96);
  backdrop-filter: blur(6px);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .25);
}

@media screen and (min-width: 768px) {
  .p-sticky-bar {
    display: none;
  }
}

.p-sticky-bar__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.p-sticky-bar__tel strong {
  font-family: "Jost", sans-serif;
  font-size: 18px;
}

.p-sticky-bar__btn {
  flex: 1;
  display: block;
  text-align: center;
  padding: 12px;
  background: #B60081;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Case archive card tags */
.c-archive3__menu .c-card4__menu.c-tagMenu {
  align-items: flex-start;
  column-gap: 10px;
  row-gap: 8px !important;
}

.c-archive3__menu .c-card4__menu.c-tagMenu>li {
  max-width: 100%;
  min-width: 0;
}

.c-archive3__menu .c-card4__menu.c-tagMenu .c-tag {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.c-archive3__menu .c-card4__menu.c-tagMenu .c-tag::before {
  top: .45em;
  translate: 0;
}

/* Service category archive spacing */
.p-serviceArchive__body {
  padding-bottom: 0;
}

.p-relatedGrid.p-serviceArchiveRelated {
  margin-top: 96px;
}

/* Related service/case/column sliders */
.p-relatedGrid {
  margin-top: 96px;
}

.p-relatedGrid.c-single__related.-bottom {
  margin-bottom: 96px;
}

.p-relatedGrid+.p-relatedGrid {
  margin-top: 96px;
}

.p-relatedGrid .c-related__section+.c-related__section {
  margin-top: 96px;
}

.p-relatedGrid .c-related {
  display: flex;
  flex-direction: column;
}

.p-relatedGrid .p-relatedGrid__services {
  order: 1;
  margin-top: 0;
}

.p-relatedGrid .p-relatedGrid__cases {
  order: 2;
  margin-top: 96px;
}

.p-relatedGrid .p-relatedGrid__columns {
  order: 3;
  margin-top: 96px;
}

.p-relatedGrid .c-related__body {
  margin-top: -40px;
}

.p-relatedGrid .c-related__body.-noButton {
  margin-top: 24px;
}

.p-relatedGrid .c-slider__nav {
  margin-bottom: 24px;
}

.p-relatedGrid .c-slider__buttonList>li .swiper-button-next,
.p-relatedGrid .c-slider__buttonList>li .swiper-button-prev {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.p-relatedGrid .c-related__header .c-container,
.p-relatedGrid .c-slider__nav .c-container {
  box-sizing: content-box;
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
  width: 1240px;
}

.p-relatedGrid .c-slider__body,
.p-relatedGrid .c-slider2__body {
  box-sizing: content-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  width: 1240px;
}

.p-relatedGrid .swiper {
  overflow: hidden;
}

.p-relatedGrid .swiper-slide {
  height: auto;
}

.p-relatedGrid .c-slider__body .swiper-slide {
  width: 340px;
}

.p-relatedGrid .c-slider2__body .swiper-slide {
  width: 285px;
}

.p-relatedGrid .c-card4,
.p-relatedGrid .c-card11 {
  height: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.p-relatedGrid .c-card4__link,
.p-relatedGrid .c-card11__link {
  display: block;
}

.p-relatedGrid .c-card4__img,
.p-relatedGrid .c-card11__img {
  aspect-ratio: 19 / 12;
  border-radius: 20px;
  margin-left: -15px;
  margin-right: -15px;
  overflow: hidden;
}

.p-relatedGrid .c-card4__img>img,
.p-relatedGrid .c-card11__img>img {
  aspect-ratio: 19 / 12;
  border-radius: 20px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.p-relatedGrid .c-card4__heading,
.p-relatedGrid .c-card11__heading {
  font-size: 16px;
  line-height: 1.55;
  margin-top: 22px;
}

.p-relatedGrid .c-card11__heading {
  padding-right: 38px;
}

.p-relatedGrid .c-card4__menu {
  margin-top: 14px;
}

.p-relatedGrid .c-card4__menu.c-tagMenu {
  align-items: flex-start;
  column-gap: 8px;
  row-gap: 8px !important;
}

.p-relatedGrid .c-card4__menu.c-tagMenu>li {
  max-width: 100%;
  min-width: 0;
}

.p-relatedGrid .c-card4__menu.c-tagMenu .c-tag {
  box-sizing: border-box;
  display: inline-block;
  font-size: 13px;
  line-height: 1.55;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 10px 5px 28px;
  white-space: normal;
}

.p-relatedGrid .c-card4__menu.c-tagMenu .c-tag::before {
  left: 10px;
  margin-left: 0;
  top: .72em;
  translate: 0;
}

.p-relatedGrid .c-card4__text {
  display: none;
}

@media screen and (max-width: 959px) {

  .p-relatedGrid .c-related__header .c-container,
  .p-relatedGrid .c-slider__nav .c-container,
  .p-relatedGrid .c-slider__body,
  .p-relatedGrid .c-slider2__body {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 767px) {
  .p-relatedGrid {
    margin-top: 56px;
  }

  .p-relatedGrid.c-single__related.-bottom {
    margin-bottom: 80px;
  }

  .p-relatedGrid+.p-relatedGrid,
  .p-relatedGrid .c-related__section+.c-related__section {
    margin-top: 64px;
  }

  .p-relatedGrid .p-relatedGrid__services {
    margin-top: 0;
  }

  .p-relatedGrid .p-relatedGrid__cases,
  .p-relatedGrid .p-relatedGrid__columns {
    margin-top: 64px;
  }

  .p-relatedGrid .c-related__body,
  .p-relatedGrid .c-related__body.-noButton {
    margin-top: 30px;
  }

  .p-relatedGrid .c-slider__body .swiper-slide {
    width: 262px;
  }

  .p-relatedGrid .c-slider2__body .swiper-slide {
    width: 217px;
  }

  .p-relatedGrid .c-card4,
  .p-relatedGrid .c-card11 {
    padding-left: 5px;
    padding-right: 5px;
  }

  .p-relatedGrid .c-card4__img,
  .p-relatedGrid .c-card11__img {
    border-radius: 15px;
    margin-left: -5px;
    margin-right: -5px;
  }

  .p-relatedGrid .c-card4__img>img,
  .p-relatedGrid .c-card11__img>img {
    border-radius: 15px;
  }

  .p-relatedGrid .c-card4__heading,
  .p-relatedGrid .c-card11__heading {
    font-size: 14px;
    margin-top: 20px;
  }

  .p-relatedGrid .c-card4__menu.c-tagMenu .c-tag {
    font-size: 12px;
    padding-left: 26px;
  }

  .p-relatedGrid .c-card4__menu.c-tagMenu .c-tag::before {
    left: 9px;
  }
}

/* Service single extracted styles #1 */
.c-single__content.-service :where(h2.wp-block-heading, h3.wp-block-heading, h4.wp-block-heading) {
  border: none;
  color: #333;
  font-weight: 700;
  line-height: 1.55;
  position: relative;
}

.c-single__content.-service h2.wp-block-heading {
  border-bottom: 1px solid #E2E2E2;
  font-size: 24px;
  margin: 44px 0 42px;
  padding: 0 0 14px;
}

.c-single__content.-service h2.wp-block-heading::before {
  display: none;
}

.c-single__content.-service h2.wp-block-heading::after {
  background: #B60081;
  bottom: -1px;
  content: "";
  display: block;
  height: 2px;
  left: 0;
  position: absolute;
  width: 72px;
}

.c-single__content.-service h3.wp-block-heading,
.c-single__content.-service .wp-block-columns .wp-block-column h3.wp-block-heading {
  font-size: 20px;
  margin: 38px 0 18px;
  padding: 0 0 0 16px;
}

.c-single__content.-service h3.wp-block-heading::before,
.c-single__content.-service .wp-block-columns .wp-block-column h3.wp-block-heading::before {
  background: #B60081;
  content: "";
  display: block;
  height: 1.1em;
  left: 0;
  position: absolute;
  top: .25em;
  translate: none;
  width: 3px;
}

.c-single__content.-service h4.wp-block-heading {
  font-size: 18px;
  margin: 32px 0 16px;
  padding: 0;
}

.c-single__content.-service :where(h2.wp-block-heading, h3.wp-block-heading, h4.wp-block-heading):first-child {
  margin-top: 0;
}

.c-single__content.-service>h2.wp-block-heading:first-child,
.c-single__content.-service>h3.wp-block-heading:first-child,
.c-single__content.-service>h4.wp-block-heading:first-child {
  margin-top: 0;
}

.c-single__content.-service>:first-child {
  margin-top: 0 !important;
}

.c-single__body+.c-single__related {
  margin-top: 64px;
}

.c-single__content.-service :where(ul.wp-block-list, ol.wp-block-list) {
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
}

.c-single__content.-service :where(ul.wp-block-list, ol.wp-block-list)>li {
  display: block;
  font-size: 16px;
  line-height: 2;
  padding-left: 24px;
  position: relative;
}

.c-single__content.-service ul.wp-block-list>li::before {
  color: #D2D2D2;
  content: "●";
  left: 0;
  position: absolute;
  top: 0;
}

.c-single__content.-service ol.wp-block-list {
  counter-reset: item;
}

.c-single__content.-service ol.wp-block-list>li {
  padding-left: 24px;
}

.c-single__content.-service ol.wp-block-list>li::before {
  color: #B60081;
  content: counter(item) ".";
  counter-increment: item;
  font-weight: 700;
  left: 0;
  position: absolute;
  top: 2px;
}

@media screen and (max-width: 767px) {
  .c-single__body+.c-single__related {
    margin-top: 56px;
  }

  .c-single__content.-service :where(ul.wp-block-list, ol.wp-block-list) {
    margin: 20px 0 26px;
    padding: 0;
  }

  .c-single__content.-service :where(ul.wp-block-list, ol.wp-block-list)>li {
    font-size: 16px;
    line-height: 1.9;
  }
}

/* Case single extracted styles #1 */
.p-caseArticleHead {
  background: #fff;
  padding: 38px 0 0
}

.p-caseArticleHead.p-caseArticleHead--layout {
  grid-column: 1/-1;
  padding: 0
}

.p-caseArticleHead.p-caseArticleHead--layout .p-caseArticleHead__title {
  max-width: none
}

.p-caseArticleHead__title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  line-height: 1.55;
  margin: 0;
  max-width: 980px
}

.p-caseArticleHead+.c-single {
  margin-top: 56px
}

@media(max-width:767px) {
  .p-caseArticleHead {
    padding-top: 28px
  }

  .p-caseArticleHead__title {
    font-size: 22px;
    line-height: 1.5
  }
}

@media(max-width:767px) {
  .p-caseArticleHead+.c-single {
    margin-top: 40px
  }
}

/* Case single extracted styles #2 */
/* ---- 事例詳細 改善版レイアウト ---- */
.p-caseHero {
  background: linear-gradient(135deg, rgba(182, 0, 129, .9) 0%, rgba(100, 0, 72, .78) 100%), repeating-linear-gradient(45deg, #d8dde7 0 8px, #c8d0dc 8px 10px);
  padding: 60px 0 80px
}

.p-caseHero__tag {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .08em;
  margin-bottom: 14px
}

.p-caseHero__title {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 14px
}

.p-caseHero__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, .88);
  line-height: 1.9;
  max-width: 780px
}

@media(max-width:767px) {
  .p-caseHero {
    padding: 40px 0 60px
  }

  .p-caseHero__title {
    font-size: 22px
  }
}

.p-caseSummary {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  overflow: hidden;
  margin-bottom: 56px
}

.p-caseSummary--serviceVisual {
  margin-top: 40px
}

.p-caseSummary--afterLead {
  margin-top: 34px
}

.p-caseSummary--afterArticleHead {
  margin-top: 34px
}

.p-caseSummary__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.p-caseSummary__item {
  padding: 20px 24px;
  border-right: 1px solid #E2E2E2;
  border-bottom: 1px solid #E2E2E2
}

.p-caseSummary__item:nth-child(4n) {
  border-right: none
}

.p-caseSummary__item:nth-last-child(-n+4) {
  border-bottom: none
}

.p-caseSummary__label {
  font-size: 16px;
  font-weight: 700;
  color: #B60081;
  letter-spacing: .1em;
  font-family: "Jost", sans-serif;
  display: block;
  margin-bottom: 6px
}

.p-caseSummary__value {
  font-size: 16px;
  font-weight: 700;
  color: #333
}

.p-caseSummary__value--accent {
  color: #B60081
}

.p-caseSummary--inColumn {
  margin: 24px 0 32px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .05);
  z-index: 1
}

.p-caseSummary--inColumn .p-caseSummary__grid {
  grid-template-columns: repeat(3, 1fr)
}

.p-caseSummary--inColumn .p-caseSummary__item {
  border-right: 1px solid #E2E2E2;
  border-bottom: none
}

.p-caseSummary--inColumn .p-caseSummary__item:nth-child(3n) {
  border-right: none
}

.p-caseSummary--inColumn.p-caseSummary--count-1 {
  width: 33.333%
}

.p-caseSummary--inColumn.p-caseSummary--count-1 .p-caseSummary__grid {
  grid-template-columns: 1fr
}

.p-caseSummary--inColumn.p-caseSummary--count-1 .p-caseSummary__item {
  border-right: none
}

.p-caseSummary--inColumn.p-caseSummary--count-2 {
  width: 66.666%
}

.p-caseSummary--inColumn.p-caseSummary--count-2 .p-caseSummary__grid {
  grid-template-columns: repeat(2, 1fr)
}

.p-caseSummary--inColumn.p-caseSummary--count-2 .p-caseSummary__item:nth-child(2n) {
  border-right: none
}

@media(max-width:767px) {
  .p-caseSummary {
    margin-top: 0;
    border-radius: 0;
    border-left: none;
    border-right: none
  }

  .p-caseSummary__grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .p-caseSummary__item:nth-child(4n) {
    border-right: 1px solid #E2E2E2
  }

  .p-caseSummary__item:nth-child(2n) {
    border-right: none
  }

  .p-caseSummary__item:nth-last-child(-n+4) {
    border-bottom: 1px solid #E2E2E2
  }

  .p-caseSummary__item:nth-last-child(-n+2) {
    border-bottom: none
  }

  .p-caseSummary--inColumn.p-caseSummary--count-1,
  .p-caseSummary--inColumn.p-caseSummary--count-2 {
    width: auto
  }

  .p-caseSummary--inColumn .p-caseSummary__grid {
    grid-template-columns: 1fr
  }

  .p-caseSummary--inColumn .p-caseSummary__item {
    border-right: none;
    border-bottom: 1px solid #E2E2E2
  }

  .p-caseSummary--inColumn .p-caseSummary__item:last-child {
    border-bottom: none
  }
}

.p-caseLayout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 0;
  padding-top: 56px
}

.p-caseLayout--noSummary {
  padding-top: 56px
}

.p-caseBody {
  grid-column: 2;
  min-width: 0
}

.p-caseSide {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch
}

@media(max-width:959px) {
  .p-caseLayout {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .p-caseBody,
  .p-caseSide {
    grid-column: auto;
    grid-row: auto
  }
}

@media(max-width:767px) {

  .p-caseLayout,
  .p-caseLayout--noSummary {
    padding-top: 40px
  }

  .p-caseSummary--inColumn {
    margin: 20px 0 40px
  }
}

.p-caseStep {
  margin-bottom: 48px
}

.p-caseStep+.p-caseStep {
  margin-top: 64px
}

.p-caseStep__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #E2E2E2
}

.p-caseStep__num {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  flex-shrink: 0
}

.p-caseStep__num--o {
  background: #607D8B
}

.p-caseStep__num--q {
  background: #F2C7E4;
  color: #5D164C
}

.p-caseStep__num--s {
  background: #DD83BF;
  color: #4A123C
}

.p-caseStep__num--r {
  background: #B84C96
}

.p-caseStep__title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  margin: 0
}

.p-caseStep .c-single__content h2,
.p-caseStep .c-single__content h3,
.p-caseStep .c-single__content h4,
.p-caseStep .c-single__content h5,
.p-caseStep .c-single__content h6 {
  font-weight: 700;
  color: #333;
  line-height: 1.55;
  border: none;
  position: relative
}

.p-caseStep .c-single__content h2 {
  font-size: 24px;
  margin: 58px 0 24px;
  padding: 0 0 14px;
  border-bottom: 1px solid #E2E2E2
}

.p-caseStep .c-single__content h2::before {
  display: none
}

.p-caseStep .c-single__content h2::after {
  bottom: -1px;
  left: 0;
  content: "";
  display: block;
  height: 2px;
  width: 72px;
  background: #B60081;
  position: absolute
}

.p-caseStep .c-single__content h3 {
  font-size: 20px;
  margin: 48px 0 20px;
  padding: 0 0 0 16px
}

.p-caseStep .c-single__content h3::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: .25em;
  width: 3px;
  height: 1.1em;
  background: #B60081;
  translate: none
}

.p-caseStep .c-single__content h4 {
  font-size: 18px;
  margin: 40px 0 18px;
  padding: 0
}

.p-caseStep .c-single__content h5,
.p-caseStep .c-single__content h6 {
  font-size: 16px;
  margin: 34px 0 16px;
  padding: 0
}

.p-caseStep .c-single__content :is(h2, h3, h4, h5, h6):first-child {
  margin-top: 0
}

.p-caseStep .c-single__content p {
  font-size: 16px;
  color: #444;
  line-height: 1.95;
  margin-bottom: 22px
}

.p-caseStep .c-single__content ul,
.p-caseStep .c-single__content ol {
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
  list-style: none;
  margin: 22px 0 30px;
  padding: 0
}

.p-caseStep .c-single__content li {
  display: block;
  font-size: 16px;
  color: #444;
  line-height: 2;
  padding-left: 24px;
  position: relative
}

.p-caseStep .c-single__content ul>li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  color: #D2D2D2
}

.p-caseStep .c-single__content ol {
  counter-reset: item
}

.p-caseStep .c-single__content ol>li::before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 2px;
  color: #B60081;
  font-family: "Jost", sans-serif;
  font-weight: 600
}

.p-caseActionTable {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 24px 0 60px;
  background: #fff;
  position: relative
}

.p-caseActionTable::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: #fff;
  z-index: 1
}

.p-caseActionTable th,
.p-caseActionTable td {
  border: none;
  border-bottom: 1px solid #E2E2E2;
  font-size: 16px;
  line-height: 1.5;
  padding: 15px 30px;
  text-align: left;
  vertical-align: middle
}

.p-caseActionTable th {
  width: 25%;
  background: #F7F7F7;
  color: #333;
  font-weight: 700;
  border-right: 1px solid #E2E2E2
}

.p-caseActionTable td {
  color: #444
}

.p-caseActionTable__body--full {
  width: 100%
}

@media(max-width:767px) {
  .p-caseStep .c-single__content li {
    font-size: 16px;
    line-height: 1.9
  }

  .p-caseActionTable th,
  .p-caseActionTable td {
    font-size: 16px;
    line-height: 1.5;
    padding-left: 25px;
    padding-right: 25px
  }
}

.p-caseStep .c-single__content {
  max-width: 100%;
  min-width: 0
}

.p-caseStep .c-single__content .wp-block-columns,
.p-caseStep .c-single__content .wp-block-column {
  min-width: 0;
  max-width: 100%
}

.p-caseStep .c-single__content .wp-block-flexible-table-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

@media(max-width:767px) {
  .p-caseStep .c-single__content .wp-block-flexible-table-block-table {
    margin-right: 0
  }

  .p-caseStep .c-single__content .wp-block-flexible-table-block-table>table {
    min-width: 720px
  }
}

.p-caseImgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0
}

.p-caseBody>.p-caseImgs:first-child {
  margin-top: 0
}

.p-caseImgs+.p-caseStep {
  margin-top: 48px
}

.p-caseImgs img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px
}

@media(max-width:599px) {
  .p-caseImgs {
    grid-template-columns: 1fr
  }

  .p-caseStep+.p-caseStep {
    margin-top: 48px
  }

  .p-caseImgs+.p-caseStep {
    margin-top: 36px
  }

  .p-caseImgs img {
    height: 180px
  }
}

.p-caseMetrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0
}

@media(max-width:599px) {
  .p-caseMetrics {
    grid-template-columns: 1fr 1fr
  }
}

.p-caseMetric {
  background: #fdf5fc;
  border: 1px solid rgba(182, 0, 129, .15);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center
}

.p-caseMetric__num {
  font-family: "Jost", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #B60081;
  line-height: 1
}

.p-caseMetric__unit {
  font-size: 16px;
  color: #B60081
}

.p-caseMetric__label {
  font-size: 16px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5
}

.p-caseVoice {
  background: #F7F7F7;
  border: 1px solid #E2E2E2;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: none;
  margin: 0 0 48px
}

.p-caseVoice__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E2E2
}

.p-caseVoice__company {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.6
}

.p-caseVoice__name {
  font-size: 16px;
  font-weight: 700;
  color: #555;
  line-height: 1.6
}

.p-caseVoice__role {
  font-size: 16px;
  color: #888;
  font-weight: 400
}

.p-caseVoice__text {
  font-size: 16px;
  color: #333;
  line-height: 1.9;
  margin: 0
}

@media(max-width:767px) {
  .p-caseVoice {
    padding: 22px 20px
  }

  .p-caseVoice__company {
    font-size: 16px
  }

  .p-caseVoice__text {
    font-size: 16px;
    line-height: 1.85
  }
}

.p-caseSide {
  position: relative
}

.p-caseSide__inner {
  position: sticky;
  top: 120px
}

.p-caseSide__contents {
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
  padding: 50px 30px
}

.p-caseSide__inner>.c-single__buttonList {
  margin-bottom: 20px
}

.p-caseSide__inner>.c-single__buttonList:first-child .c-single__button {
  border-radius: 8px
}

.p-caseSide__box {
  background: #F7F7F7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px
}

.p-caseSide__boxTitle {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #B60081
}

.p-caseSide__row {
  display: flex;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 8px
}

.p-caseSide__key {
  color: #888;
  flex-shrink: 0;
  width: 88px
}

.p-caseSide__val {
  color: #333;
  font-weight: 700
}

.p-caseSide__box--info {
  background: #fff;
  border: 1px solid #E2E2E2;
  padding: 0;
  overflow: hidden
}

.p-caseSide__box--info .p-caseSide__boxTitle {
  background: #F7F7F7;
  border-bottom: 1px solid #E2E2E2;
  margin: 0;
  padding: 14px 20px
}

.p-caseSide__box--info .p-caseSide__row {
  display: block;
  margin: 0;
  padding: 13px 12px 13px 20px;
  border-bottom: 1px solid #E2E2E2
}

.p-caseSide__box--info .p-caseSide__row:last-child {
  border-bottom: none
}

.p-caseSide__box--info .p-caseSide__key {
  display: block;
  width: auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 5px;
  color: #B60081
}

.p-caseSide__box--info .p-caseSide__val {
  display: block;
  font-size: 16px;
  line-height: 1.55;
  color: #333
}

.p-caseSide__cta {
  background: #B60081;
  border-radius: 8px;
  padding: 20px;
  text-align: center
}

.p-caseSide__ctaTitle {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px
}

.p-caseSide__ctaText {
  font-size: 16px;
  color: rgba(255, 255, 255, .85);
  line-height: 1.7;
  margin-bottom: 14px
}

.p-caseSide__ctaBtn {
  display: block;
  background: #fff;
  color: #B60081;
  font-weight: 700;
  font-size: 16px;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s
}

.p-caseSide__ctaBtn:hover,
.p-caseSide__ctaBtn:focus-visible {
  color: #8c0063;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
  transform: translateY(-1px)
}

.p-caseSide__ctaBtn2 {
  display: block;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .5);
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s
}

.p-caseSide__ctaBtn2:hover,
.p-caseSide__ctaBtn2:focus-visible {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
  transform: translateY(-1px)
}

.p-caseTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px
}

.p-caseTag {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #E2E2E2;
  color: #666;
  background: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s
}

.p-caseTag:hover,
.p-caseTag:focus-visible {
  background: #fdf5fc;
  border-color: rgba(182, 0, 129, .35);
  color: #B60081;
  transform: translateY(-1px)
}

.p-caseSidePostList,
.p-caseSideServiceList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none
}

.p-caseSidePostLink,
.p-caseSideServiceLink {
  display: block;
  color: #333;
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  padding: 12px 14px;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s
}

.p-caseSidePostLink:hover,
.p-caseSidePostLink:focus-visible,
.p-caseSideServiceLink:hover,
.p-caseSideServiceLink:focus-visible {
  background: #fdf5fc;
  border-color: rgba(182, 0, 129, .35);
  color: #B60081;
  transform: translateY(-1px)
}

.p-caseSideServiceMore {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: #B60081;
  color: #fff;
  border: 1px solid #B60081;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 14px;
  text-decoration: none;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s
}

.p-caseSideServiceMore:hover,
.p-caseSideServiceMore:focus-visible {
  background: #8c0063;
  border-color: #8c0063;
  color: #fff;
  box-shadow: 0 5px 14px rgba(182, 0, 129, .18);
  transform: translateY(-1px)
}

@media(max-width:959px) {
  .p-caseSide__inner {
    position: static
  }
}

.p-caseEnd {
  background: #fff
}

.p-caseBackArea {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid #E2E2E2;
  text-align: center
}

@media(max-width:599px) {
  .p-caseBackArea {
    margin-top: 44px;
    padding-top: 32px
  }
}

/* Single template style migration helpers */
.p-caseImgs--single {
  grid-template-columns: 1fr;
}

.p-caseImgs .p-caseImage {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
}

/* Case body last content spacing */
.p-caseBody> :last-child,
.p-caseBody> :last-child> :last-child,
.p-caseBody>.p-caseStep:last-child .c-single__content> :last-child {
  margin-bottom: 0;
}