/* ブログメイン */
.blog-main {
  font-weight: 500;
  font-family: "Zen Kaku Gothic New";
  letter-spacing: 2.5px;
  line-height: 48px;
  font-size: 18px;
  width: calc(100% - 322px);
}

/* タイトル */
.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 {
  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;
  line-height: 48px;
}
.blog-body p {
  font-size: 20px;
  font-weight: 500;
  line-height: 48px;
}

.more-label {
  padding-right: 10px;
}

.shop-search-box {
  margin-bottom: 100px;
}

/* アイキャッチ */
.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;
}

/* ❶ 全体レイアウト幅 & 余白 --------------------------------------------- */
.l-inner {
  /* すでに使っているユーティリティ */
  max-width: 1060px; /* Figma 幅（カード6列基準） */
  margin: 0 auto;
}

/* ❸ タイトル下の罫線＆余白 --------------------------------------------- */
.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;
  margin: 0 13%;

  @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;
  max-width: 1328px;
  gap: 3rem;
  align-items: flex-start;
  width: 74%;
}
.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;
  margin-right: 30px;
}

.more-news-button {
  margin-top: 40px;
  margin-bottom: 80px;
  display: inline-flex;
  align-items: center;
  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;
  text-align: center;
  justify-content: center;
}
/* 
.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;
}

.search-box button {
    position: absolute;
    right: -50px;
    top: 0;
    width: 36px;
    height: 36px;
    background: #3d0000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.search-box input[type="search"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #b32223;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.search .search-box {
    position: relative;
    margin-bottom: 32px;
    width: 182px;
} */

.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 #b32223;
  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-top: 1px dashed #b32223;
  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;
}

@media screen and (max-width: 768px) {
  .blog-h1 {
    display: inline-block; /* ← テキスト幅に合わせる */
    font-size: 20px;
    line-height: 30px;
    font-weight: 700;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #b32223;
    border-image: repeating-linear-gradient(
        to right,
        #b32223 0,
        #b32223 6px,
        transparent 6px,
        transparent 12px
      )
      100% 1;
  }
  .blog-hero {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .blog-date {
    font-weight: 500;
    font-size: 16px;
  }
  .blog-hero img {
    /* padding: 0 20px; */
  }
  .blog-single {
    max-width: 100%;
    min-width: 50%;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .blog-main {
    max-width: 100%;
    letter-spacing: 1px;
    width: 100%;
  }
  .sujest-wrap {
    display: flex;
    flex-direction: column; /* 縦並び */
    align-items: center; /* 横中央寄せ */
    justify-content: center; /* 中央揃えを維持 */
    padding: 0 20px;
  }
  .blog-meta {
    margin-bottom: 0;
    padding-bottom: 0;
    line-height: 20px;
    padding: 0 20px;
  }
  .blog-intro {
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;
    padding: 0 20px;
  }
  .blog-toc {
    summary {
      font-size: 20px;
      font-weight: 500;
    }
  }
  .blog-cat-tag {
    font-size: 14px;
  }
  .blog-toc {
    margin: 24px 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .blog-toc {
    & ol {
      li {
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0px;
      }
    }
  }
  .blog-body h3,
  .blog-body h4,
  .blog-side,
  .blog-body p,
  .wp-block-heading {
    margin-left: 20px;
    margin-right: 20px;
  }
  .blog-body h2 {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
  }
  .blog-body p {
    font-size: 16px;
    font-weight: 700;
    line-height: 32px;
    margin-top: 0;
    margin-bottom: 24px;
  }
  .blog-body h3 {
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 0;
    margin-top: 25px;
    margin-bottom: 8px;
  }
  .blog-body h1 {
    font-size: 20px;
    font-weight: 700;
  }
  .blog-body h4 {
    font-size: 16px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0;
  }
  .blog-side {
    display: none;
  }
  .banner-button-wrap {
    margin: 0;
    width: 100%;
    margin-bottom: 16px;
  }
  .more-news-button {
    margin: 8px auto;
    gap: 0;
    width: 90%;
    max-width: 300px;
  }
  .more-label {
    letter-spacing: 3px;
    padding-left: 14%;
  }
  .shop-search-box {
    margin-bottom: 60px;
  }
}
