@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:    3.0.0
*/

/* ============================================================
   いぬと暮らす 見た目のルール（2026-11 案B「札」）
   - 地は白。文字はこげ茶の濃い色。リンク・ボタンはこげ茶 #6B4B30
   - 差し色（2026-11 追加・「少しポップに」）: イラストと同じ 黄 #FFD25E・水色 #7CC6D6・柴色 #E8A35C。
     使うのは「見出しの下線」「カテゴリ札の地」「ツールのタイルの絵の地（淡い色）」だけ。
     上に乗せる文字は必ず濃いこげ茶 #2B211A（黄 10.96／水色 8.17／柴色 7.36）。差し色は白地では線・面の飾りにだけ使う（白地で 1.4〜2.1 のため文字色にしない）。白い文字は乗せない
   - イラスト: assets/icons/*.webp（太いこげ茶の線の犬の絵）。飾りなので alt=""。トップの見出し3つ・
     ツールのタイル・サイト名の横・フッターだけに置き、記事の本文には置かない
   - 目印は「太い線」: 見出しの上に 4px、囲みは 2px の枠
   - 角丸: 札・写真の枠は 0、ボタン・カテゴリ札 4px、ツールのタイル 8px
   - 書体は端末のゴシック1種類（外部フォントは読み込まない）
   - 使わない: クリーム地・明朝・グラデーション・すりガラス・影・
     丸いピル型ラベル・浮き上がる動き・絵文字見出し・「→」「NEW」
   - 文字のコントラストは 4.5 以上（値の根拠は design/redesign-2026-11/notes.md 4章）
   - 詳しくは company/inukura/design/redesign-2026-11/implementation.md
   ============================================================ */

/* ============================================================
   デザイントークン
   ============================================================ */
:root {
  --ik-paper:  #FFFFFF;  /* 地 */
  --ik-ink:    #2B211A;  /* 文字・枠線（白地で 15.73） */
  --ik-sub:    #6B5747;  /* 補足の文字（白地で 6.82 / ベージュ地で 5.76） */
  --ik-key:    #6B4B30;  /* こげ茶: リンク・主ボタン・h3 の左線（白地で 7.85） */
  --ik-tint:   #F1EBE3;  /* 淡いベージュ: 札の見出し帯・表の見出し行・フッター */
  --ik-warn:   #F3E3B5;  /* 注意の帯 */
  --ik-rule:   #A8957F;  /* 表の罫線・細い枠（飾りの線） */
  --ik-line:   #E6DDD2;  /* 一覧の区切り線（飾りの線） */
  /* 差し色（イラストの色）。文字は乗せるなら --ik-ink だけ */
  --ik-yellow:      #FFD25E;
  --ik-sky:         #7CC6D6;
  --ik-shiba:       #E8A35C;
  --ik-yellow-pale: #FFF4D1;  /* タイルの絵の地 */
  --ik-sky-pale:    #E2F3F7;
  --ik-shiba-pale:  #FBEBDA;
  --ik-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --ik-wrap: 1132px;

  /* 旧トークン名（ツールページ等が参照している）を新しい値に寄せる */
  --bg:          var(--ik-paper);
  --beige:       var(--ik-tint);
  --beige-dark:  var(--ik-rule);
  --terra:       var(--ik-key);
  --terra-light: var(--ik-tint);
  --terra-mid:   var(--ik-key);
  --brown:       var(--ik-ink);
  --brown-mid:   var(--ik-key);
  --muted:       var(--ik-sub);
  --white:       var(--ik-paper);
  --serif:       var(--ik-font);
  --sans:        var(--ik-font);
  --shadow:       none;
  --shadow-hover: none;
  --radius:       0px;
  --radius-sm:    4px;
}

/* Cocoon変数オーバーライド */
:root {
  --cocoon-text-color:          var(--ik-ink);
  --cocoon-default-font:        var(--ik-font);
  --cocoon-basic-border-color:  var(--ik-line);
  --cocoon-basic-border-radius: 0px;
}

/* ============================================================
   ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body,
body.public-page {
  background: var(--ik-paper);
  font-family: var(--ik-font);
  color: var(--ik-ink);
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ik-key); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ik-ink); text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
label:focus-visible { outline: 3px solid var(--ik-ink); outline-offset: 2px; }
img { height: auto; max-width: 100%; }

.ik-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

/* 共通の幅 */
.ik-wrap {
  max-width: var(--ik-wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* 共通: セクション見出し（上に 4px の太線＋文字の下に差し色の太い下線。トップの3つは左に絵） */
.ik-sec-h {
  margin: 0 0 16px;
  padding: 10px 0 0;
  border-top: 4px solid var(--ik-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ik-ink);
}
.ik-sec-h:has(.ik-sec-h-pic) { display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.ik-sec-h-pic { width: 52px; height: 52px; flex-shrink: 0; }
.ik-sec-h-text {
  text-decoration-line: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 4px;
  text-decoration-skip-ink: none;
  text-decoration-color: var(--ik-tone, transparent);
}
.ik-tone-yellow { --ik-tone: var(--ik-yellow); --ik-tone-pale: var(--ik-yellow-pale); }
.ik-tone-sky    { --ik-tone: var(--ik-sky);    --ik-tone-pale: var(--ik-sky-pale); }
.ik-tone-shiba  { --ik-tone: var(--ik-shiba);  --ik-tone-pale: var(--ik-shiba-pale); }
@media (min-width: 768px) {
  .ik-sec-h-pic { width: 60px; height: 60px; }
}
.ik-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
  border-top: 4px solid var(--ik-ink);
  padding-top: 10px;
  margin: 0 0 16px;
}
.ik-sec-head .ik-sec-h { border: 0; padding: 0; margin: 0; }
.ik-sec-more { font-size: 15px; }

/* 共通: カテゴリの札（1px の枠・カテゴリごとに差し色の地。functions.php の ik_cat_tone） */
.ik-cat {
  display: inline-block;
  border: 1px solid var(--ik-ink);
  border-radius: 4px;
  padding: 0 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ik-ink);
  background: var(--ik-tone, var(--ik-paper));
}

/* 共通: ボタン */
.ik-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.ik-btn-main { background: var(--ik-key); color: #fff; border: 0; }
.ik-btn-main:hover { color: #fff; text-decoration: underline; }
.ik-btn-sub { background: var(--ik-paper); color: var(--ik-ink); border: 2px solid var(--ik-ink); }
.ik-btn-sub:hover { color: var(--ik-ink); text-decoration: underline; }

/* ============================================================
   トップページ（front-page.php）— ヘッダー
   ============================================================ */
.ik-home-body { margin: 0; padding: 0; }

.ik-header { background: var(--ik-paper); border-bottom: 1px solid var(--ik-rule); }
.ik-header-top { background: var(--ik-tint); border-top: 4px solid var(--ik-ink); }
.ik-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}
.ik-logo-h { margin: 0; font-size: inherit; line-height: 1; }
.ik-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ik-ink);
  text-decoration: none;
}
.ik-logo:hover { color: var(--ik-ink); }
.ik-logo-icon { flex-shrink: 0; color: var(--ik-key); }
.ik-logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.ik-logo-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ik-logo-tag {
  margin: 0;
  font-size: 13px;
  color: var(--ik-sub);
  white-space: nowrap;
}
.ik-search-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--ik-paper);
  color: var(--ik-ink);
  border: 2px solid var(--ik-ink);
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ik-search-toggle[aria-expanded="true"] { background: var(--ik-ink); color: #fff; }

/* カテゴリの並び（スマホでは横にすべらせる） */
.ik-gnav { background: var(--ik-paper); }
.ik-gnav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ik-gnav-list::-webkit-scrollbar { display: none; }
.ik-gnav-list li { flex-shrink: 0; margin: 0; }
.ik-gnav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ik-ink);
  text-decoration: none;
  white-space: nowrap;
}
.ik-gnav-list li:first-child a { padding-left: 0; }
.ik-gnav-list a:hover,
.ik-gnav-list .current-menu-item > a,
.ik-gnav-list a[aria-current="page"] {
  color: var(--ik-ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

/* 検索の入力欄 */
.ik-header-search { background: var(--ik-tint); border-top: 1px solid var(--ik-rule); padding: 12px 0; }
.ik-header-search[hidden] { display: none; }
.ik-header-search form { display: flex; gap: 8px; }
.ik-search-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid var(--ik-ink);
  border-radius: 0;
  background: var(--ik-paper);
  color: var(--ik-ink);
  font: inherit;
  font-size: 16px; /* iOS で拡大されない大きさ */
}
.ik-search-submit {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--ik-key);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 599px) {
  .ik-gnav-list { flex-wrap: wrap; overflow: visible; gap: 0; margin-left: -8px; }
  .ik-gnav-list a,
  .ik-gnav-list li:first-child a { min-height: 44px; padding: 0 8px; }
  .ik-logo-tag { display: none; }
  .ik-logo-name { font-size: 19px; }
  .ik-search-toggle { padding: 0 12px; }
}

/* ============================================================
   トップページ — 本体
   ============================================================ */
#ik-top-page { background: var(--ik-paper); padding-bottom: 48px; }

/* 特集（いちばん新しい記事を大きく1本） */
.ik-feature { padding: 24px 0 8px; }
.ik-feature-link {
  display: grid;
  grid-template-columns: 1fr;
  border: 2px solid var(--ik-ink);
  color: var(--ik-ink);
  text-decoration: none;
}
.ik-feature-link:hover { color: var(--ik-ink); }
.ik-feature-photo {
  aspect-ratio: 16 / 9;
  background: var(--ik-tint);
  border-bottom: 2px solid var(--ik-ink);
  overflow: hidden;
}
.ik-feature-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-feature-text { padding: 16px; }
.ik-feature-title {
  display: block;
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
}
.ik-feature-link:hover .ik-feature-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ik-feature-excerpt { display: block; margin: 0 0 12px; font-size: 15px; line-height: 1.8; color: var(--ik-ink); }
.ik-feature-date { display: block; font-size: 14px; color: var(--ik-sub); }
@media (min-width: 768px) {
  .ik-feature { padding-top: 32px; }
  .ik-feature-link { grid-template-columns: 1.35fr 1fr; }
  .ik-feature-photo { border-bottom: 0; border-right: 2px solid var(--ik-ink); aspect-ratio: auto; min-height: 100%; }
  .ik-feature-photo img { aspect-ratio: 16 / 9; }
  .ik-feature-text { padding: 24px 28px; align-self: center; }
  .ik-feature-title { font-size: 26px; }
}
@media (max-width: 767px) {
  .ik-feature-excerpt { display: none; }
}

/* 2段組み（PC）: 左に記事、右に補助 */
.ik-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
@media (min-width: 1024px) {
  .ik-columns { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
}
.ik-sec { padding-top: 40px; }
@media (min-width: 768px) { .ik-sec { padding-top: 56px; } }

/* 記事の一覧（スマホ=写真つきの行／広い画面=写真の並び） */
.ik-posts { list-style: none; margin: 0; padding: 0; }
.ik-post { margin: 0; }
.ik-post-link {
  display: block;            /* スマホも写真を幅いっぱいに（4コマの絵が小さくて読めないため） */
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--ik-line);
  color: var(--ik-ink);
  text-decoration: none;
}
.ik-post:first-child .ik-post-link { padding-top: 0; }
.ik-post-photo { display: block; margin-bottom: 10px; }
.ik-post-link:hover { color: var(--ik-ink); }
.ik-post-photo { aspect-ratio: 16 / 9; background: var(--ik-tint); overflow: hidden; }
.ik-post-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ik-post-body { min-width: 0; }
.ik-post-title {
  display: block;
  margin: 6px 0 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.ik-post-link:hover .ik-post-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ik-post-date { display: block; font-size: 13px; color: var(--ik-sub); }
.ik-post .ik-cat { font-size: 12px; padding: 0 5px; }

@media (min-width: 600px) {
  .ik-posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .ik-post-link { padding: 0; border-bottom: 0; }
  .ik-post-photo { margin-bottom: 8px; }
  .ik-post-title { font-size: 16px; }
}
@media (min-width: 900px) {
  .ik-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ik-shelf .ik-posts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
  .ik-shelf .ik-post-title { font-size: 15px; }
}
@media (min-width: 1024px) {
  .ik-shelf .ik-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ik-sec-foot { margin: 20px 0 0; }

/* 記事一覧の2ページ目以降のページ送り */
.ik-pager { margin: 40px 0 0; }
.ik-pager .page-numbers { display: inline-flex; }

/* お役立ちツール（イラスト付きのタイル。トップと記事末尾で共通: functions.php の ik_tool_tiles_html）
   スマホ 2列／600px〜 3列／トップの広い本文欄 4列。タイル全体が1つのリンク。浮く動き・影はなし */
.ik-tools-lead { margin: 0 0 16px; font-size: 15px; line-height: 1.8; }
.ik-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 600px) { .ik-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { #ik-tools .ik-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ik-tile { margin: 0; padding: 0; }
.ik-tile::before { content: none; }
.ik-tile-link,
.entry-content .ik-tile-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--ik-ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ik-paper);
  color: var(--ik-ink);
  text-decoration: none;
}
.ik-tile-pic {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  background: var(--ik-tone-pale, var(--ik-tint));
  border-bottom: 2px solid var(--ik-ink);
}
.ik-tile-img { display: block; width: 88px; height: 88px; margin: 0; }
.ik-tile-name {
  display: block;
  padding: 10px 12px 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ik-ink);
  word-break: keep-all;      /* 名前は functions.php で入れた区切り（<wbr>）でだけ折り返す */
  overflow-wrap: anywhere;   /* それでも入らないときの保険 */
}
.ik-tile-desc {
  display: block;
  padding: 0 12px 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ik-sub);
}
.ik-tile-link:hover,
.entry-content .ik-tile-link:hover { color: var(--ik-ink); background: var(--ik-paper); }
.ik-tile-link:hover .ik-tile-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ik-tile-link:hover .ik-tile-pic { background: var(--ik-tone); }
@media (min-width: 600px) {
  .ik-tile-img { width: 100px; height: 100px; }
  .ik-tile-desc { font-size: 14px; }
}

/* 補助の列（イベント・カテゴリ） */
.ik-aside .ik-sec:first-child { padding-top: 40px; }
@media (min-width: 1024px) {
  .ik-aside .ik-sec:first-child { padding-top: 56px; }
}
.ik-events-widget-list { list-style: none; margin: 0; padding: 0; border-top: 0; }
.ik-events-widget-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--ik-line);
}
.ik-events-widget-item:first-child { padding-top: 0; }
.ik-events-widget-date { font-size: 14px; font-weight: 700; color: var(--ik-ink); }
.ik-events-widget-name { font-size: 15px; font-weight: 700; color: var(--ik-ink); line-height: 1.6; }
.ik-events-widget-place { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ik-sub); }
.ik-events-widget-link { align-self: flex-start; font-size: 14px; }
.ik-events-widget-more { display: inline-block; margin-top: 12px; font-size: 15px; }
.ik-events-widget-empty { margin: 0; font-size: 15px; color: var(--ik-sub); }

.ik-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ik-cat-list li { margin: 0; }
.ik-cat-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--ik-rule);
  border-left: 6px solid var(--ik-tone, var(--ik-rule));
  border-radius: 4px;
  color: var(--ik-ink);
  font-size: 14px;
  text-decoration: none;
}
.ik-cat-list a:hover { border-color: var(--ik-ink); text-decoration: underline; }
.ik-cat-count { color: var(--ik-sub); font-size: 13px; margin-left: 4px; }

/* ============================================================
   トップページ — フッター
   ============================================================ */
.ik-footer {
  background: var(--ik-tint);
  border-top: 4px solid var(--ik-ink);
  color: var(--ik-ink);
  padding: 32px 0 24px;
  font-size: 14px;
}
.ik-footer-friends { display: block; width: 220px; height: auto; margin: 0 0 12px; }
.ik-footer-name { margin: 0; font-size: 18px; font-weight: 700; color: var(--ik-ink); }
.ik-footer-tagline { margin: 0 0 16px; color: var(--ik-sub); font-size: 14px; }
.ik-footer-nav-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.ik-footer-nav-list li { margin: 0; }
.ik-footer-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px 0 0;
  color: var(--ik-ink);
  font-size: 14px;
}
.ik-footer-copy { margin: 0; color: var(--ik-sub); font-size: 13px; }

/* ============================================================
   Cocoon ページ共通（記事・固定ページ・カテゴリ一覧・犬イベント）
   — ヘッダー
   ============================================================ */
.header-container {
  background: var(--ik-paper) !important;
  border-top: 4px solid var(--ik-ink);
  border-bottom: 1px solid var(--ik-rule) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.header-container-in,
.header {
  background: var(--ik-tint) !important;
  background-image: none !important;
}
.header-container-in .navi,
.header-container-in #navi { background: var(--ik-paper) !important; }
.header-in { min-height: 64px; }
.logo-header { padding: 14px 0 !important; }
.site-name-text-link,
.site-name-text-link:hover { color: var(--ik-ink) !important; text-decoration: none !important; }
.logo-header .site-name-text-link { display: inline-flex !important; align-items: center; gap: 8px; }
.logo-header .ik-logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.site-name-text {
  font-family: var(--ik-font);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--ik-ink);
}
.tagline { color: var(--ik-sub); font-size: 13px; }
.header-icon a { color: var(--ik-ink) !important; }

/* ロゴとナビを本文の左端に揃える（Cocoon の .main の左右余白 29px / 834px 以下は 16px に合わせる） */
.header-in { flex-direction: row; align-items: center; justify-content: flex-start; }
.header-in, .navi-in { padding-left: 29px; padding-right: 29px; }
.logo, .logo-header { text-align: left; }
.tagline:empty { display: none; }
.site-name-text-link { padding: 0 !important; margin: 0 !important; }
.logo-header .site-name { margin: 0; padding: 0; }
.navi-in .ik-cocoon-nav li:first-child a { padding-left: 0; }
.footer-in { padding-left: 29px; padding-right: 29px; }
@media screen and (max-width: 834px) { .footer-in { padding-left: 16px; padding-right: 16px; } }
@media screen and (max-width: 1023px) {
  .header-in, .navi-in { width: auto; padding-left: 39px; padding-right: 39px; }
}
@media screen and (max-width: 834px) {
  .header-in, .navi-in { padding-left: 16px; padding-right: 16px; }
}

/* グローバルナビ（ik_primary を Cocoon のナビ位置に出す。functions.php 参照） */
.navi, #navi { background: var(--ik-paper); border: 0; }
.navi-in > ul { background: transparent; border: 0; }
.navi-in .ik-cocoon-nav {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  gap: 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.navi-in .ik-cocoon-nav::-webkit-scrollbar { display: none; }
.navi-in .ik-cocoon-nav li { flex: 0 0 auto; width: auto; height: auto; border: 0; margin: 0; }
.navi-in .ik-cocoon-nav a {
  display: inline-flex;
  align-items: center;
  height: auto;
  min-height: 48px;
  line-height: 1.4;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ik-ink);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
}
.navi-in .ik-cocoon-nav a:hover,
.navi-in .ik-cocoon-nav .current-menu-item > a {
  background: transparent;
  color: var(--ik-ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
/* Cocoon がスマホ幅でナビを隠すのを打ち消す（横にすべらせて全部見せる） */
@media screen and (max-width: 1023px) {
  .navi { display: block !important; }
}
@media (max-width: 599px) {
  .navi-in .ik-cocoon-nav { flex-wrap: wrap; overflow: visible; gap: 0; margin-left: -8px; }
  .navi-in .ik-cocoon-nav li { height: auto !important; line-height: 1.4 !important; }
  .navi-in .ik-cocoon-nav a,
  .navi-in .ik-cocoon-nav li:first-child a { min-height: 44px; padding: 0 8px; }
}
/* 管理画面などで Cocoon 本来のナビを使っている場合の見た目 */
.navi-in > ul > li > a {
  font-family: var(--ik-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ik-ink);
}
.navi-in > ul > li:hover > a { background: transparent; color: var(--ik-ink); text-decoration: underline; }
.navi-in > ul .sub-menu { background: var(--ik-paper); border: 2px solid var(--ik-ink); box-shadow: none; border-radius: 0; }

/* 固定ヘッダー（Cocoon設定で有効な場合） */
.fixed-header .header-container { box-shadow: none !important; }

/* ============================================================
   Cocoon — 全体の並び
   ============================================================ */
.content { margin-top: 16px; }
.main, .sidebar { background: transparent; border: 0; }
.home .content-in { max-width: 100% !important; padding: 0 !important; margin: 0 !important; display: block !important; }
.home #main.main { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; float: none !important; display: block !important; }
.home #sidebar.sidebar { display: none !important; }

/* パンくず */
.breadcrumb {
  background: transparent;
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ik-sub);
}
.breadcrumb a, .breadcrumb .breadcrumb-caption { color: var(--ik-sub); }
.breadcrumb a { text-decoration: underline; text-decoration-color: var(--ik-rule); }
.breadcrumb a:hover { color: var(--ik-ink); }
.breadcrumb .fa { color: var(--ik-sub); }

/* ============================================================
   記事ページ（single）
   ============================================================ */
.article {
  background: var(--ik-paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 40px;
}
.article-header { margin-bottom: 24px; }
.article-title, .entry-title {
  font-family: var(--ik-font);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ik-ink);
  margin: 0 0 16px;
  padding: 0;
  letter-spacing: 0.01em;
  background: none;
  border: 0;
}
.eye-catch-wrap { margin: 0 0 16px; }
.eye-catch { margin: 0; border-radius: 0; }
.eye-catch-image { border-radius: 0; display: block; width: 100%; }
/* 写真の上のカテゴリ（Cocoon の .cat-label）を札にする */
.cat-label,
.eye-catch .cat-label,
.entry-card-thumb .cat-label,
.related-entry-card-thumb .cat-label {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--ik-ink);
  border-radius: 4px;
  background: var(--ik-paper);
  color: var(--ik-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  opacity: 1;
  max-width: calc(100% - 16px);
}
.entry-date, .post-date, .post-update, .post-modified-date,
.date-tags, .date-tags .fa, .author-info, .post-author { color: var(--ik-sub); font-size: 14px; }
.date-tags { margin: 8px 0 0; text-align: left; }

/* 本文 */
.entry-content {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ik-ink);
  margin-top: 0;
}
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { color: var(--ik-key); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ik-ink); text-decoration-thickness: 2px; }
.entry-content img { border-radius: 0; }
.entry-content h2 {
  background: none;
  color: var(--ik-ink);
  margin: 56px 0 16px;
  padding: 12px 0 0;
  border: 0;
  border-top: 4px solid var(--ik-ink);
  border-radius: 0;
  font-family: var(--ik-font);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
}
.entry-content h3 {
  background: none;
  color: var(--ik-ink);
  margin: 36px 0 12px;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 4px solid var(--ik-key);
  border-radius: 0;
  font-family: var(--ik-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  background: none;
  color: var(--ik-ink);
  margin: 28px 0 8px;
  padding: 0;
  border: 0;
  font-family: var(--ik-font);
  font-size: 17px;
  font-weight: 700;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 6px; }
.entry-content blockquote { border: 0; border-left: 4px solid var(--ik-rule); background: var(--ik-tint); border-radius: 0; }
.entry-content table { border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--ik-rule); padding: 10px 12px; vertical-align: top; }
.entry-content thead th, .entry-content th { background: var(--ik-tint); color: var(--ik-ink); }
.entry-content table { border: 2px solid var(--ik-ink); font-size: 15px; line-height: 1.7; }
/* 表がはみ出すときは表だけを横にすべらせる */
.entry-content .scrollable-table,
.entry-content div[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }

@media (max-width: 767px) {
  .article-title, .entry-title { font-size: 23px; line-height: 1.55; }
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 20px; margin-top: 48px; }
  .entry-content h3 { font-size: 18px; }
}

/* 目次（Cocoon） */
.toc {
  display: block;
  width: 100%;
  margin: 0 0 32px;
  padding: 14px 18px;
  background: var(--ik-paper);
  border: 2px solid var(--ik-ink);
  border-radius: 0;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}
.toc-title,
.toc .toc-title {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-family: var(--ik-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--ik-ink);
  text-align: left;
}
.toc-content { padding: 0; }
.toc ol, .toc ul { margin: 0; padding-left: 1.5em; }
.toc li { margin: 4px 0; }
.toc li a { color: var(--ik-key); text-decoration: underline; text-decoration-color: var(--ik-rule); }
.toc li a:hover { color: var(--ik-ink); text-decoration-color: var(--ik-ink); }
.toc-center { text-align: left; }

/* 記事の下（カテゴリ・シェア・関連記事・前後の記事） */
.article-footer { margin-top: 32px; }
.entry-categories-tags { margin: 0 0 16px; }
.cat-link, .tag-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--ik-ink);
  border-radius: 4px;
  background: var(--ik-paper);
  color: var(--ik-ink) !important;
  font-size: 14px;
  font-weight: 700;
}
.cat-link:hover, .tag-link:hover { background: var(--ik-tint); text-decoration: underline; }
.sns-share-message, .sns-follow-message { color: var(--ik-sub); font-size: 14px; }
.sns-share a, .sns-follow a { border-radius: 0 !important; box-shadow: none !important; }

.related-entries { margin: 48px 0 0; }
.related-entry-heading,
.under-entry-content .related-entry-heading {
  margin: 0 0 16px;
  padding: 10px 0 0;
  border: 0;
  border-top: 4px solid var(--ik-ink);
  background: none;
  color: var(--ik-ink);
  font-family: var(--ik-font);
  font-size: 20px;
  font-weight: 700;
  text-align: left;
}
.related-entry-heading .main-caption { font-size: inherit; color: inherit; }
.related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}
@media (min-width: 768px) { .related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-entry-card-wrap {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  color: var(--ik-ink);
  text-decoration: none;
  width: auto !important;
}
.related-entry-card-wrap:hover { background: none !important; color: var(--ik-ink); }
.related-entry-card { display: block; }
.related-entry-card-thumb {
  float: none !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: var(--ik-tint);
}
.related-entry-card-thumb-image { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.related-entry-card-content { margin: 0 !important; padding: 0 !important; }
.related-entry-card-title {
  margin: 0;
  font-family: var(--ik-font);
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.6 !important;
  color: var(--ik-ink);
}
.related-entry-card-wrap:hover .related-entry-card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.related-entry-card-snippet { display: none !important; }
.related-entry-card-meta, .related-entry-card-info { display: none; }
.related-entry-card-thumb .cat-label { display: none; }

.pager-post-navi { margin: 40px 0 0; border-top: 1px solid var(--ik-rule); }
.pager-post-navi a {
  border: 0 !important;
  border-bottom: 1px solid var(--ik-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  color: var(--ik-ink) !important;
  font-size: 15px;
  padding: 12px 0 !important;
}
.pager-post-navi a:hover { text-decoration: underline; }
.pager-post-navi .prev-post::before,
.pager-post-navi .next-post::before { color: var(--ik-sub); }

.comment-area, #comment-area { border-top: 1px solid var(--ik-rule); }

/* ============================================================
   サイドバー（Cocoon）
   ============================================================ */
.sidebar .widget,
.sidebar aside.widget {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 40px !important;
  overflow: visible;
}
.sidebar .widget-title,
.sidebar .widgettitle,
.sidebar .wp-block-heading,
.sidebar .wp-block-search__label {
  display: block;
  margin: 0 0 12px !important;
  padding: 10px 0 0 !important;
  border: 0 !important;
  border-top: 4px solid var(--ik-ink) !important;
  background: none !important;
  color: var(--ik-ink) !important;
  font-family: var(--ik-font) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}
.sidebar .widget ul { padding: 0; margin: 0; list-style: none; }
.sidebar .widget ul li { border-bottom: 1px solid var(--ik-line); padding: 10px 0; font-size: 15px; line-height: 1.6; margin: 0; }
.sidebar .widget ul li:last-child { border-bottom: 0; }
.sidebar .widget ul li a { color: var(--ik-ink); text-decoration: none; padding: 0; }
.sidebar .widget ul li a:hover { text-decoration: underline; background: none; }
.sidebar .wp-block-search__inside-wrapper { display: flex; gap: 8px; border: 0; padding: 0; }
.sidebar .wp-block-search__input {
  min-height: 48px;
  border: 2px solid var(--ik-ink) !important;
  border-radius: 0 !important;
  font-size: 16px;
}
.sidebar .wp-block-search__button {
  min-height: 48px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--ik-key);
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   カテゴリ一覧・検索結果（Cocoon のアーカイブ）
   ============================================================ */
.archive-title, .cat-page-title, .tag-page-title, .search-title, .list-title {
  margin: 0 0 24px;
  padding: 12px 0 0;
  border: 0;
  border-top: 4px solid var(--ik-ink);
  background: none;
  color: var(--ik-ink);
  font-family: var(--ik-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}
.archive-title .fa, .archive-title span[class*="fa"] { display: none; }
.archive-title {
  text-decoration-line: underline;
  text-decoration-thickness: 6px;
  text-underline-offset: 6px;
  text-decoration-skip-ink: none;
  text-decoration-color: var(--ik-tone, transparent);
}
@media (min-width: 768px) { .archive-title, .cat-page-title, .tag-page-title, .search-title { font-size: 28px; } }

#list, .list {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
}
@media (min-width: 600px) {
  #list, .list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 32px 24px !important; }
}
@media (min-width: 1100px) {
  #list, .list { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
#list .entry-card-wrap,
.list .entry-card-wrap,
.entry-card-wrap.a-wrap {
  display: block !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--ik-ink);
  text-decoration: none !important;
}
#list .entry-card-wrap:hover,
.entry-card-wrap.a-wrap:hover { background: none !important; box-shadow: none !important; transform: none !important; }
#list .entry-card,
.list .entry-card { display: block; }
figure.entry-card-thumb {
  position: relative !important;
  float: none !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: var(--ik-tint);
}
figure.entry-card-thumb .entry-card-thumb-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transform: none !important;
  transition: none !important;
}
.entry-card-content, .card-content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
.entry-card-title, .card-title {
  margin: 0 0 4px !important;
  font-family: var(--ik-font) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  color: var(--ik-ink) !important;
}
.entry-card-wrap:hover .entry-card-title,
.entry-card-wrap:hover .card-title {
  color: var(--ik-ink) !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.entry-card-snippet, .card-snippet {
  margin: 0 0 4px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: var(--ik-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-card-meta, .card-meta { position: static !important; margin: 0 !important; padding: 0 !important; text-align: left !important; }
.entry-card-info > *, .entry-card-meta .post-date, .entry-card-meta .post-update { font-size: 13px !important; color: var(--ik-sub) !important; }
.entry-card-categorys, .e-card-categorys { display: none; }
.entry-card-info, .e-card-info { text-align: left !important; justify-content: flex-start !important; }

/* スマホ: 写真を幅いっぱいにして、その下に見出し（4コマの絵が小さくて読めないため） */
@media (max-width: 599px) {
  #list .entry-card-wrap,
  .list .entry-card-wrap { padding: 16px 0 20px !important; border-bottom: 1px solid var(--ik-line) !important; }
  #list .entry-card-wrap:first-child,
  .list .entry-card-wrap:first-child { padding-top: 0 !important; }
  figure.entry-card-thumb { margin: 0 0 10px !important; }
  .entry-card-thumb .cat-label { display: none; }
  .entry-card-snippet, .card-snippet { display: none !important; }
}

/* ページ送り */
.pagination { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers,
.pagination .page-numbers,
.pagination-next-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  background: var(--ik-paper);
  border: 1px solid var(--ik-ink);
  border-radius: 0;
  color: var(--ik-ink);
  font-size: 15px;
  text-decoration: none;
  transition: none;
}
.page-numbers:hover { background: var(--ik-tint); color: var(--ik-ink); text-decoration: underline; }
.page-numbers.current,
.page-numbers.current:hover { background: var(--ik-ink); border-color: var(--ik-ink); color: #fff; text-decoration: none; }
.page-numbers.dots { border: 0; }
.pagination-next { margin: 40px 0 0; }
.pagination-next-link { width: 100%; font-weight: 700; border-width: 2px; }

/* ============================================================
   ボタン（Cocoon の部品）
   ============================================================ */
.btn, .cocoon-block-button__link {
  background: var(--ik-key);
  border-color: var(--ik-key);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: none;
  transition: none;
}
.btn:hover, .cocoon-block-button__link:hover { background: var(--ik-ink); border-color: var(--ik-ink); color: #fff; }
.more-wrap .more-btn, .btn-wrap a {
  background: var(--ik-paper) !important;
  border: 2px solid var(--ik-ink) !important;
  border-radius: 4px !important;
  color: var(--ik-ink) !important;
  font-family: var(--ik-font) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 10px 28px !important;
  box-shadow: none !important;
  transition: none !important;
}
.more-wrap .more-btn:hover, .btn-wrap a:hover { background: var(--ik-tint) !important; text-decoration: underline; }

/* 検索フォーム（Cocoon） */
.search-box { border-radius: 0; }
.search-edit,
.search-form input[type="search"] {
  min-height: 48px;
  border: 2px solid var(--ik-ink);
  border-radius: 0;
  background: var(--ik-paper);
  color: var(--ik-ink);
  font-size: 16px;
}
.search-submit,
.search-form input[type="submit"] {
  background: var(--ik-key);
  border-color: var(--ik-key);
  color: #fff;
  border-radius: 0;
}

/* ============================================================
   フッター（Cocoon）
   ============================================================ */
.footer {
  background: var(--ik-tint) !important;
  border-top: 4px solid var(--ik-ink) !important;
  color: var(--ik-ink);
  margin-top: 56px;
}
.footer a { color: var(--ik-ink); }
.footer a:hover { color: var(--ik-ink); text-decoration-thickness: 2px; }
.footer-widgets, .footer-widgets-mobile { padding: 32px 0; border-bottom: 1px solid var(--ik-rule); }
.footer .widget-title, .footer .widgettitle {
  color: var(--ik-ink);
  font-family: var(--ik-font);
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-top: 4px solid var(--ik-ink);
  padding: 8px 0 0;
  margin-bottom: 12px;
  background: none;
}
.footer .widget ul li { border-bottom: 1px solid var(--ik-rule); padding: 8px 0; font-size: 14px; }
.footer .widget ul li:last-child { border-bottom: 0; }
.footer-bottom { background: transparent; padding: 24px 0; }
.footer-bottom-content, .copyright, .source-org { color: var(--ik-sub); font-size: 13px; }
.footer-bottom-logo .site-name-text { color: var(--ik-ink); font-size: 18px; }
/* Cocoon はフッターのロゴを下端基準の絶対配置にしていて、絵を足すと上の線にかぶるため、ふつうの並びに戻す */
.footer-bottom-logo { position: static !important; }
.footer-bottom-logo .ik-footer-friends { display: block; width: 220px; height: auto; margin: 0 0 12px; }
.navi-footer-in > ul, .navi-footer-in > ul > li { border: 0; }
.navi-footer-in a { color: var(--ik-ink); font-size: 14px; }
.navi-footer-in a:hover { color: var(--ik-ink); background: none; text-decoration: underline; }

/* スマホ下部の Cocoon ボタン（ホーム・検索・トップ・サイドバー） */
.mobile-menu-buttons {
  background: var(--ik-paper);
  border-top: 2px solid var(--ik-ink);
  box-shadow: none;
}
.mobile-menu-buttons .menu-button > a,
.mobile-menu-buttons .menu-button-in { color: var(--ik-ink); }
.mobile-menu-buttons .menu-caption { font-size: 11px; color: var(--ik-ink); opacity: 1; }
.go-to-top-button { border-radius: 0; background: var(--ik-ink); color: #fff; box-shadow: none; }

/* ============================================================
   記事本文に直接書かれた色（インライン style）を新しい配色に寄せる
   - 記事 HTML は変えず、表示だけを上書きする（外すとこの節を消せば元に戻る）
   - インライン style に勝つため !important を使うのは、この節の中だけ
   - 対象は .entry-content の中だけ（ツールページ・広告の枠は対象外）
   ============================================================ */

/* 本文中の2つ目の h1（タイトルと同じ文が本文にも書かれている）は表示しない */
.entry-content h1 { display: none !important; }

/* 見出し: オレンジの左線・色つきの地をやめ、テーマの見出しの形に揃える */
.entry-content h2[style] {
  background: none !important;
  color: var(--ik-ink) !important;
  border: 0 !important;
  border-top: 4px solid var(--ik-ink) !important;
  border-radius: 0 !important;
  padding: 12px 0 0 !important;
  margin: 56px 0 16px !important;
  font-size: 22px !important;
  line-height: 1.55 !important;
}
.entry-content h3[style] {
  background: none !important;
  color: var(--ik-ink) !important;
  border: 0 !important;
  border-left: 4px solid var(--ik-key) !important;
  border-radius: 0 !important;
  padding: 0 0 0 10px !important;
  margin: 36px 0 12px !important;
  font-size: 19px !important;
  line-height: 1.6 !important;
}
@media (max-width: 767px) {
  .entry-content h2[style] { font-size: 20px !important; margin-top: 48px !important; }
  .entry-content h3[style] { font-size: 18px !important; }
}

/* 囲み: 角丸をやめる（全部） */
.entry-content div[style*="border-radius"],
.entry-content section[style*="border-radius"],
.entry-content p[style*="border-radius"] { border-radius: 0 !important; }

/* 囲み（強調）: オレンジ系の線の囲み → 2px の札。最初の太字の段落を見出し帯にする */
.entry-content div[style*="#f2a541"],
.entry-content div[style*="#F2A541"],
.entry-content div[style*="#f0a35e"],
.entry-content div[style*="#f5a623"],
.entry-content div[style*="#e67e22"],
.entry-content div[style*="#ff9800"],
.entry-content div[style*="#d9822b"],
.entry-content div[style*="#e09f5f"],
.entry-content div[style*="#f0a040"],
.entry-content div[style*="#f0c48a"],
.entry-content div[style*="#f2c48a"],
.entry-content div[style*="#e8c99b"],
.entry-content div[style*="#e57373"] {
  background: var(--ik-paper) !important;
  border: 2px solid var(--ik-ink) !important;
  padding: 14px 16px !important;
}
/* 赤系の線（注意）の囲みは、見出し帯を注意の色にする */
.entry-content div[style*="#f2a541"] > p:first-child[style*="bold"],
.entry-content div[style*="#f0a35e"] > p:first-child[style*="bold"],
.entry-content div[style*="#f5a623"] > p:first-child[style*="bold"],
.entry-content div[style*="#e67e22"] > p:first-child[style*="bold"],
.entry-content div[style*="#ff9800"] > p:first-child[style*="bold"],
.entry-content div[style*="#d9822b"] > p:first-child[style*="bold"],
.entry-content div[style*="#e09f5f"] > p:first-child[style*="bold"],
.entry-content div[style*="#f0a040"] > p:first-child[style*="bold"],
.entry-content div[style*="#f0c48a"] > p:first-child[style*="bold"],
.entry-content div[style*="#f2c48a"] > p:first-child[style*="bold"],
.entry-content div[style*="#e8c99b"] > p:first-child[style*="bold"],
.entry-content div[style*="#e57373"] > p:first-child[style*="bold"] {
  margin: -14px -16px 12px !important;
  padding: 6px 16px !important;
  background: var(--ik-tint) !important;
  border-bottom: 2px solid var(--ik-ink) !important;
  color: var(--ik-ink) !important;
}
.entry-content div[style*="#e57373"] > p:first-child[style*="bold"] { background: var(--ik-warn) !important; }

/* 囲み（ふつう）: 薄い茶・ベージュの線の囲み → 細い枠 */
.entry-content div[style*="#e5d5c0"],
.entry-content div[style*="#e0cba8"],
.entry-content div[style*="#e0cfae"],
.entry-content div[style*="#e0d2bd"],
.entry-content div[style*="#e0c9a8"],
.entry-content div[style*="#d9c4a6"],
.entry-content div[style*="#d8cbb8"],
.entry-content div[style*="#c8b89e"],
.entry-content section[style*="#c8b89e"] {
  background: var(--ik-paper) !important;
  border: 1px solid var(--ik-rule) !important;
  padding: 14px 16px !important;
}
/* 左線だけの囲み（補足）は左線をこげ茶に、地は淡いベージュに */
.entry-content div[style*="border-left"]:not([style*="#e57373"]),
.entry-content section[style*="border-left"] {
  border: 0 !important;
  border-left: 4px solid var(--ik-key) !important;
  background: var(--ik-tint) !important;
}
.entry-content div[style*="border-left"][style*="#e57373"] { border: 2px solid var(--ik-ink) !important; }
/* 枠の中の文字色（薄い灰色）を読める濃さにする */
.entry-content [style*="color:#777"],
.entry-content [style*="color: #777"],
.entry-content [style*="color:#888"],
.entry-content [style*="color:#999"],
.entry-content [style*="color:#aaa"],
.entry-content [style*="color:#7a6a5a"] { color: var(--ik-sub) !important; }

/* 表: 横はみ出し（min-width:480px 等の直書き）をやめ、画面の幅に収める */
.entry-content table[style*="min-width"] { min-width: 0 !important; width: 100% !important; }
.entry-content table[style] { border: 2px solid var(--ik-ink) !important; color: var(--ik-ink) !important; }
.entry-content table[style] th,
.entry-content table[style] td,
.entry-content th[style],
.entry-content td[style] {
  border: 1px solid var(--ik-rule) !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.entry-content tr[style*="background"],
.entry-content th[style*="background"] { background: var(--ik-tint) !important; color: var(--ik-ink) !important; }
.entry-content thead th { border-bottom: 2px solid var(--ik-ink) !important; }
@media (max-width: 599px) {
  .entry-content table { font-size: 14px !important; }
  .entry-content th, .entry-content td { padding: 8px !important; }
}

/* 文中リンク: オレンジ（白地で 3.30 と読みにくい）→ こげ茶＋下線 */
.entry-content a[style*="#c97b2e"],
.entry-content a[style*="#C97B2E"] {
  color: var(--ik-key) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
}
/* 広告リンク（rel="sponsored"）は太字＋太い下線にして、ふつうのリンクと見分けられるようにする */
.entry-content a[rel~="sponsored"] {
  font-weight: 700;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
}
/* 蛍光ペン風のグラデーション → ベタ塗りの淡い黄色 */
.entry-content span[style*="linear-gradient"] { background: var(--ik-warn) !important; }


/* ============================================================
   犬イベント — 専用ページ（/dog-events/・page-dog-events.php）
   ============================================================ */
#ik-events-page { background: var(--ik-paper); min-height: 60vh; }

.ik-events-hero { background: none; padding: 8px 0 0; text-align: left; }
.ik-events-hero-inner { max-width: 800px; margin: 0 auto; padding: 0; }
.ik-events-hero-title {
  margin: 0 0 12px;
  padding: 12px 0 0;
  border-top: 4px solid var(--ik-ink);
  font-family: var(--ik-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ik-ink);
}
@media (min-width: 768px) { .ik-events-hero-title { font-size: 28px; } }
.ik-events-hero-lead { margin: 0 0 8px; font-size: 16px; line-height: 1.8; color: var(--ik-ink); }
.ik-events-hero-note { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ik-sub); }

.ik-events-body { max-width: 800px; margin: 0 auto; padding: 24px 0 48px; }

/* 絞り込み（札の枠） */
.ik-events-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin: 0 0 32px;
  padding: 12px 16px;
  background: var(--ik-tint);
  border: 2px solid var(--ik-ink);
  border-radius: 0;
  box-shadow: none;
}
.ik-events-filter-label { font-size: 15px; font-weight: 700; color: var(--ik-ink); white-space: nowrap; }
.ik-select-wrap { position: relative; }
.ik-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--ik-ink);
  border-bottom: 2px solid var(--ik-ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.ik-region-select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  min-width: 10em;
  padding: 0 40px 0 12px;
  border: 2px solid var(--ik-ink);
  border-radius: 0;
  background: var(--ik-paper);
  color: var(--ik-ink);
  font-family: var(--ik-font);
  font-size: 16px;
  cursor: pointer;
}
.ik-region-select:focus { outline: 3px solid var(--ik-ink); outline-offset: 2px; }
.ik-events-count { margin-left: auto; font-size: 15px; font-weight: 700; color: var(--ik-ink); }

/* 月の見出し */
.ik-events-month { margin-bottom: 40px; }
.ik-events-month[hidden], .ik-events-pref-group[hidden] { display: none; }
.ik-events-month-title {
  margin: 0 0 16px;
  padding: 10px 0 0;
  border: 0;
  border-top: 4px solid var(--ik-ink);
  font-family: var(--ik-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--ik-ink);
}

/* 都道府県ごと */
.ik-events-pref-group { margin-bottom: 24px; }
.ik-events-pref-title {
  margin: 0;
  padding: 6px 12px;
  background: var(--ik-tint);
  border: 0;
  border-bottom: 2px solid var(--ik-ink);
  border-radius: 0;
  font-family: var(--ik-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--ik-ink);
}

/* イベント1件（行で並べる。浮くカードにしない） */
.ik-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin: 0;
  padding: 14px 12px;
  background: var(--ik-paper);
  border: 0;
  border-bottom: 1px solid var(--ik-line);
  border-radius: 0;
  box-shadow: none;
}
.ik-event-card:hover { box-shadow: none; }
.ik-event-card-date { display: block; }
.ik-event-date-txt { font-size: 15px; font-weight: 700; color: var(--ik-ink); }
.ik-event-region-tag { font-size: 13px; color: var(--ik-ink); border: 1px solid var(--ik-ink); border-radius: 0; padding: 0 6px; background: none; }
.ik-event-card-body { min-width: 0; }
.ik-event-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.55; color: var(--ik-ink); }
.ik-event-venue { display: flex; align-items: flex-start; gap: 4px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--ik-sub); }
.ik-event-venue svg { flex-shrink: 0; margin-top: 5px; }
.ik-event-note { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ik-sub); }
.ik-event-card-action { margin-top: 8px; }
.ik-event-official-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ik-paper);
  border: 2px solid var(--ik-ink);
  border-radius: 4px;
  color: var(--ik-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.ik-event-official-btn:hover { background: var(--ik-tint); color: var(--ik-ink); text-decoration: underline; }
@media (min-width: 768px) {
  .ik-event-card { grid-template-columns: 9em minmax(0, 1fr) auto; gap: 16px; align-items: start; }
  .ik-event-card-action { margin-top: 0; }
}
.ik-events-empty {
  margin: 0;
  padding: 16px;
  border: 2px solid var(--ik-ink);
  color: var(--ik-ink);
  font-size: 16px;
  text-align: left;
}


/* ============================================ */
/* Inukura Tool: Dog Food Calculator             */
/* ============================================ */

.inukura-tool-wrapper {
  max-width: 760px;
  margin: 24px auto 48px;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.7;
}

.inukura-tool-header { margin-bottom: 24px; }
.inukura-tool-header h1 {
  font-size: 1.7rem;
  margin: 0 0 12px;
  color: #2b2b2b;
  border-left: 5px solid #ff9a3c;
  padding-left: 14px;
  line-height: 1.4;
}
.inukura-tool-lead {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* フォーム */
.inukura-tool-form {
  background: #fff8ee;
  border: 1px solid #f0d8a8;
  border-radius: 12px;
  padding: 22px 20px;
  margin-bottom: 24px;
}
.inukura-tool-form-row {
  margin-bottom: 18px;
}
.inukura-tool-form-row:last-child { margin-bottom: 0; }
.inukura-tool-form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: #444;
  font-size: 0.95rem;
}
.inukura-tool-form-sublabel {
  font-weight: 400;
  font-size: 0.8rem;
  color: #888;
  margin-left: 6px;
}
.inukura-tool-form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #d8c099;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.inukura-tool-form-input:focus {
  outline: none;
  border-color: #ff9a3c;
  box-shadow: 0 0 0 3px rgba(255, 154, 60, 0.15);
}
.inukura-tool-form-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #b07a2a;
}
.inukura-tool-form-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.inukura-tool-form-radio label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #d8c099;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
}
.inukura-tool-form-radio label:has(input:checked) {
  background: #ffd9a8;
  border-color: #ff9a3c;
  font-weight: 700;
}

.inukura-tool-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.inukura-tool-btn-primary,
.inukura-tool-btn-reset {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.05s, box-shadow 0.15s;
}
.inukura-tool-btn-primary {
  background: linear-gradient(135deg, #ff9a3c, #ff7a1a);
  color: #fff;
  box-shadow: 0 3px 0 #d96717;
}
.inukura-tool-btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #d96717; }
.inukura-tool-btn-reset {
  background: #fff;
  color: #888;
  border: 1px solid #d8c099;
}

/* 結果 */
.inukura-tool-result {
  background: linear-gradient(180deg, #fff5e1, #ffeac4);
  border: 2px solid #ffb86b;
  border-radius: 14px;
  padding: 28px 22px;
  margin-bottom: 32px;
  text-align: center;
}
.inukura-tool-result-label {
  font-size: 0.95rem;
  color: #7a4a18;
  margin: 0 0 8px;
  font-weight: 700;
}
.inukura-tool-result-main {
  font-size: 3.6rem;
  font-weight: 800;
  color: #d96717;
  margin: 0 0 6px;
  line-height: 1.1;
}
.inukura-tool-result-unit {
  font-size: 1.2rem;
  font-weight: 600;
  margin-left: 4px;
  color: #b35a17;
}
.inukura-tool-result-kcal {
  font-size: 0.9rem;
  color: #7a4a18;
  margin: 0 0 18px;
}
.inukura-tool-result-split {
  display: flex;
  justify-content: center;
  gap: 24px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.inukura-tool-result-split > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.inukura-tool-result-split-label {
  font-size: 0.82rem;
  color: #7a4a18;
}
.inukura-tool-result-split-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #d96717;
}

.inukura-tool-warning {
  background: #fff0d6;
  border-left: 4px solid #d97f17;
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 0.88rem;
  color: #7a4318;
  border-radius: 4px;
  text-align: left;
}

.inukura-tool-disclaimer {
  background: rgba(255,255,255,0.7);
  border-left: 3px solid #d97f17;
  padding: 12px 14px;
  margin: 14px 0 18px;
  text-align: left;
  border-radius: 4px;
}
.inukura-tool-disclaimer p {
  margin: 4px 0;
  font-size: 0.82rem;
  color: #6a4a18;
}

.inukura-tool-detail {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
}
.inukura-tool-detail summary {
  cursor: pointer;
  font-weight: 700;
  color: #7a4a18;
  font-size: 0.92rem;
}
.inukura-tool-detail-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.inukura-tool-detail-table th,
.inukura-tool-detail-table td {
  padding: 6px 8px;
  border-bottom: 1px dashed #e8d3a8;
  text-align: left;
}
.inukura-tool-detail-table th {
  width: 60%;
  color: #6a4a18;
  font-weight: 600;
}

.inukura-tool-cta {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  text-align: left;
}
.inukura-tool-cta h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: #d96717;
}
.inukura-tool-cta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inukura-tool-cta li {
  padding: 8px 0;
  border-bottom: 1px solid #f4e5c5;
}
.inukura-tool-cta li:last-child { border-bottom: none; }
.inukura-tool-cta a {
  color: #d96717;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.inukura-tool-cta a:hover { text-decoration: underline; }

/* 補足セクション */
.inukura-tool-about {
  background: #fafafa;
  border-radius: 10px;
  padding: 24px 20px;
  margin-bottom: 24px;
}
.inukura-tool-about h2 {
  font-size: 1.25rem;
  margin: 24px 0 12px;
  color: #444;
  border-bottom: 2px solid #ff9a3c;
  padding-bottom: 6px;
}
.inukura-tool-about h2:first-child { margin-top: 0; }
.inukura-tool-about h3 {
  font-size: 1.05rem;
  margin: 18px 0 8px;
  color: #555;
}
.inukura-tool-formula {
  background: #fff;
  border: 1px dashed #d8c099;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: "SF Mono", Consolas, Monaco, monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #444;
  overflow-x: auto;
}
.inukura-tool-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.inukura-tool-table th,
.inukura-tool-table td {
  padding: 8px 12px;
  border: 1px solid #e0d4ba;
  text-align: left;
}
.inukura-tool-table th { background: #fff5e1; }

.inukura-tool-faq h3 {
  background: #fff5e1;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
  font-size: 0.95rem;
}
.inukura-tool-faq p {
  padding: 8px 14px;
  margin: 0 0 12px;
  font-size: 0.92rem;
}

/* 体重コントロール（ダイヤル式UI） */
.ifc-weight-control {
  background: #fff;
  border: 1px solid #d8c099;
  border-radius: 12px;
  padding: 18px 14px;
}
.ifc-weight-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ifc-weight-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff9a3c, #ff7a1a);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 0 #d96717;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.05s;
  /* 長押し中に画面スクロールさせない */
  touch-action: manipulation;
}
.ifc-weight-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d96717;
}
.ifc-weight-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 140px;
  justify-content: center;
}
.ifc-weight-value {
  width: 100px;
  font-size: 2.6rem;
  font-weight: 800;
  text-align: center;
  color: #d96717;
  border: none;
  background: transparent;
  padding: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ifc-weight-value::-webkit-outer-spin-button,
.ifc-weight-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ifc-weight-value:focus {
  outline: none;
  background: #fff8ee;
  border-radius: 6px;
}
.ifc-weight-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: #b35a17;
}

/* スライダー本体 */
.ifc-weight-slider {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #ffd9a8 0%, #ff9a3c 100%);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  margin: 8px 0;
  cursor: pointer;
  /* スライダー操作中に画面スクロールさせない */
  touch-action: none;
  -ms-touch-action: none;
}
.ifc-weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ff7a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  cursor: grab;
  transition: transform 0.1s;
}
.ifc-weight-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.12);
}
.ifc-weight-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #ff7a1a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  cursor: grab;
}

.ifc-weight-range-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #888;
  margin: 6px 2px 14px;
}
.ifc-weight-range-center {
  font-weight: 700;
  color: #d96717;
  font-size: 0.82rem;
  background: #fff5e1;
  padding: 3px 10px;
  border-radius: 999px;
}

.ifc-weight-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.ifc-weight-preset {
  padding: 6px 12px;
  border: 1px solid #d8c099;
  background: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #7a4a18;
  cursor: pointer;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s;
}
.ifc-weight-preset:hover {
  background: #fff5e1;
  border-color: #ff9a3c;
}
.ifc-weight-preset:active {
  background: #ffd9a8;
  transform: scale(0.95);
}

/* ============================================================
   ツールページ 広告表記・商品カード・記事ハンドオフ
   （餌量計算機で先行導入 / 他ツールへ横展開可）
   ============================================================ */

/* 冒頭ミニ広告表記 */
.inukura-tool-ad-mini {
  background: #fafaf7;
  padding: 8px 12px;
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #6a5a4a;
  border-radius: 4px;
  line-height: 1.7;
}

/* 減量レンジ下限の注記（結果エリア内・JS で出し分け） */
/* 親テーマ側の div ルールに [hidden] が負けると常時表示になるため明示的に打ち消す */
.inukura-tool-floor-note[hidden] { display: none !important; }
.inukura-tool-floor-note {
  background: #fdf6f0;
  border-left: 4px solid #e09f5f;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0 0 18px;
  text-align: left;
}
.inukura-tool-floor-note p {
  margin: 6px 0;
  font-size: 0.86rem;
  line-height: 1.8;
  color: #6a4a18;
}
.inukura-tool-floor-note__title {
  font-weight: 700;
  color: #7a4a2a;
  margin-top: 0 !important;
}
.inukura-tool-floor-note__link a {
  color: #c97b2e;
  font-weight: 700;
  text-decoration: none;
}
.inukura-tool-floor-note__link a:hover { text-decoration: underline; }

/* 記事 #257 へのハンドオフ */
.inukura-tool-handoff {
  background: #fff;
  border: 1px solid #e5d5c0;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 18px;
  text-align: left;
}
.inukura-tool-handoff p {
  margin: 6px 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #5a4a3a;
}
.inukura-tool-handoff__title {
  font-weight: 700;
  color: #7a4a18;
  margin-top: 0 !important;
}
.inukura-tool-handoff__link a {
  color: #c97b2e;
  font-weight: 700;
  text-decoration: none;
}
.inukura-tool-handoff__link a:hover { text-decoration: underline; }

/* 商品紹介エリア（計算後のみ表示） */
.inukura-tool-offer {
  text-align: left;
  margin: 0 0 18px;
}
.inukura-tool-offer__heading {
  font-size: 1rem;
  margin: 0 0 6px;
  color: #d96717;
}
.inukura-tool-offer__note {
  font-size: 0.78rem;
  color: #7a6a5a;
  margin: 0 0 12px;
  line-height: 1.7;
}
.inukura-tool-card {
  background: #fffaf3;
  border: 1px solid #e5d5c0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.inukura-tool-card:last-child { margin-bottom: 0; }
.inukura-tool-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #7a4a18;
  margin: 0 0 8px;
}
.inukura-tool-card__body {
  font-size: 0.86rem;
  line-height: 1.8;
  color: #5a4a3a;
  margin: 0 0 10px;
}
.inukura-tool-card__internal {
  margin: 0 0 10px;
  font-size: 0.88rem;
}
.inukura-tool-card__internal a {
  color: #c97b2e;
  font-weight: 700;
  text-decoration: none;
}
.inukura-tool-card__internal a:hover { text-decoration: underline; }
.inukura-tool-card__links {
  margin: 0 0 6px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.inukura-tool-card__links:last-child { margin-bottom: 0; }
.inukura-tool-card__item {
  width: 100%;
  color: #6a5a4a;
  font-size: 0.82rem;
}
.inukura-tool-card__links a {
  color: #c97b2e;
  text-decoration: none;
}
.inukura-tool-card__links a:hover { text-decoration: underline; }

/* 係数表の補足注記 */
.inukura-tool-note {
  font-size: 0.82rem;
  line-height: 1.8;
  color: #6a5a4a;
  background: #fafaf7;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 10px 0 0;
}

/* 末尾フル広告表記・免責 */
.inukura-tool-legal {
  background: #f7f7f5;
  border-left: 4px solid #c8b89e;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 4px;
}
.inukura-tool-legal h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: #5a4a3a;
  border: none;
  padding: 0;
}
.inukura-tool-legal p {
  margin: 8px 0;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #5a4a3a;
}

/* レスポンシブ */
@media screen and (max-width: 600px) {
  .inukura-tool-wrapper { padding: 0 12px; }
  .inukura-tool-card { padding: 12px 13px; }
  .inukura-tool-card__title { font-size: 0.92rem; }
  .inukura-tool-legal { padding: 14px 15px; }
  .inukura-tool-header h1 { font-size: 1.4rem; }
  .inukura-tool-form { padding: 18px 14px; }
  .inukura-tool-form-actions { flex-direction: column; }
  .inukura-tool-result { padding: 22px 16px; }
  .inukura-tool-result-main { font-size: 2.8rem; }
  .inukura-tool-result-unit { font-size: 1rem; }
  .inukura-tool-result-split { flex-direction: row; gap: 16px; }
  .inukura-tool-about { padding: 18px 14px; }
  .ifc-weight-btn { width: 46px; height: 46px; font-size: 1.4rem; }
  .ifc-weight-value { width: 90px; font-size: 2.2rem; }
  .ifc-weight-slider::-webkit-slider-thumb { width: 36px; height: 36px; }
}

/* ツールページ アイキャッチ */
.inukura-tool-eyecatch {
  margin: 1rem 0 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.inukura-tool-eyecatch__img {
  width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   アフィリエイト表示（inukura-affi-manager プラグインの枠）
   - 「PR」表記と、押せるボタンであることは残す（識別性）
   - 形だけ札に揃える（角丸・グラデーション・影・ピル型をやめる）
   ============================================================ */
.inukura-affi-card {
  background: var(--ik-paper);
  border: 2px solid var(--ik-ink);
  border-radius: 0;
  box-shadow: none;
}
.inukura-affi-card::before {
  top: 0;
  right: 0;
  padding: 2px 8px;
  border-radius: 0;
  background: var(--ik-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.inukura-affi-card__title { color: var(--ik-ink); }
.inukura-affi-card__desc { color: var(--ik-ink); }
.inukura-affi-card__btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--ik-key);
  border-radius: 4px;
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
  transition: none;
}
.inukura-affi-card__btn:hover { transform: none; box-shadow: none; text-decoration: underline !important; }
.inukura-affi-banner img { border-radius: 0; }

/* 子テーマ側のアフィリエイト出力（旧クラス） */
.ik-affi-wrap { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; justify-content: center; }
.ik-affi-banner { display: inline-block; line-height: 0; border-radius: 0; overflow: hidden; }
.ik-affi-banner:hover { opacity: 1; }
.ik-affi-banner img { max-width: 100%; height: auto; display: block; }
.ik-affi-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  background: var(--ik-key);
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
   記事内 お役立ちツール（functions.php の ik_inject_tool_widgets）
   ============================================================ */
/* 中盤インライン（現在は未使用。出力を戻したとき用） */
.ik-inline-tools { margin: 32px 0; padding: 14px 16px; border: 2px solid var(--ik-ink); background: var(--ik-paper); border-radius: 0; }
.ik-inline-tools-label { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--ik-ink); }
.ik-inline-tools-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ik-inline-tool-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--ik-ink);
  border-radius: 0;
  background: var(--ik-paper);
  color: var(--ik-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.ik-inline-tool-pill:hover { background: var(--ik-tint); color: var(--ik-ink); text-decoration: underline; }

/* 末尾の一覧（タイル本体の見た目は「お役立ちツール（イラスト付きのタイル）」と共通） */
.ik-article-tools { margin: 48px 0 0; padding: 0; }
.entry-content .ik-article-tools-title,
.ik-article-tools-title {
  margin: 0 0 16px;
  padding: 10px 0 0;
  border-top: 4px solid var(--ik-ink);
  font-family: var(--ik-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ik-ink);
}
.ik-article-tools-title { text-decoration: underline 6px var(--ik-sky); text-underline-offset: 4px; text-decoration-skip-ink: none; }
.entry-content .ik-tiles { padding: 0; margin: 0; }
.entry-content .ik-tile { margin: 0; }
.entry-content .ik-tile-img { margin: 0; }


/* ============================================
   犬種マッチング診断ツール (#ibq-app)
============================================ */
#ibq-app { margin-bottom: 32px; }

.ibq-progress-wrap {
  height: 6px;
  background: #f0d8a8;
  border-radius: 99px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ibq-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff9a3c, #ff7a1a);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.ibq-step-count {
  font-size: 0.82rem;
  color: #b07a2a;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

/* 質問パネル */
.ibq-question-panel {
  background: #fff8ee;
  border: 1px solid #f0d8a8;
  border-radius: 14px;
  padding: 24px 20px;
  margin-bottom: 20px;
}
.ibq-q-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}
.ibq-q-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
  line-height: 1.5;
}
.ibq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ibq-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid #d8c099;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.4;
}
.ibq-option input[type="radio"] { display: none; }
.ibq-option span::before {
  content: '○';
  color: #cbb88a;
  margin-right: 8px;
  font-size: 0.95em;
}
.ibq-opt-selected {
  background: #ffd9a8;
  border-color: #ff9a3c;
  font-weight: 700;
}
.ibq-opt-selected span::before { content: '●'; color: #ff9a3c; }
.ibq-option:hover:not(.ibq-opt-selected) { border-color: #ff9a3c; background: #fff5e8; }

/* ナビ */
.ibq-nav {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

/* 結果 */
.ibq-result-wrap { margin-bottom: 8px; }
.ibq-result-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ff7a1a;
  margin-bottom: 6px;
  border-left: 4px solid #ff9a3c;
  padding-left: 12px;
}
.ibq-result-lead {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 20px;
}
.ibq-result-card {
  background: #fff;
  border: 1px solid #e8d5b0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.ibq-result-card--primary {
  border: 2px solid #ff9a3c;
  background: #fff8ee;
  box-shadow: 0 3px 12px rgba(255, 154, 60, 0.15);
}
.ibq-result-medal {
  font-size: 0.82rem;
  color: #b07a2a;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ibq-result-breed-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2b2b2b;
  margin-bottom: 10px;
}
.ibq-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.ibq-tag {
  display: inline-block;
  background: #ffecd4;
  border: 1px solid #f0c888;
  color: #b05a10;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.ibq-result-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}
.ibq-result-link {
  display: inline-block;
  background: linear-gradient(135deg, #ff9a3c, #ff7a1a);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 0 #d96717;
  transition: transform 0.05s;
}
.ibq-result-link:hover { transform: translateY(-1px); color: #fff; text-decoration: none; }
.ibq-result-note {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

@media (max-width: 600px) {
  .ibq-question-panel { padding: 18px 14px; }
  .ibq-q-text { font-size: 0.98rem; }
  .ibq-option { font-size: 0.88rem; padding: 11px 12px; }
  .ibq-result-breed-name { font-size: 1.15rem; }
}


/* ============================================================
   Amazonアソシエイト表記
   ============================================================ */
/* 記事内（inukura_add_amazon_tag が本文末に足す1行） */
.entry-content .ik-amazon-associate-note { color: var(--ik-sub) !important; font-size: 14px !important; }

/* 全ページ共通フッターの表記（functions.php の wp_footer）。フッターの帯の続きに見せる */
.ik-amazon-footer-note {
  margin: 0;
  padding: 12px 16px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ik-sub);
  background: var(--ik-tint);
}
@media (max-width: 1023px) {
  .ik-amazon-footer-note { padding-bottom: 80px; }
  .ik-home-body .ik-amazon-footer-note { padding-bottom: 24px; }
}


/* ============================================================
   Amazon・楽天のボタン（2026-11）
   - 記事本文: functions.php の ik_shop_buttons が付ける .ik-shop-btns（並び）と .ik-shop-btn（ボタン）
   - アフィリエイトのプラグインの枠のボタン（.inukura-affi-card__btn）も同じ形に
   - Amazon = 橙の地＋濃いこげ茶の文字（#FF9900 × #2B211A = 7.35）
     楽天   = 赤の地＋白の文字（#BF0000 × #FFFFFF = 6.53）
     それ以外の行き先（プラグインの枠）= こげ茶の地＋白（7.85）
   - 下側に 5px の濃い色の縁で「押せる」ことを示す（ぼかしの影は使わない）。押すと縁が縮んで沈む
   - 高さ 52px 以上。スマホは横幅いっぱいで縦に並べる／600px〜 は横に均等に並べる
   - 公式ロゴ画像・点滅・動き続ける演出は使わない
   ============================================================ */
.entry-content .ik-shop-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 8px 0 4px;
}
@media (min-width: 600px) {
  .entry-content .ik-shop-btns { flex-direction: row; max-width: 640px; gap: 12px; }
  .entry-content .ik-shop-btns > .ik-shop-btn { flex: 1 1 0; }
}
.entry-content a.ik-shop-btn,
.inukura-affi-card a.inukura-affi-card__btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0 !important;
  padding: 10px 16px 8px !important;
  border: 0 !important;
  border-bottom: 5px solid var(--ik-btn-edge) !important;
  border-radius: 8px !important;
  background: var(--ik-btn-bg) !important;
  color: var(--ik-btn-fg) !important;
  box-shadow: none !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none !important;
  transform: none;
  transition: none !important;
  cursor: pointer;
  --ik-btn-bg: var(--ik-key);
  --ik-btn-bg-hover: #5A3E27;
  --ik-btn-fg: #FFFFFF;
  --ik-btn-edge: #3A2716;
}
.entry-content a.ik-shop-btn--amazon,
.inukura-affi-card a.inukura-affi-card__btn[href*="amazon.co.jp"],
.inukura-affi-card a.inukura-affi-card__btn[href*="amzn."] {
  --ik-btn-bg: #FF9900;
  --ik-btn-bg-hover: #F08C00;
  --ik-btn-fg: #2B211A;
  --ik-btn-edge: #A35F00;
}
.entry-content a.ik-shop-btn--rakuten,
.inukura-affi-card a.inukura-affi-card__btn[href*="rakuten"] {
  --ik-btn-bg: #BF0000;
  --ik-btn-bg-hover: #A30000;
  --ik-btn-fg: #FFFFFF;
  --ik-btn-edge: #6E0000;
}
.entry-content a.ik-shop-btn:hover,
.inukura-affi-card a.inukura-affi-card__btn:hover {
  background: var(--ik-btn-bg-hover) !important;
  color: var(--ik-btn-fg) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px;
  transform: none;
  box-shadow: none !important;
}
.entry-content a.ik-shop-btn:active,
.inukura-affi-card a.inukura-affi-card__btn:active {
  border-bottom-width: 2px !important;
  transform: translateY(3px);
}
.entry-content a.ik-shop-btn:focus-visible,
.inukura-affi-card a.inukura-affi-card__btn:focus-visible {
  outline: 3px solid var(--ik-ink);
  outline-offset: 3px;
}
/* 文章の途中に置かれていた色付きボタン（並びの <span> を足さないもの） */
.entry-content a.ik-shop-btn--inline {
  display: inline-flex !important;
  min-width: 200px;
  margin: 6px 8px 6px 0 !important;
  vertical-align: middle;
}
/* プラグインの枠: スマホは横幅いっぱい、広い画面は文字に合わせた幅 */
.inukura-affi-card a.inukura-affi-card__btn { width: 100%; }
@media (min-width: 600px) {
  .inukura-affi-card a.inukura-affi-card__btn { display: inline-flex !important; width: auto; min-width: 280px; padding-left: 28px !important; padding-right: 28px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-content a.ik-shop-btn:active,
  .inukura-affi-card a.inukura-affi-card__btn:active { transform: none; }
}
