/* ==============================================================
   page-support-search-results
   ============================================================== */


/*　-------------FVセクション-------------　*/

.c-section-heading-group {
  margin-top: 80px;
  margin-bottom: 80px;
}

.c-section-heading__icon {
  width: 112px;
  aspect-ratio: 112/81;
}

.c-section-heading__icon img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .c-section-heading-group {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .c-section-heading {
    gap: 24px;
  }

  .c-section-heading__text {
    font-size: var(--font-size-md);
  }
}

/*　-------------検索結果一覧セクション-------------　*/

.c-section-search-results {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 120px;
}

.c-section-search-results__heading h3 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
}

.c-section-search-results__results {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
  justify-content: center;
}

@media (max-width: 767px) {
  .c-section-search-results__results {
    gap: 24px;
  }
}


/*　------カード-------　*/

.p-post-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc((100% - 80px)/3);
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  min-width: 320px;
  max-width: 350px;
}

.p-post-card__image {
  width: 100%;
  aspect-ratio: 1.618/1;
  overflow: hidden;
}

.p-post-card__image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.p-post-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px;
  gap: 16px;
  flex: 1;
}

.p-post-card__info {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.p-post-card__tags {
  flex: 1;
}
.p-post-card__tags__list {
  flex: 1;
      width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: start;
  gap: 8px;
  flex-wrap: wrap;
}

.c-tag {
  background-color: var(--genki-gold);
  padding: 4px 16px;
}

.c-classroom__name-address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.c-classroom__name {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
}

.c-classroom__address {
  font-size: var(--font-size-xs);
  text-align: center;
}

.p-post-card__actions {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--genki-brown);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;

}

.p-post-card__actions a {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  display: inline-flex;
  align-items: center;
}

.p-post-card__actions a::after {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--genki-gold);
  border-radius: 50%;
  margin-left: 8px;
  background-color: var(--genki-gold);

  /* 矢印画像を中央に配置 */
  background-image: url('../img/small_arrow.svg');
  background-repeat: no-repeat;
  background-position: calc(50% + 1px) center;
  background-size: 12px 12px;
}

@media (max-width: 374px) {
  .p-post-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
}

/* ページネーション */
.c-section-search-results__results .p-pagination {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  justify-content: center;
}
