@charset "UTF-8";
/*
  /asset/css/object/module/m-case-card.css
  導入事例用CSS　（電子保存用の新デザイン）
*/
.m-case-card-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px 20px;
  margin: 50px 0 0;
  @media screen and (max-width: 840px) {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 30px 0 0;
  }
}
.m-case-card {
  position: relative;
  grid-column: span 2;
  @media screen and (max-width: 840px) {
    grid-column: revert;
    padding: 0 5px;
    &:not(.slick-active) {
      opacity: 0.5;
      pointer-events: none;
    }
  }
}
.m-case-card__link {
  display: flex;
  flex-direction: column;
  color: var(--black);
  background-color: var(--white);
  border: 1px solid var(--gray-bg-01);
  border-radius: 10px;
  height: 100%;
  @media screen and (max-width: 840px) {
    position: relative;
    grid-column: span 2;
  }
}
/* リンクverのみhover効果を適用 */
a.m-case-card__link {
  &:hover {
    box-shadow: var(--card-shadow-hover);
    .m-case-card__arrow {
      transform: translateY(-50%) translateX(3px);
    }
  }
}
.m-case-card--lg {
  grid-column: span 3;
  @media screen and (max-width: 840px) {
    grid-column: auto;
  }
}
.m-case-card__visual {
  position: relative;
  aspect-ratio: 380 / 201;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.m-case-card--lg .m-case-card__visual {
  aspect-ratio: 584 / 250;
  @media screen and (max-width: 840px) {
    aspect-ratio: 380 / 201;
  }
}
.m-case-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.m-case-card__photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  &.m-case-card__photo-image--lotte {
    object-position: 0px -30px;
  }
  &.m-case-card__photo-image--imabari {
    transform: scale(1.2);
    object-position: 0px 5px;
  }
  @media screen and (max-width: 840px) {
    &.m-case-card__photo-image--lotte {
      object-position: 0px 10px;
      transform: scale(1.2);
    }
  }
}
.m-case-card__visual:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 0%, rgba(50, 50, 50, 0.8) 100%);
}
.m-case-card__logo {
  position: absolute;
  z-index: 2;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  background-color: var(--white);
  border-radius: 0 0 40px 40px;
  padding: 5px 30px;
  @media screen and (max-width: 840px) {
    top: -7px;
    padding: 5px 30px;
    height: 55px;
  }
}
/* 事例ロゴ画像 */
.m-case-card__logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 35px;
  @media screen and (max-width: 840px) {
    max-height: 45px;
  }
  &.m-case-card__logo-image--sm {
    max-height: 25px;
  }
}
.m-case-card__result {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 12px;
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.m-case-card__result-label {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  @media screen and (max-width: 840px) {
    font-size: 18px;
  }
}
.m-case-card__result-main {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}
/* 大きめの数字 */
.m-case-card__result-num {
  font-size: 40px;
  line-height: 1;
  @media screen and (max-width: 840px) {
    font-size: 34px;
  }
}
/* カード内の小さいテキスト（注釈レベル） */
.m-case-card__result-small-text {
  font-size: 12px;
  font-weight: 500;
  @media screen and (max-width: 840px) {
    font-size: 10px;
  }
}
.m-case-card--lg .m-case-card__result-num.m-case-card__result-num--upper {
  font-size: 40px;
}
.m-case-card--lg .m-case-card__result-label {
  font-size: 26px;
  @media screen and (max-width: 840px) {
    font-size: 18px;
  }
}
.m-case-card--lg .m-case-card__result-main {
  font-size: 26px;
  @media screen and (max-width: 840px) {
    font-size: 18px;
  }
}
.m-case-card--lg .m-case-card__result-num {
  font-size: 60px;
  @media screen and (max-width: 840px) {
    font-size: 34px;
  }
}
/* カード内のメタ情報 */
.m-case-card__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  padding: 16px 20px 18px 20px;
}
/* リンクverは矢印アイコン分の右paddingを確保 */
a.m-case-card__link .m-case-card__meta {
  padding-right: 76px;
}
/* カード右下の矢印アイコン */
.m-case-card__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background-color: var(--rdenshihozon-bg-sub-03);
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-70%, -50%) rotate(45deg);
    border-top: 2px solid var(--rdenshihozon-primary);
    border-right: 2px solid var(--rdenshihozon-primary);
  }
}
.m-case-button {
  margin: 50px 0 0;
  text-align: center;
  @media screen and (max-width: 840px) {
    margin: 70px 0 0;
  }
}
.m-case-card__company {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.05em;
  @media screen and (max-width: 840px) {
    font-size: 15px;
  }
}
/* カード内のチップスのラッパー */
.m-case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
}
/* カード内のチップス */
.m-case-card__tag {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.8;
  border-radius: 60px;
  padding: 2px 12px;
  letter-spacing: 0.05em;
}
/* カード内のチップス（カテゴリー） */
.m-case-card__tag--category {
  background-color: var(--rdenshihozon-primary);
  color: var(--white);
}
/* カード内のチップス（人数） */
.m-case-card__tag--size {
  background-color: var(--rdenshihozon-primary);
  color: var(--white);
}