/* ワーク詳細ページ */



.work_top_view{
    width: 100%;
    height: fit-content;
    position: relative;
    padding-top:100px;
  }
  
   .work-slide-title{
    position: relative;
    z-index: 50;
    width: 95%;
    margin: 20px auto;
  }
  
  .work_detail{
    position: relative;

    display: flex;
    justify-content: flex-start;
    margin: 40px auto 20px;
    width: 95%;
  }
  
  .work_detail .imgs{
    width: 1100px;
  }

  .work_detail .imgs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .work_detail .imgs li{
    width: 90px;
    height: 90px;
    margin: 5px 0;
    border: 1px solid #c3c3c3;
  }
  
  .work_detail .imgs li img{
    width: 100%;
    height: auto;
  }
  
  /* 縦長画像だけ縦いっぱいに */
  .work_detail .imgs .vertical img{
    height: 100%;
    width: 80%;
  }
  
  /* 説明文 */
  .work_detail .work_explanation{
    font-size: 15px;
    margin-left: 30px;
    line-height: 25px;
    width: 250px;
    /* background-color: aqua; */
  }
  
  .work_detail .work_explanation dl{
    display: flex;
    justify-content: space-between;
  }
  
  .work_detail .work_explanation dl dt{
    width: 65%;
  }
  
  .work_detail .work_explanation dl dd{
    width: 30%;
  }
  
  .work_content{
    margin: auto;
  }
  
  .work_content .vertical{
    width: 60%;
    height: fit-content;
    margin: auto;
  }
  
  
  
  
  
  
  .company_content h2 {
    font-weight:bolder
  }
  
  
  
  
  
  /* フル画像全体のコンテナ */
  .work_content div {
    text-align: center; /* 中央寄せしたい場合など */
  }
  
  /* 標準：幅いっぱい */
  .work_content .work-full-img {
    width: 100%;
    height: auto;
  }
  
  /* 縦長のときだけ 60% に */
  .work_content .portrait .work-full-img {
    width: 60%;
    height: auto;
  }
  
  @media (max-width: 1920px) { }
  @media (max-width: 1440px) { 
   








      
  .work_detail .imgs{
    width: 850px;
  }

 
  .work_detail .imgs li{
    width: 70px;
    height: 70px;
    margin: 4px 0;
  }

   }
  @media (max-width: 1280px) {
          

   .work-slide-title{
    position: relative;
    z-index: 50;
   margin: 10px auto;
       width: 95%;
  }




    .work_detail{
     
        display: block;
    
        margin: 40px auto 20px;
        width: 95%;
      }


  
    
  .work_detail .imgs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
  }

    /* imgs コンテナを幅いっぱいに */
    .work_detail .imgs {
      width: 100%;
      position: relative;
   
    }
  
    /* 各 UL は幅100% で横いっぱいに */
    .work_detail .imgs ul {
      display:flex; flex-wrap:wrap; 
      width: 100%;
      justify-content: space-between; /* 両端に揃える */
    }

     
      .work_detail .imgs li{
        height:auto; 
        flex:0 0 calc(20% - 15px);
        margin: 4px 0;
      }
    
           
      .work_detail .imgs li img{
        display: block;
      }
      .work_detail .work_explanation{
        font-size: 13px;
        margin: 50px 0 0px 0;
        line-height: 30px;
        width: 100%;
      }


      .work_content{
        margin: auto;
        width: 95%;
      }
      




   }
   @media (max-width: 828px) {
    /* work_detail 全体は縦並びに */
    .work_detail {
      flex-direction: column;
      align-items: center;
      width: 95%;
  margin: 20px auto 20px;
    }
  




  

    .work_detail .imgs li {
    height: fit-content;
      /* 100%÷5 = 20% ですが、マージン分を引く */
      flex: 0 0 calc(20% - 15px);
      margin: 5px 0;
    }

  


  }

  

  @media (max-width: 600px)  {

    .work_top_view{
      padding-top:60px;
    }


   }
  @media (max-width: 420px)  {  

    .work_detail {
      flex-direction: column;
      align-items: center;
      width: 95%;
  margin: 10px auto;
    }



    .work_detail .imgs li {
    height: fit-content;
      /* 100%÷5 = 20% ですが、マージン分を引く */
      flex: 0 0 calc(20% - 5px);
      margin: 5px 0;
    }



   }

  
  
  



  /* 一覧グリッド */
.works-grid{
  display:grid;
  gap:1rem;
  /* 220px 以上なら 1 列として自動充填 */
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
}

/* 画像の比率をキープしつつトリミング */
.workimg{
  aspect-ratio: 4 / 3;          /* 好みで 3/4 などに変更可 */
  overflow:hidden;
}
.workimg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* 縦長サムネイルのとき、必要なら補正 */
.workimg.vertical{
  aspect-ratio: 3 / 4;
}