/* ════════════════════════════════════════════════════
   ブログ絞り込みフィルター
   ════════════════════════════════════════════════════ */

/* ── 一覧ページ：ワイドコンテナ ── */
.blog-main--index {
  max-width: 1320px;
}

/* ── 一覧ページレイアウト（CSS Grid + named areas） ── */
.blog-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar hero"
    "sidebar articles";
  column-gap: 40px;
  align-items: start;
}

.blog-hero    { grid-area: hero; }
.blog-sidebar { grid-area: sidebar; position: sticky; top: 68px; align-self: start; }
.blog-content { grid-area: articles; }

/* ── サイドバー見出し ── */
.blog-sidebar-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-sidebar-heading::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── フィルターパネル ── */
.blog-filter-bar {
  margin: 0;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* セクション区切り線のため */
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  border-radius: 5px;
}

/* セクション（カテゴリ／タグ） */
.blog-filter-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 14px;
  border-bottom: 1.5px dashed var(--sand);
}
.blog-filter-row:last-of-type {
  border-bottom: none;
}

/* ラベル */
.blog-filter-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 7px;
  font-size: 11px;
  margin-bottom: 5px !important;
}

/* チップ群 */
.blog-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* チップ共通 */
.blog-fchip {
  font-size: 11px;
  font-family: inherit;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1.5px solid var(--sand);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  line-height: 1.6;
  white-space: nowrap;
}
.blog-fchip:hover {
  border-color: var(--ink);
  background: var(--paper);
}

/* カテゴリ：active = インク塗りつぶし */
.blog-fchip--cat.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* タグ：active = アクセント */
.blog-fchip--tag {
  font-size: 10px;
  padding: 5px 8px;
  flex: 1 1;
  letter-spacing: 0.1pt;
  font-weight: 500;
  color: var(--muted);
}
.blog-fchip--tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── タグ「もっと見る」ボタン ── */
.blog-tags-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .3px;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 4px 0 0;
  line-height: 1;
  text-decoration: none;
  transition: opacity .15s;
}
.blog-tags-toggle:hover { opacity: .7; }
.blog-tags-toggle-icon {
  font-style: normal;
  font-size: 11px;
}

/* ── レスポンシブ（860px以下） ── */
@media (max-width: 860px) {
  .blog-main--index { max-width: 1100px; }

  /* モバイルは縦積み、順序を hero → filter → articles に */
  .blog-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "hero"
      "sidebar"
      "articles";
    row-gap: 20px;
  }
  .blog-sidebar { position: static; width: 100%; }
  .blog-sidebar-heading { display: none; }
  .blog-filter-bar { border-width: 1.5px; }

  /* スマホのフィルター行は横並び */
  .blog-filter-row {
    flex-direction: row;
    align-items: flex-start;
    padding: 12px 14px;
  }
  .blog-filter-label {
    padding-top: 5px;
    min-width: 44px;
    white-space: nowrap;
  }
}

/* ステータスバー（フィルター中の件数表示） */
.blog-filter-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  font-size: 12px;
  color: var(--muted);
  margin:0 10px 10px;
  white-space: nowrap;
}
.blog-filter-reset {
  font-size: 11px;
  font-family: inherit;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-filter-reset:hover { opacity: .75; }

/* 結果ゼロ時 */
.blog-empty {
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
}
.blog-empty-icon { font-size: 32px; }
.blog-empty-msg  { font-size: 14px; color: var(--muted); }
.blog-empty-reset {
  font-size: 12px;
  font-family: inherit;
  padding: 6px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.blog-empty-reset:hover {
  background: var(--ink);
  color: var(--paper);
}

/* モバイル調整 */
@media (max-width: 600px) {
  .blog-filter-bar {
    padding: 16px;
    margin-bottom: 24px;
  }
  .blog-filter-row {
    flex-direction: column;
    gap: 8px;
  }
  .blog-filter-label {
    padding-top: 0;
  }
}

/* ── PR intro (左ボーダー付きブロック) ─────────────── */
.pr-intro {
  padding: 12px 16px;
  margin: 1.5em 0 2em;
  border-radius: 0 6px 6px 0;
}
.pr-intro--purple { border-left: 3px solid #7c3aed; background: #fff; }
.pr-intro--green  { border-left: 3px solid #10b981; background: #fff; }
.pr-intro--pink   { border-left: 3px solid #e1306c; background: #fff; }
.pr-intro--blue   { border-left: 3px solid #3b82f6; background: #fff; }
.pr-intro--dark   { border-left: 3px solid #010101; background: #fff; }
.pr-intro--twitter{ border-left: 3px solid #1da1f2; background: #fff; }

/* ── PR box (枠線付きブロック) ────────────────────── */
.pr-box {
  border-radius: 8px;
  padding: 20px;
  margin: 2em 0;
}
.pr-box--purple { border: 1px solid #ddd6fe; background: #fff; }
.pr-box--green  { border: 1px solid #bbf7d0; background: #fff; }
.pr-box--pink   { border: 1px solid #fce7f3; background: #fff; }
.pr-box--blue   { border: 1px solid #dbeafe; background: #fff; }
.pr-box--gray   { border: 1px solid #e5e7eb; background: #fff; }

/* ── PR 子要素 ───────────────────────────────────── */
.pr-label {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 6px;
}
.pr-label--lg     { margin-bottom: 10px; }

.pr-box-heading   { margin: 0 0 10px; font-weight: 600; }
.pr-box-heading--lg { margin: 0 0 12px; font-weight: 600; }
.pr-box-body      { margin: 0 0 14px; }
.pr-box-img       { text-align: center; margin: 0 0 12px; }
@media (max-width: 600px) {.pr-box-img img{width:100%;}}
.pr-box-cta       { text-align: center; margin: 0; }
.pr-last          { margin: 0; }

/* ── 記事内スクリーンショット ────────────────── */
.article-screenshot {
  display: block;
  max-width: 100%;
  margin: 16px auto 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.article-screenshot-caption {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 8px 0 24px;
}

/* ════════════════════════════════════════════════════
   ブログ一覧 ページネーション
   ════════════════════════════════════════════════════ */
.blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 32px 16px 8px;
}
.blog-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--sand);
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  line-height: 1;
}
.blog-page-btn:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--paper);
}
.blog-page-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  pointer-events: none;
}
.blog-page-btn:disabled {
  opacity: .3;
  cursor: default;
}
.blog-page-btn--prev,
.blog-page-btn--next {
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: .3px;
}
.blog-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  color: var(--muted);
  font-size: 13px;
  user-select: none;
}

/* Blog index renewal */
.blog-main--index {
  max-width: none;
  width: min(1120px, calc(100% - 40px));
  padding: 62px 0 100px;
}
.blog-main--index .blog-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.blog-main--index .blog-hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid #eee5dc;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 240, 238, .72) 0%, rgba(255, 255, 255, .95) 42%, rgba(255, 252, 246, .98) 100%);
  box-shadow: 0 14px 34px rgba(15, 14, 12, .06);
}
.blog-main--index .blog-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(200, 75, 47, .10);
  border-radius: 50%;
}
.blog-main--index .blog-hero-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0ee;
  color: #b00012;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.blog-main--index .blog-hero-title {
  max-width: 760px;
  margin: 0;
  color: #121212;
  font-family: var(--font-ja);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: left;
}
.blog-main--index .blog-hero-title span {
  color: inherit;
}
.blog-main--index .blog-hero-desc {
  max-width: 760px;
  margin: 18px 0 0;
  color: #5f5851;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}
.blog-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.blog-hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(200, 75, 47, .18);
  border-radius: 999px;
  background: #fff;
  color: #b00012;
  font-size: 12px;
  font-weight: 800;
}
.blog-main--index .blog-sidebar {
  top: 86px;
}
.blog-main--index .blog-sidebar-heading {
  color: #e51b0f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}
.blog-main--index .blog-sidebar-heading::before {
  background: #e51b0f;
}
.blog-main--index .blog-filter-bar {
  border: 1px solid #eee5dc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 14, 12, .05);
}
.blog-main--index .blog-filter-row {
  padding: 18px 16px;
  border-bottom: 1px solid #eee5dc;
}
.blog-main--index .blog-filter-label {
  color: #6e6760;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}
.blog-main--index .blog-fchip {
  border: 1px solid #eee5dc;
  border-radius: 999px;
  background: #fffdf9;
  color: #5f5851;
  font-weight: 700;
  letter-spacing: 0;
}
.blog-main--index .blog-fchip:hover {
  border-color: rgba(229, 27, 15, .26);
  background: #fff0ee;
  color: #b00012;
}
.blog-main--index .blog-fchip--cat.active,
.blog-main--index .blog-fchip--tag.active {
  border-color: #e51b0f;
  background: #e51b0f;
  color: #fff;
}
.blog-main--index .blog-tags-toggle,
.blog-main--index .blog-filter-reset {
  color: #b00012;
  font-weight: 800;
}
.blog-main--index .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.blog-main--index .article-card {
  min-height: 100%;
  border: 1px solid #eee5dc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 14, 12, .07);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.blog-main--index .article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 27, 15, .26);
  background: #fff;
  box-shadow: 0 18px 42px rgba(176, 0, 18, .12);
}
.blog-main--index .article-card-header {
  padding: 22px;
  border-bottom: 1px solid #f0e7de;
}
.blog-main--index .article-card-meta {
  align-items: center;
  gap: 8px;
}
.blog-main--index .article-cat {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff0ee;
  color: #b00012;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}
.blog-main--index .article-card-new-badge {
  padding: 4px 8px;
  background: #e51b0f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}
.blog-main--index .article-date,
.blog-main--index .article-read-time {
  color: #756d66;
  font-size: 9px;
  font-weight: 700;
}
.blog-main--index .article-card-title {
  min-height: 74px;
  margin-top: 14px;
  color: #121212;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;
}
.blog-main--index .article-card-excerpt {
  display: -webkit-box;
  margin-top: 10px;
  color: #5f5851;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-main--index .article-card-footer {
  padding: 14px 22px;
}
.blog-main--index .article-tag {
  border-color: #eee5dc;
  color: #756d66;
  background: #fffdf9;
  font-weight: 700;
  letter-spacing: 0;
}
.blog-main--index .article-card-arrow {
  color: #b00012;
  font-weight: 900;
}
.blog-main--index .blog-page-btn {
  border: 1px solid #eee5dc;
  border-radius: 999px;
  background: #fff;
  color: #5f5851;
  font-weight: 800;
}
.blog-main--index .blog-page-btn:hover:not(:disabled) {
  border-color: rgba(229, 27, 15, .26);
  background: #fff0ee;
  color: #b00012;
}
.blog-main--index .blog-page-btn.active {
  border-color: #e51b0f;
  background: #e51b0f;
  color: #fff;
}
@media (max-width: 1040px) {
  .blog-main--index .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .blog-main--index {
    width: min(100% - 28px, 1120px);
    padding-top: 38px;
  }
  .blog-main--index .blog-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .blog-main--index .blog-hero {
    padding: 30px 22px;
  }
  .blog-main--index .blog-sidebar {
    position: static;
  }
  .blog-main--index .blog-filter-row {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .blog-main--index .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-main--index .article-card-title {
    min-height: auto;
  }
}
