@charset "UTF-8";
/* ============================================================
   bi-refine v4（2026-11-19）レイアウトの崩れと読みにくさを直す層
   オーナー指摘（11-19）: 見出しが中央からずれる・掲載中の店舗カードの縦がずれる・1/2/3 の四角い番号がダサい・
   相談の帯が左端に張り付く・RPO が分かりにくい → 全ページを撮って点検（../audit_2026-11-19/）し、Codex と相互に確認した。
   原因の多くは、11-17 の引き算（v1〜v3）がページごとの作りに合っていなかったこと。
   v3-add の「あと」に当てる（deploy_global.py の配信リストで bi-refine-v3 の次）。外すときはその1行を消して再実行。
   ============================================================ */

/* ---------- 1. 見出しの飾り線をやめる ---------- */
/* h3 の「金の短い線＋点線」（SWELL の h3::before と bi-global の点線）。要点ガイドの 01〜04 もこの ::before */
html body #body_wrap#body_wrap .post_content h3:not(.faq_q)::before {
  content: none !important;
  display: none !important;
}
html body #body_wrap#body_wrap .post_content h3:not(.faq_q) {
  border-bottom: 0 !important;
  padding-bottom: 0 !important;
  background-image: none !important;
}
/* h2 の下の細い線（セクション見出し・お問い合わせ・ページ末の相談帯・写真の帯・記事の相談ブロック） */
html body #body_wrap#body_wrap :is(.bi-sec__title, .bi-contact__title, .bi-footer-cta__title, .st-photos__h, .bi-cm-cta-block__h, .biaraba-contact__title)::after {
  content: none !important;
  display: none !important;
}

/* ---------- 2. 順番ではない番号をやめる（流れ・手順の番号は残す） ---------- */
html body #body_wrap#body_wrap :is(.prob-num, .bi-cm-diffcard__no, .bi-pains__no, .bi-card__icon.bi-num, .cp-no),
html body #body_wrap#body_wrap .cp-toc a > b {
  display: none !important;
}
/* 間貸し支援「前に進めない理由」: 番号の列を外したぶん、悩みと「びあらばが担う」の2列に */
@media (min-width: 769px) {
  html body #body_wrap#body_wrap .bi-pains > li {
    grid-template-columns: minmax(0, 1fr) 200px !important;
  }
}

/* ---------- 3. 手順の番号は箱に入れず、金の数字で ---------- */
html body #body_wrap#body_wrap .bi-step__num {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  width: auto !important;
  min-width: 2em !important;
  height: auto !important;
  font-family: var(--rf-mincho) !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  color: var(--rf-gold) !important;
  -webkit-text-fill-color: var(--rf-gold) !important;
}

/* ---------- 4. 見出しと中身の位置をそろえる ---------- */
/* シェアレストラン：相談の帯の中の箱が画面の左端に付いていた（v1 の margin-left:0 が中央寄せを消していた） */
html body #body_wrap#body_wrap .bi-rental .bi-bottom .bi-inner {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* トップ：お問い合わせの説明文を見出しの左端に */
html body #body_wrap#body_wrap .bi-home .bi-contact .bi-lead {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* 開業：中央の見出しに合わせて、すぐ下の説明文も中央に */
html body #body_wrap#body_wrap .bi-contact .bi-sec__title--contact + .bi-contact__lead {
  text-align: center !important;
}
/* シェフ間借り：料金のカード・利用の流れのタブ・登録フォームを見出しの左端に */
html body #body_wrap#body_wrap .bi-cm .bi-cm-price {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* シェフ間借り：見出しは左端（内側の箱の左）なのに、中身の箱が10種類とも中央寄せで幅もばらばらだった → 全部見出しの左端に */
html body #body_wrap#body_wrap .bi-cm .bi-cm__inner > :is(.bi-cm-probs, .bi-cm-diff, .bi-cm-stores, .bi-cm-models, .bi-cm-tabs, .bi-cm-flow, .bi-cm-faq, .bi-cm-formcard, .bi-cm-cols) {
  margin-left: 0 !important;
  margin-right: auto !important;
}
/* シェアレストラン：流れ・相談の帯・申込みフォームを同じ幅（840px）・同じ左端に */
html body #body_wrap#body_wrap .bi-rental :is(.bi-bottom .bi-inner, .bi-rental-form) {
  max-width: 840px !important;
}
html body #body_wrap#body_wrap .bi-rental .bi-rental-form {
  margin-left: auto !important;
  margin-right: auto !important;
}
/* トップ「このような相談が多いです」：押せないのにボタンに見えていた枠をやめ、点の付いた一覧に */
html body #body_wrap#body_wrap .bi-consult__pill {
  border: 0 !important;
  background: none !important;
  padding: 3px 0 3px 14px !important;
  position: relative !important;
}
html body #body_wrap#body_wrap .bi-consult__pill::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: .95em !important;
  width: 6px !important;
  height: 1px !important;
  background: var(--rf-gold) !important;
}
html body #body_wrap#body_wrap .bi-consult {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}
/* シェフ間借り：金のグラデに白い文字の送信ボタン・タブを、ほかの相談ボタンと同じ「金の面＋黒い文字」に */
html body #body_wrap#body_wrap .bi-cm :is(button.bi-cm-submit, .bi-cm-tab.is-active) {
  background: var(--rf-gold) !important;
  background-image: none !important;
  color: #14110c !important;
  -webkit-text-fill-color: #14110c !important;
  border-color: var(--rf-gold) !important;
  border-radius: 4px !important;
}
/* 本文の見出し（ブロックエディタの h2）：「シェアレストランCOROCOROとは」で金のグラデの帯になっていた（テーマの見出し設定）。
   帯をやめて、ほかのページと同じ明朝の見出しに。記事の h2 はもともと帯なしなので、書体だけが明朝になる。
   この site は body の class が外されているので、ページ番号では狙えない（見せる演出の JS が bi-io を付けるので :not([class*=bi-]) も使えない） */
html body #body_wrap#body_wrap .post_content h2.wp-block-heading {
  background: none !important;
  background-image: none !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--rf-mincho) !important;
  font-weight: 600 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html body #body_wrap#body_wrap .post_content h2.wp-block-heading::before,
html body #body_wrap#body_wrap .post_content h2.wp-block-heading::after {
  content: none !important;
  display: none !important;
}

/* ---------- 5. シェフ間借りのカード：中央寄せの長い文をやめ、左揃えに。注記は下にそろえる ---------- */
html body #body_wrap#body_wrap .bi-cm .bi-cm-pcard {
  display: flex !important;
  flex-direction: column !important;
}
html body #body_wrap#body_wrap .bi-cm :is(.bi-cm-pcard, .bi-cm-pcard *, .bi-cm-diffcard, .bi-cm-diffcard *) {
  text-align: left !important;
}
html body #body_wrap#body_wrap .bi-cm .bi-cm-pcard__opt {
  margin-top: auto !important;
}
/* シェフ間借りの見出しも、ほかのページと同じ明朝に */
html body #body_wrap#body_wrap .bi-cm :is(.bi-cm-h2, h3) {
  font-family: var(--rf-mincho) !important;
  font-weight: 600 !important;
}
/* 写真の上の「募集中｜〜」の札：文字が枠からはみ出していた */
html body #body_wrap#body_wrap .bi-cm .bi-cm-store__badge {
  width: auto !important;
  max-width: calc(100% - 28px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 5px 12px !important;
  font-size: 12.5px !important;
}

/* ---------- 6. 横に並んだカードの段をそろえる（PC） ---------- */
@media (min-width: 769px) {
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__area {
    min-height: 3.4em;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__genre {
    min-height: 3em;
    line-height: 1.5 !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__ctas {
    margin-top: auto !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt :is(.res-ttl, .flow-ttl) {
    min-height: 3em;
    line-height: 1.5 !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .price-for {
    min-height: 6.4em;
  }
  html body #body_wrap#body_wrap .bi-rpo #cases .bi-card__h {
    min-height: 3em;
    line-height: 1.5 !important;
  }
}

/* ---------- 7. 小さすぎる文字を大きく（ラベル・タグ・ボタン・パンくず・日付） ---------- */
html body #body_wrap#body_wrap :is(.st-entry__s, .price-tag, .bi-pains__tag, .res-tag, .flow-num, .bi-quickform__n, .cp-plate__r, .cp-plate__s) {
  font-size: 12.5px !important;
}
html body #body_wrap#body_wrap :is(a.btn-g, a.btn-o) {
  font-size: 14.5px !important;
  letter-spacing: .06em !important;
}
html body #body_wrap#body_wrap :is(.p-breadcrumb, .p-breadcrumb *) {
  font-size: 12px !important;
  color: rgba(255, 255, 255, .66) !important;
}
html body #body_wrap#body_wrap :is(.c-postTimes__posted, .c-postTimes__modified, .c-categoryList__link) {
  font-size: 12px !important;
}

/* ---------- 8. 料金の数字と単位を割らない（スマホで「3／万円」と分かれていた） ---------- */
html body #body_wrap#body_wrap :is(.bi-svc__price, .bi-cm-pcard, .price-main, .bi-fee__value, .bi-plan, .st-entry__s) em,
html body #body_wrap#body_wrap :is(.price-main, .bi-cm-pcard__main, .bi-plan__rate) {
  white-space: nowrap !important;
}

/* ---------- 9. フッター：著作権の文字が背景に沈んでいた・メールが途中で折れていた ---------- */
html body .copyright {
  color: rgba(255, 255, 255, .6) !important;
  font-size: 12px !important;
}
html body .bi-fx a[href^="mailto:"] {
  white-space: nowrap !important;
  font-size: 12.5px !important;
  letter-spacing: 0 !important;
}
html body .bi-fx :is(.bi-fx__note, .bi-fx__bottom span, dd, p) {
  text-wrap: pretty;
}

/* ---------- 10. フォームのすぐ後の「次の一歩は…」の帯は出さない（同じ相談の入口が2つ続くため） ---------- */
html body:has(.l-content .wpcf7) .bi-footer-cta {
  display: none !important;
}

/* ---------- 12. 点検の2回目で残っていた所（小さい文字・コメント欄の点線・パンくずの位置） ---------- */
html body #body_wrap#body_wrap :is(.p-postList__cat, .c-postThumb__cat, .res-meta-item, .cl-step-end span, .req, .p-pnLinks__title, .p-pnLinks .__y) {
  font-size: 12px !important;
}
/* 用語辞典：見出しの読み（まがし など）が 10.6px だった */
html body #body_wrap#body_wrap .post_content h3.wp-block-heading > span {
  font-size: 12px !important;
}
html body #body_wrap#body_wrap .p-commentArea__title {
  border-bottom: 0 !important;
  background-image: none !important;
}
html body #body_wrap#body_wrap .p-commentArea__title::before,
html body #body_wrap#body_wrap .p-commentArea__title::after {
  content: none !important;
  display: none !important;
}
html body #body_wrap#body_wrap .p-breadcrumb__list {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
@media (min-width: 769px) {
  html body #body_wrap#body_wrap .p-breadcrumb__list {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

/* ---------- 11. スマホ：縦に長すぎる箱を詰める ---------- */
@media (max-width: 600px) {
  /* 運営代行・法人向け：悩み・流れの箱の余白 */
  html body #body_wrap#body_wrap .bi-storemgmt :is(.prob-item, .flow-step) {
    padding: 22px 20px !important;
  }
  /* 運営代行「6つの領域」：本文をアイコンの横の細い列ではなく、下に全幅で */
  html body #body_wrap#body_wrap .bi-storemgmt .str-item {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    padding: 22px 0 !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .str-item > .str-body {
    display: contents !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .str-item > :first-child {
    grid-row: 1;
    grid-column: 1;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .str-item .bi-area-ttl {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .str-item > .str-body > :not(.bi-area-ttl) {
    grid-column: 1 / -1;
  }
}
