@charset "UTF-8";

.inner_block:has(.mgsblk-news-blocks):has(.mgsblk-works)
{
  padding: 40px !important;
}
.mgsblk-news-blocks:has(.mgsblk-news)
{
  background: #fff;
  padding: 40px 0;
}
.mgsblk-news
{
  margin: 0 auto 30px auto;
  width: 75%;
}

.mgsblk-news .data
{
  padding-top: 10px;
  display: grid;
  grid-template-columns: 100px 1fr;

}
.mgsblk-news .data .date
{
  color: #333;
}
.mgsblk-news .data .text
{
  color: #333;
  font-size: 15px;
}

.mgsblk-news-links
{
  text-align: right;
  width: 75%;
  margin: 0 auto;
}
.mgsblk-news-links a
{
  display: inline-block;
  padding: 13px 40px 15px 40px;
  color: #000;
  font-size: max(1vw, 15px);
}
.mgsblk-news-links a::after
{
  content: "";
  background: url(../../img/svg/arrow_right2.svg) no-repeat;
  display: inline-block;
  background-size: contain;
  width: 15px;
  height: 15px;
  margin-left: 7px;
  vertical-align: middle;
}


/* MOBILE  */
@media only screen and (max-width: 739px)
{
  .mgsblk-news {
    margin: 0 auto 30px auto;
    width: 87%;
  }
  .mgsblk-news-links
  {
    text-align: right;
    width: 87%;
    margin: 0 auto;
  }
  .mgsblk-news-links a {
    display: inline-block;
    padding: 0;
    color: #000;
    font-size: max(1vw, 15px);
  }
}

/* -------------------------------------------------------------------------------- */
/* works */

.mgsblk-works
{
  /* display: grid; */
  /* grid-template-columns: 1fr 1fr 1fr; */
  /* gap: 50px; */
  margin-bottom: 50px;
  position: relative;
}
.mgsblk-works img
{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.mgsblk-works .data
{
  padding-top: 10px;
}
.mgsblk-works .data .text
{
  text-align: center;
  color: #333;
  font-size: 16px;
}

.mgsblk-works.list-works a
{
  position: relative;
}

.mgsblk-works.list-works a .data
{
  display: none;
}
.mgsblk-works.list-works a:hover .data
{
  display: block;
  padding-top: 10px;
  position: absolute;
  left: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  top: 0;
  background: rgb(0, 0, 0, 0.3);
  place-content:center;
}
.mgsblk-works.list-works .data .text{color: #fff;}

.mgsblk-works-links
{
  text-align: center;
}
.mgsblk-works-links a
{
  display: inline-block;
  background-color: #fff;
  padding: 13px 40px 15px 40px;
  color: #000;
  font-size: max(1vw, 15px);
}
.mgsblk-works-links a::after
{
  content: "";
  background: url(../../img/svg/arrow_right2.svg) no-repeat;
  display: inline-block;
  background-size: contain;
  width: 15px;
  height: 15px;
  margin-left: 7px;
  vertical-align: middle;
}

.slick-works {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.slick-works .ef-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.slick-works .slick-slide {
  padding: 0 10px; /* スライド間の余白 */
}
.slick-works .slick-dots {
  position: inherit !important;
}
.arrow_box {
  position: absolute;
  bottom: 0;
  width: 100%;
}
.slick-prev:before, .slick-next:before {
  color: #000;
}
.slick-prev,
.slick-next {
  position: absolute;
  top: 47%;
  transform: translateY(-50%);
  z-index: 1;
}
.slick-prev {
  /* left: 0; */
}
.slick-next {
  /* right: 0; */
}


/* TABLET */
@media screen and (min-width: 740px) and (max-width: 899px)
{
  .inner_block:has(.mgsblk-news-blocks):has(.mgsblk-works) {
    padding: 20px !important;
  }
  /* .slick-works {
    padding-bottom: 30px;
  } */
  .slick-works .ef-image img {
    height: 300px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
  }
  .slick-works .slick-dots {
    display: none !important;
  }
  .slick-prev,
  .slick-next {
    display: none !important;
  }

}

/* MOBILE  */
@media only screen and (max-width: 739px)
{
  .inner_block:has(.mgsblk-news-blocks):has(.mgsblk-works) {
    padding: 20px !important;
  }
  .slick-prev,
  .slick-next {
    display: none !important;
  }

}