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

  利用規約を遵守の上、ご利用ください。
  二次配布、販売は禁止しています。
  --------------------------------------------------*/
:root {
  --width-sp-whitespace: 24px;
  --border-color: #333;
  --shadow-color: rgba(51, 51, 51, 0.5);
  --new-bg-color: rgba(255, 255, 255, 0.5);
  --new-text-color: #333;
  --caption-bg-color: rgba(0, 0, 0, 0.2);
  --caption-text-color: #fff;
}

.gl-base {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.gl-base div {
  width: 125px;
  height: 125px;
  overflow: hidden;
  object-fit: cover;
  box-sizing: border-box;
}

.gl-base div a {
  width: 100%;
  height: 100%;
}

.gl-base div img {
  object-fit: cover;
  max-width: calc(100% + 2px);
  min-height: calc(100% + 2px);
}

.gl-base div.new {
  position: relative;
}

.gl-base div.new::after {
  content: "new";
  position: absolute;
  box-sizing: border-box;
  top: 0;
  left: 0;
  padding: 5px;
  line-height: 1;
  background: var(--new-bg-color);
  color: var(--new-text-color);
  font-size: 10px;
  font-weight: 600;
}

.gl-base.gl-center {
  justify-content: center;
}

.gl-base.gl-right {
  justify-content: flex-end;
}

.gl-base.gl-evenly {
  justify-content: space-evenly;
}

.gl-base.gl-xs div {
  width: 75px;
  height: 75px;
}

.gl-base.gl-sm div {
  width: 100px;
  height: 100px;
}

.gl-base.gl-lg div {
  width: 150px;
  height: 150px;
}

.gl-base.gl-xl div {
  width: 175px;
  height: 175px;
}

.gl-base.gl-space-sm {
  gap: 10px;
  margin-bottom: 10px;
}

.gl-base.gl-space-lg {
  gap: 30px;
  margin-bottom: 30px;
}

.gl-base.gl-border div {
  border: 1px solid var(--border-color);
}

.gl-base.gl-shadow div {
  box-shadow: 1px 1px 5px var(--shadow-color);
}

.gl-base.gl-rounded div {
  border-radius: 5px;
}

.gl-base.gl-rounded div.new::after {
  border-bottom-right-radius: 5px;
}

.gl-base.gl-circle div {
  border-radius: 50%;
}

.gl-base.gl-circle div.new::after {
  width: 100%;
}

.gl-base.gl-caption div {
  position: relative;
}

.gl-base.gl-caption div::after {
  content: attr(data-text);
  position: absolute;
  display: block;
  box-sizing: border-box;
  width: 100%;
  bottom: 0;
  left: 0;
  padding: 0 5px;
  background: var(--caption-bg-color);
  color: var(--caption-text-color);
  font-size: 12px;
  line-height: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gl-base.gl-caption.gl-circle div::after {
  padding: 0 26%;
}

@media only screen and (max-width: 720px) {
  .gl-base div {
    width: calc((100vw - var(--width-sp-whitespace) - 40px) / 3);
    height: calc((100vw - var(--width-sp-whitespace) - 40px) / 3);
  }
  .gl-base.gl-space-sm div {
    width: calc((100vw - var(--width-sp-whitespace) - 20px) / 3);
    height: calc((100vw - var(--width-sp-whitespace) - 20px) / 3);
  }
  .gl-base.gl-space-lg div {
    width: calc((100vw - var(--width-sp-whitespace) - 60px) / 3);
    height: calc((100vw - var(--width-sp-whitespace) - 60px) / 3);
  }
  .gl-base.gl-xs div, .gl-base.gl-sm div {
    width: calc((100vw - var(--width-sp-whitespace) - 60px) / 4);
    height: calc((100vw - var(--width-sp-whitespace) - 60px) / 4);
  }
  .gl-base.gl-xs.gl-space-sm div, .gl-base.gl-sm.gl-space-sm div {
    width: calc((100vw - var(--width-sp-whitespace) - 30px) / 4);
    height: calc((100vw - var(--width-sp-whitespace) - 30px) / 4);
  }
  .gl-base.gl-xs.gl-space-lg div, .gl-base.gl-sm.gl-space-lg div {
    width: calc((100vw - var(--width-sp-whitespace) - 90px) / 4);
    height: calc((100vw - var(--width-sp-whitespace) - 90px) / 4);
  }
  .gl-base.gl-lg div, .gl-base.gl-xl div {
    width: calc((100vw - var(--width-sp-whitespace) - 20px) / 2);
    height: calc((100vw - var(--width-sp-whitespace) - 20px) / 2);
  }
  .gl-base.gl-lg.gl-space-sm div, .gl-base.gl-xl.gl-space-sm div {
    width: calc((100vw - var(--width-sp-whitespace) - 10px) / 2);
    height: calc((100vw - var(--width-sp-whitespace) - 10px) / 2);
  }
  .gl-base.gl-lg.gl-space-lg div, .gl-base.gl-xl.gl-space-lg div {
    width: calc((100vw - var(--width-sp-whitespace) - 30px) / 2);
    height: calc((100vw - var(--width-sp-whitespace) - 30px) / 2);
  }
}
