@charset "UTF-8";
/*-------------------------------------------
  スライダー表示に関するCSS　  slide
-------------------------------------------*/
.slide {
  max-width: 1200px;
  margin: auto;
  position: relative;
}

      .slide::after {
        content: "";
        width: 100%;
        height: 170px;
        background-color: #dbe6cb;
        display: block;
        position: absolute;
        top: 0vw;
        right: 0;
        z-index: -10;
      }

.slide .text {
  text-align: center;
}
.slide .text .section-title {
  margin-left: auto;
  margin-bottom: 5px;
}
.slide .text .description {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.slide .slide-list-area {
  height: 150px;
  display: flex;
  margin-bottom: 20px;
  overflow-x: hidden;
}
.slide .slide-list-area .slide-list {
  display: flex;
  animation: slide-left 60s infinite linear both;
}
.slide .slide-list-area .slide-list li {
  width: calc(50vw / 4);
}
.slide .slide-list-area .slide-list li img {
	width: 95%;
	margin-top: 10px;
  align-items: center;     /* 縦方向中央 */
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
.slide .btn {
  margin: 0 auto;
}

/*-------------------------------------------
スマートフォン
-------------------------------------------*/
@media screen and (max-width: 767px) {
  .section-title {
    font-size: 12vw;
  }

  /*-------------------------------------------
  slide
  -------------------------------------------*/
  .slide {
    margin-bottom: 10px;
  }
  .slide::after {
    width: 200%;
    height: 150px;
  }
  .slide .text {
    width: 100%;
    padding: 0 20px;
  }
  .slide .text .section-title {
    text-align: center;
    font-size: 1em;
  }
  .slide .text .description {
    margin-bottom: 20px;
  }
  .slide .slide-list-area {
    margin-bottom: 5px;
  }
  .slide .slide-list-area .slide-list li {
  width: calc(100vw / 4);
}

}

/* .cards ========== */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto;
  gap: 8px;
  margin: 1rem 0;

  .card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 8px 0;
    border-radius: 8px;
    padding: 8px;
    background: white;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);

    .thumb {
      grid-column: span 2;

      img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
      }
    }
    
    .title {
      text-align: center;
      grid-column: span 2;
      margin: 0;
      color: #0E4253;
      font-size: 0.875rem;
      font-weight: bold;
    }
  }
}

@media (width >= 768px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
