.top-mv {
  position: relative;
  overflow: hidden;
  margin-top: 112px;
}

.top-mv__background {
  position: relative;
}

.top-mv__background img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  display: block;
  max-width: 1200px;
  border-radius: 32px;
}

.top-mv__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.top-mv__text {
  position: absolute;
  z-index: 2;
  width: 757px;
  text-align: justify;
  left: 80px;
  bottom: 80px;
}

.top-mv__lead {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2px 2px;
  border: 2px solid #000;
  margin-bottom: 8px;
  text-align: justify;
  display: inline;
  line-height: 2;
}

.about {
  margin-top: 200px;
  position: relative;
  margin-bottom: 164px;
}

.about__inner {
  max-width: 1024px;
  width: 80%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.about__illust {
  max-width: 30%;
}

.about__content {
  max-width: 60%;
}

.about__sub-title {
  margin-top: 16px;
}

.about__text {
  margin-top: 16px;
  margin-bottom: 24px;
}

.about__back {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.about__back--white {
  top: -106px;
  right: -73px;
  width: 82%;
  background-image: url(../img/top-about_bg.svg);
  z-index: -2;
  aspect-ratio: 16 / 11.6;
}

.about__back--blue {
  top: -160px;
  left: -150px;
  width: 100%;
  max-width: 30%;
  background-image: url(../img/top-about_bg-blue.svg);
  z-index: -1;
  aspect-ratio: 1;
}

.about__back--red {
  bottom: -130px;
  right: -70px;
  width: 100%;
  max-width: 30%;
  background-image: url(../img/top-about_bg-red.svg);
  z-index: -1;
  aspect-ratio: 1;
}

/* WORKS */

.works {
  margin-top: 172px;
}

.works-title {
  text-align: center;
}

/* SERVICE */

.service {
  max-width: 1024px;
  width: 80%;
  margin: 0 auto;
  margin-top: 88px;
}

.service__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  border-radius: 24px;
  border: solid 2px #262626;
  background: #ff8080;
  overflow: hidden;
}

.service__content {
  padding: 7%;
}

.service__illust {
  position: relative;
  min-height: 280px;
  /* 縦並び時の高さ確保用 */
}

.service__illust img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service__text {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* CONTACT */

.contact {
  margin-top: 48px;
  padding: 215px 0 158px;
  background-image: url(../img/blue_bg.png);
  background-size: cover;
  background-position: center;
  position: relative;
}

.contact::before {
  background-image: url(../img/blue_bg_deco.svg);
  top: -1px;
  content: "";
  height: 120px;
  left: 0;
  position: absolute;
  width: 100%;
}

.contact__inner {
  max-width: 1024px;
  width: 60%;
  margin: 0 auto;
}

.contact__title {
  text-align: center;
}

.contact__copy {
  margin-top: 40px;
}

.contact__text {
  margin-top: 24px;
  margin-bottom: 40px;
}

/* カルーセル */

.works-carousel {
  margin: 24px auto 0;
  width: 1400px;
  max-width: 95%;
}

.works-carousel .metaslider {
  width: 100%;
}

.works-carousel .metaslider .slides,
.works-carousel .metaslider .slides li,
.works-carousel .metaslider .slides img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.works-carousel .metaslider .slides img {
  /* border: #262626 solid 1px !important; */
}

.works-carousel .metaslider .caption-wrap {
  position: static;
  background: #f7f5ef;
}

.works-carousel #metaslider-id-12935 .slides li {
  background: none;
}

.works-carousel #metaslider-id-12935 .flexslider .flex-direction-nav li a {
  background: #fff;
  width: 50px;
  height: 50px;
  border: #262626 solid 2px;
  top: 35%;
}

.works-carousel
  #metaslider-id-12935
  .flexslider
  .flex-direction-nav
  li
  a:after {
  background: #262626;
  top: 10px;
  /* 上から50%の位置に */
  transform: translateY(-50%);
  /* 矢印の高さ分を補正して真ん中に */
  mask-position: center;
  top: 24px;
}

.works-carousel .btn-youtube {
  color: #fff;
  background: #ff5959;
  padding: 8px;
}

.works-carousel .btn-site {
  color: #fff;
  background: #5995ff;
  padding: 8px;
}

.metaslider .slides li:focus-within {
  outline: none !important;
  outline-offset: 0 !important;
}

.metaslider .caption {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 4px !important;
}

.metaslider .caption h3 {
  font-size: 16px;
  width: 100%;
}

.metaslider .caption p {
  font-size: 14px;
}

.metaslider .caption a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
}

.metaslider .caption div:first-child,
.metaslider .caption div:nth-child(2) {
  width: 100%;
}

.works-carousel .btn-youtube,
.works-carousel .btn-site {
  font-size: 14px;
}

.p-news {
  max-width: 1024px;
  margin: 72px auto 0;
  width: 90%;
}

.p-news__inner {
  border: 2px solid #262626;
  border-radius: 12px;
  padding: 16px 24px;
  align-items: center;
  background: #fff;
}

.p-news__item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-news__cat {
  font-weight: bold;
  color: #1e3a8a;
  margin-right: 24px;
  border-right: 1px solid #000;
  padding-right: 24px;
}

.p-news__content {
  display: flex;
  align-items: center;
  width: 84%;
}

.p-news__date {
  color: #999;
  margin-right: 16px;
}

.p-news__title {
  flex: 1;
  color: #262626;
  text-decoration: none;
  margin-right: 16px;
  padding: 0 0 4px 0;
}

.p-news__more {
  white-space: nowrap;
  color: #262626;
  text-decoration: none;
  position: relative;
}

.p-news__more::after {
  content: "›";
  margin-left: 4px;
}

.site-footer {
  margin-top: 0px;
}

@media (max-width: 1024px) {
  .top-mv__background img {
    height: 480px;
  }
  .top-mv__text {
    width: 475px;
    left: 40px;
    bottom: 60px;
  }
  .about {
    margin-top: 140px;
    margin-bottom: 0;
  }
  .works {
    margin-top: 150px;
  }
  .about__back--blue {
    top: -120px;
  }
  .about__back--white {
    top: -65px;
  }
  .caption p {
    font-size: 12px;
  }
  .works-carousel .btn-youtube,
  .works-carousel .btn-site {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .about__back--white {
    width: 100%;
    top: -60px;
    right: -80px;
  }
}

@media (max-width: 768px) {
  .about {
    margin-top: 80px;
    overflow: hidden;
    padding: 60px 0 120px;
  }
  .about__content {
    margin-top: 16px;
    max-width: 100%;
  }
  .about__inner {
    flex-direction: column;
  }
  .about__back--blue {
    top: -60px;
    left: -120px;
    max-width: 50%;
  }
  .about__back--white {
    top: 250px;
    width: 95%;
    right: -45%;
    transform: translateX(-50%) scale(1.4);
  }
  .about__illust {
    max-width: 50%;
  }
  .about__sub-title {
    margin-top: 4px;
  }
  .about__text {
    margin: 0 auto;
    margin: 16px 0 16px;
  }
  .works {
    margin-top: 80px;
  }
  .caption h3 {
    font-size: 16px;
    width: 110px;
  }
  .metaslider .caption {
    gap: 4px;
  }
  .works-carousel .btn-youtube,
  .works-carousel .btn-site {
    padding: 0px 8px !important;
    font-size: 8px;
  }
  .works-carousel #metaslider-id-12935 .flexslider .flex-direction-nav li a {
    width: 40px;
    height: 40px;
    top: 50%;
  }
  .works-carousel
    #metaslider-id-12935
    .flexslider
    .flex-direction-nav
    li
    a:after {
    top: 18px;
  }
  .metaslider .flexslider {
    margin: 0 0 24px !important;
  }
  .service {
    width: 100%;
  }
  .service__inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
    border-radius: 0;
    border: none;
  }
  .service__content {
    order: 2;
  }
  .service__illust {
    order: 1;
    min-height: 500px;
    width: 90%;
    margin: 0 auto;
  }
  .service__illust img {
    border-radius: 8px;
  }
  .contact {
    padding: 72px 0;
  }
  .contact::before {
    height: 72px;
    background-size: cover;
  }
  .contact__inner {
    width: 90%;
    padding: 48px 0 0;
  }
  .p-news__content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .top-mv__background img {
    height: 500px;
    border-radius: 0;
  }
  .top-mv {
    margin: 0px;
  }
  .top-mv__inner {
    padding: 0px;
  }
  .about {
    padding: 64px 0 140px;
    margin-top: 0px;
  }
  .about__illust {
    max-width: 70%;
  }
  .about__back--white {
    top: 55%;
    left: 50%;
    transform: translateX(-50%) scale(1.7);
  }
  .about__back--blue {
    top: 180px;
    left: -140px;
    max-width: 49%;
  }
  .top-mv__text {
    width: 350px;
    left: 10px;
    bottom: 30px;
    font-size: 14px;
  }
  .works {
    margin-top: 0px;
  }
  .works-carousel #metaslider-id-12935 .flexslider .flex-direction-nav li a {
    top: 40%;
  }
  .p-news {
    max-width: 90%;
  }
  .p-news__cat {
    font-size: 14px;
  }
  .p-news__title {
    font-size: 14px;
  }
  .p-news__more {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .about__back--white {
    transform: translateX(-50%) scale(2.5);
  }
}

ul.slides {
  background: #f7f5ef !important;
}
