/* メディア掲載: セクション上余白 */
.front-media {
  padding-top: 56px;
}

/* メディア掲載: SPは縦並び */
.front-media .media-grid {
  display: flex;
  flex-direction: column;
  gap: 34px;
  align-items: center;
}

/* メディア掲載: PC用クラスターをSPではフラットに扱う */
.front-media .media-cluster {
  display: contents;
}

/* メディア掲載: SP時の表示順 */
.front-media .media-card-tv {
  order: 1;
}

.front-media .media-card-book {
  order: 2;
}

.front-media .media-card-pivot {
  order: 3;
}

.front-media .media-card-youtube {
  order: 4;
}

/* メディアカード: 背面の白抜き枠 */
.front-media .media-card-wrap {
  position: relative;
  width: min(100%, 400px);
  margin: 0 auto;
}

.front-media .media-card-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-white);
  border: 1px solid var(--brand-black);
  transform: translate(8px, 8px);
  z-index: 0;
}

/* メディアカード: 掲載実績の枠 */
.front-media .media-card {
  background: var(--color-muted);
  color: var(--brand-white);
  width: 100%;
  max-width: 400px;
  padding: 18px;
  position: relative;
  z-index: 1;
}

/* メディアカード: 画像の表示 */
.front-media .media-card .media-image {
  width: 100%;
  height: auto;
  display: block;
}

/* メディアカード: 説明文 */
.front-media .media-card p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  font-weight: var(--weight-gothic-medium);
  text-align: center;
}

/* メディアカード: 今回用の強調テキスト */
.front-media .media-card .media-emphasis {
  color: var(--brand-orange);
  font-size: 19px;
  font-weight: var(--weight-gothic-medium);
}

/* メディアカード: 注記 */
.front-media .media-card .media-note {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 400;
  line-height: 130%;
}

/* メディアカード: 強調テキスト */
.front-media .media-card .highlight {
  color: var(--brand-orange);
  font-size: 19px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .front-media .media-card-wrap {
    width: min(calc(100% - 8px), 400px);
  }
}

@media (min-width: 768px) {
  /* PC: NEWS下線から見出しまでの間を250pxにする */
  .front-media {
    margin-top: 100px;
    padding-bottom: 200px;
  }

  .front-media .section-center {
    font-size: 30px;
  }

  /* PC: 左右2クラスターで少しずらして配置 */
  .front-media .media-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 84px;
  }

  .front-media .media-cluster {
    display: grid;
    align-content: start;
  }

  .front-media .media-cluster-left {
    gap: 110px;
    padding-top: 87px;
  }

  .front-media .media-cluster-right {
    gap: 119px;
    padding-top: 165px;
  }
}
