/* blog.css - Updated for pagination fix */
body.single-post {
  /* 投稿ページ専用のCSSをここに書く */
}

body {
  background-color: #000;
}

.blog-archive__desc {
  color: #fff;
  font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
  list-style: none;
  1.8;
  margin: 10rem 0 3rem 0;
  line-height: 2.5;
  letter-spacing: 0.1em;
}

.sec-heading {
  font-family: futura-pt, sans-serif;
  font-size: clamp(3rem, 2.407rem + 2.96vw, 5rem);
  text-align: center;
  margin-top: 7rem;
  margin-bottom: 7rem;
  margin-bottom: 7rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.sec-heading span {
  display: block;
  font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
  font-weight: 700;
  margin-top: 1.8rem;
  letter-spacing: 0.05em;
}

.grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 5rem;
  margin-bottom: 5rem;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 5rem;
  margin-bottom: 5rem;
}

.card-featured,
.card-grid {
  color: #fff;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

.card-featured__link,
.card-grid__link {
  display: block;
  text-decoration: none;
  color: #fff;
}

.pickup-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #1992cb 0%, #662d91 100%) !important;
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  z-index: 2;
  font-family: futura-pt, sans-serif;
}

.card-featured__thumb,
.card-grid__thumb {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 60%;
  /* アスペクト比 */
}

.card-featured__thumb img,
.card-grid__thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-featured__link:hover .card-featured__thumb img,
.card-grid__link:hover .card-grid__thumb img {
  transform: scale(1.05);
}

.card-featured__body,
.card-grid__body {
  padding: 2rem 0rem;
}

.card-featured .meta,
.card-grid .meta {
  font-size: 1rem;
  font-weight: 700;
  color: #5b5b5b;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.card-featured .meta .cat,
.card-grid .meta .cat {
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  margin-left: 2rem;
  color: #fff;
  font-weight: 700;
}

.card-featured .title,
.card-grid .title {
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  line-height: 1.5;
}

.card-featured .subtitle,
.card-grid .subtitle {
  font-size: clamp(1rem, 0.98rem + 0.1vw, 1.1rem);
  color: #fff;
}

.blog-tabs {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 5rem;
}

.blog-tabs .blog-tab {
  cursor: pointer;
  padding: 0.5rem 0;
  color: #5b5b5b;
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  /* テキスト選択を防止 */
  -webkit-tap-highlight-color: transparent;
  /* モバイルでのタップハイライトを防止 */
  border-bottom: 2px solid #5b5b5b;
  white-space: nowrap;
  /* 折り返しを防止 */
}

.blog-tabs .blog-tab a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.blog-tabs .blog-tab.is-active {
  color: #fff;
  border-bottom: 2px solid #fff;
}

.blog-tabs .blog-tab.is-active a {
  color: #fff;
}

.blog-tabs .blog-tab:hover {
  opacity: 0.8;
  color: #fff;
  border-bottom: 2px solid #fff;
}

.blog-tabs .blog-tab:hover a {
  color: #fff;
}

/* アクティブタブのホバー効果 */
.blog-tabs .blog-tab.is-active:hover {
  opacity: 1;
}

/* クリック時のフィードバック */
.blog-tabs .blog-tab:active {
  opacity: 0.7;
  color: #fff;
}

.blog-tabs .blog-tab:active a {
  color: #fff;
}

.more-link {
  display: block;
  margin: 2.5rem auto 0 auto;
  padding: 1.2rem 3.5rem;
  border: 1px solid #fff;
  border-radius: 0.5rem;
  color: #fff;
  background: transparent;
  text-align: center;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.3rem);
  transition: background 0.2s, color 0.2s;
}

.more-link:hover {
  background: #fff;
  color: #000;
}

.btn-section {
  text-align: center;
  margin: 10rem auto;
}

.entry-section {}


/* CTA ボタンセクション */
.cta-button-section {
  margin: 20rem 0 10rem 0;
}

.cta-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-top: 5rem;
  align-items: center;
}

/* 左側のテキストエリア */
.cta-button-text {
  color: #fff;
  padding: 0 2rem;
}

.cta-button-text h3 {
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-button-text p {
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  line-height: 1.8;
  opacity: 0.8;
}

/* 右側のボタンエリア */
.cta-button-item {
  display: flex;
  justify-content: center;
}


/* もっと見るボタン */
.load-more-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.load-more-btn.is-loading .outline-btn__label::after {
  content: "";
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  margin-left: 1rem;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}

/* ローディングアニメーション */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 記事読み込み中のスタイル */
#blog-feed.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Moreボタン */
.load-more-btn {
  cursor: pointer;
}

.load-more-btn.hidden {
  display: none;
}

.no-posts-message {
  color: #fff;
  text-align: center;
  padding: 5rem 0;
  font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  grid-column: 1 / -1;
  width: 100%;
}

/* =============================
   カテゴリーページ専用スタイル - シックデザイン
   ============================= */
.category-header {
  margin-bottom: 5rem;
  position: relative;
  padding: 0 0 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(25, 146, 203, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(102, 45, 145, 0.1) 0%, transparent 50%);
  z-index: 0;
}

.category-header>* {
  position: relative;
  z-index: 1;
}

.category-title {
  font-family: futura-pt, sans-serif;
  font-size: clamp(1.7rem, 1.552rem + 0.74vw, 2.2rem);
  font-weight: 300;
  color: #fff;
  margin: 0;
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.2;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-label {
  font-family: futura-pt, sans-serif;
  font-size: clamp(1.2rem, 1.12rem + 0.4vw, 1.6rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 400;
  position: relative;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s ease-out 0.1s forwards;
}

.category-name {
  font-size: clamp(1.8rem, 1.36rem + 2.2vw, 4rem);
}

.category-description {
  font-size: clamp(1.2rem, 1.111rem + 0.44vw, 1.5rem) color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 50rem;
  margin: 3rem auto 0;
  text-align: center;
  font-weight: 300;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* =============================
   ページネーション - Ultra Modern Design
   ============================= */
.pagination-wrapper {
  margin: 10rem 0 8rem 0;
  text-align: center;
  position: relative;
}

.pagination-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(25, 146, 203, 0.3) 50%, transparent 100%);
  z-index: 0;
}

/* WordPressのページネーション全体 */
.pagination-wrapper .navigation {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.pagination-wrapper .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: futura-pt, sans-serif;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2.5rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* paginate_links()で生成されるリスト形式の場合 - nav構造と同じスタイル */
.pagination-wrapper ul.page-numbers {
  display: inline-flex !important;
  align-items: center;
  gap: 0.8rem;
  font-family: futura-pt, sans-serif;
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
  padding: 1.5rem 2.5rem !important;
  border-radius: 2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  list-style: none !important;
  margin: 0 !important;
  position: relative;
  z-index: 1;
}

.pagination-wrapper ul.page-numbers li {
  margin: 0;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: block !important;
}

/* li内の要素（a, span）のみにスタイルを適用 */
.pagination-wrapper ul.page-numbers li a,
.pagination-wrapper ul.page-numbers li span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 4.4rem;
  padding: 0 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2rem;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.3rem);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

/* ページ番号とナビゲーションボタン */
.pagination-wrapper .page-numbers,
.pagination-wrapper ul.page-numbers li a,
.pagination-wrapper ul.page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 4.4rem;
  padding: 0 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2rem;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.3rem);
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.pagination-wrapper .page-numbers::before,
.pagination-wrapper ul.page-numbers li a::before,
.pagination-wrapper ul.page-numbers li span::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.pagination-wrapper .page-numbers:hover::before,
.pagination-wrapper ul.page-numbers li a:hover::before {
  left: 100%;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper ul.page-numbers li a:hover {
  color: #fff;
  background: rgba(25, 146, 203, 0.2);
  border-color: rgba(25, 146, 203, 0.5);
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 8px 25px rgba(25, 146, 203, 0.3),
    0 0 0 1px rgba(25, 146, 203, 0.2);
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper ul.page-numbers li .current {
  background: linear-gradient(135deg, #1992CB 0%, #662D91 100%);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 25px rgba(25, 146, 203, 0.4),
    0 0 0 1px rgba(25, 146, 203, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.pagination-wrapper .page-numbers.current::after,
.pagination-wrapper ul.page-numbers li .current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  border-radius: inherit;
}

/* Next/Prevボタン専用スタイル */
.pagination-wrapper .page-numbers.next,
.pagination-wrapper .page-numbers.prev {
  gap: 1rem;
  padding: 0 2rem;
  min-width: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pagination-wrapper .page-numbers.next:hover,
.pagination-wrapper .page-numbers.prev:hover {
  background: linear-gradient(135deg, rgba(25, 146, 203, 0.3) 0%, rgba(102, 45, 145, 0.3) 100%);
  border-color: rgba(25, 146, 203, 0.6);
}

.pagination-arrow {
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 4px rgba(25, 146, 203, 0.5));
}

.pagination-text {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.pagination-wrapper .page-numbers.prev:hover .pagination-arrow {
  transform: translateX(-4px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(25, 146, 203, 0.8));
}

.pagination-wrapper .page-numbers.next:hover .pagination-arrow {
  transform: translateX(4px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(25, 146, 203, 0.8));
}

.pagination-wrapper .dots {
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  padding: 0 0.8rem;
  position: relative;
}

.pagination-wrapper .dots::before {
  content: "⋯";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ページ番号の数字部分 */
.pagination-number {
  display: inline-block;
}

/* WordPressが生成するspan要素のスタイルリセット */
.pagination-wrapper .page-numbers span {
  display: inline-block;
}

.-type-card .p-postList__item {
  width: 25%;
}

.c-widget .-type-card .p-postList__item {
  margin-bottom: 3em;
}

/* PC */
@media (max-width: 1440px) {}

@media (max-width: 1280px) {}

@media (max-width: 1024px) {
  .grid-3x2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet */
@media (max-width: 768px) {

  .cta-button-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .cta-button-text {
    text-align: center;
  }

  .cta-button-text h3 {
    font-size: clamp(1.4rem, 1.36rem + 0.2vw, 1.6rem);
  }

  .cta-button-text p {
    font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
  }

  .cta-button-section {
    margin: 5rem 0;
  }

  .cta-button-text br {
    display: none;
  }

  /* スマホ表示用のタブデザイン */
  .blog-tabs {
    justify-content: flex-start;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    /* スクロールバー分の余白 */
    -webkit-overflow-scrolling: touch;
    /* iOSのスムーススクロール */
    scroll-behavior: smooth;
    /* スムーススクロール */
    scrollbar-width: none;
    /* Firefoxでスクロールバーを非表示 */
    max-width: 100%;
  }

  /* Chrome, Safariでスクロールバーを非表示 */
  .blog-tabs::-webkit-scrollbar {
    display: none;
  }

  .blog-tabs .blog-tab {
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
    flex-shrink: 0;
    /* 幅を縮めない */
  }


  .blog-archive__desc {
    margin: 5rem 0 3rem 0;
    line-height: 1.8;
  }

  .pagination-wrapper {
    margin: 6rem 0 4rem 0;
  }

  .pagination-wrapper .nav-links,
  .pagination-wrapper ul.page-numbers {
    padding: 1.2rem 1.8rem;
    gap: 0.6rem;
    border-radius: 1.5rem;
  }

  .pagination-wrapper .page-numbers,
  .pagination-wrapper ul.page-numbers li a,
  .pagination-wrapper ul.page-numbers li span {
    min-width: 3.8rem;
    height: 3.8rem;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
    border-radius: 1rem;
  }

  .pagination-wrapper .page-numbers.next,
  .pagination-wrapper .page-numbers.prev {
    padding: 0 1.2rem;
    gap: 0.8rem;
  }

  .pagination-text {
    display: none;
  }

  .pagination-arrow {
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.2rem);
  }

  .pagination-wrapper .page-numbers.prev:hover .pagination-arrow {
    transform: translateX(-3px) scale(1.05);
  }

  .pagination-wrapper .page-numbers.next:hover .pagination-arrow {
    transform: translateX(3px) scale(1.05);
  }

  /* カテゴリーヘッダーのレスポンシブ */
  .category-header {
    margin-bottom: 5rem;
    padding: 4rem 2rem;
    border-radius: 1.5rem;
  }

  .category-label {
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
  }

  .category-label::after {
    width: 3rem;
    bottom: -0.6rem;
  }

  .category-description {
    font-size: clamp(1.2rem, 1.16rem + 0.2vw, 1.4rem);
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .-type-card .p-postList__item {
    width: 50%;
  }
}

/* Smartphone */
@media (max-width: 480px) {
  .grid-3x2 {
    grid-template-columns: 1fr;
  }
}