@charset "UTF-8";


/* sec01 */
.sec01{
  margin-bottom: 100px;
  .gridbox{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 21px;
    row-gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
  }
  .box{
    max-width: 269px;
    height: 85px;
    border: 2px solid #F08B00;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    position: relative;
    &::before{
      content: "";
      position: absolute;
      left: 50%;
      bottom: 7px;
      width: 22px;
      height: 15px;
      transform: translateX(-50%);
      width:  22px;
      height: 15px;
      background-color: #F08B00;
      clip-path: polygon(0 0, 100% 0%, 50% 100%);
    }
  }
  .menu{
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    padding-bottom: 15px;
  }
  @media screen and (max-width: 768px){
    margin-bottom: 13.8vw;
    .gridbox{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 2vw;
      row-gap: 3vw;
    }
    .box{
      height: 26vw;
      max-width: initial;
      border-radius: 30px;
      &::before{
        bottom: 1.6vw;
        width:  4.1vw;
        height: 2.8vw;
      }
    }
    .menu{
      font-size: 3.8vw;
      padding-bottom: 0;
    }
  }
}

/* sec02 - sec04 */
.sec02, .sec03{
  margin-bottom: 100px;
  .gridbox{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 55px;
    row-gap: 100px;
    max-width: 1198px;
    margin: 0 auto;
    .box{
      max-width: 360px;
    }
    .box_title{
      font-size: 25px;
      font-weight: 500;
      text-align: center;
      line-height: 1.5;
      margin-bottom: 20px;
    }
    .imagebox{
      margin-bottom: 20px;
    }
    .box_text{
      height: 200px;
    }
    .about_wrapper{
      margin-top: 20px;

    }
    .about_btn{
      background-color: #fff;
      border: 2px solid #ECD300;
      text-align: left;
      font-size: 20px;
      font-weight: 500;
      &::before{
        background: url(/taniyama/images/common/orange_yajirushi.webp) center / contain no-repeat;
      }
    }
  }
  @media screen and (max-width: 768px){
    .gridbox{
      grid-template-columns: repeat(1, minmax(0, 1fr));
      column-gap: 0;
      row-gap: 13.8vw;
      .box{
        max-width: initial;
      }
      .box_title{
        font-size: 5vw;
        margin-bottom: 3vw;
      }
      .imagebox{
        margin-bottom: 3vw;
      }
      .box_text{
        height: initial;
      }
      .about_wrapper{
        margin-top: 5vw;
        display: flex;
        justify-content: center;

      }
      .about_btn{
        font-size: 4.3vw;

      }
    }
  }
}

/* sec04 */
.sec04{
  margin-bottom: 100px;
  .flexbox{
    column-gap: 50px;
    max-width: 1200px;
    margin: 0 auto 120px;
    align-items: flex-start;
    .box_title{
      font-size: 25px;
      font-weight: bold;
      line-height: 1.5;
      margin-bottom: 20px;
    }
    .imagebox{
      width: 100%;
      max-width: 360px;
    }
    .about_wrapper{
      margin-top: 20px;

    }
    .about_btn{
      background-color: #fff;
      border: 2px solid #ECD300;
      text-align: left;
      font-size: 20px;
      font-weight: 500;
      max-width: 280px;
      &::before{
        background: url(/taniyama/images/common/orange_yajirushi.webp) center / contain no-repeat;
      }
    }
  }
  
  .bottom_box{
    background-color: #F5F5F5;
    padding: 65px 55px 50px;
    max-width: 1200px;
    .flexbox{
      margin-bottom: 40px;
    }
    .bottom_flex{
      display: flex;
      column-gap: 60px;
      justify-content: center;
    }
    .about_btn{
      max-width: 330px;
    }
    .kagoshima{
      background-color: #FFC7D1;
      &::before{
        background: url(/taniyama/images/common/yajirushi_pink.webp) center / contain no-repeat;
      }
    }
    .nishijin{
      background-color: #AFCDE2;
      &::before{
        background: url(/taniyama/images/common/yajirushi_blue02.webp) center / contain no-repeat;
      }
    }
  }

  @media screen and (max-width: 768px){
    .gridbox{
      grid-template-columns: repeat(1, minmax(0, 1fr));
      column-gap: 0;
      row-gap: 13.8vw;

      .about_btn{
        background-color: #fff;
        border: 2px solid #FF748B;
        &::before{
          background: url(/taniyama/images/common/yajirushi_pink.webp) center / contain no-repeat;
        }
      }
    }

    .flexbox{
      flex-direction: column;
      column-gap: 0;
      margin: 0 auto 13.8vw;
      align-items: center;

      .textbox{
        display: contents; 
      }
      .box_title{
        font-size: 5vw;
        margin-bottom: 3vw;
        text-align: center;
        order: 1;
      }
      .imagebox{
        width: 100%;
        max-width: initial;
        order: 2;
      }
      .box_text{
        order: 3;
      }
      .about_wrapper{
        margin-top: 5vw;
        order: 4;
      }
      .about_btn{
        font-size: 4.3vw;
        max-width: initial;
      }
    }

    .bottom_box{
      padding: 10vw 5vw;
      max-width: 1200px;
      .flexbox{
        flex-direction: column;
        margin-bottom: 10vw;
      }
      .box_text{
        text-align: justify;
        order: 3;
      }
      .bottom_flex{
        flex-direction: column;
        column-gap: 0;
        row-gap: 5vw;
      }
      .about_btn{
        max-width: initial;
        text-align: left;
      }

    }
  }
}