/*-------------------------------------------------------
  Caselayout
-------------------------------------------------------*/
/* ===== SP ===== */
.mainContents {
  width: 100%;
}

.mainContents__wrapper {
  display: block;
  padding: 0;
}

.mainContents__title-wrapper {
  background: url(/image/clinic/bg.webp) no-repeat 50% 0/cover;
  background-color: #fff;
  padding: 32px;
}

.mainContents__title {
  font-size: 22px;
  line-height: 1.4;
  font-weight: bold;
  color: #000;
  text-align: center;
}

.mainContents__title-case {
  font-size: 16px;
}

.mainContents__title-case {
  align-items: center;
  /* 横線を上下中央 */
  display: flex;
  /* 文字と横線を横並び */
  justify-content: center;
  /* 文字を中央寄せ */
}

.mainContents__title-case::before,
.mainContents__title-case::after {
  background-color: #000;
  /* 横線の色 */
  content: "";
  height: 2px;
  /* 横線の高さ */
  width: 30px;
  /* 横線の長さ */
}

.mainContents__title-case::before {
  margin-right: 15px;
  /* 文字との余白 */
}

.mainContents__title-case::after {
  margin-left: 15px;
  /* 文字との余白 */
}

.mainContent_post-info {
  margin: 0 20px;
}

.anchor {
  margin: 0 20px 50px;
}

.case__title-wrapper,
.tag,
.clinicCase,
.sideEffect {
  margin: 0 20px 16px;
}

.dentalClinic {
  margin-bottom: 72px;
}

.treatmentDetails__text {
  font-size: 17px;
  margin-bottom: 16px;
  line-height: 2;
}

.anchor__item-case {
  position: relative;
  margin-left: 0px;
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.5;
  padding-left: 30px;
}

.anchor__item-case:before {
  position: absolute;
  content: "";
  background-image: url(/image/common/icon_anchor.svg);
  width: 22px;
  height: 22px;
  display: block;
  vertical-align: middle;
  background-size: contain;
  margin-top: 3px;
  margin-left: -23px;
  background-repeat: no-repeat;
}

.clinicCase {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: dashed #686f86 3px;
}

.clinicCase:last-of-type {
  padding-bottom: 0px;
  border-bottom: none;
}

.clinicCase__wrapper {
  margin-bottom: 32px;
}

.clinicCase__title {
  font-size: 22px;
  font-weight: bold;
  padding: 16px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #ffc6bd 0%, #ffdad4 50%, #ffebe8 100%);
  border-radius: 10px;
  position: relative;
  color: #443535;
  line-height: 1.2;
}

.clinicCase__title-sub {
  padding-top: 10px;
  font-size: 13px;
  background: #fff;
  border: #715050 4px solid;
  color: #443535;
  line-height: 1.1;
  letter-spacing: 0.05em;
  border-radius: 100px;
  width: 56px;
  height: 56px;
  position: absolute;
  top: -44px;
  left: -15px;
  text-align: center;

}

.clinicCase__title-sub::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 7.5px 0 7.5px;
  border-color: #715050 transparent transparent transparent;
  position: absolute;
  bottom: -7px;
  right: 8px;
  margin: auto;
  transform: rotate(-20deg);
}

.clinicCase__img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
}

.patientInfo__wrapper {
  margin-bottom: 48px;
}

.sideEffect__default {
  font-size: 15px;
  list-style-type: disc;
  line-height: 2;
  padding-left: 1.5em;
}

.sideEffect {
  margin-bottom: 72px;
}

.sideEffect__wrapper {
  margin-bottom: 0;
}

.patientInfo__img-wrapper,
.treatmentDetails__img-wrapper,
.sideEffect__img-wrapper {
  margin-bottom: 32px;
}

.patientInfo__img,
.treatmentDetails__img,
.sideEffect__img {
  width: 100%;
  aspect-ratio: 750 / 422;
  border-radius: 10px;
}

.treatmentDetails__text {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 2;
}

.treatmentDetails__text:last-child {
  margin-bottom: 0;
}

.patientInfo__title,
.treatmentDetails__title {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 24px;
  padding-left: 16px;
  color: #443535;
}

.patientInfo__title::before,
.treatmentDetails__title::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  height: 100%;
  width: 6px;
  border-radius: 3px;
  background: #ff8e7d;
}

.sideEffect__title {
  position: relative;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: #443535;
}

.sideEffect__title::after {
  position: absolute;
  content: "";
  width: 32px;
  height: 4px;
  left: calc(50% - 16px);
  bottom: -16px;
  border-radius: 3px;
  background: #ff8e7d;
}

.patientInfo__table-wrapper {
  padding: 0 11px;
}

.patientInfo__table {
  margin: 0 auto 8px;
  font-size: 16px;
  line-height: 1.5;
}

.patientInfo__table,
.patientInfo__table td,
.patientInfo__table th,
.patientInfo__table th {
  border: #000 solid 1px;
  padding: 16px;
  vertical-align: middle;
}

.patientInfo__table tr td:nth-of-type(1) {
  background-color: #fff3f1;
  width: 40%;
}

.clinicCase__figure-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 11px;
  margin-bottom: 24px;
}

.clinicCase__figcaption {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
}

.clinicCase__figcaption::before,
.clinicCase__figcaption::after {
  content: "";
  height: 3px;
  width: 50px;
  background-color: #ff8e7d;
  border-radius: 2px;
}

.clinicCase__figcaption::before {
  margin-right: 1rem;
}

.clinicCase__figcaption::after {
  margin-left: 1rem;
}

.clinicCase__img {
  border-radius: 10px;
  height: auto;
}

.clinicCase__arrow {
  width: 48px;
  height: 48px;
  margin: 20px 0;
}

.sideEffect {
  border: 6px solid #d6d9e1;
  border-radius: 10px;
  padding: 16px;
}

/* ===== PR ===== */
.pr .clinicCase__title {
  display: flex;
  position: relative;
  background: linear-gradient(90deg, #ff573d 0%, #ff8e7d 50%, #ffb7ac 100%);
  padding-right: 82px;
  align-items: center;
  color: #fff;
}

.pr .clinicCase__title:after {
  position: absolute;
  display: inline-block;
  width: 54px;
  height: 34px;
  line-height: 34px;
  background-color: #ff573d;
  border-radius: 17px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: bold;
  color: #fff;
}

.pr .patientInfo__title::before,
.pr .treatmentDetails__title::before {
  background: #ff573d;
}

.pr {
  background: none;
  box-shadow: none;
}

.dentalClinic {
  padding-bottom: 0px;
  border-bottom: none;
}

.pr.btnContact__wrapper {
  margin: 0 0 16px 0;
  padding-top: 0;
}

.pr .accessArea {
  margin: 0 20px;
}

/* ===== tablet ===== */
@media screen and (min-width:768px) {
  .mainContents__title {
    font-size: 28px;
  }

  .clinicCase__title {
    font-size: 24px;
    padding: 24px;
  }

  .mainContents__title-case {
    font-size: 22px;
  }

  .patientInfo__table {
    font-size: 17px;
    line-height: 2;
  }

  .patientInfo__img-wrapper,
  .treatmentDetails__img-wrapper,
  .sideEffect__img-wrapper {
    margin: 0 auto 32px;
    text-align: center;
    width: 750px;
  }

  .patientInfo__img,
  .treatmentDetails__img,
  .sideEffect__img {
    width: 750px;
    height: 422px;
  }

  .clinicCase__figure-wrapper {
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }

  .clinicCase__img {
    width: 320px;
    height: auto;
  }

  .clinicCase__arrow {
    margin: 12px 20px 0;
  }

  .sideEffect {
    width: 750px;
    margin: 0 auto;
  }

  .sideEffect {
    margin-bottom: 72px;
  }

  .pr.btnContact__wrapper {
    margin: 0 0 40px 0;
  }

  .pr.btn__single {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pr.btn__single .btnWeb__a {
    height: 70px;
  }

  .pr.btnContact__wrapper .btn__single-a {
    min-width: 400px;
    width: 400px;
    margin: 0;
  }

  .pr.btn__single .btnWeb__a,
  .pr.btn__single .btnContact {
    width: auto;
    margin: 0;
  }
}

/* ===== PC ===== */
@media screen and (min-width:1024px) {

  .case__title-wrapper,
  .dentalClinic,
  .mainContent_post-info,
  .tag,
  .anchor,
  .clinicCase {
    width: 1000px;
    margin: 0 auto;
  }

  .dentalClinic {
    margin-bottom: 96px;
  }

  .mainContents__title {
    font-size: 32px;
  }

  .tag {
    margin-bottom: 16px;
  }

  .anchor {
    margin-bottom: 40px;
  }

  .clinicCase {
    padding-bottom: 40px;
    margin-bottom: 80px;
  }

  .clinicCase__wrapper {
    margin-bottom: 48px;
  }

  .clinicCase__title {
    font-size: 30px;
    padding: 24px 28px;
  }

  .clinicCase__title-sub {
    padding-top: 13px;
    font-size: 13px;
    width: 60px;
    height: 60px;
    top: -30px;
    left: -20px;
  }

  .clinicCase__title-sub::before {
    right: 10px;
  }

  .patientInfo__title,
  .treatmentDetails__title {
    font-size: 24px;
    padding-left: 24px;
  }

  .clinicCase__figure-wrapper {
    justify-content: space-between;
  }

  .clinicCase__img {
    width: 432px;
    height: auto;
  }

  .patientInfo__table {
    width: 896px;
  }

  .patientInfo__table tr td:nth-of-type(1) {
    width: 30%;
  }

  .sideEffect {
    margin-bottom: 96px;
  }

  .sideEffect__title {
    font-size: 24px;
  }
}