.pageContainer {
  margin-bottom: 0;
}

.training__lead {
  font-size: 1.6rem;
  line-height: 2.125;
  text-align: center;
  margin-top: 4.5rem;
}

.training {
  position: relative;

  &::before {
    content: "";
    background: url(../../images/common/img_bg_left-tree.webp) no-repeat center center / contain;
    position: absolute;
    bottom: 7rem;
    left: 0;
    width: 27rem;
    height: 131rem;
    z-index: -1;
  }
}

@media screen and (max-width: 767px) {
  .pageContainer {
    margin-top: 2.5rem;
  }
  .container1100 {
    padding-inline: 3rem;
  }

  .training::before {
    content: "";
    background: url(../../images/common/img_bg_right-tree-4-sp.png) no-repeat center center / contain;
    width: 18rem;
    height: 43rem;
    position: absolute;
    top: 109rem;
    right: -3rem;
    left: unset;
    z-index: -1;
  }

  .training::after {
    content: "";
    background: url(../../images/common/img_bg-contents-tree-1-sp.webp) no-repeat center center / contain;
    width: 8rem;
    height: 43rem;
    position: absolute;
    top: 223rem;
    left: 0;
    z-index: -1;
  }

  .training__lead {
    line-height: 1.75;
    margin-top: 0;
  }

  .modal__button {
    border: 1px solid var(--colorGreen);
    background-color: var(--colorWhite);
    padding: 0.4rem 1rem 0.6rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.15);
    margin: 1.9rem auto 0 auto;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    width: fit-content;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.55px;
    font-family: var(--familyZenMaruGothic);
  }
}

.field-power {
  margin-top: 2.5rem;

  .field-power__def {
    display: flex;
    align-items: center;
    column-gap: 2.2rem;
    margin-top: 2.5rem;
    padding-inline: 0.7rem;

    dt {
      background-color: #F1F9FF;
      border-radius: 2rem 2rem 0 2rem;
      color: var(--colorGreen);
      font-size: 2rem;
      font-weight: 700;
      padding: 3.4rem 2.4rem;
      width: fit-content;
    }

    dd {
      font-size: 1.6rem;
      flex: 1;
      line-height: 2.125;
    }
  }

  .pillar6 {
    text-align: center;
    margin-top: 5rem;

    figcaption {
      font-size: 2rem;
      font-weight: 700;
    }

    img {
      margin-inline: auto;
      width: 58.7rem;
    }
  }

  .pillar__list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2%;
    row-gap: 2.3rem;
    margin-top: 2.4rem;
  }

  .pillar__item {
    background-color: var(--colorWhite);
    border-radius: 1.3rem;
    padding: 1.8rem;
    position: relative;
    width: calc((100% - 4%) / 3);

    h3 {
      border-bottom: 1px solid #aeb7c0;
      font-family: var(--familyZenMaruGothic);
      font-size: 2rem;
      font-weight: 700;
      text-align: center;
      padding-bottom: 1.2rem;
    }

    p {
      font-size: 1.6rem;
      line-height: 1.5;
      margin-top: 1.5rem;
    }

    &::before {
      color: var(--colorWhite);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--familyNunito);
      font-size: 1.728rem;
      position: absolute;
      top: 1rem;
      left: 1.9rem;
      height: 4.2rem;
      width: 4.2rem;
    }

    &:nth-child(1)::before {
      content: "01";
      background-color: #f8a74d;
    }

    &:nth-child(2)::before {
      content: "02";
      background-color: #59c3bd;
    }

    &:nth-child(3)::before {
      content: "03";
      background-color: #4b6c97;
    }

    &:nth-child(4)::before {
      content: "04";
      background-color: #f15d3e;
    }

    &:nth-child(5)::before {
      content: "05";
      background-color: #005675;
    }

    &:nth-child(6)::before {
      content: "06";
      background-color: #ea5353;
    }
  }

  .attempt__list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    margin-top: 5rem;
  }

  .attempt__item {
    background-color: var(--colorWhite);
    border: 1px solid #a7bcb8;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem 3rem;

    &.attempt1 {
      padding-bottom: 1rem;

      .attempt__detail {
        flex-direction: row;
      }

      .attempt__detail {
        margin-top: 2rem;
      }

      .attempt__textarea {
        margin-top: 2rem;
        width: 48.46%;
      }

      .attempt__imgarea {
        width: calc(100% - 48.46% - 2.7rem);
      }
    }

    &.attempt2 {
      width: calc((100% - 3rem) / 2);

      h3 {
        padding-bottom: 1.4rem;
      }

      .attempt__text {
        margin-bottom: 1em;
      }
    }

    &.attempt3 {
      width: calc((100% - 3rem) / 2);

      .attempt__text {
        margin-bottom: 1em;
      }
    }

    &.attempt4 {
      .attempt__imgarea {
        margin-top: 2.9rem;
        margin-inline: -3rem;
      }
    }

    h3 {
      border-bottom: 1px solid #aeb7c0;
      display: flex;
      align-items: center;
      column-gap: 1.4rem;
      font-family: var(--familyZenMaruGothic);
      font-size: 2.6rem;
      font-weight: 700;
      letter-spacing: 0.84px;
      line-height: 1.35;
      padding-bottom: 2.5rem;
    }
  }

  .attempt__tag {
    background-color: var(--colorOrange);
    border-radius: 1.7rem 1.7rem 0 1.7rem;
    color: var(--colorWhite);
    font-size: 2rem;
    padding-inline: 1.6rem 1.9rem;
    padding-block: 0.6rem;
  }

  .attempt__num {
    color: var(--colorYellow);
    font-size: 3.417rem;
    font-family: var(--familyNunito);
    font-style: italic;
    letter-spacing: 2.05px;
    margin-left: 0.4rem;
  }

  .attempt__detail {
    display: flex;
    flex-direction: column;
    column-gap: 2.7rem;
    margin-top: 1.5rem;
  }

  .attempt__textarea {
    flex: 1;
    letter-spacing: 0.54px;
    line-height: 1.625;
    margin-left: 1.6rem;
  }

  .attempt__text + .attempt__text {
    margin-top: 1.5em;
  }

  @media screen and (max-width: 767px) {
    margin-top: 1rem;

    .container1040 {
      padding-inline: 0;
    }

    .field-power__def {
      flex-direction: column;
      row-gap: 2rem;
      margin-top: 2.8rem;
    }

    .pillar6 {
      margin: 1.5rem -3rem 0;

      figcaption {
        font-size: 1.8rem;
        line-height: 1.3;
      }

      img {
        margin-top: 1rem;
        width: 100%;
      }
    }

    .pillar__list {
      flex-direction: column;
      row-gap: 1rem;
      position: relative;
    }

    .pillar__item {
      width: 100%;

      h3 {
        font-size: 2rem;
      }
    }

    .attempt__list {
      row-gap: 1.2rem;
      margin: 5.5rem -2rem 0;
    }

    .attempt__item {
      padding: 1.6rem 1rem 3.7rem;

      h3 {
        font-size: 2.2rem;
        column-gap: 2.3rem;
        padding-bottom: 2.2rem;
      }

      &.attempt1 {
        .attempt__detail {
          flex-direction: column;
          margin-top: 1rem;
        }

        .attempt__textarea {
          margin-top: 1.5rem;
          width: 100%;
        }

        .attempt__imgarea {
          margin-top: 2.5rem;
          width: 100%;
        }
      }

      &.attempt2 {
        width: 100%;

        h3 {
          padding-bottom: 2.5rem;
        }
      }

      &.attempt3 {
        width: 100%;
      }

      &.attempt4 {
        .attempt__imgarea {
          margin: 1.8rem auto 0;
        }
      }

      .attempt__detail {
        flex-direction: column;
        margin-top: 2.2rem;
        padding-inline: 1rem;
      }
    }

    .attempt__tag {
      border-radius: 1.4rem 1.4rem 0 1.4rem;
      font-size: 1.8rem;
      padding-inline: 0.8rem;
      width: fit-content;
      white-space: nowrap;
    }

    .attempt__num {
      font-size: 2.8rem;
      margin-left: 0.1rem;
    }

    .attempt__textarea {
      margin-left: 0;
    }

    .attempt__text {
      line-height: 1.75;
    }

    .attempt__imgarea {
      margin-top: 2.2rem;
    }

    .attempt__imgarea img {
      margin-inline: auto;
    }
  }
}

.sect-training {
  background-color: var(--colorWhite);
  margin-top: 8rem;
  padding-block: 8rem 12rem;
  position: relative;

  .bg-tree .tree-3 {
    position: absolute;
    top: 0;
    right: 0;
    background-image: url(../../images/common/img_bg_right-tree.webp);
    width: 24rem;
    height: 57rem;
    opacity: 1;
    z-index: 0;
  }

  &::before {
    content: "";
    background: url(../../images/common/img_bg_left-tree.webp) no-repeat center center / contain;
    position: absolute;
    bottom: 50rem;
    left: 0;
    width: 27rem;
    height: 131rem;
    z-index: 0;
  }

  &::after {
    content: "";
    background-image: url(../../images/group/img_bg_footer-leaf-2.webp);
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    position: relative;
    opacity: 0;
    width: 7.1rem;
    height: 4.9rem;
    top: calc(-4rem - 4.9rem - 67rem);
    left: 5%;
    animation: fall-right 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.7s;
    z-index: 0;

    @media screen and (max-width: 1200px) {
      left: 0;
    }
  }

  .training__logo {
    margin-top: 3.6rem;
    position: relative;
    left: -2rem;

    img {
      margin-inline: auto;
    }
  }

  .sect-training__title {
    color: #0f7f4b;
    font-family: var(--familyZenMaruGothic);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 1.29px;
    line-height: 1.43;
    margin-inline: auto;
    position: relative;
    top: -2rem;
    width: fit-content;

    span {
      color: #000;
      font-size: 1.2rem;
      text-align: left;
    }
  }

  .sect-training__lead {
    font-size: 1.6rem;
    line-height: 1.625;
    letter-spacing: 0.54px;
    margin-top: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .sect-training__curriculum {
    margin: 2.7rem auto 0;
    position: relative;
    z-index: 1;

    img {
      margin-inline: auto;
    }
  }

  .sect-training__cycle {
    color: var(--colorGreen);
    font-family: var(--familyZenMaruGothic);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0.84px;
    margin-top: 4.5rem;
    text-align: center;
  }

  .sect-training__cycle-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.54px;
    line-height: 1.875;
    margin-top: 0.8rem;
    text-align: center;
  }

  .sect-training__cycle-detail {
    display: flex;
    justify-content: center;
    margin-top: 3.2rem;

    li {
      padding-inline: 4.135%;
      position: relative;
      width: 50%;

      &:first-child {
        border-right: 1px solid #d9d9d9;

        &::before {
          content: "";
          background-color: #d9d9d9;
          display: block;
          position: absolute;
          right: -1px;
          top: 0;
          transform: translate(50%, -50%) rotate(45deg);
          height: 0.4rem;
          width: 0.4rem;
        }

        &::after {
          content: "";
          background-color: #d9d9d9;
          display: block;
          position: absolute;
          right: -1px;
          bottom: 0;
          transform: translate(50%, 50%) rotate(45deg);
          height: 0.4rem;
          width: 0.4rem;
        }
      }
    }

    h4 {
      font-size: 1.6rem;
      font-weight: 700;
      letter-spacing: 0.54px;
    }

    p {
      font-size: 1.6rem;
      letter-spacing: 0.54px;
      line-height: 1.875;

      span {
        display: inline-block;
        font-weight: 700;
        margin-top: 1rem;
      }
    }
  }

  .color-blue {
    color: #00adb2;
    letter-spacing: 0;
  }

  .color-orange {
    color: #ee9a25;
    letter-spacing: 0;
  }

  .sect-training__system {
    margin-top: 2rem;

    img {
      margin-inline: auto;
    }
  }

  .go-features {
    margin-top: 8rem;
    text-align: center;
  }

  @media screen and (max-width: 767px) {
    margin-top: 8.3rem;
    padding-block: 4.8rem 8.6rem;

    &::before {
      content: none;
    }

    &::after {
      content: none;
    }

    .bg-tree .tree-3 {
      display: none;
    }

    .pageHero-h2 {
      border-bottom: 2px solid #aeb7c0;
      gap: 0;
      margin-inline: 1rem;
    }

    .training__logo {
      margin-top: 1.1rem;
      left: unset;
    }

    .sect-training__title {
      font-size: 2.2rem;
      top: 0;
    }

    .sect-training__lead {
      line-height: 1.75;
      padding-inline: 1rem;
      margin-top: 0.9rem;
      text-align: left;
    }

    .sect-training__cycle {
      font-size: 2rem;
      padding-inline: 1rem;
    }

    .sect-training__cycle-text {
      margin-top: 1rem;
      padding-inline: 1rem;
    }

    .sect-training__cycle-for-order {
      display: flex;
      flex-direction: column;
    }

    .sect-training__system {
      order: 1;
      margin-top: 1rem;
    }

    .sect-training__cycle-detail {
      order: 2;
      flex-direction: column;
      margin-top: 3.4rem;
      padding-inline: 1rem;

      li {
        padding-inline: 0;
        width: 100%;

        &:first-child {
          border-right: none;
          border-bottom: 2px solid #d9d9d9;
          margin-bottom: 2rem;
          padding-bottom: 2rem;

          &::before {
            top: unset;
            right: unset;
            left: 0;
            bottom: 0;
            transform: translate(-50%, 50%) rotate(45deg);
            height: 0.75rem;
            width: 0.75rem;
          }

          &::after {
            top: unset;
            right: 0;
            left: unset;
            bottom: 0;
            transform: translate(50%, 50%) rotate(45deg);
            height: 0.75rem;
            width: 0.75rem;
          }
        }
      }
    }

    .go-features {
      margin-top: 6.5rem;
    }
  }
}

.contactCTA {
  margin-top: 0;
}

.footer {
  .leaf-1 {
    top: calc(-12.2rem - 2.8rem - 25.8rem);
  }

  .leaf-2 {
    top: calc(-4rem - 4.9rem - 25.8rem);
  }

  @media screen and (max-width: 767px) {
    .leaf-1,
    .leaf-2 {
      display: none;
    }
  }
}

.attempt__item .modal {
  max-height: 110vw;
}