/* ============================================================
   はなの芽 — Blog Styles
   ブログ一覧 (home.php) / カテゴリーアーカイブ (archive.php) /
   個別記事 (single.php) 共通
   ============================================================ */

/* ----- ページ全体ラッパー ----- */
.blog-page,
.single-post-page {
  background: var(--bg-cream);
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
}

/* ----- ページヘッダー ----- */
.blog-hero {
  text-align: center;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.blog-hero .section-heading {
  margin-bottom: 12px;
}

.blog-hero p {
  color: var(--text-sub);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 8px auto 0;
  line-height: 1.85;
}

/* ----- カテゴリータブ ----- */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}

.category-tabs a {
  display: inline-block;
  padding: 8px 22px;
  background: var(--white);
  color: var(--text-sub);
  border: 1.5px solid var(--green-base);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.category-tabs a:hover {
  background: var(--green-light);
  border-color: var(--green-mid);
  color: var(--green-accent);
}

.category-tabs a.is-current {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

/* ----- 投稿カードグリッド ----- */
.posts-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(90, 158, 90, 0.22);
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card__img {
  height: 200px;
  overflow: hidden;
  background: var(--green-light);
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card__img img,
.post-card:focus-within .post-card__img img {
  transform: scale(1.07);
}

.post-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-sub);
}

.post-card__date {
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

.post-card__cat {
  display: inline-block;
  padding: 2px 10px;
  background: var(--green-light);
  color: var(--green-accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.post-card__cat--news {
  background: var(--yellow-warm);
  color: var(--brown-dark);
}

.post-card__cat--activity {
  background: var(--pink-soft);
  color: #b86b85;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 10px;
}

.post-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin: 0;
  flex: 1;
}

/* ----- 「もっと見る」ボタン（front-page セクション末尾／カードの下中央） ----- */
.section-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 44px auto 0;
  padding: 14px 36px;
  background: var(--white);
  color: var(--green-accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2.5px solid var(--green-mid);
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(90, 158, 90, 0.12);
  position: relative;
  z-index: 2;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.section-more::after {
  content: "→";
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.3s ease;
}

.section-more:hover {
  background: var(--green-light);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 158, 90, 0.22);
  opacity: 1;
}

.section-more:hover::after {
  transform: translateX(4px);
}

/* News セクションは黄色系のアクセント */
.section-news .section-more {
  border-color: var(--yellow-accent);
  color: var(--brown-dark);
  box-shadow: 0 4px 14px rgba(255, 217, 102, 0.25);
}

.section-news .section-more:hover {
  background: var(--yellow-warm);
  color: var(--brown-dark);
  box-shadow: 0 6px 20px rgba(255, 217, 102, 0.4);
}

/* ----- ページネーション ----- */
.blog-pagination {
  margin: 60px auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.blog-pagination .nav-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--white);
  border: 1.5px solid var(--green-base);
  border-radius: 999px;
  color: var(--text-sub);
  font-family: var(--font-en);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

/* ----- 投稿が無い場合 ----- */
.posts-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* ============================================================
   個別記事 (single.php)
   ============================================================ */
.single-post-page article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 50px 50px 60px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.single-post-header {
  border-bottom: 1px solid var(--green-light);
  padding-bottom: 24px;
  margin-bottom: 30px;
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.single-post-meta .post-card__date {
  font-family: var(--font-en);
}

.single-post-title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0;
}

.single-post-thumb {
  margin: 0 -50px 30px;
  height: 360px;
  overflow: hidden;
}

.single-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post-content {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-main);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin: 36px 0 16px;
  color: var(--green-accent);
  line-height: 1.5;
}

.single-post-content h2 {
  font-size: 1.35rem;
  border-left: 5px solid var(--green-mid);
  padding-left: 14px;
}

.single-post-content h3 {
  font-size: 1.15rem;
}

.single-post-content p {
  margin-bottom: 1.4em;
}

.single-post-content a {
  color: var(--green-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-post-content img {
  border-radius: var(--radius-sm);
  margin: 14px 0;
}

.single-post-content ul,
.single-post-content ol {
  margin: 0 0 1.4em 1.4em;
}

.single-post-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--green-light);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-sub);
  font-style: italic;
}

/* ----- 個別記事下のCTA 3段 ----- */
.post-cta {
  max-width: 760px;
  margin: 50px auto 0;
  position: relative;
  z-index: 2;
}

.post-cta__heading {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
}

.post-cta__heading::before {
  content: "🌷 ";
}

.post-cta__primary,
.post-cta__secondary {
  display: block;
  border-radius: var(--radius);
  padding: 28px 32px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.post-cta__primary {
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-accent) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232, 160, 184, 0.35);
}

.post-cta__primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(232, 160, 184, 0.5);
}

.post-cta__secondary {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-base) 100%);
  color: var(--green-accent);
  box-shadow: 0 6px 20px rgba(90, 158, 90, 0.18);
}

.post-cta__secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(90, 158, 90, 0.3);
}

.post-cta__label {
  display: block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 4px;
}

.post-cta__title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.post-cta__desc {
  display: block;
  font-size: 0.85rem;
  opacity: 0.95;
  line-height: 1.6;
}

.post-cta__contact {
  text-align: center;
  margin-top: 22px;
  font-size: 0.92rem;
}

.post-cta__contact a {
  color: var(--green-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.post-cta__contact a:hover {
  color: var(--green-dark);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .single-post-page article {
    padding: 36px 28px 40px;
  }

  .single-post-thumb {
    margin: 0 -28px 26px;
    height: 280px;
  }

  .single-post-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .blog-page,
  .single-post-page {
    padding: 40px 16px 60px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .post-card__img {
    height: 220px;
  }

  .single-post-page article {
    padding: 28px 20px 34px;
    border-radius: var(--radius-sm);
  }

  .single-post-thumb {
    margin: 0 -20px 22px;
    height: 220px;
  }

  .single-post-title {
    font-size: 1.25rem;
  }

  .single-post-content {
    font-size: 0.95rem;
  }

  .post-cta__primary,
  .post-cta__secondary {
    padding: 22px 22px;
  }

  .post-cta__title {
    font-size: 1.05rem;
  }

  .category-tabs a {
    padding: 7px 16px;
    font-size: 0.85rem;
  }
}
