@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/* =====================================================================
   lifenote-lab 子テーマのCSS(2026-10 茶系に模様替え)
   - 見本:https://claude.ai/artifact/YC5BHhWM7XCwhdkrBdupeC
   - 色を変えたいときは、すぐ下の「色の一覧」の色コードだけ書き換える
   - スキンは「なし」にする前提(Cocoon設定 → スキン)
   ===================================================================== */

/* 手書き風のロゴ(Caveat)とキャッチ(Zen Maru Gothic)。使う文字だけ読み込む */
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Zen+Maru+Gothic:wght@700&display=swap&text=lifenote.%E8%BE%B2%E6%A5%AD%E3%83%BB%E6%9A%AE%E3%82%89%E3%81%97%E3%81%B2%E3%81%A8%E3%82%8A%E6%99%82%E9%96%93%E3%80%82");

/* ---------------------------------------------------------------------
   色の一覧(ここを書き換えればサイト全体の色が変わる)
   --------------------------------------------------------------------- */
:root {
  --ln-page: #FAF8F5;        /* サイトの背景(ごく薄いベージュ) */
  --ln-text: #4F4A40;        /* 本文・見出し・タイトルの文字 */
  --ln-meta: #8C8478;        /* 日付・パンくずなど補助の文字 */
  --ln-brown: #7A5C42;       /* メニュー・リンク・ボタン・フッターの文字(こげ茶) */
  --ln-brown-light: #A88B6A; /* 線・小物・ラベルの背景・目次の番号(茶色) */
  --ln-label: #A2856A;       /* ラベルの背景(「この記事で分かること」・囲みの上のラベル) */
  --ln-box-line: 2px;        /* ラベル付きの囲みの線の太さ(10/08 つっちーが本番で見て2pxに決定) */
  --ln-tint: #F6F1EA;        /* 薄いベージュ(H2・囲み・目次・フッターの背景) */
  --ln-tint-line: #E3D6C6;   /* 薄いベージュの線 */
  --ln-greige: #EEE9E3;      /* メニューのカテゴリーの丸・人気記事の順位 */
  --ln-greige-hover: #E4DDD4;/* 上の色にマウスを乗せたとき */
  --ln-greige-line: #D9D1C7; /* 運営者・問合せの丸の線、順位の四角の線 */
  --ln-th: #EDE4D8;          /* 表の見出し行 */
  --ln-cell-line: #E2E0DB;   /* 表・ブログカードの線 */
  --ln-marker: #F8E2C8;      /* マーカー */
  --ln-toc-current: #DBCDBD; /* ついてくる目次の「今読んでいる章」の背景 */
  --ln-hand: "Caveat", cursive;                                   /* 手書き風ロゴ */
  --ln-maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; /* キャッチ */
}

/* アイコン(線画)。maskで切り抜いて、背景色で色を付ける */
:root {
  --ln-ic-house: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
  --ln-ic-sprout: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-9'/%3E%3Cpath d='M12 12c0-4-3-6-7-6 0 4 3 6 7 6z'/%3E%3Cpath d='M12 10c0-4 3-6 7-6 0 4-3 6-7 6z'/%3E%3Cpath d='M7 21h10'/%3E%3C/svg%3E");
  --ln-ic-cup: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h13v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M17 11h1.5a2.5 2.5 0 0 1 0 5H17'/%3E%3Cpath d='M8 3c0 1.5 1 1.5 1 3M12 3c0 1.5 1 1.5 1 3'/%3E%3C/svg%3E");
  --ln-ic-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M5 20c.8-3.6 3.6-5.6 7-5.6s6.2 2 7 5.6'/%3E%3C/svg%3E");
  --ln-ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E");
  --ln-ic-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  --ln-ic-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --ln-ic-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M15.5 15.5L20 20'/%3E%3C/svg%3E");
  --ln-ic-pen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4L16 5l3 3L8 19z'/%3E%3Cpath d='M14 7l3 3'/%3E%3C/svg%3E");
  --ln-ic-reload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
   全体
   --------------------------------------------------------------------- */
body.public-page {
  --cocoon-text-color: var(--ln-text);
  color: var(--ln-text);
  background-color: var(--ln-page);
}
.container,
.content,
.content-in {
  background: none;
}
/* 記事・固定ページの本文は白いカード。トップ・一覧ページは背景のまま */
.main {
  background: #fff;
  border: 0;
  border-radius: 6px;
}
.home .main,
.archive .main,
.search .main {
  background: none;
  padding-left: 0;
  padding-right: 0;
}
.content {
  margin-top: 20px;
}

/* ---------------------------------------------------------------------
   ヘッダー:季節の写真+左下に白い手書きロゴとキャッチ
   (写真そのものは Cocoon設定 → ヘッダー → ヘッダー背景画像 で差し替える)
   --------------------------------------------------------------------- */
.header {
  position: relative;
  background-color: #C9B49A;
  background-size: cover !important;
  background-position: center 70% !important;
  background-repeat: no-repeat !important;
}
/* 左下を少し暗くして、白い文字を読みやすくする */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 42% 60% at 0% 100%, rgba(38,28,18,.6), rgba(38,28,18,0) 80%);
  pointer-events: none;
}
.header .header-in {
  position: relative;
  width: auto;
  max-width: none;
  min-height: 0 !important;
  height: 150px;                 /* 記事などのページの写真の高さ */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 5% 20px;
  box-sizing: border-box;
}
.home .header .header-in {
  height: auto;
  aspect-ratio: 7 / 3;           /* トップの写真は横7:縦3 */
  min-height: 220px !important;
  max-height: 480px;
  padding-bottom: 3.5%;
}
/* WordPressのキャッチフレーズ(長い文)は出さず、ロゴの下に短いキャッチを出す */
.header .tagline {
  display: none;
}
.header .logo-header {
  margin: 0;
  padding: 0;
  text-align: left;
}
.header .logo-header .site-name-text-link {
  display: grid;
  justify-items: start;
  padding: 0;
  text-decoration: none;
}
#header .logo-header .site-name-text {
  font-family: var(--ln-hand);
  font-weight: 600;
  font-size: 52px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 12px rgba(30,20,10,.35);
}
.home #header .logo-header .site-name-text {
  font-size: 72px;
}
.header .site-name-text::after {
  content: ".";
  color: #E9D3B4;
}
.header .site-name-text-link::after {
  content: "農業・暮らし・ひとり時間。";
  font-family: var(--ln-maru);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  color: #fff;
  margin-top: 6px;
  white-space: nowrap;
  text-shadow: 0 0 2px rgba(30,20,10,.55), 0 1px 10px rgba(30,20,10,.65);
}
.home .header .site-name-text-link::after {
  font-size: 14px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------
   ヘッダーメニュー:5つとも同じ大きさの丸。アイコンの下に文字
   (メニューの表示名は 外観 → メニュー で「住まい・食と農・暮らし・運営者・問合せ」にする)
   --------------------------------------------------------------------- */
#header-container .navi,
#navi {
  background: #fff;
  border-bottom: 1px solid var(--ln-tint-line);
}
#navi .navi-in {
  width: auto;
}
#navi .navi-in > ul {
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 12px;
  margin: 0;
  height: auto;
}
#navi .navi-in > ul > li {
  width: auto;
  height: auto;
  line-height: 1.2;
  float: none;
  position: relative;
}
#navi .navi-in > ul > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 66px;
  height: 66px;
  padding: 0;
  border-radius: 50%;
  color: var(--ln-brown);
  font-weight: bold;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  /* 運営者・問合せ(固定ページ)は塗りなし・細い線 */
  background: none;
  box-shadow: inset 0 0 0 1px var(--ln-greige-line);
  transition: background-color .2s;
}
#navi .navi-in > ul > li > a:hover {
  background: var(--ln-tint);
  color: var(--ln-brown);
}
/* カテゴリー3つは枠なしの薄いグレージュの塗り */
#navi .navi-in > ul > li.menu-item-object-category > a {
  background: var(--ln-greige);
  box-shadow: none;
}
#navi .navi-in > ul > li.menu-item-object-category > a:hover {
  background: var(--ln-greige-hover);
}
#navi .navi-in .caption-wrap {
  display: block;
  height: auto;
  line-height: 1.2;
}
#navi .navi-in .item-label {
  display: block;
  white-space: nowrap;
  overflow: visible;
}
#navi .navi-in > ul > li > a::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: none;
  background-color: var(--ln-brown-light);
  -webkit-mask: var(--ln-ic) center / contain no-repeat;
  mask: var(--ln-ic) center / contain no-repeat;
}

/* メニュー項目ごとのアイコン(リンク先で見分ける。ヘッダーとスマホのメニュー共通) */
.menu-header a, .menu-drawer a { --ln-ic: var(--ln-ic-house); }
.menu-header a[href*="/category/sumai/"],      .menu-drawer a[href*="/category/sumai/"]      { --ln-ic: var(--ln-ic-house); }
.menu-header a[href*="/category/sohkutonou/"], .menu-drawer a[href*="/category/sohkutonou/"] { --ln-ic: var(--ln-ic-sprout); }
.menu-header a[href*="/category/kurashi/"],    .menu-drawer a[href*="/category/kurashi/"]    { --ln-ic: var(--ln-ic-cup); }
.menu-header a[href*="/profile/"],             .menu-drawer a[href*="/profile/"]             { --ln-ic: var(--ln-ic-person); }
.menu-header a[href*="%e3%81%8a%e5%95%8f"],    .menu-drawer a[href*="%e3%81%8a%e5%95%8f"],
.menu-header a[href*="%E3%81%8A%E5%95%8F"],    .menu-drawer a[href*="%E3%81%8A%E5%95%8F"]    { --ln-ic: var(--ln-ic-mail); }

/* ---------------------------------------------------------------------
   トップ:記事カード(縦型カード2列)
   --------------------------------------------------------------------- */
.ect-vertical-card .entry-card-wrap {
  background: #fff;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(60,45,30,.08);
  padding: 0;
  color: var(--ln-text);
}
.ect-vertical-card .entry-card-wrap:hover {
  background: #fff;
}
.ect-vertical-card .entry-card-wrap:hover .entry-card-title {
  color: var(--ln-brown);
  text-decoration: underline;
  text-decoration-color: var(--ln-tint-line);
  text-underline-offset: 3px;
}
.ect-vertical-card .entry-card-thumb {
  margin: 0;
}
.ect-vertical-card .entry-card-content {
  padding: 10px 14px 12px;
  margin: 0;
}
.ect-vertical-card .entry-card-title {
  font-weight: bold;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ln-text);
  margin: 0 0 6px;
}
.ect-vertical-card .entry-card-snippet,
.ect-vertical-card .entry-card-categorys {
  display: none;
}
.e-card-meta,
.entry-card-meta {
  color: var(--ln-meta);
  font-size: 12px;
  padding: 0;
}
.entry-card-meta .fa {
  display: none;
}

/* 画像の左上のカテゴリーのラベル(記事カード・関連記事など共通) */
.cat-label {
  top: 8px;
  left: 8px;
  background: var(--ln-brown-light);
  color: #fff;
  border: 0;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.6;
  padding: 0 8px;
  opacity: 1;
}

/* ページ送り */
.pagination-next-link {
  background: #fff;
  color: var(--ln-brown);
  border: 1px solid var(--ln-greige-line);
  border-radius: 999px;
}
.pagination-next-link:hover {
  background: var(--ln-tint);
  color: var(--ln-brown);
}
.pagination .page-numbers {
  border: 1px solid var(--ln-greige-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ln-brown);
}
.pagination .current {
  background: var(--ln-brown-light);
  border-color: var(--ln-brown-light);
  color: #fff;
}
.pagination a.page-numbers:hover {
  background: var(--ln-tint);
  color: var(--ln-brown);
}

/* ---------------------------------------------------------------------
   記事のページ:パンくず → カテゴリーのラベル → タイトル → 日付 → アイキャッチ
   --------------------------------------------------------------------- */
.breadcrumb {
  font-size: 12px;
  color: var(--ln-meta);
  margin: 0 0 10px;
  padding: 0;
  background: none;
}
.breadcrumb a {
  color: var(--ln-meta);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb .fa-home,
.breadcrumb .fa-folder,
.breadcrumb .fa-file-o {
  display: none;
}
.breadcrumb .sp {
  margin: 0 6px;
}
.breadcrumb .sp .fa {
  display: none;
}
.breadcrumb .sp::after {
  content: "›";
}

/* 並べ替え:見出しまわりの部品だけ前に出す(ほかの部品は元の順番のまま) */
.single .article,
.page .article {
  display: flex;
  flex-direction: column;
}
.single .article > *,
.single .article-header > *,
.single .eye-catch-wrap > *,
.page .article > *,
.page .article-header > *,
.page .eye-catch-wrap > * {
  order: 10;
}
.single .article-header,
.single .eye-catch-wrap,
.single .eye-catch,
.page .article-header,
.page .eye-catch-wrap,
.page .eye-catch {
  display: contents;
}
.single .eye-catch > *,
.page .eye-catch > * {
  order: 10;
}
/* アイキャッチ未設定のページ(運営者情報など)は、Cocoonが隠している仮の画像を隠したままにする */
.single .eye-catch-wrap.display-none,
.page .eye-catch-wrap.display-none {
  display: none;
}
.single .article .cat-label {
  order: 1;
  position: static;
  align-self: flex-start;
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
}
.single .article .entry-title,
.page .article .entry-title {
  order: 2;
}
.single .article .date-tags,
.page .article .date-tags {
  order: 3;
}
.single .article .eye-catch-image,
.page .article .eye-catch-image {
  order: 4;
  margin: 0 0 20px;
}

.article .entry-title {
  font-size: 22px;
  line-height: 1.5;
  margin: 8px 0 10px;
  padding: 0;
  color: var(--ln-text);
  background: none;
  border: 0;
}
.date-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: flex-start;
  font-size: 12px;
  color: var(--ln-meta);
  margin: 0 0 14px;
  line-height: 1.6;
}
.date-tags .fa {
  display: none;
}
.date-tags .post-date,
.date-tags .post-update {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.date-tags .post-date::before,
.date-tags .post-update::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: var(--ln-meta);
  -webkit-mask: var(--ln-ic-pen) center / contain no-repeat;
  mask: var(--ln-ic-pen) center / contain no-repeat;
}
.date-tags .post-update::before {
  -webkit-mask-image: var(--ln-ic-reload);
  mask-image: var(--ln-ic-reload);
}
.date-tags .post-date .entry-date::before {
  content: "公開 ";
}
.date-tags .post-update .entry-date::before {
  content: "更新 ";
}
.eye-catch {
  margin: 0 0 20px;
}
.eye-catch img,
.eye-catch-image {
  border-radius: 6px;
}
/* SNSのシェアボタン・フォローボタンは、SNSが育つまで隠す(2026-10-08 つっちー決定。出すときはこのまとまりを消す) */
.sns-share,
.sns-follow {
  display: none;
}
.read-time {
  font-size: 12px;
  color: var(--ln-meta);
  border: 0;
  background: none;
}

/* ここから下の本文の装飾は、編集画面(ブロックエディター)にも同じ見た目で効くようにしてある。
   記事ページの本文は .entry-content、編集画面は .editor-styles-wrapper / .is-root-container */

/* 本文の文字・リンク */
:is(.entry-content, .editor-styles-wrapper) {
  color: var(--ln-text);
}
:is(.entry-content, .editor-styles-wrapper) p a,
:is(.entry-content, .editor-styles-wrapper) li a,
:is(.entry-content, .editor-styles-wrapper) td a {
  color: var(--ln-brown);
}

/* マーカー */
.marker-under {
  background: linear-gradient(transparent 60%, var(--ln-marker) 60%);
}

/* ---------------------------------------------------------------------
   見出し
   --------------------------------------------------------------------- */
/* H2:うすいベージュの背景+左の茶色の線+少し角丸 */
.article h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 2.2em 0 1.2em;
  padding: 12px 16px;
  background: var(--ln-tint);
  border: 0;
  border-left: 6px solid var(--ln-brown-light);
  border-radius: 6px;
  color: var(--ln-text);
}
/* H3:下線+左に短い茶色の線 */
.article h3 {
  font-size: 17px;
  line-height: 1.5;
  margin: 1.8em 0 1em;
  padding: 0 0 6px 2px;
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ln-tint-line);
  border-radius: 0;
  position: relative;
  color: var(--ln-text);
}
.article h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 72px;
  height: 2px;
  background: var(--ln-brown-light);
}
/* H4:点線の下線(H3の下線をそぎ落とした形。2026-10-08 つっちー決定) */
.article h4 {
  font-size: 16px;
  line-height: 1.6;
  padding: 0 0 6px 2px;
  background: none;
  border: 0;
  border-bottom: 2px dotted var(--ln-tint-line);
  border-radius: 0;
  color: var(--ln-text);
}
.article h4::before,
.article h4::after {
  content: none;
}

/* ---------------------------------------------------------------------
   目次:薄いベージュの背景だけ。「目次」の両側に細い線
   (Cocoon設定 → 目次 の「目次の切り替え機能を有効にする」はオフにする)
   --------------------------------------------------------------------- */
.article .toc {
  display: block;
  width: auto;
  background: var(--ln-tint);
  border: 0;
  border-radius: 6px;
  padding: 14px 18px 16px;
  margin: 1.8em 0 1.6em;
}
.toc .toc-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: .2em;
  color: var(--ln-text);
  text-align: center;
  margin: 0 0 8px;
  padding: 0;
  background: none;
}
/* 「目次」の行を押すと閉じる・開く(Cocoon設定 → 目次 の切り替え機能をオン)。
   右側の線の頭に小さな矢印(開いているときは上向き、閉じているときは下向き) */
.toc .toc-title {
  cursor: pointer;
}
.toc .toc-title::before,
.toc .toc-title::after {
  content: "" !important;
  flex: 1;
  height: 1px;
  margin: 0 !important;
  background: var(--ln-tint-line);
  text-decoration: none !important;
}
.toc .toc-title::after {
  height: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23A88B6A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / 12px 12px no-repeat,
    linear-gradient(var(--ln-tint-line), var(--ln-tint-line)) right center / calc(100% - 20px) 1px no-repeat;
}
.toc .toc-checkbox:checked + .toc-title::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 7.5L6 4l3.5 3.5' fill='none' stroke='%23A88B6A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") left center / 12px 12px no-repeat,
    linear-gradient(var(--ln-tint-line), var(--ln-tint-line)) right center / calc(100% - 20px) 1px no-repeat;
}
.toc .toc-checkbox:not(:checked) + .toc-title {
  margin-bottom: 0;
}
.toc .toc-content {
  padding-top: 0 !important;
}
.toc ol,
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc .toc-list {
  counter-reset: ln-t1;
  display: grid;
  gap: 4px;
}
.toc .toc-list > li {
  counter-increment: ln-t1;
}
.toc .toc-list > li > ol,
.toc .toc-list > li > ul {
  counter-reset: ln-t2;
  padding-left: 1.6em;
  margin-top: 4px;
  display: grid;
  gap: 2px;
}
.toc .toc-list > li > ol > li,
.toc .toc-list > li > ul > li {
  counter-increment: ln-t2;
}
.toc .toc-list ol ol,
.toc .toc-list ul ul {
  padding-left: 1.4em;
}
.toc li {
  list-style: none;
  margin: 0;
}
.toc li::before,
.toc li::marker {
  content: none;
}
.toc a {
  display: flex;
  gap: 8px;
  color: var(--ln-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}
.toc a:hover {
  color: var(--ln-brown);
  text-decoration: underline;
  text-decoration-color: var(--ln-tint-line);
}
.toc .toc-list > li > a::before {
  content: counter(ln-t1);
  flex: none;
  min-width: 1.2em;
  color: var(--ln-brown-light);
  font-weight: bold;
}
.toc .toc-list > li > ol > li > a,
.toc .toc-list > li > ul > li > a {
  font-size: 13px;
}
.toc .toc-list > li > ol > li > a::before,
.toc .toc-list > li > ul > li > a::before {
  content: counter(ln-t1) "-" counter(ln-t2);
  flex: none;
  min-width: 2em;
  color: var(--ln-brown-light);
}
/* 3段目(H4)は番号なしの小さな点 */
.toc .toc-list ol ol a,
.toc .toc-list ul ul a {
  font-size: 13px;
}
.toc .toc-list ol ol a::before,
.toc .toc-list ul ul a::before {
  content: "・";
  min-width: 1em;
  color: var(--ln-brown-light);
}
.toc .toc-list ol ol,
.toc .toc-list ul ul {
  margin-top: 2px;
  display: grid;
  gap: 2px;
}

/* 前後の記事へのリンク */
.pager-post-navi a {
  border-radius: 6px;
  color: var(--ln-text);
}
.pager-post-navi a:hover {
  background: var(--ln-page);
}
.pager-post-navi .iconfont {
  color: var(--ln-brown-light);
}

/* ---------------------------------------------------------------------
   箇条書きの囲み:薄いベージュ+茶色の丸のチェック(番号付きは茶色の丸の数字)
   本文の箇条書きは、一重線・二重線・飾りなしのどれでも同じ見た目になる。
   箇条書きの中の箇条書き(入れ子)は囲まない
   --------------------------------------------------------------------- */
:is(.entry-content, .editor-styles-wrapper) ul.wp-block-list:not(li ul),
:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list:not(li ol) {
  position: relative;
  list-style: none;
  background: var(--ln-tint) !important;
  color: var(--ln-text) !important;
  border: 1px solid var(--ln-tint-line) !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  margin-left: 0;
  margin-right: 0;
  display: grid;
  gap: 6px;
}
:is(.entry-content, .editor-styles-wrapper) ul.wp-block-list:not(li ul) > li,
:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list:not(li ol) > li {
  position: relative;
  list-style: none;
  padding-left: 28px;
  margin: 0;
  line-height: 1.8;
}
:is(.entry-content, .editor-styles-wrapper) ul.wp-block-list:not(li ul) > li::before {
  content: "" !important;
  position: absolute;
  left: 0;
  top: .42em;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  background: var(--ln-brown-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.6 9.2l2.3 2.3 4.5-4.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  font-family: inherit;
}
/* 番号付きの箇条書き:茶色の丸に白い数字 */
:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list:not(li ol) {
  counter-reset: ln-ol;
}
:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list:not(li ol) > li {
  counter-increment: ln-ol;
}
:is(.entry-content, .editor-styles-wrapper) ol.wp-block-list:not(li ol) > li::before {
  content: counter(ln-ol) !important;
  position: absolute;
  left: 0;
  top: .42em;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  background: var(--ln-brown-light);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
}
/* 導入文(最初のH2より前)で、囲みの直前にある「太字だけの段落」(この記事で分かること)は、
   丸いラベルにして囲みの上にのせる。本文の途中の太字の文には付かない */
:is(.entry-content, .is-root-container) > p:not(h2 ~ p):has(> strong:only-child):has(+ ul.wp-block-list) {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 1.8em 0 -0.95em 16px !important;
  padding: 2px 14px;
  background: var(--ln-label);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.6;
}
/* 編集画面では本文が中央寄せの幅(840px)なので、ラベルの左の位置を囲みに合わせる */
.is-root-container > p:not(h2 ~ p):has(> strong:only-child):has(+ ul.wp-block-list) {
  margin-left: max(16px, calc((100% - var(--wp--style--global--content-size, 840px)) / 2 + 16px)) !important;
}
:is(.entry-content, .is-root-container) > p:not(h2 ~ p):has(> strong:only-child) + ul.wp-block-list {
  padding-top: 26px !important;
}

/* 小見出し代わりの灰色の囲み(secondary-box)→ 薄いベージュ */
:is(.entry-content, .editor-styles-wrapper) .is-style-secondary-box {
  background: var(--ln-tint) !important;
  border: 0 !important;
  border-radius: 6px;
  color: var(--ln-text);
}
/* 小見出し代わりに色を付けた段落 → 形はそのままで、色だけH2の背景と同じ薄いベージュ
   ・灰色の帯(記事に直接書いた background-color:#D9D9D9。施主検査の記事など)
   ・付箋(Cocoonの「付箋(黄)」スタイル。ネオアースの記事の準備物など)。
     左の線は、H2と見分けがつくように薄いベージュの線の色 */
:is(.entry-content, .editor-styles-wrapper) p[style*="#D9D9D9"],
:is(.entry-content, .editor-styles-wrapper) p[style*="#d9d9d9"] {
  background-color: var(--ln-tint) !important;
  color: var(--ln-text) !important;
}
:is(.entry-content, .editor-styles-wrapper) .is-style-sticky-yellow {
  background-color: var(--ln-tint) !important;
  border-left-color: var(--ln-tint-line) !important;
}
/* ひとことアドバイスの囲み(Cocoonの「メモ」スタイル。100選の記事)
   → 白い背景+線+枠の上に「アドバイス」のラベル */
:is(.entry-content, .editor-styles-wrapper) .is-style-memo-box {
  position: relative;
  background: #fff !important;
  border: var(--ln-box-line) solid var(--ln-tint-line) !important;
  border-radius: 8px !important;
  padding: 22px 20px 16px !important;
  margin-top: 1.6em;
  color: var(--ln-text);
}
:is(.entry-content, .editor-styles-wrapper) .is-style-memo-box::before {
  content: "アドバイス" !important;
  position: absolute;
  top: calc(var(--ln-box-line) / -2);   /* ラベルの真ん中を、線の太さの真ん中に合わせる */
  left: 14px;
  margin: 0 !important;                 /* Cocoonがスマホだけ元のアイコンを上・左に6pxずらしているのを消す */
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 22px;
  line-height: 1;
  padding: 1px 12px 0;           /* 日本語の字面が上に寄って見えるので、1px下げて上下の真ん中にする */
  box-sizing: border-box;
  background: var(--ln-label);
  color: #fff;
  border-radius: 999px;
  font-family: inherit !important;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .05em;
}
:is(.entry-content, .editor-styles-wrapper) .is-style-memo-box > :last-child {
  margin-bottom: 0;
}
/* ラベル付きの囲み(会話例・例文・補足・お知らせなど。10/08)
   グループのブロックに ln-box、中の1つ目の段落に ln-box-label のクラスを付ける。
   ラベルの文字は、その段落に書いた言葉がそのまま出る(編集画面で打ち替えられる) */
:is(.entry-content, .editor-styles-wrapper) .ln-box {
  position: relative;
  background: #fff !important;
  border: var(--ln-box-line) solid var(--ln-tint-line) !important;
  border-radius: 8px !important;
  padding: 22px 20px 16px !important;
  margin-top: 1.8em !important;
  margin-bottom: 1.6em !important;
  color: var(--ln-text);
}
:is(.entry-content, .editor-styles-wrapper) .ln-box > :last-child {
  margin-bottom: 0 !important;
}
:is(.entry-content, .editor-styles-wrapper) .ln-box > .ln-box-label + * {
  margin-top: 0 !important;
}
:is(.entry-content, .editor-styles-wrapper) .ln-box > .ln-box-label {
  position: absolute;
  top: calc(var(--ln-box-line) / -2);   /* ラベルの真ん中を、線の太さの真ん中に合わせる */
  left: 14px;
  transform: translateY(-50%);
  margin: 0 !important;
  max-width: none !important;
  display: inline-flex;
  align-items: center;
  height: 22px;
  line-height: 1;
  padding: 1px 12px 0;           /* 日本語の字面が上に寄って見えるので、1px下げる */
  box-sizing: border-box;
  background: var(--ln-label);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .05em;
  white-space: nowrap;
}
/* 会話例のセリフ(段落に ln-talk のクラス。段落の頭の太字が、話す人の白い丸いラベルになる)。
   セリフの2行目は1文字目にそろう */
:is(.entry-content, .editor-styles-wrapper) .ln-talk {
  position: relative;
  padding-left: calc(5.2 * 12px + 10px);   /* 話す人のラベルの幅+すき間 */
  margin-bottom: .6em !important;
}
:is(.entry-content, .editor-styles-wrapper) .ln-talk > strong:first-child {
  position: absolute;
  left: 0;
  top: .25em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2em;
  height: 22px;
  line-height: 1;
  padding: 1px 8px 0;
  box-sizing: border-box;
  background: #fff;
  color: var(--ln-brown);
  border: 1px solid var(--ln-greige-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}
/* 2人の会話のときは、片方の人の段落に ln-talk-2 も付けて、話す人のラベルを薄いベージュにする
   (施主検査の記事ではお施主様の側)。「言い方①②」のような、会話ではない例のときは付けない */
:is(.entry-content, .editor-styles-wrapper) .ln-talk.ln-talk-2 > strong:first-child {
  background: var(--ln-th);
  border-color: var(--ln-th);
}
/* 長い記事の「▲ カテゴリ一覧に戻る」リンク(段落ブロックに ln-back-to-list のクラス。100選の記事) */
:is(.entry-content, .editor-styles-wrapper) .ln-back-to-list {
  text-align: right;
  font-size: 13px;
  margin-top: 1.4em;
}
:is(.entry-content, .editor-styles-wrapper) .ln-back-to-list a {
  color: var(--ln-brown);
  text-decoration: none;
}
:is(.entry-content, .editor-styles-wrapper) .ln-back-to-list a:hover {
  text-decoration: underline;
}
/* 記事に直接書いた灰色のボタン(100選の記事の、カテゴリーへ飛ぶボタン)→ ベージュ */
:is(.entry-content, .editor-styles-wrapper) a[style*="background:#f5f5f5"],
:is(.entry-content, .editor-styles-wrapper) a[style*="background:#F5F5F5"] {
  background: var(--ln-tint) !important;
  border-color: var(--ln-tint-line) !important;
  color: var(--ln-text) !important;
  transition: background-color .2s;
}
:is(.entry-content, .editor-styles-wrapper) a[style*="background:#f5f5f5"]:hover,
:is(.entry-content, .editor-styles-wrapper) a[style*="background:#F5F5F5"]:hover {
  background: var(--ln-th) !important;
}
/* 前のテーマのときにブロックの背景色で付けた「薄いグレー」「薄い緑」の囲み → 薄いベージュ
   (箇条書きのまとめ・例文など。ブロックの設定はそのままで、見た目だけ上書き) */
:is(.entry-content, .editor-styles-wrapper) :is(.has-light-grey-background-color, .has-watery-green-background-color) {
  background-color: var(--ln-tint) !important;
}

/* ---------------------------------------------------------------------
   表:見出し行はベージュ、1列目は薄いベージュ、横線だけ
   (記事の中に書いた青い色の指定も、ここで上書きする)
   --------------------------------------------------------------------- */
:is(.entry-content, .editor-styles-wrapper) .wp-block-table table,
:is(.entry-content, .editor-styles-wrapper) table {
  border-collapse: collapse;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  font-size: 14px;
}
:is(.entry-content, .editor-styles-wrapper) table th {
  background: var(--ln-th) !important;
  color: var(--ln-text) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--ln-cell-line) !important;
  padding: 10px 12px !important;
  text-align: center;
  font-weight: bold;
}
:is(.entry-content, .editor-styles-wrapper) table td {
  background: #fff;
  border: 0 !important;
  border-bottom: 1px solid var(--ln-cell-line) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;   /* データのセルは縦の中央ぞろえ(10/08 つっちー希望) */
  color: var(--ln-text);
}
:is(.entry-content, .editor-styles-wrapper) table tbody td:first-child {
  background: var(--ln-tint) !important;
  font-weight: bold;
}
/* Cocoonは表の文字を折り返さず横スクロールにするので、セルの中で折り返して本文の幅に収める。
   表は色の指定なしのふつうの表ブロックで書けばよい(記事に色を直接書くと編集画面でエラーになる) */
:is(.entry-content, .editor-styles-wrapper) table th,
:is(.entry-content, .editor-styles-wrapper) table td {
  white-space: normal !important;
}
:is(.entry-content, .editor-styles-wrapper) .wp-block-table table {
  width: 100%;
}
/* PCでは1列目(項目名)は折り返さない(スマホは幅がないので折り返す) */
@media screen and (min-width: 601px) {
  :is(.entry-content, .editor-styles-wrapper) table tbody td:first-child {
    white-space: nowrap !important;
  }
}
:is(.entry-content, .editor-styles-wrapper) table thead {
  border-bottom: 0;
}
:is(.entry-content, .editor-styles-wrapper) table tr:nth-of-type(2n+1) {
  background: none;
}

/* ---------------------------------------------------------------------
   ブログカード(あわせて読みたい):画像は角丸
   --------------------------------------------------------------------- */
.blogcard-wrap {
  border: 1px solid var(--ln-cell-line) !important;
  border-radius: 6px;
  background: #fff;
}
.blogcard-wrap:hover {
  background: var(--ln-page);
}
.blogcard-thumbnail img,
.blogcard-thumb-image {
  border-radius: 8px;
}
.blogcard-title {
  color: var(--ln-text);
  font-weight: bold;
}
.blogcard-snippet,
.blogcard-footer,
.blogcard-date {
  color: var(--ln-meta);
}
.blogcard-label {
  background: var(--ln-brown-light) !important;
  color: #fff !important;
  border-radius: 3px;
}

/* ---------------------------------------------------------------------
   関連記事・記事下
   --------------------------------------------------------------------- */
.related-entry-heading,
.comment-title,
.article-footer .widget-title {
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ln-tint-line);
  padding: 0 0 6px;
  position: relative;
  color: var(--ln-text);
  font-size: 17px;
}
.related-entry-heading::after,
.article-footer .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--ln-brown-light);
}
.related-entry-card-wrap {
  border: 0;
  border-radius: 6px;
}
.related-entry-card-wrap:hover {
  background: var(--ln-page);
}
.related-entry-card-title {
  color: var(--ln-text);
  font-weight: bold;
}
.related-entry-card-thumb img {
  border-radius: 4px;
}

/* ---------------------------------------------------------------------
   サイドバー:白いカードを縦に並べる
   上から プロフィール → 検索 → 人気記事(外観 → ウィジェット)
   --------------------------------------------------------------------- */
.sidebar {
  background: none;
  border: 0;
}
.sidebar .widget {
  background: #fff;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
}
/* 見出し:下線+左に短い茶色の線 */
.sidebar .widget-title,
.sidebar h2.wp-block-heading {
  margin: 0 0 12px;
  padding: 0 0 6px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  color: var(--ln-text);
  background: none;
  border: 0;
  border-bottom: 2px solid var(--ln-tint-line);
  border-radius: 0;
  position: relative;
  text-align: left;
}
.sidebar .widget-title::before {
  display: none;
}
.sidebar .widget-title::after,
.sidebar h2.wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--ln-brown-light);
}

/* スクロールについてくる目次(サイドバースクロール追従の目次ウィジェット)
   ・画面の高さに収め、見出しが多い記事は目次の中でスクロールする
   ・今読んでいる章を、番号ごと角丸の四角で囲み、茶色の太字にする(javascript.js)。
     右端はH2・H3でそろい、H3は左の始まりが少し右になる */
.sidebar-scroll .toc-widget-box .toc-content {
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ln-tint-line) transparent;
}
.sidebar-scroll .toc a {
  padding: 2px 6px;
  border-radius: 6px;
  transition: background-color .2s;
}
.sidebar-scroll .toc a.ln-toc-current {
  background: var(--ln-toc-current);
  color: var(--ln-brown);
  font-weight: bold;
}

/* プロフィール(カスタムHTMLウィジェット。HTMLは design/child-theme/README.md) */
.ln-prof {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.ln-prof-ic {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
}
.ln-prof-name {
  font-family: var(--ln-hand);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  color: var(--ln-brown);
}
.ln-prof-tx {
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  margin: 0 !important;
}
.ln-prof-more {
  font-size: 13px;
  font-weight: bold;
  color: var(--ln-brown) !important;
  text-decoration: none;
  border: 1px solid var(--ln-greige-line);
  border-radius: 999px;
  padding: 4px 16px;
}
.ln-prof-more:hover {
  background: var(--ln-tint);
}

/* 検索窓:丸い枠+虫めがね(ブロックの検索・Cocoonの検索 共通) */
.wp-block-search .wp-block-search__label {
  display: none;
}
.wp-block-search .wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--ln-tint-line);
  background: var(--ln-page);
  border-radius: 999px;
  padding: 2px 4px 2px 14px;
}
.wp-block-search .wp-block-search__input {
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--ln-text);
  min-width: 0;
  padding: 6px 4px;
  outline: 0;
}
.wp-block-search .wp-block-search__button {
  margin: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 0;
  color: transparent;
  flex: none;
  position: relative;
}
.wp-block-search .wp-block-search__button::before {
  content: "";
  position: absolute;
  inset: 7px;
  background-color: var(--ln-brown-light);
  -webkit-mask: var(--ln-ic-search) center / contain no-repeat;
  mask: var(--ln-ic-search) center / contain no-repeat;
}
.search-box {
  border-radius: 999px;
  overflow: hidden;
}
.search-edit {
  border: 1px solid var(--ln-tint-line);
  border-radius: 999px;
  background: var(--ln-page);
  color: var(--ln-text);
}
.search-submit {
  color: var(--ln-brown-light);
}

/* 人気記事:小さい画像の左上に順位 */
.popular-entry-cards {
  counter-reset: ln-rank;
  display: grid;
  gap: 12px;
}
.popular-entry-cards .popular-entry-card-link {
  counter-increment: ln-rank;
  position: relative;
  padding: 0;
  margin: 0;
  color: var(--ln-text);
}
.popular-entry-card-link:hover {
  background: none;
}
.popular-entry-card-link:hover .popular-entry-card-title {
  color: var(--ln-brown);
  text-decoration: underline;
  text-decoration-color: var(--ln-tint-line);
}
.popular-entry-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.popular-entry-cards .popular-entry-card-thumb {
  position: relative;
  float: none;
  flex: none;
  width: 96px;
  margin: 0;
}
.popular-entry-card-thumb img {
  border-radius: 4px;
  width: 96px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.popular-entry-card-link::before {
  content: counter(ln-rank);
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ln-greige);
  color: var(--ln-brown);
  box-shadow: inset 0 0 0 1px var(--ln-greige-line);
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px 0 4px 0;
}
.popular-entry-card-content {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.popular-entry-card-title {
  font-size: 13px;
  line-height: 1.55;
  font-weight: bold;
}

/* ---------------------------------------------------------------------
   フッター:薄いベージュ+中央寄せ
   (コピーライトは Cocoon設定 → フッター → クレジット表記 →「独自表記」で「© 2026 lifenote-lab」)
   --------------------------------------------------------------------- */
#footer,
.footer {
  background: var(--ln-tint);
  border-top: 1px solid var(--ln-tint-line);
  color: var(--ln-brown);
  margin-top: 28px;
}
#footer a:not(.sns-button),
.footer-title {
  color: var(--ln-brown);
}
.footer-bottom {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 20px 22px;
  margin: 0;
}
#footer .footer-bottom .footer-bottom-logo,
#footer .footer-bottom .footer-bottom-content {
  display: block;
  float: none;
  width: auto;
  margin: 0;
  text-align: center;
  order: 2;
}
#footer .footer-bottom .footer-bottom-logo {
  order: 1;
  position: static;
}
.footer-bottom-logo .logo-footer {
  display: grid;
  justify-items: center;
  margin: 0;
  padding: 0;
}
.footer-bottom-logo .site-name-text-link {
  padding: 0;
}
#footer .footer-bottom-logo .site-name-text {
  font-family: var(--ln-hand);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  color: var(--ln-brown);
}
.footer-bottom-logo .site-name-text::after {
  content: ".";
}
.footer-bottom-logo .logo-footer::after {
  content: "農業・暮らし・ひとり時間。";
  font-family: var(--ln-maru);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ln-brown-light);
  margin-top: 8px;
}
.navi-footer-in > .menu-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0;
}
.navi-footer-in > .menu-footer li {
  width: auto;
  border: 0 !important;
  margin: 0;
}
.navi-footer-in > .menu-footer li a {
  font-size: 13px;
  padding: 0;
  text-decoration: none;
}
.navi-footer-in > .menu-footer li a:hover {
  text-decoration: underline;
  background: none;
}
.copyright {
  font-size: 11px;
  color: var(--ln-brown-light);
  margin-top: 6px;
}

/* 右下の「上へ戻る」ボタン */
.go-to-top-button {
  background: var(--ln-brown-light);
  color: #fff;
  border-radius: 50%;
}
/* スマホ用の「目次」ボタン(javascript.js)。PCはサイドバーに目次がついてくるので出さない */
.ln-go-toc {
  display: none;
}
/* GoogleのreCAPTCHA(問合せフォームのスパム対策)のマークは、問合せページだけに出す。
   ほかのページでは右下のボタンにかぶるので隠す(使う場所で表示していればGoogleのルール上OK) */
body:not(.page-id-12) .grecaptcha-badge {
  visibility: hidden !important;
}

/* ---------------------------------------------------------------------
   PC以外(タブレット・スマホ)
   --------------------------------------------------------------------- */
@media screen and (max-width: 1023px) {
  /* ヘッダーメニューはスマホでも写真の下に出す */
  #header-container .navi,
  #navi,
  #navi .navi-in,
  #navi .navi-in > .menu-header {
    display: block;
  }
  #navi .navi-in > ul {
    display: flex !important;
  }

  /* 下の固定メニューはやめて、右上の≡だけにする */
  .mobile-footer-menu-buttons {
    top: 10px;
    right: 10px;
    bottom: auto !important;
    left: auto;
    width: auto;
    height: auto !important;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    z-index: 3;
  }
  .mobile-footer-menu-buttons > .menu-button:not(.navi-menu-button) {
    display: none;
  }
  .mobile-footer-menu-buttons .navi-menu-button {
    width: auto;
    height: auto;
  }
  #navi-menu-open {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    box-shadow: 0 1px 6px rgba(40,30,20,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, opacity .25s ease;
  }
  #navi-menu-open .menu-caption,
  #navi-menu-open .fa {
    display: none;
  }
  #navi-menu-open .menu-icon {
    width: 22px;
    height: 22px;
    margin: 0;
    background-color: var(--ln-brown);
    -webkit-mask: var(--ln-ic-menu) center / contain no-repeat;
    mask: var(--ln-ic-menu) center / contain no-repeat;
  }
  /* 下へ読み進めると隠れ、上に戻すと出る(javascript.js) */
  .ln-scroll-down #navi-menu-open {
    transform: translateY(-64px);
    opacity: 0;
    pointer-events: none;
  }
  /* 下の固定メニュー用の余白はいらない */
  .mblt-footer-mobile-buttons #container,
  .mblt-footer-mobile-buttons .footer {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .mblt-footer-mobile-buttons .go-to-top {
    bottom: 20px;
  }
  /* 右下の「上へ戻る」:Cocoonはスマホでは隠すので、少し下へ読み進めたら出す(javascript.js) */
  .go-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .25s, visibility .25s;
  }
  .ln-scrolled .go-to-top {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .go-to-top .go-to-top-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  /* その上に「目次」ボタン(本文に目次がある記事で、目次より下へ読み進めたら出す) */
  .ln-go-toc {
    position: fixed;
    right: 10px;
    bottom: 70px;
    z-index: 999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--ln-greige-line);
    box-shadow: 0 1px 6px rgba(40,30,20,.18);
    color: var(--ln-brown) !important;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    padding-top: 1px;
    box-sizing: border-box;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
  }
  .ln-past-toc .ln-go-toc {
    opacity: 1;
    visibility: visible;
  }

  /* ≡で開くメニュー(右から出る) */
  .mobile-menu-buttons .navi-menu-content {
    left: auto;
    right: 0;
    transform: translateX(105%);
    background: var(--ln-page);
    padding: 14px 16px 24px;
  }
  .mobile-menu-buttons #navi-menu-input:checked ~ .navi-menu-content {
    transform: none;
  }
  .menu-drawer {
    background: #fff;
    border: 1px solid var(--ln-tint-line);
    border-radius: 10px;
    margin: 8px 0 0;
    padding: 0 !important;
  }
  .menu-drawer li {
    border: 0;
    margin: 0;
  }
  .menu-drawer li + li {
    border-top: 1px solid var(--ln-tint);
  }
  .menu-drawer li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--ln-brown);
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
  }
  .menu-drawer li a::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: none;
    background-color: var(--ln-brown-light);
    -webkit-mask: var(--ln-ic) center / contain no-repeat;
    mask: var(--ln-ic) center / contain no-repeat;
  }
  .menu-close-button {
    color: var(--ln-brown);
  }
  /* 「カテゴリー」「サイト情報」のラベル(javascript.js で2つの囲みに分けている) */
  .ln-drawer-label {
    margin: 16px 4px 6px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .05em;
    color: var(--ln-meta);
  }
  .ln-drawer-label + .menu-drawer {
    margin-top: 0;
  }
  .ln-drawer-search {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--ln-tint-line);
    background: #fff;
    border-radius: 999px;
    padding: 2px 4px 2px 14px;
    margin: 8px 0 4px;
  }
  .ln-drawer-search input {
    border: 0;
    outline: 0;
    font-size: 14px;
    min-width: 0;
    flex: 1;
    background: none;
    color: var(--ln-text);
    padding: 6px 0;
  }
  .ln-drawer-search button {
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    position: relative;
    flex: none;
    cursor: pointer;
  }
  .ln-drawer-search button::before {
    content: "";
    position: absolute;
    inset: 7px;
    background-color: var(--ln-brown-light);
    -webkit-mask: var(--ln-ic-search) center / contain no-repeat;
    mask: var(--ln-ic-search) center / contain no-repeat;
  }

  /* 記事カードの一覧が画面の端にくっつかないように */
  .home .main,
  .archive .main,
  .search .main {
    padding-left: 10px;
    padding-right: 10px;
  }
  /* サイドバーは記事の下へ。左右の余白をそろえる */
  .sidebar {
    padding: 0 10px;
  }
}

/* スマホ */
@media screen and (max-width: 600px) {
  .header .header-in {
    height: 120px;
    padding: 0 5% 14px;
  }
  .home .header .header-in {
    aspect-ratio: auto;
    height: 200px;
    min-height: 0 !important;
    padding-bottom: 18px;
  }
  #header .logo-header .site-name-text {
    font-size: 40px;
  }
  .home #header .logo-header .site-name-text {
    font-size: 52px;
  }
  .header .site-name-text-link::after {
    font-size: 10px;
    margin-top: 4px;
  }
  .home .header .site-name-text-link::after {
    font-size: 11px;
    margin-top: 6px;
  }

  /* ヘッダーメニュー:5つを横一列に */
  #navi .navi-in > ul {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-items: center;
    gap: 0;
    padding: 8px 6px;
  }
  #navi .navi-in > ul > li > a {
    width: 56px;
    height: 56px;
    font-size: 11px;
  }
  #navi .navi-in > ul > li > a::before {
    width: 21px;
    height: 21px;
  }

  .content {
    margin-top: 14px;
  }
  .main {
    padding: 16px 14px 22px;
  }
  .article .entry-title {
    font-size: 19px;
  }

  /* 記事カード:2列のまま小さめに */
  .ect-vertical-card .entry-card-content {
    padding: 8px 9px 10px;
  }
  .ect-vertical-card .entry-card-title {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
  }

  .footer-bottom {
    padding: 24px 16px 20px;
  }
  .navi-footer-in > .menu-footer {
    gap: 4px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #navi-menu-open {
    transition: none;
  }
}
