@charset "utf-8";


.service{
  margin: 0 0 100px;
}

.service .container{
  padding:3.5rem 5% 5rem !important;
  background:#E6E6E6;
  border-radius:20px;
}

.service-title{
  max-width:880px;
  margin:0 auto 3rem;
}

.service-title h2{
  font-size:clamp(1.125rem, 0.833rem + 0.97vw, 2rem);
  display:flex;
  align-items:center;
  gap:16px;
}

.service-title h2::before{
  content:"";
  display:block;
  width:22px;
  height:22px;
  background:#3BA066;
  border-radius:999vh;
}

.service-title h3{
  color:#3BA066;
  font-size:clamp(1.125rem, 1rem + 0.42vw, 1.5rem);
  margin:20px 0;
}

.service-wrap{
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto 100px;
  width: 75%;
}

.service-item{
  grid-column: span 2;
  width: 100%;
  text-align: center;
  font-size: 15px;
}

.service-item a{
  display:block;
  width:100%;
}

/* 1段目（4個）を中央寄せ */
.service-item:nth-child(1){ grid-column: 2 / span 2; }
.service-item:nth-child(2){ grid-column: 4 / span 2; }
.service-item:nth-child(3){ grid-column: 6 / span 2; }
.service-item:nth-child(4){ grid-column: 8 / span 2; }

.service-item img{
  max-width: 120px;
  margin: 0 auto 1rem;
  width:90%;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.16);
  border-radius: 999vh;
  transition:0.3s;
}

.service-bg{
  margin-top:100px;
}

.service-bg-item{
  border-radius:5px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-top:2.5rem;
  background: #fff;
  border:1px solid #000000;
  overflow: hidden;
}

.service-bg-item > img{
  width: 30%;
  padding: 1.5rem 3%;
  background:#3BA066;
}

.service-bg-txt{
  width: 70%;
  color: #000000;
  padding: 2.5rem 5%;
  border-left:1px solid #000000;
}

.service-bg-txt h3{
  font-size:clamp(1.125rem, 1rem + 0.42vw, 1.5rem);
  margin-bottom:1rem;
}

.service-2 .service-bg-item > img{
  background:#82BF9C;
}

.service-2 .service-bg-txt{
  color:#000000;
}

.service-2 .service-title h2::before{
  background:#82BF9C;
}

.service-title h3{
  color:#60B283;
}

.service-2 .service-wrap{
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto 100px;
  width: 60%;
}

.service-2 .service-item{
  grid-column: span 2;
  width: 100%;
  text-align: center;
  font-size: 15px;
}

/* 1段目（3個）を中央配置 */
.service-2 .service-item:nth-child(1){
  grid-column: 2 / span 2;
}

.service-2 .service-item:nth-child(2){
  grid-column: 4 / span 2;
}

.service-2 .service-item:nth-child(3){
  grid-column: 6 / span 2;
}

.service-item a p{
  line-height:1.5;
}

.service-item a:hover img{
  box-shadow:none;
  transform:translateY(1px);
}

.before .container{
  max-width:880px;
}

.works-slider-section {
  --card-width: 635px;
  --slide-gap: 130px;
  --arrow-size: 68px;
  margin-top:3.5rem;
  position: relative;
  overflow: hidden;
}

.works-slider {
  width: 100%;
  overflow: visible;
}

.works-slide {
  width: var(--card-width);
  height: auto;
}

/* カード */
.works-card {
  box-sizing: border-box;
  height: 100%;
  padding: 3.5rem 40px 2.5rem;
  background-color: #E6E6E6;
  border-radius: 10px;
}

/* Before・After画像 */
.works-card__images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.works-card__image {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
}

.works-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 260 / 314;
  object-fit: cover;
}

/* Before・Afterラベル */
.works-card__image p{
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  min-height: 36px;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 18px;
  background-color: #fff;
  border: 1px solid #111;
  border-radius: 9999px;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transform: translateX(-50%);
}

.works-card__image:last-child p{
  background-color: #69c68f;
}

/* テキスト部分 */
.works-card__content {
  padding-top: 30px;
}

.works-card__content h3{
  color: #007934;
  font-size: clamp(1.125rem, 0.917rem + 0.69vw, 1.75rem);
  margin: 0.5rem 0;
}

.works-card__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.works-card__tags p {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 11px;
  background-color: #fff;
  border-radius: 5px;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.works-card__tags p.green {
  background-color: #d7ecd5;
}

.works-card__text {
  margin: 20px 0 0;
  color: #111;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* 矢印 */
.works-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 50%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background-color 0.3s,
    transform 0.3s,
    opacity 0.3s;
}

.works-slider__arrow--prev {
  left: calc(
    50% - (var(--card-width) / 2) - (var(--slide-gap) / 2) -
    (var(--arrow-size) / 2)
    );
}

.works-slider__arrow--next {
  right: calc(
    50% - (var(--card-width) / 2) - (var(--slide-gap) / 2) -
    (var(--arrow-size) / 2)
    );
}

.works-slider__arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

/* Swiperの無効状態 */
.works-slider__arrow.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* 画面幅1200px以下 */
@media screen and (max-width: 1200px) {
  .works-slider-section {
    --card-width: 560px;
    --slide-gap: 100px;
  }

  .works-card {
    padding: 45px 38px 32px;
  }

  .works-card__image img {
    height: 280px;
  }

  .works-card__title {
    font-size: 25px;
  }
}

/* タブレット・スマートフォン */
@media screen and (max-width: 767px) {
  .works-slider-section {
    --card-width: calc(100vw - 40px);
    --slide-gap: 20px;
    --arrow-size: 48px;
    margin-top: 0;
    padding: 50px 0 0;
    overflow: hidden;
  }

  .works-slider{
    padding-bottom:5rem;
  }

  .works-slide {
    width: var(--card-width);
  }

  .works-card {
    padding: 28px 20px 30px;
    border-radius: 8px;
  }

  .works-card__images {
    gap: 12px;
  }

  .works-card__image {
    padding-bottom: 15px;
  }

  .works-card__image img {
    height: 48vw;
    max-height: 230px;
  }

  .works-card__label {
    min-width: 82px;
    min-height: 30px;
    padding: 5px 12px;
    font-size: 12px;
  }

  .works-card__content {
    padding-top: 22px;
  }

  .works-card__heading {
    display: block;
  }

  .works-card__title {
    font-size: 21px;
    letter-spacing: 0.04em;
  }

  .works-card__tags {
    margin-top: 12px;
  }

  .works-card__tags span {
    min-height: 27px;
    padding: 4px 9px;
    font-size: 12px;
  }

  .works-card__text {
    margin-top: 15px;
    font-size: 14px;
  }

  /* SPではカード下部に矢印を配置 */
  .works-slider__arrow {
    top: auto;
    bottom: 15px;
    transform: none;
  }

  .works-slider__arrow--prev {
    left: calc(50% - 58px);
  }

  .works-slider__arrow--next {
    right: calc(50% - 58px);
  }

  .works-slider__arrow:hover {
    transform: scale(1.05);
  }
}

@media screen and (max-width: 1600px) {
  .service-2 .service-wrap{
    width: 75%;
  }
  .service-wrap{
    width: 95%;
  }
}

@media screen and (max-width: 1450px) {
  .service-wrap{
    width: 100%;
  }
  .service-2 .service-wrap {
    width: 79%;
  }
}


@media screen and (max-width: 1380px) {
  .service-wrap{
    grid-template-columns: repeat(9, 1fr);
    max-width: 600px;
  }
  .service-2 .service-wrap{
    grid-template-columns: repeat(8, 1fr);
    max-width: 600px;
  }
  .service-item,
  .service-item:nth-child(1),
  .service-item:nth-child(2),
  .service-item:nth-child(3),
  .service-item:nth-child(4){
    grid-column: span 3;
  }
  .service-2 .service-wrap{
    width:100%;
    max-width: 800px;
  }
  .service-2 .service-item:nth-child(1),
  .service-2 .service-item:nth-child(2),
  .service-2 .service-item:nth-child(3),
  .service-2 .service-item{
    grid-column: span 2;
  }
}

@media screen and (max-width: 1024px) {
  .service-bg-item{
    flex-direction: column;
    max-width: 500px;
    margin: 2.5rem auto 0;
  }
  .service-bg-txt {
    width: 100%;
  }
  .service-bg-item > img {
    width: 100%;
  }
  .service .container{
    width:90%;
  }
  .service-2 .service-wrap {
    grid-template-columns: repeat(9, 1fr);
    gap: 2rem;
    max-width: 600px;
  }
  .service-wrap{
    gap: 2rem;
  }
  .service-2 .service-item:nth-child(1), .service-2 .service-item:nth-child(2), .service-2 .service-item:nth-child(3), .service-2 .service-item {
    grid-column: span 3;
  }
  .service-item img {
    margin: 0 auto 1rem;
  }
  .service-bg-txt{
    border:none;
  }
}

@media screen and (max-width: 767px) {
  .service-item, .service-item:nth-child(1), .service-item:nth-child(2), .service-item:nth-child(3), .service-item:nth-child(4) {
    grid-column: span 2;
  }
  .service-wrap ,
  .service-2 .service-wrap{
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 0 auto 3rem;
  }
  .service-item,
  .service-2 .service-item{
    font-size: 12px;
  }
  .service-item img {
    margin: 0 auto 0.5rem;
    width: 85%;
  }
  .service-bg {
    margin-top: 3rem;
  }
  .service-bg-item{
    margin-top: 1.5rem;
  }
  .service-bg-txt h3{
    margin-bottom: 0.5rem;
  }
  .service-bg-item > img{
    padding:0.5rem;
  }
  .service-bg-txt{
    padding:1rem;
  }
  .service .container {
    width: 100%;
    border-radius: 0px;
  }
  .service {
    margin: 0;
  }
  .service .container {
    padding: 2.5rem 5% 3rem !important;
  }
  .service-2 .service-item:nth-child(1), .service-2 .service-item:nth-child(2), .service-2 .service-item:nth-child(3), .service-2 .service-item {
    grid-column: span 2;
  }
  .service + .before{
    margin-top:3rem;
  }
  .service-bg-gray{
    background: #E6E6E6;
  }
}
