@charset "UTF-8";
/* ============================================================
   bi-refine v4b（2026-11-19 朝）Codex の再点検（../audit_2026-11-19/codex/after_summary.md）で見つかった残りと、
   v4 で起きた崩れ（間貸し支援のスマホで悩みの文字が縦に折れた）を直す層。
   deploy_global.py の配信リストで bi-refine-v4 の次。外すときはその1行を消して再実行。
   記事の表をスマホでカードにするのは bi-refine-v4b.js（列見出しを data-label に写す）とこの 13。
   ============================================================ */

/* ---------- 1. 間貸し支援「前に進めない理由」：v4 で番号を消したあと、スマホでは本文が番号用の 40px の列に入り、
   1〜2文字ずつ縦に折れていた（v4 で直したのは PC の列だけだった） ---------- */
@media (max-width: 760px) {
  html body #body_wrap#body_wrap .bi-pains > li {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body #body_wrap#body_wrap .bi-pains__fix {
    grid-column: 1 !important;
  }
}
@media (min-width: 761px) {
  html body #body_wrap#body_wrap .bi-pains > li {
    grid-template-columns: minmax(0, 1fr) 200px !important;
  }
}

/* ---------- 2. 和文を斜めにしない（日本語の書体には斜体がなく、機械で傾けた字になって安っぽく見える） ---------- */
html body #body_wrap#body_wrap :is(em, i, cite, address, .bi-hero__kicker, .bi-hero__tagline, .flow-num, .bi-sec__catch, .bi-sec__catch *) {
  font-style: normal !important;
}

/* ---------- 3. 押せるものを押せるように見せる ---------- */
/* COROCORO とは・記事：VK のボタンは背景色が出ておらず、金の文字だけで見出しと見分けにくかった（👉 を外して目立った） */
html body #body_wrap#body_wrap .post_content a.vk_button_link {
  display: inline-block !important;
  padding: 12px 22px !important;
  border: 1px solid var(--rf-gold) !important;
  border-radius: 4px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--rf-gold) !important;
  -webkit-text-fill-color: var(--rf-gold) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-decoration: none !important;
}
/* 相談の入口（#bi-contact）は、ほかのページの相談ボタンと同じ「金の面＋黒い文字」 */
html body #body_wrap#body_wrap .post_content a.vk_button_link[href*="#bi-contact"] {
  background: var(--rf-gold) !important;
  color: #14110c !important;
  -webkit-text-fill-color: #14110c !important;
}

/* ---------- 4. 手順の番号（間貸し支援・開業サポートなどの .bi-steps）：金の四角＋光る影＋縦の線をやめ、箱なしの金の数字に ---------- */
html body #body_wrap#body_wrap .bi-steps::before {
  content: none !important;
  display: none !important;
}
html body #body_wrap#body_wrap .bi-steps li::before {
  display: block !important;
  width: 1.6em !important;
  height: auto !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  color: var(--rf-gold) !important;
  -webkit-text-fill-color: var(--rf-gold) !important;
  font-family: var(--rf-mincho) !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
html body #body_wrap#body_wrap .bi-steps li {
  gap: 10px !important;
}

/* ---------- 5. 運営代行・法人向け：カードの上の金の線・結論カードのグラデ・流れのカードの間の金の帯・斜めの小さな番号をやめる ---------- */
html body #body_wrap#body_wrap .bi-storemgmt .prob-item::before {
  content: none !important;
  display: none !important;
}
html body #body_wrap#body_wrap .bi-storemgmt .prob-item.cl-conclude {
  background: #131313 !important;
  background-image: none !important;
}
html body #body_wrap#body_wrap .bi-storemgmt .flow-num {
  font-family: var(--rf-mincho) !important;
  font-size: 15px !important;
  letter-spacing: .04em !important;
  opacity: 1 !important;
}
@media (max-width: 768px) {
  /* 1列のときは、カードの隙間から見えていた金色の地（PC の4列の仕切り線用）を出さない */
  html body #body_wrap#body_wrap .bi-storemgmt :is(.flow-steps, .prob-grid) {
    background: none !important;
    border: 0 !important;
    gap: 10px !important;
  }
}
@media (max-width: 600px) {
  /* 運営代行「支援の流れ」：番号・小見出し・題名・説明の間が広く、4手順で1100px以上あった */
  html body #body_wrap#body_wrap .bi-storemgmt .flow-num {
    margin-bottom: 2px !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .flow-step .flow-sub {
    margin: 0 0 4px !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .flow-step .flow-ttl {
    margin: 0 0 8px !important;
  }
  html body #body_wrap#body_wrap .bi-storemgmt .flow-step .flow-txt {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
}
/* カードの上の金のグラデの線も、ほかの箱と同じくやめる */
html body #body_wrap#body_wrap .bi-storemgmt .flow-step::before {
  content: none !important;
  display: none !important;
}
/* 運営代行「仕組みは、あなたの手元に残ります。」：「残りま／す。」と割れていた → 文節で折り返す（Chrome・Edge。Safari はいままでどおり。サイト全体の word-break:normal !important に負けないよう !important） */
html body #body_wrap#body_wrap .bi-storemgmt :is(.bi-sec__catch, .bi-sec__catch *) {
  word-break: auto-phrase !important;
  text-wrap: balance;
}

/* ---------- 6. 見出し h3 の左右の余白（もとは金の線のための .5em）をやめ、本文の左端にそろえる ---------- */
html body #body_wrap .post_content h3:not(.faq_q) {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- 7. 法人向け：引き継ぎの完了条件（順番ではない条件）の四角い 1〜4 をやめ、金の短い線の箇条書きに ---------- */
html body #body_wrap#body_wrap .bi-corplaunch .cl-box li {
  padding-left: 22px !important;
  text-indent: -22px;
}
html body #body_wrap#body_wrap .bi-corplaunch .cl-box li::before {
  content: "" !important;
  position: static !important;
  display: inline-block !important;
  width: 10px !important;
  height: 1px !important;
  margin: 0 12px 0 0 !important;
  vertical-align: .34em !important;
  text-indent: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--rf-gold) !important;
}
/* 表のカード（スマホ）：左の項目名が「自社運営＋び／あらば」「向いている場／合」と言葉の途中で折れていた
   → 文節で折り返す（Chrome・Edge。項目名を上に積むと 1 ページで 400px 伸びるので、横に並べたまま）。薄かった項目名を少し明るく */
@media (max-width: 768px) {
  html body #body_wrap#body_wrap .bi-corplaunch .cl-tbl tbody td::before {
    word-break: auto-phrase !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, .62) !important;
  }
}

/* ---------- 8. フォーム ---------- */
/* 項目の間隔：名前とメールを並べる枠の後ろに余白がなく、メールのすぐ下に電話の項目名が付いていた（ほかは18px） */
html body #body_wrap#body_wrap .biaraba-grid {
  row-gap: 18px !important;
  margin-bottom: 18px !important;
}
html body #body_wrap#body_wrap .biaraba-grid > .biaraba-field {
  margin-bottom: 0 !important;
}
@media (max-width: 600px) {
  /* 法人向けの資料ダウンロード：枠が3重で入力欄が225pxしかなかった → 外側の枠の中に直接フォームを置く */
  html body #body_wrap#body_wrap .cl-docform {
    padding: 18px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(201, 168, 76, .3) !important;
    background: none !important;
  }
  html body #body_wrap#body_wrap .cl-docform .biaraba-form__inner {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }
  /* 採用代行の相談フォーム：外側の余白が2重（20px＋20px）で入力欄が276pxだった */
  html body #body_wrap#body_wrap .bi-rpo .bi-contact > .bi-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ---------- 9. 記事末尾の募集の案内：青いグラデーションの箱（サイトのほかの所にない色）を、黒地に金の枠に ---------- */
html body #body_wrap#body_wrap .bi-cm-cta-block__inner {
  background: #121110 !important;
  background-image: none !important;
  border: 1px solid rgba(201, 168, 76, .45) !important;
}

/* ---------- 10. コラム一覧（/_toppage/。WordPress の「投稿ページ」なので #body_wrap に .blog が付く）：
   白い地に白い文字で読めなかった箱・記事の題名が 30px で行ごとに太い下線が付いていた
   （題名はこのページだけ。トップ・/column/ の記事一覧はもともと小さい） ---------- */
html body #body_wrap#body_wrap .post_content .wp-block-media-text:is(.has-background, [style*="background"]) {
  background-color: #121110 !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
}
html body #body_wrap#body_wrap.blog .post_content .p-postList__title {
  font-size: 17px !important;
  line-height: 1.6 !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 12px 0 6px !important;
  text-decoration: none !important;
  font-family: var(--rf-mincho) !important;
  font-weight: 600 !important;
}
html body #body_wrap#body_wrap.blog .post_content .p-postList__title::before,
html body #body_wrap#body_wrap.blog .post_content .p-postList__title::after {
  content: none !important;
  display: none !important;
}

/* ---------- 11. シェフ間借り ---------- */
/* 料金の2枚：v4 で注記を下にそろえたら、左のカードの本文と注記の間が大きく空いた → 注記は本文のすぐ後ろに */
html body #body_wrap#body_wrap .bi-cm .bi-cm-pcard__opt {
  margin-top: 18px !important;
}
/* 料金の型の3枚：上の表（1032px）より狭い 980px で右端がそろっていなかった */
html body #body_wrap#body_wrap .bi-cm .bi-cm-models {
  max-width: none !important;
  margin-right: 0 !important;
}
@media (min-width: 769px) {
  /* 店舗カード：補助のリンクがないカード（COROCORO）だけ、ボタンが34px下にずれていた → ボタンの上端をそろえる */
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__ctas {
    min-height: 88px;
    align-content: start !important;
  }
}

/* ---------- 11b. シェアレストラン「レンタル料について」：2枚のカードが列の中で 367px に縮んで中央に置かれ、
   見出しより内側に離れていた → 列いっぱいに広げて、左端を見出しにそろえる ---------- */
html body #body_wrap#body_wrap .bi-rental .bi-price > .bi-plan {
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-self: stretch !important;
}

/* ---------- 12. 開業サポート「対応できる領域（例）」：押せないのにボタンに見えていた札の枠をやめる ---------- */
html body #body_wrap#body_wrap .bi-scope .bi-tag2 {
  border: 0 !important;
  background: none !important;
  padding: 2px 16px 2px 0 !important;
}

/* ---------- 13. 記事の表（4列以上）：スマホで「24,0／00円」と数字が割れていた → 1行＝1枚のカードに（列見出しは bi-refine-v4b.js が写す） ---------- */
@media (max-width: 600px) {
  html body #body_wrap#body_wrap .post_content figure.wp-block-table:has(> table.bi-tcard) {
    overflow: visible !important;
  }
  html body #body_wrap#body_wrap .post_content table.bi-tcard,
  html body #body_wrap#body_wrap .post_content table.bi-tcard :is(tbody, tr, th, td) {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
  }
  html body #body_wrap#body_wrap .post_content table.bi-tcard {
    border: 0 !important;
    background: none !important;
  }
  html body #body_wrap#body_wrap .post_content table.bi-tcard :is(thead, tr.bi-tcard__head) {
    display: none !important;
  }
  html body #body_wrap#body_wrap .post_content table.bi-tcard tr {
    margin: 0 0 12px !important;
    padding: 4px 0 8px !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    background: #121110 !important;
  }
  html body #body_wrap#body_wrap .post_content table.bi-tcard :is(th, td) {
    display: grid !important;
    grid-template-columns: 7.5em minmax(0, 1fr);
    column-gap: 12px;
    padding: 5px 14px !important;
    border: 0 !important;
    background: none !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  html body #body_wrap#body_wrap .post_content table.bi-tcard :is(th, td)::before {
    content: attr(data-label);
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.9;
  }
  /* 1列目はカードの題名 */
  html body #body_wrap#body_wrap .post_content table.bi-tcard tr > :first-child {
    display: block !important;
    padding-top: 10px !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }
  html body #body_wrap#body_wrap .post_content table.bi-tcard tr > :first-child::before {
    content: none;
  }
  /* 3列までの表はそのまま。左の列が細く「比較項／目」「初期費／用」と言葉の途中で割れていた → 余白と文字を少し小さくし、文節で折り返す */
  html body #body_wrap#body_wrap .post_content figure.wp-block-table table:not(.bi-tcard) :is(th, td) {
    padding: 10px 10px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    word-break: auto-phrase !important;
  }
}
