@charset "UTF-8";
.mainimagebox {
  margin: 0 auto 30px;
  max-width: 1440px;
  padding-top: 105px;

  .inner{
    padding: 0 clamp(40px, 5.5556vw, 80px);
  }

  @media screen and (min-width: 1441px) {
    max-width: initial;
    .inner{
      max-width: initial;
    }
  }

  @media screen and (max-width: 768px) {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    .inner{
      padding: 0 0 0 5vw;
    }
  }
}

.main_image {
  display: flex;
  justify-content: space-between;
  align-items: center;

  .main_text {
    box-sizing: border-box;
  }

  .text {
    font-size: clamp(34px, 3.3333vw, 48px);
    letter-spacing: 0.2em;
    font-family: serif;
    line-height: 1.5;
  }

  .sub_text {
    font-size: 13px;
    font-weight: bold;
    font-family: serif;
  }

  .mv {
    max-width: clamp(600px, 52.2917vw, 753px);

    & img {
      width: 100%;
      display: block;
    }
  }

  /* 1441px以上：拡大 */
  @media screen and (min-width: 1441px) {
    min-width: initial;

    .text {
      font-size: 3.3vw;
    }

    .sub_text {
      font-size: 0.9vw;
    }

    .mv {
      max-width: 52vw;
    }
  }

  /* 768px以下：スマホ */
  @media screen and (max-width: 768px) {
    min-width: initial;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 16vw;


    .main_text {
      padding: 8vw 0 4vw;
    }

    .text {
      font-size: 7vw;
    }

    .sub_text {
      font-size: 3.5vw;
    }

    .mv {
      max-width: 100%;
      width: 100%;

      & img {
        width: 100%;
      }
    }
  }
}

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

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

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

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

  .pink_box{
    width: 1120px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 69px 63px;

    .pink_title {
      padding: 0 0 60px;
      letter-spacing: .15em;
      font-family: serif;
      font-size: 28px;
      font-weight: bold;
      text-align: center;
    }
    .pink_text {
      width: 910px;
      max-width: 100%;
      margin: 0 auto;
      margin-bottom: 60px;
    }

    .list_box {
      box-sizing: border-box;
      width: 910px;
      max-width: 100%;
      margin: 0 auto 72px;
      background: rgba(238, 238, 238, 1);
      padding: 34px;
      .item {
        width: 730px;
        max-width: 100%;
        margin: 0 auto;
        font-weight: 500;
      }
      .item:not(:last-of-type) {
        margin-bottom: 20px;
      }
    }

    .link_grid {
      box-sizing: border-box;
      width: 995px;
      max-width: 100%;
      margin: 0 auto 93px;

      display: grid;
      column-gap: 25px;
      grid-template-columns: 314px 314px 314px;
      .item {
        width:  314px;
        height: 111px;
        img {
          width:  100%;
          height: 100%;
          object-fit: contain;
        }
      }
    }

    .yellow_box {
      box-sizing: border-box;
      width: 910px;
      max-width: 100%;
      margin: 0 auto;
      padding: 0 60px 60px;

      .title {
        width: fit-content;
        padding: 0 .8em;
        margin: 0 auto 40px;

        margin-bottom: 58px;
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 3px solid rgba(77, 186, 205, 1)
      }

      .item_grid {
        box-sizing: border-box;
        width: 750px;
        max-width: 100%;
        margin: 0 auto 67px;

        display: grid;
        column-gap: 25px;
        grid-template-columns: repeat(3, 1fr);

        .item_image {
          text-align: center;
          margin: 0 auto 20px;
          img {
            width:  126px;
            height: 132px;
            object-fit: contain;
          }
        }
        .item_title {
          line-height: 1.3;
          font-size: 16px;
          font-weight: bold;
          text-align: center;
          text-wrap: nowrap;
        }
      }

      .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;

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

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

      .imagebox {
        width: 100%;
      }

      .textbox {
        width: 100%;

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

      .about_wrapper {
        justify-content: center;
      }

      .about_btn::after {
        width: 23.07vw;
        height: 18vw;
        left: -3.67vw;
      }
    }

    .pink_box{
      padding: 9vw 5.5vw;

      .pink_title {
        padding: 0 0 6vw;
        font-size: 5.3vw;
      }
      .pink_text {
        font-size: 4vw;
        margin-bottom: 8vw;
      }

      .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_grid {
        margin: 0 auto 13.8vw;

        display: grid;
        row-gap: 4.2vw;
        column-gap: initial;
        grid-template-columns: repeat(1, 1fr);
        .item {
          width:  77.86vw;
          height: 27.73vw;
          img {
            width:  100%;
            height: 100%;
          }
        }
      }

      .yellow_box {
        padding: 0;

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

        .item_grid {
          margin: 0 auto 13.8vw;

          display: grid;
          row-gap: 8vw;
          column-gap: 3vw;
          grid-template-columns: 1fr 1fr;
          grid-template-rows: auto;

          .item_image {
            margin: 0 auto 4.2vw;
            img {
              width:  23.52vw;
              height: 24.64vw;
            }
          }
          .item_title {
            font-size: 4vw;
            text-wrap: wrap;
          }
          .item-columns1 {
            grid-column: 1 / span 2;
            grid-row: auto;
          }
        }
        .text {
          font-size: 4vw;
        }
      }
    }
  }
}

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

  .cont01 {
    max-width: 1200px;
    margin: 0 auto 100px;
    counter-reset: cnt;
    .flexbox{
      column-gap: 57px;
      margin-bottom: 62px;
      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-family: serif;
        font-weight: bold;
        font-size: 25px;
        padding-left: 107px;
        position: relative;
        margin-bottom: 35px;
        line-height: 1.4;
        &::before{
          content: "";
          position: absolute;
          left: 0;
          bottom: 50%;
          transform: translateY(50%);
          border-radius: 50%;
          background: rgba(249, 145, 162, 1);
          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: flex-start;
        }
        .about_btn {
          margin-left: 20px;
        }
        .about_btn::after{
          width: 118px;
          height: 101px;
          left: -20px;
          background: url(/kagoshima/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(/kagoshima/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(/kagoshima/images/first/jr_img.webp) center/contain no-repeat;
  }
  .about_btn03::after{
    z-index: -1;
    width: 113px;
    height: 105px;
    left: -30px;
    background: url(/kagoshima/images/first/welcome_img.webp) center/contain no-repeat;
  }

  @media screen and (max-width: 768px) {
    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: 8.2vw;
          line-height: 1.6;
          &::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: flex-start;
          }
          .about_btn {
            margin-left: 4vw;
          }
          .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;
  }
}

