@import "./variables.css";

/* ==============================================================
   about-nursery Page
   ============================================================== */

.c-nav-buttons {
   align-items: flex-start;
   display: flex;
   gap: 24px;
}

.c-buttons {
   display: flex;
   gap: 16px;
   flex-direction: column;
   align-items: flex-start;
}



.about-nursery__fv {
   width: 100%;
   padding: 40px 40px 0 40px;
   display: flex;
   justify-content: center;
   background: linear-gradient(to bottom,
         var(--background-color) calc(100% - 280px),
         #ffffff calc(100% - 280px));
}

.about-nursery__fv-img img {
   width: 100%;
}

.about-nursery__fv .c-section-heading {
   padding: 40px 0;
   width: 100%;
   display: flex;
   align-items: start;
   text-align: left;
}

.about-nursery__first-section {
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 80px;
   padding-top: 80px;
}

.p-link-cards {
   width: 100%;
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   gap: 40px;
   align-items: center;
   justify-content: center;
}

.p-link-cards>div {
   min-width: 480px;
   max-width: calc((100% - 40px) / 2);
}

.p-link-card {
   height: 278px;
   width: 100%;
}

.p-visual-card_5 {
   width: 100%;
}


.about-nursery__last-section {
   padding-top: 120px;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 80px;
}

.about-nursery__last-section .c-page-title-simple {
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 16px;
}

.p-visual-cards {
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 40px;
}

.p-visual-card_5:nth-of-type(4) {
   flex-direction: row-reverse;
}

.about-nursery__last-section .p-visual-card_5__image {
   width: 50%;
   min-height: 420px;
}

.about-nursery__last-section .p-visual-card_5__content {
   width: 50%;
   justify-content: center;
   align-items: center;
}

.p-visual-card_5__content-inner {
   display: flex;
   flex-direction: column;
   align-items: start;
   text-align: left;
   max-width: 388px;
}

.p-visual-card_5__actions {
   width: 100%;
}

.p-visual-card_5__actions .c-button--development {
   width: 100%;
}

.order-1-pc {
   order: 1;
}

.order-2-pc {
   order: 2;
}

@media (max-width: 767px) {

   .about-nursery__fv {
      padding: 0;
   }
   .about-nursery__fv-img {
      margin-inline: -16px;
   }
   .about-nursery__fv .c-section-heading {
      align-items: center;
   }

   .about-nursery__first-section {
      padding-top: 40px;
      gap: 40px;
   }
   .p-link-cards {
      flex-direction: column;
      gap: 16px;
   }

   .p-link-cards>div {
      min-width: 0;
      width: 100%;
      max-width: none;
   }
   .p-link-card {
      height: 160px;
   }

   .p-visual-card_5,
   .p-visual-card_5:nth-of-type(4) {
      flex-direction: column;
   }

   .about-nursery__last-section .p-visual-card_5__image {
      width: 100%;
      min-height: 200px;
   }

   .about-nursery__last-section .p-visual-card_5__content {
      width: 100%;
   }

   .order-1-pc {
      order: 2;
   }

   .order-2-pc {
      order: 1;
   }
   .about-nursery__last-section {
      padding-top: 40px;
      gap: 40px;
   }

   .about-nursery__last-section .c-page-title-simple {
      gap: 8px;
   }

}
