/*
 * ORAL MEDIA ポータル版スタイル v7(Spark Journal のデスクトップ構成・白ベース・水色)— SWELL 子テーマ用
 * ------------------------------------------------------------------
 * 入れ方(どちらか):
 *   A. 外観 > カスタマイズ > 追加CSS に全文貼る(いちばん簡単)
 *   B. wp-content/themes/swell_child/style.css の末尾に追記する
 *
 * 前提:
 *   - SWELL 2.16 の公開クラス(.p-postListWrap / .p-postList / .c-postThumb / .is-style-more_btn)にかぶせる
 *   - トップページのブロック(theme/front-page.html)が付ける om-* クラスで場所を特定する
 *   - メインビジュアルは子テーマの [om_hero](functions-portal.php + portal-hero.js)
 *   - 基本フォント: Noto Sans JP(SWELL のカスタマイザー)
 *
 * 見た目の要点:
 *   白い方眼ノート(罫線は薄いグレー)、メインカラー水色 #39bcdf。Spark 型カード(枠の中に写真とカテゴリ、
 *   外に日付と見出し)、段ごとの縦ラベル(・Feature + ピル)、枠線の中の特集、タグの流れる帯、
 *   柱はパステルの帯 + 白い星形 + 左に説明とイラスト・右に 1大 + 2×2。
 *   写真・イラストの枠は差し替えるまで斜線のプレースホルダー(om-ph)。
 */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");

:root {
  --om-ink: #22333d; --om-ink-2: #5f717b;
  --om-blue: #39bcdf;        /* メインカラー(水色): 枠線・バッジ・ボタン */
  --om-blue-deep: #178fb5;   /* 白地の上の文字(見出し・リンク)、ボタンのホバー */
  --om-head: #178fb5;
  --om-paper: #ffffff; --om-grid: rgba(34,51,61,.055); --om-grid-2: rgba(34,51,61,.10);
  --om-line: #cfe6ee;
  --om-band: #f2fbfe;        /* 薄い水色の帯・表の見出しセル */
  --om-ph: #f1f8fb; --om-ph-2: #e2f1f6; --om-ph-ink: #7f96a1;
  --om-tag: #c9f5d8; --om-tag-ink: #17603a;
  --om-g-learn: linear-gradient(135deg, #ffe4b8 0%, #ffd0a8 100%);   /* 柱の帯(Spark のパステル) */
  --om-g-news:  linear-gradient(135deg, #d6f0fb 0%, #c4e6ff 100%);
  --om-g-voice: linear-gradient(135deg, #ffd9e4 0%, #ffe9f0 100%);
  --om-g-find:  linear-gradient(135deg, #e2d9ff 0%, #f0e6ff 100%);
  --om-blueband: linear-gradient(135deg, #f2fbfe 0%, #e3f5fb 100%);   /* 寄稿募集 */
  --om-radius: 14px;
  --om-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --om-head-font: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", sans-serif;   /* 見出し: 太くて詰まったゴシック(Spark 寄せ) */
}

/* ---------- トップページの地: 白い方眼ノート ----------
 * 注意: SWELL は body_class() を <body> ではなく <div id="body_wrap"> に出力する。
 * そのため page-id-8406 のスコープは必ず #body_wrap.om-portal で書く(body.page-id-8406 は一致しない)。 */
#body_wrap.om-portal {
  background-color: var(--om-paper);
  background-image:
    linear-gradient(var(--om-grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--om-grid-2) 1px, transparent 1px),
    linear-gradient(var(--om-grid) 1px, transparent 1px), linear-gradient(90deg, var(--om-grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
#body_wrap.om-portal .l-content, #body_wrap.om-portal .l-mainContent { background: transparent; }
#body_wrap.om-portal .l-header { background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--om-line); }

/* ---------- タイポグラフィの基本(docs/design-guide.md 1章) ---------- */
/* 見出しはプロポーショナル詰め(palt)= 日本語のカーニング。本文には入れない */
.post_content [class*="om-"] h2, .post_content [class*="om-"] h3, .post_content [class*="om-"] h4,
.om-sl__title, .om-cards .p-postList__title, .om-pillar__list .p-postList__title,
.om-ranking__list .p-postList__title, .om-series__list .p-postList__title {
  font-feature-settings: "palt" 1; letter-spacing: .02em; line-height: 1.45; word-break: auto-phrase; text-wrap: pretty;
}
#body_wrap.om-portal .post_content { letter-spacing: .03em; line-height: 1.8; line-break: strict; overflow-wrap: anywhere; hanging-punctuation: allow-end; text-spacing-trim: trim-start; }
.om-en-inline { font-family: var(--om-en); letter-spacing: .02em; }
/* 記事タイトルは2行で止め、カードの下端を揃える */
.om-cards .p-postList__title, .om-pillar__list .p-postList__title, .om-series__list .p-postList__title,
.om-ranking__list .p-postList__item:not(:first-child) .p-postList__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.om-pillar__list .p-postList.-type-card .p-postList__item:first-child .p-postList__title,
.om-ranking__list .p-postList__item:first-child .p-postList__title { -webkit-line-clamp: 3; }

/* SWELL の h2/h3 装飾を外す(トップの om-* の中だけ) */
.post_content [class*="om-"] h2, .post_content [class*="om-"] h3, .post_content [class*="om-"] h4 {
  margin: 0; padding: 0; background: none; border: none; box-shadow: none; color: inherit;
}
.post_content [class*="om-"] h2::before, .post_content [class*="om-"] h2::after,
.post_content [class*="om-"] h3::before, .post_content [class*="om-"] h3::after { content: none; }
.post_content > .om-hero:first-child { margin-top: 0; }
.om-section, .om-hero, .om-tagline, .om-pillar { margin: 0 !important; }

/* ---------- プレースホルダー ---------- */
.om-ph { display: grid; place-items: center; text-align: center; width: 100%; height: 100%; min-height: 120px;
  background: repeating-linear-gradient(45deg, var(--om-ph) 0 12px, var(--om-ph-2) 12px 24px);
  color: var(--om-ph-ink); font-size: 12px; letter-spacing: .08em; line-height: 1.6; border: 1px dashed var(--om-line); border-radius: var(--om-radius); }
.om-ph small { display: block; font-size: 10.5px; letter-spacing: 0; opacity: .85; }
.om-ph--illust { aspect-ratio: 1 / 1; font-size: 13px; }
.om-illust { max-width: 320px; margin-top: 22px; border-radius: 18px; overflow: hidden; background: #fff; padding: clamp(14px, 2vw, 24px); box-shadow: 0 8px 24px rgba(29, 71, 120, .08); box-sizing: border-box; }
/* 線画イラストは白いボックスに載せる(パステル帯の上でも見やすい) */
.om-illust__img { display: block; width: 100%; height: auto; border-radius: 10px; }
.om-illust--cta .om-illust__img { aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; }
.om-illust--cta { max-width: none; aspect-ratio: 4 / 3; margin: 0; border: 1.5px solid var(--om-blue); box-shadow: none; }

/* ---------- 段の枠と縦ラベル(Spark) ---------- */
.om-section { padding: clamp(40px, 5vw, 64px) 0; }
.om-frame { position: relative; padding: 0 48px; }
.om-frame__box { border: 1.5px solid var(--om-blue); border-radius: 4px; padding: clamp(24px, 3vw, 44px); background: rgba(255,255,255,.55); }
.om-frame__box--plain { border-top: 0; border-bottom: 0; border-radius: 0; background: transparent; }
.om-side { position: absolute; left: 0; top: 8px; width: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.om-side__en { writing-mode: vertical-rl; text-orientation: sideways; font-family: var(--om-en); font-weight: 700; font-size: 15px; color: var(--om-head); letter-spacing: .06em; display: inline-flex; align-items: center; gap: 6px; }
.om-side__en::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--om-head); display: inline-block; }
.om-side__ja { writing-mode: vertical-rl; text-orientation: upright; background: var(--om-blue); color: #fff; font-size: 12.5px; font-weight: 700; padding: 14px 6px; border-radius: 999px; letter-spacing: .12em; line-height: 1; }
.om-side--r { left: auto; right: 0; top: auto; bottom: 8px; }
.om-side__more { writing-mode: vertical-rl; font-size: 12.5px; font-weight: 700; color: var(--om-ink); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.om-side__more span { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--om-blue); border-radius: 50%; background: #fff; writing-mode: horizontal-tb; font-family: var(--om-en); font-size: 12px; color: var(--om-head); }
@media (max-width: 959px) {
  .om-frame { padding: 0; }
  .om-side { position: static; width: auto; flex-direction: row; align-items: center; margin-bottom: 14px; }
  .om-side__en, .om-side__ja, .om-side__more { writing-mode: horizontal-tb; }
  .om-side__ja { padding: 4px 12px; }
  .om-side--r { margin: 14px 0 0; }
}

/* ---------- Spark 型カード(投稿リスト: カード型) ---------- */
.om-cards, .om-pillar__list, .om-ranking__list, .om-series__list, .om-sl { --card_posts_thumb_ratio: 52.5%; }
.om-cards .p-postList__thumb, .om-pillar__list .p-postList__thumb, .om-ranking__list .p-postList__thumb, .om-series__list .p-postList__thumb {
  position: relative; background: #fff; border: 1.5px solid var(--om-blue); border-radius: 16px; padding: 10px 10px 36px;
}
.om-cards .c-postThumb__figure, .om-pillar__list .c-postThumb__figure, .om-ranking__list .c-postThumb__figure, .om-series__list .c-postThumb__figure { border-radius: 10px; overflow: hidden; background: var(--om-ph); }
/* カテゴリは枠の中・写真の下(サムネ左上ではなく) */
.om-cards .c-postThumb__cat, .om-pillar__list .c-postThumb__cat, .om-ranking__list .c-postThumb__cat, .om-series__list .c-postThumb__cat {
  top: auto; bottom: -30px; left: 0; right: auto; background: none; color: var(--om-head); font-size: 12px; font-weight: 700; padding: 0; line-height: 1.6; border-radius: 0;
}
.om-cards .c-postThumb__cat::before, .om-pillar__list .c-postThumb__cat::before, .om-ranking__list .c-postThumb__cat::before, .om-series__list .c-postThumb__cat::before { content: "✦"; color: var(--om-blue); font-size: 10px; margin-right: 6px; }
.om-cards .p-postList__body, .om-pillar__list .p-postList__body, .om-ranking__list .p-postList__body, .om-series__list .p-postList__body { padding-top: 12px; display: flex; flex-direction: column-reverse; gap: 4px; }
.om-cards .p-postList__meta, .om-pillar__list .p-postList__meta, .om-ranking__list .p-postList__meta, .om-series__list .p-postList__meta { font-family: var(--om-en); font-size: 12px; color: var(--om-ink-2); font-variant-numeric: tabular-nums; margin: 0; }
.om-cards .p-postList__title, .om-pillar__list .p-postList__title, .om-ranking__list .p-postList__title, .om-series__list .p-postList__title { font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--om-ink); }
.om-cards .p-postList__link:hover .p-postList__title { color: var(--om-head); text-decoration: underline; }

/* ---------- メインビジュアル: Spark Journal 型のカードスライダー([om_hero]) ----------
 * 画面幅いっぱいに大きなカードが横に並び、両端は次のカードが少し見える。カードは白い枠 + 写真(16:9)+ カテゴリ、
 * 枠の外に日付とタイトル。下に「‹ 1 / 5 ›」。斜めの淡い帯を背景に敷く。 */
.om-hero { padding: 28px 0 0; margin: 0 !important; position: relative; overflow: hidden; }
.om-hero::before, .om-hero::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
.om-hero::before { left: 38%; top: -20%; width: 26%; height: 140%; background: linear-gradient(180deg, rgba(255,205,180,.55), rgba(255,205,180,0) 70%); transform: skewX(-22deg); }
.om-hero::after { right: 6%; top: 30%; width: 18%; height: 90%; background: linear-gradient(180deg, rgba(57,188,223,.18), rgba(57,188,223,0) 75%); transform: skewX(18deg); }
.om-hero > *, .om-hero > .wp-block-group__inner-container > * { position: relative; z-index: 1; max-width: none !important; }
.om-hero__eyebrow { display: none; }                         /* ロゴ横に同じ文言を出しているので、ここでは出さない */
.om-sl { position: relative; padding: 0 0 8px; --om-card: clamp(280px, 26.5vw, 540px); --om-gap: 24px; }
.om-sl__track { list-style: none !important; margin: 0 !important; display: flex; align-items: flex-start; gap: var(--om-gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px calc(50% - var(--om-card) / 2) 8px !important; }
.om-sl__track::-webkit-scrollbar { display: none; }
.om-sl__item { flex: 0 0 var(--om-card); scroll-snap-align: center; margin: 0 !important; }
.om-sl__item::before { content: none !important; }
.om-sl__link { display: block; color: inherit; text-decoration: none; }
.om-sl__frame { display: block; background: #fff; border: 1.5px solid var(--om-ink); border-radius: 18px; padding: 12px 12px 10px; box-shadow: 0 8px 24px rgba(34,51,61,.06); transition: transform .25s ease, box-shadow .25s ease; }
.om-sl__link:hover .om-sl__frame { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(34,51,61,.10); }
.om-sl__img { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--om-ph); }
.om-sl__img img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.om-sl__img .om-ph { min-height: 0; height: 100%; border-radius: 10px; }
.om-sl__cat { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--om-ink); line-height: 1; }
.om-sl__cat i { font-style: normal; color: var(--om-blue); font-size: 10px; }
.om-sl__date { display: block; font-family: var(--om-en); font-size: 12.5px; letter-spacing: .04em; color: var(--om-ink-2); margin: 16px 0 6px; font-variant-numeric: tabular-nums; }
.om-sl__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--om-head-font); font-size: clamp(16px, 1.25vw, 21px); font-weight: 700; line-height: 1.55; color: var(--om-ink); letter-spacing: .01em; font-feature-settings: "palt" 1; word-break: auto-phrase; text-wrap: pretty; }
.om-sl__link:hover .om-sl__title { color: var(--om-head); }
.om-sl__nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.om-sl__btn { width: 48px; height: 40px; border-radius: 999px; border: 1.5px solid var(--om-line); background: #fff; color: var(--om-ink); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.om-sl__btn:hover { background: var(--om-band); border-color: var(--om-blue); }
.om-sl__btn:focus-visible { outline: 2px solid var(--om-blue); outline-offset: 2px; }
.om-sl__count { font-family: var(--om-en); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--om-ink); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.om-sl__count b { font-weight: 700; }
.om-sl__slash { color: var(--om-ink-2); font-weight: 500; }
@media (max-width: 799px) {
  .om-hero { padding-top: 16px; }
  .om-sl { --om-card: 82vw; --om-gap: 14px; }
  .om-sl__frame { padding: 8px 8px 8px; border-radius: 14px; }
  .om-sl__title { font-size: 16px; }
  .om-sl__nav { margin-top: 14px; }
}
/* AIで聞く(メインビューの直下・タグの帯の上) */
.om-ask { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--om-blue); border-radius: 999px; padding: 6px 6px 6px 16px; max-width: 640px; margin: 22px auto 0 !important; box-shadow: 0 6px 18px rgba(57,188,223,.12); }
.om-ask__label { font-size: 13px; font-weight: 700; color: var(--om-head); white-space: nowrap; border-right: 1px solid var(--om-line); padding-right: 12px; }
.om-ask input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 14px; min-width: 0; background: transparent; box-shadow: none; padding: 0; }
.om-ask button { height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--om-blue); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.om-ask button:hover { background: var(--om-blue-deep); } .om-ask button:disabled { opacity: .6; cursor: default; }
.om-ask__note { text-align: center; font-size: 11.5px; color: var(--om-ink-2); margin: 8px 0 18px !important; }
.om-ask__panel, #body_wrap.om-portal .om-hero > .om-ask__panel, #body_wrap.om-portal .om-hero > .wp-block-group__inner-container > .om-ask__panel { max-width: 760px !important; width: 100%; box-sizing: border-box; margin: 14px auto 0 !important; padding: 18px 22px 16px !important; background: #fff; border: 1.5px solid var(--om-blue); border-radius: 16px; box-shadow: 0 10px 28px rgba(57,188,223,.12); text-align: left; }
.om-ask__head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; }
.om-ask__badge { font-family: var(--om-en); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #fff; background: var(--om-blue); border-radius: 999px; padding: 3px 10px; }
.om-ask__q { font-size: 13px; color: var(--om-ink-2); margin: 0 !important; }
.om-ask__answer { font-size: 15px; line-height: 1.95; color: var(--om-ink); margin: 0 0 14px !important; }
.om-ask__answer ul { margin: 6px 0 0 !important; padding-left: 1.2em !important; }
.om-ask__answer li { margin: 0 0 4px !important; }
.om-ask__srcTtl { font-size: 13px; font-weight: 700; color: var(--om-head); margin: 0 0 8px !important; padding-top: 12px; border-top: 1px solid var(--om-line); }
.om-ask__src { list-style: none !important; margin: 0 0 12px !important; padding: 0 !important; display: grid; grid-template-columns: 1fr; gap: 8px; }
.om-ask__src li { margin: 0 !important; padding: 0 !important; }
.om-ask__src li::before { content: none !important; }
.om-ask__src a { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; box-sizing: border-box; border: 1.5px solid var(--om-line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--om-ink); transition: border-color .2s; }
.om-ask__src a:hover { border-color: var(--om-blue); }
.om-ask__src strong { grid-column: 1; font-size: 14px; line-height: 1.5; color: var(--om-head); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.om-ask__src span { grid-column: 1; font-size: 12px; line-height: 1.7; color: var(--om-ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.om-ask__src em { grid-column: 2; grid-row: 1 / 3; font-style: normal; font-size: 12px; color: var(--om-head); font-weight: 700; white-space: nowrap; }
.om-ask__panel .om-ask__note { text-align: left; margin: 0 !important; font-size: 11.5px; }
.om-ask__webTtl { font-size: 12.5px; font-weight: 700; color: var(--om-ink-2); margin: 0 0 6px !important; }
.om-ask__web { list-style: none; margin: 0 0 14px !important; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; }
.om-ask__web a { color: var(--om-head); text-decoration: underline; }
.om-ask__panel .om-ask__note a { color: var(--om-head); font-weight: 700; }
@media (max-width: 799px) { .om-ask__src a { grid-template-columns: 1fr; } .om-ask__src em { grid-column: 1; grid-row: auto; margin-top: 4px; } }
/* キャッチコピー(メインビューとタグの帯のあと) */
.om-tagline { padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--om-line); }
.om-tagline .wp-block-columns { gap: 48px; align-items: center; }
.om-tagline__title { font-family: var(--om-head-font); font-size: clamp(26px, 3.2vw, 40px) !important; font-weight: 700; line-height: 1.5; color: var(--om-ink) !important; letter-spacing: .01em; }
.om-tagline__lead { color: var(--om-ink-2); line-height: 2; max-width: 34em; margin: 0 0 20px !important; }
/* スマホのヘッダー(SWELL のヘッダーは崩れやすいので幅を絞る) */
@media (max-width: 599px) {
  #body_wrap.om-portal .l-header__logo img { max-height: 28px; width: auto; }
  #body_wrap.om-portal .c-catchphrase { display: none; }
}
/* タグの流れる帯 */
.om-marquee { margin-top: 22px; border-top: 1px solid var(--om-line); border-bottom: 1px solid var(--om-line); background: rgba(255,255,255,.7); overflow: hidden; }
.om-marquee__track { display: flex; gap: 12px; width: max-content; padding: 10px 0; animation: om-marquee 40s linear infinite; }
.om-marquee a { white-space: nowrap; background: #fff; border: 1px solid var(--om-line); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700; color: var(--om-ink); text-decoration: none; }
.om-marquee a:hover { border-color: var(--om-blue); color: var(--om-head); }
@keyframes om-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .om-marquee__track { animation: none; flex-wrap: wrap; width: auto; padding: 10px 4vw; } }
/* キャッチコピー */
.om-tagline { padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--om-line); }
.om-tagline .wp-block-columns { gap: 48px; align-items: center; }
.om-tagline__title { font-family: var(--om-head-font); font-size: clamp(28px, 3.2vw, 40px) !important; font-weight: 700; line-height: 1.5; color: var(--om-ink) !important; letter-spacing: .01em; }
.om-tagline__lead { color: var(--om-ink-2); line-height: 2; max-width: 34em; margin: 0 0 20px !important; }

/* ---------- 特集(枠線の中・縦書き見出し・3本) ---------- */
/* 画像の右に縦書きの見出し、画像の下に説明と矢印。Spark と同じく列ごとに高さをずらす */
@media (min-width: 960px) {
  .om-feature .wp-block-columns > .wp-block-column:nth-child(2) { padding-top: 72px; }
  .om-feature .wp-block-columns > .wp-block-column:nth-child(3) { padding-top: 28px; }
}
.om-feature .wp-block-columns { gap: 36px; align-items: flex-start; }
.om-feat { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px 14px; align-items: start; }
.om-feat__img { grid-column: 1; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; }
.om-feat__img .om-ph { border-radius: 14px; border: 1.5px solid var(--om-blue); min-height: 0; }
.om-feat__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1.5px solid var(--om-blue); }
/* [om_eyecatch] の既定: 横長のアイキャッチを正方形の枠に「切り抜かずに」収める。余白は同じ画像をぼかして敷く */
.om-eyecatch__box { position: relative; display: block; width: 100%; height: 100%; border-radius: 14px; border: 1.5px solid var(--om-blue); overflow: hidden; background: var(--om-ph); }
.om-eyecatch__box::before { content: ""; position: absolute; inset: -12%; background: var(--om-eyecatch-bg) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .85; }
.om-eyecatch__box::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.18); }
.om-eyecatch__box img { position: relative; z-index: 1; width: 100% !important; height: 100% !important; object-fit: contain; border: 0; border-radius: 0; filter: drop-shadow(0 6px 14px rgba(34,51,61,.18)); }
.om-feat__pill { position: absolute; right: -6px; top: -10px; border: 1px dashed var(--om-blue); color: var(--om-head); font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #fff; margin: 0 !important; }
.om-feat__title a { color: inherit; text-decoration: none; }
.om-feat__title a:hover { color: var(--om-head); }
.om-feat__title { grid-column: 2; grid-row: 1; writing-mode: vertical-rl; text-orientation: mixed; font-family: var(--om-head-font); font-size: clamp(22px, 1.9vw, 28px) !important; font-weight: 700; line-height: 1.5; letter-spacing: .1em; padding-top: 30px !important; max-height: 440px; margin: 0 !important; font-feature-settings: normal; word-break: normal; color: var(--om-ink) !important; }
.om-feat__desc { grid-column: 1 / -1; font-size: 13px; line-height: 1.9; color: var(--om-ink-2); margin: 2px 0 0 !important; }
.om-feat .om-more--arrow { grid-column: 1 / -1; }
.om-more--arrow .wp-block-button__link { padding: .3em 1em !important; font-size: 12px; }
@media (max-width: 599px) {
  .om-feat { grid-template-columns: 42% 1fr; gap: 10px 14px; align-items: center; }
  .om-feat__img { grid-column: 1; grid-row: 1; }
  .om-feat__title { grid-column: 2; grid-row: 1; writing-mode: horizontal-tb; max-height: none; padding-top: 0 !important; font-size: 18px !important; line-height: 1.5; letter-spacing: .02em; }
  .om-feat__pill { right: auto; left: 0; top: -10px; }
  .om-feat__desc, .om-feat .om-more--arrow { grid-column: 1 / -1; }
}

/* ---------- 柱(パステルの帯 + 星形。左: 説明・イラスト / 右: 1大 + 2×2) ---------- */
.om-pillar { position: relative; padding: clamp(48px, 6vw, 80px) 0; overflow: hidden; }
.om-pillar--learn { background: var(--om-g-learn); }
.om-pillar--news  { background: var(--om-g-news); }
.om-pillar--voice { background: var(--om-g-voice); }
.om-pillar--find  { background: var(--om-g-find); }
.om-pillar::before { content: ""; position: absolute; left: 38%; top: -6%; width: 56vw; max-width: 820px; aspect-ratio: 1; background: rgba(255,255,255,.55);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); pointer-events: none; }
.om-pillar > * { position: relative; z-index: 1; }
.om-pillar .om-side__ja { background: #fff; color: var(--om-ink); }
.om-pillar__grid .wp-block-columns { gap: clamp(28px, 4vw, 56px); }
.om-pillar__desc { font-size: 14px; line-height: 1.9; color: var(--om-ink); margin: 0 !important; }
.om-pillar .om-illust .om-ph { background: rgba(255,255,255,.75); border: 0; }
.om-pillar__list .p-postList.-type-card .p-postList__item:first-child { width: 100%; }
.om-pillar__list .p-postList.-type-card .p-postList__item:first-child .p-postList__title { font-size: 22px; font-weight: 700; line-height: 1.5; }
.om-pillar__list .p-postList__thumb { border-color: var(--om-ink); }
.om-pillar__list .c-postThumb__cat { color: var(--om-ink); }
.om-callout { margin-top: 22px !important; background: #fff; border: 1.5px solid var(--om-blue); border-radius: 14px; padding: 18px 20px; font-size: 13px; line-height: 1.8; }
.om-callout__title { color: var(--om-head); font-weight: 700; margin: 0 0 4px !important; }
.om-callout__text { margin: 0 0 10px !important; }

/* ---------- ランキング(1位を大きく) ---------- */
.om-ranking__list .p-postList.-type-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 40px; margin: 0; counter-reset: om-rank; }
.om-ranking__list .p-postList.-type-card .p-postList__item { width: auto; padding: 0; margin: 0; position: relative; counter-increment: om-rank; }
.om-ranking__list .p-postList.-type-card .p-postList__item:first-child { grid-row: 1 / 5; }
.om-ranking__list .p-postList.-type-card .p-postList__item:not(:first-child) { border-bottom: 1px solid var(--om-line); padding: 14px 0; }
.om-ranking__list .p-postList.-type-card .p-postList__item:not(:first-child) .p-postList__link { display: flex; gap: 16px; align-items: flex-start; }
.om-ranking__list .p-postList.-type-card .p-postList__item:not(:first-child) .p-postList__thumb { width: 150px; flex: 0 0 150px; padding: 0; border: 1px solid var(--om-line); border-radius: 8px; }
.om-ranking__list .p-postList.-type-card .p-postList__item:not(:first-child) .p-postList__body { padding-top: 0; flex: 1; }
.om-ranking__list .p-postList.-type-card .p-postList__item:not(:first-child) .c-postThumb__cat { display: none; }
.om-ranking__list .p-postList__item::before { content: counter(om-rank); position: absolute; left: 0; top: 0; z-index: 2; background: var(--om-blue); color: #fff; font-family: var(--om-en); font-weight: 700; font-size: 13px; padding: 5px 9px; border-radius: 0 0 8px 0; line-height: 1; }
.om-ranking__list .p-postList__item:not(:first-child)::before { top: 14px; }
.om-ranking__list .p-postList__item:first-child::before { font-size: clamp(40px, 5vw, 64px); padding: 0 18px 6px; border-radius: 14px 0 18px 0; line-height: 1.1; }
@media (max-width: 959px) { .om-ranking__list .p-postList.-type-card { grid-template-columns: 1fr; } .om-ranking__list .p-postList.-type-card .p-postList__item:first-child { grid-row: auto; margin-bottom: 8px; } }

/* ---------- 地図(クリックできる日本地図 + 都道府県リンク) ---------- */
.om-map__grid { gap: 40px; align-items: flex-start; }
.om-map__lead { font-size: 14px; color: var(--om-ink-2); line-height: 1.9; margin: 0 0 22px !important; }
.om-japan__svg { width: 100%; height: auto; display: block; }
.om-pref path, .om-pref polygon { fill: #eef2f5; stroke: #fff; stroke-width: 1.2; transition: fill .15s; }
.om-pref.has-posts path, .om-pref.has-posts polygon { fill: #bfe8f5; }
.om-pref-link:hover .om-pref path, .om-pref-link:hover .om-pref polygon, .om-pref-link:focus-visible .om-pref path { fill: var(--om-blue); }
.om-pref-link:not(.has-posts) { pointer-events: none; }
.om-pref-link { cursor: pointer; outline: none; }
.om-japan__legend { font-size: 12px; color: var(--om-ink-2); margin: 10px 0 0 !important; display: flex; align-items: center; gap: 6px; }
.om-japan__sw { width: 14px; height: 14px; border-radius: 3px; background: #eef2f5; display: inline-block; border: 1px solid #dfe6ea; }
.om-japan__sw--on { background: #bfe8f5; }
.om-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 28px; }
.om-map__region { border-top: 2px solid var(--om-blue); padding-top: 8px; }
.om-map__region h3 { font-size: 13px !important; font-weight: 700; color: var(--om-head) !important; margin: 0 0 4px !important; }
.om-map__region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.om-map__region li { margin: 0; padding: 0; font-size: 13.5px; }
.om-map__region a { color: var(--om-ink); text-decoration: none; }
.om-map__region a:hover { color: var(--om-head); text-decoration: underline; }

/* ---------- 連載 ---------- */
.om-series { padding: 8px 0 36px; }
.om-series + .om-series { border-top: 1px solid var(--om-line); padding-top: 36px; }
.om-series__head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: end; margin-bottom: 22px !important; }
.om-series__name { font-size: 22px !important; color: var(--om-head) !important; }
.om-series__desc { font-size: 13.5px; color: var(--om-ink-2); line-height: 1.8; margin: 0 !important; }
@media (max-width: 959px) { .om-series__head { grid-template-columns: 1fr; } }

/* ---------- ボタン(SWELL 投稿リストの「もっと見る」と core ボタン) ---------- */
.om-section .is-style-more_btn a.btn_text, .om-pillar .is-style-more_btn a.btn_text, .om-more .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .8em; background: var(--om-blue) !important; color: #fff !important;
  border: 1.5px solid var(--om-blue) !important; border-radius: 999px; padding: .6em 1.5em; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; box-shadow: none; transition: background .2s;
}
.om-section .is-style-more_btn a.btn_text::before, .om-pillar .is-style-more_btn a.btn_text::before { content: none; }
.om-section .is-style-more_btn a.btn_text::after, .om-pillar .is-style-more_btn a.btn_text::after, .om-more:not(.om-more--arrow) .wp-block-button__link::after { content: "→"; font-family: var(--om-en); }
.om-section .is-style-more_btn a.btn_text:hover, .om-pillar .is-style-more_btn a.btn_text:hover, .om-more .wp-block-button__link:hover { background: var(--om-blue-deep) !important; border-color: var(--om-blue-deep) !important; }
.om-more--outline .wp-block-button__link, .om-more--arrow .wp-block-button__link { background: #fff !important; color: var(--om-head) !important; }
.om-more--outline .wp-block-button__link:hover, .om-more--arrow .wp-block-button__link:hover { background: var(--om-blue) !important; color: #fff !important; }

/* ---------- 寄稿募集・About ---------- */
.om-cta { background: var(--om-blueband); border-top: 1px solid var(--om-line); border-bottom: 1px solid var(--om-line); }
.om-cta .wp-block-columns { gap: 48px; align-items: center; }
.om-eyebrow { font-family: var(--om-en); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--om-head); font-weight: 700; margin: 0 !important; }
.om-cta__title { font-family: var(--om-head-font); font-size: clamp(24px, 3vw, 34px) !important; line-height: 1.4; color: var(--om-ink) !important; margin: 10px 0 14px !important; }
.om-cta__lead { color: var(--om-ink-2); max-width: 40em; margin: 0 0 22px !important; }
.om-cta .om-illust .om-ph { background: #fff; border: 1.5px solid var(--om-blue); }
.om-trust .wp-block-columns { gap: 20px; }
.om-trust__card { border: 1.5px solid var(--om-line); border-radius: var(--om-radius); padding: 22px 24px; background: #fff; }
.om-trust__h { font-size: 17px !important; margin: 0 0 8px !important; color: var(--om-head) !important; line-height: 1.5; }
.om-trust__p { font-size: 14px; color: var(--om-ink-2); line-height: 1.9; margin: 0 0 12px !important; }
.om-trust__link a { color: var(--om-head); font-weight: 700; text-decoration: none; }

/* ---------- スマホ ---------- */
@media (max-width: 599px) {
  .om-section, .om-pillar { padding: 40px 0; }
  .om-map { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .om-illust { max-width: 220px; }
}

/* ---------- 記事ページ: コラムの著者ボックス・注記(歯科衛生士のひとこと) ---------- */
.om-author { border: 1.5px solid var(--om-line); border-radius: 14px; padding: 20px 22px; background: #fff; margin-top: 40px; }
.om-author__name { font-size: 14px; margin: 0 0 6px !important; color: var(--om-ink); }
.om-author__name strong { color: var(--om-head); margin-right: 8px; }
.om-author__bio { font-size: 13.5px; line-height: 1.9; color: var(--om-ink-2); margin: 0 !important; }
.om-author__bio a { color: var(--om-head); font-weight: 700; }
.om-note { font-size: 13px; color: var(--om-ink-2); background: var(--om-band); border-left: 3px solid var(--om-blue); padding: 12px 16px; border-radius: 0 8px 8px 0; }

/* ---------- ポータル版ページ(新トップ・About・編集方針・運営会社)のレイアウトを CSS 側でも保証する ----------
 * SWELL の「サイドバー非表示」「タイトル非表示」「コンテンツ幅」の設定に依存せず、1カラム・全幅にする。
 * 全幅の仕組み: SWELL 本体が .alignfull に position:relative; left:calc(50% - 50vw); width:100vw を当てている。
 * ここで margin-left まで動かすと二重にずれて左が切れるので、margin は 0 のままにする。
 * はみ出しの抑制(横スクロール防止)は、コンテナではなく #body_wrap で行う(コンテナで clip すると全幅が切れる)。 */
#body_wrap.om-portal { overflow-x: clip; }
#body_wrap.om-portal .l-content { display: block; padding-top: 0 !important; margin-bottom: 0 !important; }
#body_wrap.om-portal #sidebar, #body_wrap.om-portal .l-sidebar, #body_wrap.om-portal .c-pageTitle, #body_wrap.om-portal .p-articleHead, #body_wrap.om-portal .p-breadcrumb, #body_wrap.om-portal .p-pageThumb { display: none !important; }
#body_wrap.om-portal .l-mainContent, #body_wrap.om-portal .l-mainContent__inner, #body_wrap.om-portal .l-article, #body_wrap.om-portal .post_content { max-width: none !important; width: 100% !important; padding-left: 0; padding-right: 0; overflow: visible !important; }
#body_wrap.om-portal .l-mainContent__inner > .post_content { margin: 0 !important; }
/* クラシックテーマでは core のグループブロックが <div class="wp-block-group__inner-container"> で中身を包む。
 * SWELL はこの内側の箱を記事幅(--article_size: 900px)に縮めるため、全幅にしたセクションの中身が 900px に押し込められ、
 * 「画像の右に縦書き見出し」などの子セレクタ(>)も効かなくなる。ポータル版のページでは内側の箱を無いものとして扱う。 */
#body_wrap.om-portal .post_content .wp-block-group__inner-container { display: contents; }
#body_wrap.om-portal .post_content .alignfull > .wp-block-group__inner-container > * { margin-bottom: 0; }
/* SWELL の「コンテンツに枠をつける」設定(-frame-on)が入っていると、.l-content .alignfull が枠の内側(±48px)に縮められる。
 * ポータル版では枠設定に関係なく画面幅いっぱいにする(SWELL 本体と同じ計算式を !important で当てる)。 */
#body_wrap.om-portal .post_content > .alignfull, #body_wrap.om-portal .l-content .post_content > .alignfull {
  position: relative; left: calc(50% - 50vw + var(--swl-scrollbar_width, 0px) / 2) !important; width: calc(100vw - var(--swl-scrollbar_width, 0px)) !important;
  max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* 枠(-frame-on)の白背景・内側余白・影も外す */
#body_wrap.om-portal .l-mainContent { padding: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
#body_wrap.om-portal.-frame-on .l-mainContent, #body_wrap.om-portal.-frame-border .l-mainContent { padding: 0 !important; background: transparent !important; box-shadow: none !important; }
#body_wrap.om-portal .post_content > .alignfull > *, #body_wrap.om-portal .post_content > .alignfull > .wp-block-group__inner-container > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); box-sizing: border-box; }
#body_wrap.om-portal .om-hero > .om-sl, #body_wrap.om-portal .om-hero > .om-marquee, #body_wrap.om-portal .om-hero > .wp-block-group__inner-container > .om-sl, #body_wrap.om-portal .om-hero > .wp-block-group__inner-container > .om-marquee { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
#body_wrap.om-portal .om-hero > .om-ask, #body_wrap.om-portal .om-hero > .wp-block-group__inner-container > .om-ask { max-width: 640px !important; }
#body_wrap.om-portal .om-pillar > .om-frame, #body_wrap.om-portal .om-section > .om-frame, #body_wrap.om-portal .om-pillar > .wp-block-group__inner-container > .om-frame, #body_wrap.om-portal .om-section > .wp-block-group__inner-container > .om-frame { padding-left: 48px; padding-right: 48px; }
@media (max-width: 959px) { #body_wrap.om-portal .om-pillar > .om-frame, #body_wrap.om-portal .om-section > .om-frame, #body_wrap.om-portal .om-pillar > .wp-block-group__inner-container > .om-frame, #body_wrap.om-portal .om-section > .wp-block-group__inner-container > .om-frame { padding-left: 0; padding-right: 0; } }
/* 全幅セクションの直後のフッターとの間隔 */
#body_wrap.om-portal .l-content { padding-bottom: 0; }

/* ---------- 下層ページ(About / 編集方針 / 運営会社)の共通部品 ----------
 * theme/pages/*.html のブロックで使う。見出し・段落は core ブロック、カード状のものは HTML ブロック。 */
.om-page__hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--om-line); }
.om-page__hero .wp-block-columns { gap: 48px; align-items: center; }
#body_wrap.om-portal .post_content .om-page__title { font-family: var(--om-head-font); font-size: clamp(28px, 3.6vw, 44px) !important; font-weight: 700; line-height: 1.4; color: var(--om-ink) !important; margin: 12px 0 18px !important; padding: 0 !important; background: none !important; border: 0 !important; font-feature-settings: "palt" 1; letter-spacing: .02em; word-break: auto-phrase; text-wrap: pretty; }
.om-page__lead { color: var(--om-ink-2); line-height: 2; max-width: 36em; margin: 0 !important; }
.om-page__visual { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; }
.om-page__visual .om-ph { min-height: 0; height: 100%; border: 1.5px solid var(--om-blue); border-radius: 18px; background: #fff; }
.om-page__visual img { width: 100%; height: 100%; object-fit: cover; }
/* 枠の中の見出し: SWELL の h2/h3 装飾(背景・下線・疑似要素)を外す */
#body_wrap.om-portal .post_content .om-page__h2, #body_wrap.om-portal .post_content .om-page__h3 { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; color: var(--om-ink) !important; font-feature-settings: "palt" 1; letter-spacing: .02em; line-height: 1.5; word-break: auto-phrase; text-wrap: pretty; }
#body_wrap.om-portal .post_content .om-page__h2::before, #body_wrap.om-portal .post_content .om-page__h2::after, #body_wrap.om-portal .post_content .om-page__h3::before, #body_wrap.om-portal .post_content .om-page__h3::after { content: none !important; display: none !important; }
.om-page__h2 { font-family: var(--om-head-font); font-size: clamp(22px, 2.4vw, 28px) !important; margin: 0 0 12px !important; }
.om-page__h3 { font-size: 17px !important; color: var(--om-head) !important; margin: 28px 0 8px !important; }
.om-page__p { color: var(--om-ink-2); line-height: 2; max-width: 44em; margin: 0 0 16px !important; }
.om-page__p a { color: var(--om-head); font-weight: 700; }
/* 枠内の段落・見出しは左寄せ(ブロックエディタの constrained レイアウトが中央寄せにするのを打ち消す) */
#body_wrap.om-portal .om-page__p, #body_wrap.om-portal .om-page__lead, #body_wrap.om-portal .om-page__h2, #body_wrap.om-portal .om-page__h3, #body_wrap.om-portal .om-frame__box > .wp-block-buttons { margin-left: 0 !important; margin-right: 0 !important; }
/* カードのグリッド(方針・ジャンル) */
.om-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none !important; padding: 0 !important; margin: 24px 0 0 !important; }
.om-tiles--2 { grid-template-columns: repeat(2, 1fr); }
.om-tiles li { background: #fff; border: 1.5px solid var(--om-line); border-radius: var(--om-radius); padding: 22px 22px 20px; margin: 0 !important; }
.om-tiles li::before { content: none !important; }
.om-tiles__n { display: block; font-family: var(--om-en); font-weight: 700; font-size: 12px; letter-spacing: .16em; color: var(--om-blue); margin-bottom: 8px; }
.om-tiles__h { display: block; font-size: 16px; font-weight: 700; color: var(--om-head); line-height: 1.5; margin: 0 0 8px; font-feature-settings: "palt" 1; text-decoration: none; }
.om-tiles__p { display: block; font-size: 13.5px; line-height: 1.9; color: var(--om-ink-2); }
a.om-tiles__h::after { content: " →"; font-family: var(--om-en); }
/* 記事ができるまで(横並びのステップ) */
.om-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; list-style: none !important; padding: 0 !important; margin: 24px 0 0 !important; counter-reset: om-step; }
.om-steps li { position: relative; background: #fff; border: 1.5px solid var(--om-blue); border-radius: 12px; padding: 18px 16px 16px; margin: 0 !important; }
.om-steps li::before { counter-increment: om-step; content: "0" counter(om-step); font-family: var(--om-en); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--om-blue); display: block; margin-bottom: 6px; }
.om-steps li + li::after { content: "→"; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); color: var(--om-blue); font-family: var(--om-en); font-weight: 700; background: var(--om-paper); padding: 0 2px; }
.om-steps__h { display: block; font-weight: 700; color: var(--om-ink); margin-bottom: 6px; font-size: 15px; }
.om-steps__p { display: block; font-size: 12.5px; line-height: 1.8; color: var(--om-ink-2); }
/* 概要テーブル(core テーブルブロックに om-table を付ける) */
.om-table table { border-collapse: collapse; width: 100%; border: 0 !important; background: #fff; }
.om-table th, .om-table td { border: 0 !important; border-bottom: 1px solid var(--om-line) !important; padding: 14px 18px !important; font-size: 14px; line-height: 1.8; vertical-align: top; text-align: left; }
.om-table th { width: 28%; background: var(--om-band) !important; color: var(--om-head) !important; font-weight: 700; }
.om-table a { color: var(--om-head); font-weight: 700; }
/* 参考にしている情報源(外部リンクのリスト) */
.om-links { list-style: none !important; padding: 0 !important; margin: 8px 0 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.om-links li { margin: 0 !important; padding: 10px 0 !important; border-bottom: 1px dashed var(--om-line); font-size: 14px; line-height: 1.7; }
.om-links li::before { content: none !important; }
.om-links a { color: var(--om-ink); text-decoration: none; }
.om-links a:hover { color: var(--om-head); }
.om-links a::after { content: "↗"; font-family: var(--om-en); color: var(--om-blue); margin-left: 6px; font-size: 12px; }
/* 人物カード(監修者・編集部) */
.om-person { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: start; background: #fff; border: 1.5px solid var(--om-line); border-radius: var(--om-radius); padding: 22px 24px; margin-top: 18px; }
.om-person__img { aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--om-blue); }
.om-person__img img { width: 100%; height: 100%; object-fit: cover; }
.om-person__img .om-ph { min-height: 0; height: 100%; border-radius: 50%; font-size: 11px; }
.om-person__role { font-family: var(--om-en); font-size: 12px; letter-spacing: .14em; color: var(--om-blue); font-weight: 700; margin: 0 0 4px; }
.om-person__name { font-size: 18px; font-weight: 700; color: var(--om-ink); margin: 0 0 8px; }
.om-person__name small { font-size: 13px; color: var(--om-ink-2); margin-left: 8px; font-weight: 500; }
.om-person__bio { font-size: 13.5px; line-height: 1.9; color: var(--om-ink-2); margin: 0; }
.om-person__bio a { color: var(--om-head); font-weight: 700; }
/* 関連ページのリンクカード */
.om-linkcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none !important; padding: 0 !important; margin: 0 !important; }
.om-linkcards li { margin: 0 !important; }
.om-linkcards li::before { content: none !important; }
.om-linkcards a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1.5px solid var(--om-line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--om-ink); font-weight: 700; font-size: 14px; transition: border-color .2s; }
.om-linkcards a:hover { border-color: var(--om-blue); }
.om-linkcards a small { display: block; font-family: var(--om-en); font-size: 11px; letter-spacing: .14em; color: var(--om-blue); font-weight: 700; margin-bottom: 2px; }
.om-linkcards a::after { content: "→"; font-family: var(--om-en); color: var(--om-blue); flex: none; }
@media (max-width: 959px) {
  .om-tiles, .om-tiles--2 { grid-template-columns: 1fr 1fr; }
  .om-steps { grid-template-columns: 1fr; }
  .om-steps li + li::after { content: "↓"; left: 24px; top: -17px; transform: none; }
  .om-links { grid-template-columns: 1fr; }
  .om-linkcards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .om-page__hero .wp-block-columns { gap: 20px; }
  .om-tiles, .om-tiles--2, .om-linkcards { grid-template-columns: 1fr; }
  .om-table th, .om-table td { display: block; width: auto; }
  .om-table th { border-bottom: 0 !important; padding-bottom: 4px !important; }
  .om-person { grid-template-columns: 80px 1fr; gap: 14px; padding: 16px; }
}

/* ---------- ヘッダー(SWELL 本体のヘッダーを、モックの形に寄せる)。#body_wrap.om-chrome の付くページだけ ----------
 * 付く条件: ポータル版ページ、または 設定 > ポータル設定「サイト全体に適用」。 */
/* ヘッダーは画面に固定して追従させる(sticky は親の overflow の影響で効かないことがあるため fixed)。本文側にヘッダーの高さぶんの余白を空ける */
#body_wrap.om-chrome .l-header { position: fixed !important; top: var(--swl-adminbarH, 0px); left: 0; right: 0; width: 100%; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 3px solid var(--om-blue); border-bottom: 1px solid var(--om-line); box-shadow: 0 1px 0 rgba(34,51,61,.03); }
#body_wrap.om-chrome { padding-top: var(--om-header-h, 76px); }
#body_wrap.om-chrome .l-fixHeader { display: none !important; }
html { scroll-padding-top: var(--om-header-h, 76px); }
#body_wrap.om-chrome .l-header__bar { display: none !important; }                 /* 水色の RSS バーは 3px のラインに置き換え */
#body_wrap.om-chrome .l-header__inner { display: flex; align-items: center; gap: 22px; min-height: 72px; max-width: calc(1200px + 8vw); padding: 0 4vw; margin: 0 auto; }
#body_wrap.om-chrome .l-header__logo { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; }
#body_wrap.om-chrome .c-headLogo { margin: 0; }
#body_wrap.om-chrome .c-headLogo__img { max-height: 30px !important; width: auto !important; }
#body_wrap.om-chrome .c-headLogo::after { content: "✦✦　お口の中の専門雑誌"; font-size: 12px; font-weight: 700; color: var(--om-head); letter-spacing: .06em; margin-left: 12px; white-space: nowrap; }
#body_wrap.om-chrome .c-headLogo__link { display: inline-flex; align-items: center; }
#body_wrap.om-chrome .l-header__gnav { margin-left: auto; }
#body_wrap.om-chrome .c-gnav { display: flex; align-items: center; gap: 4px; height: 100%; }
#body_wrap.om-chrome .c-gnav > li { display: flex; align-items: center; }
#body_wrap.om-chrome .c-gnav > li > a { padding: 8px 13px; font-family: var(--om-head-font); font-size: 15px; font-weight: 700; color: var(--om-ink); letter-spacing: .06em; }
#body_wrap.om-chrome .c-gnav > li > a .ttl { position: relative; }
#body_wrap.om-chrome .c-gnav > li > a .ttl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--om-blue); transform: scaleX(0); transition: transform .2s; }
#body_wrap.om-chrome .c-gnav > li > a:hover .ttl::after { transform: scaleX(1); }
#body_wrap.om-chrome .c-gnav > li > a::before, #body_wrap.om-chrome .c-gnav > li > a::after { content: none !important; }
#body_wrap.om-chrome .c-gnav__s { margin-left: 8px; }
#body_wrap.om-chrome .c-gnav__sBtn { display: inline-flex !important; flex-direction: row !important; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 8px; width: auto !important; height: 40px !important; padding: 0 16px 0 14px !important; border: 1.5px solid var(--om-blue); border-radius: 999px; background: #fff; color: var(--om-head); font-size: 13px; font-weight: 700; line-height: 1; }
#body_wrap.om-chrome .c-gnav__sBtn .icon-search { font-size: 14px; }
#body_wrap.om-chrome .c-gnav__sBtn::after { content: "サイト内検索"; }
#body_wrap.om-chrome .c-gnav__sBtn:hover { background: var(--om-blue); color: #fff; }
/* スマホ: ロゴ小さめ、検索・メニューは丸ボタン */
@media (max-width: 959px) {
  #body_wrap.om-chrome { --om-header-h: 60px; }
  #body_wrap.om-chrome .l-header__inner { min-height: 60px; gap: 0; padding: 0 6px 0 14px; display: flex; align-items: center; justify-content: space-between; }
  #body_wrap.om-chrome .l-header__logo { order: 0; flex: 1 1 auto; text-align: left; padding: 0; margin: 0; }
  #body_wrap.om-chrome .c-headLogo { height: auto; }
  #body_wrap.om-chrome .c-headLogo__img { max-height: 22px !important; }
  #body_wrap.om-chrome .c-headLogo::after { content: none; }
  /* 右側: AIで聞く / 検索 / メニュー を、丸いアイコン + 小さな文字で横並び・中央揃え */
  #body_wrap.om-chrome .om-askBtn--sp, #body_wrap.om-chrome .l-header__customBtn, #body_wrap.om-chrome .l-header__menuBtn { order: 1; width: 54px; height: 60px; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
  #body_wrap.om-chrome .om-askBtn--sp { display: flex; border: 0; background: none; color: var(--om-ink); border-radius: 0; }
  #body_wrap.om-chrome .om-askBtn--sp svg { width: 34px; height: 34px; padding: 8px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--om-ink); color: var(--om-blue); background: #fff; }
  #body_wrap.om-chrome .om-askBtn--sp[aria-expanded="true"] svg { background: var(--om-ink); color: #fff; }
  #body_wrap.om-chrome .om-askBtn--sp span { display: block; font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--om-ink); white-space: nowrap; }
  #body_wrap.om-chrome .l-header__customBtn .c-iconBtn, #body_wrap.om-chrome .l-header__menuBtn .c-iconBtn { width: auto; height: auto; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; color: var(--om-ink); }
  #body_wrap.om-chrome .l-header__customBtn .c-iconBtn__icon, #body_wrap.om-chrome .l-header__menuBtn .c-iconBtn__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
  #body_wrap.om-chrome .l-header__customBtn .c-iconBtn__icon { border: 1.5px solid var(--om-ink); color: var(--om-ink); background: #fff; }
  #body_wrap.om-chrome .l-header__menuBtn .c-iconBtn__icon { background: var(--om-blue); color: #fff; }
  #body_wrap.om-chrome .c-iconBtn__label { display: block !important; font-size: 0; line-height: 1; color: var(--om-ink); }
  #body_wrap.om-chrome .c-iconBtn__label::after { font-size: 9px; font-weight: 700; letter-spacing: 0; }
  #body_wrap.om-chrome .l-header__customBtn .c-iconBtn__label::after { content: "検索"; }
  #body_wrap.om-chrome .l-header__menuBtn .c-iconBtn__label::after { content: "メニュー"; }
}

/* ---------- フッター(functions-chrome.php が出す .om-footer) ---------- */
#body_wrap.om-chrome .om-footer, #body_wrap.om-chrome .l-footer.om-footer { background: #fff !important; border-top: 1px solid var(--om-line); margin-top: 0 !important; padding: 0 !important; color: var(--om-ink) !important; }
#body_wrap.om-chrome .om-footer a, #body_wrap.om-chrome .om-footer p, #body_wrap.om-chrome .om-footer li { color: var(--om-ink); }
.om-footer__inner { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 40px) 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px 40px; }
.om-footer__logo { display: inline-block; text-decoration: none; }
.om-footer__logoImg { max-height: 28px; width: auto; }
.om-footer__logoText { font-family: var(--om-en); font-weight: 800; font-size: 20px; color: var(--om-head) !important; letter-spacing: .06em; }
.om-footer__tag { font-size: 12px; font-weight: 700; color: var(--om-head) !important; letter-spacing: .06em; margin: 10px 0 8px; }
.om-footer__stars { color: var(--om-blue); margin-right: 8px; }
.om-footer__desc { font-size: 13px; line-height: 1.9; color: var(--om-ink-2) !important; max-width: 30em; margin: 0; }
.om-footer__h { display: flex; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 700; color: var(--om-ink); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--om-line); }
.om-footer__en { font-family: var(--om-en); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--om-blue) !important; }
.om-footer__col ul { list-style: none; margin: 0; padding: 0; }
.om-footer__col li { margin: 0 0 8px; font-size: 13px; line-height: 1.6; }
.om-footer__col a { color: var(--om-ink) !important; text-decoration: none; }
.om-footer__col a:hover { color: var(--om-head) !important; text-decoration: underline; text-underline-offset: 3px; }
.om-footer__col--area ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.om-footer__bottom { border-top: 1px solid var(--om-line); }
.om-footer__bottomInner { max-width: 1200px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--om-ink-2) !important; }
.om-footer__bottomInner .om-footer__en { color: var(--om-head); font-size: 12px; }
@media (max-width: 959px) { .om-footer__inner { grid-template-columns: 1fr 1fr; } .om-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .om-footer__inner { grid-template-columns: 1fr; gap: 24px; } .om-footer__bottomInner { flex-direction: column; gap: 6px; } }

/* ---------- ヘッダーの「✦ AIで聞く」ボタンと質問パネル(Spark Journal 型)。portal-ask.js が差し込む ---------- */
#body_wrap.om-chrome .c-gnav .om-askBtnItem { display: flex; align-items: center; margin-left: 4px; }
.om-askBtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--om-ink); background: #fff; color: var(--om-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; line-height: 1; transition: background .2s, color .2s; }
.om-askBtn svg { color: var(--om-blue); }
.om-askBtn:hover, .om-askBtn[aria-expanded="true"] { background: var(--om-ink); color: #fff; }
.om-askBtn:hover svg, .om-askBtn[aria-expanded="true"] svg { color: #fff; }
.om-askBtn:focus-visible { outline: 2px solid var(--om-blue); outline-offset: 2px; }
.om-askBtn--sp { display: none; }
.om-askPanel { position: fixed; left: 0; right: 0; top: var(--om-ask-top, 72px); max-height: calc(100vh - var(--om-ask-top, 72px)); max-height: calc(100dvh - var(--om-ask-top, 72px)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; z-index: 90; background: var(--om-surface, #f4f8fb); border-top: 1px solid var(--om-line); border-bottom: 1px solid var(--om-line); box-shadow: 0 18px 40px rgba(34,51,61,.10); }
html.om-ask-open, html.om-ask-open body { overflow: hidden; }   /* パネルを開いている間はページ側を止め、パネルの中でスクロール */
.om-askPanel__inner { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.om-askPanel__inner { max-width: 760px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 20px; text-align: center; }
.om-askPanel__lead { font-family: var(--om-head-font); font-size: clamp(16px, 1.4vw, 20px); font-weight: 700; line-height: 1.7; color: var(--om-ink); margin: 0 0 6px; text-wrap: balance; }
.om-askPanel__note { font-size: 13px; color: var(--om-ink-2); margin: 0 0 18px; }
.om-ask--panel { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: none; margin: 0 !important; padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.om-ask--panel input { width: 100%; min-height: 56px; border: 1.5px solid var(--om-ink) !important; border-radius: 12px; background: #fff; padding: 0 16px !important; font-size: 16px; box-shadow: none; }
.om-ask--panel input:focus { outline: 2px solid var(--om-blue); outline-offset: 1px; }
.om-ask--panel button { justify-self: center; height: 48px; min-width: 200px; padding: 0 28px; border-radius: 999px; background: var(--om-ink); color: #fff; font-size: 16px; font-weight: 700; }
.om-ask--panel button:hover { background: var(--om-blue-deep); }
.om-askPanel .om-ask__panel { text-align: left; max-width: none; }
.om-askPanel__close { display: inline-flex; align-items: center; gap: 10px; margin: 18px auto 0; padding: 8px 4px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--om-ink); cursor: pointer; }
.om-askPanel__close span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--om-ink); color: #fff; font-size: 16px; }
@media (max-width: 959px) {
  .om-askBtn--sp { display: inline-flex; width: 40px; height: 40px; padding: 0; margin-right: 4px; }
  .om-askBtn--sp span { display: none; }
  .om-askBtn--sp svg { width: 20px; height: 20px; }
  #body_wrap.om-chrome .l-header__inner { display: flex; }
  #body_wrap.om-chrome .l-header__logo { margin-right: auto; }
  .om-askPanel__inner { padding: 26px 20px 18px; }
  .om-askPanel__lead { font-size: 16px; }
  .om-ask--panel input { min-height: 56px; }
}

/* ---------- 特集(om_feature): 特集ページのヘッダーと、特集一覧 ---------- */
#body_wrap.om-featArchive .l-mainContent__inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 48px; }
#body_wrap.om-featArchive .p-termContent { margin-top: 36px; }
#body_wrap.om-featArchive .c-pageTitle { display: none !important; }
.om-featHero { margin-top: 28px; border: 1.5px solid var(--om-blue); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 10px 28px rgba(57,188,223,.10); }
.om-featHero__img { aspect-ratio: 16 / 6; background: var(--om-ph); }
.om-featHero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.om-featHero__img .om-ph { min-height: 0; height: 100%; border-radius: 0; }
.om-featHero__box { position: relative; padding: clamp(28px, 4vw, 48px) clamp(20px, 5vw, 64px); background: linear-gradient(115deg, #fff2e4 0%, #ffe6ee 45%, #e8f6fb 100%); border-top: 1.5px solid var(--om-blue); }
.om-featHero__pill { position: absolute; left: clamp(20px, 5vw, 64px); top: -14px; background: var(--om-ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .1em; }
#body_wrap.om-featArchive .om-featHero__title { font-family: var(--om-head-font); font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--om-ink); margin: 6px 0 12px; line-height: 1.4; letter-spacing: .02em; font-feature-settings: "palt" 1; text-wrap: balance; }
.om-featHero__lead { font-size: 15px; line-height: 2; color: var(--om-ink); max-width: 46em; margin: 0; }
@media (max-width: 599px) { .om-featHero { margin-top: 12px; border-radius: 14px; } .om-featHero__img { aspect-ratio: 16 / 9; } .om-featHero__lead { font-size: 14px; } }
/* 特集一覧([om_features]) */
.om-features { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.om-features__item { margin: 0 !important; }
.om-features__item::before { content: none !important; }
.om-features__link { display: block; text-decoration: none; color: var(--om-ink); border: 1.5px solid var(--om-blue); border-radius: 16px; overflow: hidden; background: #fff; height: 100%; transition: transform .2s, box-shadow .2s; }
.om-features__link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(34,51,61,.10); }
.om-features__img { display: block; aspect-ratio: 4 / 3; background: var(--om-ph); }
.om-features__img img, .om-features__img .om-eyecatch__box { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; border: 0; }
.om-features__body { display: block; padding: 16px 18px 18px; }
.om-features__pill { display: inline-block; font-size: 11px; font-weight: 700; color: var(--om-head); border: 1px dashed var(--om-blue); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.om-features__name { display: block; font-family: var(--om-head-font); font-size: 18px; line-height: 1.5; margin-bottom: 6px; }
.om-features__desc { display: block; font-size: 13px; line-height: 1.8; color: var(--om-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.om-features__count { display: block; margin-top: 10px; font-family: var(--om-en); font-size: 12px; color: var(--om-blue); font-weight: 700; letter-spacing: .08em; }
@media (max-width: 959px) { .om-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .om-features { grid-template-columns: 1fr; } }

/* ---------- カテゴリページ(学ぶ / 知る / 聞く / 探す と子) ---------- */
.om-catChips { list-style: none !important; margin: 18px 0 0 !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.om-catChips li { margin: 0 !important; }
.om-catChips li::before { content: none !important; }
.om-catChips a { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--om-ink); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--om-ink); text-decoration: none; }
.om-catChips a small { font-family: var(--om-en); font-size: 11px; color: var(--om-blue); }
.om-catChips a:hover, .om-catChips li.is-current a { background: var(--om-ink); color: #fff; }
.om-catChips li.is-current a small { color: #fff; }
.om-eyecatch__box--wide img { object-fit: contain; }
.om-catMap { max-width: 1200px; margin: 28px auto 0; }
.om-catHead { margin: 28px 0 8px; padding-bottom: 18px; border-bottom: 1.5px solid var(--om-blue); }
.om-catHead__parent { display: inline-block; font-size: 12px; font-weight: 700; color: var(--om-head); text-decoration: none; margin-bottom: 6px; }
.om-catHead__parent::before { content: "‹ "; }
#body_wrap.om-catArchive .om-catHead__title { font-family: var(--om-head-font); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 0 0 8px; line-height: 1.4; color: var(--om-ink); }
.om-catHead__lead { font-size: 14px; color: var(--om-ink-2); line-height: 1.9; max-width: 46em; margin: 0; }
