@charset "utf-8";

.l-detail {
  padding: 120px 0 150px;
  border-bottom: 1px solid #D9D9D9;
}


.article__container {
  border-bottom: 1px solid #D9D9D9;
}
@media screen and (min-width: 900px) {
  .article__container {
    width: 100%;
    display: grid;
    justify-content: space-between;
    align-items: flex-start;
    grid-template-columns: 220px 1fr;
    max-width: 1600px;
    margin-inline: auto;
  }
}

.post__container {
  flex-direction: column;
}
.post__container .article__sidebar {
  margin-top: 60px;
  position: relative;
  top: 0;
  width: 100%;
}
.post__container .toc__title {
  display: none;
}
.post__category {
  margin: 0 20px 20px;
}
.post__category .webgene-blog {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
@media screen and (min-width: 900px) {
  .post__container {
    flex-direction: row;
  }
  .post__container .article__sidebar {
    margin-top: 80px;
    position: sticky;
    top: 40px;
    width: 220px;
  }
  .post__container .toc__title {
    display: block;
    padding: 0 19px 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: calc(24 / 16);
    letter-spacing: 0.1em;
    border-bottom: 1px solid #D9D9D9;
    margin-bottom: 11px;
  }
  .post__category {
    margin: 0;
  }
  .post__category .webgene-blog {
    flex-direction: column;
    gap: 0;
    flex-wrap: nowrap;
    align-items: start;
  }
  .post__category .webgene-blog .webgene-item {
    width: 100%;
  }
}
@media screen and (min-width: 1050px) {
  .post__container .article__sidebar {
    margin-top: 116px;
  }
}

.article__sidebar {
  margin-top: 116px;
  position: sticky;
  top: 40px;
  width: 220px;
  display: none;

  &::before {
    content: "";
    position: absolute;
    top: -116px;
    right: 0;
    width: 1px;
    height: 100vh;
    background: #D9D9D9;
  }
}
@media screen and (min-width: 900px) {
  .article__sidebar {
    display: block;
  }
}

.article__contents {
  flex: 1;
  padding: 60px 20px 100px;
  overflow: hidden;
}
@media screen and (min-width: 768px) {
  .article__contents {
    padding: 80px 40px 150px;
  }
}
@media screen and (min-width: 1050px) {
  .article__contents {
    padding: 120px 70px 150px;
  }
}

.article__contents.gray {
  background: #F8F8F7;
  width: 100%;
}
.toc__title {
  padding: 0 19px 28px;
  font-size: 16px;
  font-weight: 600;
  line-height: calc(24 / 16);
  letter-spacing: 0.1em;
  border-bottom: 1px solid #D9D9D9;
  margin-bottom: 11px;
}
.toc li.js-active > a {
  background: #F0FAF6;
}
.toc .list_2 {
  counter-reset: li;
}
.toc li:has(ol) {
  list-style: none;
  position: relative;
}
.toc li:has(ol)::before {
  content: '';
  position: absolute;
  top: 0.4em;
  left: -1.5em;
  font-weight: bold;
  color: #0500E3;
  counter-increment: li;
  content: counter(li) '.';
}
.toc li:has(ol) + li {
  margin-top: 16px;
}
.toc a {
  display: inline-block;
  text-decoration: none;
  padding: 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: calc(22 / 14);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 5px;

  &::before {
    content: "";
    flex-shrink: 0;
    width: 5px;
    height: 8px;
    background: #A4D4C2;
    clip-path: polygon(0 0, 0% 100%, 100% 50%);
  }

  &:hover {
    background: #F0FAF6;
  }
}
@media screen and (min-width: 768px) {
  .toc a {
    padding: 18px 20px;
  }
}

.toc-link.is-active {
  background: #F0FAF6;
}

.detail__wrap {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.detail__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 70px;
  border-bottom: 1px solid #D9D9D9;
  position: relative;

  &::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 1px;
    background: #377F5E;
    left: 0;
    bottom: 0;
  }
}
@media screen and (min-width: 768px) {
  .detail__title {
    gap: 20px;
  }
}

.detail__title-ja {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
@media screen and (min-width: 768px) {
  .detail__title-ja {
    font-size: 28px;
  }
}
.detail__title-en {
  font-family: "Noto Serif JP", serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #AAA8A6;
}
@media screen and (min-width: 768px) {
  .detail__title-en {
    font-size: 16px;
  }
}

.detail__narrow--550 {
  max-width: 550px;
  margin-inline: auto;
}
@media screen and (min-width: 768px) {
    .detail__narrow--550 {
    max-width: 100%;
  }
}
@media screen and (min-width: 1024px) {
  .detail__narrow  {
    max-width: 917px;
    margin-inline: auto;
  }

}

.features__item {
      display: flex;
    align-items: center;
    gap: 26px;
    justify-content: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #D9D9D9;
    flex-direction: column;
  
  & + & {
  margin-top: 40px;
  }
  &:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
  }
}
@media screen and (min-width: 768px) {
.features__item {
    flex-direction: row;
     gap: 46px;
  }
}

.features__img {
      aspect-ratio: 250 / 165;
    border-radius: 10px;
    object-fit: cover;
    width: 250px;
    height: auto;
}
.features__head {
  display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'Noto Serif JP', serif;
}
.c9354 {
  font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #7E7E7E;
    line-height: 21px;
}
.c9811 {
  font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
@media (min-width: 768px) {
    .c9811 {
        font-size: 20px;
    }
}
.c9300 {
  margin: 20px 0 0 0;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 30px;
}

.wisdom__wrap {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: column;
}
@media screen and (min-width: 1024px) {
  .wisdom__wrap  {
    gap: 71px;
    flex-direction: row;
  }
}
.wisdom__img {
  aspect-ratio: 404 / 360;
  width: min(100%, 404px);
  border-radius: 15px;
  object-fit: cover;
  height: auto;
}
.wisdom__img.contain {
  object-fit: contain;
}
@media screen and (min-width: 1024px) {
  .wisdom__img  {
    width: min(calc(404 / 1366 * 100vw), 404px);
  }
}

.detail__card {
  padding-block: 0 65px;
}

.detail__swiper-container,
.detail__swiper,
.detail__swiper-wrapper,
.detail__swiper-slide {
  position: relative;
}

.detail__swiper {
  overflow: visible;
}

.detail__swiper-slide {
  max-width: 438px;
  height: auto;
  padding: 22px 20px 35px;
  background: #F4F6F7;
  border: 1px solid #DDDDDD;
  border-radius: 10px;
}

.detail__slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #D9D9D9;
}

.detail__slide-img {
  margin-top: 20px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #DDDDDD;
  padding: 16px;

  img {
    width: 259px;
    height: auto;
    margin: auto;
    display: block;
  }
}

.detail__swiper-button-prev,
.detail__swiper-button-next,
.detail__swiper-pagination-bullets.detail__swiper-pagination-horizontal {
  position: absolute;
  top: unset;
  bottom: unset;
  left: unset;
  right: unset;
  margin: 0;
  padding: 0;
}

.detail__swiper-button-prev::after,
.detail__swiper-button-next::after {
  content: "";
}

.detail__swiper-button-prev,
.detail__swiper-button-next {
  top: calc(100% + 25px);
  width: 40px;
  height: 40px;
}

.detail__swiper-button-prev {
  left: 0;
}

.detail__swiper-button-next {
  left: 53px;
}

.swiper-pagination-progressbar.swiper-pagination-horizontal {
  top: calc(100% + 45px);
  right: 0;
  left: unset;
  width: min(calc(783 / 1366 * 100vw), 783px);
  height: 2px;
  background: #d9d9d9;
}
.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #7C7C7C;
}

.tooth__list {
  border-top: 1px solid #d9d9d9;
}

.price__wrap {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.price__title {
  border-bottom: 1px solid #d9d9d9;
}

.price__list {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #d9d9d9;

  &:last-of-type {
    border-bottom: none;
  }
}
@media screen and (min-width: 768px) {
  .price__list {
    padding: 20px;
  }
}

.price__list--total {
  background: #F0FAF6;
  border-radius: 10px;
  padding: 18px 20px 17px;
  margin-top: 14px;
}

.medical__title {
  font-family: "Noto Serif JP", serif;
      font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.06em;
  line-height: 1.6;
}
.medical__head {
      margin: 10px 0 0 0;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 21px;
      font-size: 12px;
}
@media screen and (min-width: 768px) {
  .medical__head {
        font-size: 14px;
  }
}
.medical__link {
        margin: 20px 0 0 0;
  &:hover {
    opacity: 0.8;
  }
}

.faq__item {
  padding: 30px 20px 28px;
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #DDDDDD;
}
.faq__item + .faq__item {
  margin-top: 20px;
}

.faq__q,
.faq__a {
  display: flex;
  gap: 10px;
  align-items: start;
}
@media screen and (min-width: 768px) {
  .faq__q,
  .faq__a {
    display: flex;
    gap: 20px;
    align-items: start;
  }
}

.faq__q-head,
.faq__a-head {
  width: 32px;
  height: 32px;
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #A4D4C2;
  color: #FFFFFF;
  flex-shrink: 0;
}
.faq__a-head {
  background: #F0FAF6;
  color: #40BB8D;
}

.faq__q-head p,
.faq__a-head p {
  line-height: 1;
  margin-top: -4px;
}

.faq__q-body,
.faq__a-body {
  margin-top: -3px;
  font-size: 13px;
  line-height: calc(24 / 13);
  letter-spacing: 0.06em;
  font-weight: 400;
}
.faq__q-body {
  margin-top: 3px;
  font-weight: 600;
}

.faq__a {
  padding-top: 20px;
  margin-top: 17px;
  border-top: 1px solid #D9D9D9;
}

.garantee__list {
  margin-top: 28px;
  display: flex;
  gap: 13px;
  align-items: center;

  &::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #A4D4C2;
  }

  & + & {
    margin-top: 19px;
  }
}

.garantee__tag-wrap {
  margin-top: 28px;
}
.garantee__tag {
  width: fit-content;
}
.garantee__tag-list .garantee__list {
  margin-top: 19px;
}

.garantee__table-wrap {
  margin-top: 29px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
@media screen and (min-width: 700px) {
  .garantee__table-wrap {
    overflow-x: unset;
  }
}

.garantee__table {
  width: 540px;
  margin-inline: auto;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
@media screen and (min-width: 700px) {
  .garantee__table {
    width: 100%;
    font-size: 16px;
  }
}

.garantee__table-row {
  display: grid;
  grid-template-columns: 250px 1fr;

  &:first-of-type {
    border-bottom: none;
  }
  &:last-of-type {
    border-radius: 0 0 10px 10px;
    border: 1px solid #DDDDDD;
  }
}
@media screen and (min-width: 700px) {
  .garantee__table-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.garantee__table-row:last-of-type  .garantee__table-data {
  border-left: none;
  border-right: 1px solid #DADADA;

  &:last-of-type {
    border-right: none;
  }
}

.garantee__table-head {
  background: #F8F8F7;
  padding: 10px 20px;
  border-right: 1px solid #DADADA;

  &:last-of-type {
    border-right: none;
  }
}
.garantee__table-data {
  padding: 18px 20px;
  border-right: 1px solid #DADADA;

  &:first-of-type {
    border-left: 1px solid #DADADA;
  }
}


.staff__wrap {
  display: flex;
  gap: 40px;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .staff__wrap--small {
    flex-direction: row;
    align-items: center;
  }
  .staff__wrap--small .staff__img {
    width: min(100%, 270px);
  }
}
@media screen and (min-width: 1024px) {
  .staff__wrap  {
    flex-direction: row;
    align-items: center;
  }
}
@media screen and (min-width: 1100px) {
  .staff__wrap  {
    gap: min(calc(73 / 1366 * 100vw), 73px);
  }
  .staff__wrap--small .staff__img {
    width: min(calc(404 / 1366 * 100vw), 404px);
  }
}

.staff__img {
  aspect-ratio: 404 / 500;
  width: min(100%, 404px);
  border-radius: 15px;
  object-fit: cover;
  height: auto;
  margin: 0 auto;
}
@media screen and (min-width: 1024px) {
  .staff__img  {
    width: min(calc(404 / 1366 * 100vw), 404px);
  }
}

.c7878 {
  flex-grow: 1;
}

.staff__boxes {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  max-width: 550px;
  margin-inline: auto;
}
@media screen and (min-width: 1100px) {
  .staff__boxes  {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
  .staff__boxes-column {
    grid-template-columns: repeat(1, 1fr);
  }
}

.staff__box {
  border-radius: 10px;
  background: #F4F6F7;
  border: 1px solid #DDDDDD;
  padding: 20px 15px 20px;
}
@media screen and (min-width: 768px) {
  .staff__box {
    padding: 20px 15px 20px 20px;
  }
}

.c7345 {
  margin-bottom: 15px;
  border-bottom: 1px solid #D9D9D9;
}
.staff__list {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;

  & + & {
    margin-top: 15px;
  }
}
@media screen and (min-width: 768px) {
  .staff__list {
    grid-template-columns: 100px 1fr;
  }
}
.staff__list > .c7569:nth-child(2) {
  border-left: 1px solid #D9D9D9;
  padding-left: 10px;
}


.message__wrap {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: column;
}
@media screen and (min-width: 1024px) {
  .message__wrap  {
    gap: 73px;
    flex-direction: row;
  }
}
.message__img {
  aspect-ratio: 404 / 500;
  width: min(100%, 404px);
  border-radius: 15px;
  object-fit: cover;
  height: auto;
}
@media screen and (min-width: 1024px) {
  .message__img  {
    width: min(calc(404 / 1366 * 100vw), 404px);
  }
}

.message__bg-text-wrap {
  display: flex;
  gap: 50px;
  width: 100%;
  position: absolute;
  top: -98px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
.message__bg-text {
  white-space: nowrap;
  animation: infinity-scroll-left 50s infinite linear 0.5s both;
}
@keyframes infinity-scroll-left {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

.clinic__wrap {
  display: flex;
  gap: 80px;
  flex-direction: column;
}

.clinic__map  {
  aspect-ratio: 917/354;
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}
.clinic__map iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.clinic__list {
  margin-top: 28px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(1, 1fr);

  & + & {
    margin-top: 20px;
  }
}
@media screen and (min-width: 768px) {
  .clinic__list {
    grid-template-columns: 105px 1fr;
    gap: 15px;
    & + & {
      margin-top: 8px;
    }
  }
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;

  &::-webkit-scrollbar {
    height: 5px;
  }

  &::-webkit-scrollbar-track {
    background-color: #E2E2E2;
  }

  &::-webkit-scrollbar-thumb {
    background-color: #A4D4C2;
  }
}

.table {
  width: 917px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #DDDDDD;
}

.table-row {
  display: grid;
  grid-template-columns: 151px repeat(3, 1fr);

  &:last-of-type {
    border-top: 1px solid #DADADA;
  }
}
.table-head {
  font-family: "Noto Serif JP", serif;
  background: #A4D4C2;
  padding: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  border-right: 1px solid #FFFFFF;

  &:last-of-type {
    border-right: none;
  }
}
.table-side-head {
  background: #F8F8F7;
  padding: 32px 10px;
  font-family: "Noto Serif JP", serif;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.table-data {
  padding: 32px 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-left: 1px solid #DADADA;
}

.clinic__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 32px auto 0;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .clinic__btns {
    flex-direction: row;
  }
}

.c13785 {
  &:hover {
    opacity: 0.7;
  }
}

.clinic__tel {
  position: relative;
  padding-left: 34px;

  &::before {
    content: "";
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    left: 0;
    background: url(../images/icon-tel.svg) center / contain no-repeat;
    width: 25px;
    height: 33px;
  }
}

.btn-calendar {
  padding: 9px 20px;
  background: #377E5E;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 221px;
  justify-content: space-between;

  &::before {
    content: "";
    background: url(../images/calendar.svg) center / contain no-repeat;
    width: 27px;
    height: 27px;
  }

  &::after {
    content: "";
    background: url(../images/arrow-footer.svg) center / contain no-repeat;
    width: 35px;
    height: 40px;
  }
  
    &:hover {
    opacity: 0.7;
  }

  p {
    padding: 0;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1;
    text-decoration: none;
  }
}

.intro__wrap {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.intro__item {
  width: min(100%, 550px);

  img {
    aspect-ratio: 917 / 430;
    border-radius: 15px;
    object-fit: cover;
  }
}

@media screen and (min-width: 1024px) {
  .intro__wrap {
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .intro__item {
    width: 100%;
  }

  .intro__item:nth-of-type(2) {
    width: calc(315 / 917 * 100%);

    img {
      aspect-ratio: 315 / 400;
    }
  }
  .intro__item:nth-of-type(3) {
    margin-top: 63px;
    width: calc(492 / 917 * 100%);

    img {
      aspect-ratio: 492 / 400;
    }
  }
  .intro__item:nth-of-type(4) {
    width: calc(492 / 917 * 100%);

    img {
      aspect-ratio: 492 / 400;
    }
  }
  .intro__item:nth-of-type(5) {
    margin-top: 80px;
    width: calc(315 / 917 * 100%);

    img {
      aspect-ratio: 315 / 400;
    }
  }


}










