:root {
  --bg-color: #f0f0f0;
  --border-color: #edc8d8;
}

@media (min-width: 769px) {
  .is-sp {
    display: none;
  }
}

@media (max-width: 768px) {
  .is-pc {
    display: none;
  }
}

.p-text--sub {
  font-size: 0.9em;
}

.p-indent1 {
  display: inline-block;
  padding-left: 1em;
  text-indent: -1em;
}

/* 横並びボタン */
.p-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;

  @media screen and (max-width: 768px) {
    gap: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .button-wrapper {
    padding-inline: 2.5vw;
  }
}

.p-text--bold {
  font-weight: bold;
}

.p-text--small {
  font-size: 0.9em;
}

.p-text--large {
  font-size: 1.25em;
}

/* margin-top */
.mt_0 {
  margin-top: 0 !important;
}

.mt_10 {
  margin-top: 10px !important;
}

.mt_20 {
  margin-top: 20px !important;
}

.mt_30 {
  margin-top: 30px !important;
}

.mt_40 {
  margin-top: 40px !important;
}

.mt_50 {
  margin-top: 50px !important;
}

.mt_60 {
  margin-top: 60px !important;

  @media screen and (max-width: 768px) {
    margin-top: 30px !important;
  }
}

.mt_90 {
  margin-top: 90px !important;

  @media screen and (max-width: 768px) {
    margin-top: 45px !important;
  }
}

/* margin-bottom */
.mb_0 {
  margin-bottom: 0 !important;
}

.mb_10 {
  margin-bottom: 10px !important;
}

.mb_20 {
  margin-bottom: 20px !important;
}

.mb_30 {
  margin-bottom: 30px !important;
}

.mb_40 {
  margin-bottom: 40px !important;
}

.mb_50 {
  margin-bottom: 50px !important;
}

.mb_60 {
  margin-bottom: 60px !important;

  @media screen and (max-width: 768px) {
    margin-bottom: 30px !important;
  }
}

.mb_90 {
  margin-bottom: 90px !important;

  @media screen and (max-width: 768px) {
    margin-bottom: 45px !important;
  }
}

.p-text-link {
  color: #007bff;
  text-decoration: underline;
}

.p-center {
  width: fit-content;
  margin-inline: auto;

  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

.p-right {
  margin-inline: auto 0;

  @media screen and (max-width: 768px) {
    margin-inline: auto;
  }
}

.p-left {
  width: fit-content;
  margin-right: auto;

  @media screen and (max-width: 768px) {
    margin-inline: auto;
  }
}

/* 色付きボックス */
.p-box-color,
.p-box-color--white,
.p-box-border {
  padding: 2em;
  border-radius: 5px;

  @media screen and (max-width: 768px) {
    padding: 1em;
  }
}

.p-box-color {
  background-color: var(--bg-color);
}

.p-box-color--white {
  background-color: #fff;
}

.p-box-border {
  border: 1px solid var(--border-color);
}

/* 番号付きリスト */
ul.p-pattern__list__number {
  list-style: none;
  counter-reset: number;
}

ul.p-pattern__list__number li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 1.2em;
  line-height: 1.3em;
}

ul.p-pattern__list__number li::before {
  content: counter(number);
  counter-increment: number;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  border-radius: 50%;
  background: #9bb4e0;
  color: #fff;
  text-align: center;
}

#service.preortho #service-content article h2 {
  font-family: "リュウミン M-KL", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  font-weight: normal;
}
#service.preortho #service-content .preortho-subheading {
  font-size: 22px;
  font-family: "リュウミン M-KL", "Noto Sans JP", sans-serif;
  font-weight: normal;
  line-height: 1.3;
  text-align: left;
  color: inherit;
  border: 0;
  margin: 0 0 20px;
  padding: 0 0 8px 25px;
  background: url(../img/icon-maru.png) no-repeat left 5px;
  border-bottom: 1px dashed #64be91;
}
#service.preortho .preortho-subsection {
  margin-top: 30px;
}
#service.preortho .txt p + p {
  margin-top: 1em;
}
#service.preortho #service-content .preortho-step-title {
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.7;
  text-align: left;
  color: inherit;
  border-bottom: 1px solid #ccc;
  padding: 0;
  margin: 0 0 20px;
}
#service.preortho .preortho-step-title span {
  margin-right: 1em;
  font-size: 24px;
  color: #36ab94;
}
#service.preortho .ucolumn img {
  height: auto;
}
#service.preortho table.preortho-price {
  white-space: normal;
  margin-bottom: 20px;
}
#service.preortho table.preortho-price th {
  width: 50%;
}
#service.preortho #service-content a:focus-visible {
  outline: 3px solid #176956;
  outline-offset: 4px;
}
@media screen and (max-width: 480px) {
  #service.preortho #service-content .preortho-subheading {
    font-size: 16px;
    padding-left: 20px;
    background-position: top left 5px;
    background-size: 15px auto;
  }
  #service.preortho .ucolumn_box img {
    float: none;
  }
  #service.preortho table.preortho-price th {
    font-size: 16px;
  }
  #service.preortho table.preortho-price th,
  #service.preortho table.preortho-price td {
    padding: 10px 8px;
  }
}

#service.preortho .preortho-concerns {
  background-color: #dff4f2;
  padding: 30px 0;
  margin-bottom: 30px;
}
#service.preortho #sec01 {
  padding-top: 0;
}
#service.preortho #sec01 > .ucolumn {
  margin-bottom: 0;
  padding-bottom: 0;
}
#service.preortho #sec01 .checkbox2 {
  margin-bottom: 0;
  padding-bottom: 0;
}
#service.preortho #sec01 .checkbox2 li:last-child {
  margin-bottom: 0;
}
#service.preortho #sec02 .preortho-subsection {
  background-color: #dff4f2;
  padding: 25px;
  box-sizing: border-box;
}
@media screen and (max-width: 480px) {
  #service.preortho .preortho-concerns {
    padding: 20px 0;
  }
  #service.preortho #sec02 .preortho-subsection {
    padding: 20px 15px;
  }
}

/* PC版は２段で上３枚下２枚、SP版は縦並び */
.preortho-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
@media screen and (max-width: 480px) {
  .preortho-images {
    gap: 15px;
  }
}

.preortho-images img {
  width: calc(33% - 10px);
  height: auto;
}
@media screen and (max-width: 480px) {
  .preortho-images img {
    width: calc(50% - 10px);
  }
}
