@charset "UTF-8";

/* ==========================================
   コラム本文のブロック用スタイル
   - 表示側（header.php で読み込み）とブロックエディタ（add_editor_style）の両方で使う
   - 色はサイト本体（styles.css）とコラムテーマ（style.css）の色に合わせる
   - このテーマは wp_head() を呼ばないため、WordPress 標準のブロック用 CSS は表示側に出ない。
     ブロックの見た目は、このファイルだけで完結させる
========================================== */

body {
  --olc-green: #004030;      /* メニュー・フッター */
  --olc-teal: #007b79;       /* 見出し */
  --olc-turquoise: #009c9a;  /* アクセント・ホバー */
  --olc-teal-soft: #e6f3f2;
  --olc-mark: rgba(0, 155, 144, 0.206); /* 本文の強調（styles.css と同じ） */
  --olc-gold: #a9803f;       /* WEB予約ボタン */
  --olc-gold-soft: #f8f3ea;
  --olc-coral: #ea7f68;      /* 休診日 */
  --olc-coral-soft: #fcedea;
  --olc-bg: #f8fafc;
  --olc-bg2: #eff3f5;
  --olc-line: #e2e8f0;
  --olc-text: #2b303a;
  --olc-sub: #718096;
}

/* ------------------------------------------
   本文の基本要素
------------------------------------------ */
.col-single-body a:not(.wp-block-button__link) {
  color: var(--olc-teal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.col-single-body a:not(.wp-block-button__link):hover {
  color: var(--olc-turquoise);
}

.col-single-body strong {
  font-weight: 600;
}

.col-single-body p strong {
  background: linear-gradient(transparent 60%, var(--olc-mark) 60%);
}

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--olc-line);
  margin: 3em 0;
}

/* 文字の書式「PCだけ改行」「スマホだけ改行」：選んだ文字の後ろで、その幅のときだけ改行する
   （境目はサイト本体の .pc / .sp と同じ 768px） */
@media (min-width: 768px) {
  .olc-br-pc::after {
    content: "\A";
    white-space: pre;
  }
}

@media (max-width: 767px) {
  .olc-br-sp::after {
    content: "\A";
    white-space: pre;
  }
}

/* WordPress のプリセットの変数（theme.json の色・文字サイズ・書体と同じ値）
   ブロックの設定（リンクの色など）が var(--wp--preset--…) を使うが、表示側では標準の CSS がこれを定義しないので、ここで定義する。
   theme.json の値を変えたら、ここも合わせて変える */
:root {
  --wp--preset--color--green: #004030;
  --wp--preset--color--teal: #007b79;
  --wp--preset--color--turquoise: #009c9a;
  --wp--preset--color--teal-soft: #e6f3f2;
  --wp--preset--color--gold: #a9803f;
  --wp--preset--color--gold-soft: #f8f3ea;
  --wp--preset--color--coral: #ea7f68;
  --wp--preset--color--coral-soft: #fcedea;
  --wp--preset--color--gray: #f8fafc;
  --wp--preset--color--light-gray: #f8f8f8;
  --wp--preset--color--body-text: #2b303a;
  --wp--preset--color--sub: #718096;
  --wp--preset--color--white: #ffffff;
  --wp--preset--font-size--small: 14px;
  --wp--preset--font-size--medium: 16px;
  --wp--preset--font-size--large: 18px;
  --wp--preset--font-size--x-large: 22px;
  --wp--preset--font-family--sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --wp--preset--font-family--shippori-mincho: "Shippori Mincho", serif;
  --wp--preset--font-family--kosugi-maru: "Kosugi Maru", sans-serif;
}

/* WordPress 標準のレイアウト（グループの「グリッド」「横並び」「縦積み」など）の土台
   表示側では WordPress 標準の CSS（theme.json から作られる土台の CSS）を読み込まないので、同じ指定をここに書く。
   列数・最小の列幅・間隔・子の「列をまたぐ」などブロックごとの指定は、functions.php の 18（footer.php で出力）が出す */
.is-layout-grid {
  display: grid;
  gap: 24px; /* WordPress が出す列の計算（minmax の式）も 24px を前提にしている */
}

.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

/* 中の要素の余白は、gap で取る（段落などの下の余白を足さない） */
:is(.is-layout-grid, .is-layout-flex) > * {
  margin: 0;
}

/* 横並び：ブロックの設定（折り返し・縦の揃え・横の揃え） */
.is-layout-flex.is-nowrap { flex-wrap: nowrap; }
.is-layout-flex.is-vertical { flex-direction: column; align-items: flex-start; }
.is-layout-flex.is-content-justification-left { justify-content: flex-start; }
.is-layout-flex.is-content-justification-center { justify-content: center; }
.is-layout-flex.is-content-justification-right { justify-content: flex-end; }
.is-layout-flex.is-content-justification-space-between { justify-content: space-between; }
.is-layout-flex.is-vertical.is-content-justification-center { align-items: center; }
.is-layout-flex.is-vertical.is-content-justification-right { align-items: flex-end; }
.is-layout-flex.is-vertical.is-content-justification-stretch { align-items: stretch; }

/* WordPress 標準の「カラム」と画像の配置
   表示側では WordPress 標準の CSS を読み込まないので（header.php に wp_head がない）、標準と同じ指定をここに書く。
   横並び⇔縦積みの切り替え幅も標準と同じ 782px（エディタのプレビューと合わせる） */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: normal;
  gap: 2em;
  box-sizing: border-box;
  margin: 0 0 1.75em;
}

.wp-block-columns.are-vertically-aligned-top { align-items: flex-start; }
.wp-block-columns.are-vertically-aligned-center { align-items: center; }
.wp-block-columns.are-vertically-aligned-bottom { align-items: flex-end; }

.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.wp-block-column.is-vertically-aligned-top { align-self: flex-start; }
.wp-block-column.is-vertically-aligned-center { align-self: center; }
.wp-block-column.is-vertically-aligned-bottom { align-self: flex-end; }
.wp-block-column.is-vertically-aligned-stretch { align-self: stretch; }
.wp-block-column:is(.is-vertically-aligned-top, .is-vertically-aligned-center, .is-vertically-aligned-bottom) { width: 100%; }

/* カラムの中の最後の要素の下に余白を残さない */
.wp-block-column > :last-child { margin-bottom: 0; }

@media (max-width: 781px) {
  /* スマホ：縦に積む（「モバイルでは縦に並べる」をオフにしたものは横並びのまま） */
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (min-width: 782px) {
  .wp-block-columns { flex-wrap: nowrap; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 0; flex-grow: 1; }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] { flex-grow: 0; }
}

.wp-block-columns.is-not-stacked-on-mobile { flex-wrap: nowrap; }
.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column { flex-basis: 0; flex-grow: 1; }
.wp-block-columns.is-not-stacked-on-mobile > .wp-block-column[style*="flex-basis"] { flex-grow: 0; }

/* 画像：幅からはみ出さない。中央・左・右の配置 */
.wp-block-image img {
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.wp-block-image:is(.aligncenter, .alignleft, .alignright) { display: table; }
.wp-block-image:is(.aligncenter, .alignleft, .alignright) > figcaption { display: table-caption; caption-side: bottom; }
.wp-block-image.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-block-image.alignleft { float: left; margin: 0.5em 1em 0.5em 0; }
.wp-block-image.alignright { float: right; margin: 0.5em 0 0.5em 1em; }

/* 画像のスマホ版（functions.php の onelove_image_sp_picture() が img を <picture> で囲む）。囲んでもレイアウトが変わらないようにする */
.olc-picture {
  display: contents;
}

/* 上付き・下付き（書式の「上付き」「下付き」＝ sup・sub）
   サイズを両方 0.65em にそろえ、位置は vertical-align ではなく position でずらす
   （サイトの CSS の打ち消しに左右されず、行の高さも広がらない） */
:is(sup, sub) {
  position: relative;
  font-size: 0.65em;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.6em;
}

sub {
  bottom: -0.3em;
}

/* 文字の書式「マーカー」「下線」（どのブロックの文字でも使える） */
.olc-marker {
  background: linear-gradient(transparent 60%, var(--olc-mark, rgba(0, 155, 144, 0.206)) 60%);
}

.olc-underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* ------------------------------------------
   見出しのスタイル：タグ（h2・h3 など）はそのままで、見た目だけを切り替える
   - 大見出しの見た目（is-style-olc-look-large）：本文の h2 と同じ
   - 中見出しの見た目（is-style-olc-look-medium）：本文の h3 と同じ
   - アイコン付き（is-style-olc-look-flag）：アイコンと色を選べる
------------------------------------------ */
:is(h1, h2, h3, h4, h5, h6).is-style-olc-look-large {
  position: relative;
  margin: 64px 0 32px;
  padding: 24px 24px 24px 48px;
  border: none;
  background: linear-gradient(90deg, #f1e6d2 0%, #fff 100%);
  font-family: var(--serif, "Shippori Mincho", serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  color: #444;
}

:is(h1, h2, h3, h4, h5, h6).is-style-olc-look-large::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -40px;
  width: 72px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--olc-teal, #007b79);
}

:is(h1, h2, h3, h4, h5, h6).is-style-olc-look-medium {
  position: static;
  margin: 2.2em 0 1em;
  padding: 0 0 0.4em;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  background: none;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.6;
  color: #007b79;
}

:is(h1, h2, h3, h4, h5, h6).is-style-olc-look-medium::before {
  content: none;
}

/* アイコン付き（is-style-olc-look-flag）：左にアイコン、太字、下に細い線
   アイコンは images/heading-icons/ の SVG の形だけを使い、色はブロックの設定で選んだ色で塗る */
/* アイコンは 42px。文字の1行目がアイコンの上下中央に来るよう、上の余白を (アイコンの大きさ − 1行の高さ) ÷ 2 にする
   （2行以上になったときは、2行目以降がアイコンの右に続く）。下の線はアイコンの下から 10px 離す */
:is(h1, h2, h3, h4, h5, h6).is-style-olc-look-flag {
  --olc-icon-size: 42px;
  --olc-icon-offset: calc((var(--olc-icon-size) - 1.5em) / 2);
  position: relative;
  margin: 2.4em 0 1em;
  padding: var(--olc-icon-offset) 0 calc(var(--olc-icon-offset) + 10px) calc(var(--olc-icon-size) + 12px);
  border: none;
  border-bottom: 1px solid #ddd;
  background: none;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.5;
  color: #222;
}

:is(h1, h2, h3, h4, h5, h6).is-style-olc-look-flag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--olc-icon-size);
  height: var(--olc-icon-size);
  transform: none;
  /* アイコンと色はブロックの設定で選ぶ（未選択なら旗・コーラル）。各アイコン・色の指定は functions.php が出力 */
  background: var(--olc-icon-color, #ea7f68);
  -webkit-mask: var(--olc-icon, url("images/heading-icons/flag.svg")) center / contain no-repeat;
  mask: var(--olc-icon, url("images/heading-icons/flag.svg")) center / contain no-repeat;
}

@media (max-width: 767px) {
  :is(h1, h2, h3, h4, h5, h6).is-style-olc-look-large {
    padding-left: 36px;
    font-size: 1.4rem;
  }

  :is(h1, h2, h3, h4, h5, h6).is-style-olc-look-large::before {
    left: -14px;
    width: 38px;
  }

  :is(h1, h2, h3, h4, h5, h6).is-style-olc-look-flag {
    font-size: 1.15rem;
  }
}

/* ------------------------------------------
   段落のスタイル
------------------------------------------ */

/* 注記（記事冒頭の免責など） */
.is-style-olc-note {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--olc-sub);
  background: var(--olc-bg);
  border: 1px solid var(--olc-line);
  border-radius: 6px;
  padding: 0.9em 1.2em;
}

/* リード文 */
.is-style-olc-lead {
  font-size: 1.08rem;
  line-height: 2;
  padding-bottom: 1.5em;
  border-bottom: 1px dashed var(--olc-line);
}

/* 各見出し直後のリード文（旧「結論」スタイル）
   ラベルと枠はやめ、普通の段落と同じ見た目にする（前に「結論」で貼った記事もこの見た目になる） */
/* 関連ページへの案内（→ リンク） */
.is-style-olc-linkbox {
  background: var(--olc-bg);
  border-left: 4px solid var(--olc-teal);
  border-radius: 0 6px 6px 0;
  padding: 1em 1.3em;
  line-height: 1.8;
}

.is-style-olc-linkbox a {
  font-weight: 600;
  white-space: nowrap;
}

.is-style-olc-linkbox a::after {
  content: " →";
}

/* テキストリンク（→）：WEB予約・電話などを、下線なしの文字リンクで横に並べる。右に丸い矢印アイコン */
p.is-style-olc-textlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em 2.4em;
  line-height: 1.8;
}

p.is-style-olc-textlinks a:not(.wp-block-button__link) {
  color: var(--olc-teal);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

/* 矢印：ティールの丸に白い「→」 */
p.is-style-olc-textlinks a:not(.wp-block-button__link)::after {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.5em;
  border-radius: 50%;
  background: var(--olc-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 70% no-repeat;
  vertical-align: -0.38em;
}

p.is-style-olc-textlinks a:not(.wp-block-button__link):hover {
  opacity: 0.7;
}

/* 公開前に確認・削除する箇所（医院確認・制作メモ） */
.is-style-olc-todo {
  position: relative;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #8a3b2a;
  background: var(--olc-coral-soft);
  border: 1px dashed var(--olc-coral);
  border-radius: 6px;
  padding: 2.2em 1.2em 0.9em;
}

.is-style-olc-todo::before {
  content: "公開前に確認して削除";
  position: absolute;
  left: 1.2em;
  top: 0.7em;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--olc-coral);
  letter-spacing: 0.05em;
}

/* ------------------------------------------
   リストのスタイル
------------------------------------------ */

/* チェックリスト */
.is-style-olc-check {
  list-style: none;
  background: #fff;
  border: 1px solid var(--olc-line);
  border-radius: 8px;
  padding: 1.3em 1.5em;
}

.is-style-olc-check > li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 0.7em;
  line-height: 1.8;
}

.is-style-olc-check > li:last-child {
  margin-bottom: 0;
}

.is-style-olc-check > li::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 0.35em;
  width: 0.45em;
  height: 0.85em;
  border-right: 2px solid var(--olc-teal);
  border-bottom: 2px solid var(--olc-teal);
  transform: rotate(45deg);
}

/* チェックリスト（独自ブロック onelove/checklist）
   白いカードの左上に、しおりのアイコン（帯 images/icon_bookmark_band.svg と、色を選べるリボン images/icon_bookmark_ribbon.svg）を上辺にかけて置く。行の間に区切り線
   行の中では、太字・マーカー・下線・文字色（ハイライト）の書式を部分的に使える */
.olc-checklist li strong {
  font-weight: bold;
}
.olc-checklist {
  position: relative;
  margin: 2.6em 0 2em;
  padding: 2.6em 3em 1.6em 4.5em;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ::before＝帯と「Check!」の文字（images/icon_bookmark_band.svg。色は固定）
   ::after＝しおり（リボン）。images/icon_bookmark_ribbon.svg の形で切り抜き、色は --olc-icon-color（見出しのアイコンと同じ色の一覧。
   ブロックのサイドバー「しおりの色」で選ぶと olc-icon-color--〇〇 のクラスが付く）。チェックマークはリボンの形の穴 */
.olc-checklist::before,
.olc-checklist::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 1.2em;
  width: 178px; /* 画像の比率（168×49）どおり、高さ 52px に合わせた幅 */
  height: 52px;
}

.olc-checklist::before {
  background: url("images/icon_bookmark_band.svg?1") left center / contain no-repeat;
}

.olc-checklist::after {
  background: var(--olc-icon-color, #ea7f68);
  -webkit-mask: url("images/icon_bookmark_ribbon.svg?1") left center / contain no-repeat;
  mask: url("images/icon_bookmark_ribbon.svg?1") left center / contain no-repeat;
}

.olc-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

.olc-checklist li {
  margin: 0;
  padding: 0.75em 0;
  border-bottom: 1px solid #ddd;
  font-weight: normal; /* 行の中で太字にした部分が目立つよう、行全体は普通の太さ */
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}

@media (max-width: 600px) {
  .olc-checklist {
    padding: 2.4em 1.2em 1.2em;
  }

  .olc-checklist::before,
  .olc-checklist::after {
    left: 1em;
    width: 151px;
    height: 44px;
  }

  .olc-checklist li {
    font-size: 1rem;
  }
}

/* 番号付きの手順・要因 */
.is-style-olc-steps {
  list-style: none;
  counter-reset: olc-step;
  padding: 0;
  border: none;
  background: none;
}

.is-style-olc-steps > li {
  counter-increment: olc-step;
  position: relative;
  background: #fff;
  border: 1px solid var(--olc-line);
  border-radius: 8px;
  padding: 1.1em 1.3em 1.1em 64px; /* 左は番号（48px）の分。文字サイズを変えてもずれないよう px */
  margin-bottom: 1em;
  line-height: 1.8;
}

/* 番号：枠の左上の角にぴったり付けた四角形（ゴールド・丸ゴシック 24px）。右下だけ角丸（左上は枠の角丸に合わせる） */
.is-style-olc-steps > li::before {
  content: counter(olc-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 7px 0 15px 0;
  background: var(--olc-gold);
  color: #fff;
  font-family: "Kosugi Maru", sans-serif;
  font-weight: normal;
  font-size: 24px;
  line-height: 48px;
  text-align: center;
}

.is-style-olc-steps > li strong {
  display: block;
  color: var(--olc-green);
  font-size: 1.05em; /* 行の文字サイズ（S・M・L・LL）に合わせて大きさが変わるよう em */
  margin-bottom: 0.2em;
}

/* ------------------------------------------
   表のスタイル
------------------------------------------ */
.wp-block-table.is-style-olc-table,
.wp-block-table.is-style-olc-price {
  margin: 0 0 2em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.is-style-olc-table table,
.is-style-olc-price table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.7;
}

.is-style-olc-table th,
.is-style-olc-table td,
.is-style-olc-price th,
.is-style-olc-price td {
  border: 1px solid var(--olc-line);
  padding: 0.8em 1em;
  text-align: left;
  vertical-align: middle;
}

.is-style-olc-table thead th,
.is-style-olc-price thead th {
  background: var(--olc-green);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.is-style-olc-table tbody td:first-child,
.is-style-olc-price tbody td:first-child {
  background: #e9f3ee; /* 薄いグリーン（これまでの #eff3f5 と同じくらいの薄さ） */
  font-weight: 600;
  color: var(--olc-green);
  white-space: nowrap;
}

/* 比較表：列どうしを比べる表。1列目を見出し扱いにせず、各列を同じ幅・同じ見た目にする */
.wp-block-table.is-style-olc-compare {
  margin: 0 0 2em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.is-style-olc-compare table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.7;
}

.is-style-olc-compare th,
.is-style-olc-compare td {
  border: 1px solid var(--olc-line);
  padding: 0.8em 1em;
  text-align: left;
  vertical-align: top;
}

.is-style-olc-compare thead th {
  background: var(--olc-green);
  color: #fff;
  font-weight: 600;
}

/* デフォルト（スタイルを選んでいない表）と「横線のみ」
   - スタイル欄の「デフォルト」を押すと is-style-default が付くので、それも「選んでいない表」と同じ扱いにする
   - WordPress 標準の「ストライプ」「デフォルト」（is-style-stripes・is-style-regular。選択肢からは外した）が付いたままの表も同じ扱いにする。
     エディタでは標準の「ストライプ」の CSS（セルの線を透明にする）が読み込まれるので、figure を付けて詳細度を上げ、それより優先する
   - 線はすべて 1px #ddd、セルは白、文字は黒。ヘッダーの下・フッターの上は 2px #555
   - 線はセル（th・td）に付ける。エディタでは WordPress 標準の表の CSS（thead の下・tfoot の上に 3px の線）が
     読み込まれるので、thead・tfoot の線は消しておく（太い線が優先されるため） */
figure.wp-block-table:is(:not([class*="is-style-"]), .is-style-default, .is-style-regular, .is-style-stripes),
.wp-block-table.is-style-olc-lines {
  margin: 0 0 2em;
  border: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

figure.wp-block-table:is(:not([class*="is-style-"]), .is-style-default, .is-style-regular, .is-style-stripes) table,
.is-style-olc-lines table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.7;
}

figure.wp-block-table:is(:not([class*="is-style-"]), .is-style-default, .is-style-regular, .is-style-stripes) :is(thead, tfoot),
.is-style-olc-lines :is(thead, tfoot) {
  border: none;
}

figure.wp-block-table:is(:not([class*="is-style-"]), .is-style-default, .is-style-regular, .is-style-stripes) :is(th, td),
.is-style-olc-lines :is(th, td) {
  border: 1px solid #ddd;
  padding: 0.8em 1em;
  background: #fff;
  color: #000;
  vertical-align: middle;
}

figure.wp-block-table:is(:not([class*="is-style-"]), .is-style-default, .is-style-regular, .is-style-stripes) thead :is(th, td),
.is-style-olc-lines thead :is(th, td) {
  border-bottom: 2px solid #555;
}

figure.wp-block-table:is(:not([class*="is-style-"]), .is-style-default, .is-style-regular, .is-style-stripes) tfoot :is(th, td),
.is-style-olc-lines tfoot :is(th, td) {
  border-top: 2px solid #555;
}

/* 横線のみ：ノートの罫線のように、各セルの下の線だけを残す（ヘッダーの下・フッターの上の 2px は残す） */
.is-style-olc-lines :is(th, td) {
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

/* 料金表：金額の列を強調 */
.is-style-olc-price tbody td:nth-child(2) {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--olc-teal);
  white-space: nowrap;
}

/* 列の揃え（表のツールバー「列の配置を変更」）。上の text-align: left より優先する */
.wp-block-table :is(td, th).has-text-align-center { text-align: center; }
.wp-block-table :is(td, th).has-text-align-right { text-align: right; }

/* セルごとの背景色・文字色・揃え・太さ（エディタの「セルの設定」）は、functions.php の onelove_table_cell_css() が出力 */

.wp-block-table figcaption {
  font-size: 0.8rem;
  color: var(--olc-sub);
  margin-top: 0.5em;
}

/* ------------------------------------------
   ボタン
------------------------------------------ */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 1.5em 0;
}

.wp-block-buttons > .wp-block-button {
  margin: 0;
}

.wp-block-buttons + p.is-style-olc-textlinks {
  margin-top: -0.4em;
}

.wp-block-button .wp-block-button__link {
  display: inline-block;
  box-sizing: border-box;
  padding: 0.95em 2.2em;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover {
  opacity: 0.85;
}

/* WEB予約（サイト本体の予約ボタンと同じゴールド） */
.is-style-olc-reserve .wp-block-button__link {
  background: var(--olc-gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 電話 */
.is-style-olc-tel .wp-block-button__link {
  background: var(--olc-green);
  color: #fff;
}

.is-style-olc-tel .wp-block-button__link::before {
  content: "TEL ";
  font-size: 0.8em;
  letter-spacing: 0.1em;
}

/* 詳しく見る（枠線）：右に丸い矢印アイコン（テキストリンク（→）と同じ形） */
.is-style-olc-outline .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  background: #fff;
  color: var(--olc-teal);
  border: 2px solid var(--olc-teal);
}

.is-style-olc-outline .wp-block-button__link::after {
  content: "";
  flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--olc-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12.5 6l6 6-6 6'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ------------------------------------------
   グループのスタイル
------------------------------------------ */

/* 背景を画面幅いっぱいに：中身の幅はそのまま、背景色だけをブラウザの左右の端まで伸ばす
   グループの幅は変えず、同じ色の影を左右に広げて上下を切り取る（横スクロールやレイアウトのずれが起きない）
   背景色はパレットの色（has-*-background-color）から取る */
.is-style-olc-fullbleed {
  --olc-fullbleed-bg: transparent;
  box-shadow: 0 0 0 100vmax var(--olc-fullbleed-bg);
  clip-path: inset(0 -100vmax);
  padding-top: 2.5em;
  padding-bottom: 2.5em;
}

.is-style-olc-fullbleed.has-green-background-color { --olc-fullbleed-bg: #004030; }
.is-style-olc-fullbleed.has-teal-background-color { --olc-fullbleed-bg: #007b79; }
.is-style-olc-fullbleed.has-turquoise-background-color { --olc-fullbleed-bg: #009c9a; }
.is-style-olc-fullbleed.has-teal-soft-background-color { --olc-fullbleed-bg: #e6f3f2; }
.is-style-olc-fullbleed.has-gold-background-color { --olc-fullbleed-bg: #a9803f; }
.is-style-olc-fullbleed.has-gold-soft-background-color { --olc-fullbleed-bg: #f8f3ea; }
.is-style-olc-fullbleed.has-coral-background-color { --olc-fullbleed-bg: #ea7f68; }
.is-style-olc-fullbleed.has-coral-soft-background-color { --olc-fullbleed-bg: #fcedea; }
.is-style-olc-fullbleed.has-gray-background-color { --olc-fullbleed-bg: #f8fafc; }
.is-style-olc-fullbleed.has-light-gray-background-color { --olc-fullbleed-bg: #f8f8f8; }
.is-style-olc-fullbleed.has-body-text-background-color { --olc-fullbleed-bg: #2b303a; }
.is-style-olc-fullbleed.has-sub-background-color { --olc-fullbleed-bg: #718096; }
.is-style-olc-fullbleed.has-white-background-color { --olc-fullbleed-bg: #ffffff; }

/* 背景画像があるとき：同じ背景を画面幅いっぱいの下敷きにして描く（中身の幅はそのまま） */
.is-style-olc-fullbleed[style*="background-image"] {
  position: relative;
  isolation: isolate;
  box-shadow: none;
  clip-path: none;
}

.is-style-olc-fullbleed[style*="background-image"]::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: inherit;
  z-index: -1;
}

/* 重ねる色（グループの設定「重ねる色」）：背景画像の上、中身の下に、色を透過率つきで重ねる
   色と濃さはグループの style の CSS 変数（--olc-overlay-color / --olc-overlay-opacity）で指定される */
.has-olc-overlay {
  position: relative;
  isolation: isolate;
}

.has-olc-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--olc-overlay-color, #000);
  opacity: var(--olc-overlay-opacity, 0.5);
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

/* 「背景を画面幅いっぱいに」のときは、重ねる色も画面幅いっぱいに */
.is-style-olc-fullbleed.has-olc-overlay::after {
  left: 50%;
  right: auto;
  width: 100vw;
  transform: translateX(-50%);
}

.is-style-olc-fullbleed > :first-child {
  margin-top: 0;
}

.is-style-olc-fullbleed > :last-child {
  margin-bottom: 0;
}

/* 予約の案内（本文中） */
.is-style-olc-cta {
  background: var(--olc-gold-soft);
  border: 1px solid rgba(169, 128, 63, 0.35);
  border-radius: 10px;
  padding: 1.6em 1.5em 0.4em;
  text-align: center;
  margin: 2em 0;
}

.is-style-olc-cta p {
  margin: 0 0 0.5em;
  line-height: 1.8;
}

/* ご予約・ご相談
   - 外枠（.is-style-olc-contact）＝影付きのカード。上段（.olc-contact__main）と下段（.olc-contact__info）の2段
   - 上段：薄いグリーンの背景。人物写真を左下に置き、頭を枠の上にはみ出させる。右に見出し・文・ボタン
   - 下段：診療時間・所在地。項目名は左右が丸い白地のラベル
   - 外枠を大きさの基準（container）にし、中身はすべて cqi で指定する（PC幅でブラウザ幅が変わっても比率が崩れない）
   - スマホでは、文・ボタンを上、人物を下に置く（はみ出させない） */
.is-style-olc-contact {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  margin: 7% 0 2.5em;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 64, 48, 0.14), 0 1px 4px rgba(0, 0, 0, 0.06);
  color: var(--olc-text);
}

.is-style-olc-contact .olc-contact__main {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #f1f8f5 0%, #d9ede6 100%);
}

.is-style-olc-contact .olc-contact__person {
  position: absolute;
  left: 4cqi;
  bottom: 0;
  width: 27cqi;
  margin: 0;
  pointer-events: none;
}

.is-style-olc-contact .olc-contact__person img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 812;
}

.is-style-olc-contact .olc-contact__body {
  margin: 0 0 0 34cqi;
  padding: 5cqi 5cqi 5cqi 0;
}

.is-style-olc-contact h2,
.is-style-olc-contact h3 {
  /* サイト本体と同じ明朝体（styles.css の --serif。Google Fonts は htmlheader.html で読み込み済み） */
  font-family: var(--serif, "Shippori Mincho", serif);
  font-weight: 400; /* Shippori Mincho の一番細い太さ（300 はない） */
  font-size: 4.2cqi;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--olc-green);
  text-align: center;
  margin: 0 0 1.2cqi;
  padding: 0;
  background: none;
  border: none;
}

.is-style-olc-contact .olc-contact__body p {
  font-size: 1.85cqi;
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 2.8cqi;
}

/* ボタン：1行目が大きい文字、2行目（改行の後）が小さい補足 */
.is-style-olc-contact .wp-block-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1.6cqi;
  width: 100%;
  margin: 0;
}

.is-style-olc-contact .wp-block-button {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

.is-style-olc-contact .wp-block-button__link {
  position: relative;
  display: block;
  width: 100%;
  padding: 1.5cqi 4.4cqi 1.5cqi 2.4cqi;
  border-radius: 100vmax;
  font-size: 1.4cqi;
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 0.4cqi 1.2cqi rgba(0, 0, 0, 0.12);
}

.is-style-olc-contact .wp-block-button__link::first-line {
  font-size: 2.2cqi;
  font-weight: bold;
  letter-spacing: 0.05em;
}

/* 右端の「>」 */
.is-style-olc-contact .wp-block-button__link::after {
  content: "";
  position: absolute;
  right: 2.2cqi;
  top: 50%;
  width: 0.9cqi;
  height: 0.9cqi;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.is-style-olc-contact .is-style-olc-reserve .wp-block-button__link {
  background: var(--olc-gold);
  color: #fff;
  border: 2px solid var(--olc-gold);
}

.is-style-olc-contact .is-style-olc-tel .wp-block-button__link {
  background: #fff;
  color: var(--olc-teal);
  border: 2px solid var(--olc-teal);
}

.is-style-olc-contact .is-style-olc-tel .wp-block-button__link::before {
  content: none;
}

/* 下段：診療時間・所在地 */
.is-style-olc-contact .olc-contact__info {
  list-style: none;
  margin: 0;
  padding: 2.6cqi 5cqi;
  border: none;
  border-radius: 0 0 12px 12px;
  background: var(--olc-teal);
  color: #fff;
  font-size: 1.6cqi;
  line-height: 1.7;
}

.is-style-olc-contact .olc-contact__info li {
  display: flex;
  align-items: baseline;
  gap: 1.6cqi;
  margin: 0 0 1cqi;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.is-style-olc-contact .olc-contact__info li:last-child {
  margin-bottom: 0;
}

/* 項目名：左右が丸い白地のラベル */
.is-style-olc-contact .olc-contact__info li strong {
  flex: 0 0 auto;
  min-width: 9cqi;
  padding: 0.3cqi 1.6cqi;
  border-radius: 100vmax;
  background: #fff;
  color: var(--olc-teal);
  font-size: 1.4cqi;
  text-align: center;
}

@media (max-width: 600px) {
  .is-style-olc-contact {
    margin-top: 2em;
  }

  .is-style-olc-contact .olc-contact__body {
    margin: 0;
    padding: 8cqi 6cqi 2cqi;
  }

  .is-style-olc-contact h2,
  .is-style-olc-contact h3 {
    font-size: 8.6cqi;
    margin-bottom: 3cqi;
  }

  .is-style-olc-contact .olc-contact__body p {
    font-size: 4.2cqi;
    margin-bottom: 5cqi;
  }

  .is-style-olc-contact .wp-block-buttons {
    flex-direction: column;
    gap: 3.4cqi;
  }

  .is-style-olc-contact .wp-block-button {
    flex: none;
    width: 100%;
  }

  .is-style-olc-contact .wp-block-button__link {
    padding: 3.4cqi 11cqi 3.4cqi 6cqi;
    font-size: 3.4cqi;
  }

  .is-style-olc-contact .wp-block-button__link::first-line {
    font-size: 5.2cqi;
  }

  .is-style-olc-contact .wp-block-button__link::after {
    right: 6cqi;
    width: 2.2cqi;
    height: 2.2cqi;
  }

  /* 人物は文・ボタンの下に置き、上段の下端にそろえる */
  .is-style-olc-contact .olc-contact__person {
    position: static;
    order: 99;
    width: 50cqi;
    align-self: center;
    margin-top: 4cqi;
  }

  .is-style-olc-contact .olc-contact__info {
    padding: 5cqi 6cqi;
    font-size: 3.6cqi;
  }

  .is-style-olc-contact .olc-contact__info li {
    flex-direction: column;
    gap: 1.4cqi;
    margin-bottom: 3.6cqi;
  }

  .is-style-olc-contact .olc-contact__info li strong {
    min-width: 0;
    padding: 0.6cqi 3.4cqi;
    font-size: 3.4cqi;
  }
}

/* よくある質問（Q&A）
   - 新：独自ブロック onelove/faq（.olc-faq > .olc-faq__item > .olc-faq__q ＋ .olc-faq__a）
   - 旧：グループ「よくある質問」（.is-style-olc-faq の中の h3 と次の段落）。前に貼った記事も同じ見た目にする
   1組ずつ枠で囲み、Q（見出し）と A（回答）を点線で区切る。Q・A は丸いアイコン */
.olc-faq,
.is-style-olc-faq {
  margin: 0 0 2em;
}

.olc-faq__item {
  border: 1px solid var(--olc-line);
  border-radius: 8px;
  background: #fff;
  margin: 0 0 1.2em;
}

.olc-faq .olc-faq__q,
.is-style-olc-faq h3 {
  position: relative;
  margin: 0;
  padding: 1.1rem 1.3rem 1rem 4.4rem;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.6;
  color: var(--olc-green);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--olc-line);
  border-radius: 0;
}

/* 旧：グループのときは h3 と段落で1組の枠にする */
.is-style-olc-faq h3 {
  margin-top: 1.2em;
  border: 1px solid var(--olc-line);
  border-bottom-style: dashed;
  border-radius: 8px 8px 0 0;
}

.olc-faq .olc-faq__a,
.is-style-olc-faq h3 + p {
  position: relative;
  margin: 0;
  padding: 1rem 1.3rem 1rem 4.4rem;
  line-height: 1.8;
}

.is-style-olc-faq h3 + p {
  border: 1px solid var(--olc-line);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.olc-faq__a > :last-child,
.olc-faq__a p:last-child {
  margin-bottom: 0;
}

.olc-faq__a > :first-child {
  margin-top: 0;
}

/* Q・A のアイコン（2.4rem の丸） */
.olc-faq .olc-faq__q::before,
.olc-faq .olc-faq__a::before,
.is-style-olc-faq h3::before,
.is-style-olc-faq h3 + p::before {
  position: absolute;
  left: 1.1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 2.4rem;
  text-align: center;
}

.olc-faq .olc-faq__q::before,
.is-style-olc-faq h3::before {
  content: "Q";
  top: 0.95rem;
  background: var(--olc-teal);
}

.olc-faq .olc-faq__a::before,
.is-style-olc-faq h3 + p::before {
  content: "A";
  top: 0.85rem;
  background: var(--olc-gold);
}

/* 図解の入る場所（画像の差し込み前の目印） */
.is-style-olc-figure {
  border: 2px dashed var(--olc-teal);
  border-radius: 8px;
  background: var(--olc-bg);
  padding: 2em 1.5em;
  text-align: center;
  color: var(--olc-sub);
  font-size: 0.9rem;
  margin: 2em 0;
}

/* 自由診療の表記（医療広告ガイドラインの限定解除要件）
   独自ブロック onelove/disclosure-invisalign（文面は blocks/disclosure-invisalign/render.php に固定）と、旧のグループの両方
   薄いグレーの背景・線は 1px #ddd・文字は #555。段落タイトル 14px 太字、本文 13px。行間は詰めてコンパクトに */
.is-style-olc-disclosure {
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.2em 1.4em 1em;
  margin: 2em 0;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.is-style-olc-disclosure h2,
.is-style-olc-disclosure h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #555;
  background: none;
  border: none;
  border-bottom: 1px solid #ddd;
  margin: 0 0 0.8em;
  padding: 0 0 0.6em;
}

.is-style-olc-disclosure h2::before,
.is-style-olc-disclosure h3::before {
  content: none;
}

.is-style-olc-disclosure ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}

.is-style-olc-disclosure > ul > li {
  padding: 0.4em 0;
  margin: 0;
}

/* 段落タイトル（治療内容・費用など） */
.is-style-olc-disclosure > ul > li > strong:first-child {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #555;
  margin-bottom: 0.1em;
}

/* リスク・未承認医療機器の小項目：先頭に「・」を付けて字下げ */
.is-style-olc-disclosure li ul {
  margin-top: 0.1em;
}

.is-style-olc-disclosure li li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.15em;
}

.is-style-olc-disclosure li li::before {
  content: "・";
  position: absolute;
  left: 0.3em;
}

.is-style-olc-disclosure a:not(.wp-block-button__link) {
  color: #555 !important;
}

.col-single-body .is-style-olc-disclosure p strong,
.is-style-olc-disclosure p strong {
  background: none;
}

/* 監修者
   - 新：独自ブロック onelove/author（.olc-author）。白いカードの左 3 割をベージュにして写真、右に肩書き・氏名・経歴など、右下に最終更新日
     「この記事の監修者」はカードの上辺にまたがる深緑の帯
   - 旧：グループ「監修者」（.is-style-olc-author）は枠だけ同じ見た目 */
.olc-author,
.is-style-olc-author {
  position: relative;
  display: block;
  margin: 5em 0 2.5em;
  padding: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f0eb 0, #f3f0eb 30%, #fff 30%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}

.is-style-olc-author {
  padding: 4em 2em 1.5em calc(30% + 2em);
}

/* 見出しの帯：カードの上辺の中央にまたがる */
.olc-author__label,
.is-style-olc-author > p:first-child {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.85em 2.6em;
  background: #004030;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  white-space: nowrap;
  line-height: 1.4;
}

.is-style-olc-author p {
  margin: 0 0 0.4em;
}

/* 写真（左）と文（右）の2列 */
.olc-author__inner,
.olc-author__inner > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 0;
  align-items: start;
}

/* エディタでは中身がブロックの枠に入るので、外側は1列にして内側の枠を2列にする */
.olc-author__inner:has(> .block-editor-inner-blocks) {
  display: block;
}

.olc-author .olc-author__photo {
  margin: 0;
  padding: 4.5em 12% 2em;
}

.olc-author .olc-author__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
}

.olc-author .olc-author__body {
  padding: 4.8em 2.2em 0 2.4em;
}

.olc-author .olc-author__body > * {
  margin: 0 0 0.8em;
}

/* 英単語（論文誌名など）を単語の途中で改行しない */
.olc-author .olc-author__body {
  word-break: normal;
  overflow-wrap: break-word;
}

.olc-author .olc-author__role {
  margin-bottom: 0.2em;
  font-size: 0.88rem;
  color: #666;
}

.olc-author .olc-author__name {
  margin-bottom: 1em;
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #444;
}

.olc-author .olc-author__subhead {
  margin: 1.2em 0 0.3em;
  font-weight: bold;
  color: #555;
}

.olc-author ul.olc-author__list {
  margin: 0 0 0.8em;
  padding: 0 0 0 1.4em;
  border: none;
  background: none;
  list-style: disc;
}

.olc-author ul.olc-author__list li {
  margin: 0;
  list-style: disc;
}

/* 主な著作・主な研究論文（見出しと、その下のリスト・文章）の行間 */
.olc-author .olc-author__subhead,
.olc-author ul.olc-author__list,
.olc-author .olc-author__subhead + p {
  line-height: 1.3;
}

/* プロフィールなどのリンク：灰色の文字（丸い矢印はテキストリンク（→）と同じティール） */
.olc-author p.is-style-olc-textlinks {
  justify-content: flex-start;
  gap: 0.4em 2em;
  margin-top: 1.2em;
  margin-bottom: 0;
}

.olc-author p.is-style-olc-textlinks a:not(.wp-block-button__link) {
  color: #555;
  font-weight: normal;
}


.olc-author__updated {
  margin: 0 0 0 30%;
  padding: 0.3em 2.2em 1.6em;
  font-size: 0.85rem;
  color: #666;
  text-align: right;
}

@media (max-width: 600px) {
  .olc-author,
  .is-style-olc-author {
    margin-top: 4em;
    background: #fff;
  }

  .is-style-olc-author {
    padding: 3.5em 1.2em 1.2em;
  }

  .olc-author__label,
  .is-style-olc-author > p:first-child {
    padding: 0.7em 1.6em;
  }

  .olc-author__inner,
  .olc-author__inner > .block-editor-inner-blocks > .block-editor-block-list__layout {
    grid-template-columns: 1fr;
  }

  .olc-author .olc-author__photo {
    padding: 3.5em 0 1.5em;
    border-radius: 8px 8px 0 0;
    background: #f3f0eb;
  }

  .olc-author .olc-author__photo img {
    width: 150px;
    margin: 0 auto;
  }

  .olc-author .olc-author__body {
    padding: 1.5em 1.2em 0.5em;
  }

  .olc-author .olc-author__role,
  .olc-author .olc-author__name {
    text-align: center;
  }

  .olc-author__updated {
    margin-left: 0;
    padding: 0.5em 1.2em 1.2em;
  }
}

/* あわせて読みたい
   カードは診療ページの「関連ページ」（styles.css の .related_pages）と同じデザインを、ブロックで組む。
   見出しは記事本文の h2 と同じ見た目（ここでは指定しない）
   - カード：画像・タイトル（リンク）。タイトルのリンクをカード全体に広げて、カードのどこを押しても開く
   - 右の「>」は styles.css と同じ白の SVG（Material Icons の arrow_forward_ios と同じ形） */
.is-style-olc-related {
  margin: 3rem 0;
}

.is-style-olc-related .olc-related__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.is-style-olc-related .olc-related__card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.is-style-olc-related .olc-related__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

/* 右の「>」：カードの縦の中央に置く */
.is-style-olc-related .olc-related__card::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z'/%3E%3C/svg%3E");
  background-position: left top;
  background-size: 1em 1em;
  background-repeat: no-repeat;
  background-origin: content-box;
  font-size: 1.3em;
  line-height: 1;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 1.5rem;
  height: 1.5rem;
  padding: 1rem 0.5rem;
  background-color: #007b79;
  color: #fff;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}

.is-style-olc-related .olc-related__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin: 0;
  overflow: hidden;
  background-color: #fafafa;
}

.is-style-olc-related .olc-related__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* アイキャッチがないときの汎用画像は、切り取らずに全体を表示する */
.is-style-olc-related .olc-related__thumb.is-noimage {
  background-color: #fafafa;
}

.is-style-olc-related .olc-related__thumb.is-noimage img {
  object-fit: contain;
}

.is-style-olc-related .olc-related__label {
  margin: 0;
  padding: 1rem 2.8rem 1rem 1.1rem; /* 右は右端の「>」（幅 2.5rem）に文字が重ならない幅 */
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: left;
  text-wrap: balance;
  /* 単語（文節）の途中で折り返さない。auto-phrase が使えないブラウザは keep-all（句読点・記号で折り返す） */
  word-break: keep-all;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

.is-style-olc-related .olc-related__label a {
  color: inherit !important;
  text-decoration: none !important;
}

/* タイトルのリンクをカード全体に広げる */
.is-style-olc-related .olc-related__label a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}


@media (max-width: 600px) {
  .is-style-olc-related .olc-related__list {
    grid-template-columns: 1fr;
  }
}

/* 参考文献 */
.is-style-olc-refs {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--olc-sub);
  margin: 2em 0;
}

.is-style-olc-refs h2,
.is-style-olc-refs h3 {
  font-size: 0.9rem;
  color: var(--olc-text);
  background: none;
  border: none;
  margin: 0 0 0.6em;
  padding: 0;
}

/* 本文の左端を見出し（参考文献）の左端にそろえる */
.is-style-olc-refs ol {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.is-style-olc-refs li {
  margin-bottom: 0.4em;
  word-break: break-all;
}

.is-style-olc-refs a {
  color: var(--olc-sub) !important;
}

/* ------------------------------------------
   theme.json のパレット・文字サイズ
   （wp_head() を呼ばないため、表示側のクラスをここで定義する）
------------------------------------------ */
.has-green-color { color: #004030 !important; }
.has-teal-color { color: #007b79 !important; }
.has-turquoise-color { color: #009c9a !important; }
.has-teal-soft-color { color: #e6f3f2 !important; }
.has-gold-color { color: #a9803f !important; }
.has-gold-soft-color { color: #f8f3ea !important; }
.has-coral-color { color: #ea7f68 !important; }
.has-coral-soft-color { color: #fcedea !important; }
.has-gray-color { color: #f8fafc !important; }
.has-light-gray-color { color: #f8f8f8 !important; }
.has-body-text-color { color: #2b303a !important; }
.has-sub-color { color: #718096 !important; }
.has-white-color { color: #ffffff !important; }

.has-green-background-color { background-color: #004030 !important; }
.has-teal-background-color { background-color: #007b79 !important; }
.has-turquoise-background-color { background-color: #009c9a !important; }
.has-teal-soft-background-color { background-color: #e6f3f2 !important; }
.has-gold-background-color { background-color: #a9803f !important; }
.has-gold-soft-background-color { background-color: #f8f3ea !important; }
.has-coral-background-color { background-color: #ea7f68 !important; }
.has-coral-soft-background-color { background-color: #fcedea !important; }
.has-gray-background-color { background-color: #f8fafc !important; }
.has-light-gray-background-color { background-color: #f8f8f8 !important; }
.has-body-text-background-color { background-color: #2b303a !important; }
.has-sub-background-color { background-color: #718096 !important; }
.has-white-background-color { background-color: #ffffff !important; }

/* 書体（theme.json の fontFamilies） */
.has-sans-font-family { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important; }
.has-shippori-mincho-font-family { font-family: "Shippori Mincho", serif !important; }
.has-kosugi-maru-font-family { font-family: "Kosugi Maru", sans-serif !important; }

/* 文字サイズ（theme.json の fontSizes。エディタの S・M・L・XL ＝ 14・16・18・22px）
   ブロックの中の要素（表のセル・リストの行・段落など）が自分の文字サイズを持っていても、選んだサイズにそろえる。
   中の要素に別のサイズを選んだときは、そちらを優先する */
.has-small-font-size { font-size: 14px !important; }
.has-medium-font-size { font-size: 16px !important; }
.has-large-font-size { font-size: 18px !important; }
.has-x-large-font-size { font-size: 22px !important; }

:is(.has-small-font-size, .has-medium-font-size, .has-large-font-size, .has-x-large-font-size)
  :is(p, ul, ol, li, table, th, td, dl, dt, dd, summary, blockquote, cite, .wp-block-button__link):not([class*="-font-size"]) {
  font-size: inherit !important;
}

.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* ------------------------------------------
   スマホ
------------------------------------------ */
@media (max-width: 600px) {

  .is-style-olc-steps > li {
    padding: 1em 1em 1em 64px;
  }


  .is-style-olc-table table,
  .is-style-olc-price table,
  .is-style-olc-compare table {
    min-width: 800px;
  }

  .wp-block-buttons > .wp-block-button {
    width: 100%;
  }

  .wp-block-button .wp-block-button__link {
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
    font-size: 0.95rem;
  }

  .is-style-olc-disclosure {
    padding: 1.4em 1.1em;
  }

  .olc-faq .olc-faq__q,
  .is-style-olc-faq h3 {
    font-size: 1.1rem;
  }

  .olc-faq .olc-faq__q,
  .olc-faq .olc-faq__a,
  .is-style-olc-faq h3,
  .is-style-olc-faq h3 + p {
    padding-left: 3.6rem;
    padding-right: 1rem;
  }

  .olc-faq .olc-faq__q::before,
  .olc-faq .olc-faq__a::before,
  .is-style-olc-faq h3::before,
  .is-style-olc-faq h3 + p::before {
    left: 0.8rem;
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.05rem;
    line-height: 2.1rem;
  }
}

/* ==========================================================================
   アイコン付きカード（独自ブロック onelove/icon-cards・onelove/icon-card）
   - 外枠の設定（列数・揃え・間隔）はブロックが CSS 変数で出力する
   - カードの中身は通常の画像・見出し・段落。表示側は標準の CSS を読み込まないので、配置（中央揃え等）はここで指定する
   ========================================================================== */
.olc-icon-cards {
  --olc-ic-cols-now: var(--olc-ic-cols, 4);
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--olc-ic-justify, center);
  align-items: var(--olc-ic-align, stretch);
  column-gap: var(--olc-ic-gap-x, 32px);
  row-gap: var(--olc-ic-gap-y, 48px);
  margin: 2em 0;
}

/* 列数で折り返す：1枚の幅 =（全体 − 間隔 ×（列数 − 1））÷ 列数 */
.olc-icon-cards > .olc-icon-card {
  flex: 0 0 calc((100% - var(--olc-ic-gap-x, 32px) * (var(--olc-ic-cols-now) - 1)) / var(--olc-ic-cols-now));
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .olc-icon-cards {
    --olc-ic-cols-now: var(--olc-ic-cols-sp, 2);
  }
}

/* エディタの「＋」（カードを追加）は1行を使う */
.olc-icon-cards > .block-list-appender {
  flex: 0 0 100%;
}

.olc-icon-card > :first-child { margin-top: 0; }
.olc-icon-card > :last-child { margin-bottom: 0; }

/* 画像：サイズはブロックで指定した幅（img の style）、配置は揃えのクラスで */
.olc-icon-card .wp-block-image {
  margin: 0 0 16px;
}

.olc-icon-card .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.olc-icon-card .wp-block-image.aligncenter { display: table; margin-left: auto; margin-right: auto; }
.olc-icon-card .wp-block-image.alignleft { display: table; margin-right: auto; float: none; }
.olc-icon-card .wp-block-image.alignright { display: table; margin-left: auto; float: none; }

/* タイトル：本文の見出しの飾り（線・背景・余白）を付けない。色・サイズ・太さはブロックの指定が優先 */
.olc-icon-cards .olc-icon-card :where(h2, h3, h4) {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
}

.olc-icon-cards .olc-icon-card :where(h2)::before {
  content: none;
}

/* 文章 */
.olc-icon-cards .olc-icon-card :where(p) {
  margin: 0 0 0.8em;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* 文字の揃え（見出し・段落の「中央揃え」など） */
.olc-icon-card .has-text-align-left { text-align: left; }
.olc-icon-card .has-text-align-center { text-align: center; }
.olc-icon-card .has-text-align-right { text-align: right; }

/* 前の記事・次の記事（single-column.php。カードは「あわせて読みたい」と同じ） */
.col-adjacent__dir {
  display: block;
  margin-bottom: 0.2em;
  font-size: 0.8rem;
  font-weight: normal;
  color: #718096;
}
