@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD2
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.c-postThumb__figure[fifu-featured="1"] {
  height: 192.733px;
  overflow: hidden; /* 画像が設定した高さを超えている場合は、はみ出した部分を隠す */
}



/* 関連記事グリッドレイアウト */
.related-posts-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* モバイル：1カラム */
@media screen and (max-width: 599px) {
  .related-posts-grid {
      grid-template-columns: 1fr;
  }
}

/* タブレット：2カラム */
@media screen and (min-width: 600px) and (max-width: 1023px) {
  .related-posts-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* PC：3カラム */
@media screen and (min-width: 1024px) {
  .related-posts-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* 関連記事アイテムのスタイル */
.related-post-item {
  height: 100%;
  transition: transform 0.2s;
}

.related-post-item:hover {
  transform: translateY(-4px);
}

.related-post-item .p-postList__link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-post-item .p-postList__thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9のアスペクト比 */
  overflow: hidden;
}

.related-post-item .p-postList__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-post-item .p-postList__content {
  flex-grow: 1;
  padding: 1rem;
  background: var(--color_content_bg, #fff);
}

.related-post-item .p-postList__title {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.related-post-item .p-postList__meta {
  font-size: 12px;
  color: var(--color_text_sub, #777);
}



