/* ==========================================
   ブログ個別記事ページ
========================================== */

.blog-page {
  background: #faf8f5;
  min-height: 60vh;
  padding: 48px 0 80px;
}

.blog-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* LP の .blog スタイルが body.blog に命中するのをリセット */
body.blog {
  padding: 0 !important;
  background: #fff !important;
  position: static !important;
}

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.breadcrumb__item {
  font-size: 12px;
  color: #999;
  font-family: 'Noto Sans JP', sans-serif;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin: 0 7px;
  color: #ccc;
}

.breadcrumb__link {
  color: #f04664;
  text-decoration: none;
}

.breadcrumb__link:hover {
  text-decoration: underline;
  opacity: 1;
}

.breadcrumb__item--current {
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* 記事全体 */
.blog-post {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

/* ヘッダー */
.blog-post__header {
  padding: 40px 48px 28px;
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-post__date {
  font-size: 13px;
  color: #999;
  font-family: 'Noto Sans JP', sans-serif;
}

.blog-post__cat {
  display: inline-block;
  background: #f04664;
  color: #fff;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.blog-post__title {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  color: #1a1a1a !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  margin: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* アイキャッチ */
.blog-post__thumbnail {
  margin: 0;
  line-height: 0;
}

.blog-post__thumb-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 460px;
  object-fit: cover;
}

/* 本文エリア */
.blog-post__content {
  padding: 40px 48px;
  font-family: 'Noto Sans JP', sans-serif;
}

.blog-post__content h2 {
  font-size: 21px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2.2em 0 0.9em;
  padding: 10px 18px;
  border-left: 4px solid #f04664;
  background: #fff5f7;
  line-height: 1.45;
}

.blog-post__content h2.h2--img {
  border-left: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.blog-post__content h2.is-after {
  border-left-color: #1496d6;
  background: #eaf5fd;
  color: #0b5a96;
}

.blog-post__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 2em 0 0.7em;
  padding-bottom: 7px;
  border-bottom: 2px solid #f0dde2;
  line-height: 1.45;
}

.blog-post__content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 1.8em 0 0.6em;
  line-height: 1.45;
}

.blog-post__content h5,
.blog-post__content h6 {
  font-size: 15px;
  font-weight: 700;
  color: #444;
  margin: 1.5em 0 0.5em;
}

.blog-post__content p {
  font-size: 15px;
  line-height: 1.95;
  color: #444;
  margin: 0 0 1.3em;
}

.blog-post__content ul {
  list-style: disc;
  margin: 0 0 1.3em 1.6em;
}

.blog-post__content ol {
  list-style: decimal;
  margin: 0 0 1.3em 1.6em;
}

.blog-post__content li {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
  margin-bottom: 5px;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 12px auto;
}

.blog-post__content blockquote {
  border-left: 4px solid #e0d0d4;
  margin: 1.8em 0;
  padding: 14px 22px;
  background: #f9f5f6;
  color: #666;
  font-size: 14px;
  line-height: 1.85;
}

.blog-post__content a {
  color: #f04664;
  text-decoration: underline;
}

.blog-post__content a:hover {
  opacity: 0.75;
}

.blog-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14px;
}

.blog-post__content th {
  background: #f04664;
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-weight: 700;
}

.blog-post__content td {
  padding: 10px 16px;
  border-bottom: 1px solid #ece4e6;
  color: #444;
  vertical-align: top;
}

.blog-post__content tr:nth-child(even) td {
  background: #fdf8f9;
}

/* フッター（ナビ） */
.blog-post__footer {
  padding: 32px 48px 48px;
  border-top: 1px solid #f0dde2;
}

/* 前後記事ナビ */
.blog-post__nav {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.blog-post__nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: #faf8f5;
  border: 1px solid #f0dde2;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.blog-post__nav-link:hover {
  background: #fff5f7;
  border-color: #f04664;
  text-decoration: none;
}

.blog-post__nav-link--next {
  text-align: right;
}

.blog-post__nav-label {
  font-size: 11px;
  color: #f04664;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.blog-post__nav-title {
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 戻るボタン */
.blog-post__back {
  text-align: center;
}

.blog-post__back-link {
  display: inline-block;
  padding: 13px 36px;
  background: #f04664;
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  transition: opacity 0.18s;
}

.blog-post__back-link:hover {
  opacity: 0.82;
  text-decoration: none;
  color: #fff;
}

/* ==========================================
   サンクスページ
========================================== */

.thanks-page {
  background: #faf8f5;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.thanks-inner {
  max-width: 600px;
  width: 100%;
}

.thanks-en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #f04664;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-family: 'Noto Sans JP', sans-serif;
}

.thanks-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.5 !important;
  margin: 0 0 28px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
}

.thanks-body {
  font-size: 15px;
  line-height: 2;
  color: #555;
  margin: 0 0 40px;
  font-family: 'Noto Sans JP', sans-serif;
}

.thanks-btn {
  display: inline-block;
  padding: 15px 48px;
  background: #f04664;
  color: #fff !important;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
  transition: opacity 0.18s;
}

.thanks-btn:hover {
  opacity: 0.82;
}

@media (max-width: 768px) {
  .thanks-page {
    padding: 56px 16px;
  }
  .thanks-title {
    font-size: 20px !important;
  }
  .thanks-body {
    font-size: 14px;
    text-align: left;
  }
}

/* ==========================================
   ブログ一覧ページ（archive.php）
========================================== */

.bl-archive {
  background: #faf8f5;
  min-height: 60vh;
  padding: 56px 0 80px;
}

.bl-archive__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.bl-archive__head {
  text-align: center;
  margin-bottom: 40px;
}

.bl-archive__title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  margin: 0 !important;
  padding-bottom: 16px;
  border-bottom: 3px solid #f04664;
  display: inline-block;
}

/* グリッド */
.bl-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* カード */
.bl-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}

.bl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.bl-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.bl-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0dde2;
}

.bl-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bl-card__thumb--no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bl-card__no-img-txt {
  color: #f04664;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  opacity: 0.5;
}

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

.bl-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bl-card__date {
  font-size: 12px;
  color: #999;
  font-family: 'Noto Sans JP', sans-serif;
}

.bl-card__cat {
  display: inline-block;
  background: #f04664;
  color: #fff;
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

.bl-card__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.6 !important;
  margin: 0 0 10px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card__more {
  font-size: 12px;
  color: #f04664;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ページネーション */
.bl-archive__pager .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.bl-archive__pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #f0dde2;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bl-archive__pager .page-numbers:hover,
.bl-archive__pager .page-numbers.current {
  background: #f04664;
  color: #fff;
  border-color: #f04664;
}

.bl-archive__pager .prev,
.bl-archive__pager .next {
  width: auto;
  padding: 0 16px;
  border-radius: 20px;
}

/* 空メッセージ */
.bl-archive__empty {
  text-align: center;
  color: #888;
  font-size: 15px;
  padding: 40px 0;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 戻るボタン */
.bl-archive__back {
  text-align: center;
  margin-top: 8px;
}

.bl-archive__back-link {
  display: inline-block;
  padding: 13px 36px;
  background: #f04664;
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.04em;
  transition: opacity 0.18s;
}

.bl-archive__back-link:hover {
  opacity: 0.82;
  text-decoration: none;
  color: #fff;
}

/* SP（アーカイブ） */
@media (max-width: 768px) {
  .bl-archive {
    padding: 32px 0 56px;
  }

  .bl-archive__inner {
    padding: 0 16px;
  }

  .bl-archive__title {
    font-size: 22px !important;
  }

  .bl-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .bl-archive__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   個別記事ページ SP
========================================== */

/* SP */
@media (max-width: 768px) {
  .blog-page {
    padding: 24px 0 56px;
  }

  .blog-container {
    padding: 0 16px;
  }

  .blog-post {
    border-radius: 8px;
  }

  .blog-post__header {
    padding: 24px 20px 20px;
  }

  .blog-post__title {
    font-size: 20px;
  }

  .blog-post__content {
    padding: 24px 20px;
  }

  .blog-post__content h2 {
    font-size: 17px;
    padding: 8px 14px;
  }

  .blog-post__content h3 {
    font-size: 15px;
  }

  .blog-post__content p,
  .blog-post__content li {
    font-size: 14px;
  }

  .blog-post__content table {
    font-size: 13px;
  }

  .blog-post__content th,
  .blog-post__content td {
    padding: 8px 10px;
  }

  .blog-post__footer {
    padding: 24px 20px 36px;
  }

  .blog-post__nav {
    flex-direction: column;
    gap: 12px;
  }

  .blog-post__nav-link--next {
    text-align: left;
  }

  .blog-post__back-link {
    padding: 12px 28px;
    font-size: 13px;
  }
}
