.blog-list {
  width: 100%;
  margin-left: 20px;
}
.header-section {
  /* max-width: 1024px;
  margin: 0 auto; */
  margin-left: 13%;
  margin-right: 13%;
}
.blog-wrapper {
  /* max-width: 1024px;
  margin: 0 auto; */
  margin-left: 13%;
  margin-right: 13%;
  display: flex;
  margin-bottom: 100px;
}

/* ブログメイン */
.blog-main {
  font-weight: 500;
  font-family: "Zen Kaku Gothic New";
  letter-spacing: 2.5px;
  line-height: 48px;
  font-size: 18px;
}

/* タイトル */
.blog-h1 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 500;
  line-height: 48px;
  margin: 1.6rem 0 1rem;
  color: #b32223;

  font-size: 32px;
  letter-spacing: 2.5px;
}

/* メタ情報 */
/* .blog-meta {
    color:#666;
    margin-bottom:1rem;
    display:flex;
    gap:8rem;
    flex-wrap:wrap;
    width: 120px;
    height: 28px;
    .blog-cat-tag {
        background:#F5F5F5;
        border: 1px solid #B32223;
        color:#a41010;
        
        border-radius:23px;
        text-decoration: none;
    }
} */
/* メタ情報 --------------------------------------------------- */
.blog-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;

  /* 横並び or 縦並びはここで調整 */
  display: flex;
  align-items: center; /* ←横並びで中央揃え */
  gap: 0.8rem; /* 余白は 0.8rem くらい */
}

/* カテゴリータグ --------------------------------------------- */
.blog-cat-tag {
  display: inline-block;
  padding: 0.25rem 1rem; /* ← pill の内側余白 */
  background: #f5f5f5;
  border: 1px solid #b32223; /* 枠線色 */
  border-radius: 9999px; /* 完全な pill 形状 */
  color: #b32223; /* 文字色もブランドカラー */
  font-size: 16px;
  line-height: 1.1;
  text-decoration: none;
  transition: 0.2s;
}
.blog-cat-tag:hover {
  background: #b32223; /* hover で反転 */
  color: #fff;
}
.blog-intro {
  font-size: 20px;
  font-weight: 500;
}
.blog-body p {
  font-size: 20px;
  font-weight: 500;
}

/* アイキャッチ */
.blog-hero {
  margin: 1.5rem 0 2rem;
  img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* 目次 */
.blog-toc {
  background: #fefbec;
  padding: 1.2rem 3rem;
  border-radius: 4px;
  margin-bottom: 4rem;
  margin-top: 2rem;
  position: relative; /* ← summary 内の ::after を基準にする */

  summary {
    font-weight: 500;
    font-size: 24px;
    cursor: pointer;
    list-style: none; /* “▶︎” マーカーを消す */

    &::marker {
      content: "";
    }

    /* ▼ アイコン  （open 時は ▲ に回転）*/
    &::after {
      content: "";
      position: absolute;
      top: 40px;
      right: 30px;
      width: 18px; /* サイズはお好みで */
      height: 18px;
      border-right: 2px solid #000;
      border-bottom: 2px solid #000;
      transform: rotate(45deg); /* ▼ */
      transition: transform 0.2s;
    }
  }

  /* details が閉じている時は ▲ に回転 */
  &:not([open]) summary::after {
    transform: rotate(-135deg); /* ▲ */
  }
  ol {
    list-style: none; /* ブラウザが付ける数字を消す */
    padding-left: 0; /* インデントも不要なら 0 */
    li {
      font-size: 18px;
      font-weight: 500;
      letter-spacing: 0px;
      a {
        text-decoration: none;
        color: #333;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}

.blog-date {
  color: #b32223;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 20px;
}

/* シェアボタン */
.blog-share {
  margin: 3rem 0 2rem;
  .c-btn {
    background: #a41010;
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    &:hover {
      opacity: 0.8;
    }
  }
}

/* ❶ 全体レイアウト幅 & 余白 --------------------------------------------- */
.l-inner {
  /* すでに使っているユーティリティ */
  /* max-width: 1024px; /* Figma 幅（カード6列基準） */
  /* margin: 0 auto; */
  margin-left: 13%;
  margin-right: 13%;
}

/* ❸ タイトル下の罫線＆余白 --------------------------------------------- */
.blog-h1 {
  border-bottom: 2px dashed #b32223;
  padding-bottom: 0.6rem;
}

/* ❹ メタ（日時＋タグ）のボーダー --------------------------------------- */
.blog-meta {
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

/* ❺ アイキャッチを Figma と同じ比率で中央寄せ -------------------------- */
.blog-hero {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: center;
}
.blog-hero img {
  width: 100%;
  border-radius: 1px;
}

/* ❻ h2 見出しの装飾（下線タイプへ統一） ------------------------------- */
.blog-body h2 {
  /* レイアウト */
  display: block; /* 幅いっぱいに広げる */
  margin: 3rem 0 2rem; /* 前後余白 */
  padding: 14px 20px; /* 56px 高さ = 14px×2 + line-height */
  line-height: 1; /* Figma は 56÷28=2 ではなく 1 行詰め */

  /* 背景グラデーション */
  background: linear-gradient(90deg, #b32223 0%, #e06364 100%);
  color: #fff; /* 文字を白に */
  font-size: 24px;
  font-weight: 500;

  border: none; /* 旧下線をオフ */
  border-radius: 0; /* 角丸不要なら 0 */
}

/* ❼ h3 見出し – 赤文字＋破線 ----------------------------------- */
.blog-body h3 {
  font-weight: 700;
  color: #b32223; /* ブランドレッド */

  margin: 2.4rem 0 1.4rem; /* 上:セクション間隔 / 下:破線との余白 */
  padding-bottom: 0.6rem; /* 破線から見出し文字までの距離 */

  background: none; /* 旧タブ背景をリセット */
  border: none; /* 旧ボーダーを消す */
  font-size: 24px;
  line-height: 42px;
  border-bottom: 2px dashed #b32223; /* 破線ボーダー */
  letter-spacing: 0px;
}

/* ❽ h4 は黒太字のみでシンプルに -------------------------------------- */
.blog-body h4 {
  color: #b32223; /* ブランドレッド */
  font-size: 20px;
  line-height: 42px;
  letter-spacing: 0px;
  margin: 1.6rem 0 0.6rem;
  font-weight: 500;

  &::before {
    display: none;
  }
}

/* サイドバー */
.blog-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  column-gap: 3rem;
  align-items: start;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.blog-side {
  position: sticky;
  top: 2rem; /* ヘッダー高さに合わせて調整 */
  align-self: start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-right: 0.5rem;

  .side-head {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1.6rem 0 0.6rem;
    position: relative;
  }

  .side-cats li,
  .side-archives li {
    margin: 0.3rem 0;
  }

  .search-box {
    display: flex;
    gap: 0.4rem;
    input {
      flex: 1;
      padding: 0.4rem 0.5rem;
    }
    button {
      background: #a41010;
      color: #fff;
      padding: 0.45rem 0.8rem;
    }
  }
}

.blog-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px; /* 本文 / サイド */
  column-gap: 3rem;
  align-items: start;

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.blog-side {
  position: sticky;
  top: 2rem;
  align-self: start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-right: 0.5rem;

  .side-head {
    font-weight: 700;
    margin: 1.4rem 0 0.5rem;
  }

  .side-cats li {
    margin: 0.3rem 0;
    display: contents;
  }
  .side-archives li {
    margin: 0.3rem 0;
  }

  .search-box {
    display: flex;
    gap: 0.4rem;
    input {
      flex: 1;
      padding: 0.4rem 0.5rem;
    }
    button {
      background: #a41010;
      color: #fff;
      padding: 0.45rem 0.8rem;
    }
  }
}

.blog-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px; /* 本文 / サイド */
  column-gap: 3rem;
  align-items: start;
  row-gap: 3rem; /* SP 時も余白を残す */

  @media (max-width: 767px) {
    grid-template-columns: 1fr; /* モバイルは 1 カラム */
  }
}

/* ←★ これを追加 ★→ サイドバーを 2 列目に固定 */
.blog-side {
  grid-column: 2;
  position: sticky;
  top: 2rem;
  align-self: start;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}
.sidebar-blog {
  grid-column: 2; /* 以下同じ */
}

.blog-single {
  display: flex;
  min-width: 1328px;
  gap: 3rem;
  align-items: flex-start;
}
.blog-side {
  width: 260px;
  flex-shrink: 0;
}
.blog-body {
  flex: 1 1 0%;
}
@media (max-width: 767px) {
  .blog-single {
    flex-direction: column;
  }
}

.banner-button-wrap {
  text-align: center;
}

.more-news-button {
  margin-top: 40px;
  margin-bottom: 80px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(to right, #b32223, #e06364);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
  padding: 6px;
}

.sujest-wrap {
  display: flex;
}

.search-form .search-field {
  position: relative;
  margin-bottom: 32px;
  width: 182px;
}
.search-form input[type="search"] {
  padding: 20px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #5c1816;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  height: 50px;
  font-family: "Zen Kaku Gothic New";
}

.search-form button {
  position: absolute;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 10px;
}

.icon-search {
  display: block;
  width: 12px;
  height: 12px;
  margin: 12px auto;
  background: url("data:image/svg+xml,%3Csvg fill='white' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M505 442.7l-99.7-99.7c28.1-34.9 45-79 45-127.3 0-114.9-93.1-208-208-208S35 101 35 215.7 128.1 423.7 243 423.7c48.3 0 92.4-16.9 127.3-45l99.7 99.7c3.7 3.7 8.5 5.5 13.3 5.5s9.6-1.8 13.3-5.5c7.5-7.5 7.5-19.8 0-27.3zM243 383.7c-92.5 0-168-75.5-168-168S150.5 47.7 243 47.7s168 75.5 168 168-75.5 168-168 168z'/%3E%3C/svg%3E")
    no-repeat center/12px;
}

.blog-side {
  flex: 0 0 250px;
  background: #fdf9f9;
  padding: 24px 20px;
}
.blog-side__head {
  font-size: 15px;
  font-weight: 700;
  margin: 30px 0 12px;
  position: relative;
  color: #5c1816;
  letter-spacing: 3px;
}
.blog-side__head::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  border-bottom: 1px dashed #b32223;
  border-image: repeating-linear-gradient(
      to right,
      #b32223 0,
      #b32223 8px,
      transparent 8px,
      transparent 16px
    )
    100% 1;
  margin-top: 12px;
}
.blog-side h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* アーカイブ・カテゴリー ─ 箇条書きマーカーを消す */
.side-archives,
.side-cats {
  padding-left: 0; /* 左インデントをリセット（任意） */
}

.side-archives li,
.side-cats li {
  list-style: none; /* ポチ・数字を非表示に */
  margin: 0.4rem 0; /* 行間はお好みで */
}

.side-archives li a {
  text-decoration: none;
  color: #b32223;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 2px;
  font-size: 20px !important;
}
.side-cats li a {
  text-decoration: none;
  color: #b32223;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 2px;
  font-size: 16px !important;
  margin-bottom: 10px;
}

.side-category {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ←2列固定 */
  gap: 40px 40px;
}

.blog-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  padding: 10px;
}

/* .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
} */

.blog-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin: 10px 0;
  color: #b32223;
  padding: 5px 5px 10px;
  border-bottom: 1px dashed #b32223;
  border-image: repeating-linear-gradient(
      to right,
      #b32223 0,
      #b32223 8px,
      transparent 8px,
      transparent 16px
    )
    100% 1;
}

.blog-card__date {
  color: #b32223;
  font-weight: 700;
  font-size: 20px;
  margin-right: 10px;
  text-decoration: none;
  font-family: "Zen Kaku Gothic New";
  letter-spacing: 1px;
}

.blog-card__category {
  display: inline-block;
  padding: 0 16px;
  margin-top: 1px;
  border: 1px solid #b32223;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 500;
  background-color: #f5f5f5;
  color: #b32223;
  text-decoration: none;
  letter-spacing: 2px;
  font-family: "Zen Kaku Gothic New";
}

.blog-card__title {
  font-size: 20px;
  font-weight: 700;
  margin: 5px 0 15px;
  color: #1a1a1a;
  line-height: 1.4;
  font-family: "Zen Kaku Gothic New";
  letter-spacing: 2px;
}

.blog-more {
  text-align: center;
  margin-top: 50px;
}

.blog-more__btn {
  display: inline-block;
  background-color: #b32223;
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s ease;
}
/* 
.blog-more__btn:hover {
  background-color: #922020;
} */

.more-label {
  margin-right: 10px;
}
.more-news-button {
  gap: 0;
}

.blog-card__link {
  text-decoration: none; /* ← アンダーライン消す */
  color: inherit; /* 親の文字色を継承 */
  display: block;
}

.coming-soon-message {
  text-align: center;
  font-size: 24px;
}

@media screen and (max-width: 768px) {
  .blog-wrapper {
    display: block;
    margin: 0;
    padding: 0 20px 60px;
  }
  .header-section {
    margin: 0;
    padding: 0 20px;
  }

  .blog-side {
    position: relative;
    width: 100%;
    padding: 0;
    margin-bottom: 57px;
  }
  .section-subtitle {
    font-size: 20px;
    font-weight: 500;
  }
  .section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0;
  }
  .blog-list {
    margin: 0;
  }
  .blog-grid {
    display: block !important;
  }
  .blog-card {
    margin-bottom: 20px;
    padding: 7px;
  }
  .blog-card__meta,
  .blog-card__title {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
  .blog-card__title {
    margin-bottom: 10px;
    font-size: 16px;
    letter-spacing: 1px;
  }
  .blog-card__meta {
    padding-left: 0;
  }
  .blog-card__date {
    font-size: 16px;
    font-weight: 700;
  }
  .blog-card__category {
    font-size: 14px;
    font-weight: 500;
  }
  .card__title {
    font-size: 16px;
    font-weight: 500;
  }
  .banner-button-wrap {
    margin-top: 0;
  }
  .more-news-button {
    margin: 0 0 40px;
  }
  .blog-search,
  .blog-cat,
  .blog-archive {
    padding: 0 20px;
  }
  .search-form .search-field {
    width: 85%;
  }
  .repair-side,
  .blog-side {
    max-height: 300px;
    width: 80%;
    margin: auto;
    margin-bottom: 80px;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.25);
    border-radius: 12px;
  }
}

/* ページネーション */
.pagination-wrapper {
  margin: 40px 0 60px;
  text-align: center;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}

.pagination-wrapper .page-numbers li {
  list-style: none;
  display: flex;
  align-items: center;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  font-weight: 500;
  border: 1px solid #d0d0d0;
}

.pagination-wrapper .page-numbers a:hover {
  background-color: #d0d0d0;
  text-decoration: none;
}

.pagination-wrapper .page-numbers .current,
.pagination-wrapper .page-numbers span.current,
.pagination-wrapper .page-numbers li .current,
.pagination-wrapper .page-numbers span[aria-current="page"] {
  background-color: #b32223 !important;
  color: #fff !important;
  font-weight: bold;
}
