/* 全体のベース */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #333;
}

.insta{
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  align-items: stretch; /* 子要素の高さを均一にする */
  max-height: 500px;
  overflow-y: hidden;
}


.instagram{
  padding: 20px;
  height: 100% !important; /* 埋め込みに高さを強制 */
  overflow: hidden;
  max-height: 500px;
}
/* ============================
   BLOG LIST PAGE
============================ */

.blog-list {
  max-width: 1100px;
  margin: 120px auto 80px;
  padding: 0 20px;
}

.blog-list h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 1px;
}

/* カテゴリボタン */
.category-filter {
  text-align: center;
  margin-bottom: 40px;
}

.category-filter button {
  padding: 10px 22px;
  margin: 0 8px;
  border: none;
  background: #ddd;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s;
}

.category-filter button.active,
.category-filter button:hover {
  background: #333;
  color: #fff;
}

/* 投稿一覧（PC：3列） */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-items: center;
}

.post-item {
  width: 100%;
  max-width: 330px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 1;
  transform: translateY(0);
  transition: 0.4s ease;
}

/* ホバーアニメーション */
.post-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.post-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.post-item.hide {
  opacity: 0;
  transform: translateY(20px);
}

.post-item a {
  color: inherit;
  text-decoration: none;
}

.post-item .thumb {
  overflow: hidden;
}

.post-item .thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-item:hover .thumb img {
  transform: scale(1.08);
}

.post-item .info {
  padding: 15px;
}

.post-item .date {
  font-size: 12px;
  color: #777;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  margin-left: 8px;
  font-size: 11px;
  border-radius: 4px;
  color: #fff;
}

.tag.blog { background: #007bff; }
.tag.news { background: #28a745; }

.post-item h2 {
  font-size: 18px;
  margin: 10px 0;
}

.post-item p {
  font-size: 14px;
  color: #555;
}

/* ページネーション */
.pagination {
  margin-top: 40px;
  text-align: center;
}

.pagination button {
  padding: 10px 18px;
  margin: 0 5px;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.pagination button:hover {
  background: #555;
}

.pagination button.disabled {
  background: #aaa;
  cursor: default;
}

/* モバイル対応（1列中央） */
@media (max-width: 768px) {
  .blog-list h1 {
    font-size: 26px;
  }

  .category-filter button {
    padding: 8px 16px;
    margin: 5px;
    font-size: 13px;
  }

  .posts {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .post-item {
    max-width: 90%;
  }

  .post-item .thumb img {
    height: 160px;
  }
}
