/* ================================
   KARiN. Blog List Page Style
   Aレイアウト：横長サムネ
================================ */
/* Blogページは body の padding をリセット */
body {
  padding: 0;
}


/* 全体 */
.blog-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 5% 60px;
  box-sizing: border-box;
  color: #1E3A5F;
}

.blog-heading {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

/* 2列グリッド */
.blog-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* カード */
.blog-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: 0.3s;
}
.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* 横長サムネ */
.blog-thumb-wide {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f3f5f7;
  border-radius: 12px 12px 0 0;
}
.blog-thumb-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-thumb-wide.no-image {
  background: #f6f6f6;
}

/* 本文部分 */
.blog-content {
  padding: 20px;
}

.blog-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1E3A5F;
}

.blog-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 12px;
}

.blog-category {
  background: #e8eef7;
  color: #1E3A5F;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
}

/* ===============================
   🏷 カテゴリフィルター（KARiN.デザイン）
=============================== */

.blog-filter {
  display: flex;
  justify-content: center; /* ← 中央寄せ */
  flex-wrap: wrap;
  gap: 14px;
  margin: 25px auto 40px;
  padding: 10px 0;
}

.filter-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #f4f6fa;              /* 薄い上品なグレー系 */
  color: #1E3A5F;
  border-radius: 30px;              /* pill shape */
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
  border: 1px solid #dde3ec;
}

.filter-btn:hover {
  background: #e9eef5;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #1E3A5F;              /* KARiNネイビー */
  color: #fff;
  border-color: #1E3A5F;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* ===========================
   🔍 検索フォーム（全デバイス中央固定）
=========================== */

.blog-search {
  width: 100%;
  display: flex;
  justify-content: center;   /* 中央寄せ */
  align-items: center;
  margin: 40px auto 50px;
  padding: 0;
  gap: 12px;
}

.blog-search input[type="text"] {
  width: 280px;              /* 固定幅 */
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 30px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  transition: 0.2s ease;
  text-align: left;
}

.blog-search button {
  background-color: #1E3A5F;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 26px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  white-space: nowrap;
}

.blog-search button:hover {
  opacity: 0.85;
}

/* 右下ホームボタン（既存と同じ） */
.home-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 40px;
  padding: 10px 16px 10px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #1E3A5F;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.25s;
  z-index: 1000;
}
.home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.home-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* スマホ：1列 */
@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
  .blog-thumb-wide {
    height: 200px;
  }
  .blog-content {
    padding: 18px;
  }
  .blog-filter {
    gap: 10px;
    padding: 6px 0;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
  .home-btn {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .home-btn img {
    width: 24px;
    height: 24px;
  }
}

/* 超小さい画面 */
@media (max-width: 480px) {
  .blog-thumb-wide {
    height: 180px;
  }
  .blog-search {
    gap: 10px;
    margin: 30px auto 40px;
  }

  .blog-search input[type="text"] {
    width: 220px;     /* 少し小さめに */
  }

  .blog-search button {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* * {
  outline: 1px solid red !important;
} */


