[v-cloak] {
  display: none;
}

/* -------------------- 共通設定 -------------------- */
#kcapp {
  color: var(--bs-body-color);
}

#kcapp ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 10px; /* 基準フォントサイズ */
}

/* スピナー */
.kc-spinner {
  padding: 30px 0;
}

/* -------------------- topページ -------------------- */

.kc-content {
  width: 100%;
  margin: 0 auto 4%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.kc-cards {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.kc-card {
  position: relative;
  width: calc(25% - 20px * 3 / 4);
}

/* 終了イベント */
.kc-card.finished .kc-image::before {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-align: center;
  content: "このイベントは\A終了しました";
  white-space: pre;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-size: 26px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  z-index: 1;
  line-height: 1.8;
}

.kc-image {
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.kc-image img {
  object-fit: cover;
  aspect-ratio: 4/3;
  width: 100%;
}

.kc-link {
  display: block;
  text-align: left;
}

.kc-link:hover img {
  opacity: 0.6;
  transition: 0.8s;
}

/* ホスト側 a:hover の色変化を打ち消す */
.kc-link:hover {
  color: inherit;
}

.kc-info {
  display: flex;
  flex-direction: column;
  padding: 6% 0 0;
}

.kc-tags {
  display: flex;
  flex-wrap: wrap;
}

.kc-type,
.kc-format {
  white-space: nowrap;
  line-height: 2;
  padding: 0 3%;
  font-size: 1.2em;
  margin-bottom: 1%;
}

.kc-type {
  color: #fff;
  background-color: rgb(var(--bs-primary-rgb));
  border: 1px solid rgb(var(--bs-primary-rgb));
  margin-right: 1%;
}

.kc-format {
  color: rgb(var(--bs-primary-rgb));
  background-color: #fff;
  border: 1px solid rgb(var(--bs-primary-rgb));
}

.kc-name {
  font-size: 1.6em;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.5;
  margin-top: 3%;
  margin-bottom: 4%;
}

.kc-date,
.kc-address {
  font-size: 1.4em;
  line-height: 1.8;
}

.kc-date br {
  display: none;
}

.kc-address {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* ---- topページ (PC) 終了メッセージフォントサイズ調整 ----- */
@media screen and (max-width: 991px) {
  .kc-card.finished .kc-image::before {
    font-size: 18px;
  }
}

/* ---- topページ (SP) ----- */
@media screen and (max-width: 767px) {
  .kc-content {
    max-width: 100%;
    width: 100%;
  }

  .kc-cards {
    padding-top: 20px;
  }

  .kc-card {
    margin-right: 0;
    width: 100%;
    margin-bottom: 10%;
  }

  .kc-card.finished .kc-image::before {
    font-size: 15px;
  }

  .kc-link {
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
  }

  .kc-image {
    width: 45%;
  }

  .kc-info {
    width: 52%;
    padding: 0;
  }

  .kc-type,
  .kc-format {
    font-size: 10px;
  }

  .kc-name {
    font-size: 14px;
    margin: 2% 0 3%;
  }

  .kc-date,
  .kc-address {
    font-size: 12px;
  }

  .kc-date br {
    display: none;
  }
}

/* -------------------- eventページ -------------------- */

.kc-e-content {
  max-width: 100%;
  width: 100%;
  margin: 0 auto 4%;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.kc-e-cards {
  display: flex;
  flex-wrap: wrap;
  column-gap: 3%;
}

.kc-e-card {
  position: relative;
  width: calc(33.4% - 3% * 3 / 4);
  margin-bottom: 5%;
}

/* 終了イベント */
.kc-e-card.finished .kc-e-image::before {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-align: center;
  content: "このイベントは\A終了しました";
  white-space: pre;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  font-size: 26px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  z-index: 1;
  line-height: 1.8;
}

.kc-e-image {
  position: relative;
  overflow: hidden;
  height: fit-content;
}

.kc-e-image img {
  object-fit: cover;
  aspect-ratio: 4/3;
  width: 100%;
}

.kc-e-link {
  display: block;
  text-align: left;
}

.kc-e-link:hover img {
  opacity: 0.6;
  transition: 0.8s;
}

/* ホスト側 a:hover の色変化を打ち消す */
.kc-e-link:hover {
  color: inherit;
}

.kc-e-info {
  display: flex;
  flex-direction: column;
  padding: 3% 0 0;
}

.kc-e-tags {
  display: flex;
  flex-wrap: wrap;
}

.kc-e-type,
.kc-e-format {
  white-space: nowrap;
  line-height: 2;
  padding: 0 3%;
  font-size: 1.4em;
  margin-bottom: 1%;
}

.kc-e-type {
  color: #fff;
  background-color: rgb(var(--bs-primary-rgb));
  border: 1px solid rgb(var(--bs-primary-rgb));
  margin-right: 1.5%;
}

.kc-e-format {
  color: rgb(var(--bs-primary-rgb));
  background-color: #fff;
  border: 1px solid rgb(var(--bs-primary-rgb));
}

.kc-e-name {
  font-size: 2em;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.5;
  margin-top: 3%;
  margin-bottom: 3%;
}

.kc-e-date,
.kc-e-address {
  font-size: 1.6em;
  line-height: 1.8;
}

.kc-e-date br {
  display: none;
}

.kc-e-address {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* ---- eventページ (SP) ----- */
@media screen and (max-width: 768px) {
  .kc-e-content {
    max-width: 100%;
    width: 100%;
  }

  .kc-e-cards {
    width: 90%;
    margin: 0 auto;
  }

  .kc-e-card {
    margin-right: 0;
    width: 100%;
    margin-bottom: 10%;
  }

  .kc-e-card.finished .kc-e-image::before {
    font-size: 15px;
  }

  .kc-e-link {
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
  }

  .kc-e-image {
    width: 45%;
  }

  .kc-e-info {
    width: 52%;
    padding: 0;
  }

  .kc-e-type,
  .kc-e-format {
    font-size: 10px;
  }

  .kc-e-name {
    font-size: 15px;
    margin: 2% 0 3%;
  }

  .kc-e-date,
  .kc-e-address {
    font-size: 12px;
  }

  .kc-e-date br {
    display: none;
  }
}
