@charset "UTF-8";
.mainimagebox {
  margin: 0px 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;
    padding-left: 2px;
  }

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

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

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

  }
}

/* sec02 */
.sec02{
  .cont01, .cont02, .cont03{
    margin-bottom: 113px;
    .box_header{
      display: flex;
      column-gap: 25px;
      align-items: center;
      margin-bottom: 27px;
      justify-content: center;
      .box_title{
        font-size: 28px;
        font-weight: bold;
        font-family: serif;
        line-height: 1.3;
      }
      .num{
        color: #FF748B;
        font-size: 25px;
        letter-spacing: 0.1em;
      }
    }
    .imagebox{
      text-align: center;
      margin-bottom: 24px;
      position: relative;
    }
    .textbox{
      max-width: 1200px;
      margin: 0 auto;
    }
    .circle{
      display: flex;
      column-gap: 15px;
      position: absolute;
      bottom: 18px;
      .circle_text{
        color: #fff;
        background-color: #4DBACD;
        width: 217px;
        height: 217px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-radius: 50vh;
        flex-direction: column;
        line-height: 1;
        font-weight: bold;
        font-size: 28px;
        position: relative;
        span{
          font-size: 19px;
          line-height: 1.5;
          margin-bottom: 15px;
          font-weight: bold;
        }
      }
    }
  }
  .cont02{
    .circle{
      right: 113px;
      .circle_left::before{
        position: absolute;
        content: "";
        width: 106px;
        height: 106px;
        left: -60px;
        top: 30px;
        background: url(/kagoshima/images/caries/kazari01.webp) center / contain no-repeat;
      }
      .circle_right::before{
        position: absolute;
        content: "";
        width: 155px;
        height: 89px;
        right: 0px;
        bottom: -25px;
        background: url(/kagoshima/images/caries/kazari02.webp) center / contain no-repeat;
      }
    }
  }
  .pink_box{
    margin-top: 70px;
    max-width: 896px;
    padding: 50px 50px 60px;
    position: relative;
    &::before{
      content: "point";
      position: absolute;
      font-size: 25px;
      color: #fff;
      background-color: #FF748B;
      letter-spacing: 0.2em;
      top: -25px;
      left: 50px;
      padding: 2px 27px 4px;
    }
    .flexbox{
      column-gap: 35px;
    }
    .imagebox{
      width: 72%;
    }
    .textbox{
      width: 100%;
      .box_title{
        font-size: 25px;
        margin-bottom: 10px;
      }
    }
  }
  .cont03{
    .circle{
      left: 92px;
      .circle_left::before{
        position: absolute;
        content: "";
        width: 150px;
        height: 62px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        background: url(/kagoshima/images/caries/kazari03.webp) center / contain no-repeat;
      }
      .circle_right::before{
        position: absolute;
        content: "";
        width: 116px;
        height: 106px;
        right: 50%;
        transform: translateX(50%);
        top: -55px;
        background: url(/kagoshima/images/caries/kazari04.webp) center / contain no-repeat;
      }
    }
  }
  .cont04{
    .box_title{
      font-size: 26px;
      font-weight: bold;
    }
    .flexbox{
      align-items: flex-start;
      column-gap: 66px;
      margin-bottom: 90px;
      .imagebox{
        width: 83%;
      }
    }
    .textbox{
      width: 100%;
      .box_header{
        display: flex;
        column-gap: 25px;
        align-items: center;
        margin-bottom: 35px;
        .box_title{
          font-size: 28px;
          font-weight: bold;
          font-family: serif;
          line-height: 1.3;
        }
        .num{
          color: #FF748B;
          font-size: 25px;
          letter-spacing: 0.1em;
        }
      }
    }
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 13.8vw;
    .cont01, .cont02, .cont03 {
      margin-bottom: 10vw;

      .box_header {
        column-gap: 3vw;
        margin-bottom: 3vw;
        justify-content: flex-start;
        flex-direction: row;
        align-items: center;

        .box_title { font-size: 5vw; }
        .num { font-size: 4.8vw; }
      }

      .imagebox {
        margin-bottom: 3vw;
      }

      .textbox {
        font-size: 4vw;
        max-width: 100%;
      }

      .circle {
        column-gap: 1vw;
        bottom: 3vw;
        right: 1vw;

        .circle_text {
          width: 32vw;
          height: 32vw;
          font-size: 4vw;

          span {
            font-size: 3vw;
            margin-bottom: 2vw;
          }
        }
      }
    }
    .cont02 {
      .circle {
        right: 1vw;

        .circle_left::before {
          width: 14vw;
          height: 14vw;
          left: -8vw;
          top: -1vw;
        }

        .circle_right::before {
          width: 20vw;
          height: 12vw;
          right: 1vw;
          bottom: initial;
          top: -1vw;
        }
      }
    }
    .pink_box {
      margin-top: 13.8vw;
      padding: 8vw 5vw 10vw;

      &::before {
        font-size: 4vw;
        top: -5vw;
        left: 5vw;
        padding: 1vw 4vw;
      }

      .flexbox {
        flex-direction: column-reverse;
        row-gap: 0vw;
      }

      .imagebox {
        width: 100%;

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

      .textbox {
        width: 100%;

        .box_title {
          font-size: 5vw;
          margin-bottom: 2vw;
          font-feature-settings: "palt";
        }

        .box_text {
          font-size: 4vw;
        }
      }
    }

    .cont03 {
      .imagebox{
        margin-bottom: 7vw;
      }
      .circle {
        left: -3vw;
        bottom: -5vw;

        .circle_left::before {
          width: 20vw;
          height: 8vw;
          bottom: initial;
          top: 0;
        }

        .circle_right::before {
          width: 23vw;
          height: 12vw;
          top: -3vw;
          background: url(/kagoshima/images/caries/kazari_sp.webp) center / contain no-repeat;
        }
      }
    }
    .cont04 {
      .flexbox {
        flex-direction: column;
        column-gap: 0;
        margin-bottom: 10vw;

        .imagebox {
          order: 2;
          width: 100%;
        }

        .textbox {
          display: contents;
        }

        .box_header {
          order: 1;
          column-gap: 3vw;
          margin-bottom: 3vw;
          flex-direction: row;
          justify-content: flex-start;
          align-items: center;

          .box_title { font-size: 5vw; }
          .num { font-size: 4.8vw; }
        }

        .box_text {
          order: 3;
          font-size: 4vw;
        }
      }
    }
  }
}

/* sec03 */
.sec03{
  margin-bottom: 113px;
  .flexbox{
    column-gap: 70px;
    align-items: flex-start;
    .imagebox{
      width: 100%;
      position: relative;
    }
    .textbox{
      .box_title{
        font-size: 25px;
        font-weight: bold;
        font-family: serif;
        margin-bottom: 20px;
      }
    }
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 13.8vw;

    .flexbox {
      flex-direction: column;
      column-gap: 0;
      row-gap: 6vw;

      .imagebox {
        width: 100%;

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

      .textbox {
        width: 100%;

        .box_title {
          font-size: 5vw;
          margin-bottom: 3vw;
        }

        .box_text {
          font-size: 4vw;
        }
      }
    }
  }
}

/* sec04 */
.sec04{
  margin-bottom: 137px;
  .cont01{
    margin-bottom: 70px;
    .flexbox{
      align-items: flex-start;
      column-gap: 90px;
    }
    .imagebox{
      width: 41.7%;
    }
    .textbox{
      width: 100%;
    }
  }
  .cont02{
    .gridbox{
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin: 0 auto;
      column-gap: 55px;
    }
    .box{
      border:2px solid #B1CD4D;
      border-radius: 30px;
      padding: 10px 25px 33px;
    }
    .box_img{
      text-align: center;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .box_title{
      font-size: 24px;
      color: #B1CD4D;
      font-weight: bold;
      text-align: center;
      margin-bottom: 15px;
    }
    .red{
      border: 2px solid #CD624D;
      .box_title{
        color: #CD624D;
      }
    }
    .blue{
      border: 2px solid #4DBACD;
      .box_title{
        color: #4DBACD;
      }
    }
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 13.8vw;

    .cont01 {
      margin-bottom: 10vw;

      .flexbox {
        flex-direction: column-reverse;
        column-gap: 0;
        row-gap: 0;
      }

      .imagebox {
        width: 80%;
        margin: 0 auto 3vw;

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

      .textbox {
        width: 100%;
        font-size: 4vw;
      }
    }

    .cont02 {
      .gridbox {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        column-gap: 0;
        row-gap: 5vw;
      }

      .box {
        border-radius: 4vw;
        padding: 3vw 5vw 6vw;
      }

      .box_img {
        height: initial;
        width: 20vw;
        margin: 0 auto;
        img{
          min-width: initial;
        }
      }

      .box_title {
        font-size: 5vw;
        margin-bottom: 2vw;
      }

      .box_text {
        font-size: 4vw;
      }
    }
  }
}

/* sec05 */
.sec05{
  margin-bottom: 200px;
  .top_text{
    max-width: 1000px;
    margin: 0 auto 110px;
  }
  .cont01{
    max-width: 1036px;
    margin: 0 auto;
    .flexbox{
      column-gap: 66px;
      margin-bottom: 100px;
      position: relative;
      &::before{
        content: "";
        position: absolute;
        bottom: -70px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 12px 13px 0 13px;
        border-color: #FF748B transparent transparent transparent;
      }
    }
    .flexbox:last-of-type{
      margin-bottom: 0;
      &::before{
        display: none;
      }
    }
    .imagebox{
      width: 21.3%;
    }
    .textbox{
      width: 100%;
      .box_header{
        display: flex;
        border-bottom: 2px solid#F991A2;
        column-gap: 30px;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 10px;
      }
      .num{
        width: 75px;
        height: 75px;
        border-radius: 50vh;
        color: #fff;
        background-color: #F991A2;
        font-family: serif;
        font-size: 25px;
        font-weight: bold;
        display: flex;
        justify-content: center;
        align-items: center;

      }
      .box_title{
        font-family: serif;
        font-weight: bold;
        font-size: 25px;
      }
    }
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 13.8vw;

    .top_text {
      font-size: 4vw;
      margin-bottom: 10vw;
    }

    .cont01 {
      .flexbox {
        flex-direction: column;
        column-gap: 0;
        row-gap: 4vw;
        margin-bottom: 15vw;

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

      .imagebox {
        width: 35vw;
        margin: 0 auto;

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

      .textbox {
        width: 100%;

        .box_header {
          column-gap: 3vw;
          margin-bottom: 3vw;
          padding-bottom: 3vw;
        }

        .num {
          width: 15vw;
          height: 15vw;
          font-size: 5vw;
        }

        .box_title {
          font-size: 5vw;
        }

        .box_text {
          font-size: 4vw;
        }
      }
    }
  }

}

/* sec06 */
.sec06{
  margin-bottom: 163px;
  .flexbox{
    column-gap: 53px;
    align-items: flex-start;
    .imagebox{
      width: 81.3%;
    }
    .textbox{
      width: 100%;
      .box_title{
        font-size: 25px;
        font-family: serif;
        margin-bottom: 20px;
        font-weight: bold;
      }
      .box_text{
        margin-bottom: 50px;
      }
    }
    .about_wrapper{
      display: flex;
      justify-content: flex-start;
    }
    .about_btn{
      z-index: 1;
    }
    .about_btn::after{
      width: 113px;
      height: 105px;
      left: 0px;
      z-index: -1;
      background: url(/kagoshima/images/common/welcome_img.webp) center/contain no-repeat;
    }
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 13.8vw;

    .flexbox {
      flex-direction: column-reverse;
      column-gap: 0;
      row-gap: 0vw;

      .imagebox {
        width: 100%;

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

      .textbox {
        width: 100%;

        .box_title {
          font-size: 5vw;
          margin-bottom: 3vw;
        }

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

      .about_wrapper {
        justify-content: center;
      }

      .about_btn::after {
        width: 21vw;
        height: 20vw;
        left: -3.67vw;
      }
    }
  }
}

