/* ===================================
   根管治療のポイント
=================================== */

.root-treatment-points,
.root-treatment-points *,
.root-treatment-points *::before,
.root-treatment-points *::after {
  box-sizing: border-box;
}

.root-point {
  margin-top: 45px;
  overflow: hidden;
  border: 1px solid #e4d5ca;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(82, 54, 39, 0.08);
}

.root-point__title {
  display: flex;
  align-items: center;
  margin: 0 !important;
  padding: 15px 20px !important;
  border: 0 !important;
  background: #9c6a50;
  color: #fff !important;
  font-size: 23px !important;
  line-height: 1.5;
  font-weight: bold;
}

.root-point__number {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.root-point__body {
  padding: 28px 30px 32px;
}

.root-point__body > p {
  margin: 0 0 17px;
  line-height: 2;
}

.root-point-column {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 5px solid #b98062;
  background: #f8f3ef;
}

.root-point-column h4 {
  margin: 0 0 15px;
  padding: 0 0 9px;
  border-bottom: 1px dashed #ceb7a9;
  color: #76503c;
  font-size: 19px;
  line-height: 1.5;
  font-weight: bold;
}

.root-point-column p {
  margin: 0 0 13px;
  line-height: 1.9;
}

.root-point-column p:last-child {
  margin-bottom: 0;
}

/* 写真 */
.root-point-images {
  display: grid;
  margin: 25px 0 28px;
  padding: 0;
  gap: 15px;
  list-style: none;
}

.root-point-images--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.root-point-images--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.root-point-images li {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e0d3ca;
  border-radius: 5px;
  background: #f4f4f4;
}

.root-point-images img {
  display: block;
  width: 100%;
  height: auto;
}

/* 移動したラバーダム説明 */
.root-rubberdam-column {
  margin-top: 30px;
}

.root-rubberdam-column .root_column_inner {
  box-sizing: border-box;
}

/* 自費診療の注意書き */
.root-point__caution {
  margin-top: 28px !important;
  padding: 16px 18px;
  border: 2px solid #c90000;
  background: #fff7f7;
  color: #c90000;
  font-weight: bold;
  text-decoration: underline;
}

/* 被せ物ページへのリンク */
.root-point-link {
  margin-top: 28px;
  padding: 22px;
  border-radius: 5px;
  background: #f6eee9;
  text-align: center;
}

.root-point-link p {
  margin: 0 0 15px;
  color: #75513f;
  line-height: 1.8;
  font-weight: bold;
}

.root-point-link a {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 540px;
  padding: 14px 45px 14px 25px;
  border-radius: 4px;
  background: #9c6a50;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.root-point-link a::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "›";
  font-size: 25px;
  line-height: 1;
  transform: translateY(-52%);
}

.root-point-link a:hover {
  opacity: 0.8;
}

@media screen and (max-width: 767px) {
  .root-point {
    margin-top: 30px;
  }

  .root-point__title {
    padding: 12px 14px !important;
    font-size: 19px !important;
  }

  .root-point__number {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    font-size: 18px;
  }

  .root-point__body {
    padding: 20px 15px 23px;
  }

  .root-point__body > p {
    margin-bottom: 14px;
    line-height: 1.9;
  }

  .root-point-column {
    margin-top: 22px;
    padding: 17px 15px;
  }

  .root-point-column h4 {
    font-size: 17px;
  }

  .root-point-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 0 23px;
    gap: 10px;
  }

  .root-point-images--3 li:last-child {
    width: calc(50% - 5px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .root-point__caution {
    margin-top: 22px !important;
    padding: 13px;
  }

  .root-point-link {
    margin-top: 22px;
    padding: 17px 12px;
  }

  .root-point-link a {
    padding: 12px 35px 12px 13px;
    font-size: 14px;
  }

  .root-point-link a::after {
    right: 13px;
  }
}

#root .service-guide .root-rubberdam-column div.root_column_inner img {
  float: left;
  width: 290px;
  height: auto;
}
@media screen and (max-width: 769px) {
  #root .service-guide .root-rubberdam-column div.root_column_inner img {
    width: 60%;
    height: auto;
    float: none;
    display: block;
    margin: 10px auto 10px;
  }
}

.service-guide .flow#flow4 {
  margin-top: 0;
}


.service-link ul {
  display: flex;
  gap: 20px;
  justify-content: center;
}

#root .service-link.service-link-three ul li {
  width: 33%;
}

@media screen and (max-width: 767px) {
  .service-link ul li {
    width: 22%;
    margin: 0;
    display: inline-block;
  }
}


/* ===================================
   神経温存療法（VPT）への誘導
=================================== */
.root-vpt-box {
  box-sizing: border-box;
  margin: 35px 0 0;
  padding: 6px;
  border-radius: 6px;
  background: #f3ebe6;
}

.root-vpt-box *,
.root-vpt-box *::before,
.root-vpt-box *::after {
  box-sizing: border-box;
}

.root-vpt-box__inner {
  padding: 28px 30px 30px;
  border: 1px solid #dfcabb;
  border-radius: 4px;
  background: #fff;
}

#service-guide .root-vpt-box h3 {
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 2px solid #b98062;
  color: #77513e;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
  font-weight: bold;
}

#service-guide .root-vpt-box p {
  margin: 0 0 15px;
  line-height: 2;
}

#service-guide .root-vpt-box p:last-of-type {
  margin-bottom: 0;
}

/* VPTリンク */
.root-vpt-box__link {
  margin-top: 25px;
  text-align: center;
}

.root-vpt-box__link a {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  max-width: 480px;
  padding: 14px 45px 14px 25px;
  border-radius: 4px;
  background: #9b664b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.root-vpt-box__link a::after {
  position: absolute;
  top: 50%;
  right: 20px;
  content: "›";
  font-size: 25px;
  line-height: 1;
  transform: translateY(-52%);
}

.root-vpt-box__link a:hover {
  opacity: 0.8;
}


/* スマートフォン */
@media screen and (max-width: 767px) {
  .root-vpt-box {
    margin-top: 25px;
    padding: 4px;
  }

  .root-vpt-box__inner {
    padding: 20px 15px 22px;
  }

  #service-guide .root-vpt-box h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-size: 17px;
  }

  #service-guide .root-vpt-box p {
    margin-bottom: 12px;
    line-height: 1.9;
  }

  .root-vpt-box__link {
    margin-top: 20px;
  }

  .root-vpt-box__link a {
    padding: 13px 35px 13px 15px;
    font-size: 14px;
  }

  .root-vpt-box__link a::after {
    right: 14px;
  }
}