/*=========================
  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;
  }
}

.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;
  }
}

.table-group {
  margin-bottom: 5rem;
  .title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  .table {
    display: grid;
    /*grid-template-columns: auto repeat(6, 1fr);*/
    grid-template-columns: auto repeat(4, 1fr);/*4種類のとき*/
  }
  @media (max-width: 960px) {
    .title {
      font-size: 1.25rem;
    }
    .table-wrapper {
      overflow-x: scroll;
      .table {
        width: 100%;
        min-width: 900px;
        font-size: 0.9rem;
        .cell.bg-blue {
          padding: 0.5rem 0.75rem;
        }
      }
    }
  }
  .table-2columns {
    display: grid;
    grid-template-columns: minmax(200px, 30%) 1fr;
    .cell.bg-blue {
      border-right: none;
      position: relative;
      text-align: left;
      justify-content: flex-start;
      &::after {
        content: '';
        position: absolute;
        right: -15px;
        width: 15px;
        height: 30px;
        background-color: #000538;
        clip-path: polygon(0 0, 0% 100%, 100% 50%);
      }
    }
    .cell:not(.bg-blue) {
      padding-left: max(30px, 5%);
    }
    @media (max-width: 960px) {
      grid-template-columns: minmax(150px, 30%) 1fr;
      font-size: 0.9rem;
      .cell.bg-blue {
        padding: 1rem 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        text-wrap: balance;
      }
    }
  }
  .row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1/-1;
    border-bottom: #ffffff 1px solid;
  }
  .cell {
    background-color: #f6f3e8;
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    border-right: #ffffff 1px solid;
  }
  .cell.bg-blue {
    background-color: #000538;
    color: #ffffff;
    text-align: center;
    text-wrap: balance;
    padding: 1rem 2rem;
    justify-content: center;
  }
  .cell.bg-yellow {
    background-color: #e6b422;
    color: #ffffff;
    text-align: center;
    text-wrap: balance;
    justify-content: center;
  }
  .text {
    font-size: 0.9rem;
  }
}

/*=========================
  セラミック治療
=========================*/
section.ceramic {
  padding-top: 5rem;
  margin-bottom: 10rem;
}

/*=========================
  インプラント
=========================*/
section.implant {
  margin-bottom: 10rem;
}

/*=========================
  ホワイトニング
=========================*/
section.whitening {
  margin-bottom: 10rem;
}

/*=========================
  矯正歯科
=========================*/
section.orthodontics {
  margin-bottom: 10rem;
}
