.layout {
  max-width: 1000px;
  @media screen and (max-width: 768px) {
    padding: 0 16px;
  }
}
.p-page-head .c-inner {
  padding: 60px 0;
}
p {
  font-weight: 500;
  font-size: 15px;
  @media screen and (min-width: 501px){
    font-size: 16px;
  }
}

.pc {
  display: none;
  @media screen and (min-width: 769px) {
    display: block;
  }
}
a:has(img):hover {
  opacity: 0.7;
}

.sp {
  display: block;
  @media screen and (min-width: 769px) {
    display: none;
  }
}

.v-box {
  &.parent {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  @media screen and (max-width: 768px) {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  &.half-box {
    & > * {
      @media screen and (min-width: 769px) {
        width: 50%;
      }
    }
  }
}

.flexwrap {
  display: flex;
  flex-wrap: wrap;
}

.campaign {
  max-width: 575px;
  text-align: center;
  margin: 0 auto 30px;
  span {
    color: #fd4300;
  }
}
.campaign img {
  width: revert-layer;
  margin: 0 auto;
  display: block;
}
.line-txt {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  margin-top: 10px;
  margin-bottom: 20px;
  max-width: 100%;

  &::before,
  &::after {
    content: "";
    width: 10%;
    height: 1px;
    background: #709ED2;
    flex-shrink: 2;
  }
  p {
    font-size: 20px;
    font-weight: 600;
  }
}

.fv {
  padding: 50px 0 80px;
  .half-box {
    align-items: center;
    gap: 30px;
    img {
      max-width: 55%;
    }
    @media screen and (min-width: 769px) {
      .half-box-text {
        width: 65%;
      }
      img {
        width: 35%;
      }
    }
  }
  h2 {
    color: #005cb9;
    margin-bottom: 0.9em;
    color: #005cb9;

    font-size: 22px;
    @media screen and (min-width: 769px) {
      font-size: 26px;
    }
  }
  p {
    font-size: 15px;
    line-height: 1.5;
    @media screen and (min-width: 501px) {
      font-size: 16px;
      line-height: 1.8;
    }
  }
  .full-box {
    margin-top: 40px;
    img {
      margin: 40px auto 0;
      display: block;
    }
    @media screen and (min-width: 769px) {
      margin-top: 80px;
    }
  }
}
.package {
  position: relative;
  background-color: #eff9ff;
  padding: 120px 0 80px;

  &::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0%);
    -webkit-transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 68px solid transparent;
    border-left: 68px solid transparent;
    border-top: 50px solid #fff;
    border-bottom: 0;
  }
  .layout > p {
    margin-bottom: 80px;
    font-size: 15px;
    line-height: 1.5;
    @media screen and (min-width: 501px) {
      font-size: 16px;
      line-height: 1.8;
    }
  }
  .txt-bg {
    margin-bottom: 30px;
    p {
      background-color: #ffffff;
      width: -webkit-fit-content;
      width: -moz-fit-content;
      width: fit-content;
      font-size: 22px;
      font-weight: bold;
      color: #005cb9;
      margin: 14px auto;
      padding: 4px 20px;
      span {
        color: #212121;
      }
      @media screen and (min-width: 900px) {
        font-size: 26px;
      }
    }
  }
  .package-box {
    background-color: #fff;
    position: relative;
    border-radius: 22px;
    padding: 70px 10px 20px;
    .label {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -35%);
      max-width: 80%;
      @media screen and (min-width: 501px) {
        width: 430px;
      }
    }
    ul {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      @media screen and (max-width: 1216px) {
        max-width: 558px;
      }
      li {
        width: 50%;
        max-width: 135px;
      }
      @media screen and (max-width: 609px) {
      }
    }
    .plus {
      max-width: 40px;
      max-height: 40px;
    }
    .package-listbox {
      gap: 20px;
      display: flex;
      align-items: center;
      flex-direction: column;
    }
    .llm-box {
      text-align: center;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      justify-content: center;

      img {
        margin-bottom: 30px;
        max-width: 85%;
      }
      @media screen and (min-width: 501px) {
        img {
          max-width: 400px;
        }
      }
      a {
        border: 1px solid #969696;
        font-size: 13px;
        padding: 8px 20px;
        letter-spacing: normal;
        color: #969696;
        margin-left: 30px;
        white-space: nowrap;
        margin-bottom: 30px;
        display: inline-block;
        &::before {
          content: "";
          display: inline-block;
          width: 0;
          height: 0;
          border-style: solid;
          border-top: 5px solid transparent;
          border-bottom: 5px solid transparent;
          border-left: 7px solid #005cb9;
          border-right: 0;
          margin-right: 10px;
        }
        &:hover {
          color: #969696;
          opacity: 0.7;
        }
      }
    }
  }
}
.function {
  background: #16306d;
  padding: 40px 0;
  @media screen and (min-width: 501px) {
    padding: 80px 0;
  }
  .layout {
    counter-reset: num-counter;
  }
  h2 {
    text-align: center;
    font-size: 24px;
    color: #fff;
    @media screen and (min-width: 501px) {
      font-size: 32px;
    }
  }
  .func-box {
    background: #eaf2ff;
    border-radius: 15px;
    margin: 40px auto;
    padding: 35px 20px;

    @media screen and (min-width: 1001px) {
      padding: 30px 40px 50px;
      max-width: 940px;
    }
    p {
      letter-spacing: 0;
      line-height: 1.7;
    }
    img {
      margin: 28px auto;
      display: block;
      p {
        font-size: 18px;
      }
    }
    .head {
      display: flex;
      gap: 10px;
      align-items: flex-start;

      @media screen and (min-width: 769px) {
        align-items: center;
      }
    }

    .num {
      width: 52px;
      height: 52px;
      display: grid;
      place-content: center;
      font-size: 22px;
      font-family: "Montserrat";
      font-weight: 700;
      background: #2a7de1;
      color: #fff;
      border-radius: 4px;
      flex-shrink: 0;
      @media screen and (min-width: 769px) {
        width: 58px;
        height: 58px;
      }
      &::before {
        counter-increment: num-counter;
        content: counter(num-counter, decimal-leading-zero);
      }
    }
    h3 {
      font-size: 20px;
      color: #005cb9;
      font-weight: 600;
      letter-spacing: 0;
      @media screen and (min-width: 769px) {
        font-size: 26px;
      }
    }
  }

  .half-box {
    gap: 30px;
    max-width: 940px;
    margin: auto;
    @media screen and (min-width: 1001px) {
      display: flex;
    }
    .func-box {
      margin: 0px auto 40px;
      display: flex;
      flex-direction: column;
      &:last-child {
        margin: 0px auto;
      }
      @media screen and (min-width: 1001px) {
        display: flex;
        margin: 0px auto;
      }
    }
            
    .head {
      align-items: flex-start;
      flex-grow: 1;
    }
    @media screen and (max-width: 768px) {
      flex-wrap: wrap;
    }
    img {
      max-width: 290px;
    }
    h3 {
      font-size: 22px;
      @media screen and (min-width: 769px) {
        font-size: 26px;
      }
      @media screen and (min-width: 1001px) {
        font-size: 21px;
      }
    }
  }
}
.incentive {
  padding: 40px 0;

  @media screen and (min-width: 501px) {
    padding: 80px 0;
  }

  .incentive-box {
    border-radius: 42px;
    border: 5px solid #005cb9;
    position: relative;
    padding: 25px 20px 0px;

    @media screen and (min-width: 1001px) {
      padding: 40px 40px 0px;
    }
    h2 {
      color: #005cb9;
      font-size: 22px;
      text-align: center;
      line-height: 1.3em;
      letter-spacing: 0;
      @media screen and (min-width: 850px) {
        font-size: 30px;
      }
      .en {
        letter-spacing: -0.1px;
      }

      span {
        color: #fd4300;
      }
    }
    a {
      color: #005cb9;
      text-decoration: underline;
    }

    p {
      display: block;
      margin: 20px auto 0;
      width: -webkit-fit-content;
      width: -moz-fit-content;
      width: fit-content;
      letter-spacing: 0;
      @media screen and (min-width: 769px) {
        margin: 30px auto 0;
      }
    }
  }

  .price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    color: #005cb9;
    font-size: 26px;
    font-weight: 700;
    @media screen and (min-width: 501px) {
      font-size: 30px;
    }

    .man {
      max-width: 200px;
    }

    @media screen and (max-width: 850px) {
      justify-content: center;
      margin: 20px auto;

      .man {
        display: none;
      }
    }
    @media screen and (min-width: 1001px) {
      gap: 20px;
      margin-right: 50px;
    }

    .head {
      display: block;
      padding: 5px 16px;
      background-color: #005cb9;
      color: #fff;
      font-weight: bold;
      font-size: 18px;
      @media screen and (min-width: 501px) {
        font-size: 24px;
      }
      @media screen and (min-width: 769px) {
        font-size: 31px;
        padding: 5px 26px;
      }
    }
    .price {
      font-size: 70px;
      color: #fd4300;
      font-weight: bold;
      display: block;
      line-height: 1;
      margin-top: -20px;
      @media screen and (min-width: 501px) {
        font-size: 90px;
      }
      @media screen and (min-width: 769px) {
        font-size: 130px;
      }
    }
  }
}
.ctaarea {
  padding: 40px 0;
  @media screen and (min-width: 501px) {
    padding: 80px 0;
  }
  .woman {
    max-height: 216px;
    height: auto;
    width: 50%;
    max-width: 279px;
    -o-object-fit: contain;
    object-fit: contain;
  }
  .parent {
    max-width: 820px;
    margin: auto;
  }
  .txt-box {
    width: 100%;
    @media screen and (min-width: 501px) {
      width: 80%;
    }
    @media screen and (min-width: 769px) {
      width: 100%;
    }
    p {
      color: #005cb9;
      line-height: 1.5;
      font-weight: 600;
      font-size: 18px;
      text-align: center;
      @media screen and (min-width: 501px) {
        font-size: 22px;
      }
      @media screen and (min-width: 769px) {
        font-size: 28px;
        text-align: left;
      }
    }
    img {
      margin: 20px auto 0;
      @media screen and (min-width: 769px) {
        margin: 20px auto 0 0;
      }
    }
  }
}
