@charset "UTF-8";
/* --------------------------------------------------
  Template by espace（https://espace.monbalcon.net/）
  Copyright: 2020 espace.

  利用規約を遵守の上、ご利用ください。
  二次配布、販売は禁止しています。
  --------------------------------------------------*/

:root {
  /** PC設定 **/
  /* 1行に表示する枚数 */
  --emg-count-pc: 8;
  /* 画像間のスペース */
  --emg-gap-pc: 20px;

  /** スマホ設定 **/
  /* 1行に表示する枚数 */
  --emg-count-sp: 3;
  /* 画像間のスペース */
  --emg-gap-sp: 5px;

  /** 装飾設定 **/
  /* 角丸 */
  --emg-radius: 10px;
  /* 線幅 */
  --emg-border-width: 1px;

}

.emg-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--emg-gap-pc);
}
.emg-base > * {
  position: relative;
  width: calc((80% - (var(--emg-count-pc) - 1) * var(--emg-gap-pc)) / var(--emg-count-pc));
  padding-top: calc((200% - (var(--emg-count-pc) - 1) * var(--emg-gap-pc)) / var(--emg-count-pc));
  box-sizing: border-box;
  overflow: hidden;
}
.emg-base > *.new::before {
  content: "new";
  position: absolute;
  box-sizing: border-box;
  top: 0;
  left: 0;
  padding: 5px;
  background: var(--emg-new-bg-color);
  color: var(--emg-new-text-color);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  z-index: 1;
}
.emg-base > * img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.emg-base.emg-center {
  justify-content: center;
}
.emg-base.emg-right {
  justify-content: flex-end;
}
.emg-base.emg-evenly {
  justify-content: space-evenly;
}
.emg-base.emg-between {
  justify-content: space-between;
}
.emg-base.emg-border > * {
  border: var(--emg-border-width) solid var(--emg-border-color);
}
.emg-base.emg-shadow > * {
  box-shadow: 2px 2px 5px var(--emg-shadow-color);
}
.emg-base.emg-rounded > * {
  border-radius: var(--emg-radius);
}
.emg-base.emg-rounded > *.new::before {
  border-bottom-right-radius: var(--emg-radius);
}
.emg-base.emg-circle > * {
  border-radius: 50%;
}
.emg-base.emg-circle > *.new::before {
  width: 100%;
}
.emg-base.emg-caption > *::after {
  content: attr(data-text);
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: 100%;
  bottom: 0;
  left: 0;
  padding: 0 5px;
  background: var(--emg-caption-bg-color);
  color: var(--emg-caption-text-color);
  font-size: 12px;
  line-height: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emg-base.emg-caption-circle > *::after {
  padding: 0 26%;
}

@media only screen and (max-width: 768px) {
  .emg-base {
    gap: var(--emg-gap-sp);
  }
  .emg-base > * {
    width: calc((70% - (var(--emg-count-sp) - 1) * var(--emg-gap-sp)) / var(--emg-count-sp));
    padding-top: calc((190% - (var(--emg-count-sp) - 1) * var(--emg-gap-sp)) / var(--emg-count-sp));
  
  }
}