.usage-filter {
  display: flex;
  gap: 20px;
  margin-top: 100px;

  align-items: flex-start;
}

.pipe{
  margin: 0 1em;
}


.posts-grid {
      min-height: 400px;
  margin-top: 50px;
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 3px;
  width: 100%;
  justify-content: center;
}

.post-item {
  position: relative;
  width: 100%; /* 幅はグリッドの幅に合わせる */
  height: auto; /* 必要に応じて変更 */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* 画面が1024px以下の場合：2列 */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 画面が768px以下の場合：1列 */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}


.eyecatch-wrapper {
  width: 400px;
  height: 400px; /* 初期 */
  overflow: hidden;
  background-color: #004370;
  flex-shrink: 0;
  transition: height 0.3s ease, margin-top 0.3s ease;
}

.eyecatch {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.meta-line {
  z-index: -1;
  position: absolute;
  bottom: -10px; /* 固定位置 */
  left: 0;
  width: 100%;
  font-size: 10px;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-wrap: wrap;


  transition: opacity 0.3s ease;
  pointer-events: none;
}

.post-item:hover .eyecatch-wrapper {
  margin-top: 30px;
  height: 350px; /* 高さを縮めてトリミング */
}


@media screen and (max-width: 768px) {
  .post-item:hover .eyecatch-wrapper {
  height: auto !important; /* 必要に応じて !important を */
  margin-top: 0; /* これも無効化したければ上書き */
}

  .eyecatch-wrapper {
  width: 100%;
  height: auto;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  transition: width 0.3s ease, margin-top 0.3s ease;
}

  .posts-grid {
    min-height: inherit;
          height: fit-content;
        gap: 0px;
    margin-top: 0px;
  }

.meta-line {
   z-index: 1;
    bottom: 0px;
    color: white;
     background: none;
}
    .meta-line {
  font-size: 10px;
}
