/*=========================
  page mv
=========================*/
section.page-mv {
  height: 500px;
  position: relative;
  .mv-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .page-title {
    position: absolute;
    z-index: 1;
    top: 60%;
    left: 50%;
    translate: -50% -50%;
    color: #ffffff;
    text-shadow: 0px 3px 6px rgb(0 0 0 / 0.5);
    text-align: center;
    .jp {
      font-size: 3rem;
      font-weight: 700;
    }
    .en {
      font-size: 2rem;
    }
  }
}
@media (max-width: 960px) {
  section.page-mv {
    height: 300px;
    .mv-img {
      object-fit: cover;
      object-position: 75% 50%;
    }
    .page-title {
      top: 65%;
      left: 0%;
      translate: 0% -50%;
      width: 100%;
      .jp {
        font-size: 2rem;
      }
      .en {
        font-size: 1.5rem;
      }
    }
  }
}

/* common */
.page-section-title {
  text-align: center;
  text-wrap: balance;
  position: relative;
  margin-bottom: 3rem;
  .bg-img {
    margin-inline: auto;
  }
  .title {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
  }
}
@media (max-width: 960px) {
  .page-section-title {
    margin-bottom: 1rem;
    .bg-img {
      width: 120px;
    }
    .title {
      font-size: 2rem;
    }
  }
}

.container {
  width: calc(100% - 2rem);
  max-width: 1200px;
  margin-inline: auto;
}

.texts-image-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 5rem;
  .texts {
    width: 60%;
    .heading {
      font-size: 2rem;
      border-bottom: #2c363c 1px solid;
      padding-bottom: 1rem;
      margin-bottom: 1.5rem;
    }
  }
  .img {
    width: 40%;
    height: auto;
    object-fit: cover;
  }
}
@media (max-width: 960px) {
  .texts-image-flex {
    flex-direction: column;
    .texts {
      width: 100%;
      .heading {
        font-size: 1.5rem;
        text-align: center;
        text-wrap: balance;
      }
    }
    .img {
      width: 100%;
      max-width: 500px;
      margin-inline: auto;
    }
  }
}

.textbox-gray {
  width: calc(100% - 2rem);
  max-width: 1000px;
  margin-inline: auto;
  background-color: #eff3f5;
  box-shadow: 0px 3px 6px rgb(0 0 0 / 0.2);
  padding: 2rem;
  margin-bottom: 5rem;
  .title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
  }
}
@media (max-width: 960px) {
  .textbox-gray {
    .title {
      font-size: 1.5rem;
    }
  }
}

/*=========================
  メラニン除去
=========================*/
section.melanin {
  padding-top: 5rem;
  padding-bottom: 5rem;
  margin-bottom: 5rem;
  border-bottom: #000538 1px solid;
  .textbox2 {
    .flex-row {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-bottom: 3rem;
      &:last-of-type {
        margin-bottom: 0;
      }
      .before,
      .after {
        width: 45%;
        img {
          width: 100%;
          margin-bottom: 0.5rem;
        }
      }
      .label {
        text-align: center;
        font-size: 1.25rem;
      }
      .arrow {
        width: 10%;
        display: flex;
        justify-content: center;
        align-items: center;
        clip-path: polygon(0% 20%, 75% 20%, 75% 0%, 100% 50%, 75% 100%, 75% 80%, 0% 80%);
        background-color: #ffffff;
        height: 6rem;
        font-size: 0.9rem;
      }
    }
    @media (max-width: 960px) {
      width: 100%;
      padding: 2rem 1rem;
      .flex-row {
        gap: 0.5rem;
        .before, .after {}
        .arrow {
          /* width: auto; */
          height: 3rem;
          flex-shrink: 0;
          font-size: 10px;
          margin-top: -2rem;
        }
      }
    }
  }
}

/*=========================
  歯周再生
=========================*/
section.cgf {
  margin-bottom: 5rem;
  .texts {
    max-width: 1000px;
    margin-inline: auto;
    margin-bottom: 5rem;
    .title {
      font-size: 2rem;
      text-align: center;
      text-wrap: balance;
      margin-bottom: 1.5rem;
    }
    .border {
      background-color: #2c363c;
      width: 60%;
      height: 1px;
      margin-inline: auto;
      margin-bottom: 1.5rem;
    }
  }
}

/*=========================
  歯周再生
=========================*/
section.cgf-flow {
  padding-bottom: 5rem;
  margin-bottom: 5rem;
  border-bottom: #000538 1px solid;
  .flows {
  }
  .flow-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 5rem;
    .number-wrapper {
      position: relative;
      /* width: 15%; */
      .number {
        position: relative;
        z-index: 1;
        width: 100px;
        min-height: fit-content;
        display: flex;
        justify-content: center;
        align-items: center;
        aspect-ratio: 1/1;
        border-radius: 100vmax;
        border: #ffffff 2px solid;
        box-shadow: 0px 3px 6px rgb(0 0 0 / 0.2);
        background: linear-gradient(45deg, #e6b422 0%, #bc8f41 100%);
        color: #ffffff;
        font-size: 2.5rem;
        line-height: 1;
        font-family: 'Libre Baskerville', serif;
        font-style: italic;
      }
      .line {
        position: absolute;
        top: 100px;
        left: 50%;
        translate: -50% 0;
        background-color: #000538;
        width: 8px;
        height: 100%;
      }
    }
    .body {
      /* width: 85%; */
      flex-grow: 1;
      display: flex;
      justify-content: center;
      align-items: start;
      gap: 2rem;
      border: #000538 1px solid;
      padding: 2rem;
      .texts {
        width: 60%;
        .title {
          font-size: 2rem;
          border-bottom: #000538 1px solid;
          padding-bottom: 0.5rem;
          margin-bottom: 1.5rem;
        }
        .text {
          font-weight: 300;
        }
      }
      .img {
        width: 40%;
        height: auto;
        object-fit: cover;
      }
    }
    @media (max-width: 960px) {
      gap: 1rem;
      .number-wrapper {
        .number {
          width: 50px;
          font-size: 1.25rem;
        }
        .line {
          top: 50px;
          height: 110%;
          width: 6px;
        }
      }
      .body {
        flex-direction: column;
        padding: 1rem;
        .texts {
          width: 100%;
          .title {
            font-size: 1.5rem;
          }
          .text {
            font-size: 0.9rem;
          }
        }
        .img {
          width: 100%;
          max-width: 500px;
        }
      }
    }
  }
}

/*=========================
  ダイレクトボンディング
=========================*/
section.direct-bonding {
  margin-bottom: 10rem;
  .img {
    background-color: #ccc;
    aspect-ratio: 4/3;
    min-height: fit-content;
  }
  .texts .text{
	text-align: center;
	font-size: 1.75rem;
	width: none;
  }
}
