@charset "utf-8";

.top__inner {
  padding-inline: 20px;
}

.fv {
  margin: 80px auto 0;
  padding: 90px 20px 189px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
@media screen and (min-width: 900px) {
  .fv {
  margin: 72px auto 0;
  }
}
.fv__bg {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
}

.fv__wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
@media screen and (min-width: 900px) {
  .fv__wrap {
    flex-direction: row;
    align-items: start;
    margin-left: 75px;
  }
}
.fv__title {
  margin: 64px 14px 0 0;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  line-height: calc(39 / 18);
  letter-spacing: 0.3em;
}
@media screen and (min-width: 900px) {
  .fv__title {
      writing-mode: vertical-rl;　
  }
}
.fv__swiper,
.fv__swiper-wrapper,
.fv__swiper-slide {
  position: relative;
  width: min(100%, 648px);
  margin: 0;
}
@media screen and (min-width: 900px) {
  .fv__swiper,
  .fv__swiper-wrapper,
  .fv__swiper-slide {
    width: min(calc(648 / 1366 * 100vw), 648px);
  }
}

.fv__swiper-wrapper {
  display: flex;
  transition-timing-function: linear;
  align-items: flex-start;
}
.fv__swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 648 / 450;
  width: min(100%, 648px);
  height: auto;
}
.fv__swiper-slide img {
  aspect-ratio: 648 / 450;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.top-about{
  position: relative;
  margin-top: 153px;
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column-reverse;
  gap: 40px;
}
@media screen and (min-width: 768px) {
  .top-about {
    align-items: center;
  }
}
@media screen and (min-width: 980px) {
  .top-about {
    margin-top: 353px;
    flex-direction: row;
    align-items: start;
  }
}
@media screen and (min-width: 1200px) {
  .top-about {
    padding: 0;
    gap: min(calc(218 / 1366 * 100vw), 218px);
  }
  
  .c3297 {
     margin-top: 124px;
  }
}

.top-service::before {
  content: "";
  position: absolute;
  background: url('../images/deco_top-service.png') center / contain no-repeat;
  width: 784px;
  height: 1115px;
  bottom: 206px;
  right: calc(50% + 25px);
}
.top-service__wrap {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media screen and (min-width: 1300px) {
  .top-service__wrap {
    flex-direction: row;
    gap: min(calc(150 / 1366 * 100vw), 150px);
    align-items: start;
  }
}

@media screen and (min-width: 1300px) {
  .c6034 {
    position: sticky;
    top: 82px;
    left: 0;
  } 
}

.c7029 {
  font-size: 16px !important;
}
@media screen and (min-width: 800px) {
  .c7029 {
    font-size: 18px !important;
  }
}

.top-service__Text {
  border-top: 1px solid #D6D6D6;
  width: fit-content;
}
.top-service__boxes {
  margin-top: 60px;
  display: flex;
  gap: 50px;
  flex-direction: column;
}
.c6549 {
    box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.16);
  border-radius: 5px;
}
.top-service__box {
  background: #FEFCF5;
  border-radius: 5px 5px 0 0 ;
  padding: 27px 0 44px;
  position: relative;
}
.top-service__box::after {
  content: "";
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
    background-image: linear-gradient(to right, #D6D6D6 1px, transparent 1px);
  background-size: 4px 1px;
  background-repeat: repeat-x;
  background-position: left bottom;
}
.top-service__box-wrap {
  margin-top: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 35px;
  padding: 0 20px;
}
@media screen and (min-width: 768px) {
  .top-service__box-wrap {
    padding: 0 50px;
    flex-direction: row;
  }
}
.top-service__num {
  padding: 3px 19px 5px !important;
  line-height: 1 !important;
  margin: 0 auto 20px;
  width: fit-content;
}
.top-service__box-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.top-service__box-title::before {
  content: "";
  background: url('../images/icon-title-main.svg') center / contain no-repeat;
  width: 18px;
  height: 6px;
}
.top-service__box-img  {
  aspect-ratio: 248 / 312;
  width: min(100%, 248px);
  height: 100%;
  object-fit: cover;
}
.top-service__box-link {
  width: 100%;
  padding: 23px 50px;
  border-radius: 5px;
  background: #2F88E9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;

  &::after {
    content: "";
    background: url('../images/arrow.svg') top left / cover no-repeat;
    width: 28px;
    height: 18px;
  }
}
.top-service__box-link p {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}
.top-service__box-link:hover {
  opacity: 0.8;
}

.top-link__wrap {
  max-width: 1550px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  background: #B9D3ED;
  gap: 2px;
  padding: 0 2px;
}
@media screen and (min-width: 768px) {
  .top-link__wrap {
   padding: 2px 0;
    grid-template-columns: repeat(2, 1fr);
  }
}

.top-link__item {
  padding: 70px 25px;
  background: #F2F9FF;
  border-radius: 0 0 20px 20px;
}
@media screen and (min-width: 768px) {
  .top-link__item {
   border-radius: 0 20px 20px 0;
  }
}
@media screen and (min-width: 1100px) {
  .top-link__item {
   padding: 98px 91px 95px;
  }
}
.top-link__item:nth-of-type(2) {
  border-radius: 20px 20px 0 0;
}
@media screen and (min-width: 768px) {
  .top-link__item:nth-of-type(2) {
  border-radius: 20px 0 0 20px;
}
}
.top-link__img {
  display: block;
  margin: 0 auto;
aspect-ratio: 500 / 242;
    width: min(100%, 500px);
  height: auto;
    border-radius: 5px;
    overflow: hidden;
    object-fit: cover;
}

.top-works__head {
  display: flex;
  gap: 40px;
  padding-bottom: 31px;
  border-bottom: 1px solid #D6D6D6;
  flex-direction: column;
  align-items: start;
}
@media screen and (min-width: 950px) {
  .top-works__head {
    flex-direction: row;
    align-items: end;
    gap: 90px;
  }
}

@media screen and (min-width: 1300px) {
    .top-news__wrap {
        gap: 97px;
    }
}

.top-news__body {
  margin-top: 70px;
  background: #fff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-radius: 10px ;
  padding: 0 45px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}