/* キャンペーン一覧ページと詳細ページ共通のスタイル */

/* ページヘッダー */
.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.archive-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 16px;
  color: #666;
}

/* コンテナ */
/* campaign Archive Page Styling */
.campaign-container {
  margin: 0 auto;
  padding: 32px 20px 60px;
  background-color: rgba(255,255,255,0.9);
  border-radius: 8px;
  max-width: 896px;
}


/* ニュース一覧ページ（アーカイブ） */
.campaign-list-archive {
  margin-bottom: 40px;
}

.campaign-item {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 16px 24px;
  text-decoration: none;
  color: #EEEEEE;
  transition: border 0.3s;
}

.campaign-item:hover {
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid #263943;
}

.campaign-meta {
  width: 200px;
  padding-right: 20px;
}

.campaign-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.campaign-category {
  min-width: 120px;
  margin-right: 16px;
  text-align: center;
  background-color: #C6C6C6;
  border-radius: 9999px;
  color: #263943;
  font-size: 0.75rem;
}
.campaign-category.campaign, .campaign-category.campaign-en {
  background-color: #6FD6D3;
}
.campaign-category.product, .campaign-category.product-en {
  background-color: #AFE474;
}

.campaign-content {
  flex: 1;
}

.campaign-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 15px;
}

.campaign-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.campaign-title a:hover {
  color: #007bff; /* テーマカラーに合わせて変更 */
}

.campaign-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

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

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #1F2023;
  text-decoration: none;
  font-size: 0.875rem;
}

.page-numbers.current {
  background-color: #1F2023;
  color: white;
}

.page-numbers:hover:not(.current) {
  background-color: #4DE878;
}

.page-numbers:visited {
  color: #1F2023;
}

/* ニュース詳細ページ */
.single-campaign main.site-main {
  margin-bottom: 250px;
  padding-bottom: 0;
}

.single-campaign main.site-main article {
  margin-top: 50px;
}

.campaign-single {
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 8px;
  max-width: 896px;
}

.campaign-single .entry-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.campaign-single .entry-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 15px 0 0;
  line-height: 1.4;
  color: #263943;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #2376D0, #25ACCA 43%, #20CD7A) 5;
}

.campaign-single .entry-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.campaign-single .entry-content p {
  margin-bottom: 20px;
}

.campaign-single .entry-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

.campaign-single h2 {
  padding-left: 10px;
  border-left-width: 16px;
  border-left-style: solid;
  border-radius: 8px;
  border-image: linear-gradient(2.3deg, #25ACCA, #20CD7A) 5;
  mask: linear-gradient(white, white);
  font-size: 1.5rem;
  background-color: white;
}

.campaign-single h3 {
  padding-left: 10px;
  border-left-width: 4px;
  border-left-style: solid;
  border-right-width: 4px;
  border-right-style: solid;
  border-image: linear-gradient(2.3deg, #2376D0, #25ACCA 43%, #20CD7A) 5;
  font-size: 1.25rem;
  background-color: white;
}

/* 前後の記事ナビゲーション */
.campaign-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.nav-previous a, .nav-next a {
  color: #1F2023;
  text-decoration: none;
}
.nav-previous a:hover, .nav-next a:hover {
  color: #55555D;
}

.nav-next {
  text-align: right;
}

.campaign-archive-link {
  text-align: center;
}

.campaign-archive-link a {
  display: inline-block;
  min-width: 342px;
  padding: 8px 20px;
  background-color: #1F2023;
  color: #C6C6C6;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-weight: 700;
}
.campaign-archive-link a::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-image: url("../img/arrow_left.svg");
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: 8px;
}

@media screen and (max-width: 480px) {
  .campaign-archive-link a {
    min-width: auto;
    width: 100%;
  }  
}

.campaign-archive-link a:hover {
  color: #fff;
  background-color: #383840;
}

.campaign-nav-link {
  margin: 16px 24px 250px;
}

.campaign-footer-link {
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 896px;
}

.campaign-footer-link .nav-separator {
  color: #1F2023;
}

.campaign-list-link a {
  color: #1F2023;
  font-size: 0.875rem;
  text-decoration: none;
}
.campaign-list-link::before {
  content: "❮"; /* 左向きのくの字矢印 */
  margin-right: 0.5em; /* テキストとの間隔 */
  color: #333; /* 色を指定 */
  font-size: 1.2em; /* サイズ調整（任意） */
}
.campaign-list-link a:hover {
  color: #55555D;
}

/* campaign Filter */
.campaign-filter {
  margin-bottom: 30px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-btn {
  background-color: #fff;
  color: #263943;
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background-color: #e9e9e9;
}

.filter-btn.active {
  background-color: #44C167;
  color: #27292D;
}

.filter-btn:hover {
  background-color: #4DE878;
}

/* campaign Item */
.campaign-meta {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.campaign-date {
  font-size: 0.75rem;
  margin-bottom: 0;
  color: #55555D;
}

.campaign-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  color: #27292D;
}

/* Filter buttons styling */
.campaign-filter {
  margin-bottom: 24px;
}

.filter-buttons {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
  flex-wrap: wrap;
}

/* campaign item styling */
.campaign-list-archive {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.campaign-category span {
  display: inline-block;
  min-width: 100px;
  padding: 6px 12px;
  border-radius: 9999px;
  background-color: #C6C6C6;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #263943;
  text-align: center;
}

/* Category colors */
.campaign-category.campaign span, .campaign-category.campaign-en span {
  background-color: #6FD6D3;
}

.campaign-category.product span, .campaign-category.product-en span {
  background-color: #AFE474;
}

.campaign-category.other span {
  background-color: #C6C6C6;
}

.campaign-content {
  flex-grow: 1;
}

.campaign-info {
  display: flex;
  flex-direction: column;
}

.campaign-arrow {
  position: relative;
  width: 24px;
  height: 24px;
  margin-left: 16px;
}

.campaign-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid #0E0E0F;
  border-right: 2px solid #0E0E0F;
  transform: translateY(-50%) rotate(45deg);
}

/* Pagination styling */
.pagination {
  margin-top: 32px;
  margin-right: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.no-campaign {
  color: #1F2023;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .campaign-item {
    /* flex-wrap: wrap を削除して、常に一行レイアウトを維持 */
    padding: 12px 16px;
    align-items: stretch; /* 要素の高さを揃える */
  }
  
  .campaign-category {
    margin-bottom: 0; /* 下マージンを削除 */
    margin-right: 16px;
    align-self: flex-start; /* カテゴリーを上部に配置 */
  }
  
  .campaign-content {
    flex: 1; /* 残りの空間を占める */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦方向中央配置 */
    min-height: 48px; /* 最小高さを確保 */
  }
  
  .campaign-info {
    width: 100%;
  }
  
  .campaign-arrow {
    align-self: center; /* 矢印を縦方向中央に配置 */
    margin-left: 0; /* 左マージンを少し小さく */
  }
  
  /* カテゴリータグのサイズ調整 */
  .campaign-category span {
    min-width: 80px; /* スマホでは幅を小さく */
    padding: 4px 8px; /* パディングを小さく */
    font-size: 0.7rem; /* フォントサイズを小さく */
  }
  
  /* タイトルのフォントサイズ調整 */
  .campaign-title {
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  /* 日付のスタイル調整 */
  .campaign-date {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
}