/* common */

/* ヘッダー */
.main-swiper{
  position: relative;

  & .slider-copy{
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 100;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;

    & h4{
      font-size: 80px;
      line-height: 1.1;
      margin-bottom: 20px;
    }
    & p{font-size: 30px;}

    @media (max-width: 910px) {
      & h4{
        font-size: 55px;
        margin-bottom: 20px;
      }
      & p{font-size: 20px;}
    }

    @media (max-width: 640px) {
      transform: none;
      top: auto;
      left: auto;
      bottom: -240px;
      color: #333;
      background: var(--key-color);
      text-shadow: none;
      padding: 40px 14px;
      border-radius: 0 0 20px 0 ;


      & h4{
        font-size: 30px;
        line-height: 1.4;
        margin-bottom: 20px;
      }
      & p{font-size: 18px;}
    }

  }

  & .swiper-pagination-bullet{
    background: var(--key-color);
    opacity: 0.4;
  }

  & .swiper-pagination-bullet-active{
    background: var(--key-color);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .swiper.main-swiper{
    overflow: visible;
    margin-bottom: 240px;
    height: 300px;
  }
}

/* about-us-------------------------------------------------- */
.about-us {
  padding: 120px 0 0;
  margin-bottom: 64px;

  @media (max-width: 640px) {
    padding: 64px 0 0;
    margin-bottom: 0;
  }

  & .inner {
    max-width: 100%;
    background: linear-gradient(to right, #fff 50%, var(--key-color) 50%);
    position: relative;
    top: -60px;

    @media (max-width: 640px) {
      border-radius: 60px 0px 30px 0px;
      overflow: hidden;
    }

  }

  & .about-swiper {
    max-width: 1100px;
    list-style: none;
    margin: 0 auto;
    padding: 100px 100px 70px 100px;
    background: var(--key-color);
    border-radius: 100px 0px 0px 0px;
    background: var(--key-color);
    /* display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px 30px; */

    @media (max-width: 1024px) {
      padding: 60px 24px;
    }

    @media (max-width: 640px) {

      & .swiper-pagination{
        position: relative;
        top: 10px;
      }

      .swiper-pagination-bullet{
        background: #fff;
        opacity: 0.4;
      }

      .swiper-pagination-bullet-active{
        background: #fff;
        opacity: 1;
      }
    }
    

    & .about-list{
      & li {
        position: relative;
        background: #fff;
        border-radius: 16px;
        text-align: left;
        margin-bottom: 30px;
        height: 343px !important;

        @media (max-width: 640px) {
          margin-bottom: 0px;
          border-radius: 30px;
        }

        & .num {
          position: absolute;
          left: 50%;
          transform: translateX(-50%);
          top: -20px;
          background: #FFF7D4;
          color: var(--key-color);
          font-weight: 700;
          width: 36px;
          height: 36px;
          border-radius: 9999px;
          display: grid;
          place-items: center;

          @media (max-width: 640px) {
            left: 20px;
            top: 10px;
            transform: none;
            background:#fff;
            height: 50px;
          }
        }

        & h3 {
          text-align: center;
          font-size: 18px;
          padding: 10px 0;
          line-height: 1.4;
          background: #FFF7D4;
          border-radius: 16px 16px 0 0;


          @media (max-width: 640px) {
            padding: 10px 0;
            border-radius: 30px 30px 0 0;
          }

          & span{
            position: relative;
            z-index: 100;
          }
        }

        & div{
          padding: 20px;

          & img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;

            @media (max-width: 640px) {
              height: 150px;
            }
          }

          & p {
            margin-top: 12px;
            font-size: 14px;
            line-height: 1.8;
            color: #333;
          }
        }
      }
    }
  }
}

/* reason-------------------------------------------------- */
.reason {

  /* ─────────── リスト全体 ─────────── */
  & .reason-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
    list-style: none;
    padding: 0;

    @media (max-width: 640px) {
      padding: 0 24px;
      gap: 24px;
    }

    & li {
      max-width: 314px;
      background: #fff;
      border: 2px solid var(--key-color);
      border-radius: 50%;
      aspect-ratio: 1 / 1;
      text-align: center;
      padding: 60px 32px;
      position: relative;

      @media (max-width: 640px) {
        max-width: 100%;
        border-radius: 32px;
        padding: 0px;
        aspect-ratio: auto;
        overflow: hidden;
      }

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 207px;
        height: 207px;
        background: #FFF9E1;
        border-radius: 1000px;
        z-index: -1;

        @media (max-width: 640px) {
          content: none;
        }
      }

      & div{
        display: none;

        @media (max-width: 640px) {
          display: block;
          background: #FFF9E1;
          padding: 5px 0;
          color: var(--key-color);
          font-family: "Noto Sans JP", sans-serif;
        }
      }

      & h3 {
        position: relative;
        top: 10px;
        z-index: 1;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.5;
        margin-bottom: 16px;

        @media (max-width: 640px) {
          font-size: 20px;
          margin-bottom: 0;
          padding: 10px 0 24px ;
        }
      }

      & p {
        position: relative;
        top: 10px;
        z-index: 1;
        font-size: 14px;
        line-height: 1.8;
        color: #333;

        @media (max-width: 640px) {
          position: static;
          padding: 0 20px 20px;
          text-align: justify;
          & br{display: none;}
        }
      }
    }
  }
}
