/**
 * File: main.css
 * Usage: トップページのスタイルを定義します。
*/

.ly_fv {
  position: relative;
}

.bl_fv_imgs {
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 5px;
  grid-row-gap: 5px;
  height: 100vh;
}

.bl_fv_imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

/* Swiperスライダーのグリッド配置 */
.fv-swiper-1 {
  grid-area: 1 / 1 / 2 / 4;
}
.fv-swiper-2 {
  grid-area: 2 / 1 / 3 / 2;
}
.fv-swiper-3 {
  grid-area: 2 / 2 / 3 / 4;
}
.fv-swiper-4 {
  grid-area: 3 / 1 / 4 / 4;
}

/* Swiperコンテナのスタイル */
.bl_fv_imgs .swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
}

.bl_fv_imgs .swiper-wrapper {
  height: 100%;
}

.bl_fv_imgs .swiper-slide {
  height: 100%;
}

.bl_fvCont_ttl {
  position: absolute;
  top: 58%;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 18px;
  z-index: 1;
}

.bl_fvCont_ttl span {
  display: flex;
  color: #fff;
  background: #64bcbe;
  line-height: 1;
  padding: 8px 10px;
  width: max-content;
}

/* plan */

/* service */
.ly_service {
  margin-top: 64px;
}

.bl_service_wrap {
  padding-inline: 20px;
}

.bl_service_item {
  position: relative;
  margin-top: 24px;
}

.bl_service_item img {
  width: 100%;
}

.bl_service_item h3 {
  background: #64bcbe;
  color: white;
  padding: 6px 12px;
  display: flex;
  width: max-content;
  margin: 0;
  margin-left: auto;
  margin-right: 10px;
  font-size: 16px;
  margin-top: -16px;
  z-index: 1;
  text-align: right;
  position: relative;
}

/* about */
.ly_about {
  margin-top: 64px;
}

.bl_about_wrap {
  padding-inline: 20px;
  margin-top: 40px;
  max-width: 768px;
  margin-inline: auto;
}

.bl_about_item {
  padding-block: 20px;
  display: flex;
  border-top: #000 1px solid;
  font-size: 15px;
  font-weight: 500;
}

.bl_about_item:last-of-type {
  border-bottom: #000 1px solid;
}

.bl_about_item p:first-child {
  width: 30%;
}

.bl_about_item p:last-child {
  width: 70%;
}

.el_instagram_link {
  color: #E4405F;
  text-decoration: underline;
  font-weight: 500;
}

@media screen and (min-width: 768px) {
  .bl_service_wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin-inline: auto;
  }
  .bl_service_item {
    margin-top: 0;
  }

  .ly_service {
    margin-top: 100px;
  }

  .bl_plan_wrap {
    flex-direction: row;
    justify-content: center;
  }

  .bl_plan_item {
    max-width: 375px;
    width: 100%;
  }

  .bl_plan_under_txt {
    font-size: 14px;
  }

  .bl_about_item {
    font-size: 16px;
  }
}

@media screen and (min-width: 1024px) {
  .bl_fv_imgs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .fv-swiper-1 {
    grid-area: 1 / 1 / 6 / 3;
  }
  .fv-swiper-2 {
    grid-area: 1 / 3 / 3 / 5;
  }
  .fv-swiper-3 {
    grid-area: 3 / 3 / 6 / 5;
  }
  .fv-swiper-4 {
    grid-area: 1 / 5 / 6 / 7;
  }

  .bl_fvCont_ttl {
    font-size: 32px;
  }

  .ly_about,
  .ly_news {
    margin-top: 100px;
  }
}

@media screen and (min-width: 1160px) {
  .bl_fvCont_ttl {
    left: calc(50% - 580px);
  }
}

@media screen and (min-width: 1560px) {
  .bl_fvCont_ttl {
    font-size: 45px;
  }
}
