/* =========================================================
   Case Modal
========================================================= */
/* body（iframe内） */
.p-case-modal-body {
  /*
  background: #ccc;
  padding: 64px;*/
  font-size: 1rem;
  padding-top: 0 !important;
}

/* 全体 */
.p-case-modal {
  /*
  max-width: 760px;
  margin: 0 auto;*/
  background: #fff url("../img/case_modal_bg2.svg") no-repeat top 30px right 30px;
  position: relative;
  padding: 70px 48px 56px;
}

/* 内側 */
.p-case-modal__inner {}

/* ヘッダー */
.p-case-modal__head {
  position: relative;
  margin-bottom: 32px;
}

/* 画像＋テキスト横並び */
.p-case-modal__head-inner {
  display: flex;
  gap: 5%;
  align-items: center;
}

/* 画像 */
.p-case-modal__image {
  width: 38%;
  flex-shrink: 0;
}

.p-case-modal__image img {
  width: 100%;
  height: auto;
  display: block;
  background: #e0e0e0;
}

/* テキスト */
.p-case-modal__head-text {
  padding-bottom: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0b2c6f;
}

.p-case-modal__label {
  margin-bottom: 6px;
}

.p-case-modal__title {
  line-height: 1.4;
  font-size: 1.125rem;
}

/* 左上の番号（三角は既存CSS想定） */
.p-case-modal .p-case__num {
  position: absolute;
  top: 0;
  left: 0;
}

/* 画像 */
.p-case-modal__image {}

.p-case-modal__image img {
  display: block;
  width: 100%;
  height: auto;
  background: #e0e0e0;
}

/* セクション共通 */
.p-case-modal__section {
  margin-bottom: 32px;
}

/* セクション見出し */
.p-case-modal__section-title {
  background: #eef5f7;
  font-weight: 700;
  color: #0b2c6f;
  padding: 4px 16px;
  margin-top: 2.4em;
  margin-bottom: 1.1em;
  text-align: center;
  font-size: 1.0625rem;
}

/* リスト */
.p-case-modal__list {
  margin-top: 1.1em;
}

.p-case-modal__list li {
  margin-bottom: 0.35em;
  position: relative;
  padding-left: 1.3em;
  line-height: 1.4;
}

.p-case-modal__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 100;
}

/* 担当者の声 */
.p-case-modal__voice {
  line-height: 1.7;
}

/* フッター */
.p-case-modal__footer {
  margin-top: 48px;
  text-align: center;
}

/* 閉じるボタン */
.p-case-modal__close {
  display: block;
  margin: auto;
  color: #fff;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  width: 16em;
  font-size: 0.875rem;
  background: #0b2c6f url("../img/icon_close.svg") no-repeat center right 1.5em;
  transition: 0.3s;
}

.p-case-modal__close:hover {
  opacity: 0.5;
}

/* =========================================================
   SP
========================================================= */
@media (max-width: 768px) {
  .p-case-modal {
    background-size: 50%;
    background-position: top 10px right 10px;
  }

  .p-case-modal-body {
    font-size: 0.875rem;
  }

  .p-case-modal {
    padding: 48px 20px 40px;
  }

  .p-case-modal__head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 10px;
  }

  .p-case-modal__section-title {
    margin-top: 0;
  }

  .p-case-modal__head-text {
    font-size: 1rem;
    margin-top: 0.5em;
  }

  .p-case-modal__head-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .p-case-modal__image {
    width: 100%;
    max-width: 370px;
  }

  .p-case-modal__label {
    margin-bottom: 0;
  }

  .p-case-modal__title {}

  .p-case-modal__section-title {
    font-size: 1rem;
  }

  .p-case-modal__close {
    width: 16em;
    font-size: 0.875rem;
    max-width: 100%;
    padding: 0.7em 1em;
  }
}