@charset "UTF-8";


/* lead_sec */
.lead_sec {
  margin-bottom: 100px;

  .sec_title {
    margin: 60px 50px 80px;
  }

  .flexbox {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;

    column-gap: 50px;
    align-items: flex-start;
    .imagebox{
      width: 81.3%;
    }
    .textbox{
      width: 100%;
      .box_text{
        font-size: 16px;
        text-align: justify;
        margin-bottom: 40px;
      }
    }
    .about_wrapper{
      display: flex;
      justify-content: center;
      
    }
    .about_btn {
      max-width: 316px;
      z-index: 1;
    }
    .about_btn::after {
      z-index: -1;
      width: 124px;
      height: 97px;
      left: -20px;
      background: url(/taniyama/images/first/staff_img.webp) center/contain no-repeat;
    }
  }

  

  @media screen and (max-width: 768px) {
    margin-bottom: 13.8vw;

    .sec_title {
      margin: 5.5vw 0 6vw;
      margin-bottom: 5.7vw;
    }

    .flexbox {
      flex-direction: column;
      column-gap: 0;
      row-gap: 0;
      margin: 0 auto;

      .imagebox {
        width: 100%;
      }

      .textbox {
        width: 100%;

        .box_text {
          font-size: 4vw;
          margin-bottom: 10.67vw;
        }
        
      }

      .about_wrapper {
        justify-content: center;
      }
      .about_btn{
        max-width: initial;
      }
      .about_btn::after {
        width: 23.07vw;
        height: 18vw;
        left: -3.67vw;
      }
    }
  }
}

/* sec0 */
.sec0{
  background-image: linear-gradient(180deg, rgba(249, 247, 229, 1), rgba(249, 247, 229, 0));
  .wrapper_box{
    width: 1120px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 120px 0px 100px;
    margin: 0 auto;

    .box_title {
      padding: 0 0 60px;
      letter-spacing: .15em;
      font-size: 28px;
      font-weight: 500;
      text-align: center;
    }
    .box_text01{
      font-size: 28px;
      font-weight: bold;
      text-align: center;
      margin-bottom: 40px;
      span{
        color: #F08B00;
        font-weight: bold;
      }
    }
    .box_text {
      width: 800px;
      max-width: 100%;
      margin: 0 auto;
      margin-bottom: 60px;
    }

    .list_box {
      box-sizing: border-box;
      width: 800px;
      max-width: 100%;
      margin: 0 auto 80px;
      background: #fff;
      padding: 34px;
      .item {
        width: 730px;
        max-width: 100%;
        margin: 0 auto;
        font-weight: 500;
      }
      .item:not(:last-of-type) {
        margin-bottom: 20px;
      }
    }

    .link_flex {
      box-sizing: border-box;
      max-width: 753px;
      margin: 0 auto 100px;

      display: flex;
      column-gap: 25px;

    }

    .come_box {
      box-sizing: border-box;
      width: 1000px;
      max-width: 100%;
      margin: 0 auto;
      padding: 70px 60px 80px;
      border: 2px solid #ECD300;
      border-radius: 20px;

      .title {
        width: fit-content;
        margin: 0 auto 40px;
        margin-bottom: 58px;
        font-size: 24px;
        font-weight: 500;
        text-align: center;
      }

      .flex_text{
        line-height: 4;
        span{
          color: #ECD300;
          padding-right: 0.5em;
        }
      }

      .flexbox{
        column-gap: 100px;
        margin-bottom: 60px;
      }

      .text {
        width: 711px;
        max-width: 100%;
        margin: 0 auto;
        letter-spacing: .1em;
        font-weight: 500;
      }
    }
  }
  @media screen and (max-width: 768px){
    margin-bottom: 13.8vw;
    .wrapper_box{
      padding: 9vw 5.5vw;

      .box_title {
        padding: 0 0 6vw;
        font-size: 5.3vw;
      }
      .box_text {
        font-size: 4vw;
        margin-bottom: 8vw;
      }
      .box_text01{
          font-size: 4.8vw;
          margin-bottom: 5vw;
        }

      .list_box {
        margin: 0 auto 8vw;
        padding: 5.5vw;
        .item {
          box-sizing: border-box;
          font-size: 4.2vw;
          padding-left: 1em;
          text-indent: -1em;
          text-align: justify;
        }
        .item:not(:last-of-type) {
          margin-bottom: 4vw;
        }
      }

      .link_flex {
        margin: 0 auto 13.8vw;
        column-gap: 1vw;
        flex-wrap: wrap;
        width: 80%;

        row-gap: 4.2vw;
        column-gap: initial;
      }
      .btn{
        width: 48%;
        margin: 0 auto;
      }

      .come_box {
        padding: 10vw 5vw;

        .title {
          margin: 0 auto 3vw;
          font-size: 5vw;
          padding-bottom: 2.66vw;
        }

        .flexbox{
          flex-direction: column;
          column-gap: 0;
          margin-bottom: 5vw;
        }
        .imagebox{
          width: 60%;
        }
        .flex_text{
          line-height: 2.5;
          padding-left: 1.5em;
          text-indent: -1.5em;
        }
        .text {
          font-size: 4vw;
        }
      }
    }
  }
}

/* sec01 */
.sec01 {
  margin-bottom: 120px;
  .sec_header{
    margin-bottom: 90px;
  }

  .cont01 {
    max-width: 1200px;
    margin: 0 auto 100px;
    counter-reset: cnt;
    .flexbox{
      column-gap: 57px;
      margin-bottom: 80px;
      align-items: flex-start;

    }
    .flexbox:last-of-type{
      margin-bottom: 0;
      &::before{
        display: none;
      }
    }
    
    .imagebox{
      width: clamp(426px, 33.333vw, 480px);
      min-width: 40%;
      max-width: 40%;
      img {
        width:  100%;
        height: 100%;
        object-fit: contain;
      }
    }
    .textbox{
      counter-reset: number 0;
      .box_title {
        font-weight: 500;
        font-size: 25px;
        padding-left: 107px;
        position: relative;
        margin-bottom: 45px;
        line-height: 1.4;
        &::before{
          content: "";
          position: absolute;
          left: 0;
          bottom: 50%;
          transform: translateY(50%);
          border-radius: 50%;
          background: #F08B00;
          width:  90px;
          height: 90px;

          counter-increment: cnt;
          content: '0'counter(cnt);

          display: flex;
          justify-content: center;
          align-items: center;

          font-family: 'Noto Sans JP';
          font-size: 28px;
          text-align: center;
          color: #fff;
          font-weight: normal;
        }
      }
    }

    .flexbox:nth-of-type(1) {
      .imagebox {
        position: relative;
      }
      .image_text {
        position: absolute;
        top:   -48px;
        right: -26px;
        width:  210px;
        height: 210px;
        border-radius: 50%;
        background: rgba(250, 148, 128, 0.9);

        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;

        font-weight: Bold;
        font-size: 20px;
        letter-spacing: .1em;
        line-height: 1.4;
        text-align: center;
        color: #fff;
      }
    }
    .flexbox:nth-of-type(6) {
      .imagebox {
        position: relative;
      }
      .image_text {
        position: absolute;
        top:   -19px;
        right: -14px;
        width:  210px;
        height: 210px;
        border-radius: 50%;
        background: rgba(255, 116, 139, 0.9);

        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;

        font-weight: 700;
        font-style: Bold;
        font-size: 20px;
        letter-spacing: .1em;
        line-height: 1.4;
        text-align: center;
        color: #fff;
      }
      .textbox {
        .box_text {
          margin-bottom: 40px;
        }
        .about_wrapper{
          display: flex;
          justify-content: center;
        }
        .about01{
          max-width: 226px;
        }
        .about_btn {
          margin-left: 20px;
        }
        .about_btn::after{
          width: 118px;
          height: 101px;
          left: -20px;
          background: url(/taniyama/images/first/medical_img.webp) center/contain no-repeat;
        }
      }
    }
  }

  .about_flex_wrapper {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .about_btn {
    z-index: 1;
  }
  .about_btn01::after{
    z-index: -1;
    width: 131px;
    height: 101px;
    left: -20px;
    background: url(/taniyama/images/first/comecome_img.webp) center/contain no-repeat;
  }
  .about_btn02::after{
    z-index: -1;
    width: 113px;
    height: 98px;
    bottom: 0;
    left: -30px;
    background: url(/taniyama/images/first/jr_img.webp) center/contain no-repeat;
  }
  .about_btn03::after{
    z-index: -1;
    width: 113px;
    height: 105px;
    left: -30px;
    background: url(/taniyama/images/first/welcome_img.webp) center/contain no-repeat;
  }

  @media screen and (max-width: 768px) {
    margin-bottom: 23.8vw;

    .sec_header{
      margin-bottom: 13.8vw;
    }
    .cont01 {
      margin: 16vw auto 13.8vw;
      .flexbox {
        flex-direction: column;
        column-gap: 0;
        row-gap: 0;
        margin-bottom: 15vw;

        &::before {
          bottom: -7.33vw;
          border-width: 2.6vw 2.73vw 0 2.73vw;
        }
      }

      .imagebox {
        width: 100%;
        max-width: initial;
        min-width: initial;
        margin-bottom: 4.2vw;
      }

      .textbox {
        width: 100%;

        .box_title {
          font-size: 4.8vw;
          padding-left: 23vw;
          margin-bottom: 5vw;
          line-height: 1.6;
          text-align: justify;
          min-height: 16vw;
          display: flex;
          align-items: center;
          &::before {
            left: 0;
            width:  19.2vw;
            height: 19.2vw;
            font-size: 6.3vw;
          }
        }
        .box_text {
          font-size: 4vw;
        }
      }

      .flexbox:nth-of-type(1) {
        .image_text {
          top:   -5.06vw;
          right: -3.73vw;
          width:  35vw;
          height: 35vw;

          font-size: 4.8vw;
        }
      }
      .flexbox:nth-of-type(6) {
        .image_text {
          top:   -5.06vw;
          right: -3.73vw;
          width:  35vw;
          height: 35vw;

          font-size: 4.8vw;
        }
        .textbox {
          .box_text {
            margin-bottom: 10.67vw
          }
          .about_wrapper{
            display: flex;
            justify-content: center;
          }
          .about01{
            max-width: initial;
          }
          .about_btn {
            margin-left: 0;
          }
          .about_btn::after{
            width: 31.46vw;
            height: 20vw;
            left: -5vw;
          }
        }
      }
    }

    .about_flex_wrapper {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      row-gap: 8vw;
    }
    .about_btn {
      margin-left: 3vw;
    }
    .about_btn01::after{
      width: 24.42vw;
      height: 20vw;
      left: -3.67vw;
      bottom: -0.7vw;
    }
    .about_btn02::after{
      width: 21.07vw;
      height: 20vw;
      left: -3.67vw;
      bottom: -1vw;
    }
    .about_btn03::after{
      width: 21.07vw;
      height: 20vw;
      left: -3.67vw;
      bottom: -0.7vw;
    }
  }
}

/* sec02 */
.sec02 {
  @media screen and (max-width: 768px){
    margin-bottom: 13.8vw;
  }
}

