/* ===================================
   ダイレクトボンディング 3つのポイント
=================================== */

.bonding_point_new {
  box-sizing: border-box;
}

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

.bonding-point-item {
  margin-bottom: 45px;
  padding: 28px 30px 32px;
  border: 1px solid #e7d7cb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(89, 55, 37, 0.08);
}

.bonding-point-item:last-child {
  margin-bottom: 0;
}

.bonding-point-item > p,
.bonding-point-subsection > p {
  margin: 0 0 15px;
  line-height: 2;
}

.bonding-point-item > p:last-of-type,
.bonding-point-subsection > p:last-of-type {
  margin-bottom: 0;
}

/* 審美面の回復A・B */
.bonding-point-subsection {
  margin-top: 25px;
}

.bonding-point-subsection h4 {
  margin: 0 0 18px;
  padding: 11px 15px;
  border-left: 5px solid #b98062;
  background: #f5eee9;
  color: #77513e;
  font-size: 19px;
  line-height: 1.5;
  font-weight: bold;
}

.bonding-point-subsection--b {
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px dashed #d6c2b6;
}

/* 1日で完了の文章 */
.bonding-treatment-day {
  margin-top: 20px !important;
  padding: 13px 15px;
  border-radius: 4px;
  background: #f8f1ec;
  color: #87583f;
  font-weight: bold;
}

/* 写真一覧 */
.bonding-photo-list {
  display: grid;
  margin: 25px 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}

.bonding-photo-list--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bonding-photo-list--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bonding-photo-list--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bonding-point-subsection--b .bonding-photo-list--3:last-of-type {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc((100% - 24px) / 3 * 2 + 12px);
  margin-left: auto;
  margin-right: auto;
}

.bonding-photo-list li {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2d5cc;
  border-radius: 4px;
  background: #f5f5f5;
}

.bonding-photo-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 写真番号 */
.bonding-photo-num {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9b664b;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  .bonding-point-item {
    margin-bottom: 30px;
    padding: 20px 15px 23px;
  }

  .bonding-point-item > p,
  .bonding-point-subsection > p {
    margin-bottom: 12px;
    line-height: 1.9;
  }

  .bonding-point-subsection {
    margin-top: 20px;
  }

  .bonding-point-subsection h4 {
    margin-bottom: 15px;
    padding: 9px 12px;
    font-size: 17px;
  }

  .bonding-point-subsection--b {
    margin-top: 28px;
    padding-top: 25px;
  }

  .bonding-photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
    gap: 10px;
  }

  /* 5枚・3枚の最後の写真を中央配置 */
  .bonding-photo-list--5 li:last-child,
  .bonding-photo-list--3 li:last-child {
    width: calc(50% - 5px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .bonding-point-subsection--b .bonding-photo-list--3:last-of-type {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bonding-point-subsection--b .bonding-photo-list--3:last-of-type li:last-child {
    width: auto;
    grid-column: auto;
    justify-self: stretch;
  }

  .bonding-photo-num {
    top: 5px;
    left: 5px;
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .bonding-treatment-day {
    padding: 11px 12px;
  }
}


/* ===================================
   歯髄温存療法（VPT）
=================================== */

.vpt-content {
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid #e7d7cb;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(89, 55, 37, 0.08);
}

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

.vpt-content > p {
  margin: 0 0 18px;
  line-height: 2;
}

.vpt-image {
  max-width: 800px;
  margin: 30px auto;
  text-align: center;
  display: inline-block;
}

.vpt-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 5px;
}

/* 注意事項 */
.vpt-note {
  margin-top: 25px;
  padding: 18px 20px;
  border-left: 4px solid #b98062;
  background: #f7f2ee;
}
#service-guide .guide-content .vpt-note p {
  margin: 0 0 8px;
  color: #665a54;
  font-size: 13px;
  line-height: 1.8;
}

.vpt-note p:last-child {
  margin-bottom: 0;
}

/* 詳細ページへのリンク */
.vpt-link {
  margin-top: 28px;
  text-align: center;
}

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

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

.vpt-link a:hover {
  opacity: 0.8;
}

@media screen and (max-width: 767px) {
  .vpt-content {
    padding: 20px 15px;
  }

  .vpt-content > p {
    margin-bottom: 15px;
    line-height: 1.9;
  }

  .vpt-image {
    margin: 22px auto;
  }

  .vpt-note {
    margin-top: 20px;
    padding: 14px 15px;
  }

  .vpt-note p {
    font-size: 12px;
    line-height: 1.75;
  }

  .vpt-link {
    margin-top: 22px;
  }

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

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


/* ===================================
   ダイレクトボンディング 動画
=================================== */
.bonding-movie {
  width: 100%;
  max-width: 720px;
  margin: 30px auto 0;
  text-align: center;
}

.bonding-movie video {
  display: block;
  width: 100%;
  height: 405px;
  margin: 0 auto;
  border-radius: 6px;
  background: #000;
}

@media screen and (max-width: 767px) {
  .bonding-movie {
    margin-top: 22px;
  }

  .bonding-movie video {
    border-radius: 4px;
    min-height: 205px;
    height: auto;
  }
}