@charset "UTF-8";

/* =========================
   Page Top: First View
========================= */

.p-fv {
  padding-top: 32px;
  padding-bottom: 64px;
}

.p-fv__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.p-fv__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-fv__img {
  width: 100%;
}

.p-fv__img img {
  width: 100%;
}

.p-fv__lead {
  color: #625449;
  font-size: 1.5625rem;
  font-weight: 500;
  line-height: 1.6;
}

.p-fv__title {
  color: #625449;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-fv__badge {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  place-content: center;
  place-items: center;
}

.p-fv__badge li:nth-child(3) {
  grid-column: 1 / 3;
  justify-self: center;
}

.p-fv__visual img {
  width: 100%;
  object-fit: cover;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 1200px) {
  .p-fv__visual {
    width: calc(100% + (100vw - 1200px) / 2);
    margin-right: calc((100vw - 1200px) / -2);
  }
}

@media screen and (min-width: 768px) {
  .p-fv {
    padding-top: 30px;
    padding-bottom: 100px;
    overflow: hidden;
  }

  .p-fv__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: stretch;
  }

  .p-fv__content,
  .p-fv__visual {
    min-width: 0;
  }

  .p-fv__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .p-fv__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
  }

  .p-fv__badge {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-fv__badge li:nth-child(3) {
    grid-column: auto;
    justify-self: stretch;
  }
}

/* =========================
   Page Top: News
========================= */

.p-news {
  margin: 50px 0;
}

.p-news__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 30px;
}

.p-news__content {
  min-width: 0;
}

.p-news__list {
  display: flex;
  flex-direction: column;
}

.p-news__button {
  display: flex;
  justify-content: flex-end;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 1030px) {
  .p-news {
    padding: 0 50px;
  }

  .p-news__grid {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 220px;
    column-gap: 48px;
    align-items: center;
  }

  .p-news__button {
    justify-content: flex-end;
  }
}

/* =========================
   Page Top: About
========================= */

.p-about {
  margin: 50px 0 50px 0;
}

.p-about__grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
}

.p-about__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-about__lead {
  color: #625449;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-about__text p {
  color: #625449;
  font-size: 1rem;
  line-height: 2;
}

.p-about__button {
  margin-top: 8px;
}

.p-about__visual {
  display: flex;
  justify-content: center;
}

.p-about__images {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding-top: 40px;
  padding-right: 40px;
}

.p-about__image-main img {
  width: 80%;
  border-radius: 24px;
  display: block;
}

.p-about__image-sub {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 50%;
}

.p-about__image-sub img {
  width: 80%;
  border-radius: 16px;
  display: block;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 768px) {
  .p-about {
    padding-block: 50px;
  }

  .p-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.2fr;
    gap: 56px;
    align-items: start;
  }

  .p-about__visual {
    justify-content: flex-start;
  }

  .p-about__images {
    max-width: 600px;
    padding-top: 0;
    padding-right: 0;
  }
.c-section-heading
  .p-about__image-main {
    width: 60%;
    margin-right: auto;
  }

  .p-about__image-sub {
    bottom: -50px;
    right: 0px;
    width: 40%;
  }
  
}

/* =========================
   FEATURES と TREATMENT　の重なり
========================= */

.p-features {
  position: relative;
  padding: 56px 0 200px 0; /* ← 下余白を大きく */
  border: 6px solid #b8d4c7;
  border-radius: 24px;
  background-color: #e8f1ec;
}

.p-treatment {
  position: relative;
  margin-top: -140px; /* ← 上に引き上げる */
  z-index: 2;
  background-color: #fff;
  padding-top: 100px;
  padding-bottom: 50px;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 768px) {

  .p-features {
    padding: 72px 0 240px;
  }

}

/* =========================
   Page Top: Features
========================= */

.p-features__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.p-features__button {
  display: flex;
  justify-content: flex-start;
}

.p-features__content {
  position: relative;
  z-index: 1;
}

.p-features__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.p-features__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-features__image {
  overflow: hidden;
  border-radius: 16px;
}

.p-features__image img {
  width: 100%;
  aspect-ratio: 3.5/ 2;
  object-fit: cover;
  display: block;
}

.p-features__title {
  color: #625449;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

.p-features__text {
  color: #625449;
  font-size: 1rem;
  line-height: 1.9;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 768px) {
  .p-features__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 32px;
    margin-bottom: 48px;
  }

  .p-features__button {
    justify-content: flex-end;
    flex-shrink: 0;
  }

.p-features__content {
  width: 100%;
}

  .p-features__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .p-features__title {
    font-size: 1.25rem;
  }
}

/* =========================
   Page Top: Treatment
========================= */

.p-treatment__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-treatment__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-treatment__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-treatment__text p {
  color: #625449;
  font-size: 1rem;
  line-height: 2;
}

.p-treatment__menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 50px;
}

.p-treatment__main-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background-color: #37ab9d;
}

.p-treatment__main-image {
  overflow: hidden;
  border-radius: 12px;
}

.p-treatment__main-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.p-treatment__main-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-treatment__main-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-treatment__main-text {
  display: none;
}

.p-treatment__sub-menu {
  width: 100%;
}

.p-treatment__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.p-treatment__item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 12px;
  background-color: #e8f1ec;
}

.p-treatment__item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #ffffff;
}

.p-treatment__item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-treatment__item-title {
  color: #625449;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.p-treatment__item-arrow {
  color: #625449;
  font-size: 1rem;
  line-height: 1;
}

.p-treatment__button {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 768px) {

  .p-treatment__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.625fr);
    gap: 56px;
    align-items: start;
  }

  .p-treatment__main-card {
    grid-template-columns: 120px 1fr;
    gap: 24px;
    padding: 20px 24px;
  }

  .p-treatment__main-text {
    display: inline;
    color: #fff;
  }

  .p-treatment__main-title {
    font-size: 1.5rem;
  }

  .p-treatment__main-text {
    font-size: 1rem;
  }

  .p-treatment__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .p-treatment__item {
    min-height: 80px;
    padding: 16px 18px;
  }

  .p-treatment__button {
    justify-content: flex-end;
  }
}

/* =========================
   Page Top: Treatment
========================= */

.p-gallery {
  padding-block: 56px;
}

.p-gallery__slider {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-gallery__viewport {
  overflow: hidden;
}

.p-gallery__track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.p-gallery__item {
  flex: 0 0 100%;
}

.p-gallery__image {
  overflow: hidden;
  border-radius: 16px;
}

.p-gallery__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.p-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.p-gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background-color: #cfc7bf;
  cursor: pointer;
}

.p-gallery__dot.is-active {
  background-color: #37ab9d;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 768px) {
.p-gallery__viewport {
  overflow: hidden;
}

.p-gallery__track {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.p-gallery__item {
  flex: 0 0 280px;
}
}

/* =========================
   Page Top: Message
========================= */

.p-message {
  padding: 50px 0;
}

.p-message__grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  margin-top: 50px;
}

/* ===== 左テキスト ===== */

.p-message__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-message__title {
  color: #625449;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
}

.p-message__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-message__text p {
  color: #625449;
  font-size: 1rem;
  line-height: 2;
}

/* ===== 右画像 ===== */

.p-message__visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-items: center;
}

.p-message__name {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: -70px;
  margin-left: 16px;
}

.p-message__buttons {
  display: flex;
  gap: 16px;
}

.p-message__main-img img {
  border-radius: 20px;
}

/* =========================
   Tablet and up
========================= */

@media screen and (min-width: 768px) {

  .p-message__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .p-message__title {
    font-size: 1.75rem;
  }

  .p-message__main-img img {
    width: 80%;
  }

  .p-message__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .p-message__buttons {
    gap: 24px;
  }

}

.p-access__map img {
  cursor: pointer;
}