/* H4アイコン付き見出し */
.nd-h4-icon {
  display: flex !important;
  gap: 5px;
  flex-direction: column;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--c-primary);
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  color: var(--c-text) !important;
  line-height: 1.4 !important;
}
@media (max-width: 767px) {
  .nd-h4-icon {
    font-size: 18px !important;
  }
}
.nd-h4-icon::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 25px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='25' viewBox='0 0 24.274 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%234fa23f' transform='translate(0.6393%2C0)' d='M8.40472 0L8.97172 3.577C9.17641 4.8694 9.12452 6.18947 8.81904 7.46183C8.51355 8.73418 7.96044 9.93391 7.19129 10.9925C6.42214 12.0511 5.45201 12.9478 4.3363 13.6315C3.22058 14.3151 1.98114 14.7724 0.688724 14.977L0.122724 11.4C-0.290672 8.79001 0.349637 6.12271 1.9028 3.98481C3.45596 1.84691 5.79476 0.413542 8.40472 0Z'/%3E%3Cpath fill='%2395d357' transform='translate(0%2C12.185)' d='M20.915 1.07529L24.274 2.36429C23.5122 4.34909 22.3669 6.16439 20.9036 7.70655C19.4402 9.2487 17.6874 10.4875 15.7452 11.3522C13.803 12.2169 11.7096 12.6906 9.58434 12.7462C7.45909 12.8018 5.34372 12.4383 3.359 11.6763L0 10.3863C1.53891 6.37817 4.60694 3.1455 8.52922 1.39936C12.4515 -0.346771 16.9068 -0.463341 20.915 1.07529Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}



/* H3セパレーター */
.nd-h3-sep {
  position: relative;
  padding-bottom: 11px;
}
@media (max-width: 767px) {
  .nd-h3-sep {
    font-size: 18px !important;
  }
}


h3.wp-block-heading+.nd-h3-sep-line+.has-text-color{
  font-size: 1.4rem !important;
}
@media (max-width: 767px) {
  h3.wp-block-heading+.nd-h3-sep-line+.has-text-color{
    font-size: 1.1rem !important;
  }
}


.nd-h3-sep::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: #dedede;
}
.nd-h3-sep::before {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  width: 32%;
  height: 3px;
  background: var(--c-primary);
  z-index: 1;
  border-radius: 1000px;
}
.nd-h3-sep.has-text-align-center::before {
  margin: 0 auto;
}

.nd-h3-sep.has-text-align-center+.has-text-color {
  text-align: center;
}

.wp-block-image img{
  aspect-ratio: 1.3;
  object-fit: cover;
}

/* ボタン（青・丸角・矢印）*/
.nd-btn .wp-block-button__link,
.wp-block-button:not([class*="nd-"]) .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--c-btn) !important;
  border-radius: 30px !important;
  padding: 0 20px 0 30px !important;
  height: 60px;
  min-width: 291px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c-white) !important;
  /* white-space: nowrap; */
  text-decoration: none;
  text-align: left;
  transition: all 0.3s ease;
}

@media (hover){
  .nd-btn .wp-block-button__link:hover,
  .wp-block-button:not([class*="nd-"]) .wp-block-button__link:hover {
    background: var(--c-secondary) !important;
  }
}

@media (max-width: 767px) {
  .nd-btn .wp-block-button__link,
  .wp-block-button:not([class*="nd-"]) .wp-block-button__link {
    width: 100% !important;
    justify-content: space-between !important;
  }
}
@media (max-width: 767px) {
  .nd-btn .wp-block-button__link,
  .wp-block-button:not([class*="nd-"]) .wp-block-button__link {
    height: 50px !important;
    min-width: 230px !important;
    font-size: 13px !important;
    padding: 0 16px 0 20px !important;
  }
}
.nd-btn .wp-block-button__link::after,
.wp-block-button:not([class*="nd-"]) .wp-block-button__link::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--c-white) url("data:image/svg+xml,%3Csvg width='6' height='8' viewBox='0 0 4 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 0.5L3.5 4L0.5 7.5' stroke='%23008dca' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/6px no-repeat;
  border-radius: 50%;
  display: inline-block;
}
.nd-btn-wide .wp-block-button__link {
  min-width: 694px;
}
@media (max-width: 767px) {
  .nd-btn-wide {
    max-width: 100% !important;
  }
}
@media (max-width: 767px) {
  .nd-btn-wide .wp-block-button__link {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    height: auto !important;
    min-height: 50px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
}
.nd-btn-full .wp-block-button__link {
  width: 100% !important;
  justify-content: center;
}

/* ボタン（大）*/
.nd-btn-large .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--c-btn) !important;
  border-radius: 30px !important;
  padding: 0 64px !important;
  height: 64px;
  min-width: 330px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c-white) !important;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
}
@media (max-width: 767px) {
  .nd-btn-large .wp-block-button__link {
    width: 100% !important;
  }
}
@media (max-width: 767px) {
  .nd-btn-large .wp-block-button__link {
    height: 50px !important;
    font-size: 13px !important;
    min-width: 230px !important;
    padding: 0 40px !important;
  }
}

/* バナーボタン（大・内部）*/
.nd-banner-lg .wp-block-button__link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px !important;
  padding: 0 60px 0 30px !important;
  height: 100px;
  max-width: 540px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  line-height: 1.6;
  text-decoration: none;
  gap: 16px;
  text-align: left;
}

:is(.nd-banner-lg,.nd-banner-lg-ext,.nd-banner-sm,.nd-banner-sm-ext) .wp-block-button__link {
    background: #fffbe8 !important;
    border: solid 1px #fffbe8 !important;
    transition: all 0.3s ease;
    position: relative;
  }

@media (hover){
  :is(.nd-banner-lg,.nd-banner-lg-ext,.nd-banner-sm,.nd-banner-sm-ext) .wp-block-button__link:hover {
    background: var(--c-white) !important;
    border-color: var(--c-primary) !important;
  }
}

@media (max-width: 767px) {
  .nd-banner-lg .wp-block-button__link, .nd-banner-lg-ext .wp-block-button__link, .nd-banner-sm .wp-block-button__link, .nd-banner-sm-ext .wp-block-button__link {
    min-width: 0 !important;
    max-width: 100% !important;
    height: 80px !important;
    font-size: 13px !important;
    white-space: normal !important;
  }
}
@media (max-width: 767px) {
  .nd-banner-lg, .nd-banner-lg-ext, .nd-banner-sm, .nd-banner-sm-ext {
    max-width: 100% !important;
    font-size: 13px !important;
  }
}
@media (max-width: 767px) {
  .wp-block-group.is-layout-flex:has(.nd-banner-lg, .nd-banner-lg-ext, .nd-banner-sm, .nd-banner-sm-ext) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}
@media (max-width: 767px) {
  .wp-block-group.is-layout-flex:has(.wp-block-nishioka-dental-nd-card) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}
@media (max-width: 767px) {
  .wp-block-group.is-layout-flex:has(.wp-block-nishioka-dental-nd-photo-card) {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}
.nd-banner-lg .wp-block-button__link::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg width='8' height='10' viewBox='0 0 4 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 0.5L3.5 4L0.5 7.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/8px no-repeat;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* バナーボタン（大・外部）*/
.nd-banner-lg-ext .wp-block-button__link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #fffbe8 !important;
  border-radius: 10px !important;
  padding: 0 60px 0 30px !important;
  height: 100px;
  max-width: 540px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  line-height: 1.6;
  text-decoration: none;
  gap: 16px;
  text-align: left;
}

@media (max-width: 767px) {
  .nd-banner-lg-ext .wp-block-button__link {
    font-size: 13px !important;
  }
}


.nd-banner-lg-ext .wp-block-button__link::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--c-secondary) url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 2H2a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1V6.5' stroke='white' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6.5 1.5H9.5V4.5M9.5 1.5L5.5 5.5' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* バナーボタン（小・内部）*/
.nd-banner-sm .wp-block-button__link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #fffbe8 !important;
  border-radius: 10px !important;
  padding: 0 60px 0 30px !important;
  height: 100px;
  max-width: 353px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  line-height: 1.6;
  text-decoration: none;
  gap: 16px;
  text-align: left;
}

@media (max-width: 767px) {
  .nd-banner-sm .wp-block-button__link {
    font-size: 13px !important;
  }
}


.nd-banner-sm .wp-block-button__link::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg width='8' height='10' viewBox='0 0 4 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 0.5L3.5 4L0.5 7.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/8px no-repeat;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* バナーボタン（小・外部）*/
.nd-banner-sm-ext .wp-block-button__link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #fffbe8 !important;
  border-radius: 10px !important;
  padding: 0 60px 0 30px !important;
  height: 100px;
  max-width: 353px;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  line-height: 1.6;
  text-decoration: none;
  gap: 16px;
  text-align: left;
}
@media (max-width: 767px) {
  .nd-banner-sm-ext .wp-block-button__link {
    font-size: 13px !important;
  }
}


.nd-banner-sm-ext .wp-block-button__link::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--c-secondary) url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 2H2a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1V6.5' stroke='white' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6.5 1.5H9.5V4.5M9.5 1.5L5.5 5.5' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  border-radius: 50%;
  display: inline-block;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* テキストリンク（内部）*/
.nd-text-link a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--c-primary) !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

@media (max-width: 767px) {
  .nd-text-link a {
    font-size: 13px !important;
  }
}


.nd-text-link a::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--c-primary) url("data:image/svg+xml,%3Csvg width='8' height='10' viewBox='0 0 4 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.5 0.5L3.5 4L0.5 7.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/8px no-repeat;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

/* テキストリンク（外部）*/
.nd-text-link-ext a {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: var(--c-primary) !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.3s ease;
}
.nd-text-link-ext a::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  background: url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 11 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 2H2a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1V6.5' stroke='%23939393' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6.5 1.5H9.5V4.5M9.5 1.5L5.5 5.5' stroke='%23939393' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
  display: inline-block;
}

@media (max-width: 767px) {
  .nd-text-link-ext a {
    font-size: 13px !important;
  }
}


/* テキストリンク（矢印丸・カラム内）*/
.nd-link-arrow a {
  color: var(--c-primary) !important;
  font-size: inherit;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.has-text-color a {
  transition: color 0.3s ease;
}
.nd-link-arrow a::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='11' fill='%234fa23f'/%3E%3Cpath d='M9 7L13 11L9 15' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
  display: inline-block;
  transition: background 0.3s ease;
}

@media (hover) {
  .nd-text-link a:hover,
  .nd-text-link-ext a:hover,
  .nd-link-arrow a:hover,
  .has-text-color a:hover {
    color: var(--c-icon2) !important;
  }

  .nd-link-arrow a:hover::after {
    background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='11' fill='%23F6921E'/%3E%3Cpath d='M9 7L13 11L9 15' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;
  }

  .nd-text-link a:hover::after {
    background-color: var(--c-icon2);
  }
}
/* リスト（葉アイコン）*/
.nd-list-leaf {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.nd-list-leaf li {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--c-text);
  padding: 0 !important;
  margin: 0 !important;
}
.nd-list-leaf li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='18' viewBox='0 0 22 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%234fa23f' d='M7.805 0C7.805 0 0 0 0 7.805C0 7.805 0 15.61 7.805 15.61C7.805 15.61 15.61 15.61 15.61 7.805C15.61 7.805 15.61 0 7.805 0Z'/%3E%3Cpath fill='%2395d357' d='M19.414 0.997C19.414 0.997 11.609 5.327 11.609 13.132C11.609 13.132 14.174 17.462 21.979 13.132C21.979 13.132 21.979 5.327 19.414 0.997Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

/* リスト（番号付き）*/
.nd-list-num {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: nd-num;
}
.nd-list-num li {
  display: flex !important;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
  color: var(--c-text);
  padding: 0 !important;
  margin: 0 !important;
}
.nd-list-num li::before {
  content: counter(nd-num, decimal-leading-zero);
  counter-increment: nd-num;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  min-width: 24px;
  flex-shrink: 0;
}

/* リスト（丸数字）*/
.nd-list-circle {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: nd-circle;
}
.nd-list-circle li {
  display: flex !important;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--c-text);
  padding: 0 !important;
  margin: 0 !important;
}
.nd-list-circle li::before {
  content: counter(nd-circle);
  counter-increment: nd-circle;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--c-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
}


/* インタビューQ&A */
.nd-qa {
  position: relative !important;
  background: var(--c-beige) !important;
  border-radius: 20px !important;
  margin-bottom: 30px !important;
  padding: 36px 40px 36px 56px !important;
}
.nd-qa:has(.nd-qa-image) {
  margin-top: 10px;
}
@media (max-width: 767px) {
  .nd-qa {
    padding: 28px 20px 28px 40px !important;
  }
}
.nd-qa::before {
  content: "Q";
  position: absolute;
  top: -16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: var(--c-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-white);
}
.nd-qa-title {
  margin-bottom: 16px !important;
  margin-top: 0px !important;
  background: repeating-radial-gradient(circle, rgb(149, 211, 87) 0px, rgb(149, 211, 87) 1px, transparent 1px, transparent 6px) left bottom / 6px 2px repeat-x !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
  color: var(--c-primary) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}
@media (max-width: 767px) {
  .nd-qa-title {
    font-size: 16px !important;
  }
}

@media not (max-width: 767px) {
  .nd-qa .wp-block-columns .wp-block-column figure{
    margin-top: -70px;
    height: calc(100% + 70px);
  }
  .nd-qa .wp-block-columns .wp-block-column figure img{
    height: 100%;
    aspect-ratio: 1;
  }
}


/* ステップフロー */
.nd-step-flow {
  counter-reset: nd-step;
  margin-bottom: 40px;
}
.nd-step {
  position: relative;
  padding-left: 120px !important;
  padding-bottom: 40px !important;
  padding-top: 0 !important;
  overflow: hidden;
  counter-increment: nd-step;
  margin-bottom: 0 !important;
}
@media (max-width: 767px) {
  .nd-step {
    padding-left: 75px !important;
  }
}
.nd-step:last-child {
  padding-bottom: 0 !important;
}
.nd-step::before {
  content: "STEP";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin-block: auto;
  width: 80px;
  height: 80px;
  background: var(--c-primary);
  border-radius: 50%;
  color: var(--c-white);
  font-weight: 700;
  line-height: 1;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 20px;
}
@media (max-width: 767px) {
  .nd-step::before {
    width: 60px;
    height: 60px;
    font-size: 11px;
    padding-bottom: 15px;
    bottom: auto;
  }
}

.nd-step::after {
  content: counter(nd-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin-block: auto;
  width: 80px;
  height: 80px;
  color: var(--c-white);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-top: 26px;
}
@media (max-width: 767px) {
  .nd-step::after {
    width: 60px;
    height: 60px;
    font-size: 16px;
    padding-top: 16px;
    bottom: auto;
  }
}

.nd-step {
  background-image: linear-gradient(var(--c-primary), var(--c-primary));
  background-repeat: no-repeat;
  background-size: 2px 100%;
  background-position: 39px 0px;
  container-type: inline-size;
}
.nd-step:last-child {
  background-size: 2px 50%;
  background-position: 39px top;
}
.nd-step:first-child {
  background-size: 2px 50%;
  background-position: 39px bottom;
}

@media (max-width: 767px) {
  .nd-step {
    background-position: 29px 0px;
  }
  .nd-step:last-child {
    background: none;
  }
  .nd-step:first-child {
    background-size: 2px 100%;
    background-position: 29px 0px;
  }

}


.nd-step-title {
  color: var(--c-primary) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
  background: repeating-radial-gradient(
    circle,
    #95d357 0 1px,
    transparent 1px 6px
  );
  background-size: 6px 2px;
  background-repeat: repeat-x;
  background-position: left bottom;
  margin-top: 4px !important;
}
@media (max-width: 767px) {
  .nd-step-title {
    font-size: 18px !important;
  }
}

/* ポイントボックス */
.nd-point-box {
  position: relative;
  margin-top: 70px;
  background: #f9fdf4;
  border-radius: 40px;
  padding: 60px 40px !important;
}
@media (max-width: 767px) {
  .nd-point-box {
    border-radius: 20px;
    margin-top: 50px;
    padding: 32px 20px 28px !important;
  }
}

@media not (max-width: 767px) {
  .nd-point-box .wp-block-columns{
    gap: 50px;
  }
  .nd-point-box .wp-block-column:has(>.wp-block-image>img){
    margin-top: -90px;
    border-radius: 20px !important;
  }
}





.nd-point-title {
  position: absolute;
  top: -33px;
  left: 20px;
  background: var(--c-secondary);
  color: var(--c-white) !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 1000px;
  white-space: nowrap;
  line-height: 1.4 !important;
  margin: 0 !important;
}
@media (max-width: 767px) {
  .nd-point-title {
    font-size: 18px !important;
    padding: 8px 16px !important;
    white-space: normal !important;
  }
}

/* カラムボックス（シンプル）*/
.nd-column-box {
  border: 1px solid var(--c-icon);
  border-radius: 15px;
  padding: 30px 40px !important;
}
@media (max-width: 767px) {
  .nd-column-box {
    padding: 24px 20px !important;
  }
}

/* カラムボックス（見出し付き）*/
.nd-column-box-h {
  position: relative;
  margin-top: 66px;
  border: 1px solid var(--c-icon);
  border-radius: 15px;
  padding: 50px 40px 30px !important;
  overflow: visible;
}
@media (max-width: 767px) {
  .nd-column-box-h {
    padding: 40px 20px 24px !important;
  }
}
.nd-column-h-title {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-primary);
  color: var(--c-white) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 12px 30px !important;
  white-space: nowrap;
  line-height: 1.4 !important;
  margin: 0 !important;
  border-radius: 1000px;
}
@media (max-width: 767px) {
  .nd-column-h-title {
    font-size: 15px !important;
    padding: 10px 20px !important;
    white-space: normal;
    text-align: center;
    width: max-content;
    max-width: 90%;
  }
}

/* カードグリッド（画像上）*/
.nd-card-top {
  background: #fffbe8;
  border-radius: 30px;
  padding: 20px;
  overflow: hidden;
}
.nd-card-top .wp-block-image {
  margin: 0;
}
.nd-card-top .wp-block-image img {
  width: 100%;
  border-radius: 20px;
  display: block;
}
.nd-card-top-body {
  padding: 28px 32px 36px !important;
}
.nd-card-qa-title {
  text-align: center !important;
  color: var(--c-primary) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  background: repeating-radial-gradient(
    circle,
    #95d357 0 1px,
    transparent 1px 6px
  ) !important;
  background-size: 6px 2px !important;
  background-repeat: repeat-x !important;
  background-position: left bottom !important;
  padding-bottom: 8px !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* カードグリッド（QAスタイル）*/
.nd-card-qa {
  background: #fffbe8;
  border-radius: 20px;
  padding: 32px 36px !important;
  align-self: stretch;
}

/* カード（画像左）*/
.nd-card-img-left.wp-block-columns {
  display: flex;
  background: #fffbe8;
  border-radius: 30px;
  padding: 20px;
  overflow: hidden;
  align-items: stretch;
  gap: 0 !important;
}
@media (max-width: 767px) {
  .nd-img-side {
    flex-direction: column !important;
  }
}
@media (max-width: 767px) {
  .nd-img-side__img {
    flex: none !important;
    width: 100% !important;
  }
}
@media (max-width: 767px) {
  .nd-img-l.wp-block-columns {
    flex-direction: column-reverse !important;
  }
}
@media (max-width: 767px) {
  .nd-card-img-left.wp-block-columns {
    flex-direction: column !important;
    border-radius: 16px !important;
  }
}
.nd-card-img-left .wp-block-column:first-child {
  flex: 0 0 500px !important;
  max-width: 500px !important;
}
@media (max-width: 767px) {
  .nd-card-img-left .wp-block-column:first-child {
    flex: none !important;
    max-width: 100% !important;
  }
}
.nd-card-img-left .wp-block-column:first-child .wp-block-image {
  height: 100%;
  margin: 0;
}
.nd-card-img-left .wp-block-column:first-child .wp-block-image img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
}
.nd-card-img-left .wp-block-column:last-child {
  padding: 40px 48px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
@media (max-width: 767px) {
  .nd-card-img-left .wp-block-column:last-child, .nd-card-img-right .wp-block-column:first-child {
    padding: 24px 20px !important;
  }
}

/* カード（画像右）*/
.nd-card-img-right.wp-block-columns {
  display: flex;
  background: #fffbe8;
  border-radius: 30px;
  padding: 20px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .nd-card-img-right.wp-block-columns {
    flex-direction: column-reverse !important;
    border-radius: 16px !important;
  }
}
.nd-card-img-right .wp-block-column:last-child {
  flex: 0 0 500px !important;
  max-width: 500px !important;
}
@media (max-width: 767px) {
  .nd-card-img-right .wp-block-column:last-child {
    flex: none !important;
    max-width: 100% !important;
  }
}
.nd-card-img-right .wp-block-column:last-child .wp-block-image {
  height: 100%;
  margin: 0;
}
.nd-card-img-right .wp-block-column:last-child .wp-block-image img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
}
.nd-card-img-right .wp-block-column:first-child {
  padding: 40px 48px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* 予約・お問い合わせセクション */
.nd-pattern-contact-section .wp-block-columns {
  align-items: stretch !important;
  gap: 20px !important;
}
@media (max-width: 767px) {
  .nd-pattern-contact-section .wp-block-columns {
    flex-direction: column !important;
    gap: 16px !important;
  }
}
@media (max-width: 767px) {
  .nd-pattern-contact-section .wp-block-column {
    flex-basis: 100% !important;
  }
}
.nd-contact-card {
  background: #FEFCF5 !important;
  border: 5px solid #95D357 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 20px !important;
  padding: 50px 60px 50px !important;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  gap: 0;
}
@media (max-width: 767px) {
  .nd-contact-card {
    border-width: 3px !important;
    padding: 20px !important;
    border-radius: 18px !important;
  }
}
.nd-contact-card--booking {
  align-items: center;
  text-align: center;
  justify-content: center;
  /* min-height: 330px; */
}
@media (max-width: 767px) {
  .nd-contact-card--booking {
    min-height: 183.59px;
    gap: 0;
  }
}
.nd-contact-heading {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--c-primary) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin: 0 0 11px !important;
  padding: 0 32px !important;
  background: none !important;
  border: none !important;
  letter-spacing: normal !important;
}
@media (max-width: 767px) {
  .nd-contact-heading {
    font-size: 15px !important;
    margin-bottom: 8px !important;
    padding: 0 22px;
  }
}
.nd-contact-heading::before,
.nd-contact-heading::after {
  content: "" !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  position: absolute !important;
  top: 50% !important;
  width: 17px !important;
  height: 26px !important;
  background-image: none !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
  border-left: 2px solid var(--c-primary) !important;
  transform-origin: center !important;
}
.nd-contact-heading::before {
  left: 0;
  transform: translateY(-50%) rotate(-33deg);
}
.nd-contact-heading::after {
  right: 0;
  transform: translateY(-50%) rotate(33deg);
}
@media (max-width: 767px) {
  .nd-contact-heading::before,
  .nd-contact-heading::after {
    width: 12px;
    height: 18px;
    border-left-width: 1.5px;
  }
}
.nd-contact-illust {
  margin: 0 auto -14px !important;
  text-align: center;
  align-self: center;
}
.nd-contact-illust img {
  width: 75px;
  height: 54px;
  display: block;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .nd-contact-illust {
    margin-bottom: -12px !important;
  }
  .nd-contact-illust img {
    width: 57px;
    height: 41px;
  }
}
.nd-btn-booking .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--c-btn2) !important;
  border-radius: 15px !important;
  width: 360px;
  height: 80px;
  padding: 0 16px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--c-white) !important;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  border: none !important;
  transition: background-color 0.3s ease;
}
@media (hover) {
  .nd-btn-booking .wp-block-button__link:hover {
    background: var(--c-icon2) !important;
  }
}
@media (max-width: 767px) {
  .nd-btn-booking .wp-block-button__link {
    width: 280px;
    height: 70px;
    border-radius: 12px !important;
    font-size: 14px !important;
  }
}
.nd-btn-booking .wp-block-button__link::before {
  content: "";
  width: 22px;
  height: 22px;
  background: url("../img/common/icon-reserve.svg") center/contain no-repeat;
  flex-shrink: 0;
}
.nd-contact-card--phone {
  /* min-height: 330px; */
  justify-content: flex-start;
  gap: 14px;
  /* padding-top: 60px !important; */
}
.nd-contact-card--phone > .wp-block-group__inner-container > .wp-block-buttons,
.nd-contact-card--phone > .wp-block-buttons {
  margin: 0 !important;
}
.nd-contact-card--phone > .wp-block-group__inner-container > .wp-block-buttons:nth-of-type(1),
.nd-contact-card--phone > .wp-block-buttons:nth-of-type(1) {
  margin-bottom: 10px !important;
}
.nd-contact-card--phone > .wp-block-group__inner-container > .nd-phone-num-item:nth-of-type(1),
.nd-contact-card--phone > .nd-phone-num-item:nth-of-type(1) {
  margin-bottom: 28px !important;
}
.nd-contact-card--phone > .wp-block-group__inner-container > .wp-block-buttons:nth-of-type(2),
.nd-contact-card--phone > .wp-block-buttons:nth-of-type(2) {
  margin-bottom: 10px !important;
}
@media (max-width: 767px) {
  .nd-contact-card--phone {
    min-height: 238px;
    padding-top: 20px !important;
  }
  .nd-contact-card--phone > .wp-block-group__inner-container > .wp-block-buttons:nth-of-type(1),
  .nd-contact-card--phone > .wp-block-buttons:nth-of-type(1) {
    margin-bottom: 10px !important;
  }
  .nd-contact-card--phone > .wp-block-group__inner-container > .nd-phone-num-item:nth-of-type(1),
  .nd-contact-card--phone > .nd-phone-num-item:nth-of-type(1) {
    margin-bottom: 12px !important;
  }
  .nd-contact-card--phone > .wp-block-group__inner-container > .wp-block-buttons:nth-of-type(2),
  .nd-contact-card--phone > .wp-block-buttons:nth-of-type(2) {
    margin-bottom: 10px !important;
  }
}
.nd-btn-phone-filled,
.nd-btn-phone-outline {
  width: 100%;
}
.nd-btn-phone-filled .wp-block-button__link,
.nd-btn-phone-outline .wp-block-button__link {
  /* width: 420px; */
  /* max-width: 420px; */
  /* min-width: 420px; */
  margin: 0 auto;
}
@media (max-width: 767px) {
  .nd-btn-phone-filled .wp-block-button__link,
  .nd-btn-phone-outline .wp-block-button__link {
    width: 283px;
    max-width: 283px;
    min-width: 283px;
  }
}
.nd-btn-phone-filled .wp-block-button__link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--c-primary) !important;
  border-radius: 18px !important;
  padding: 0 20px !important;
  height: 35px;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--c-white) !important;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}
@media (max-width: 767px) {
  .nd-btn-phone-filled .wp-block-button__link {
    height: 30px;
    border-radius: 15px !important;
    font-size: 12px !important;
  }
}
.nd-btn-phone-outline .wp-block-button__link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent !important;
  border: 1px solid var(--c-primary) !important;
  border-radius: 18px !important;
  padding: 0 20px !important;
  height: 35px;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--c-primary) !important;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
}
@media (max-width: 767px) {
  .nd-btn-phone-outline .wp-block-button__link {
    height: 30px;
    border-radius: 15px !important;
    font-size: 12px !important;
  }
}
.nd-phone-num-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 !important;
  text-align: left;
}
@media (max-width: 767px) {
  .nd-phone-num-item {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
}
.nd-phone-num-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: inherit !important;
}
.nd-phone-num-item a::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: url("../img/common/icon-tel.svg") center/contain no-repeat;
}
@media (max-width: 767px) {
  .nd-phone-num-item a::before {
    width: 21px;
    height: 21px;
  }
}
.nd-phone-num {
  font-size: 35px !important;
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .nd-phone-num {
    font-size: 24px !important;
    letter-spacing: 0 !important;
  }
}
.nd-phone-meta {
  display: inline-block;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.43;
  margin-left: 2px;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .nd-phone-meta {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
  }
}

/* responsive: per-element media query (split from grouped block)  */
/* 全幅問題対応（#61） */
.nd-pattern-h3-text-image-bottom .wp-block-image,
.nd-pattern-h3-text-image-bottom figure.wp-block-image {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.nd-pattern-h3-text-image-bottom .wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  object-fit: cover;
  border-radius: 40px !important;
}
@media (max-width: 767px) {
  .nd-pattern-h3-text-image-bottom .wp-block-image img {
    border-radius: 20px !important;
  }
}


/* 見出し・段落間隔（#80）
   H3TITLE（各パターン最初の p = 緑の小ラベル）下 30px
   本文 p 下 50px */
.nd-pattern-h3-text-image-bottom p,
.nd-pattern-h3-text-image-right p,
.nd-pattern-h3-text-image-left p,
.nd-pattern-h3-text p,
.nd-pattern-h3-h4-text p {
  margin-bottom: 50px !important;
}

.nd-pattern-h3-text-image-right p a,
.nd-pattern-h3-text-image-left p a,
.nd-pattern-h3-text p a,
.nd-pattern-h3-h4-text p a,
.nd-pattern-text-link-inline p a {
  font-size: inherit !important;
}

@media (max-width: 767px) {
  .nd-pattern-h3-text-image-bottom p,
  .nd-pattern-h3-text-image-right p,
  .nd-pattern-h3-text-image-left p,
  .nd-pattern-h3-text p,
  .nd-pattern-h3-h4-text p,
  .nd-pattern-text-link-inline p {
    font-size: 13px !important;
  }
  .nd-pattern p{
    font-size: 13px !important;

  }
}


@media not (max-width: 767px) {

  .nd-pattern-h3-text-image-left .wp-block-columns .wp-block-column:has(.wp-block-image){
    margin-left: -150px;
  }
  .nd-pattern-h3-text-image-left .wp-block-columns .wp-block-column:has(.wp-block-image) img{
    border-radius: 0 20px 20px  0 !important;
  }

  .nd-pattern-h3-text-image-left .wp-block-columns .wp-block-column:not(:has(.wp-block-image))>*{
    margin-left: -150px;
  }

  .nd-pattern-h3-text-image-right .wp-block-columns .wp-block-column:has(.wp-block-image){
    margin-right: -100px;
  }

  .nd-pattern-h3-text-image-right .wp-block-columns .wp-block-column:not(:has(.wp-block-image))>*{
    margin-right: -150px;
  }

  .nd-pattern-h3-text-image-right .wp-block-columns .wp-block-column:has(.wp-block-image) img{
    border-radius: 20px 0 0 20px !important;
  }

}



.nd-pattern-h3-text-image-bottom p:first-of-type,
.nd-pattern-h3-text-image-right p:first-of-type,
.nd-pattern-h3-text-image-left p:first-of-type,
.nd-pattern-h3-text p:first-of-type,
.nd-pattern-h3-h4-text p:first-of-type {
  margin-bottom: 30px !important;
}

/* 左右パターンの columns を両端寄せで固定（#79） */
.nd-pattern-h3-text-image-right .wp-block-columns,
.nd-pattern-h3-text-image-left .wp-block-columns {
  justify-content: space-between !important;
  align-items: center !important;
}

/* p の後ろに続く h5 の上余白（#81） */
.nd-pattern-h4-h5-text p + h5.wp-block-heading {
  margin-top: 70px !important;
}

/* ---- 追加CSS（gen_css_patch.py） ---- */
/* 画像カラム（2・3カラム）*/
.nd-img-2col.wp-block-columns {
  gap: 20px !important;
}
.nd-img-3col.wp-block-columns {
  gap: 20px !important;
}
@media (max-width: 767px) {
  .nd-2col {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 767px) {
  .nd-3col {
    grid-template-columns: 1fr 1fr !important;
  }
}
.nd-img-2col .wp-block-column .wp-block-image img {
  height: 370px;
  object-fit: cover;
  width: 100%;
  display: block;
  border-radius: 20px;
}
@media (max-width: 767px) {
  .nd-img-2col .wp-block-column .wp-block-image img {
    height: 250px;
  }
}
.nd-img-3col .wp-block-column .wp-block-image img {
  height: 260px;
  object-fit: cover;
  width: 100%;
  display: block;
  border-radius: 20px;
}
@media (max-width: 767px) {
  .nd-img-3col .wp-block-column .wp-block-image img {
    height: 200px;
  }
}

/* カードトップタイトル */
.nd-card-top-title {
  text-align: center !important;
  color: var(--c-primary) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  background: repeating-radial-gradient(
    circle,
    #95d357 0 1px,
    transparent 1px 6px
  ) !important;
  background-size: 6px 2px !important;
  background-repeat: repeat-x !important;
  background-position: left bottom !important;
  padding-bottom: 8px !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ステップフロー（画像付き）*/
.nd-step-content.wp-block-columns {
  gap: 24px !important;
  align-items: flex-start !important;
  flex-direction: row-reverse;
}
@media (max-width: 767px) {
  .nd-step-content.wp-block-columns {
    flex-direction: column !important;
  }
}
@media (max-width: 767px) {
  .nd-step-content {
    flex-direction: column !important;
  }
}
.nd-step-img.wp-block-column {
  flex: 0 0 200px !important;
  max-width: 200px !important;
}
@media (max-width: 767px) {
  .nd-step-img.wp-block-column {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 200px !important;
  }
}
@media (max-width: 767px) {
  .nd-step-img {
    width: 100% !important;
    height: 200px !important;
  }
}
.nd-step-img .wp-block-image {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  margin: 0;
}
.nd-step-img .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 治療内容カード */
.nd-treatment-card {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}
.nd-treatment-card:last-child {
  margin-bottom: 0;
}
.nd-treatment-head.wp-block-group {
  background: var(--c-primary) !important;
  padding: 13px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 0 !important;
}
.nd-treatment-head .wp-block-heading {
  color: var(--c-white) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.nd-treatment-head .wp-block-heading::before{
  content: none !important;
}
.nd-treatment-body.wp-block-group {
  background: #F7F7F7 !important;
  padding: 24px 28px !important;
  display: flex !important;
  gap: 24px !important;
  align-items: flex-start !important;
  overflow: hidden;
}
@media (max-width: 767px) {
  .nd-treatment-body.wp-block-group {
    flex-direction: column !important;
  }
}
@media (max-width: 767px) {
  .nd-treatment-body {
    flex-direction: column !important;
  }
}
/* inner-container がある場合（is-layout-flow）もflexで横並び化 */
.nd-treatment-body > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 24px !important;
  align-items: flex-start !important;
  width: 100%;
  /* overflow: hidden; */
}
@media (max-width: 767px) {
  .nd-treatment-body > .wp-block-group__inner-container {
    flex-direction: column !important;
  }
}
.nd-treatment-img.wp-block-group {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0 !important;
}
@media (max-width: 767px) {
  .nd-treatment-img.wp-block-group {
    width: 100% !important;
    height: 200px !important;
  }
}
@media (max-width: 767px) {
  .nd-treatment-img {
    width: 100% !important;
    height: 200px !important;
  }
}
.nd-treatment-img .wp-block-image,
.nd-treatment-img .wp-block-image img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  margin: 0;
}
.nd-treatment-cols.wp-block-group .wp-block-columns {
  gap: 2em;
}

.nd-treatment-cols.wp-block-group .wp-block-columns>.wp-block-column {
  position: relative;
}

.nd-treatment-cols.wp-block-group .wp-block-columns>.wp-block-column:first-child::after {
  content: "";
  position: absolute;
  right: -10px;
  top: -100px;
  bottom: -100px;
  border-left: solid 1px #E2E2E2;
}

@media (max-width: 767px) {
  .nd-treatment-cols.wp-block-group .wp-block-columns>.wp-block-column:first-child::after {
    right: -100px;
    bottom: -15px;
    top: auto;
    left: -100px;
    border-left: none;
    border-top: solid 1px #E2E2E2;
  }

}

@media (max-width: 767px) {
  .nd-treatment-cols {
    flex-direction: column !important;
  }
}
@media (max-width: 767px) {
  .nd-treatment-cols.wp-block-group {
    flex-direction: column !important;
  }
}
.nd-treatment-label {
  display: block !important;
  background: var(--c-secondary) !important;
  min-width: 180px;
  width: fit-content;
  text-align: center;
  color: var(--c-white) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: 6px 20px !important;
  margin: 0 auto 12px !important;
}

/* 予約セクション 見出しデコ */
.nd-contact-booking .wp-block-heading {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  color: var(--c-white) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
@media (max-width: 767px) {
  .nd-contact-booking .wp-block-heading {
    font-size: 16px !important;
  }
}
.nd-contact-booking .wp-block-heading::before,
.nd-contact-booking .wp-block-heading::after {
  content: "" !important;
  display: inline-block !important;
  width: 2px !important;
  height: 32px !important;
  background: var(--c-secondary) !important;
  flex-shrink: 0 !important;
}
.nd-contact-booking .wp-block-heading::before {
  transform: rotate(-15deg) !important;
}
.nd-contact-booking .wp-block-heading::after {
  transform: rotate(15deg) !important;
}
.nd-btn-booking .wp-block-button__link::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  /* background: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='11' fill='white' fill-opacity='0.3'/%3E%3Cpath d='M7 11h8M11 7v8' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat; */
  flex-shrink: 0;
}

/* フォトカード（wp:cover）*/
.nd-photo-card.wp-block-cover {
  border-radius: 20px !important;
  overflow: visible !important;
  min-height: 270px !important;
  position: relative;
}
.nd-photo-card.wp-block-cover .wp-block-cover__image-background {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}
@media (max-width: 767px) {
  .nd-photo-card.wp-block-cover {
    min-height: 200px !important;
  }
}
.nd-photo-card .wp-block-cover__inner-container {
  padding: 0 !important;
  position: absolute !important;
  top: 16px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
}
.nd-photo-badge {
  display: inline-block !important;
  background: var(--c-primary) !important;
  color: var(--c-white) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 30px !important;
  padding: 15px 1em !important;
  width: calc(100% - 40px);
  text-align: center;
  white-space: nowrap !important;
  margin: 0 !important;
  position: relative !important;
  line-height: 1.4 !important;
  top: -4rem;
}
.nd-photo-badge::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--c-primary);
}

/* フォトギャラリー */
.nd-gallery-wrap.wp-block-group {
  margin-inline: -150px;
  background: #f9fdf4 !important;
  border-radius: 0 !important;
  padding: 40px 32px !important;
}
.nd-photo-slider .nd-slider-thumbs { 
  padding: 0px 0px;
}
.nd-gallery-circles.wp-block-gallery {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 8px 0 !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  grid-template-columns: unset !important;
  margin: 0 !important;
  columns: unset !important;
}
.nd-gallery-circles.wp-block-gallery::-webkit-scrollbar {
  display: none;
}
.nd-gallery-circles .wp-block-image {
  flex-shrink: 0 !important;
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 3px solid var(--c-primary) !important;
  margin: 0 !important;
}
@media (max-width: 767px) {
  .nd-gallery-wrap.wp-block-group {
    margin-inline: -20px;
  }
  .nd-gallery-circles .wp-block-image {
    width: 90px !important;
    height: 90px !important;
  }
}
.nd-gallery-circles .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* 動画＋テキストパターン（<video> 直置き版） */
.nd-pattern-video-text.wp-block-group {
  width: 100% !important;
}
.nd-video-text__video.wp-block-video {
  margin: 0 0 24px 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}
.nd-video-text__video.wp-block-video video {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 10px;
  background: #000;
}

/* 動画サムネイル */
.nd-video-cover.wp-block-cover {
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
  cursor: pointer;
}
.nd-play-btn .wp-block-button__link {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  min-width: unset !important;
  border: none !important;
}
.nd-play-btn .wp-block-button__link::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg width='28' height='32' viewBox='0 0 28 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L26 16L2 30V2Z' fill='%234fa23f' stroke='%234fa23f' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-left: 4px;
}

/* 同意セクション */
.nd-consent.wp-block-group {
  position: relative;
  background: var(--c-primary);
  border-radius: 20px;
  padding: 30px 40px 10px;
  min-height: 215px;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  overflow: visible ;
}
@media (max-width: 767px) {
  .nd-consent.wp-block-group {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 24px 20px !important;
    min-height: 200px !important;
    overflow: visible !important;
  }
}
.nd-consent-center {
  flex: 0 1 auto !important;
  gap: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}
.nd-consent-center > *,
.nd-consent-center .nd-consent-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
}
.nd-consent-img.wp-block-image,
.nd-consent-img.wp-block-image img {
  object-fit: contain !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
.nd-consent-img--left {
  position: absolute !important;
  left: 14.3% !important;
  bottom: -33px !important;
  pointer-events: none;
}
@media (max-width: 767px) {
  .nd-consent-img--left img {
    width: 140px !important;
    height: auto !important;
  }
}
@media (max-width: 767px) {
  .nd-consent-img--left, .nd-consent-img--right {
    position: static !important;
    left: auto !important;
    right: auto !important;
    /* bottom: auto !important; */
  }
}
figure.wp-block-image.size-full.nd-consent-img.nd-consent-img--left {
  z-index: 100;
}
.nd-consent-img--left img {
  width: 204.278px !important;
  height: 171.744px !important;
}
.nd-consent-img--right {
  position: absolute !important;
  right: 14.6% !important;
  bottom: -33px !important;
  pointer-events: none;
}
@media (max-width: 767px) {
  .nd-consent-img--right img {
    width: 100px !important;
    height: auto !important;
  }
}
.nd-consent-img--right img {
  width: 147px !important;
  height: 179px !important;
}
.nd-consent-bubble {
  background: var(--c-white);
  border-radius: 23px;
  padding: 10px 30px !important;
  margin-bottom: 4px !important;
  position: relative;
  text-align: center;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  display: inline-block;
  max-width: 502px;
  min-width: 502px;
  line-height: 1.45;
}
.nd-consent-bubble br {
  display: none;
}
.nd-consent-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid var(--c-white);
}

.nd-consent-wrap {
  margin-top: 25px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.nd-consent-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-width: 96px;
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
  transition: transform 0.25s ease;
}

.nd-consent-check {
  appearance: none;
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 1px solid var(--c-white);
  border-radius: 4px;
  background: transparent;
  position: relative;
  accent-color: #F6921E;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.nd-consent-check::after {
  content: "";
  position: absolute;
  inset: 0 0 3px;
  margin: auto;
  width: 5px;
  height: 11px;
  border-right: 2px solid var(--c-icon2);
  border-bottom: 2px solid var(--c-icon2);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nd-consent-check:checked {
  background: var(--c-white);
  border-color: var(--c-white);
}

.nd-consent-check:checked::after {
  opacity: 1;
}

.nd-consent-label-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-white);
  transition: color 0.3s ease;
  line-height: 1.45;
}

@media (hover) {

  .nd-consent-label:hover .nd-consent-check {
    background: #FFF;
  }
}

.nd-consent-wrap.is-checked {
  transform: translateY(-26px);
}

.nd-consent-btn-wrap {
  margin-top: 14px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nd-consent-btn-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nd-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 220px;
  height: 50px;
  background: var(--c-btn2);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

@media (hover) {
  .nd-consent-btn:hover {
    background: var(--c-icon2);
  }
}

.nd-consent-btn.is-clicked {
  background: var(--c-btn);
  color: var(--c-white);
  border-color: var(--c-btn);
  transform: translateY(0);
}

@media (max-width: 767px) {
  .nd-consent.wp-block-group {
    width: min(100%, 323px) !important;
    /* aspect-ratio: 323 / 233.412; */
    margin-inline: auto;
    padding: 0 !important;
    gap: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    border-radius: 20px !important;
    /* overflow: hidden !important; */
  }
  .nd-consent-center {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 283px;
    z-index: 3;
    gap: 0 !important;
  }
  .nd-consent-bubble {
    width: 283px;
    min-width: 283px;
    max-width: 283px;
    border-radius: 31px;
    padding: 11px 20px !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
    line-height: 1.42;
  }
  .nd-consent-bubble br {
    display: inline;
  }
  .nd-consent-bubble::after {
    bottom: -12px;
    border-left-width: 7px;
    border-right-width: 7px;
    border-top-width: 12px;
  }
  .nd-consent-wrap {
    margin-top: 50px !important;
    transform: translateY(0);
  }
  .nd-consent-wrap.is-checked {
    transform: translateY(-26px);
  }
  .nd-consent-label {
    min-width: 74px;
    gap: 8px;
    justify-content: center;
  }
  .nd-consent-check {
    width: 14px;
    height: 14px;
    border-radius: 2px;
  }
  .nd-consent-check::after {
    width: 4px;
    height: 8px;
    inset: -1px 0 0;
  }
  .nd-consent-label-text {
    font-size: 13px;
    line-height: 1.46;
  }
  .nd-consent-btn-wrap {
    margin-top: 8px;
  }
  .nd-consent-btn {
    width: 150px;
    height: 45px;
    border-radius: 10px;
    font-size: 13px;
  }
  .nd-consent-img--left,
  .nd-consent-img--right {
    position: absolute !important;
    bottom: -17px !important;
    z-index: 2;
  }
  .nd-consent-img--left {
    left: 0 !important;
  }
  .nd-consent-img--left img {
    width: 103.979px !important;
    height: 87.419px !important;
  }
  .nd-consent-img--right {
    right: 5.956px !important;
  }
  .nd-consent-img--right img {
    width: 74.824px !important;
    height: 90.932px !important;
  }
}

/* テーブル 共通スタイル（全 wp-block-table に自動適用）*/
figure.wp-block-table {
  border: none !important;
  margin-bottom: 4rem;
}
figure.wp-block-table table {
  border: none !important;
  width: 100% !important;
  border-collapse: collapse !important;
}
figure.wp-block-table th,
figure.wp-block-table td {
  border: none !important;
}
figure.wp-block-table td {
  padding: 16px 20px !important;
  border-bottom: 2px solid #EAEAEA !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
  color: var(--c-text) !important;
  vertical-align: baseline !important;
}
figure.wp-block-table td:first-child {
  font-weight: 700 !important;
  color: var(--c-primary) !important;
  border-bottom-color: var(--c-primary) !important;
  width: 180px !important;
}
@media (max-width: 767px) {
  figure.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100% !important;
    display: block !important;
  }
  figure.wp-block-table td:first-child {
    width: 30% !important;
    min-width: 80px !important;
  }
}

.wp-block-table thead {
  border-bottom: none;
}

/* #114: nd-pattern-def-table 内のテーブル下に 40px margin */
.nd-pattern-def-table figure.wp-block-table {
  margin-bottom: 40px !important;
}

/* thead があるテーブルは自動でヘッダースタイルを適用 */
figure.wp-block-table th {
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 12px 20px !important;
  text-align: center !important;
  color: var(--c-white) !important;
}
figure.wp-block-table thead tr th:first-child {
  background: transparent !important;
}
figure.wp-block-table thead tr th:nth-child(2) {
  background: var(--c-secondary) !important;
}
figure.wp-block-table thead tr th:last-child {
  background: var(--c-primary) !important;
}
@media (max-width: 767px) {
  figure.wp-block-table:has(thead)::before {
    content: "Swipe horizontally to view";
    display: block;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 8px;
  }
  figure.wp-block-table:has(thead) table {
    min-width: 600px !important;
  }
}

/* Googleマップ */
.nd-googlemap .wp-block-embed__wrapper {
  border-radius: 20px;
  overflow: hidden;
}
.nd-googlemap .wp-block-embed__wrapper iframe {
  display: block;
  width: 100%;
  min-height: 450px;
}
@media (max-width: 767px) {
  .nd-googlemap .wp-block-embed__wrapper iframe {
    min-height: 280px !important;
  }
}

/* H3セパレーターライン（独立）*/
hr.wp-block-separator.nd-h3-sep-line {
  display: none !important;
}
hr.wp-block-separator.nd-h3-sep-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 37.2%;
  width: 25.6%;
  height: 3px;
  background: var(--c-primary);
}

/* 院内フロアマップ タイトル */
.nd-floor-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  color: var(--c-primary) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin-bottom: 24px !important;
}
.nd-floor-title::before {
  content: "" !important;
  flex: none !important;
  width: 14px !important;
  height: 25px !important;
  background: url("data:image/svg+xml,%3Csvg width='14' height='25' viewBox='0 0 14 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='0' x2='14' y2='25' stroke='%234fa23f' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat !important;
}
.nd-floor-title::after {
  content: "" !important;
  flex: none !important;
  width: 14px !important;
  height: 25px !important;
  background: url("data:image/svg+xml,%3Csvg width='14' height='25' viewBox='0 0 14 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='25' x2='14' y2='0' stroke='%234fa23f' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat !important;
}
