@charset "UTF-8";

/* sec01 */
.sec01{
  margin-bottom: 140px;
  .cont01{
    max-width: 1200px;
    margin: 0 auto;
    .flexbox{
      column-gap: 50px;
      margin-bottom: 80px;
      align-items: flex-start;
    }
    .reverse{
      margin-bottom: 80px;
    }
    .imagebox{
      width: 77%;
    }
    .textbox{
      width: 100%;
      .box_title{
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 30px;
      }
    }
  }
  .bottom_box{
    margin-bottom: 100px;
    background-color: #F9F7E5;
    border: 1px solid #F9EA00;
    .box_title{
      font-size: 24px;
      font-weight: 500;
      padding-top: 55px;
      text-align: center;
      margin-bottom: 70px;
    }
    .flexbox{
      column-gap: 70px;
      margin-bottom: 50px;
    }
    .box_text{
      text-align: center;
      margin-bottom: 60px;
      color: rgba(106, 98, 101, 1);
    }
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 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_text {
          font-size: 4vw;
        }
      }
    }

    .bottom_box {
      margin-bottom: 15vw;
      .box_title {
        font-size: 5vw;
        padding-top: 5vw;
        margin-bottom: 8vw;
      }
      .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: 2.8vw;
        margin-bottom: 5vw;
        padding: 0 5vw;
      }
    }

  }
}

/* sec02 */
.sec02{
  .cont01, .cont02, .cont03{
    max-width: 1200px;
    margin: 0 auto;
    .box_title{
      font-size: 24px;
      font-weight: 500;
    }
    .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: 30px;
        .box_title{
          font-size: 24px;
          font-weight: 500;
          line-height: 1.5;
        }
        .num{
          font-family: 'Zen Maru Gothic', sans-serif;
          font-size: 30px;
          letter-spacing: 0.5em;
          font-weight: bold;
        }
      }
    }
    .bottom_box{
      margin-bottom: 100px;
      background-color: #F9F7E5;
      border: 1px solid #F9EA00;
      .bottom_title{
        padding: 55px 0 60px;
        text-align: center;
        font-size: 24px;
        font-weight: 500;
      }
      .gridbox{
        column-gap: 65px;
        max-width: 1035px;
        margin: 0 auto 53px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        .box{
          margin: 0 auto;
          max-width: 300px;
          .box_title{
            padding: 20px 0;
            text-align: center;
            font-size: 21px;
            font-weight: bold;
          }
        }
        .imagebox{
          text-align: center;
        }

      }

    }
  }
  @media screen and (max-width: 768px) {
    .cont01, .cont02, .cont03 {
      .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;
        }
      }

      .reverse {
        flex-direction: column;
      }

      .bottom_box {
        margin-bottom: 10vw;

        .bottom_title {
          padding: 8vw 0 9vw;
          font-size: 5.3vw;
          letter-spacing: 0.1em;
        }

        .gridbox {
          grid-template-columns: repeat(1, minmax(0, 1fr));
          column-gap: 0;
          row-gap: 10vw;
          margin-bottom: 10vw;
          padding: 0 5vw;

          .box {
            max-width: 100%;

            .box_title {
              font-size: 4.8vw;
              padding: 0 0 3vw;
            }

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

          .imagebox img {
            width: 100%;
            height: auto;
          }
        }
      }
    }
  }
}

/* sec03 */
.sec03{
  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: #EE9581 transparent transparent transparent;
      }
    }
    .flexbox:last-of-type{
      margin-bottom: 0;
      &::before{
        display: none;
      }
    }
    .imagebox{
      width: 21.3%;
    }
    .textbox{
      width: 100%;
      .box_title{
        font-weight: 500;
        font-size: 25px;
        padding-left: 2em;
        border-bottom: 2px solid#EE9581;
        position: relative;
        margin-bottom: 8px;
        line-height: 3;
        &::before{
          content: "";
          position: absolute;
          width: 18px;
          height: 17px;
          left: 0;
          bottom: 50%;
          transform: translateY(50%);
          background: url(/taniyama/images/common/star_red.webp) center / contain no-repeat;
        }
      }
    }
  }
  @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: 0;
        margin-bottom: 15vw;

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

      .imagebox {
        width: 35vw;
        margin-bottom: 0;
      }

      .textbox {
        width: 100%;

        .box_title {
          font-size: 4.8vw;
          padding-left: 10vw;
          margin-bottom: 3vw;

          &::before {
            width: 5vw;
            height: 5vw;
          }
        }

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

}

/* sec04 */
.sec04{
  margin-bottom: 163px;
  .flexbox{
    max-width: 1200px;
    margin: 0 auto;
    column-gap: 50px;
    align-items: flex-start;
    .imagebox{
      width: 77%;
    }
    .textbox{
      width: 100%;
      .box_title{
        font-size: 24px;
        font-weight: 500;
        margin-bottom: 30px;
      }
      .box_text{
        margin-bottom: 30px;
      }
    }
    .about_wrapper{
      display: flex;
      justify-content: center;
      padding-left: 20px;
    }
    .about_btn {
      z-index: 1;
    }
    .about_btn::after{
      z-index: -1;
      width: 113px;
      height: 105px;
      left: -20px;
      background: url(/taniyama/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: 0;

      .imagebox {
        width: 100%;
      }

      .textbox {
        width: 100%;

        .box_text {
          font-size: 4vw;
          margin-bottom: 10.67vw;
        }
        .box_title{
          font-size: 5vw;
          margin-bottom: 3vw;
          line-height: 1.5;
        }
      }

      .about_wrapper {
        justify-content: center;
        padding-left: 0;
      }

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

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