@charset "UTF-8";
/*
 * blog.css — 大宮ライズデンタルクリニック ブログ専用スタイル
 * 共通デザイン（フォント・色・ヘッダー・フッター）は /assets/css/ で管理
 */

/* =====================================================
   Variables
===================================================== */
:root {
  --blog-primary:    #254a65;
  --blog-text:       #3a3a3a;
  --blog-text-muted: #999;
  --blog-bg:         #f8f5f0;
  --blog-border:     #e2ddd7;
  --blog-white:      #fff;
  --blog-radius:     10px;
  --blog-radius-lg:  16px;
  --blog-shadow:     0 2px 14px rgba(0, 0, 0, 0.07);
  --blog-shadow-lg:  0 6px 28px rgba(0, 0, 0, 0.11);
}

/* =====================================================
   Blog Main Wrapper
===================================================== */
.blog-main {
  padding-top: 100px;
  padding-bottom: 100px;
  background-image: url(/assets/images/fea_bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  background-attachment: fixed;
  background-color: rgba(255, 255, 255, 0.55);
  background-blend-mode: overlay;
  min-height: 70vh;
}

@media (max-width: 768px) {
  .blog-main {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

/* =====================================================
   Page Header
===================================================== */
.blog-page-header {
  text-align: center;
  padding: 50px 0 40px;
}

/* =====================================================
   Category Filter Tabs
===================================================== */
.blog-cat-filter {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 50px;
}

.blog-cat-btn {
  display: block;
  padding: 0.45em 1em;
  border: 1px solid var(--blog-primary);
  border-radius: 50px;
  color: var(--blog-primary);
  font-size: 1.4rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.22s, color 0.22s;
  line-height: 1.6;
}

.blog-cat-btn:hover,
.blog-cat-btn.is-active {
  background-color: var(--blog-primary);
  color: var(--blog-white);
  opacity: 1;
}

@media (max-width: 768px) {
  .blog-cat-filter {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .blog-cat-filter {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-cat-btn {
    font-size: 1.25rem;
    padding: 0.4em 0.8em;
  }
}

/* =====================================================
   Article Card Grid
===================================================== */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 60px;
}

@media (max-width: 1024px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
  }
}

@media (max-width: 525px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }
}

/* =====================================================
   Article Card
===================================================== */
.blog-card {
  display: flex;
}

.blog-card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: var(--blog-white);
  border-radius: var(--blog-radius-lg);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--blog-shadow-lg);
  opacity: 1;
}

/* Thumbnail */
.blog-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e8edf0;
  flex-shrink: 0;
}

.blog-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card a:hover .blog-card__thumb img {
  transform: scale(1.06);
}

.blog-card__thumb--noimage {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8edf0 0%, #d4dde4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__thumb--noimage::after {
  content: "";
  display: block;
  width: 35%;
  aspect-ratio: 1;
  background-color: #b0bec8;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

/* Body */
.blog-card__body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.blog-card__date {
  font-size: 1.2rem;
  color: var(--blog-text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.blog-card__cat {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.3em 0.9em;
  border-radius: 50px;
  background-color: var(--blog-primary);
  color: var(--blog-white);
  white-space: nowrap;
}

.blog-card__title {
  font-size: 1.45rem;
  line-height: 1.65;
  color: var(--blog-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

@media (max-width: 525px) {
  .blog-card__body   { padding: 1.2rem; }
  .blog-card__title  { font-size: 1.25rem; }
  .blog-card__date   { font-size: 1.05rem; }
  .blog-card__cat    { font-size: 1.0rem; }
}

/* =====================================================
   Pagination
===================================================== */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 20px;
}

.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 0.5em;
  border: 1px solid var(--blog-primary);
  border-radius: 50px;
  font-size: 1.4rem;
  color: var(--blog-primary);
  text-decoration: none;
  transition: background 0.22s, color 0.22s;
  line-height: 1;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--blog-primary);
  color: var(--blog-white);
  opacity: 1;
}

.blog-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: var(--blog-text-muted);
}

/* =====================================================
   Empty State
===================================================== */
.blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--blog-text-muted);
  font-size: 1.6rem;
}

/* =====================================================
   Bottom CTA Wrap
===================================================== */
.blog-btn-wrap {
  text-align: center;
  margin-top: 50px;
}

/* =====================================================
   Single Post — Wrapper
===================================================== */

/* =====================================================
   Single — Article Section
===================================================== */
.blog-article-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 8rem;
}

@media all and (max-width: 896px) {
  .blog-article-section {
    padding: 3rem 2rem 6rem;
  }
}

/* =====================================================
   Single — Meta / Title / Thumb
===================================================== */
section#blog-article-meta {
  padding-block: 60px 40px;
}
@media screen and (max-width: 896px) {
  section#blog-article-meta {
    padding-block: 30px 0;
    margin-bottom: -30px;
  }
}

.blog-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.blog-single-date {
  font-size: 1.35rem;
  color: var(--blog-text-muted);
  letter-spacing: 0.04em;
}

.blog-single-cat {
  display: inline-block;
  width: fit-content;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35em 1.1em;
  border-radius: 50px;
  background: var(--blog-primary);
  color: var(--blog-white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.blog-single-cat:hover { opacity: 0.8; }

.blog-single-title {
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-family: "Noto Serif JP", "FOT-筑紫Aオールド明朝 Pr6 L", serif;
  font-weight: 500;
  line-height: 1.65;
  color: var(--blog-text);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

/* Thumbnail */
.blog-single-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--blog-radius-lg);
  margin-bottom: 5rem;
  background: #e8edf0;
}

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

/* =====================================================
   Single — Article Content (WP Editor)
===================================================== */
.blog-single-content {
  background: var(--blog-white);
  border-radius: var(--blog-radius-lg);
  padding: 4rem 4.5rem;
  box-shadow: var(--blog-shadow);
}

@media (max-width: 768px) {
  .blog-single-content {
    padding: 2.5rem 2rem;
  }
}

.blog-single-content > *:first-child { margin-top: 0 !important; }
.blog-single-content > *:last-child  { margin-bottom: 0 !important; }

.blog-single-content h2 {
  font-size: 2rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  line-height: 1.55;
  margin: 3.5rem 0 1.5rem;
  padding: 0.7em 1em;
  background: var(--blog-bg);
  border-left: 4px solid var(--blog-primary);
  border-radius: 0 6px 6px 0;
  color: var(--blog-primary);
}

.blog-single-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.6em;
  border-bottom: 2px solid var(--blog-border);
  color: var(--blog-text);
}

.blog-single-content h4 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 2.5rem 0 1rem;
  color: var(--blog-primary);
}

.blog-single-content p {
  font-size: 1.6rem;
  line-height: 1.95;
  margin-bottom: 1.8rem;
  color: var(--blog-text);
}

.blog-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 2.5rem auto;
}

.blog-single-content a {
  color: var(--blog-primary);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.blog-single-content a:hover { opacity: 0.7; }

.blog-single-content ul,
.blog-single-content ol {
  margin: 0 0 1.8rem;
  padding-left: 2em;
}

.blog-single-content ul { list-style: disc; }
.blog-single-content ol { list-style: decimal; }

.blog-single-content li {
  font-size: 1.6rem;
  line-height: 1.85;
  margin-bottom: 0.5rem;
  color: var(--blog-text);
}

.blog-single-content blockquote {
  background: var(--blog-bg);
  border-left: 4px solid var(--blog-primary);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.55rem;
  color: #666;
}

.blog-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.5rem;
}

.blog-single-content th,
.blog-single-content td {
  padding: 0.8em 1em;
  border: 1px solid var(--blog-border);
  line-height: 1.6;
}

.blog-single-content th {
  background: var(--blog-bg);
  font-weight: 700;
  color: var(--blog-text);
}

/* =====================================================
   Single — Related (Recommend)
===================================================== */
.blog-recommend {
  margin-top: 3rem;
  background: var(--blog-white);
  border-radius: var(--blog-radius-lg);
  padding: 2.5rem 3rem;
  box-shadow: var(--blog-shadow);
}

.blog-recommend__title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blog-primary);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--blog-primary);
}

.blog-recommend__link {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--blog-border);
  color: var(--blog-text);
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.2s, padding-left 0.2s;
}

.blog-recommend__link:last-child { border-bottom: none; }

.blog-recommend__link:hover {
  color: var(--blog-primary);
  padding-left: 0.5em;
  opacity: 1;
}

.blog-recommend__link::before {
  content: "›";
  color: var(--blog-primary);
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

/* =====================================================
   Single — Prev / Next Navigation
===================================================== */
.blog-post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--blog-border);
}

.blog-post-nav__empty {
  display: none;
}

.blog-post-nav .c-button02::after {
  content: none;
}

/* =====================================================
   Single — Back Button
===================================================== */
.blog-back-btn {
  text-align: center;
  margin-top: 4rem;
}

/* =====================================================
   404 Page
===================================================== */
.blog-404 {
  text-align: center;
  padding: 80px 0 60px;
}

.blog-404__num {
  font-size: clamp(6rem, 12vw, 12rem);
  font-family: "filmotype-lacrosse", sans-serif;
  color: var(--blog-primary);
  opacity: 0.18;
  line-height: 1;
  letter-spacing: 0.05em;
  margin-bottom: -0.15em;
}

.blog-404__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  color: var(--blog-text);
  margin-bottom: 1.5rem;
}

.blog-404__text {
  font-size: 1.6rem;
  color: var(--blog-text-muted);
  margin-bottom: 4rem;
  line-height: 1.8;
}

.blog-404__cats {
  background: var(--blog-white);
  border-radius: var(--blog-radius-lg);
  padding: 3rem;
  box-shadow: var(--blog-shadow);
  max-width: 500px;
  margin: 0 auto 4rem;
  text-align: left;
}

.blog-404__cats-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blog-primary);
  border-bottom: 2px solid var(--blog-primary);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.blog-404__cats ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-404__cats li {
  font-size: 1.45rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--blog-border);
}

.blog-404__cats li:last-child { border-bottom: none; }

.blog-404__cats a {
  color: var(--blog-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5em;
  transition: color 0.2s;
}

.blog-404__cats a::before {
  content: "›";
  color: var(--blog-primary);
  font-size: 1.6rem;
}

.blog-404__cats a:hover {
  color: var(--blog-primary);
  opacity: 1;
}
