/* ブランド特集（/f/lecreuset）2026-10-09
   🔴 mottoku の「AI 味」7 項目を足さない（色つき左罫・全節同じ eyebrow・hover の浮き上がり・
      グラデ下線・節ごとの地色・ブランド色の地・hero のグラデ地）。節の切れ目は上罫線、
      強調は字の大きさと太さ。色は「押せるもの」と値引き/還元のバッジだけ。
   🔴 並ぶカードは同じ寸法（grid-auto-rows:1fr＋カード高さ 100%＋名前は 2 行で切る）。
   🔴 列数は件数（24・12）を割り切れる 2/3/4/6 だけを使う＝孤行を出さない。 */

.bf { max-width: 1240px; margin: 0 auto; color: var(--text); font-size: 15px; line-height: 1.75; }
.bf *, .bf *::before, .bf *::after { box-sizing: border-box; }
.bf a { color: var(--brand-deep); }
.bf h1, .bf h2, .bf h3 { letter-spacing: -0.01em; }

/* パンくず */
.bf-crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.bf-crumb a { color: var(--muted); text-decoration: none; }
.bf-crumb a:hover { color: var(--brand-deep); text-decoration: underline; }

/* ── hero ─────────────────────────────── */
.bf-hero { display: grid; gap: 20px; padding-bottom: 20px; }
.bf-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.bf-hero h1 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 800; color: var(--text); }
.bf-h1-sub { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--text-secondary); text-wrap: balance; word-break: auto-phrase; }
.bf-lead { margin: 14px 0 0; color: var(--text-secondary); max-width: 40em; }
.bf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0 0;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.bf-stats > div { background: var(--card); padding: 10px 14px; }
.bf-stats dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.bf-stats dd { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--text); }
.bf-stats dd small { font-size: 13px; font-weight: 700; margin-left: 2px; color: var(--text-secondary); }
.bf-byline { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.bf-until { margin: 14px 0 0; font-size: 15px; color: var(--text-secondary); }
.bf-until b { color: #b91c1c; font-weight: 800; }
[data-theme="dark"] .bf-until b { color: #fca5a5; }

.bf-hero-pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.bf-hero-pic { position: relative; display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.bf-hero-pic.is-main { grid-row: 1 / span 2; }
.bf-hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; display: block; }
.bf-hero-pic:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

/* 目次（横並びのリンク。地色は付けない） */
.bf-jump { display: flex; gap: 4px 2px; flex-wrap: wrap; padding: 10px 0; margin-bottom: 8px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bf-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.bf-jump a:hover { background: var(--border-light); text-decoration: underline; }

/* お知らせ（プライム感謝祭）。地色ではなく枠で区切る */
.bf-notice { margin: 20px 0 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.bf-notice h2 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.bf-notice p { margin: 0 0 6px; color: var(--text-secondary); }

/* ── 節 ─────────────────────────────── */
.bf-sec { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.bf-sec > h2 { margin: 0 0 4px; font-size: 22px; line-height: 1.4; font-weight: 800; }
.bf-sub { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.bf-more, .bf-empty { margin: 12px 0 0; font-size: 14px; color: var(--text-secondary); }
.bf-source { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ── 商品カード ─────────────────────── */
.bf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.bf-card { min-width: 0; }
.bf-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease; }
.bf .bf-card-link { color: var(--text); }
.bf-card-link:hover { border-color: var(--brand-deep); box-shadow: var(--shadow-md); }
.bf-card-link:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
/* 🔴 img は絶対配置で正方形の枠を埋める。普通に置くと縦長の写真（木のスプーン等）が
   aspect-ratio の枠を押し広げ、grid-auto-rows:1fr で**全部の行**が同じだけ伸びる（実際に踏んだ）。 */
.bf-card-img { position: relative; display: block; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden;
  background: #fff; border-bottom: 1px solid var(--border-light); }
.bf-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; display: block; }
.bf-tag { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 800;
  color: #fff; background: #b91c1c; line-height: 1.4; }
.bf-pct { position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; font-size: 14px; font-weight: 900;
  line-height: 1.2; color: #fff; background: #c2410c; font-variant-numeric: tabular-nums; }
.bf-oos { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.45); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.06em; }
.is-oos .bf-card-img img { filter: grayscale(80%); opacity: 0.8; }
.bf-card-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; flex: 1; }
.bf-name { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3em; word-break: break-word; }
.bf-price { margin-top: 4px; font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.bf-price s { color: var(--muted); font-size: 12px; }
.bf-price b { font-size: 17px; font-weight: 800; color: var(--text); }
.bf-pt { font-size: 12px; font-weight: 700; color: #c2410c; font-variant-numeric: tabular-nums; }
.bf-eff { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.bf-eff b { font-weight: 800; color: var(--text); }
.bf-eff small { font-size: 11px; margin-left: 2px; white-space: nowrap; }
.bf-end { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 700; color: #b91c1c; }
.bf-na { font-size: 13px; color: var(--muted); }
.is-oos .bf-card-link { opacity: 0.78; }

/* ── 種類のタブ ─────────────────────── */
.bf-tabs { display: flex; gap: 2px; overflow-x: auto; margin: 0 0 14px; border-bottom: 1px solid var(--border);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bf-tabs::-webkit-scrollbar { display: none; }
.bf-tabs[hidden] { display: none; }
.bf-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text-secondary); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.bf-tabs button small { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bf-tabs button[aria-selected="true"] { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }
.bf-tabs button:hover { color: var(--brand-deep); }
.bf-tabs button:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: -3px; }
.bf-panel + .bf-panel { margin-top: 28px; }
.has-tabs .bf-panel + .bf-panel { margin-top: 0; }
.bf-panel[hidden] { display: none; }
.bf-panel-h { margin: 0 0 2px; font-size: 18px; font-weight: 800; }
.has-tabs .bf-panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bf-panel-lead { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }

/* ── 読み物 ─────────────────────────── */
.bf-prose p { margin: 0 0 12px; max-width: 46em; }
.bf-prose h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.bf-two { display: grid; gap: 14px 28px; margin: 14px 0; }
.bf-box { padding: 0; }
.bf-box p { margin: 0; color: var(--text-secondary); }
.bf-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 14px; font-size: 16px; font-weight: 700; }
.bf-formula span { padding: 0; }
.bf-formula i { font-style: normal; color: var(--muted); }
.bf-example { padding: 0; }

.bf-table-wrap { overflow-x: auto; margin: 6px 0 4px; }
.bf-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.bf-table th, .bf-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.bf-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; }
.bf-table tbody th { font-weight: 800; }

.bf-checks { margin: 8px 0 0; padding-left: 1.4em; max-width: 46em; }
.bf-checks li { margin: 0 0 12px; }
.bf-checks li b { display: block; font-size: 15px; }

.bf-faq { border-bottom: 1px solid var(--border); max-width: 46em; }
.bf-faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; min-height: 44px; }
.bf-faq p { margin: 0 0 14px; color: var(--text-secondary); }

.bf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bf-links a { display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 64px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-decoration: none; }
.bf-links a b { font-size: 14px; color: var(--brand-deep); }
.bf-links a span { font-size: 12px; color: var(--muted); }
.bf-links a:hover { border-color: var(--brand-deep); }

.bf-notes { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.bf-notes p { margin: 0 0 4px; }

/* ── 画面幅 ─────────────────────────── */
@media (min-width: 640px) {
  .bf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .bf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bf-two { grid-template-columns: 1fr 1fr; }
  .bf-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .bf-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 32px; }
  .bf-hero h1 { font-size: 34px; }
  .bf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .bf-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bf-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .bf { font-size: 15px; }
  .bf-hero h1 { font-size: 24px; }
  .bf-sec > h2 { font-size: 20px; }
  .bf-hero-pics { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .bf-hero-pic.is-main { grid-row: auto; }
  .bf-pct { font-size: 12px; padding: 3px 7px; }
}


/* 合集直達（hero の下と末尾に同じ物）。外枠を付けない＝枠の中に枠を入れない（May 2026-10-09「框体套框体太难看」）。
   主ボタンだけ塗り、2 つ目は淡い地・枠線なし。 */
.bf-hub { margin: 6px 0 18px; }
.bf-hub-t { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.bf-hub-row { display: grid; gap: 8px; }
.bf-hub-btn { display: flex; flex-direction: column; justify-content: center; min-height: 60px; padding: 10px 16px; border-radius: 12px;
  background: var(--app-accent-soft); color: var(--brand-deep); text-decoration: none; }
.bf .bf-hub-btn { color: var(--brand-deep); }
.bf .bf-hub-btn.is-main { background: var(--brand-deep); color: #fff; }
.bf-hub-btn b { font-size: 16px; line-height: 1.4; }
.bf-hub-btn small { font-size: 12px; opacity: .85; margin-top: 2px; }
.bf-hub-btn:hover { filter: brightness(1.05); }
.bf-hub-btn:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
@media (min-width: 640px) { .bf-hub-row { grid-template-columns: 3fr 2fr; } }
[data-theme="dark"] .bf .bf-hub-btn { color: #6ee7b7; }
[data-theme="dark"] .bf .bf-hub-btn.is-main { background: #6ee7b7; color: #052e1f; }

/* ── ダーク ─────────────────────────── */
[data-theme="dark"] .bf a { color: #6ee7b7; }
[data-theme="dark"] .bf-jump a,
[data-theme="dark"] .bf-tabs button[aria-selected="true"],
[data-theme="dark"] .bf-links a b { color: #6ee7b7; }
[data-theme="dark"] .bf-tabs button[aria-selected="true"] { border-bottom-color: #6ee7b7; }
[data-theme="dark"] .bf-card-link:hover,
[data-theme="dark"] .bf-links a:hover { border-color: #6ee7b7; }
[data-theme="dark"] .bf-pt { color: #fdba74; }
[data-theme="dark"] .bf-end { color: #fca5a5; }
/* 商品写真は白背景前提なので、ダークでも写真の地は白のまま（枠で区切る） */
[data-theme="dark"] .bf-card-img, [data-theme="dark"] .bf-hero-pic { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .bf-card-link { transition: none; }
}
