/* ==========================================================================
 * MapFan コンテンツ: 崩れの修正と寸法の調整
 * 親テーマ（base.css → style.css）の後に読む。色・書体・部品の形はそのまま、
 * 位置・余白・文字サイズだけを整える。
 *
 * 1. 縦のグリッド    … ヘッダー・本文・サイドバーの左右の端を 1 本の線にそろえる
 * 2. 長い文字への備え … 長いタイトル・URL・英単語で横にはみ出さない
 * 3. 重ならない部品  … 文字量でボタンや枠の高さが伸び、下の要素と重ならない
 * 4. 寸法の調整      … 空きすぎの余白と大きすぎる見出しを詰める
 * ========================================================================== */

:root {
  --mf-container: 1200px;   /* 本文 + サイドバーの幅（親テーマの .wrap と同じ） */
  --mf-gutter: 40px;        /* 画面の左右の余白 */
  --mf-card-pad-x: 40px;    /* カードの左右の内側余白 */
  --mf-card-pad-y: 32px;    /* カードの上下の内側余白 */
  --mf-gap: 24px;           /* カード同士・ブロック同士の間 */
}
@media screen and (max-width: 1200px) {
  :root { --mf-gutter: 30px; }
}
@media screen and (max-width: 991px) {
  :root { --mf-gutter: 24px; --mf-card-pad-x: 32px; --mf-card-pad-y: 28px; }
}
@media screen and (max-width: 767px) {
  :root { --mf-gutter: 16px; --mf-card-pad-x: 16px; --mf-card-pad-y: 20px; --mf-gap: 16px; }
}

/* --------------------------------------------------------------------------
 * 0. ヘッダー（mapfan.com と同じにする）
 * mapfan.com から /contents/ に移ったときにロゴの大きさ・位置が変わらないよう、
 * mapfan.com のヘッダーの実測値に合わせる（2026-12-03 時点）。
 *   600px 以上: 高さ 64px（上の赤線 2px を含む）、ロゴ mapfan_logo.svg 108×30、左 16px・上 16px
 *   600px 未満: 高さ 56px、ロゴ m_logo.svg 36×36、左 16px・上 9px
 * ------------------------------------------------------------------------ */
#header {
  box-sizing: border-box;
  height: 64px;
  padding: 14px 0 0 !important; /* 上の赤線 2px + 14px = ロゴの上端 16px */
}
#header .header-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px;
}
#header #logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}
#header #logo a,
#header #logo picture {
  display: block;
}
#header #logo img {
  display: block;
  width: 108px;
  /* SVG 本来の比率は 120:32.3（約 3.72:1）。高さを 30px に固定すると枠（3.6:1）と比率が合わず、
     絵が上下 0.5px ずつ浮いて輪郭がにじみ、潰れたように見えた。高さは比率どおり（約 29.07px）にする。
     描かれるロゴの大きさは mapfan.com（108×30 の枠に比率を保って描かれる）と同じ */
  height: auto;
  aspect-ratio: 120 / 32.3;
  max-width: none;
  margin: 0; /* 上端は整数位置の 16px（mapfan.com の絵の上端 16.47px との差は 0.5px 未満） */
  border: 0;
}
@media screen and (max-width: 599px) {
  #header {
    height: 56px;
    padding-top: 7px !important; /* 上の赤線 2px + 7px = ロゴの上端 9px */
  }
  #header #logo img {
    width: 36px;
    height: 36px;
  }
}

/* --------------------------------------------------------------------------
 * 1. 縦のグリッド
 * 親テーマは本文の枠（.wrap）の左右の余白が 30 / 20 / 10px と幅ごとにばらばらだったので、
 * 「最大幅 1200px + 左右 --mf-gutter」の枠にそろえる。
 * ヘッダーは mapfan.com と共通の部品なので、本文のグリッドではなく mapfan.com に合わせる（0. を参照）。
 * ------------------------------------------------------------------------ */
.wrap,
.one-column #content .wrap {
  box-sizing: content-box;
  width: auto;
  max-width: var(--mf-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--mf-gutter);
  padding-right: var(--mf-gutter);
}

/* 1 カラムのページ（LP 系の固定ページ）は読みやすさのため本文幅 1000px のまま中央に置く */
.one-column #content .wrap {
  max-width: 1000px;
}

/* 横のグリッド
   1 段目（ヘッダーの直下）: パンくず（記事・固定ページ・検索）またはページ見出し（カテゴリ一覧）を全幅に置く。
   2 段目: 本文の最初のカードとサイドバーの最初の見出しを同じ高さから始める。
   カテゴリ一覧はページ見出しが本文の列の中にあり、サイドバーより 54px 下から本文が始まっていたので、
   archive.php で見出しを列の外に出した。 */
.page-heading {
  margin: 0 0 16px;
}
.page-heading h1.post-title {
  margin: 0;
}
/* トップだけ親テーマの上余白 52px が残り、他のページ（20px）より本文が 32px 下から始まっていた */
#content {
  padding-top: 20px !important;
}

/* カード内の文字の左端を、見出し・本文・ボタンで 1 本にそろえる */
article .post-header,
article .post-content,
.post-loop-wrap .post-content,
.cat-content .post-header,
article.page .post-header {
  padding-left: var(--mf-card-pad-x) !important;
  padding-right: var(--mf-card-pad-x) !important;
}

/* --------------------------------------------------------------------------
 * 2. 長い文字への備え
 * 区切りのない長い英数字（URL など）は枠の幅で折り返す。
 * ------------------------------------------------------------------------ */
.post-title,
.post-content,
.breadcrumb,
.cat-content,
#side,
#footer,
.talk-left,
.talk-right,
.introduce {
  overflow-wrap: anywhere;
}
/* 横並び（flex）の子が中身の長さで広がらないようにする */
.items .item,
.items4 .item4,
.items5 .item5 {
  min-width: 0;
}
/* 画像・埋め込みは枠の幅を超えない */
.post-content img,
.post-content iframe,
.post-content video {
  max-width: 100%;
}
.post-content img {
  height: auto;
}
/* 表: スマホでは親テーマが折り返しを禁止しているため、はみ出す分は表の中で横スクロールにする
   （.post-content は overflow:hidden なので、そのままだと右側が切れて読めない） */
@media screen and (max-width: 767px) {
  .post-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --------------------------------------------------------------------------
 * 3. 重ならない部品
 * ------------------------------------------------------------------------ */
/* LP 系のボタン（.button）は 幅300 × 高さ54px 固定・行の高さ54px だったため、
   文言が 2 行になると文字が枠の外にあふれ、下の本文と重なっていた。
   高さは最小値だけ決め、文字量に合わせて伸びるようにする。 */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  height: auto;
  min-height: 54px;
  padding: 12px 24px;
  line-height: 1.5;
  white-space: normal;
  vertical-align: middle;
}
/* 「続きを読む」: 文字量で伸びる・幅を超えない */
.more-link {
  display: inline-block;
  max-width: 100%;
  height: auto;
  white-space: normal;
}
/* コメント送信ボタン（親テーマで幅300px・行の高さ40px 固定） */
.form-submit #submit {
  max-width: 100%;
  height: auto;
  min-height: 40px;
  line-height: 1.5;
  padding-top: 8px;
  padding-bottom: 8px;
  white-space: normal;
}
/* 横並びの部品（.items 等）の直下に、WordPress の自動整形でコメント（<!-- /.item --> や
   コメントアウトした項目）だけの <p> が入り、項目の間隔が不ぞろいになっていた。
   直下の <p> は本文を持たない（premium / premium_b で確認）ので消し、項目の間隔を一定にする */
.items > p,
.items4 > p,
.items5 > p,
.post-content > p:empty {
  display: none;
}
.items,
.items4,
.items5 {
  gap: 24px;
  margin-bottom: 24px;
}
.items .item-body > p:last-child,
.items4 .item4 > p:last-child,
.items5 .item5 > p:last-child {
  margin-bottom: 0;
}

/* 回り込み（float）の後始末をして、後ろの要素が潜り込まないようにする */
.colum,
.talk-wrap,
.post-content,
.post-header {
  display: flow-root;
}
.colum-left,
.colum-right {
  box-sizing: border-box;
}
/* 一覧のサムネイル枠（親テーマで高さ215px 固定）は画像の高さに合わせる */
.post-loop-wrap .post-thumbnail {
  height: auto;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
 * 4. 寸法の調整（空きすぎ・大きすぎを詰める）
 * ------------------------------------------------------------------------ */
/* 本文: 14px は小さく、見出しとの差が大きすぎたので 15px・行間を広めに */
.post-content {
  font-size: 15px;
  line-height: 1.8;
}
.post-content p,
.post-content pre {
  line-height: 1.8;
  margin: 0 0 1.4em;
}
.post-content li {
  line-height: 1.7;
}

/* カード: 上56 / 左右64 / 下42px → 上下32 / 左右40px、カード同士の間 60 → 24px */
article .post-header,
.cat-content .post-header,
article.page .post-header {
  padding-top: var(--mf-card-pad-y) !important;
  padding-bottom: 0 !important; /* 991px 以下で親テーマの下余白 20px が残り、タイトルと本文の間が PC より 20px 広かった */
}
article .post-content,
.post-loop-wrap .post-content {
  padding-top: 0 !important; /* スマホで親テーマの上余白 20px が残り、タイトルとの間が PC と違っていた */
  padding-bottom: var(--mf-card-pad-y);
}
.cat-content,
article.post,
article.page,
article.wp101,
article.seo101,
.post-loop-wrap article {
  margin-bottom: var(--mf-gap);
}
#content {
  padding-top: 20px;
  padding-bottom: 40px;
}

/* ページの見出し（カテゴリ名・記事タイトル）: 28px → 26px、下の空き 36 → 16px */
h1.post-title,
.post-title {
  font-size: 26px;
  line-height: 1.45;
  margin-bottom: 16px;
}
/* 記事・固定ページのタイトルと本文の間 */
article .post-header h1.post-title {
  margin-bottom: 24px;
}
/* 一覧のカードのタイトル */
h2.post-title {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 8px;
}
/* 一覧の「公開日」と、その後の空行 */
.post-header .post-date {
  font-size: 13px;
  color: #777;
  margin-bottom: 16px;
}

/* 本文中の見出し: h2 28 → 20px、h3 24 → 17px、h4 18 → 16px。上の空きも詰める
   （一覧のカードタイトル 22px より小さくして、上下関係が分かるようにする） */
.post-content h2 {
  font-size: 20px;
  line-height: 1.5;
  margin: 2em 0 0.8em;
}
.post-content h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 1.8em 0 0.7em;
}
.post-content h4 {
  font-size: 16px;
  line-height: 1.5;
  margin: 1.6em 0 0.6em;
}
.post-content > h2:first-child,
.post-content > h3:first-child {
  margin-top: 0;
}

/* 「続きを読む」: 下の空き 64px → 0（カードの下余白で足りる） */
.more-link {
  margin-bottom: 0;
}
.post-content p:last-child {
  margin-bottom: 0;
}

/* パンくず */
.breadcrumb {
  margin-bottom: 16px;
}

/* サイドバーの見出し
   記事ごとの CSS（カスタムフィールド bzb_post_asset_css。公開記事 232 件に設定あり）の一部が
   「h2 { 背景・下線 }」とページ内のすべての h2 を指定しており、サイドバーの見出し（h2.side-title）まで
   巻き込んで、記事によって見た目が変わっていた。記事ページで出ていた見た目（薄い青の背景＋下の青線）に
   全ページでそろえ、記事側の CSS に左右されないよう、見た目に関わる指定はすべて !important で固定する。 */
#side .side-widget .side-title {
  margin: 0 0 8px !important;
  padding: 8px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: normal !important;
  text-align: left !important;
  color: #010101 !important;
  background: #eaf3ff !important;
  border: 0 !important;
  border-bottom: 3px solid #516ab6 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* サイドバー: ウィジェット間 40+40px → 32px、項目の上下 16 → 12px */
.side-widget {
  margin-bottom: 32px;
  padding-bottom: 0;
}
.side-widget .side-title {
  margin-bottom: 8px;
}
.side-widget ul li {
  padding-top: 12px;
  padding-bottom: 12px;
}
@media screen and (max-width: 991px) {
  #side {
    padding-top: 24px;
  }
}

/* ページ送り */
.pagination {
  margin-bottom: 40px;
}

/* スマホ */
@media screen and (max-width: 767px) {
  h1.post-title,
  .post-title {
    font-size: 22px;
  }
  h2.post-title {
    font-size: 18px;
  }
  .post-content h2 {
    font-size: 18px;
  }
  .post-content h3 {
    font-size: 16px;
  }
  .more-link {
    display: block;
    margin-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
 * 5. よくある質問（/faq/）
 * 本文（DB）は変えない。functions.php の mapfan_faq_top_content() が表示のときに本文を
 * 検索欄 → よく検索されているワード → 節ごとの一覧（ul.faq-links）の形に組み替え、ここで見た目を整える。
 * 縦の線: 検索欄・ワード・見出し・一覧の左右の端を本文の左右の端（2 本の線）にそろえる。
 * 縦の余白: 節と節の間 40px / 見出しの下 12px / 一覧の 1 行は上下 12px の 3 段階だけを使う。
 * ------------------------------------------------------------------------ */
/* 検索欄（Search & Filter プラグイン）: 本文の幅いっぱい。入力欄が伸び、ボタンは右にくっつけて 1 つの検索窓にする。
   ブラウザ既定の見た目（appearance）を外し、高さ・行の高さ・枠線を両方に明示して、どのブラウザでも 48px でそろえる */
.post-content .searchandfilter {
  margin: 0 0 12px;
}
.post-content .searchandfilter ul {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.post-content .searchandfilter li {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-content .searchandfilter li:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.post-content .searchandfilter input[type="text"],
.post-content .searchandfilter input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: 48px;
  margin: 0;
  font-family: inherit;
  line-height: 46px; /* 高さ 48px − 上下の枠線 1px ずつ */
  border: 1px solid #1b7bc1;
  vertical-align: top;
}
.post-content .searchandfilter input[type="text"] {
  width: 100%;
  padding: 0 16px;
  font-size: 16px; /* 16px 未満だと iPhone で入力時に画面が拡大される */
  color: #333;
  background: #fff;
  border-color: #ccc;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}
.post-content .searchandfilter input[type="text"]:focus {
  border-color: #1b7bc1;
  outline: none;
  box-shadow: inset 0 0 0 1px #1b7bc1;
}
.post-content .searchandfilter input[type="submit"] {
  min-width: 96px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background: #1b7bc1;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.post-content .searchandfilter input[type="submit"]:hover {
  background: #15659f;
  border-color: #15659f;
}

/* よく検索されているワード */
.post-content .faq-keywords {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}
.post-content .faq-keywords a {
  margin: 0 2px;
}

/* 節の見出し */
.post-content h2.category {
  margin: 40px 0 0;
  padding: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
  border-bottom: 1px solid #ddd;
}
@media screen and (max-width: 767px) {
  .post-content h2.category {
    margin-top: 32px;
    font-size: 17px;
  }
}

/* 節の一覧: 1 行ずつ区切り線で並べ、行全体を押せるようにする */
.post-content ul.faq-links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-content ul.faq-links li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #eee;
}
.post-content ul.faq-links a {
  position: relative;
  display: block;
  padding: 12px 28px 12px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}
.post-content ul.faq-links a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}
.post-content ul.faq-links a:hover {
  background: #f5f9fc;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
 * 6. フッター
 * 子テーマの「背景を赤・文字を白」のうち、背景の指定だけが親テーマに打ち消されていたため、
 * 白地に白文字で著作権表記が見えていなかった（本番も同じ）。背景は白のまま、文字を灰色にする。
 * ------------------------------------------------------------------------ */
#footer {
  border-top: 1px solid #e5e5e5;
}
.footer-02 .footer-copy {
  color: #777;
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
 * 7. よくある質問のカテゴリページ（/faq/mapfan-premium/ など 6 ページ。body.faq-category）
 * 本文は「h3 の節見出し → 1 項目ずつ <ul>（入れ子のものもある）と <hr> で区切った一覧」で、
 * 記事ごとの CSS で「* { margin:0; padding:0 }」がかかっている。本文は変えず、
 * FAQ トップ（5.）と同じ見た目・同じ縦の余白（節の間 40px / 見出しの下 12px / 1 行の上下 12px）にそろえる。
 * ------------------------------------------------------------------------ */
/* タイトル: 「よくある質問」を上見出し、カテゴリ名を本来のタイトルにする（functions.php で 2 つに分けている） */
.faq-category .post-header .faq-eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #777;
}
.faq-category .post-header .faq-title {
  display: block;
}

/* 本文の外枠（最初の節だけ <div style="padding:10px"> で囲まれ、字下げが深くなっていた） */
.faq-category .post-content > div[style] {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* 節見出し（FAQ トップの節見出しと同じ） */
.faq-category .post-content h3 {
  margin: 40px 0 0;
  padding: 0 0 12px;
  font-size: 18px;
  line-height: 1.5;
  border: 0;
  border-bottom: 1px solid #ddd;
  background: none;
}
.faq-category .post-content h3::before,
.faq-category .post-content h3::after {
  display: none;
}
.faq-category .post-content > h3:first-child {
  margin-top: 0;
}
@media screen and (max-width: 767px) {
  .faq-category .post-content h3 {
    margin-top: 32px;
    font-size: 17px;
  }
}

/* 一覧: 入れ子・分割された <ul> も 1 本の一覧に見せる。<hr> は消し、リンクに区切り線を引く */
.faq-category .post-content ul,
.faq-category .post-content li {
  margin: 0;
  padding: 0;
  list-style: none !important;
}
.faq-category .post-content hr {
  display: none;
}
.faq-category .post-content li > a {
  position: relative;
  display: block;
  padding: 12px 28px 12px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.faq-category .post-content li > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .6;
}
.faq-category .post-content li > a:hover {
  background: #f5f9fc;
  text-decoration: none;
}

/* 「〇〇のよくある質問」「よくある質問トップ」へ戻るリンク（.category-link。FAQ の 183 ページで使われている）
   記事ごとの CSS の背景色 #faf0e6・角丸をやめ、本文の下に余白をとって「‹」付きのリンクとして縦に並べる */
.post-content .category-link {
  margin: 40px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.post-content .category-link br {
  display: none;
}
.post-content .category-link a {
  display: table; /* 1 行に 1 つずつ並べ、押せる範囲は文字の幅だけにする */
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}
.post-content .category-link a:hover {
  text-decoration: underline;
}
.post-content .category-link a::before {
  content: "‹";
  margin-right: 8px;
  font-size: 16px;
}
.post-content .category-link b {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
 * 8. パンくず・ページ送り（全ページ共通）
 * ------------------------------------------------------------------------ */
/* パンくずの先頭が左に 10px 空いていて、本文の左端の線からずれていた */
.breadcrumb > li:first-child {
  margin-left: 0;
}
/* ページ送り: float で並べていたため枠の高さが 0 になり、下の余白が効かずサイドバーとくっついていた。
   正方形のボタンを横に並べ、今のページを塗りつぶす */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 40px;
  padding: 0;
}
.pagination a,
.pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  box-sizing: border-box;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  font-size: 15px;
  line-height: 1;
  color: #1b7bc1;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
}
.pagination a:hover {
  background: #f5f9fc;
  border-color: #1b7bc1;
}
.pagination .current,
.pagination > span.current {
  color: #fff;
  background: #1b7bc1;
  border-color: #1b7bc1;
}

/* --------------------------------------------------------------------------
 * 9. 検索結果（search.php）
 * 見出し（件数つき）→ 検索窓 → 1 枚のカードの中に区切り線で結果を並べる。
 * 各結果は「どこのページか・日付」→ タイトル → 抜粋（検索語に印）の 3 段。
 * ------------------------------------------------------------------------ */
.search-heading .search-count {
  margin: 4px 0 0;
  font-size: 13px;
  color: #777;
}

/* 検索窓（FAQ の検索窓と同じ形） */
.mf-search {
  display: flex;
  margin: 0 0 16px;
}
.mf-search input[type="search"],
.mf-search button {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: 48px;
  margin: 0;
  font-family: inherit;
  line-height: 46px;
  border: 1px solid #1b7bc1;
}
.mf-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 16px;
  font-size: 16px; /* 16px 未満だと iPhone で入力時に画面が拡大される */
  color: #333;
  background: #fff;
  border-color: #ccc;
  border-right: 0;
  border-radius: 4px 0 0 4px;
}
.mf-search input[type="search"]:focus {
  border-color: #1b7bc1;
  outline: none;
  box-shadow: inset 0 0 0 1px #1b7bc1;
}
.mf-search button {
  min-width: 96px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #1b7bc1;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}
.mf-search button:hover {
  background: #15659f;
  border-color: #15659f;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* 結果一覧: 1 枚のカード */
.mf-search-results {
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 2px 1px -1px rgba(0, 0, 0, .12);
}
.mf-search-results-none {
  padding: var(--mf-card-pad-y) var(--mf-card-pad-x);
  font-size: 15px;
  line-height: 1.8;
}
.mf-search-results-none p {
  margin: 0 0 8px;
}
.search-result {
  position: relative;
  margin: 0 !important;
  padding: 20px var(--mf-card-pad-x);
  background: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid #eee;
}
.search-result:last-child {
  border-bottom: 0;
}
.search-result:hover {
  background: #f9fbfd !important;
}
.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #888;
}
.search-result-trail {
  color: #666;
}
.search-result-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.search-result-title a {
  color: #1b7bc1;
  text-decoration: none;
}
/* タイトルのリンクを結果の枠全体に広げ、どこを押しても開けるようにする */
.search-result-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.search-result:hover .search-result-title a {
  text-decoration: underline;
}
.search-result-excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.search-result mark {
  padding: 0 1px;
  color: inherit;
  background: linear-gradient(transparent 55%, #fff3a8 55%);
}
@media screen and (max-width: 767px) {
  .search-result {
    padding: 16px var(--mf-card-pad-x);
  }
  .search-result-title {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
 * 10. 見出しの約物
 * 「「」などの括弧で始まる見出しは、括弧の左の空きの分だけ文字が右に引っ込み、左端の線からずれて見える。
 * 見出し・タイトルだけ約物を詰める（palt）。本文は読みやすさのため詰めない。
 * ------------------------------------------------------------------------ */
.post-title,
.search-result-title,
.post-content h2,
.post-content h3,
.post-content h4,
.side-widget .side-title {
  font-feature-settings: "palt";
}

/* --------------------------------------------------------------------------
 * 11. フッターを画面の下端に置く
 * 本文が短いページ（検索 0 件など）でフッターが画面の途中に浮いていた。
 * body を縦の flex にし、本文（#content）が余った高さを埋める。本文が長いページは今までどおり本文の後ろに来る。
 * body 直下はヘッダー・本文・フッター・ページ上部へ戻るボタン（position:fixed）・script だけ。
 * ------------------------------------------------------------------------ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh; /* スマホのアドレスバーの伸び縮みを考慮（対応ブラウザのみ） */
}
#header,
#footer {
  flex-shrink: 0;
}
#content {
  flex: 1 0 auto;
}
