@charset "UTF-8";

/*================================
-MV部分
=================================*/

.front-page-mv {
  width: 100%;
  height: 65svh;
  background: url("../../src/img/index/mv.webp") no-repeat center center / cover;
  position: relative;
  z-index: 20;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    display: block;
  }

  >.inner {
    max-width: 1200px;
    padding: 0 24px;
    margin: 80px auto 0;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-mv {
    >.inner {
      padding: 0 5.33vw;
      margin: 56px auto 0;
    }
  }
}

.front-page-mv-catch-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;

  .image {
    max-width: 700px;
    width: 80vw;
    display: block;
    height: auto;
    user-select: none;

    >img {
      display: block;
      width: 100%;
      height: auto;
      filter: drop-shadow(0px 0px 8px rgba(0, 0, 0, .4));
    }
  }

  .text {
    color: var(--white);
    font-weight: 400;
    font-family: var(--font-serif);
    text-align: center;
    width: 100%;
    margin: 8px auto 0;
    display: flex;
    justify-content: center;
    font-size: min(3.46vw, 1.8rem);
    line-height: 1.8;
    letter-spacing: 2px;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, .4);
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-mv-catch-copy {
    .text {
      margin: 0 auto;
    }
  }
}

.front-page-mv-headline {
  width: 100%;
  background-color: var(--gray-light-very);
  position: relative;
  z-index: 10;
  overflow: hidden;

  >.object {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 1;

    >.inner {
      position: absolute;
      top: 50%;
      right: -40px;
      transform: translateY(-50%);
      width: 0;
      height: 0;
      border-style: solid;
      border-width: 0 0 70vw 70vw;
      border-color: transparent transparent var(--beige) transparent;
      opacity: .5;
    }
  }

  >.object02 {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 2;

    >.inner {
      position: absolute;
      top: -10vw;
      right: -40vw;
      width: 300vw;
      height: 2px;
      background-color: var(--gold);
      opacity: .3;
      transform: rotate(190deg);
      transform-origin: center center;
    }
  }

  >.title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
    font-weight: 400;
    font-family: var(--font-serif);
    text-align: left;
    font-size: min(4.8vw, 3.6rem);
    line-height: 1.6;
    letter-spacing: 2px;
    color: var(--black);
    z-index: 2;
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-mv-headline {

    >.object {
      >.inner {
        border-width: 0 0 47vw 47vw;
      }
    }

    >.title {
      padding: 24px 5.33vw;
      font-weight: 500;
      text-align: center;
    }
  }
}

.front-page-mv-point {
  position: absolute;
  right: 48px;
  bottom: -4svh;
  z-index: 10;

  &::before {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    z-index: 5;
    background-color: var(--gray-light-very);
    border-radius: 100px;
  }

  &::after {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    width: 190px;
    height: 190px;
    transform: translate(-50%, -50%);
    z-index: 6;
    border: 2px solid var(--beige);
    border-radius: 100px;
    pointer-events: none;
  }

  .text {
    position: relative;
    font-weight: 500;
    font-family: var(--font-serif);
    text-align: center;
    font-size: min(3.46vw, 2rem);
    line-height: 1.4;
    letter-spacing: 1px;
    color: var(--gold-dark);
    z-index: 6;

    &:nth-of-type(2) {
      margin-top: 8px;
    }

    >span {
      font-size: min(6.4vw, 4rem);
      display: inline-block;
      padding: 0 4px;
    }
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-mv-point {
    right: calc(5.33vw * 1.5);
    bottom: 3vw;

    &::before {
      width: 27vw;
      height: 27vw;
      border-radius: 15vw;
    }

    &::after {
      width: 25.5vw;
      height: 25.5vw;
      border-radius: 15vw;
      border: 1px solid var(--beige);
    }

    .text {
      letter-spacing: .1vw;
    }
  }
}

@media all and (min-width: 0px) and (max-width: 640px) {
  .front-page-mv-point {
    bottom: 0;

    &::before {
      width: 30vw;
      height: 30vw;
      border-radius: 15vw;
    }

    &::after {
      width: 28.5vw;
      height: 28.5vw;
      border-radius: 15vw;
      border: 1px solid var(--beige);
    }
  }
}

/*================================
-セクション部分
=================================*/

.front-page-section {
  .inner {
    position: relative;
    max-width: 1200px;
    padding: 104px 24px;
    margin: auto;
    z-index: 5;
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-section {
    .inner {
      padding: 56px 5.33vw;
    }
  }
}

/*================================
-メニュー
=================================*/

.front-page-menu-item {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.front-page-menu-item-link {
  display: block;
  position: relative;

  .image {
    width: 100%;
    height: auto;
    display: block;
    overflow: hidden;
    position: relative;

    &::before {
      position: absolute;
      content: "";
      right: 0;
      bottom: 0;
      width: 0;
      height: 0;
      border-style: solid;
      border-color: transparent transparent var(--gold) transparent;
      border-width: 0px 0px 16px 16px;
      pointer-events: none;
      z-index: 2;
    }

    &::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      background-color: rgba(0, 0, 0, 0.02);
      z-index: 1;
      display: block;
    }

    >img {
      width: 100%;
      height: auto;
      display: block;
      aspect-ratio: 1 / 1;
      background-color: var(--gray-light-very);
      transition: ease .3s;
    }
  }

  .text {
    width: 100%;
    text-align: center;
    margin: 12px auto 0;
    position: relative;
    display: inline-block;
    font-family: var(--font-serif);
    line-height: 1.4;
    color: var(--black);
    font-size: min(3.73vw, 1.5rem);
    letter-spacing: 1px;
  }

  &:hover {
    .image {
      >img {
        opacity: .7;
        transform: scale(1.2, 1.2);
        transform-origin: center center;
        transition: ease .3s;
      }
    }
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-menu-item {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 4px;
  }

  .front-page-menu-item-link {

    &:hover {
      .image {
        >img {
          opacity: 1;
          transform: scale(1, 1);
        }
      }
    }

    &:active {
      .image {
        >img {
          opacity: .7;
          transform: scale(1.2, 1.2);
          transform-origin: center center;
          transition: ease .3s;
        }
      }
    }
  }

}

/*================================
-症例一覧
=================================*/
.front-page-case {
  background-color: var(--gray-light-very);
}

.front-page-case-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

@media (max-width: 867px) {
  .front-page-case-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 4px;
  }
}

/*================================
-記事一覧
=================================*/

.front-page-post {
  background: url("../../src/img/index/clinic_photo02.webp") no-repeat center center / cover;
  position: relative;
  overflow: hidden;

  &::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--white-opacity);
    z-index: 1;
    backdrop-filter: blur(4px);
  }

  .object {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;

    &::before {
      content: "";
      position: absolute;
      width: 2px;
      height: 300vw;
      background-color: var(--gray-dark);
      right: -16vw;
      bottom: -45.55vw;
      transform: rotate(30deg);
      z-index: 0;
      opacity: .2;
    }

    &::after {
      content: "";
      position: absolute;
      width: 600vw;
      height: 2px;
      background-color: var(--gold);
      right: -30vw;
      bottom: -54.55vw;
      transform: rotate(-20deg);
      z-index: 0;
      opacity: .2;
    }
  }
}


.front-page-post-list {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 8px;
  position: relative;
  z-index: 10;
  margin-bottom: 80px;

  .common-thumbnail {
    grid-template-columns: 47% 1fr;
  }

  .common-thumbnail-eyecatch {
    .image {
      >img {
        aspect-ratio: 1 / 1;
      }
    }
  }

  .common-thumbnail-item {
    padding: 8px 24px;

    .title {
      font-size: min(4vw, 1.8rem);
    }

    .description {
      -webkit-line-clamp: 4;
      font-size: min(3.73vw, 1.5rem);
    }
  }
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-post-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
    margin-bottom: 40px;

    .common-thumbnail {
      grid-template-columns: 35% 1fr;
    }

    .common-thumbnail-eyecatch {
      .image {
        >img {
          aspect-ratio: 100 / 140;
        }
      }
    }

    .common-thumbnail-item {
      padding: 8px 16px;

      .description {
        -webkit-line-clamp: 3;
      }
    }
  }
}


/*================================
-診療時間・アクセス
=================================*/

.front-page-access {
  display: grid;
  gap: 0;
  background-color: var(--gray-light-very);

  .map {
    width: 100%;
    height: auto;
    position: relative;

    >iframe {
      width: 100%;
      height: 100%;
    }
  }

  .contents {
    padding: 56px 40px 0 64px;
    max-width: 720px;
    overflow: hidden;
  }
}



@media all and (min-width: 0px) and (min-width: 1551px) {
  .front-page-access {
    grid-template-columns: 50vw 1fr;
  }

  .map {
    aspect-ratio: 112 / 100;
  }
}

@media all and (min-width: 0px) and (max-width: 1550px) {
  .front-page-access {
    grid-template-columns: 50vw 1fr;

    .map {
      aspect-ratio: 110 / 110;
    }
  }
}

@media all and (min-width: 0px) and (max-width: 1500px) {
  .front-page-access {
    grid-template-columns: 50vw 1fr;

    .map {
      aspect-ratio: 105 / 110;
    }
  }
}

@media all and (min-width: 0px) and (max-width: 1300px) {
  .front-page-access {
    grid-template-columns: .91fr 1fr;

    .map {
      aspect-ratio: 100 / 130;
    }
  }
}

@media all and (min-width: 0px) and (max-width: 1100px) {
  .front-page-access {
    grid-template-columns: 1fr;

    .map {
      order: 2;
      aspect-ratio: 141 / 100;
    }

    .contents {
      order: 1;
      padding: 56px 5.33vw 0;
      max-width: initial;

      .consulBox {
        max-width: 600px;
        margin: 0 auto 24px;
      }
    }
  }
}

/*================================
-アンカージャンプ
=================================*/

.front-page-anchor {
  padding-top: 80px;
  margin-top: -80px;
}

@media all and (min-width: 0px) and (max-width: 867px) {
  .front-page-anchor {
    padding-top: 50px;
    margin-top: -50px;
  }
}