/* ------------------------------------------
  プレゼント一覧（postlist）
------------------------------------------ */

.present-listblock .article-list {
  background-color: var(--bg);
  padding: 20px 10px !important;
  display: flex;
  flex-direction: column;
  gap: 10px; /* もともとの gap に合わせる */
}

/* カード全体の構造（SPは縦並び） */
.present-listblock .article-card {
  display: flex;
  flex-direction: column;
  gap: 30px; /* もともとの値に合わせる */
  padding: 30px 15px;
  border-radius: var(--radius-6);
  background-color: #fff;
  box-shadow: 0px 10px 20px 3px rgba(71, 160, 170, 0.05);
}

/* サムネイル（SPは全幅） */
.present-listblock .article-card__thumb {
  width: 100%;
  flex: 0 0 auto;
}

.present-listblock .article-card__thumb img {
  width: 50% !important;
  height: 160px;
  border-radius: 6px;
  display: block !important;
  margin: 0 auto !important
}
/* テキストエリア */
.present-listblock .article-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* タイトル */
.present-listblock .article-card__title {
  font-size: 16px;
  font-weight: 600;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* 応募情報（締切 / 当選人数） */
.present-listblock .article-card__desc {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}
.present-listblock .article-card__desc-inner {
  line-height: 1.4;
  display: block;
}

/* ------------------------------------------
    ステータスバッジ（open / closed / pending）
  ------------------------------------------ */

.present-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.present-status__icon {
  font-size: 10px;
}

/* 受付中（グリーン） */
.present-status--open {
  background: #00a38a;
  color: #fff;
  width: 80px;
}

/* 準備中（オレンジ） */
.present-status--pending {
  background: #ff9900;
  color: #fff;
  width: 90px;
}

/* 受付終了（グレー） */
.present-status--closed {
  background: #ff0000;
  color: #fff;
  width: 90px;
}

/* ------------------------------------------
    応募ボタン
  ------------------------------------------ */

.article-list__btn-entry {
  display: block !important;
  width: 100%;
  text-align: center;
  padding: 16px 0;
  border-radius: 100px;
  font-weight: var(--font-sub-weight);
  border: 1px solid var(--color-main);
  background: var(--color-main);
  color: #fff !important;
  box-shadow: 0px 5px 10px 3px rgba(71, 160, 170, 0.1);
  transition: all 0.2s ease;
}

.article-list__btn-entry:hover {
  background: #fff;
  color: var(--color-main) !important;
  box-shadow: none;
}

/* 締切終了ボタン */
.article-list__btn-entry--closed {
  background: #dcdcdc !important;
  border-color: #cccccc !important;
  color: #777777 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  opacity: 0.7;
}

/* ------------------------------------------
    レスポンシブ
  ------------------------------------------ */

@media screen and (min-width: 480px) {
  .present-listblock .article-card__thumb img {
    width: 100% !important;
    height: 160px;
    border-radius: 6px;
  }
  /* カード本体はグリッドで
       thumb + content を横並び
       ボタンは下段で右寄せ（元の見え方に近づける） */
  .present-listblock .article-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "thumb content"
      "button button";
    column-gap: 20px;
    row-gap: 20px;
  }

  .present-listblock .article-card__thumb {
    grid-area: thumb;
  }

  .present-listblock .article-card__content {
    grid-area: content;
  }

  .article-list__btn-entry {
    grid-area: button;
    width: 260px !important;
    margin: 0 auto;
  }

  .present-listblock .article-list {
    padding: 20px !important;
    gap: 20px;
  }
}

@media screen and (min-width: 1024px) {
  .present-listblock .article-card__desc {
    flex-direction: row;
    gap: 16px;
  }
}
