/* Case-study / TOP
-------------------------------------------*/

.case_list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case_item a{
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.case_img{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #f3f3f3;
}
.case_img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.case_item a:hover .case_img img{
  transform: scale(1.05);
}
.case_body{
  margin-top: 1rem;
}
.case_title{
  font-size: clamp(14px,2.154vw,17px);
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: .02em;
  /* 長文対策 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.case_company{
  margin-top: .5rem;
  font-size: clamp(10px,1.538vw,12px);
  color: #bbb;
}

@media screen and (max-width: 960px){
  
  .case_list{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 650px){
  
  .case_list{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .case_img{
    border-radius: 8px;
  }
}

/* Case-study / Contents
-------------------------------------------*/

.case_detail{
  margin-top: 10rem;
}
.case_detail__in{
  width: 100%;
  text-align: left;
  border-radius: 30px;
  background: #333f55;
  padding: 5rem 0;
}
.case_detail__header,
.case_detail__section{
  width: var(--page-width);
  margin: 0 auto;
}
.case_detail__case{
  display: inline-block;
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  font-weight: 600;
  color: var(--orange);
  border-radius: 9999px;
  border: 1px solid var(--orange);
}
.case_detail__title{
  font-size: clamp(18px,2.769vw,30px);
  line-height: 1.5;
  font-weight: bold;
  padding-left: 20px;
  background: url(../img/cmn/ic-sparkling_ora.svg) no-repeat left .4em / 12px auto;
}
.case_detail__section{
  padding: clamp(4rem,6vw,6rem) 0 3rem;
  /* テキストのはみ出し防止 */
  overflow-wrap: break-word;
  word-break: break-all;
}
.case_detail__section a{
  color: var(--orange);
}
.case_detail__section a:hover{
  opacity: var(--hover);
}
.case_detail__row{
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}
.case_detail__label{
  flex: 0 0 120px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: -.005em;
  font-family: var(--font-en);
  font-size: clamp(13px,2.0vw,16px);
}
.case_detail__body{
  flex: 1;
  line-height: 1.9;
}
.case_detail__heading{
  font-weight: bold;
  margin-bottom: .75rem;
  font-size: clamp(13px,2.0vw,16px);
}
.case_detail__text,
.case_detail__list li{
  line-height: 1.9;
  opacity: .9;
}
.case_detail__list{
  margin: 0;
  padding: 0;
  list-style: none;
}
.case_detail__list li{
  position: relative;
  padding-left: 1em;
}
.case_detail__list li::before{
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}
/* 区切り線 */
.case_detail__divider{
  margin: clamp(1.75rem,4vw,3rem) 0;/* 最小値,推奨値,最大値 */
  border: none;
  height: 1px;
  background: rgba(255,255,255,.12);
}

@media screen and (max-width: 650px){
  .case-study .sec{
    width: 90%;
  }
  .case_detail__header,
  .case_detail__section{
    width: 86%;
  }
  .case_detail{
    margin-top: 8rem;
  }
  .case_detail__in{
    border-radius: 12px;
    padding: 3rem 0;
  }
  .case_detail__case{
    margin-bottom: 1rem;
    padding: .65rem 1.25rem;
  }
  .case_detail__title{
    padding-left: 22px;
  }
  .case_detail__list li{
    line-height: 1.5;
    padding-bottom: .5rem;
  }
  .case_detail__row{
    flex-direction: column;
    gap: 1.25rem;
  }
  .case_detail__label{
    flex: 1;
    font-size: 12px;
    letter-spacing: .08em;
  }
}