/* --- Column Page Styles (Main Blog) --- */

/* 1. Filter Section */
.cf-column-filter-section {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 32px 0; /* 24pxと48pxの間で調整 */
  background-color: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cf-column-filter-wrapper,
.cf-column-filter-container {
  overflow-x: auto;
  padding: 0 24px 8px; /* スクロールバー用の余白を確保 */
}

.cf-column-filter-list {
  display: flex;
  gap: 8px;
  min-width: max-content;
}

@media (min-width: 768px) {
  .cf-column-filter-list {
    justify-content: center;
  }
}

/* Filter Buttons */
.cf-column-filter-btn {
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  background-color: var(--cf-color-bg-surface);
  color: var(--cf-color-secondary);
}

.cf-column-filter-btn:hover,
.cf-filter-inactive:hover {
  background-color: #e5e7eb;
}

/* Active State (両方のクラス名に対応) */
.cf-column-filter-btn.active,
.cf-filter-active {
  background-color: var(--cf-color-primary) !important;
  color: white !important; /* または #F57C00 (デザインに合わせて調整) */
}

/* 2. Column Grid Layout */
.cf-column-section {
  padding: 64px 0; /* 96pxから少し調整 */
  background-color: var(--cf-color-bg-surface);
}

.cf-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .cf-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cf-column-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* 3. Article Card */
.cf-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid white;
  transition: all 0.5s;
  text-decoration: none !important;
  color: inherit;
}

.cf-article-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Card Image */
.cf-article-img-wrap {
  height: 224px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.cf-article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cf-article-card:hover .cf-article-img {
  transform: scale(1.05);
}

/* Article Tags (Over Image) */
.cf-article-tags-container {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.cf-article-tag {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--cf-color-brand-navy);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #f3f4f6;
  margin-right: 5px;
}

/* Card Content */
.cf-article-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cf-article-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--cf-color-secondary);
  margin-bottom: 12px;
  gap: 8px;
}

.cf-article-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cf-color-primary);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cf-article-card:hover .cf-article-title {
  color: var(--cf-color-brand-orange);
}

.cf-article-excerpt {
  font-size: 14px;
  color: var(--cf-color-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cf-article-link-text {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cf-color-primary);
  margin-top: auto;
}

.cf-article-card:hover .cf-article-link-text {
  text-decoration: underline;
  text-decoration-color: var(--cf-color-brand-orange);
  text-underline-offset: 4px;
}

.cf-article-arrow {
  margin-left: 8px;
  color: var(--cf-color-brand-orange);
}

/* 4. Pagination */
.cf-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  padding-bottom: 48px;
}

.cf-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid #e5e7eb;
  color: var(--cf-color-primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.3s;
}

.cf-page-link:hover {
  background-color: #f3f4f6;
}

.cf-page-link.current {
  background-color: var(--cf-color-primary);
  color: white;
  border-color: var(--cf-color-primary);
}