/* 本文（記事から移した編集部分）の見た目。
   記事12本で使っていたクラス名をそのまま活かすため、.bb の中に閉じて定義する。 */

.bb figure{margin:0 0 26px}
.bb figure img{width:100%;height:auto;display:block;border-radius:18px;box-shadow:var(--bb-shadow)}
.bb figcaption{font-size:12px;color:var(--bb-ink-mute);margin-top:9px;line-height:1.6;padding:0 4px}

/* 箇条書き。指定が無く、テーマの既定のままだった。
   項目の間が詰まっていて、折り返した2行目が先頭にそろわず読みにくい。
   行間と項目の間隔をあけ、記号を外に出して頭をそろえる。
   .points や .callout の中のリストは専用の見た目を持っているので、
   後ろのほうで上書きされるように、この指定はファイルの先頭に置く。 */
.bb .post_content ul,
.bb .post_content ol{margin:0 0 22px;padding-left:1.5em;list-style-position:outside}
.bb .post_content li{margin:0 0 10px;line-height:1.9;padding-left:.2em}
.bb .post_content li:last-child{margin-bottom:0}
.bb .post_content li::marker{color:var(--bb-pink)}
.bb .post_content li>ul,
.bb .post_content li>ol{margin:10px 0 0}

/* 公式サイトが小さい画像しか出していない場合。
   横幅いっぱいに引き伸ばすとぼやけるので、元のサイズまでで止めて中央に置く。
   授乳室やベビーカー置場のように、粗くても見せる価値がある写真のため。 */
.bb figure.bb-small img{max-width:420px;margin-left:auto;margin-right:auto}
.bb figure.bb-small figcaption{max-width:420px;margin-left:auto;margin-right:auto}
/* ⚠️ 200px前後の写真しか公式に無い施設がある（いちご農園に多い。2026-09-15）。
   bb-small（420px）でも2倍に引き伸ばされて粗く出るので、もう1段小さい枠を用意する。
   260px なら、196pxの写真でも1.3倍で収まる。 */
.bb figure.bb-xsmall img{max-width:260px;margin-left:auto;margin-right:auto}
.bb figure.bb-xsmall figcaption{max-width:260px;margin-left:auto;margin-right:auto}

/* SWELLのh2は背景色つき・白文字なので、色まで打ち消さないと見出しが読めなくなる。
   ピンクの線は疑似要素で足している。
   まとめ記事（.bb-post）は線をHTML側に持たせているので、ここでは足さない。
   両方から足すと線が2本並ぶ。 */
/* display:flex で組むと、見出しの文字が「名前のない塊」になり、
   折り返し位置を整える text-wrap:balance が効かない。
   「ふれあいパークはサファリに入らなくても使え／る」のように、
   最後の1文字だけが次の行に落ちる。
   バーは絶対配置にして、文字は普通の文章のまま扱わせる。 */
.bb:not(.bb-post) .post_content h2,
.bb:not(.bb-post) .post_content h2.sec{font-size:20px;font-weight:800;margin:40px 0 16px;
  line-height:1.5;text-wrap:balance;position:relative;display:block;border:0;
  padding:0 0 0 16px;background:none;background-image:none;color:var(--bb-ink)}
.bb:not(.bb-post) .post_content h2::before,
.bb:not(.bb-post) .post_content h2.sec::before{content:"";position:absolute;left:0;top:.32em;
  width:6px;height:1.05em;border-radius:99px;background:var(--bb-pink);
  margin:0;border:0;opacity:1;transform:none}
.bb .post_content h2::after,
.bb .post_content h2.sec::after{content:none;display:none}
/* 本文の見出し以外も、テーマ側の色指定に負けないようにしておく */
.bb .post_content{color:var(--bb-ink)}
.bb:not(.bb-post) .post_content h3{color:var(--bb-ink)}

/* .bb-post は <article> に付いている。div. を前置すると一致せず、
   テーマの飾り（見出しを囲む黒い枠）を打ち消せない。要素名は付けない。
   まとめ記事の見出しと囲みの見た目は、記事のHTMLに直接持たせてある。
   編集画面はこのCSSを読み込まないため、ここだけに書くと
   下書きを確認するときに素のHTMLに見えてしまう。
   こちらに残すのは、テーマが足す飾り（疑似要素）の打ち消しだけ。 */
.bb-post .post_content h2::before,
.bb-post .post_content h2::after,
.bb-post .post_content h3::before,
.bb-post .post_content h3::after{content:none;display:none}
.bb-post h2{text-wrap:balance}
.bb-post h2::before,.bb-post h2::after,
.bb-post h3::before,.bb-post h3::after{content:none;display:none}
/* 購入ボタンだけは、本文リンクの色と下線に上書きされないようにする */
.bb-post a.bb-btn,
.bb-post a.bb-btn:hover,
.bb-post a.bb-btn:visited{color:#fff;text-decoration:none}
/* 表。スマホでいちばん崩れやすいので、3つの原因をまとめて潰してある。

   ① まとめ記事の <article> は class="bb bb-post"。.bb-post だけに書いていたため、
      施設ページの表には何も当たらず、枠も余白も無いまま左端に貼りついていた。
   ② 施設ページの表は <div class="tblwrap"> で包まれていないものが多く、
      枠側に overflow を持たせる作りでは受け止められない。
      表そのものを display:block + overflow-x にして、包みが無くても収まるようにする。
   ③ セルが折り返して縦に伸び、スマホで極端に読みにくくなっていた。
      th だけ white-space:nowrap にしていたのも、幅を押し広げて画面外へ逃がす原因。
      折り返しを止めて横スクロールに寄せ、行の高さをそろえる。

   セルの中身が長い表（20字を超えるもの）は、横スクロールにしても読みにくい。
   そういう表は文章か箇条書きに直す。CSSでは解決しない。 */
/* ⚠️ 2026-09-23 に組み直した（オーナー指摘「線とかがなくて見にくい」「線を書くとビジーになる」）。
   それまでは**セルを1pxの枠で囲み、見出し行を薄いピンクで塗って**いた。
   枠が縦横に入ると、3列でも升目が12個できて目が散る。
   **横線だけにして、見出し行はピンクの下線1本で区切る。**塗りはやめた。

   ⚠️ **nowrap をやめた。**以前はセルを折り返さず横スクロールに逃がしていたが、
   スマホでは表が画面から出ていることに気づけない。
   **折り返しは word-break:auto-phrase に任せる**（日本語を文節で折る）。
   「無料になるのは」が「無料になるの／は」と切れていた原因がこれ。
   ⚠️ **見出し行だけは nowrap のまま。**列の幅を決めるのは見出しなので、
   ここが折れると列の割り当てが崩れる。**見出しの語は5文字までにする。**
   長い説明は表に入れず、表の前の文に書く。

   セルの中身が長い表（20字を超えるもの）は、折り返しても読みにくい。
   そういう表は文章か箇条書きに直す。CSSでは解決しない。 */
.bb .tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 22px}
.bb .tblwrap table{margin:0}
.bb .post_content table{border-collapse:collapse;font-size:14px;margin:0 0 22px;
  width:100%;max-width:100%;table-layout:auto}
.bb .post_content th,.bb .post_content td{border:0;border-bottom:1px solid var(--bb-rule);
  padding:11px 10px;text-align:left;vertical-align:top;line-height:1.75;
  word-break:auto-phrase}
/* 見出し行は塗らずに、ピンクの下線1本で区切る。
   文字色も指定する。指定しないと、SWELLが th に入れる白文字がそのまま残って読めなくなる
   （牧場のまとめ記事で実際に起きた）。 */
.bb .post_content thead th{background:none;color:var(--bb-ink-mute);font-weight:800;
  font-size:12.5px;letter-spacing:.04em;white-space:nowrap;padding-bottom:8px;
  border-bottom:2px solid var(--bb-pink)}
/* 1列目は施設名。ここだけ濃くすると、横線が薄くても行を追える */
.bb .post_content tbody td:first-child{font-weight:700;color:var(--bb-ink)}
.bb .post_content tbody tr:last-child td{border-bottom:0}
@media(max-width:480px){
  .bb .post_content table{font-size:13px}
  .bb .post_content th,.bb .post_content td{padding:10px 6px}
}

.bb .points{background:var(--bb-pink-soft);border-radius:18px;padding:22px 24px;margin:0 0 34px}
.bb .points h2{font-size:13.5px;color:var(--bb-pink-dark);margin:0 0 12px;font-weight:800;
  letter-spacing:.05em;border:0;padding:0;background:none}
.bb .points ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.bb .points li{font-size:14.5px;color:var(--bb-ink-soft);padding-left:1.6em;position:relative;margin:0}
.bb .points li::before{content:"";position:absolute;left:0;top:.62em;width:9px;height:9px;
  border-radius:50%;background:var(--bb-pink)}
.bb .points strong{color:var(--bb-ink)}

.bb .callout{border-radius:16px;padding:17px 20px;font-size:14.5px;color:var(--bb-ink-soft);margin:0 0 18px}
.bb .callout.warn{background:var(--bb-amber-soft)}
.bb .callout.tip{background:var(--bb-mint-soft)}
/* ラベルの色は枠の色に合わせる。
   緑のまま黄色い枠に載せると、色が2つ喧嘩して読みにくい。
   白抜き文字が薄くならないよう、枠より濃い色を使う。 */
.bb .callout .lb{font-size:11px;font-weight:800;letter-spacing:.08em;display:inline-block;
  border-radius:99px;padding:2px 10px;margin-bottom:8px;background:var(--bb-ink-mute);color:#fff}
.bb .callout.warn .lb{background:var(--bb-amber-deep)}
.bb .callout.tip .lb{background:var(--bb-mint-deep)}
/* 見出しに使う <b> は枠の直下にあるものだけ。
   > を付けないと、本文中の強調まで改行されて行がずれる。 */
.bb .callout > b{color:var(--bb-ink);display:block;margin-bottom:6px;font-size:15px}
.bb .callout p b{color:var(--bb-ink)}
.bb .callout p{margin:0}
.bb .callout ul{margin:8px 0 0;padding-left:1.2em;display:flex;flex-direction:column;gap:7px}

.bb .plan{background:var(--bb-surface);border-radius:18px;padding:8px 22px;box-shadow:var(--bb-shadow);margin:0 0 16px}
/* 時刻（.tm）があるときだけ2列にする。時刻を省いた手順を書いたとき、
   見出しが4.6remの時刻欄に押し込まれて1文字ずつ折り返していた（2026-08-30）。 */
.bb .step{display:block;padding:16px 0;border-bottom:1px solid var(--bb-rule)}
.bb .step:has(.tm){display:grid;grid-template-columns:4.6rem 1fr;gap:4px 14px}
.bb .step:last-child{border-bottom:0}
.bb .step .tm{font-weight:800;color:var(--bb-pink-dark);font-size:14px;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.bb .step .bd{min-width:0}
.bb .step .ttl{font-weight:800;font-size:14.5px;margin-bottom:3px;display:block}
.bb .step .dsc{font-size:13.5px;color:var(--bb-ink-soft);line-height:1.75;display:block}
.bb .plan-note{font-size:12.5px;color:var(--bb-ink-mute);margin:0 0 24px;padding:0 4px;line-height:1.7}

/* .scroll は「名前・記号・理由」の3列で組んだ専用の部品。
   理由の列は折り返して読ませる作りなので、上の汎用の表の指定
   （display:block・折り返し禁止・枠線）をここで全部打ち消す。
   打ち消しを書き忘れると、理由の列が1行に伸びて画面外へ逃げる。 */
.bb .scroll{overflow-x:auto;margin:0 0 22px;background:var(--bb-surface);border-radius:18px;
  box-shadow:var(--bb-shadow);padding:6px 18px}
.bb .scroll table,
.bb .post_content .scroll table{border-collapse:collapse;width:100%;font-size:14px;
  min-width:19rem;margin:0;display:table;max-width:none;overflow:visible}
.bb .scroll td,
.bb .post_content .scroll td{text-align:left;padding:13px 10px;
  border:0;border-bottom:1px solid var(--bb-rule);
  vertical-align:middle;background:none;white-space:normal}
.bb .scroll tr:last-child td{border-bottom:0}
.bb .scroll td.age,
.bb .post_content .scroll td.age{font-weight:800;white-space:nowrap;width:5.4rem;font-size:13.5px}
.bb .scroll td.mark{font-size:24px;font-weight:800;text-align:center;width:2.8rem}
.bb .scroll td.why{color:var(--bb-ink-soft);font-size:13.5px;line-height:1.75}
.bb .m-b{color:var(--bb-mint)} .bb .m-l{color:var(--bb-ink-mute)}
.bb .scroll tr.on{background:var(--bb-pink-soft)}

.bb .card{background:var(--bb-surface);border-radius:18px;padding:20px 22px;
  box-shadow:var(--bb-shadow);margin:0 0 20px}
.bb .card dl{margin:0}
.bb .card .f{display:grid;grid-template-columns:6.8rem 1fr;gap:3px 12px;padding:12px 0;
  border-bottom:1px solid var(--bb-rule);font-size:14px}
.bb .card .f:last-child{border-bottom:0}
.bb .card .f dt{color:var(--bb-ink-mute);font-weight:700;margin:0}
.bb .card .f dd{margin:0}
.bb .card .f dd small{display:block;color:var(--bb-ink-mute);font-size:12.5px;margin-top:3px}
.bb .card .f dd a{color:var(--bb-pink-dark);font-weight:700}

.bb .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.4rem,1fr));gap:10px;margin:0 0 22px}
.bb .tile{background:var(--bb-surface);border-radius:16px;padding:15px 14px;text-align:center;
  box-shadow:var(--bb-shadow)}
.bb .tile .t{font-size:13px;font-weight:800;margin-bottom:4px}
.bb .tile .s{font-size:12px;font-weight:700}
.bb .tile .s.yes{color:var(--bb-mint)} .bb .tile .s.cond{color:var(--bb-amber)}
.bb .tile .s.no{color:var(--bb-ink-mute)}

/* まとめ記事の目次（2026-09-23 新設）。
   ⚠️ SWELLの目次が空だったので自前で組んでいる。理由は includes/template.php の
   babytto_toc() のコメントにある。
   ⚠️ **tools/draft_preview.py にも同じ見た目を写してある。**片方だけ直さない。
   囲みは塗りだけで、枠線は入れない（表と同じ方針＝線を増やさない）。 */
.bb .bb-toc{background:var(--bb-pink-soft);border-radius:18px;padding:20px 22px;margin:0 0 30px}
.bb .bb-toc__ttl{font-size:13px;font-weight:800;color:var(--bb-pink-dark);
  letter-spacing:.06em;margin:0 0 12px}
.bb .bb-toc ol{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:9px}
.bb .bb-toc li{position:relative;padding-left:1.9em;margin:0;font-size:14.5px;line-height:1.65}
/* 話の節（結論・料金の比べ方など）。短い横棒だけを出す */
.bb .bb-toc li:before{content:"";position:absolute;left:.25em;top:.72em;
  width:.7em;height:2px;border-radius:2px;background:var(--bb-pink);opacity:.55}
/* ⚠️ 施設の節（「1. 施設名」の形で書いた見出し）。番号をピンクの丸で出す。
   **番号が付いている＝施設のページへ行ける、と目で分かるようにするため**
   （2026-09-23 オーナー指摘）。話の節と混ざらないよう、印の形そのものを変えている。 */
.bb .bb-toc li.is-spot:before{content:none}
.bb .bb-toc__no{position:absolute;left:0;top:.1em;
  width:1.45em;height:1.45em;border-radius:50%;background:var(--bb-pink);color:#fff;
  font-size:11.5px;font-weight:800;display:flex;align-items:center;justify-content:center}
.bb .bb-toc li.is-spot{font-weight:800}
.bb .bb-toc a{color:var(--bb-ink-soft);text-decoration:none;font-weight:700}
.bb .bb-toc li.is-spot a{color:var(--bb-ink)}
.bb .bb-toc a:hover{color:var(--bb-pink-dark);text-decoration:underline}
/* 見出しへ飛んだとき、固定ヘッダーの下に隠れないようにする */
.bb .post_content h2[id]{scroll-margin-top:84px}
