/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/


/* ———— Elementor 投稿一覧用 統合CSS ———— */

/* ラッパー */
.elementor-post-list-wrapper {
  padding: 1em 0;
}

/* 各記事アイテム */
.elementor-post-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

/* リンク全体をFlexコンテナ化 */
.elementor-post-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
}

/* サムネイル（あれば左に寄せる） */
.elementor-post-list-thumbnail {
  margin-right: 15px;
  flex-shrink: 0;
}

/* 日付 */
.elementor-post-list-date {
  flex-shrink: 0;
  white-space: nowrap;
  margin: 0 1em 0 0;
  font-size: 0.85rem;
  color: #777;
  text-align: right;
}

/* タイトル */
.elementor-post-list-title {
  flex-grow: 1;
  margin: 0;                /* 見出しタグの余計な余白をリセット */
  font-size: 0.85rem;
  font-weight: bold;
  color: #003366;
  text-align: left;
}

/* スマホなど狭い画面で縦並びに切り替え */
@media (max-width: 768px) {
  .elementor-post-list-link {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .elementor-post-list-date {
    margin: 0 0 5px;
    text-align: left;
  }
  .elementor-post-list-title {
    width: 100%;
  }
  .elementor-post-list-thumbnail {
    margin: 0 0 10px;
  }
}


/* ———— 日付とタイトルを横並びに揃える ———— */
.elementor-post-list-content {
  display: flex !important;
  align-items: center !important;         /* 縦中央揃え */
  justify-content: space-between !important; /* 左右に振り分け */
  width: 100%;
}

/* 余計なブロック余白をリセット */
.elementor-post-list-title {
  margin: 0 !important;
}

/* （必要であれば）リンクはブロック要素に戻しておく */
.elementor-post-list-link {
  display: block !important;
}

/* スマホ時の縦並び切り替えも content 側で */
@media (max-width: 768px) {
  .elementor-post-list-content {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .elementor-post-list-date {
    margin: 0 0 5px !important;
    text-align: left !important;
  }
}


