.flex {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: column;
  width: 100%;
}

/*cases */
.casebox {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
}

.casebox p.company {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 4px;
}

.casebox p.jirei_title,
.knowhow p.jirei_title {
  font-weight: 300;
  font-size: .9rem;
  margin-top: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 69px;
}


ul.clabel_work {
  font-size: .8rem;
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;

}

ul.clabel_work li {
  padding: 4px 8px;
  margin-right: 4px;
  border: 1px solid #cfcfcf;
  margin-bottom: .4rem;
}

p.com_cate {
  font-size: .8rem;
  margin-top: 12px;
}

.jirei {
  border-radius: 12px;
  box-shadow: 0px 2px 5px 5px #F2F2F2;
  transition: 0.2s;
  position: relative;
  top: 0;
  padding: 0 0 1em 0;
  min-height: 451px;
}

.jirei:hover {
  top: 2px;
  box-shadow: 0px 2px 7px 7px #F2F2F2;
}

.jirei_img {
  max-height: 220px;
  overflow: hidden;
}

.jirei_img img {
  border-radius: 12px;
  min-height: 240px;
  width: auto;
  object-fit: cover;
}

.jirei_content {
  padding: 1em;
}

@media screen and (max-width: 576px) {

  .casebox {
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 1rem;
  }

  .filters {
    padding: 0 1rem;
  }

  .filters ul li {
    font-size: .8rem;
    padding: .2rem .4rem;
    margin: 0 .3rem .6rem 0;
  }

}



.filters {
  display: flex;

}

.filters ul {
  width: 100%;
  margin: 2rem 0 0;

  display: flex;
  flex-wrap: wrap;
}

.filters ul a li,
.filters ul li span {
  padding: 0.4em 1em;
  margin: 0 0.6rem .8rem 0;
  display: inline-block;
  background-color: #F9F8F8;
  border-radius: 4px;
}

/*.filters ul li label span {
  background-color: #F9F8F8;
  padding: .8rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
.filters ul li label span:hover{
  background-color: #78C9E450;
}
.filters ul a:hover li {
  background-color: #78C9E450;

}
.filters ul a:active li , .filters ul a.active li{
  background-color:#67AEC3;
  color: #fff;
}
.filters ul li input:checked + span {
  background-color:#67AEC3;
  color: #fff;
}

.filters ul li:hover,*/
.filters ul a li:hover,
.filters ul li span:hover {
  background-color: #78C9E450;
  cursor: pointer;
}

/*.filters ul li:active , .filters ul li.active {
  background-color:#67AEC3;
  color: #fff;
}*/
.filters ul a:active li, .filters ul a.active li {
  background-color: #67AEC3;
  color: #fff;
}

.filters ul li input:checked+span {
  background-color: #67AEC3;
  padding: 0.4em 1em;
  color: #fff;
  border-radius: 4px;
}



/*cases owari */



/*clients */
.clients ul {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0;
}


.clients ul li {
  align-self: center;
}

.clients ul li .interview-button {
  position: relative;
  height: 100%;
  margin: 0 1rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.clients ul a {
  border: 1px solid #dfdfdf;
  border-radius: 4px;
  display: flex;
  min-height: 189px;
}

.clients ul a:not(.nourl):hover {
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .2);
  position: relative;

}

.clients ul a:not(.nourl):hover .interview {
  background-color: #000;
  color: #fff;
  transition: all 0.3s ease-out;
}

.clients ul a:not(.nourl) .interview {
  border-radius: 20px;
  border: 1px solid #dfdfdf;
  font-size: .8rem;
  padding: .5rem .4rem;
  width: 100%;
  /* margin: 1rem 10% 0; */
  text-align: center;
  position: absolute;
  bottom: 35%;
}

@media screen and (max-width: 576px) {
  .clients ul {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr 1fr;
    /* gap:  2rem; */
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .clients ul li .interview-button {
    height: auto;
    margin: 0;
    padding-bottom: 0;
  }

  .clients ul a {
    padding: 1rem 1rem;
    min-height: 140px;
  }

  .clients ul a:not(.nourl) .interview {
    width: 100%;
    margin: 0 0;
    font-size: .6rem;
  }

  .clients ul a:not(.nourl) .interview {
    bottom: initial;
  }
}

/*clients owari*/

/*Whitepaters*/

.whitepapers ul {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin: 3rem 0;
}

.whitepapers ul li {
  position: relative;
}

.wp_img,
.wp_img_2col {
  background-color: #F9F8F8;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
}

.wp_img_2col.centered {
  align-content: center;
}

.wp_img_2col {
  height: 445px;
}

@media screen and (max-width: 576px) {
  .wp_img_2col {
    height: fit-content;
    margin-top: 2rem;
  }
}

.wp_img img {
  position: absolute;
  top: -80px;

}

.wp_img:hover,
.wp_img_2col:hover {
  background-color: #CCEDF7;
  transition: all 0.3s ease-out;
}

.wp_img:hover img,
.wp_img_2col:hover img {
  scale: 1.2;
  transition: all 0.3s ease-out;
}


span.tag {
  position: absolute;
  background-color: #000;
  color: #fff;
  font-size: .7rem;
  padding: .2rem .4rem;
  z-index: 99;
  border-top-left-radius: 8px;
}

p.wp_title {
  font-weight: 600;
  margin: .8rem 0 .6rem;
}

p.wp_content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .8rem;
}

@media screen and (max-width: 576px) {
  .popular {
    background: linear-gradient(180deg, transparent 0%, transparent 0%, #DCEFF5 0%, #DCEFF5 100%);
  }

  .whitepapers ul {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .wp_img img {
    top: -50px;
  }
}

/*Whitepaters owari*/



.lineup_midasi {
  flex-direction: column;
}

.lineup_midasi {
  width: 100%;
  display: flex;

}

.lineup_midasi h2 {
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: .3rem;
}

@media screen and (max-width: 576px) {

  .lineup_midasi {
    padding: 0 1rem;
  }

  .lineup_midasi h2 {
    font-size: 1.2rem;
    letter-spacing: .3rem;
    line-height: 1;
  }
}




.service_papers ul {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem 4rem;
  margin: 1rem 0 3rem;
}

.service_papers ul li {
  position: relative;
}

.wp_img {
  background-color: #F9F8F8;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
}

.wp_img img {
  position: absolute;
  top: 0px;

}

.wp_img:hover {
  background-color: #ffff00;
  transition: all 0.3s ease-out;
}

.wp_img:hover img {
  scale: 1.1;
  transition: all 0.3s ease-out;
}


p.wp_title {
  font-weight: 600;
  margin: .8rem 0 .6rem;
}

p.wp_content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media screen and (max-width: 576px) {
  .service_papers ul {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 2rem 0;
    padding: 0 1rem;
  }

  .wp_img img {
    top: 0px;
  }
}



/*knohow  */

.popular {
  background: linear-gradient(180deg, transparent 0%, transparent 50%, #DCEFF5 50%, #DCEFF5 100%);

  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;


}


.jirei>.jirei_img {
  min-height: 240px;
}


/* CARD Design ADD */
.case_set {
  position: relative;
}

.case_img {
  margin-right: 5%;
  border-radius: 12px;
}

.case_content {
  margin-left: 5%;
  padding: 1em 1.4em;
  background-color: #fff;
  border-radius: 12px;
  position: relative;
  margin-top: -10%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

ul.clabel_service,
ul.case_cate {
  display: inline-flex;
  flex-wrap: wrap;
  gap: inherit;
}

ul.clabel_service li {
  font-size: .6em;
  padding: 0.1em 0.4em;
  border: 1px solid #eee;
  margin: 0.2em 0.4em 0.2em 0;
}

.case_content p.case_title {
  font-size: .9em;
  margin-top: .4em;

  line-height: 1.4;
  word-break: break-all;
}

.case_content p.case_com_name {
  font-size: .8em;
  margin-top: .2em;
  font-weight: 600;
  padding-top: .6em;
  border-top: 1px solid #777;
}

ul.case_cate li {
  font-size: .7em;
  padding: .1em .2em;
  margin: .4em .2em 0 0;
}

ul.case_cate li:first-child {
  padding-left: 0;
}

ul.case_cate li:after {
  content: "/";
  margin: 0 0 0 0.6em;
  color: #777;
}

ul.case_cate li:last-child::after {
  content: "";
}

/* CARD Design ADD　おわり */


/* ダウンロード資料一覧 */
.top_banner {
  text-align: center;
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
}

.download_contents_selector {
  margin: 2rem 1rem;
  text-align: center;
  width: 75%;
  align-self: center;
}


@media screen and (max-width: 576px) {
  .download_contents_selector {
    width: 90%;
  }
}

.download_contents_selector ul {
  display: flex;
  justify-content: space-evenly;
  border: #ADADAD 1px solid;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .15);
  font-weight: 600;
}

.download_contents_selector ul li {
  width: 100%;
  border-right: #ADADAD 1px solid;
}

.download_contents_selector ul li a {
  display: block;
  padding: 1.5rem 0;
  height: 100%;
  width: 100%;
}

.download_contents_selector ul li:first-child a {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.download_contents_selector ul li:last-child a {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.download_contents_selector ul li a:hover {
  background-color: #ffff00;
  transition: all 0.3s ease-out;
}

.download_contents_selector ul li:last-child {
  border-right: none;
}

.download_section_title {
  text-align: center;
  margin-top: 2rem;
}

.download_section_title h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .3rem;
}

/*case add 240130*/
p.wp_content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  font-size: 14px;
}

.whitepapers ul li {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #f3f3f3;
  padding: 1em;
}

span.tag {
  top: 10px;
  left: 10px;
  background-color: #ccc;
  color: #222;
  border-radius: 4px;
}

span.tag.centered {
  top: 5%;
  left: 1%;
  position: relative;
}

.wp_img img {
  position: absolute;
  top: 10px;

}

.wp_dl_btn p {
  background-color: #fff;
  border: 1px solid #e8e5de;
  border-radius: 30px;
  box-sizing: border-box;
  color: #444;
  display: block;
  font-size: 14px;
  margin: 20px auto;
  max-width: 196px;
  padding: 9px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.075);
}

.wp_dl_btn a:hover p {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.095);
  background-color: #ffff00;
  scale: 1.1;
  transition: all 0.3s ease-out;

}

/*case add 240327*/
@media screen and (min-width: 575px) {
  .case_content p.case_title {
    min-height: 4.3rem;
  }

  .clabel_service_height {
    min-height: 3.2rem;
  }
}

/*0603 add*/
.top_banner {
  position: relative;
  margin-top: 8em;
}

.topbn_waku {
  background-color: #fff;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  width: 70%;
  margin: 0 auto;
}

.topbn_waku_top {
  padding: 0 0;
  background-color: #73D9F8;
  position: relative;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.topbn_waku_top img {
  width: 100%;
  margin: 0;
   border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.topbn_waku_bottom {
  position: relative;
  top: -10px;
  z-index: 1;
  background: #fff;
  padding: 2em;
}

.topbn_waku_bottom h2 {
  display: flex;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 2;
}

.topbn_waku_bottom h2 span {
  background-color: #000;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  padding: .6em 1em;
  color: #fff;
  display: inline-block;
}


.topbn_waku_bottom p {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 16px;
}


.bluebtn_siryou p {
  color: #000;
  background-color: #73d9f8;
  border-radius: 50px;
  padding: 10px 55px;
  border: 1px solid #68aec3;
  width: fit-content;
  margin: 0 auto;
}

@media screen and (max-width: 576px) {
  .topbn_waku {
    width: 90%;
    margin: 0 auto;
  }

  .topbn_waku_top img {
    width: 100%;
    margin: 0 0;
  }

  .topbn_waku_bottom h2 {
    align-items: flex-start;
    text-align: left;
    font-size: 1.4rem;
  }

  .topbn_waku_bottom h2 span {
    font-size: 10px;
  }

  .topbn_waku_bottom p {
    text-align: left;
  }

}