@charset "UTF-8";
/* bi-refine v4c（2026-11-20）: Codex の 3 回目の確かめ（v4b のあと）で見つかった所と、その確認中に Claude が見つけた所を直す。
   - v4b の副作用：運営代行の冒頭の 3 項目フォーム・シェアレストランのスマホで、名前とメールの間が 0px になっていた（§1）
   - v4b の副作用：PC の問い合わせフォームで、名前とメールの段の下だけ 36px 空いていた（ほかは 18px）（§1）
   - シェフ間借り：店舗カードの段（料金・補足）が隣のカードとずれる／見出しの上下が 40px ずつ空いて間延び／写真の上の札が明るい写真で読めない（§2）
   - シェフ間借り：フォームの項目の間が 14px と 32px で混ざる／長い入力例が欄からはみ出して切れる（§3）
   - 間貸し支援・開業サポートなどの後半「流れ」の番号：金の四角の枠＋斜めの英字体のまま（前半は v4b で外した）（§4）
   - コラム一覧（/_toppage/）：記事カードの題名・抜粋・日付の全行に下線／「もっと見る」の矢印／写真の上の白い題名が明るい写真で読めない（§5）
   外すときは deploy_global.py の CSS の配信リストからこの行を消して再実行。 */

/* ---------- 1. フォームの項目の間隔（v4b §8 の副作用を直す） ---------- */
/* PC（1024px〜）は問い合わせフォーム全体が 2 列の grid で、行の間が 18px ある。
   v4b で名前とメールの枠の下にも 18px を足したので、そこだけ 36px になっていた → 枠の下の余白は 0 に */
@media (min-width: 1024px) {
  html body #body_wrap#body_wrap .wpcf7 .biaraba-form__inner > .biaraba-grid {
    margin-bottom: 0 !important;
  }
}
/* 名前とメールを縦に積むだけの枠（display:block）は row-gap が効かず、v4b で項目の下の余白を消したので
   名前の欄のすぐ下にメールの項目名が付いていた → 1 列の grid にして、ほかの項目と同じ 18px で空ける */
html body #body_wrap#body_wrap .bi-storemgmt .bi-quickform .biaraba-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (max-width: 768px) {
  html body #body_wrap#body_wrap .bi-rental .bi-rental-form .biaraba-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
/* シェアレストランの申込フォームだけ、ほかの項目の間が 14px だった（サイトのほかのフォームは 18px）→ 18px にそろえる */
@media (max-width: 1023px) {
  html body #body_wrap#body_wrap .bi-rental .bi-rental-form .biaraba-form__inner > .biaraba-field {
    margin-bottom: 18px !important;
  }
}

/* ---------- 2. シェフ間借りの店舗カード（PC・2 列のとき） ---------- */
/* 設備の説明の行数がカードごとに違い、隣のカードと料金・補足の始まりが 22〜43px ずれていた
   → カードの中の段（写真／地域／業態／席数・期間・設備・料金／補足／ボタン）を subgrid で隣のカードとそろえる。
   段は最も高いカードに合わせるので、点線の区切りも横一直線になる。対応していないブラウザでは今までどおり縦に積む */
@media (min-width: 769px) {
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store {
    display: grid !important;
    grid-template-rows: subgrid !important;
    grid-row: span 9 !important;
    row-gap: 0 !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__media {
    grid-row: 1 !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__body {
    display: grid !important;
    grid-template-rows: subgrid !important;
    grid-row: 2 / span 8 !important;
    row-gap: 0 !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__area {
    grid-row: 1 !important;
    min-height: 0 !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__genre {
    grid-row: 2 !important;
    min-height: 0 !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__rows {
    grid-row: 3 / span 4 !important;
    display: grid !important;
    grid-template-rows: subgrid !important;
    row-gap: 8px !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__hl {
    grid-row: 7 !important;
    align-self: start !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-store__ctas {
    grid-row: 8 !important;
    align-self: start !important;
    margin-top: 0 !important;
  }
}
/* 業態の見出し：サイト共通の h3 の余白（上 1.8em・下 2em）が効いて、1 行の見出しの上下が約 40px ずつ空いていた */
html body #body_wrap#body_wrap .bi-cm .bi-cm-store__genre {
  margin: 6px 0 16px !important;
}
/* 写真の上の「募集中｜〜」の札：地の色が消えて透明になり、明るい写真の上で読めなかった → 黒の地に戻す */
html body #body_wrap#body_wrap .bi-cm .bi-cm-store__badge {
  background-color: rgba(10, 10, 10, .82) !important;
}

/* ---------- 3. シェフ間借りのフォーム ---------- */
/* 2 つ並べる枠（お名前〜料理のジャンル、出店の頻度・始めたい時期）の中だけ、項目の余白に枠の行間 18px が足されていた
   （スマホ 14px と 32px、PC 20px と 38px が混在）→ 枠の行間を 0 にして、項目の余白だけで空ける */
html body #body_wrap#body_wrap .bi-cm .bi-cm-form__grid {
  row-gap: 0 !important;
}
/* 「ご経験・やりたいこと」の入力例が 3 行あり、スマホでは欄の下で切れていた */
@media (max-width: 768px) {
  html body #body_wrap#body_wrap .bi-cm #f-msg {
    min-height: 132px !important;
  }
}

/* ---------- 4. 後半の「流れ」の番号（間貸し支援・開業サポート・採用代行など .bi-guide__steps）：
   金の四角の枠＋斜めの英字体のままだった（前半の .bi-steps は v4b で外した）→ 同じ、箱なしの金の明朝の数字に ---------- */
html body #body_wrap#body_wrap .bi-guide-sec .bi-guide ol.bi-guide__steps > li {
  padding-left: 34px !important;
}
html body #body_wrap#body_wrap .bi-guide-sec .bi-guide ol.bi-guide__steps > li::before {
  display: block !important;
  width: auto !important;
  height: auto !important;
  top: 15px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--rf-gold) !important;
  -webkit-text-fill-color: var(--rf-gold) !important;
  font-family: var(--rf-mincho) !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

/* ---------- 5. 記事の一覧カード（本文の中に置いた一覧。いまはコラム一覧 /_toppage/） ---------- */
/* カード全体がリンクで、本文のリンクの下線が題名・抜粋・日付の全行に付いていた（下線は子の側では消せないのでリンクで消す） */
html body #body_wrap#body_wrap .post_content .p-postList__link {
  text-decoration: none !important;
}
/* 「もっと見る」の右の矢印（ボタン・リンクに → を付けない、2026-11-17 オーナー判断） */
html body #body_wrap#body_wrap .is-style-more_btn a::after,
html body #body_wrap#body_wrap .is-style-more_btn a::before {
  content: none !important;
  display: none !important;
}
/* 写真の上に題名を重ねる型（-type-thumb）：地の色が消えて、白い題名が明るい写真の上で読めなかった → 下に黒の帯を敷く */
html body #body_wrap#body_wrap .p-postList.-type-thumb .p-postList__body {
  background-color: rgba(10, 10, 10, .78) !important;
}

/* ---------- 6. 見出し・ボタン・表の項目名などの短い文：言葉の途中で行が折れていた
   （「応／募」「お問い／合わせ」「回らな／い」「オ／プション」「リブラ／ンディング」「社会保／険」「募／集中」など、全ページで 60 か所以上。
   Intl.Segmenter で機械的に拾った）→ 文節で折り返す（Chrome・Edge。サイト共通の word-break: normal !important に勝つよう !important）。
   見出しは行の長さもそろえる（1 文字だけ次の行に落ちるのを防ぐ）。本文の段落は今までどおり ---------- */
html body #body_wrap#body_wrap :is(
  .post_content h1, .post_content h2, .post_content h3, .post_content h4, .post_content h5,
  .bi-hero__title, .bi-hero__lead, .hero-catch,
  .p-postList__title, .p-pnLinks__title,
  .post_content th, .post_content dt, .post_content figcaption,
  .post_content [class*="__ttl"], .post_content [class*="-ttl"], .post_content [class*="__title"],
  .post_content a[class*="btn"], .post_content a[class*="cta"], .post_content button,
  .post_content .vk_button_link, .post_content .wp-block-button__link,
  .bi-cm-store__val, .bi-cm-store__area
) {
  word-break: auto-phrase !important;
}
html body #body_wrap#body_wrap :is(
  .post_content h1, .post_content h2, .post_content h3, .post_content h4,
  .bi-hero__title, .p-postList__title, .p-pnLinks__title,
  .post_content [class*="__ttl"], .post_content [class*="-ttl"], .post_content [class*="__title"]
) {
  text-wrap: balance;
}
/* 文節の判定（Chrome の BudouX）が言葉の途中を切れ目とみなす見出しは、1 つずつ折り位置を決める
   - シェアレストランの見出しは、折りたい所が <span> で分けてある（「3ヶ月継続出店<span>オプション</span>」）→ span を 1 かたまりにする
   - 「取材・ご相談・お問い合わせはこちら」は「お問い／合わせ」で折れていた → 「・」でだけ折る
   - シェフ間借りの「シェフ登録・応募・お問い合わせ」「間借りについてよくある質問」は本文側で .bi-phrase と幅0の空白を入れた（fix_content_2026_11_19.py） */
html body #body_wrap#body_wrap .bi-rental .bi-sec__title > span {
  display: inline-block;
}
/* 上の「文節で折る」指定（:is() の中で詳細度が高い）に負けないよう #body_wrap を 3 つ重ねる */
html body #body_wrap#body_wrap#body_wrap .biaraba-contact__title {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}
/* 本文側で 1 かたまりにした所：見出しの「行の長さをそろえる」（balance）が、どこでも折れる指定（overflow-wrap: anywhere）を使って
   かたまりの途中で折ってしまうので、かたまりの中では折らない。トップの料金のかっこ書き（.bi-nw）は改行しない */
html body #body_wrap#body_wrap .bi-cm-h2 .bi-phrase {
  overflow-wrap: normal !important;
}
html body #body_wrap#body_wrap .bi-svc__price .bi-nw {
  white-space: nowrap !important;
}

/* ===== 11-22 午後の追加：Codex の 4 回目の確かめ（audit_2026-11-19/codex/v4c_summary.md）を受けて ===== */

/* ---------- 7. シェフ間借りの「ご利用の流れ」の番号：金の四角の枠で、カードの上下の真ん中にあった
   → ほかのページの手順と同じ、箱なしの金の明朝の数字を、各手順の題名の行にそろえる ---------- */
html body #body_wrap#body_wrap .bi-cm .bi-cm-flow ol > li::before {
  top: 25px !important;
  left: 26px !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--rf-gold) !important;
  -webkit-text-fill-color: var(--rf-gold) !important;
  font-family: var(--rf-mincho) !important;
  font-style: normal !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-cm .bi-cm-flow ol > li {
  padding-left: 64px !important;
}
@media (max-width: 768px) {
  html body #body_wrap#body_wrap .bi-cm .bi-cm-flow ol > li::before {
    top: 15px !important;
    left: 16px !important;
  }
  html body #body_wrap#body_wrap .bi-cm .bi-cm-flow ol > li {
    padding-left: 46px !important;
  }
}

/* ---------- 8. 記事の一覧カード（関連記事・コラム一覧などの -type-card）：題名の行数がカードで違うと、日付の高さが隣とずれていた
   （§6 で文節で折り返すようにして、行数が変わったカードで目立った）→ 日付をカードの下にそろえる ---------- */
html body #body_wrap#body_wrap .p-postList.-type-card > .p-postList__item {
  display: flex !important;
  flex-direction: column !important;
}
html body #body_wrap#body_wrap .p-postList.-type-card .p-postList__link,
html body #body_wrap#body_wrap .p-postList.-type-card .p-postList__body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}
html body #body_wrap#body_wrap .p-postList.-type-card .p-postList__meta {
  margin-top: auto !important;
}
/* 下にそろえると、余りのないカードでは紹介文・題名と日付の間の余白（もとは 8px・3px）が 0 になるので、余白は内側に持つ */
html body #body_wrap#body_wrap .p-postList.-type-card .p-postList__excerpt + .p-postList__meta {
  padding-top: 8px !important;
}
html body #body_wrap#body_wrap .p-postList.-type-card .p-postList__title + .p-postList__meta {
  padding-top: 3px !important;
}
@media (max-width: 768px) {
  /* トップの「よみもの」はスマホで 4 本だけ見せる（uplifts/uplift-675.css）。上の display:flex がその隠しに勝っていたので戻す */
  html body #body_wrap#body_wrap.home .bi-news .p-postList__item:nth-child(n+5) {
    display: none !important;
  }
}

/* ---------- 9. 記事の題名で「｜」が行の頭に来ていた（文節の判定が「｜」の前で区切ることがある）
   → 直前の 1 文字と「｜」を改行しない 1 かたまりにする（印は bi-refine-v4c.js が付ける） ---------- */
html body #body_wrap#body_wrap .bi-glue {
  white-space: nowrap !important;
}
