/* コラムページ固有のスタイル */

/* ヒーローセクション */
.site-hero-bg.hero-column {
  background-image: url('/assets/images/001.jpg');
  background-position: center;
  background-size: cover;
  min-height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-hero-content {
  text-align: center;
  color: white;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}

.site-hero-content h1 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

/* コラム概要セクション */
.column-intro {
  background-color: var(--background-white);
  padding: 40px 0;
  text-align: center;
}

.column-intro p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* カテゴリナビゲーション */
.column-category-nav {
  padding: 30px 0;
  background-color: var(--background-light);
}

.column-category-nav h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--secondary-color);
}

.category-list {
  margin: 0 auto;
  max-width: 1000px;
}

.category-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 10px;
}

.category-list a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  background-color: white;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* 検索・絞り込みセクション */
.column-search {
  padding: 30px 0;
  background-color: var(--background-white);
}

.search-input-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

#column-search-input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  font-size: 16px;
  outline: none;
}

.search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: var(--primary-dark);
}

/* 人気キーワードセクション */
.popular-keywords {
  padding: 30px 0;
  background-color: var(--background-light);
}

.popular-keywords h2 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--secondary-color);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.keyword {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  background-color: white;
  color: var(--secondary-color);
  border: 1px solid var(--border-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.keyword:hover,
.keyword.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* コラム一覧セクション */
.column-list {
  padding: 50px 0;
  background-color: var(--background-white);
}

.column-list h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--secondary-color);
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* コラムカードのスタイル */
.column-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.column-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.column-card > a {
  display: block;
  flex-grow: 1;
  text-decoration: none;
  color: var(--secondary-color);
}

.column-content {
  padding: 15px;
  flex-grow: 1;
}

.column-image {
  height: 0;
  padding-bottom: 56.25%; /* 16:9比率 */
  position: relative;
  overflow: hidden;
}

.column-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.column-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

/* カテゴリタグと日付のスタイル */
.column-meta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 15px 15px;
}

.column-meta time {
  font-size: 14px;
  color: #666;
}

.column-category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.column-category-tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  background-color: #EF454A;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.column-category-tag:hover {
  background-color: #D03539;
  color: white;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-number,
.page-next {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: white;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s;
}

.page-number:hover,
.page-next:hover {
  background-color: var(--background-light);
}

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

.page-next {
  width: auto;
  padding: 0 15px;
}

/* もっと見るボタン */
.more-button-container {
  text-align: center;
  margin-top: 30px;
}

.more-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.more-button:hover {
  background-color: var(--primary-color);
  color: white;
}

/* 検索結果なしの表示 */
.column-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .site-hero-content h1 {
      font-size: 28px;
  }
  
  .column-grid {
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
  }
  
  .category-list ul {
      gap: 5px;
  }
  
  .category-list a {
      padding: 6px 12px;
      font-size: 14px;
  }
}

@media (max-width: 480px) {
  .site-hero-content h1 {
      font-size: 24px;
  }
  
  .column-grid {
      grid-template-columns: 1fr;
  }
  
  .column-card h3 {
      font-size: 16px;
  }
  
  .search-input-container {
      flex-direction: column;
  }
  
  #column-search-input {
      width: 100%;
  }
  
  .search-button {
      width: 100%;
      padding: 10px;
  }
}