@charset "utf-8";

/*====================
信頼への取り組み
====================*/
.case{
  position: relative;
}

.case-wrap{
  position: relative;
  margin: 5rem auto 0;
  padding-bottom: 8rem;
  width: 70%;
  max-width: 960px;
}

.case-item-wrap{
  position: relative;
  margin: 5rem auto;
}

.case-item-wrap h2{
  position: relative;
  font-size: 2.5rem;
  padding: 0 0 .5rem 1rem;
  line-height: 1;
}

.case-item-wrap h2:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-image: linear-gradient(180deg, #3d6873, #7ab1a0 60%, #d0e4de59);
}

.case-item{
  margin: 1rem auto;
  width: 100%;
  background-color: #E3ECDF;
  padding: 3rem 7%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 10px;
}

.case-item img{
  width: 100%;
  height: auto;
}

.case-item-cate-wrap{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.case-item-cate{
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.case-item-cate p:nth-child(1){
  position: relative;
  padding: 8px 18px;
  color: #3D6873;
  border: 1px solid #3D6873;
  line-height: 1;
  background-color: transparent;
  width: fit-content;
}

.case-item-cate p:nth-child(2){
  font-size: 14px;
}

.case-item-voice{
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 12px;
}

.case-item-voice h3{
  position: relative;
  font-size: 1rem;
  font-family:  "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: bold;
  padding: .5rem 1rem;
  border-left: 2px solid #3D6873;
  width: 140px;
}

.case-item-voice h3:before {
    content: "";
    position: absolute;
    width: .5px;
    height: 20px;
    background: #818181;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto 0;
}

@media (max-width: 1024px) {
  .case-wrap{
    width: 90%;
    margin: 3rem auto 0;
  	padding-bottom: 0;
  }
}

@media (max-width: 960px) {
  .case-wrap{
    width: 90%;
    margin: 3rem auto 0;
  	padding-bottom: 0;
  }
  .case-desc{
    font-size: 14px;
  }
  .case-desc-wrap{
    margin: 3rem auto;
    gap: 2rem;
    flex-direction: column;
  }
  .case-desc-link{
    width: 320px;
    padding: 0  3rem 1rem 0;
  }
  .case-desc-link p{
    font-size: 1rem;
  }
  .case-desc-link:hover{
    opacity: .6;
  }
  .case-desc-link:after{
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
  }
  .case-img{
    background-attachment: scroll;
    height: 240px;
  }
  .case-img-02{
    background-attachment: scroll;
    height: 240px;
  }
  .case-item{
    margin: 2rem auto;
    padding: 2rem 1rem;
    gap: 2rem;
    border-radius: 5px;
  }
  .case-item-re{
    margin: 2rem auto;
    padding: 2rem 1rem;
    gap: 2rem;
    border-radius: 5px;
  }
  .case-item-title p{
    font-size: 16px;
  }
  .case-item-title h3{
    font-size: 20px;
  }
  .case-item-cate p:nth-child(1){
    position: relative;
    padding: 6px 12px;
    font-size: 10px;
  }
    .case-item-cate{
      flex-wrap: wrap;
  }
  .case-item-list h4{
    font-size: 18px;
  }
  .case-item-list h5{
    font-size: 16px;
  }
  .case-item-worry{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 14px;
  }

  .case-item-worry-text{
    position: relative;
    padding-left: 2rem;
  }

  .case-item-worry-text:before{
    content:"⚫︎";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px;
    color: #284B7D;
  }
  .flow-img {
    width: 100%;
    overflow-x: auto;          /* 横スクロール有効 */
    -webkit-overflow-scrolling: touch; /* スマホでなめらか */
  }
  .flow-img img {
    display: block;
    width: 640px;              /* 元画像サイズ */
    max-width: none;           /* 縮まないように */
    height: auto;
  }
  .case-item-voice{
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .case-item-voice h3:before {
      display: none;
  }
}