.nontitle_cp {
  color: #000;
  background: #fff;

  header,
  .btn-menu,
  .pagetop {
    display: none;
  }

  main p {
    font-size: 20px;
    line-height: 38px;
    @media (max-width: 767px) {
      font-size: 16px;
      line-height: 26px;
      text-align: left;
    }
  }

  h2 {
    font-size: 32px;
    line-height: 54px;
    margin-bottom: 28px;
    @media (max-width: 767px) {
      font-size: 24px;
      line-height: 36px;
    }
  }
  h3 {
    font-size: 24px;
    line-height: 20px;
    margin-bottom: 28px;
    @media (max-width: 767px) {
      font-size: 20px;
      line-height: 20px;
    }
  }

  .cp-main,
  .cp-ob-about,
  .cp-ob-feature,
  .cp-ob-functions,
  .cp-ob-apps,
  .cp-form,
  .cp-recruit,
  .cp-notes{
    padding-inline: 20px;
    @media (max-width: 767px) {
      padding-inline: 16px;
    }
    >.wp-block-group__inner-container {
      max-width: 1000px;
      padding-block: 24px;
      margin: 0 auto;
    }
    p {
      margin-bottom: 28px;
    }
  }

  .cp-main {
    background: #212121;
    color: #fff;

    >.wp-block-group__inner-container {
      padding-block: 48px;
    }
    .cp-heading {
      width: fit-content;
      margin: 0 auto;
      font-size: 18px;
      img {
        margin-top: 10px;
        @media (max-width: 767px) {
          max-width: 240px;
          margin-top: -5px;
        }
      }
    }
    h3 {
      font-size: 36px;
      line-height: 54px;
      @media (max-width: 767px) {
        font-size: 24px;
      }
    }
    h4 {
      font-size: 24px;
      line-height: 24px;
      @media (max-width: 767px) {
        font-size: 18ox;
      }
    }
    p {
      font-size: 20px;
      @media (max-width: 767px) {
        font-size: 12px;
      }
    }
    .cp-fv {
      margin-bottom: 50px;
      >.wp-block-group__inner-container {
        display: flex;
        align-items: center;
        @media (max-width: 767px) {
          flex-direction: column;
          gap: 24px;
        }

        h2 {
          flex-shrink: 0;
        }
      }
    }
    .cp-image {
      position: relative;
      margin-bottom: 5px;
      height: auto;

      img {
        height: auto;
      }
    }
    .cp-rewards {
      margin-top: 48px;

      .columns>.wp-block-group__inner-container {
        display: flex;
        margin-bottom: 24px;
        gap: 40px;
        /* display: grid;
        grid-template-columns: 1fr 1fr; */
        @media (max-width: 767px) {
          flex-direction: column;
          gap: 0;
          height: auto;
        }

        .reward-1,
        .reward-2 {
          flex: 1;
          flex-direction: column;
          gap: 20px;
          /* display: grid; */
          /* grid-row: span 2;
          grid-template-rows: subgrid; */
          .wp-block-column:has(figure) {
            /* height: 100%;
            max-height: 245px; */
            height: auto;
            @media (max-width: 767px) {
              /* width: 80%; */
              /* max-height: 200px; */
              img {
                margin: 0 auto;
              }
            }
            figure {
              position: relative;
              height: 100%;

              &::after {
                content: "";
                background-image: url(../img/nontitle_cp/reward-1.svg);
                background-repeat: no-repeat;
                position: absolute;
                width: 56px;
                height: 56px;
                top: 10px;
                left: -10px;
                @media (max-width: 767px) {
                  top: -15px;
                  left: -20px;
                }
              }

              img {
                /* width: 100%;
                height: auto; */
                margin: 0 auto;
              }
            }
          }
          .wp-block-column:has(p) {
            @media (max-width: 767px) {
              flex-basis: 70%;
            }
          }
        }
        .reward-1 {
          .wp-block-column:has(figure) {
            @media (max-width: 767px) {
            width: 80%;
            }
          }
        }
        .reward-2 {
          .wp-block-column:has(figure) {
            @media (max-width: 767px) {
              width: 40%;
            }
            figure::after {
              background-image: url(../img/nontitle_cp/reward-2.svg);
              left: -50px;
              @media (max-width: 767px) {
                top: 0px;
                left: -56px;
              }
            }
          }
        }
      }
      p {
        font-size: 16px;
        line-height: 24px;
        margin-top: 16px;
        @media (max-width: 767px) {
          font-size: 14px;
        }
      }
    }

    .cp-button {
      justify-content: center;

      @media (max-width: 767px) {
        width: 100%;
      }

      a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1.2rem;
        background: #fff;
        background-position: 99% 50%;
        background-size: 200% auto;
        border-radius: 8px;
        padding: 1.6rem 2.4rem;
        line-height: 1.2;
        font-size: clamp(2.2rem, calc(0.842rem + 3.158vw), 4rem);
        text-align: start;
        transition: all 0.3s ease-out;
        color: #212121;

        &::after {
          /* content: url(../img/nontitle_cp/chevron_right_grey.svg); */
          transition: all 0.3s ease;
          line-height: 0;
        }

        &:hover {
          background-position: 1% 50%;

          &::after {
            transform: translateX(10px);
          }
        }

        @media (max-width: 767px) {
          padding: 1.2rem 1.6rem;
        }


        >div {
          display: grid;
          gap: .8rem;

          >strong {
            display: flex;
            gap: .8rem;
            align-items: center;
            font-size: 20px;
            @media (max-width: 767px) {
              font-size: 14px;
            }
            &:last-child {
              font-size: 28px;
              @media (max-width: 767px) {
                font-size: 18px;
              }
            }

            >img {
              width: 165px;
              max-width: 165px;
              min-width: 82px;
              height: auto;
              @media (max-width: 767px) {
                width: 130px;
              }
            }
          }

          @media (max-width: 767px) {
            gap: 4px;

            >strong {
              gap: 4px;
            }
          }
        }
      }
    }
  }

  .cp-ob-about {
    padding-top: 24px;
  }
  .cp-ob-feature {
    >.wp-block-group__inner-container {
    .feature-items  {
      >.wp-block-group__inner-container {
      display: grid;
      gap: 48px;
      }

      .feature-item {
        gap: 40px;

        p {
          line-height: 32px;
        }
        @media (max-width: 767px) {
          flex-direction: column;
          align-items: flex-start;
          gap: 16px;

          .wp-block-column {
            display: contents;
          }

          h3 {
            order: 1;
            margin-bottom: 0;
          }

          figure {
            order: 2;
          }

          p {
            order: 3;
            margin-bottom: 0;
            line-height: 26px;
          }
        }
        div:has(figure) {
          flex-basis: 380px;
          flex-basis: clamp(300px, 38%, 380px);
        }
        div:not(:has(figure)) {
          flex-basis: 58%;
        }
      }
    }
  }
  }

  .cp-ob-functions {
    background: #f5f5f5;
    padding-block: 48px;

    @media (max-width: 767px) {
      background: #fff;
      padding-block: 24px;
    }

    >.wp-block-group__inner-container {
      background: #fff;
      padding: 48px;
      border-radius: 16px;

      @media (max-width: 767px) {
        padding: 0;
      }
    }

    h2 {
      margin-bottom: 52px;
      @media (max-width: 767px) {
        margin-bottom: 26px;
      }
    }

    .functions-items {
      >div {
        display: grid;
        gap: 32px;
        grid-template-columns: repeat(2, 1fr);

        @media (max-width: 767px) {
          grid-template-columns: repeat(1, 1fr);
          gap: 16px;
        }
      }
      .feature-item {
        align-items: flex-start;
        gap: 16px;
        div:has(figure) {
          flex-basis: 100px;
          flex-shrink: 0;
          @media (max-width: 767px) {
            flex-basis: clamp(100px, 30%, 240px);
          }
        }
      }
      h3 {
        font-size: 20px;
        margin-bottom: 5px;
        @media (max-width: 767px) {
          font-size: 16px;
        }
      }
      p {
        font-size: 16px;
        line-height: 24px;
        margin: 0;
        @media (max-width: 767px) {
          font-size: 12px;
          line-height: 18px;
        }
      }
    }
  }

  .cp-ob-apps {
    .apps-items {
      margin-top: 52px;
      gap: 22px;
      .apps-item {
        padding-inline: 21px;
        figure {
          padding-inline: 24px;
        }
        p {
          margin-top: 20px;
          font-size: 16px;
          text-align: center;
        }
      }
    }
    @media (max-width: 767px) {
      /* スライダーの外枠 */
.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* スライドコンテナ（ここだけ横スクロール） */
.apps-items {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding: 10px;
  position: relative;
  white-space: nowrap;
  margin-top: 0;
}

/* スライド要素 */
.apps-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  white-space: normal;
}

/* 矢印ナビゲーション */
.apps-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}


.apps-slider-nav::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: solid black;
  border-width: 2px 2px 0 0;
}

/* 左矢印 */
.apps-slider-prev {
  left: 0;
}

.apps-slider-prev::before {
  transform: rotate(-135deg);
}

/* 右矢印 */
.apps-slider-next {
  right: 0;
}

.apps-slider-next::before {
  transform: rotate(45deg);
}

    }
  }

  .cp-form {
    background: #f5f5f5;

    @media (max-width: 767px) {
      padding-inline: 0;
    }

    iframe {
      @media (max-width: 767px) {
        height: 900px;
      }
    }
  }

  .cp-form,
  .cp-recruit,
  .cp-notes {

    h2 {
      font-size: 2rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 2.4rem;
    }
    p {
      font-size: 1.4rem;
      line-height: 21px;
      margin-bottom: 1.6rem;
    }
  }

  .cp-recruit {
    /* background: #fff; */
    >.wp-block-group__inner-container {
      @media (max-width: 767px) {
        padding-inline: 0;
      }
    }

    .recruit-button {

      &:first-of-type {
        margin-bottom: .8rem;
      }

      > .wp-block-button {
        display: block;
        width: 100%;

        a {
          display: flex;
          justify-content: space-between;
          align-items: center;
          background: #EFEFEF;
          color: #222;
          font-size: 1.6rem;
          font-weight: bold;
          width: 100%;
          border-radius: 8px;
          text-align: start;
          transition: all 0.3s ease;
          border: none;
          box-shadow: none;
          padding: 24px;

          &::after {
            content: url(../img/nontitle_cp/chevron_right_grey.svg);
            transition: all 0.3s ease;
          }

          &:hover {
            background: #d1d1d1;

            &::after {
              transform: translateX(10px);
            }
          }
        }
      }
    }
  }

  .cp-notes {
    padding-bottom: 40px;
    @media (max-width: 1040px) {
      padding-inline: 0;
    }
    @media (max-width: 767px) {
      padding-bottom: 16px;
    }
    >.wp-block-group__inner-container {
      background: #F5F5F5;
      padding: 24px 16px;
    }
  }

  .vb-banner {
    margin-bottom: 40px;
    padding-inline: 16px;
    @media (max-width: 767px) {
      margin-bottom: 16px;
    }
    figure {
      max-width: 440px;
      margin: 0 auto;
    }
  }
}