html,main {
    overflow-x: hidden;
}

.pageContainer {
    margin-block: 1.5rem 0;
}

.contactCTA {
    margin-top: 0;
}

.pageContents {
    .leaf-3 {
        background-image: url(../../images/common/img_bg_contents-leaf-2.webp);
        width: 4.6rem;
        height: 2.8rem;
        bottom: 21.5rem;
        right: -8.7rem;
        animation: fall-right 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 1s;
    }
    .leaf-4 {
        background-image: url(../../images/common/img_bg_contents-leaf-1.webp);
        width: 7.1rem;
        height: 4.9rem;
        bottom: 13rem;
        right: -14rem;
        animation: fall-left 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 0.8s;
    }
    .leaf-5 {
        background-image: url(../../images/common/img_bg_contents-leaf-2.webp);
        width: 4.8rem;
        height: 2.8rem;
        bottom: 34rem;
        right: -13.7rem;
        animation: fall-right 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 1s;
    }
    .leaf-6 {
        background-image: url(../../images/common/img_bg_contents-leaf-1.webp);
        width: 7.1rem;
        height: 4.9rem;
        bottom: 147rem;
        left: -13rem;
        animation: fall-left-leaf6 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        animation-delay: 0.8s;
    }
    @media screen and (max-width: 767px) {
        .leaf-1 {
            top: 53rem;
        }
        .leaf-3 {
            width: 3.7rem;
            bottom: -5.5rem;
            right: unset;
            left: 5.5rem;
            animation: fall-left-leaf3 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
            animation-delay: 1s;
        }
        .leaf-4 {
            width: 6rem;
            bottom: -8rem;
            right: unset;
            left: -1rem;
            animation: fall-left-leaf4 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }
        .leaf-5 {
            bottom: 320rem;
            left: -2rem;
        }
    }
}

@keyframes fall-left-leaf3 {
  0% {
    transform: translate(60px, -60px) rotate(170deg);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) rotate(160deg);
    opacity: 1;
  }
}

@keyframes fall-left-leaf4 {
  0% {
    transform: translate(-60px, -60px) rotate(35deg);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) rotate(25deg);
    opacity: 1;
  }
}

@keyframes fall-left-leaf6 {
  0% {
    transform: translate(60px, -60px) rotate(145deg);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0) rotate(135deg);
    opacity: 1;
  }
}

#pageService__lead {
    padding-bottom: 10rem;
   .pageContents {
    hgroup {
      .service__title {
        font-size: 2.6rem;
        font-weight: 700;
        font-family: var(--familyZenMaruGothic);
        line-height: 1.42;
        letter-spacing: 0.06em;
        text-align: center;
      }
      .service__text {
        font-size: 1.6rem;
        line-height: 2.125;
        letter-spacing: 0.03em;
        margin-top: 2rem;
        text-align: center;
      }
    } 
    .serviceList__container {
        background: var(--colorWhite);
        padding: 3.5rem 8rem 4rem;
        margin-top: 2.8rem;
        border-radius: 3rem;
        .serviceList__title {
            font-size: 2.8rem;
            font-weight: 700;
            font-family: var(--familyZenMaruGothic);
            line-height: 1.1;
            letter-spacing: -0.05em;
            text-align: center;
        }
        .serviceList {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.6rem 2rem;
            margin-top: 3.2rem;
            .serviceList__item {
                .serviceList__link {
                    border-radius: 3.5rem 0 3.5rem 3.5rem;
                    display: flex;
                    align-items: center;
                    gap: 1.2rem;
                    position: relative;
                    transition: 0.3s;
                    padding: 1rem 2.5rem;
                    box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.25);
                    height: 7rem;
                    .serviceList__img {
                        width: 3.4rem;
                    }
                    .serviceList__text {
                        font-size: 1.8rem;
                        font-weight: 700;
                        letter-spacing: 0.04em;
                        line-height: 1.72;
                    }
                    .serviceList__arrow {
                        background: var(--colorWhite);
                        border-radius: 50%;
                        width: 4rem;
                        height: 4rem;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        position: absolute;
                        right: 1.9rem;
                        top: 50%;
                        transform: translateY(-50%);
                        img {
                            transform: rotate(90deg);
                            width: 1.7rem;
                            height: 1.4rem;
                        }
                    }
                    @media (hover: hover) {
                        &:hover {
                            background-color: var(--hover-bg)!important;
                        }
                    }
                }
            }
        }
    }
    .service__bottomText {
        font-size: 1.6rem;
        letter-spacing: 0.033em;
        line-height: 2.125;
        text-align: center;
        margin-top: 3.5rem;
    }
    .strength_BTN {
        margin: 1.5rem auto 0;
        display: grid;
    }
   } 
   @media screen and (max-width: 767px) {
        .pageContents {
            hgroup  {
                .service__title {
                    font-size: 2.4rem;
                    letter-spacing: 0;
                }
                .service__text {
                    font-size: 1.6rem;
                    line-height: 1.75;
                    text-align: start;
                    padding-inline: 3.4rem 2.8rem;
                    margin-top: 2.5rem;
                    letter-spacing: 0;
                }
            }
            .serviceList__container {
                margin: 2.5rem 1rem 0;
                padding: 3.4rem 2rem 4rem 1.4rem;
                border-radius: 0.96rem;
                .serviceList__title {
                    font-size: 2.1rem;
                }
                .serviceList {
                    grid-template-columns: 1fr;
                    gap: 0.7rem;
                    margin-top: 2rem;
                    .serviceList__item {
                        .serviceList__link {
                            height: unset;
                            padding: 1rem 1.8rem;
                            display: grid;
                            grid-template-columns: 2.5rem auto;
                            .serviceList__img {
                                width: 2.485rem;
                                margin-inline: auto;
                            }
                            .serviceList__text {
                                font-size: 1.4rem;
                                letter-spacing: 0.032em;
                            }
                            .serviceList__arrow {
                                width: 2.093rem;
                                height: 1.988rem;
                                right: 0.8rem;
                                img {
                                    width: 0.87rem;
                                    height: 0.72rem;
                                }
                            }
                        }
                    }
                }
            }
            .service__bottomText {
                margin-top: 2rem;
                padding-inline: 3.2rem;
                letter-spacing: 0;
                line-height: 1.75;
            }
            .strength_BTN {
                width: 30.3rem;
                p {
                    font-size: 1.6rem;
                }
            }
        }
    }
}

#serviceContents {
    padding-block: 10.5rem 13rem;
    background: var(--colorWhite);
    position: relative;
    .pageContents {
        .bg-leaf {
            z-index: 0;
        }
    }
    .serviceContents-tree {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        .serviceContents-tree-1 {
            background-image: url(../../images/common/img_bg_left-tree.webp);
            width: 27rem;
            height: 131rem;
            top: -15rem;
            left: 0;
            z-index: 0;
            opacity: 1;
        }
        .serviceContents-tree-2 {
            background-image: url(../../images/common/img_bg_right-tree.webp);
            width: 24rem;
            height: 57rem;
            top: 157rem;
            right: 0;
            z-index: 0;
            opacity: 1;
        }
        .serviceContents-tree-3 {
            background-image: url(../../images/common/img_bg_left-tree.webp);
            width: 27rem;
            height: 131rem;
            bottom: -3rem;
            left: 0;
            z-index: 0;
            opacity: 1;
        }
    }
    .serviceContents__titleWrap {
        border-bottom: 1px solid #AEB7C0;
        padding-bottom: 2.5rem;
        .serviceContents__title {
            font-size: 2.6rem;
            font-weight: 700;
            font-family: var(--familyZenMaruGothic);
            line-height: 1.07;
            letter-spacing: 0.032em;
            text-align: center;
            position: relative;
            padding-inline: 4rem;
            width: fit-content;
            margin-inline: auto;
            &::before ,
            &::after {
                content: "";
                background-image: url(../../images/service/icon-clover.svg);
                background-position: center;
                background-repeat: no-repeat;
                background-size: cover;
                width: 2.4rem;
                height: 2.4rem;
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
            }
            &::before {
                left: 0;
            }
            &::after {
                right: 0;
            }
        }
    }
    .serviceContents__list {
        display: grid;
        gap: 2rem;
        margin-top: 5rem;
        .serviceContents__item {
            border-radius: 3rem 3rem 0 3rem;
            padding-block: 3rem 0;
            position: relative;
            .serviceContents__circle {
              width: 9.9rem;
              height: 9.9rem;
              background: var(--colorWhite);
              border-radius: 50%;
              font-size: 2.6rem;
              font-weight: 700;
              font-family: var(--familyZenMaruGothic);
              letter-spacing: 0.03em;
              line-height: 1.2;
              display: flex;
              align-items: center;
              justify-content: center;
              position: absolute;
              top: 1.8rem;
              right: 2.7rem;
            }
            .serviceContents__top {
                display: grid;
                grid-template-columns: 46.5% auto;
                .serviceContents__body {
                    
                    .serviceContents__text {
                        font-size: 1.8rem;
                        line-height: 1.83;
                        letter-spacing: 0.03em;
                        margin-top: 2rem;
                        padding-inline: 4.3rem 4rem;
                    }
                }
            }
            .serviceContents__bottom {
                background: var(--colorWhite);
                padding: 1.5rem 4.5rem 2.5rem;
                margin: 2.5rem 3.5rem 3rem;
                border-radius: 1rem;
                .serviceContents__subTitle {
                    font-size: 2rem;
                    font-weight: 700;
                    line-height: 1.35;
                    letter-spacing: 0.03em;
                }
                .serviceContents__subList {
                    display: grid;
                    grid-template-columns: repeat(3,1fr);
                    border-block: 1px solid #D9D9D9;
                    margin-top: 1rem;
                    .serviceContents__subLink {
                        @media (hover: hover) {
                            &:where([href]):hover {
                                background-color: var(--hover-bg) !important;
                            }
                        }
                        &:not([href]) {
                            cursor: default;
                            &::after {
                                display: none;
                            }
                        }
                    }
                    li .serviceContents__subLink {
                        padding: 0 6rem 0 2rem;
                        position: relative;
                        border-bottom: 1px solid #D9D9D9;
                        align-content: center;
                        display: block;
                        line-break: strict;
                        height: 8rem;
                        transition: 0.3s;
                        &::before {
                            content: "";
                            position: absolute;
                            top: 0;
                            right: 0;
                            width: 1px;       
                            height: 100%;

                            background: repeating-linear-gradient(
                                to bottom,
                                #D9D9D9 0px,
                                #D9D9D9 4px,
                                transparent 4px,
                                transparent 8px 
                            );

                        }
                        &::after {
                            content: "";
                            right: 2.5rem;
                            top: 50%;
                            transform: translateY(-50%);
                            background-image: url(../../images/common/icon-arrow.svg);
                            background-position: center;
                            background-repeat: no-repeat;
                            background-size: cover;
                            width: 1.0rem;
                            height: 0.9rem;
                            position: absolute;
                        }
                        
                    }
                    li {
                        &:nth-child(3n) a {
                            border-right: none;
                        }
                        @media screen and (min-width: 768px) {
                            &:nth-last-child(1):nth-child(3n) a,
                            &:nth-last-child(2):nth-child(3n-1) a,
                            &:nth-last-child(3):nth-child(3n-2) a,
                            &:nth-last-child(1):nth-child(3n+1) a,
                            &:nth-last-child(1):nth-child(3n+2) a,
                            &:nth-last-child(2):nth-child(3n+1) a {
                                border-bottom: none;
                            }
                        }
                    }
                }
            }
        }
    }
    
    @media screen and (max-width: 767px) {
        padding-block: 6.5rem 10rem;
        .container1040 {
            padding-inline: 3rem 2.6rem;
        }
        .serviceContents-tree {
            .serviceContents-tree-1 {
                background-image: url(../../images/common/img_bg-contents-tree-1-sp.webp);
                width: 8.8rem;
                height: 40.5rem;
                top: 131rem;
                left: 0;
                z-index: 0;
                opacity: 1;
            }
            .serviceContents-tree-2 {
                background-image: url(../../images/common/img_bg-contents-tree-2-sp.webp);
                width: 16.3rem;
                height: 32rem;
                top: 23rem;
                right: 0;
                z-index: 0;
                opacity: 1;
            }
            .serviceContents-tree-3 {
                background-image: url(../../images/common/img_bg-contents-tree-2-sp.webp);
                width: 16.3rem;
                height: 32rem;
                bottom: 69rem;
                left: unset;
                right: 0;
                z-index: 0;
                opacity: 1;
            }
        }
        .serviceContents__titleWrap {
            padding-bottom: 2rem;
            .serviceContents__title {
                font-size: 2rem;
                letter-spacing: 0;
                width: 100%;
            }
        }
        .serviceContents__list {
            margin-top: 2.2rem;
            .serviceContents__item {
                padding-block: 2rem;
                .serviceContents__circle {
                    width: 7.6rem;
                    height: 7.6rem;
                    font-size: 2rem;
                    top: -0.8rem;
                    right: -2.4rem;
                }
                .serviceContents__top {
                    grid-template-columns: 1fr;
                    .serviceContents__image {
                        margin-top: 1.5rem;
                        margin-right: 1.875rem;
                        border-radius: 0 1.6rem 1.6rem 0;
                    }
                    .serviceContents__body {
                        .serviceContents__text  {
                            font-size: 1.6rem;
                            letter-spacing: 0.027em;
                            padding-inline: 2.6rem 2.9rem;
                            margin-top: 3rem;
                            line-height: 1.75;
                        }
                    }
                }
                .serviceContents__bottom {
                    padding: 1.8rem 0.8rem 1.2rem;
                    margin: 2.5rem 1.8rem 0 2rem;
                    border-radius: 1rem;
                    .serviceContents__subTitle {
                        font-size: 1.8rem;
                        margin-inline: 1.5rem;
                        letter-spacing: 0;
                    }
                    .serviceContents__subList {
                        grid-template-columns: 1fr;
                        margin-top: 1.2rem;
                        li .serviceContents__subLink {
                            padding: 1.4rem 2rem;
                            height: 100%;
                            &::before {
                                content: none;
                            }
                            &::after {
                                right: 0.5rem;
                            }
                        }
                        li {
                            &:nth-last-child(1) .serviceContents__subLink {
                                border-bottom: none;
                            }
                        }
                    }
                }
            }
        }
    }
}

.serviceContents__heading {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.29;
    letter-spacing: 0.03em;
    background: var(--colorWhite);
    padding: 3.5rem;
    margin-top: 3.5rem;
    span {
      width: 3.4rem;
    }
    &.for-sp {
        display: none;
    }
    @media screen and (max-width: 767px) {
        font-size: 2rem;
        margin-top: 0rem;
        margin-left: 0.9rem;
        padding: 0 3.5rem 0rem 1.5rem;
        gap: 1rem;
        border-radius: 1rem 0 0 1rem;
        height: 6rem;
        span {
          width: 2.76rem;
        }
        .serviceContents__icon img {
            width: 3.2rem;
        }
        &.for-sp {
            display: flex;
        }
        &.for-pc {
            display: none;
        }
    }
}


.footer {

  .leaf-1 {
    width: 6.593rem;
    height: 8.986rem;
    background-image: url(../../images/group/img_bg_footer-leaf-1.webp);
    top: calc(-43.6rem - 8.986rem);
    animation: fall-left 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
  }
  
  .leaf-2 {
    width: 8.444rem;
    height: 8.521rem;
    background-image: url(../../images/group/img_bg_footer-leaf-2.webp);
    top: calc(-30.8rem - 8.444rem);
    left: 3.5417%;
    animation: fall-right 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }

  @media screen and (max-width: 1360px) {
    .leaf-1,.leaf-2 {
      display: none;
    }
  }
  @media screen and (max-width: 767px) {
    .leaf-1 {
      top: -36.5rem;
      width: 5.593rem;
      height: 8.986rem;
      left: 1rem;
      display: block;
    }
  }
}