/*-------------------------------------------------------
  Toplayout
-------------------------------------------------------*/
/* ===== SP ===== */

.mainContents {
  width: 100%;
}

.mainContents__wrapper {
  display: block;
  margin: 0;
  padding: 0;
}

.mainImg {
  background-color: #fff;
  padding: 40px 0;
  background-image: url(/image/home/h1_sp.avif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.works,
.service {
  margin-bottom: 60px;
}

.service {
  margin-top: 32px;
}

.news__title-wrapper,
.service__title-wrapper,
.works__title-wrapper {
  margin: 0 20px 12px;
}

.news__title,
.service__title,
.works__title {
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  font-weight: bold;
  color: #000;
  text-align: left;
}

.mainImg__title {
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
  text-shadow: 0px 0px 10px rgba(10, 51, 83, 0.4);
}

.mainImg__text {
  font-size: 14px;
  line-height: 1.7;
  color: #fff;
  font-weight: bold;
  text-shadow: 0px 0px 30px rgba(10, 51, 83, 1.0);
  margin: 0 20px 32px;
}

.news__title-sub,
.service__title-sub,
.works__title-sub {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  font-weight: bold;
  margin-top: 8px;
  color: #fff;
  text-align: left;
}

.btnMainImgContact__wrapper a,
.news__list-item a,
.service__list a,
.works__slide a {
  text-decoration: none;
}

.btnMainImgContact__wrapper a:hover,
.news__list-item a:hover,
.service__list a:hover,
.works__slide a:hover {
  text-decoration: none;
}

.news,
.search__slide-wrapper,
.works__slide-wrapper {
  margin: 0 10px;
}

.service__list {
  margin-bottom: 32px;
  display: flex;
  /*コレ*/
  align-items: stretch;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.service__list-item {
  display: flex;
  align-items: stretch;
  width: calc(50% - 20px);
  margin: 10px;
}

.service__list-a {
  display: block;
  background-color: #fff;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  line-height: 1.2;
  width: 100%;
}

.service__list-a img {
  border-radius: 10px 10px 0 0;
}

.service__list-text {
  padding: 16px;
}

.title__category {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #858b9f;
}

.works__slide-item {
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  height: 100%;
}

.works__slide-item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px 10px 0px 0px;
  display: block;
  aspect-ratio: 16 / 9;
}

.search__slide-text,
.works__slide-text {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: #000;
  padding: 20px;
}

.slideArrows__item {
  display: flex;
  justify-content: center;
  height: 48px;
  margin: 12px 0 32px;
}

.slideArrows__prev,
.slideArrows__next {
  width: 48px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.slideArrows__prev {
  margin-right: 52px;
}

.slick-track {
  display: flex;
}

.slick-slide {
  padding: 20px 0;
  height: auto !important;
}

.btnMainImgContact__a {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-evenly;
  width: 280px;
  padding: 16px 0;
  text-align: center;
  margin: 0 auto;
  color: #fff;
  background: #ff6600;
  border-radius: 40px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
}

.btnMainImgContact__a::before {
  content: "";
  background-image: url(/image/common/icon_mail.svg);
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  margin: 0 8px 0 4px;
  display: inline-block;
}

.btnMainImgContact__a::after {
  content: "";
  background-image: url(/image/common/icon_window_white.svg);
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  margin: 0 4px 0 8px;
  display: inline-block;
}

.btnMore {
  display: block;
  width: 200px;
  height: 48px;
  line-height: 48px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #000;
  font-weight: bold;
  margin: 0 auto;
  background-image: url(/image/common/icon_arrow.svg);
  background-repeat: no-repeat;
  background-size: 48px 48px;
  background-position: right 20px top 50%;
}

a.btnMore {
  text-decoration: none;
}

.btnMore__text {
  margin-left: 36px;
}

.btnMore__text-service {
  margin-left: 20px;
}

.btnMore__service {
  width: 200px;
  background-position: right 0 top 50%;
}

.news {
  display: flex;
  flex-direction: column;
  margin-bottom: 64px;
}

.news__list {
  border-top: #fff 1px solid;
}

.news__list-item {
  border-bottom: #fff 1px solid;
}

.news__list-a {
  font-size: 16px;
  display: block;
  padding: 24px 16px;
  color: #000;
  position: relative;
}

.news__list-a::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  right: 0;
  margin-top: auto;
  margin-bottom: auto;
  display: block;
  width: 48px;
  background-image: url(/image/common/icon_arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

.news__title-wrapper {
  margin-bottom: 32px;
}

.news__day {
  font-size: 14px;
  margin-right: 16px;
  font-weight: bold;
  color: #fff;
}

/* ===== tablet ===== */
@media screen and (min-width:768px) {
  .mainContents__wrapper {
    margin-top: -20px;
    position: relative;
  }

  .mainContents__wrapper::before {
    top: 46px;
  }

  .mainImg {
    background-size: auto;
    background-image: url(/image/home/h1_pc.avif);
  }

  .service,
  .works {
    position: relative;
  }

  .news,
  .service__title-wrapper,
  .works__title-wrapper,
  .service__list {
    width: 728px;
    margin: 0 auto;
  }

  .mainImg__title,
  .news__title,
  .service__title,
  .works__title {
    font-size: 28px;
  }

  .service__title-sub,
  .works__title-sub {
    font-size: 14px;
  }

  .works__slide a:hover {
    text-decoration: none;
  }

  .works__slide-wrapper {
    margin: 0 20px;
  }

  .works__slide-item {
    border-radius: 20px;
  }

  .works__slide-item img {
    border-radius: 20px 20px 0px 0px;
  }

  .works__slide-text {
    font-size: 17px;
    padding: 24px;
  }

  .works__slide {
    z-index: 1;
  }

  .slideArrows,
  .btnMore__outer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 728px;
    margin: 0 auto;
  }

  .slideArrows__search {
    margin: 0 auto;
  }

  .slideArrows__experts-wrapper,
  .btnMore__wrapper {
    display: flex;
    justify-content: flex-end;
    width: 728px;
    margin: 0 auto;
  }

  .slideArrows__wrapper {
    display: flex;
    justify-content: flex-end;
    width: 728px;
    margin: 0 auto;
  }


  .slideArrows__search-wrapper {
    margin: 0 auto;
  }


  .slideArrows__item {
    justify-content: flex-start;
    width: 200px;
    margin: 16px 0;
  }

  .slideArrows__search-item {
    width: 200px;
    margin: 8px auto 0;
  }

  .slideArrows__prev:hover,
  .slideArrows__prev:focus,
  .slideArrows__next:hover,
  .slideArrows__next:focus {
    opacity: 0.6;
  }

  .btnMore {
    margin: 16px 0;
  }

  .btnMore__text {
    margin-left: 36px;
  }

  .service__title-wrapper {
    margin-bottom: 20px;
  }

  .works__slide-text {
    font-size: 16px;
  }

  .service {
    margin-top: 80px;
  }

  .service__list-item {
    width: calc(25% - 40px);
    margin: 0 20px;
  }

  .btnMore__service {
    width: 200px;
  }

  .news {
    flex-direction: row;
    margin-bottom: 64px;
  }

  .news__title-wrapper {
    width: 20%;
    margin-right: 88px;
  }

  .news__list {
    width: 80%;
  }

  .mainImg__text {
    text-align: center;
  }
}

/* ===== PC ===== */
@media screen and (min-width:1024px) {

  .news,
  .service__title-wrapper,
  .works__title-wrapper {
    width: 1000px;
  }

  .slideArrows,
  .btnMore__outer {
    width: 1000px;
  }

  .service__list,
  .slideArrows__wrapper,
  .btnMore__wrapper {
    width: 1000px;
  }

  .service__list-item {
    width: 220px;
  }

  .service__list-item:first-child {
    margin-left: 0;
  }

  .service__list-item:last-child {
    margin-right: 0;
  }

}