@charset "UTF-8";

.main_image{
  .text{
    font-size: 30px;
  }
  @media screen and (max-width: 768px){
    .text{
      font-size: 6vw;
    }
  }
}

@media screen and (max-width: 768px){
  .text{
    font-size: 6.8vw;
    font-feature-settings: "palt";
  }
}
/* sec01 */
.sec01{
  margin-bottom: 100px;

  .top_text {
    width: 1000px;
    max-width: 100%;
    margin: 0 auto 60px;
  }

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

    .flexbox{
      column-gap: 50px;
      align-items: flex-start;
    }
    .reverse{
      margin-bottom: 135px;
    }
    .imagebox{
      width: 77%;
      position: relative;
    }
    .circle{
      background-color: rgba(255, 255, 255, 0.9);
      font-family: 'Zen Maru Gothic', sans-serif;
      font-weight: bold;
      font-size: 18px;
      width: 129px;
      height: 129px;
      display: flex;
      justify-content: center;
      align-items: center;
      text-align: center;
      border-radius: 50vh;
      flex-direction: column;
      line-height: 1;
      position: absolute;
      filter: drop-shadow(0px 0px 14px rgba(0, 0, 0, 0.5));
    }
    .top{
      top: 35px;
      left: 95px;
    }
    .left{
      left: 20px;
      bottom: 20px;
    }
    .right{
      left: 160px;
      bottom: 20px;
    }
    .textbox{
      width: 100%;
      .box_title {
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 30px;
        padding-left: 1.5em;
        position: relative;
        font-feature-settings: "palt";
        &::before{
          content: "";
          position: absolute;
          width: 18px;
          height: 17px;
          left: 0;
          bottom: 50%;
          transform: translateY(50%);
          background: url(/taniyama/images/common/star_orange.webp) center / contain no-repeat;
        }
      }
    }

  }

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

    .top_text {
      font-size: 4vw;
      margin: 0 auto 13.8vw;
    }

    .cont01 {
      .flexbox {
        flex-direction: column-reverse;
        column-gap: 0;
        margin-bottom: 10vw;
      }
      .reverse {
        flex-direction: column-reverse;
        margin-bottom: 10vw;
      }
      .imagebox {
        width: 100%;
      }
      .textbox {
        width: 100%;
        .box_title {
          font-size: 5vw;
          margin-bottom: 3vw;
        }
        .box_title span {
          font-size: 4vw;
        }
        .box_text {
          font-size: 4vw;
          text-align: justify;
        }
      }
      .circle{
        font-size: 3.5vw;
        width: 25vw;
        height: 25vw;
      }
      .top{
        top: 5vw;
        left: 15vw;
      }
      .left{
        left: 1vw;
        bottom: 5vw;
      }
      .right{
        left: 29vw;
        bottom: 5vw;
      }
      .textbox{
        width: 100%;
        .box_title {
          font-size: 5vw;
          margin-bottom: 3vw;
          line-height: 1.5;
          &::before{
            width: 5vw;
            height: 5vw;
          }
        }
      }
    }
  }
}

/* sec02 */
.sec02{
  .cont01, .cont02, .cont03, .cont04 {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;

    .box_title{
      font-size: 26px;
      font-weight: bold;
    }
    .flexbox{
      align-items: flex-start;
      column-gap: 50px;
      margin-bottom: 80px;
      .imagebox{
        width: 77%;
      }
    }
    .textbox{
      width: 100%;
      .box_header{
        display: flex;
        column-gap: 45px;
        align-items: center;
        margin-bottom: 40px;
        .box_title{
          font-size: 28px;
          font-weight: 500;
          line-height: 1.5;
        }
        .num{
          font-size: 30px;
          font-weight: bold;
          font-family: 'Zen Maru Gothic', sans-serif;
          letter-spacing: 0.5em;
        }
      }
    }
    .about_wrapper{
      max-width: 274px;
      margin: 65px auto;
      display: flex;
    }
  }
  @media screen and (max-width: 768px) {
    .cont01, .cont02, .cont03, .cont04 {
      .flexbox {
        flex-direction: column;
        column-gap: 0;
        margin-bottom: 10vw;

        .textbox {
          display: contents;
        }

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

        .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;
          text-align: justify;
        }
        .about_wrapper{
          order: 4;
          max-width: initial;
          margin: 10vw auto;
        }
      }

      .reverse {
        flex-direction: column;
      }

    }
  }
}

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

  .sec_header {
    flex-direction: column;
  }
  .sec_subtitle {
    font-weight: 500;
    font-size: 18px;
    letter-spacing: .1em;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 5px;
  }

  .top_text{
    max-width: 1000px;
    margin: 0 auto 100px;
  }

  .title {
    letter-spacing: .1em;
    font-size: 27px;
    text-align: center;

    margin: 0 40px 100px;
    padding: 30px 0;
    position: relative;

    &::before{
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      width: 275px;
      height: 2px;
      margin: 0 auto;
      background: #F08B00;
      letter-spacing: 0.11em;
    }
  }

  .cont01 {
    border: 2px solid #F08B00;
    max-width: 1046px;
    margin: 0 auto 100px;
    border-radius: 20px;
    padding: 70px 75px 90px;

    .flexbox{
      column-gap: 57px;
      margin-bottom: 62px;
      align-items: flex-start;

    }
    .flexbox:last-of-type{
      margin-bottom: 0;
      &::before{
        display: none;
      }
    }
    .imagebox{
      width: 43.6%;
      img {
        width:  100%;
        height: 100%;
        object-fit: contain;
      }
    }
    .textbox{
      width: 100%;
      .box_title {
        font-size: 24px;
        padding-left: 1.2em;
        margin-bottom: 15px;
        line-height: 1.5;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        position: relative;
        &::before{
          content: "";
          position: absolute;
          width: 17px;
          height: 18px;
          left: 0;
          bottom: 50%;
          transform: translateY(50%);
          background: url(/taniyama/images/common/star_orange.webp) center / contain no-repeat;
        }
        span{
          padding-right: 30px;
          color: #F08B00;
        }
      }
    }
  }

  .cont02 {
    border: 2px solid #6EC8AF;
    border-radius: 20px;
    max-width: 1046px;
    max-width: 100%;
    margin: 0 auto;
    padding: 70px 75px 90px;

    .title::before{
      background: #6EC8AF;
    }

    .flexbox{
      column-gap: 50px;
      margin-bottom:120px;
      align-items: flex-start;
    }
    .reverse{
      margin-bottom: 135px;
    }
    .imagebox{
      width: 69.2%;
    }
    .textbox{
      width: 100%;
    }
  }

  .bottom_box{
    box-sizing: border-box;
    margin: 0 auto 0px;

    .box_title{
      font-size: 26px;
      padding-top: 43px;
      text-align: center;
      margin-bottom: 93px;
    }

    .box01 {
      
      display: grid;
      row-gap: 0px;
      column-gap: 60px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-bottom: 80px;

      .item {
        text-align: center;
        .item_title {
          margin-bottom: 30px;
          font-size: 20px;
          text-align: center;
          padding-left: 1.5em;
          position: relative;
          display: inline-block;
          &::before{
            content: "";
            position: absolute;
            width: 18px;
            height: 17px;
            left: 0;
            bottom: 50%;
            transform: translateY(50%);
            background: url(/taniyama/images/common/star_blue.webp) center / contain no-repeat;
          }
        }
        .item_image {
          max-width: 300px;
          height: 170px;
          object-fit: contain;
          margin: 0 auto 10px;
        }
        .item_text {
          text-align: justify;
          max-width: 300px;
        }
      }
    }
    .box02 {
      .flexbox{
        column-gap: 50px;
        margin-bottom: 0;
      }
      .reverse {
        margin-bottom: 0;
      }
      .imagebox{
        width: 48%;
        img {
          width:  100%;
          height: 100%;
          object-fit: contain;
        }
      }
      .textbox{
        width: 71.4%;
        .box_title {
          padding-top: 0;
          font-size: 20px;
          text-align: left;
          margin-bottom: 20px;
          position: relative;
          display: inline-block;
          padding-left: 1.5em;
          &::before{
            content: "";
            position: absolute;
            width: 18px;
            height: 17px;
            left: 0;
            bottom: 50%;
            transform: translateY(50%);
            background: url(/taniyama/images/common/star_blue.webp) center / contain no-repeat;
          }
        }
      }
    }
  }

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

    .sec_header{
      .sec_subtitle {
        font-size: 4vw;
        letter-spacing: .1em;
        margin-bottom: 1vw;
      }
    }

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

    .title {
      letter-spacing: .1em;
      font-size: 5vw;

      margin: 0 0 10vw;
      padding: 0 0 3vw;
      &::before{
        width: 30vw;
      }
    }

    .cont01 {
      margin: 0 auto 13.8vw;
      padding: 10vw 5vw;
      .flexbox {
        flex-direction: column;
        column-gap: 0;
        row-gap: 0;
        margin-bottom: 10vw;
        

        &::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: 1.3em;
          margin-bottom: 3vw;
          line-height: 1.3;
          &::before {
            left: 0;
            width:  5vw;
            height: 5vw;
          }
          span{
            padding-right: 3vw;
          }
        }
        .box_text {
          font-size: 4vw;
          text-align: justify;
        }
      }
    }

    .cont02 {
      padding: 10vw 5vw;
      .flexbox {
        flex-direction: column-reverse;
        column-gap: 0;
        margin-bottom: 10vw;
      }
      .reverse {
        flex-direction: column-reverse;
        margin-bottom: 10vw;
      }
      .imagebox {
        width: 100%;
      }
      .textbox {
        width: 100%;
        .box_title {
          font-size: 5vw;
          margin-bottom: 3vw;
        }
        .box_title span {
          font-size: 4px;
        }
        .box_text {
          font-size: 4vw;
          text-align: justify;
        }
      }

    }

    .bottom_box {
      margin-bottom: 0;
      padding: 0;

      .box_title {
        font-size: 5vw;
        padding-top: 5vw;
        margin-bottom: 8vw;
      }

      .box01 {
        margin-bottom: 13.8vw;
        display: grid;
        row-gap: 10vw;
        column-gap: initial;
        grid-template-columns: repeat(1, 1fr);

        .item {
          .item_title {
            margin-bottom: 3vw;
            font-size: 4.8vw;
            &::before{
              width: 5vw;
              height: 5vw;
            }
          }
          .item_image {
            width: 100%;
            height: initial;
            object-fit: contain;
            margin: 0 auto 3vw;
            max-width: initial;
          }
          .item_text {
            font-size: 4vw;
            max-width: initial;
          }
        }
      }
      .box02 {
        .flexbox {
          flex-direction: column-reverse;
          column-gap: 0;
          margin-bottom: 0;
        }
        .reverse {
          flex-direction: column-reverse;
          margin-bottom: 0;
        }
        .imagebox {
          width: 100%;
          margin: 0 auto 3vw;
        }
        .textbox {
          width: 100%;
          text-align: center; 
          .box_title {
            font-size: 5vw;
            margin-bottom: 3vw;
          }
          .box_text {
            font-size: 4vw;
            margin-bottom: 0;
            padding: 0;
            text-align: justify; 
          }
        }
      }

      .flexbox {
        flex-direction: column;
        column-gap: 0;
        row-gap: 6.67vw;
        margin-bottom: 6.27vw;
      }
      .flexbox img {
        width: 80%;
        min-width: initial;
        height: auto;
      }
      .box_text {
        font-size: 4vw;
        margin-bottom: 5vw;
        padding: 0 5vw;
      }
    }
  }
}

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