.p-top {
  width: 100%;
  height: 36rem;
  position: relative;
  overflow: hidden;
}

.p-top .slide picture {
  width: 100%;
  height: 100%;
}

.p-top .slide > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.p-top__p {
  width: 8rem;
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.p-top__m {
  width: 16rem;
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 5%;
  right: -4%;
  z-index: 3;
}

.p-top__m > a:last-of-type {
  margin-top: -8%;
}

.p-top__m .faq-display {
  display: block;
}

.p-problem {
  width: 100%;
  margin-top: 4rem;
  padding: 0 4rem;
  text-align: center;
}

.p-problem > p {
  font-size: 1.6rem;
  font-family: var(--font-family-clean);
  font-weight: bold;
}

.p-problem__img {
  width: 100%;
  margin: 0 auto;
  margin-top: 4rem;
}


/*-------------------------
  当院の特徴
-------------------------*/
.p-features {
  background-color: var(--color-light-blue);
}

.p-introduce {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.p-introduce__item {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

.p-introduce .p-introduce__item:first-of-type {
  margin-top: 1.6rem;
}

.p-introduce__item > div {
  flex: 1;
}

.p-introduce__item.reverse {
  flex-direction: column;
}

.p-introduce__param > p:first-child {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.p-introduce__explain {
  margin-top: 1.6rem;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

/*-------------------------
  診療内容
-------------------------*/
.l-treatment {
  padding-bottom: 6rem;
}

.c-treatments {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}

.c-treatments__item > a {
  position: relative;
  text-align: center;
  display: inline-block;
}

.c-treatments__item p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 1.625rem;
  letter-spacing: 0.1em;
  color: var(--color-white);
}

/*-------------------------
  診療時間・アクセス
-------------------------*/
.l-access {
  padding: 4rem 2rem;
  background-color: var(--color-light-blue);
}

.p-info-section {
  margin-top: 0;
}

.p-access {
  display: flex;
  justify-content: space-around;
}

.p-reserve.main {
  display: block;
}

.p-reserve.main > p {
  text-align: center;
  font-size: 1.5rem;
}

.p-reserve.main > p > span {
  font-size: 1.6rem;
}

.p-tel.main {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.l-map.main {
  margin-top: 4rem;
}

.p-map {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.p-map__param {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-family-clean);
}

.p-map__display {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 400px;
}

.p-map__display iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/*-------------------------
  お知らせ
-------------------------*/
.l-info {
  position: relative;
}

.p-board {
  width: 80%;
  margin: 0 auto;
}

.p-board__item {
  width: 100%;
  padding: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-bottom: 1px dashed var(--color-green-blue);
  letter-spacing: 0.1em;
}

.p-board__item time {
  font-family: var(--font-family-number);
  font-size: 0.875rem;
}

.p-board__item p {
  font-weight: bold;
}

.p-board__item p:first-of-type {
  color: var(--color-green-blue);
}

.p-board__list {
  cursor: pointer;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.p-board__list p {
  letter-spacing: 0.1em;
  position: relative;
}

.p-board__list .p-arrow {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  background-image: url("/public/top/black-arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

/* ボタン */
.c-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
  padding: 0 2rem;
  padding-bottom: 6rem;
}

.c-button {
  cursor: pointer;
  font-family: var(--font-family-base);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--color-white);
  border: 1px solid var(--color-green-blue);
  background-color: var(--color-green-blue);
  border-radius: 12px;
  padding: 1rem 0rem;
  font-size: 1.2rem;
  transition: 0.4s ease;
  position: relative;
}

.c-button:hover {
  background-color: var(--color-white);
  color: var(--color-green-blue);
}

.c-button .p-arrow {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-image: url("/public/top/white-arrow.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

.c-button:hover .p-arrow {
  background-image: url("/public/top/blue-arrow.svg");
}

/* 波 */
.wave-top svg,
.wave-bottom svg {
  display: block;
  width: 100%;
  height: auto;
}

.wave-top {
  margin-bottom: -1px;
}

.wave-bottom {
  margin-top: -1px;
}

/*-------------------------
  タブレット
-------------------------*/
@media screen and (min-width: 768px) {
  /* アイコンのサイズ */
  .p-top__p {
    width: 9rem;
    top: 50%;
  }

  .p-top__m {
    width: 16rem;
    bottom: 6%;
    right: 6%;
  }

  .p-top__m > a:last-of-type {
    margin-top: -4%;
  }

  .p-problem {
    width: 100%;
    margin-top: 8rem;
    text-align: center;
  }

  .p-problem > p {
    font-size: 2.25rem;
  }

  .p-problem__img {
    width: 60%;
  }

  .p-introduce {
    padding: 2rem;
  }

  .p-introduce__item {
    width: 100%;
    flex-direction: row;
    gap: 3.125rem;
  }

  .p-introduce__param > p:first-child {
    font-size: 1.6rem;
    font-weight: bold;
  }

  .p-introduce__item.reverse {
    flex-direction: row-reverse;
  }

  .c-treatments {
    flex-direction: row;
    gap: 4.8125rem;
  }

  .l-treatment {
    padding-bottom: 10rem;
  }

  .l-access {
    padding: 10rem 2rem;
  }

  .l-info {
    top: -20rem;
  }

  .c-buttons {
    flex-direction: row;
    gap: 4rem;
    margin-top: 6.6785rem;
  }

  .c-button {
    width: 16rem;
    font-size: 1.5rem;
  }
}

/*-------------------------
  PC
-------------------------*/
@media screen and (min-width: 1200px) {
  /* アイコンのサイズ */
  .p-top__p {
    width: 10rem;
  }

  .p-top__m {
    width: 20rem;
  }

  .p-top__m .faq-display {
    display: none;
  }

  /* 予約・アクセス */
  .p-reserve.main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .p-reserve__break {
    display: none;
  }

  .p-reserve.main > p {
    font-size: 1.25rem;
  }

  .p-tel.main {
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
  }

  .l-map.main {
    margin-top: 0rem;
  }
}

