/* ===============================================
# 紹介ページ：お問い合わせボタン
=============================================== */
.br-cta {
  display: flex;
  justify-content: center;
  margin: 48px 0 16px;
}

/* 見た目は共通ボタン .c-btn.c-btn--primary（style.css）。ここでは幅だけ */
.br-cta__btn {
  width: 100%;
  max-width: 300px;
}

/* 注記（※） */
.br-note {
  margin: 0 0 16px;
  color: #666;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

/* ===============================================
# 区分ラベル（新ブランド／リニューアル）：一覧カード・記事見出し・他のブランドリリース
=============================================== */
.br-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: #fff;
  background: #f64c0a;
}

.br-label.is-renewal {
  background: #2a7ab0;
}

/* 販売形態（記事見出しの区分ラベルの横） */
.br-sales {
  display: inline-block;
  margin: 0 0 8px 10px;
  color: #666;
  font-size: 12px;
  vertical-align: middle;
}

/* リリース時の名称（本文の末尾） */
.br-formername {
  margin: 8px 0 16px;
  color: #666;
  font-size: 13px;
}

/* ===============================================
# 記事：同じジャンルのブランド（3件）
=============================================== */
.br-related {
  margin: 64px 0 0;
}

:where(.post-block) .br-related__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
}

.br-related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.post-block) .br-related__link,
:where(.post-block) .br-related__link:visited {
  display: block;
  color: #333;
  text-decoration: none;
  transition: opacity .3s ease;
}

.br-related__link:hover {
  opacity: .7;
}

/* 写真のすぐ下に説明文が続くとき（ブランド紹介の「注目のメニュー」など）：写真と文字の間をあける
   style.css の .post-readtext は PC で padding-top が 0 のため */
.post-paragraph + .post-readtext {
  padding-top: 16px;
}

/* 縮小版の画像（<picture>）：picture 自体は箱を作らず、中の img に今までの指定が効くようにする */
.post-img picture,
.br-related__img picture,
.p-boxlink__img picture {
  display: contents;
}

.post-img picture > source,
.br-related__img picture > source,
.p-boxlink__img picture > source {
  display: none;
}

/* ブランド名（紹介ページの h1・/brand-release/ のカード）：単語の途中で折り返さない
   （build.js が【】「」（）の前後とスペースに <wbr> を入れている）。はみ出すときだけどこでも折り返す */
.post-header__h1,
.br-list .p-boxlink__text {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@supports (word-break: auto-phrase) {
  .post-header__h1,
  .br-list .p-boxlink__text {
    word-break: auto-phrase;
  }
}

.br-related__img {
  display: block;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #eee;
}

:where(.post-block) .br-related__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.br-related__body {
  display: block;
  padding-top: 12px;
}

.br-related__text {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.br-related__date {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 13px;
}

/* ===============================================
# 記事末の回遊導線（ブランド紹介・資料DL）
=============================================== */
/* 背景の帯なし（/brand-release/ の一覧の下） */
.br-more.is-plain {
  padding: 0;
  background: none;
}

.br-more {
  margin: 56px 0 0;
  text-align: center;
}

/* 紹介ページ末尾「フーシェアとは」欄（build.js の brMoreHtml）：1〜4 を帯でひとまとまりに */
.br-more__box {
  padding: 32px 24px;
  border-radius: 16px;
  background: #fff6ef;
}

:where(.post-block) .br-more__title {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.br-more__about {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* お問い合わせ・資料請求は横並び（SP は縦） */
.br-more__cv {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

/* ボタンの文字は1行に（折り返さない幅） */
.br-more__btn {
  min-width: 240px;
  white-space: nowrap;
}

/* 5. ほかのブランドも見る（テキストリンク・帯の外に少し離す） */
.br-more__brands {
  margin: 28px 0 0;
}

.br-more__brands-link,
.br-more__brands-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2410c;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.br-more__brands-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.br-more__brands-link:hover {
  color: #9a3412;
}

.br-more__lead {
  margin: 8px 0 0;
  color: #4a3f3b;
  text-wrap: balance;
  font-size: 15px;
  line-height: 1.8;
}

/* /brand-release/ の一覧の下（.br-more.is-plain）の「ブランド紹介を見る」は .br-more__list のまま */

.br-more__list {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.br-more__item {
  flex: 1;
  max-width: 300px;
}

/* 見た目は共通ボタン .c-btn（style.css。ブランド紹介を見る＝--secondary、資料ダウンロード＝--primary）。ここでは幅だけ */
.br-more__link {
  width: 100%;
}

@media screen and (max-width: 767px) {
  .br-more {
    margin-top: 40px;
  }

  .br-more__box {
    padding: 24px 16px;
  }

  .br-more__lead {
    font-size: 14px;
  }

  .br-more__about,
  .br-more__cv {
    flex-direction: column;
    align-items: stretch;
  }

  .br-more__cv {
    gap: 12px;
  }

  .br-more__btn {
    min-width: 0;
    width: 100%;
  }

  .br-more__list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .br-more__item {
    width: 100%;
  }

  /* SPの一覧カードは元画像の比率によらず 5:4 にそろえる（merged.css の height:auto を上書き） */
  .br-list .p-boxlink__img {
    height: auto;
    max-height: none;
    aspect-ratio: 5 / 4;
  }

  .br-related {
    margin-top: 48px;
  }

  .br-related__list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* SPは画像を左、文字を右の横並びにして縦に長くなりすぎないように */
  :where(.post-block) .br-related__link,
  :where(.post-block) .br-related__link:visited {
    display: flex;
    gap: 12px;
  }

  .br-related__img {
    flex: 0 0 120px;
    height: 96px;
    aspect-ratio: auto;
    border-radius: 8px;
  }

  .br-related__body {
    padding-top: 0;
  }

  .br-related__text {
    font-size: 14px;
  }

  .br-cta {
    margin: 32px 0 8px;
  }

  .br-note {
    font-size: 12px;
    text-align: left;
  }

}
