@charset "UTF-8";


/* lead_sec */
.lead_sec {
  max-width: 1160px;
  .inner{
    padding: 0 120px;
  }
  .grid_box {
    max-width: 100%;
    margin: 0 auto 150px;

    display: grid;
    row-gap: 100px;
    column-gap: 40px;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    .item {
      display: flex;
      flex-direction: column;

      .item_image {
        margin: 0 auto 15px;
        img {
          width:  100%;
          height: 100%;
          object-fit: contain;
        }
      }
      .item_title {
        width: fit-content;  
        margin: 0 auto 15px;  
        padding-left: 1.3em; 
        font-size: 28px;
        font-weight: 500;
        position: relative;

        &::before {
          position: absolute;
          content: "";
          width: 18px;
          height: 18px;
          left: 0;
          top: 50%;
          transform: translateY(-50%);
          background: url(/taniyama/images/common/star.webp) center / contain no-repeat;
        }
      }
      .item_text {
        padding-bottom: 50px;
        line-height: 2;
        text-align: justify;
        flex-grow: 1;
      }

      .about_btn{
          font-size: 20px;
          font-weight: 500;
      }
      .about_wrapper{
        display: flex;
        justify-content: center;
      }
    }
    .box-columns1 {
      grid-column: 1 / span 3;
      display: flex;
      flex-direction: row;
      align-items: flex-start;

      .item_image {
        width: 400px;
        margin-right: 50px;
      }
      .item_box {
        width: 840px;

        .item_title {
          text-align: left;
          padding-left: 1.5em;
          margin: 0 auto 0 0;
        }
      }
      .about_wrapper{
        display: flex;
        justify-content: flex-start;
      }
    }
  }

  .policy_box {
    max-width: 1200px;
    .box{
      background-image: linear-gradient(90deg, rgba(254, 253, 229, 1), rgba(254, 253, 229, 0));
      padding: 60px 35px;
      margin-bottom: 65px;
      position: relative;
    }
    .flexbox{
      column-gap: 50px;
      align-items: flex-start;
    }
    .box_title{
      position: absolute;
      left: 0;
      top: -100px;
      font-size: 45px;
      color: #ECD300;
      letter-spacing: 0.2em;
      font-weight: 200;
    }
    .box_subtitle{
      font-size: clamp(28px, 1.25vw + 12px, 30px);
      font-weight: 500;
      margin-bottom: 40px;
      span{
        color: #F08B00;
        font-weight: bold;
      }
    }
    .imagebox{
      max-width: 550px;
      width: 100%;
    }
    .reverse{
      .box_title{
        left: initial;
        right: 0;
      }
    }
    .box02{
      background-image: linear-gradient(270deg, rgba(254, 253, 229, 1), rgba(254, 253, 229, 0));
    }

    
  }

  @media screen and (max-width: 768px) {
    margin-bottom: 0;
    margin: 0 auto;
    padding: 0;

    .inner{
      padding: 0 5vw;
    }

    .grid_box {
      box-sizing: border-box;
      margin: 0 auto 27.6vw;
      padding: 0 ;

      row-gap: 20.7vw;
      column-gap: initial;

      grid-template-columns: repeat(1, minmax(0, 1fr));
      grid-template-rows: auto;

      .item {
        width: 100%;
        display: block;
        .item_image {
          margin: 0 auto 3vw;
        }
        .item_title {
          margin:0 auto 3vw;
          font-size: 5vw;
          &::before{
            width: 5vw;
            height: 5vw;
          }
        }
        .item_text {
          padding-bottom: 0;
          margin-bottom: 10vw;
          font-size: 4vw;
        }
        .about_btn{
          font-size: 4.3vw;
        }

      }
      .box-columns1 {
        grid-column: 1;
        grid-row: auto;
        display: flex;  
        flex-direction: column;

        .item_image {
          order: 2;
          width: 100%;
          margin-right: initial;
        }

        .item_box {
          display: contents; 

          .item_title {
            order: 1;
            text-align: center;
            margin: 0 auto 3vw;
            font-size: 5vw;
          }
          .item_text {
            order: 3;
          }
          .about_wrapper {
            order: 4;
            justify-content: center;
            margin: 0 auto;
          }
          .link_btn {
            width: 75vw;
          }
        }
}
    }

    .policy_box {
      .box{
        padding: 0 5vw 10vw;
      }
      .flexbox {
        margin-bottom: 0;

        flex-direction: column; 
        column-gap: 0;
        row-gap: 0;

        .imagebox,
        .textbox {
          display: contents;  
        }

        .box_title {
          order: 1;
          width: 100%;
          padding: 0; 
          margin-bottom: 0;
          font-size: 8vw;
          position: relative;
          top: -6vw;
          line-height: 1.5;
        }

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

        .box_subtitle {
          order: 3;
          margin: 3vw 0 ;
          font-size: 5vw;
          line-height: 1.5;
        }

        .box_text {
          order: 4;
          width: auto;
          margin: 0 ;
          font-size: 4vw;
          text-align: justify;
        }
      }
    }

  }
}