@charset "UTF-8";

/* =========================================================
   page-solution-finance.php 専用スタイル
   prefix : .pm  ( pip-medical )
   ========================================================= */

.pm {
  --pm-red       : #CB1414;
  --pm-red-dark  : #c8281f;
  --pm-text      : #222;
  --pm-text-sub  : #666;
  --pm-bg-soft   : #fff7f5;
  --pm-bg-table  : #fff2ed;
  --pm-border    : #ececec;
  --pm-shadow    : 0 6px 18px rgba(0, 0, 0, 0.06);
  color: var(--pm-text);
}

.pm-case__label {
  font-size: 12px;
  color: var(--pm-text-sub);
  margin: 20px 20px 0;
}

.pm-case__cat {
  margin: 10px 20px 6px;
}

.pm-case__grid {
  display: flex;
  justify-content: center
}

.pm-case__card {
  width: calc(100% / 3 - 20px);
}

.pm-case_movie {
  margin-top: 80px;
}

.pm-case_movie__grid {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.pm-case_movie__item {
  width: calc((100% - 60px) / 3);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--pm-shadow);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.pm-case_movie__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.pm-case_movie__player {
  position: relative;
  aspect-ratio: 16 / 9;
}

.pm-case_movie__player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 再生ボタン */
.pm-case_movie__player::before,
.pm-case_movie__player::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}

.pm-case_movie__player::before {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pm-red);
  box-sizing: border-box;
  transition: transform .3s ease;
}

.pm-case_movie__player::after {
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.pm-case_movie__item:hover .pm-case_movie__player::before {
  transform: scale(1.1);
}

.pm-case_movie__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pm-case_movie__ttl {
  margin: 24px 20px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.pm-case_movie__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
  margin: 10px 20px 30px;
}

.pm-case_movie__tag {
  font-size: 13px;
  line-height: 1.8;
  color: var(--pm-text-sub);
}

.pm-case_movie__btnWrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

@media screen and (max-width: 767px) {
  .pm-case_movie {
    margin-top: 50px;
  }
  
  .pm-section__ttl_movie {
    margin-bottom: 30px;
  }
  .pm-case_movie__grid {
    flex-direction: column;
    gap: 20px;
  }

  .pm-case_movie__item {
    width: 100%;
  }

  .pm-case_movie__btnWrap {
    margin-top: 20px;
  }

  .pm-case__grid {
    flex-direction: column;
  }

  .pm-case__card {
    width: 100%;
  }


}