@charset "UTF-8";
/*
 * blog.css — WordPress（/cms/）ブログ専用スタイル
 * ヘッダー・フッター・サイト共通の見た目は静的側 /css/（style.css / common.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 — 投稿日・カテゴリ メタ行
   sub-php.html の section 内に配置。sub.css の section 余白を継承。
===================================================== */
.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.blog-meta time {
  font-size: 1.3rem;
  color: var(--blog-text-muted);
  letter-spacing: 0.05em;
}

.blog-cat-label {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.35em 1.1em;
  border-radius: 50px;
  background: var(--blog-primary);
  color: #fff!important;
  text-decoration: none;
  transition: opacity 0.2s;
}

.blog-cat-label:hover {
  opacity: 0.75;
}

/* =====================================================
   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;
}

h1.no-section {
  text-align: left!important;
  max-width: 1100px;
  font-size: 6rem;
  font-weight: 700;
  margin-inline: auto;
}
h1.no-section:after{
  background-image: none!important;
}
@media all and (max-width: 896px){
  h1.no-section {
      font-size: 2rem!important;
      padding-inline: 2.5rem!important;
  }
}

/* =====================================================
   Layout Utilities
===================================================== */
.inner_1200 {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 4rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .inner_1200 {
    padding-inline: 2rem;
  }
}

/* =====================================================
   Blog Page Header — .h_style (strong / small pattern)
===================================================== */
.h_style {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.h_style strong {
  display: block;
  font-family: "Oswald", "EB Garamond", sans-serif;
  font-size: clamp(3.5rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blog-primary);
  line-height: 1.1;
}

.h_style small {
  display: block;
  font-size: clamp(1.3rem, 1.5vw, 1.6rem);
  font-weight: 400;
  color: var(--blog-text-muted);
  letter-spacing: 0.15em;
  font-family: "Noto Sans JP", sans-serif;
}


/* =====================================================
   Blog Main — background fallback (画像がない環境用)
===================================================== */
.blog-main {
  background-image: none;
  background-color: rgba(45, 98, 151, 0.07);
}