/*
 * site-base.css
 *
 * meo.omotenashi.com サイト全体（非LP）のブランド統一スタイル
 * LP用CSS（omotenashi-lp-design-system.css）は .om-lp スコープで独立運用されているため本CSSとは干渉しない
 *
 * 対象要素:
 *   - 記事本文タイポグラフィ（H1-H3, p, ul, ol, blockquote, table）
 *   - リンク・ボタン装飾
 *   - 編集画面にも同一適用（add_editor_style で読込）
 */

/* ============ 見出しフォント（サイト全体） ============ */
/* Snow Monkey の本文エリア・記事コンテンツ・エディタの見出しに適用 */
.c-entry__content h1,
.c-entry__content h2,
.c-entry__content h3,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  font-weight: 600;
  color: #1A5276;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ============ 記事タイトル（H1相当・ページヘッダー） ============ */
/* Snow Monkeyのデフォルト色より優先するため高特異度で指定 */
body:not(.om-lp-page) .p-entry__header .c-entry__title,
body:not(.om-lp-page) .c-entry__header .c-entry__title,
body:not(.om-lp-page) h1.c-entry__title,
body:not(.om-lp-page) .c-page-header__title {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  font-weight: 600;
  color: #1A5276;
  line-height: 1.4;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 0.5em;
}
/* タイトル下の金色アクセントライン */
body:not(.om-lp-page) .p-entry__header .c-entry__title::after,
body:not(.om-lp-page) .c-entry__header .c-entry__title::after,
body:not(.om-lp-page) h1.c-entry__title::after,
body:not(.om-lp-page) .c-page-header__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #B8860B 0%, #D4A843 100%);
}

/* ============ H2装飾: 単一記事・固定ページのみ適用（アーカイブ・検索結果ページは除外） ============ */
body:not(.archive):not(.search):not(.blog):not(.home):not(.category):not(.tag) .c-entry__content h2,
.editor-styles-wrapper h2 {
  position: relative;
  padding: 0.9em 1.2em 0.9em 1.8em;
  margin-top: 3.5em;
  margin-bottom: 1.5em;
  background: linear-gradient(90deg, #0E2F44 0%, #1A5276 100%);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 1.7em;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 12px rgba(14, 47, 68, 0.18);
}
/* 左端の金色アクセントバー（Primary背景に対する差し色） */
body:not(.archive):not(.search):not(.blog):not(.home):not(.category):not(.tag) .c-entry__content h2::before,
.editor-styles-wrapper h2::before {
  content: "";
  position: absolute;
  left: 0.6em;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: linear-gradient(180deg, #B8860B 0%, #D4A843 50%, #B8860B 100%);
  border-radius: 2px;
}
/* 右上の金色コーナーアクセント（格調） */
body:not(.archive):not(.search):not(.blog):not(.home):not(.category):not(.tag) .c-entry__content h2::after,
.editor-styles-wrapper h2::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #D4A843;
  border-right: 2px solid #D4A843;
}

/* ============ H3: 単一記事のみ装飾適用 ============ */
body:not(.archive):not(.search):not(.blog):not(.home):not(.category):not(.tag) .c-entry__content h3,
.editor-styles-wrapper h3 {
  position: relative;
  padding: 0.3em 0 0.5em 1.6em;
  margin-top: 2em;
  margin-bottom: 1em;
  border: none;
  border-bottom: 1px solid #DFE2E6;
  font-size: 1.25em;
  font-weight: 600;
  color: #1A5276;
}
/* 先頭の金色菱形マーク */
body:not(.archive):not(.search):not(.blog):not(.home):not(.category):not(.tag) .c-entry__content h3::before,
.editor-styles-wrapper h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #B8860B 0%, #D4A843 100%);
  transform: rotate(45deg);
}
/* 下線の左端にPrimary太線アクセント */
body:not(.archive):not(.search):not(.blog):not(.home):not(.category):not(.tag) .c-entry__content h3::after,
.editor-styles-wrapper h3::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 2px;
  background: #1A5276;
}

/* ============ H4: 控えめな装飾（単一記事のみ） ============ */
body:not(.archive):not(.search):not(.blog):not(.home):not(.category):not(.tag) .c-entry__content h4,
.editor-styles-wrapper h4 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600;
  color: #1A5276;
  padding-left: 0.8em;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  border-left: 3px solid #D4A843;
  font-size: 1.1em;
}

/* ============ 本文タイポグラフィ ============ */
.c-entry__content,
.editor-styles-wrapper {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: #2C2C2A;
}
.c-entry__content p {
  margin: 1em 0;
}

/* ============ リンク（記事本文） ============ */
.c-entry__content a:not(.c-btn):not(.wp-block-button__link):not(.om-article-cta__button):not(.om-article-cta__card) {
  color: #2980B9;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
.c-entry__content a:not(.c-btn):not(.wp-block-button__link):not(.om-article-cta__button):not(.om-article-cta__card):hover {
  color: #1A5276;
}
/* メタ情報（更新日・カテゴリ・タグなど）の下線を除去 */
.c-entry__content .c-meta a,
.c-entry__content .c-entry-summary__meta a,
.c-entry__content .c-entry-summary__footer a,
.c-entry__content .c-entry-summary__term a {
  text-decoration: none !important;
}
.c-entry__content .c-meta a:hover,
.c-entry__content .c-entry-summary__meta a:hover,
.c-entry__content .c-entry-summary__footer a:hover,
.c-entry__content .c-entry-summary__term a:hover {
  text-decoration: underline !important;
  color: #D0353A !important;
}
/* Font Awesomeアイコンは下線に含めない */
.c-entry__content .c-meta i,
.c-entry__content .c-meta .fa,
.c-entry__content .c-meta .fas,
.c-entry__content .c-meta .far {
  text-decoration: none !important;
  display: inline-block;
  vertical-align: baseline;
}

/* カード全体を包むアンカーの下線を除去（内部の日付等に親からの下線が継承される問題を解消） */
.c-entry__content .c-entries__item > a,
.c-entry__content .c-entries__item > a *,
.c-entry__content .c-entry-summary a,
.c-entry__content .c-entry-summary a * {
  text-decoration: none !important;
}
.c-entry__content .c-entries__item > a:hover .c-entry-summary__title {
  color: #D0353A !important;
}

/* ============ リスト ============ */
.c-entry__content ul,
.c-entry__content ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.c-entry__content ul li,
.c-entry__content ol li {
  margin: 0.4em 0;
}
.c-entry__content ul li::marker {
  color: #1A5276;
}

/* ============ 引用ブロック ============ */
.c-entry__content blockquote,
.c-entry__content .wp-block-quote {
  position: relative;
  margin: 2em 0;
  padding: 1.2em 1.5em 1.2em 2.5em;
  background: #FBF8EE;
  border-left: 4px solid #B8860B;
  border-radius: 0 4px 4px 0;
  font-style: normal;
}
.c-entry__content blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.2em;
  left: 0.5em;
  font-family: "Shippori Mincho", serif;
  font-size: 2.5em;
  color: #B8860B;
  line-height: 1;
  opacity: 0.6;
}
.c-entry__content blockquote p:last-child {
  margin-bottom: 0;
}

/* ============ テーブル（ブロックエディタ・WPコア対象のみ） ============ */
/* 目次プラグイン等の素のtable描画には適用しないため、.wp-block-table配下のtableに限定 */
.c-entry__content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}
.c-entry__content .wp-block-table th {
  padding: 0.75em 1em;
  background: #E8ECF0;
  color: #1A5276;
  font-weight: 700;
  text-align: left;
  border: 1px solid #DFE2E6;
}
.c-entry__content .wp-block-table td {
  padding: 0.75em 1em;
  border: 1px solid #DFE2E6;
}
.c-entry__content .wp-block-table tr:nth-child(even) td {
  background: #FAFBFC;
}

/* ============ コードブロック（インライン・ブロック） ============ */
.c-entry__content code {
  padding: 0.15em 0.4em;
  background: #F5F5F0;
  color: #D0353A;
  font-size: 0.9em;
  border-radius: 3px;
  border: 1px solid #EAEAE3;
}
.c-entry__content pre code {
  display: block;
  padding: 1em 1.2em;
  background: #0E2F44;
  color: #D4E6F1;
  border: none;
  overflow-x: auto;
}

/* ============ ボタンブロック（WPコア・Snow Monkey） ============ */
.c-entry__content .wp-block-button__link,
.c-entry__content .smb-btn--primary {
  background: #D0353A;
  color: #fff;
  font-weight: 700;
  border-radius: 4px;
  padding: 0.85em 2em;
  transition: background 0.15s;
  text-decoration: none;
}
.c-entry__content .wp-block-button__link:hover,
.c-entry__content .smb-btn--primary:hover {
  background: #A82328;
  color: #fff;
}

/* ============ 水平線 ============ */
.c-entry__content hr {
  margin: 2.5em 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #DFE2E6 20%, #DFE2E6 80%, transparent 100%);
}

/* ============ Snow Monkey目次ブロック（デザイン刷新） ============ */
/* 装飾の干渉防止（H2下線等を無効化）+ モダンなボックスデザイン */
.c-entry__content .smb-contents-outline,
.c-entry__content .wpco-wrapper {
  margin: 2.5em 0;
  padding: 0;
  background: transparent;
}

/* 目次コンテナ */
.c-entry__content .wpco {
  position: relative;
  padding: 1.8em 2em 1.5em;
  background: linear-gradient(180deg, #FAFBFC 0%, #F3F5F8 100%);
  border: 1px solid #DFE2E6;
  border-left: 4px solid #1A5276;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(26, 82, 118, 0.04);
}

/* 目次タイトル「目次」 */
.c-entry__content .wpco__title,
.c-entry__content .smb-contents-outline > .wpco > h2.wpco__title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0 0 1em !important;
  padding: 0 0 0.6em !important;
  font-family: "Shippori Mincho", serif;
  font-size: 1.2em;
  font-weight: 600;
  color: #1A5276;
  border: none !important;
  border-bottom: 1px solid #DFE2E6 !important;
  text-align: left;
}
.c-entry__content .wpco__title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #B8860B 0%, #D4A843 100%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex-shrink: 0;
}
.c-entry__content .wpco__title::after {
  display: none !important;
}

/* 目次内のリスト（ol/ul共通・番号なしミニマルデザイン） */
.c-entry__content .wpco ol,
.c-entry__content .wpco ul,
.c-entry__content .contents-outline ol,
.c-entry__content .contents-outline ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* ネスト（子項目）のインデントとガイドライン */
.c-entry__content .wpco ol ol,
.c-entry__content .wpco ul ul,
.c-entry__content .contents-outline ol ol,
.c-entry__content .contents-outline ul ul {
  margin: 0.2em 0 0.4em 0.3em;
  padding-left: 1em;
  border-left: 2px dotted #D4E6F1;
}

/* リストアイテム */
.c-entry__content .wpco li,
.c-entry__content .contents-outline li {
  position: relative;
  padding: 0.4em 0 0.4em 1em;
  border: none !important;
  font-size: 0; /* プラグイン既定の番号「1 │」のテキストノードを不可視化 */
}

/* リンク本体のみ表示（アンダーライン除去・ホバーで真朱） */
.c-entry__content .wpco li > a,
.c-entry__content .contents-outline li > a {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2C2C2A !important;
  text-decoration: none !important;
  transition: color 0.15s, transform 0.15s;
}
.c-entry__content .wpco li > a::before {
  content: "";
  position: absolute;
  left: -0.9em;
  top: 0.75em;
  width: 0.4em;
  height: 0.4em;
  background: #1A5276;
  border-radius: 50%;
  opacity: 0.4;
  transition: background 0.15s, opacity 0.15s, transform 0.15s;
}
.c-entry__content .wpco li > a:hover {
  color: #D0353A !important;
  transform: translateX(2px);
}
.c-entry__content .wpco li > a:hover::before {
  background: #D0353A;
  opacity: 1;
}

/* ネストはマーカーサイズを小さく・色も薄く */
.c-entry__content .wpco ol ol li > a::before,
.c-entry__content .wpco ul ul li > a::before,
.c-entry__content .contents-outline ol ol li > a::before,
.c-entry__content .contents-outline ul ul li > a::before {
  width: 0.3em;
  height: 0.3em;
  top: 0.85em;
  background: #5A6270;
}

/* ネストのli内フォントサイズを基準値に復元 */
.c-entry__content .wpco li > ol,
.c-entry__content .wpco li > ul,
.c-entry__content .contents-outline li > ol,
.c-entry__content .contents-outline li > ul {
  font-size: 1rem;
}
.c-entry__content .wpco li::marker,
.c-entry__content .contents-outline li::marker {
  content: "";
}

/* ============ Snow Monkey FAQブロック（和モダン・バッジデザイン） ============ */
.c-entry__content .smb-faq {
  border-top: none !important;
  margin: 2em 0;
}
.c-entry__content .smb-faq__item {
  position: relative;
  border-bottom: none !important;
  margin: 0 0 1em;
  padding: 1.5em 1.5em 1.2em !important;
  background: linear-gradient(180deg, #FAFBFC 0%, #F3F5F8 100%);
  border: 1px solid #DFE2E6;
  border-left: 4px solid #1A5276;
  border-radius: 6px;
  transition: transform 0.15s, box-shadow 0.15s, border-left-color 0.15s;
}
.c-entry__content .smb-faq__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.08);
  border-left-color: #D0353A;
}

/* Q・Aラベル共通 */
.c-entry__content .smb-faq__item__question__label,
.c-entry__content .smb-faq__item__answer__label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  width: 2em;
  height: 2em;
  margin: 0 1em 0 0 !important;
  border-radius: 50%;
  font-family: "Shippori Mincho", serif;
  font-weight: 600 !important;
  font-size: 0.95em !important;
  line-height: 1 !important;
  letter-spacing: 0;
}

/* Qラベル: Primary塗り + 白文字 */
.c-entry__content .smb-faq__item__question__label {
  background: linear-gradient(135deg, #1A5276 0%, #0E2F44 100%);
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(26, 82, 118, 0.25);
}

/* Aラベル: 金色塗り + 白文字 */
.c-entry__content .smb-faq__item__answer__label {
  background: linear-gradient(135deg, #B8860B 0%, #D4A843 100%);
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(184, 134, 11, 0.25);
}

/* 質問テキスト（太字・Primary色・明朝体） */
.c-entry__content .smb-faq__item__question {
  align-items: center !important;
  margin: 0 0 1em !important;
  font-family: "Shippori Mincho", serif;
}
.c-entry__content .smb-faq__item__question__body {
  color: #1A5276;
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.6 !important;
  padding-top: 0.15em;
}

/* 回答テキスト */
.c-entry__content .smb-faq__item__answer {
  align-items: flex-start !important;
}
.c-entry__content .smb-faq__item__answer__body {
  color: #2C2C2A;
  line-height: 1.8 !important;
  padding-top: 0.2em;
}
.c-entry__content .smb-faq__item__answer__body strong {
  color: #1A5276;
  font-weight: 700;
}

/* ============ アーカイブ一覧（c-entries）の過剰な間隔をリセット ============ */
/* テキストリスト版 .c-entries--text と カード版 .c-entries--rich-media 共通 */
.c-entry__content .c-entries,
.c-entry__content ul.c-entries {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1em 0 !important;
  line-height: 1.5;
}
.c-entry__content .c-entries__item,
.c-entry__content ul.c-entries > li.c-entries__item {
  margin: 0 !important;
  padding: 0 !important;
}
.c-entry__content .c-entries__item::before,
.c-entry__content .c-entries__item::after {
  display: none !important;
  content: none !important;
}
/* テキスト版：各行をコンパクトに（行間タイト） */
.c-entry__content .c-entries--text {
  line-height: 1.4;
}
.c-entry__content .c-entries--text .c-entries__item {
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px dashed #DFE2E6;
}
.c-entry__content .c-entries--text .c-entries__item:last-child {
  border-bottom: none;
}
/* 内部の c-entry-summary の余白を強制リセット */
.c-entry__content .c-entries--text .c-entry-summary,
.c-entry__content .c-entries--text .c-entry-summary__header,
.c-entry__content .c-entries--text .c-entry-summary__body,
.c-entry__content .c-entries--text .c-entry-summary__content,
.c-entry__content .c-entries--text .c-entry-summary__meta {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  display: block !important;
}
.c-entry__content .c-entries--text .c-entry-summary__title {
  padding: 0.35em 0 !important;
  font-size: 0.95em !important;
  line-height: 1.5 !important;
}
.c-entry__content .c-entries--text .c-entry-summary__meta,
.c-entry__content .c-entries--text .c-entry-summary__figure,
.c-entry__content .c-entries--text .c-entry-summary__content,
.c-entry__content .c-entries--text .c-entry-summary__term,
.c-entry__content .c-entries--text .c-entry-summary__footer {
  display: none !important; /* テキスト版ではタイトル以外を非表示 */
}

/* トップページ（ウィジェットエリア含む）の c-entries--text は視覚的カード表示 */
/* .c-entry__content 外のケース（フロントページウィジェット）もカバー */
body.home .c-entries--text,
body.home .l-front-page-widget-area .c-entries--text {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.4em;
  padding: 0 !important;
  margin: 1.5em 0 !important;
}
body.home .c-entries--text .c-entries__item {
  padding: 0.7em !important;
  margin: 0 !important;
  border: 1px solid #EAEDF0;
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
body.home .c-entries--text .c-entries__item:hover {
  border-color: #1A5276;
  box-shadow: 0 2px 8px rgba(26, 82, 118, 0.08);
}
body.home .c-entries--text .c-entries__item > a {
  display: flex !important;
  gap: 1em;
  align-items: stretch;
  text-decoration: none !important;
}
/* サムネイル・抜粋・メタを表示（非表示ルールを上書き） */
body.home .c-entries--text .c-entry-summary,
body.home .c-entries--text .c-entry-summary__header,
body.home .c-entries--text .c-entry-summary__body,
body.home .c-entries--text .c-entry-summary__content,
body.home .c-entries--text .c-entry-summary__meta,
body.home .c-entries--text .c-entry-summary__figure,
body.home .c-entries--text .c-entry-summary__term {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.home .c-entries--text .c-entry-summary__meta {
  display: flex !important;
  gap: 0.5em;
  font-size: 0.78em;
  color: #8892A0;
  margin-top: 0.3em !important;
}
body.home .c-entries--text .c-entry-summary {
  display: flex !important;
  gap: 1em;
  align-items: stretch;
  width: 100%;
}
body.home .c-entries--text .c-entry-summary__figure {
  flex: 0 0 auto;
  width: 120px;
  height: 90px;
  overflow: hidden;
  border-radius: 4px;
  background: #F3F5F8;
}
body.home .c-entries--text .c-entry-summary__figure img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
body.home .c-entries--text .c-entry-summary__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  gap: 0.3em;
  justify-content: center;
}
body.home .c-entries--text .c-entry-summary__title {
  font-size: 1em !important;
  font-weight: 700;
  color: #1A5276 !important;
  line-height: 1.45;
  padding: 0 !important;
}
body.home .c-entries--text .c-entries__item:hover .c-entry-summary__title {
  color: #D0353A !important;
}
body.home .c-entries--text .c-entry-summary__content {
  font-size: 0.85em !important;
  color: #5A6270;
  line-height: 1.5;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-entry__content .c-entries--text .c-entries__item a {
  display: block;
  text-decoration: none !important;
  color: #2C2C2A !important;
  transition: color 0.15s;
}
.c-entry__content .c-entries--text .c-entries__item a:hover {
  color: #D0353A !important;
  text-decoration: underline !important;
}
.c-entry__content .c-entries--text .c-entries__item a:hover .c-entry-summary__title {
  color: #D0353A !important;
}

/* ============ カテゴリ一覧ブロック（wp-block-categories）をグリッドカードデザイン ============ */
.c-entry__content .wp-block-categories,
.c-entry__content ul.wp-block-categories-list {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5em;
  padding: 0 !important;
  /* WPのコンテンツ幅に合わせる（H2と左右端を揃える） */
  max-width: var(--wp--style--global--content-size, 100%);
  margin: 1.5em auto !important;
}
/* 各カテゴリをli全体でカード化（flexで左=リンク・右=件数） */
.c-entry__content .wp-block-categories li,
.c-entry__content .wp-block-categories-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0.55em 0.9em !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.3em;
  position: relative;
  background: #fff;
  border: 1px solid #DFE2E6;
  border-left: 3px solid #1A5276;
  border-radius: 4px;
  transition: all 0.15s;
  font-size: 0.78em;
  font-weight: 400;
  color: #8892A0;
  line-height: 1;
}
.c-entry__content .wp-block-categories li::marker,
.c-entry__content .wp-block-categories li::before,
.c-entry__content .wp-block-categories li::after {
  content: "" !important;
  display: none !important;
}
.c-entry__content .wp-block-categories li:hover {
  border-color: #1A5276;
  border-left-color: #D0353A;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(26, 82, 118, 0.12);
}
.c-entry__content .wp-block-categories li > a {
  padding: 0 !important;
  margin: 0 !important;
  color: #1A5276 !important;
  text-decoration: none !important;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.15s;
}
.c-entry__content .wp-block-categories li:hover > a {
  color: #D0353A !important;
}

/* ============ 人気の記事（wpaw-ranking）をモダンカードデザイン ============ */
.c-entry__content .popular-posts,
.c-entry__content .wpaw-ranking {
  margin: 1.5em auto;
  max-width: var(--wp--style--global--content-size, 100%);
}
.c-entry__content .wpaw-ranking__list,
.c-entry__content .wpaw-posts-list {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.7em;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: wpaw-rank;
}
.c-entry__content .wpaw-ranking__item,
.c-entry__content .wpaw-posts-list__item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-increment: wpaw-rank;
  position: relative;
  background: #fff;
  border: 1px solid #DFE2E6;
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.15s;
}
.c-entry__content .wpaw-ranking__item::marker,
.c-entry__content .wpaw-ranking__item::before,
.c-entry__content .wpaw-ranking__item::after {
  content: none !important;
  display: none !important;
}
.c-entry__content .wpaw-ranking__item:hover {
  border-color: #1A5276;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.1);
}

/* アンカー全体をフレックスカード化 */
.c-entry__content .wpaw-ranking__item > a {
  display: flex !important;
  align-items: stretch;
  gap: 0;
  padding: 0 !important;
  text-decoration: none !important;
  color: inherit;
}

/* サムネイル（左側・正方形・ランクバッジ重ねる） */
.c-entry__content .wpaw-ranking__figure,
.c-entry__content .wpaw-posts-list__figure {
  flex: 0 0 auto;
  width: 110px;
  height: 110px;
  position: relative;
  overflow: hidden;
  background: #F3F5F8;
  margin: 0;
}
.c-entry__content .wpaw-ranking__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ランキングバッジ（サムネ左上に重ねる） */
.c-entry__content .wpaw-ranking__figure::before {
  content: counter(wpaw-rank);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 2em;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #B8860B 0%, #D4A843 100%);
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
/* TOP3は特別色 */
.c-entry__content .wpaw-ranking__list > li:nth-child(1) .wpaw-ranking__figure::before {
  background: linear-gradient(135deg, #D0353A 0%, #A82328 100%);
  box-shadow: 0 2px 6px rgba(208, 53, 58, 0.4);
}
.c-entry__content .wpaw-ranking__list > li:nth-child(2) .wpaw-ranking__figure::before,
.c-entry__content .wpaw-ranking__list > li:nth-child(3) .wpaw-ranking__figure::before {
  background: linear-gradient(135deg, #1A5276 0%, #0E2F44 100%);
  box-shadow: 0 2px 6px rgba(26, 82, 118, 0.4);
}

/* 本文エリア（右側） */
.c-entry__content .wpaw-ranking__body,
.c-entry__content .wpaw-posts-list__body {
  flex: 1 1 auto;
  padding: 0.9em 1em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35em;
  min-width: 0;
}

/* カテゴリチップ */
.c-entry__content .wpaw-ranking__taxonomy,
.c-entry__content .wpaw-posts-list__taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  margin: 0;
}
.c-entry__content .wpaw-term,
.c-entry__content .wpaw-ranking__term {
  display: inline-block;
  padding: 0.1em 0.55em;
  background: #D4E6F1;
  color: #1A5276;
  font-size: 0.72em;
  font-weight: 700;
  border-radius: 2px;
  line-height: 1.5;
}

/* タイトル */
.c-entry__content .wpaw-ranking__title,
.c-entry__content .wpaw-posts-list__title {
  font-size: 0.95em;
  font-weight: 700;
  color: #1A5276;
  line-height: 1.45;
  text-decoration: none !important;
  transition: color 0.15s;
}
.c-entry__content .wpaw-ranking__item:hover .wpaw-ranking__title {
  color: #D0353A;
}

/* 日付 */
.c-entry__content .wpaw-ranking__date,
.c-entry__content .wpaw-posts-list__date {
  font-size: 0.78em;
  color: #8892A0;
  font-weight: 400;
}

/* ============ アーカイブカードタイトル（装飾を明示リセット） ============ */
.c-entry__content .c-entry-summary__title,
.c-entry__content .c-entry-summary__title h2,
.c-entry__content .c-entry-summary__title h3 {
  background: transparent !important;
  color: #1A5276 !important;
  padding: 0.5em 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 1em !important;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0 !important;
  background-image: none !important;
}
.c-entry__content .c-entry-summary__title::before,
.c-entry__content .c-entry-summary__title::after,
.c-entry__content .c-entry-summary__title h2::before,
.c-entry__content .c-entry-summary__title h2::after {
  content: none !important;
  display: none !important;
}
.c-entry__content .c-entry-summary__title a {
  color: #1A5276 !important;
  text-decoration: none !important;
}
.c-entry__content .c-entry-summary__title a:hover {
  color: #D0353A !important;
}

/* ============ トップページ ヒーロー文字の可読性向上（影のみ・画像色はそのまま） ============ */
body.home .smb-section-with-bgimage .smb-section__title,
body.home .smb-section-with-bgimage .smb-section__lede,
body.home .smb-section-with-bgimage h1,
body.home .smb-section-with-bgimage h2,
body.home .smb-section-with-bgimage h3,
body.home .smb-section-with-bgimage p,
body.home .hero,
body.home .hero__title,
body.home .hero p {
  color: #fff !important;
  /* 強めの多重シャドウ＋細い縁取り */
  text-shadow:
    0 0 2px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 1),
    0 0 8px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(0, 0, 0, 0.85),
    0 0 24px rgba(0, 0, 0, 0.7),
    0 3px 6px rgba(0, 0, 0, 0.95);
  -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
}

/* ============ 図版キャプション ============ */
.c-entry__content figcaption {
  margin-top: 0.6em;
  font-size: 0.85em;
  color: #5A6270;
  text-align: center;
  line-height: 1.5;
}
