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


/* =========================================================
   Crofilune CSS管理目次

   01. 共通設定・ヘッダーメニュー
   02. トップページ
   03. 作品ページ
   04. ブログ一覧ページ
   05. 手引きページ
   06. 記事共通デザイン・目次・表
   07. 内部リンク・外部リンクカード
   08. 商品紹介・ECサイトボタン
   09. 商品比較カード
   10. 記事装飾パーツ
   11. レスポンシブ調整

   ※各パーツのスマートフォン設定は、原則として
     それぞれのセクション内に記載しています。
   ========================================================= */


/* =========================================================
   01. 共通設定・ヘッダーメニュー
   ========================================================= */

/* ---------------------------------------------------------
   01-1. ヘッダーナビゲーション
   PC・モバイル共通
   --------------------------------------------------------- */

#navi .menu-item > a {
  box-sizing: border-box;
  position: relative;
  background: #f5efe3 !important;
  color: #17372c !important;
  border: 1px solid #bda36c;
  border-radius: 4px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
}

/* 文字ラベルにはボタン装飾を追加しない */
#navi .menu-item .item-label,
#navi .menu-item .caption-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding-top: 0;
  padding-bottom: 0;
}

/* 内側のステッチ */
#navi .menu-item > a::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(160, 130, 73, 0.55);
  border-radius: 2px;
  pointer-events: none;
}

/* ホバー */
#navi .menu-item > a:hover {
  background: #fffaf0 !important;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* モバイルメニューの余白 */
#navi .navi-in > .menu-mobile {
  padding-top: .2em;
  padding-bottom: .4em;
}

/* PC版のみ */
@media screen and (min-width: 1030px) {
  #navi .menu-item {
    padding-bottom: 15px;
  }

  #navi .menu-top > li {
    margin: 0 5px;
  }
}


/* =========================================================
   02. トップページ
   ========================================================= */

/* ---------------------------------------------------------
   02-1. トップページ全体・基本設定
   --------------------------------------------------------- */

#main.cf-home {
  --cf-base: #FFFDF9;
  --cf-pink: #E8B4B8;
  --cf-pink-l: #F3E3E1;
  --cf-mint: #B8D4D0;
  --cf-gold: #D9A441;
  --cf-text: #5A4E4A;
  --cf-text-d: #4A3F3B;
  --cf-line: #E6DAD4;

  width: 100%;
  max-width: 100%;
  float: none;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--cf-text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

.cf-home a {
  color: inherit;
  text-decoration: none;
}

.cf-home ul,
.cf-home ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cf-home li {
  margin: 0;
  padding: 0;
}

.cf-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.cf-home a:focus-visible {
  outline: 3px solid var(--cf-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* トップページはサイドバーなしの全幅 */
body.home #sidebar,
body.front-page #sidebar {
  display: none;
}

body.home .main,
body.front-page .main {
  width: 100%;
}

/* ---------------------------------------------------------
   02-2. セクション共通
   --------------------------------------------------------- */

.cf-home .cf-section {
  max-width: 1040px;
  margin: 0 auto 72px;
  padding: 0 16px;
}

/* セクション見出し */
.cf-home .cf-heading {
  margin: 0 0 8px;
  padding: 0 0 18px;
  position: relative;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--cf-text);
  background: none;
  border: 0;
}

.cf-home .cf-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88px;
  height: 0;
  transform: translateX(-50%);
  border-bottom: 3px dotted var(--cf-gold);
}

/* セクション説明文 */
.cf-home .cf-section-lead {
  margin: 0 0 28px;
  text-align: center;
  font-size: .9rem;
  color: #7a6c67;
}

.cf-home .cf-heading + .cf-post-grid,
.cf-home .cf-heading + .cf-rank-list {
  margin-top: 28px;
}

/* もっと見るリンク */
.cf-home .cf-more {
  margin: 28px 0 0;
  text-align: center;
}

.cf-home .cf-more--left {
  text-align: left;
  margin-top: 16px;
}

.cf-home .cf-more a {
  display: inline-block;
  padding: 8px 28px;
  font-size: .9rem;
  background: var(--cf-base);
  border: 2px dashed var(--cf-mint);
  border-radius: 999px;
}

.cf-home .cf-more a:hover {
  background: var(--cf-pink-l);
}

/* 管理者用メモ */
.cf-home .cf-admin-note {
  margin: 0;
  padding: 18px;
  text-align: center;
  font-size: .85rem;
  background: var(--cf-base);
  border: 2px dashed var(--cf-line);
  border-radius: 12px;
}

/* ---------------------------------------------------------
   02-3. 画像共通
   --------------------------------------------------------- */

.cf-home .cf-thumb,
.cf-home .cf-work-frame,
.cf-home .cf-rank-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--cf-pink-l);
  border-radius: 10px;
}

.cf-home .cf-thumb img,
.cf-home .cf-work-frame img,
.cf-home .cf-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cf-home .cf-thumb::after,
.cf-home .cf-work-frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(255, 253, 249, .95);
  border-radius: 6px;
  pointer-events: none;
}

.cf-home .cf-thumb {
  aspect-ratio: 16 / 10;
}

/* NO IMAGEの代わり：刺繍枠風 */
.cf-home .cf-noimg {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 50%, var(--cf-base) 0 22%, transparent 23%),
    var(--cf-pink-l);
  position: relative;
}

.cf-home .cf-noimg::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 2px dashed var(--cf-pink);
  border-radius: 50%;
}

/* ---------------------------------------------------------
   02-4. メインビジュアル
   --------------------------------------------------------- */

.cf-home .cf-hero {
  position: relative;
  max-width: 1040px;
  margin: 0 auto 72px;
  padding: 72px 24px;
  text-align: center;
  background: var(--cf-base);
  border-radius: 20px;
  overflow: hidden;
}

.cf-home .cf-hero.has-image {
  background:
    linear-gradient(rgba(255, 253, 249, .8), rgba(255, 253, 249, .8)),
    var(--cf-hero-image) center / cover no-repeat;
}

/* 刺繍枠のような縫い目 */
.cf-home .cf-hero::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed var(--cf-pink);
  border-radius: 14px;
  pointer-events: none;
}

.cf-home .cf-hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.cf-home .cf-hero-title {
  margin: 0;
  padding: 0;
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--cf-text);
  background: none;
  border: 0;
}

/* 金糸アニメーション */
.cf-home .cf-thread {
  display: block;
  width: min(320px, 70%);
  height: 24px;
  margin: 14px auto 18px;
  overflow: visible;
  animation: cf-sew 1.6s ease-out .2s both;
}

.cf-home .cf-thread path {
  fill: none;
  stroke: var(--cf-gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
}

@keyframes cf-sew {
  from { clip-path: inset(-6px 100% -6px 0); }
  to   { clip-path: inset(-6px 0 -6px 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cf-home .cf-thread {
    animation: none;
  }
}

.cf-home .cf-hero-lead {
  margin: 0 auto 28px;
  font-size: 1rem;
}

.cf-home .cf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* メインビジュアルのボタン */
.cf-home .cf-btn {
  display: inline-block;
  min-width: 150px;
  padding: 12px 28px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cf-text-d);
  background: var(--cf-pink);
  border: 2px solid var(--cf-pink);
  border-radius: 999px;
}

.cf-home .cf-btn:hover {
  background: #dfa3a8;
  border-color: #dfa3a8;
}

.cf-home .cf-btn--sub {
  background: var(--cf-base);
  border: 2px dashed var(--cf-mint);
}

.cf-home .cf-btn--sub:hover {
  background: var(--cf-pink-l);
  border-color: var(--cf-mint);
}

/* ---------------------------------------------------------
   02-5. カード共通
   はじめての方へ・新着ブログ
   --------------------------------------------------------- */

.cf-home .cf-card {
  display: block;
  position: relative;
  height: 100%;
  padding: 10px 10px 16px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 14px;
}

.cf-home .cf-card:hover {
  border-color: var(--cf-pink);
}

.cf-home .cf-card-title {
  display: block;
  margin-top: 12px;
  padding: 0 6px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.6;
}

.cf-home .cf-card:hover .cf-card-title {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--cf-gold);
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------
   02-6. はじめての方へ
   --------------------------------------------------------- */

.cf-home .cf-start-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* STEPラベル */
.cf-home .cf-step {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  padding: 2px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--cf-text-d);
  background: var(--cf-mint);
  border: 1.5px dashed var(--cf-base);
  transform: rotate(-4deg);
}

/* ---------------------------------------------------------
   02-7. 作品ピックアップ
   --------------------------------------------------------- */

.cf-home .cf-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 18px;
}

.cf-home .cf-work {
  display: block;
}

.cf-home .cf-work-frame {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}

.cf-home .cf-work-frame::after {
  inset: 8px;
  border-radius: 10px;
}

.cf-home .cf-work-title {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: .9rem;
  font-weight: 700;
}

.cf-home .cf-work:hover .cf-work-title {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--cf-gold);
  text-underline-offset: 4px;
}

/* ---------------------------------------------------------
   02-8. 新着ブログ・手引きカード
   --------------------------------------------------------- */

.cf-home .cf-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cf-home .cf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 6px;
  font-size: .78rem;
  color: #7a6c67;
}

.cf-home .cf-meta + .cf-card-title {
  margin-top: 4px;
}

.cf-home .cf-tag {
  padding: 0 10px;
  color: var(--cf-text-d);
  background: var(--cf-pink-l);
  border: 1px dashed var(--cf-pink);
  border-radius: 999px;
}

/* ---------------------------------------------------------
   02-9. 人気記事ランキング
   --------------------------------------------------------- */

.cf-home .cf-rank-list {
  max-width: 720px;
  margin: 28px auto 0;
  display: grid;
  gap: 12px;
}

.cf-home .cf-rank-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 12px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 14px;
}

.cf-home .cf-rank-item a:hover {
  border-color: var(--cf-pink);
}

.cf-home .cf-rank-no {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  line-height: 30px;
  text-align: center;
  font-weight: 700;
  color: var(--cf-text-d);
  background: var(--cf-base);
  border: 2px dashed var(--cf-line);
  border-radius: 50%;
}

.cf-home .cf-rank-no--1 {
  background: var(--cf-gold);
  border-color: var(--cf-base);
}

.cf-home .cf-rank-no--2 {
  background: var(--cf-pink);
  border-color: var(--cf-base);
}

.cf-home .cf-rank-no--3 {
  background: var(--cf-mint);
  border-color: var(--cf-base);
}

.cf-home .cf-rank-thumb {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 10px;
}

.cf-home .cf-rank-title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   02-10. プロフィール
   --------------------------------------------------------- */

.cf-home .cf-profile-box {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 28px;
  background: #fff;
  border: 2px dashed var(--cf-mint);
  border-radius: 20px;
}

.cf-home .cf-profile-avatar {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  padding: 5px;
  border: 2px dashed var(--cf-pink);
  border-radius: 50%;
}

.cf-home .cf-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.cf-home .cf-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cf-text-d);
  background: var(--cf-pink-l);
  border-radius: 50%;
}

.cf-home .cf-profile-name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.cf-home .cf-profile-text {
  margin: 0 0 12px;
  font-size: .9rem;
}

.cf-home .cf-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-home .cf-sns a {
  display: inline-block;
  padding: 2px 16px;
  font-size: .82rem;
  background: var(--cf-base);
  border: 1.5px dashed var(--cf-mint);
  border-radius: 999px;
}

.cf-home .cf-sns a:hover {
  background: var(--cf-pink-l);
}

/* ---------------------------------------------------------
   02-11. トップページのレスポンシブ
   --------------------------------------------------------- */

@media (max-width: 880px) {
  .cf-home .cf-start-list,
  .cf-home .cf-post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cf-home .cf-section {
    margin-bottom: 56px;
  }

  .cf-home .cf-hero {
    margin: 16px 12px 56px;
    padding: 52px 16px;
  }

  .cf-home .cf-heading {
    font-size: 1.3rem;
  }

  /* 1列・横並びカード */
  .cf-home .cf-start-list,
  .cf-home .cf-post-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cf-home .cf-card--start,
  .cf-home .cf-card--post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
  }

  .cf-home .cf-card--start .cf-thumb,
  .cf-home .cf-card--post .cf-thumb {
    flex: 0 0 40%;
  }

  .cf-home .cf-card--start .cf-card-title {
    margin-top: 0;
  }

  .cf-home .cf-card--post .cf-card-body {
    flex: 1;
    min-width: 0;
  }

  .cf-home .cf-card--post .cf-meta {
    margin-top: 0;
  }

  .cf-home .cf-step {
    top: 4px;
    left: 4px;
  }

  /* 作品は2列 */
  .cf-home .cf-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .cf-home .cf-rank-thumb {
    flex-basis: 60px;
    width: 60px;
    height: 60px;
  }

  .cf-home .cf-profile-box {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }

  .cf-home .cf-sns {
    justify-content: center;
  }

  .cf-home .cf-more--left {
    text-align: center;
  }
}


/* =========================================================
   03. 作品ページ
   ========================================================= */

/* ---------------------------------------------------------
   03-1. 作品一覧ページ
   archive-works.php / taxonomy-works.php
   --------------------------------------------------------- */

/* サイドバーなし・全幅 */
body.post-type-archive-works #sidebar,
body.tax-works #sidebar {
  display: none;
}

body.post-type-archive-works .main,
body.tax-works .main {
  width: 100%;
}

.cf-works-archive .cf-archive-head {
  margin-top: 40px;
  margin-bottom: 36px;
}

.cf-works-archive .cf-works {
  margin-bottom: 88px;
}

/* カテゴリー絞り込み */
.cf-home .cf-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cf-home .cf-chip {
  display: inline-block;
  padding: 4px 20px;
  font-size: .88rem;
  background: var(--cf-base);
  border: 2px dashed var(--cf-mint);
  border-radius: 999px;
}

.cf-home .cf-chip:hover {
  background: var(--cf-pink-l);
}

.cf-home .cf-chip.is-current {
  font-weight: 700;
  color: var(--cf-text-d);
  background: var(--cf-mint);
  border-style: solid;
}

/* ページ送り */
.cf-home .cf-pagination {
  margin-top: 44px;
}

.cf-home .cf-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cf-home .cf-pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 4px 14px;
  text-align: center;
  font-size: .9rem;
  background: var(--cf-base);
  border: 2px dashed var(--cf-line);
  border-radius: 999px;
}

.cf-home .cf-pagination a.page-numbers:hover {
  background: var(--cf-pink-l);
}

.cf-home .cf-pagination .page-numbers.current {
  font-weight: 700;
  background: var(--cf-pink);
  border: 2px solid var(--cf-pink);
  color: var(--cf-text-d);
}

.cf-home .cf-pagination .dots {
  border-color: transparent;
  background: none;
}

/* ---------------------------------------------------------
   03-2. 作品個別ページ
   single-works.php
   --------------------------------------------------------- */

/* サイドバーなし・全幅 */
body.single-works #sidebar {
  display: none;
}

body.single-works .main {
  width: 100%;
}

.cf-single-work .cf-single {
  max-width: 820px;
  margin-top: 32px;
}

/* パンくず */
.cf-home .cf-crumb {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .8rem;
  color: #7a6c67;
}

.cf-home .cf-crumb a:hover {
  text-decoration: underline;
  text-decoration-style: dashed;
}

/* 見出しまわり */
.cf-home .cf-single-head {
  margin-bottom: 8px;
}

.cf-home .cf-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-size: .8rem;
  color: #7a6c67;
}

.cf-home .cf-single-meta a.cf-tag:hover {
  background: var(--cf-pink);
}

/* メイン写真 */
.cf-home .cf-single-photo {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 36px;
  padding: 10px;
  background: #fff;
  border: 2px dashed var(--cf-mint);
  border-radius: 20px;
}

.cf-home .cf-single-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(75vh, 720px);
  margin: 0 auto;
  border-radius: 12px;
}

/* 作品本文 */
.cf-home .cf-prose {
  font-size: .95rem;
  line-height: 2;
}

.cf-home .cf-prose > * + * {
  margin-top: 1.2em;
}

.cf-home .cf-prose p {
  margin: 0;
}

.cf-home .cf-prose h2,
.cf-home .cf-prose h3 {
  margin: 2em 0 .8em;
  padding: 0 0 .4em;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cf-text);
  background: none;
  border: 0;
  border-bottom: 2px dashed var(--cf-pink);
}

.cf-home .cf-prose h3 {
  font-size: 1.05rem;
  border-bottom-color: var(--cf-mint);
}

.cf-home .cf-prose a {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
}

.cf-home .cf-prose img {
  border-radius: 12px;
}

.cf-home .cf-prose figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: .8rem;
  color: #7a6c67;
}

/* 作品情報の表 */
.cf-home .cf-prose .wp-block-table {
  overflow-x: auto;
  margin-left: 0;
  margin-right: 0;
}

.cf-home .cf-prose table {
  width: 100%;
  min-width: 320px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
  line-height: 1.7;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 12px;
  overflow: hidden;
}

.cf-home .cf-prose th,
.cf-home .cf-prose td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px dashed var(--cf-line);
}

.cf-home .cf-prose tr:last-child th,
.cf-home .cf-prose tr:last-child td {
  border-bottom: 0;
}

.cf-home .cf-prose th {
  width: 8em;
  font-weight: 700;
  white-space: nowrap;
  background: var(--cf-pink-l);
}

/* 前後の作品 */
.cf-home .cf-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
}

.cf-home .cf-pn {
  display: block;
  padding: 12px 18px;
  background: #fff;
  border: 2px dashed var(--cf-line);
  border-radius: 14px;
}

.cf-home .cf-pn:hover {
  border-color: var(--cf-pink);
}

.cf-home .cf-pn--next {
  text-align: right;
}

.cf-home .cf-pn-label {
  display: block;
  font-size: .75rem;
  color: #7a6c67;
}

.cf-home .cf-pn-title {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.6;
}

/* あわせて読みたい */
.cf-single-work .cf-related {
  margin-top: 72px;
}

/* 作品個別ページ：スマートフォン */
@media (max-width: 560px) {
  .cf-home .cf-single-photo {
    padding: 6px;
    border-radius: 16px;
  }

  .cf-home .cf-prevnext {
    grid-template-columns: 1fr;
  }

  .cf-home .cf-pn--next {
    text-align: left;
  }

  .cf-home .cf-prose th {
    width: 6em;
    white-space: normal;
  }
}


/* =========================================================
   04. ブログ一覧ページ
   ========================================================= */

/* ---------------------------------------------------------
   04-1. ブログ一覧カード
   --------------------------------------------------------- */

.crofilune-vlog-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 36px;
}

.crofilune-vlog-card {
  overflow: hidden;
  background: #fffdf8;
  border: 1px solid #e5d9c8;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(75, 57, 39, 0.05);
  transition: box-shadow 0.2s ease;
}

.crofilune-vlog-card:hover {
  box-shadow: 0 5px 14px rgba(75, 57, 39, 0.1);
}

.crofilune-vlog-card__link {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
  color: inherit;
  text-decoration: none;
}

.crofilune-vlog-card__image {
  width: 100%;
  height: 100%;
  min-height: 170px;
  overflow: hidden;
  background: #f0e9df;
}

.crofilune-vlog-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
}

.crofilune-vlog-card__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9b856b;
  font-family: "Klee One", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.crofilune-vlog-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 26px;
}

.crofilune-vlog-card__date {
  margin-bottom: 8px;
  color: #8b806f;
  font-size: 12px;
}

.crofilune-vlog-card__title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: #403629;
  font-family: "Klee One", sans-serif;
  font-size: 19px;
  line-height: 1.7;
}

.crofilune-vlog-card__excerpt {
  margin: 0 0 12px;
  color: #6c6256;
  font-size: 13px;
  line-height: 1.9;
}

.crofilune-vlog-card__more {
  margin-top: 4px;
  color: #687252;
  font-size: 13px;
}

/* ブログ一覧：ページネーション */
.crofilune-vlog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
}

.crofilune-vlog-pagination__link,
.crofilune-vlog-pagination__current {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #d9cbb7;
  border-radius: 3px;
  color: #554735;
  text-decoration: none;
  font-size: 14px;
}

.crofilune-vlog-pagination__current {
  background: #56634b;
  border-color: #56634b;
  color: #fffdf8;
}

.crofilune-vlog-pagination__link:hover {
  background: #f0e8dc;
}

/* ブログ一覧：タブレット */
@media (max-width: 768px) {
  .crofilune-vlog-card__link {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .crofilune-vlog-card__body {
    padding: 16px;
  }

  .crofilune-vlog-card__title {
    font-size: 17px;
  }
}

/* ブログ一覧：スマートフォン */
@media (max-width: 520px) {
  .crofilune-vlog-grid {
    gap: 14px;
  }

  .crofilune-vlog-card__link {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 130px;
  }

  .crofilune-vlog-card__image,
  .crofilune-vlog-card__image img {
    min-height: 130px;
  }

  .crofilune-vlog-card__body {
    padding: 12px;
  }

  .crofilune-vlog-card__title {
    font-size: 15px;
    line-height: 1.6;
  }

  .crofilune-vlog-card__excerpt {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* ブログ一覧ページでは目次を非表示 */
body.page .crofilune-vlog-grid .toc,
body.page .crofilune-vlog-grid .toc-content,
body.page .crofilune-vlog-grid .toc-list {
  display: none !important;
}


/* =========================================================
   05. 手引きページ
   ========================================================= */

/* ---------------------------------------------------------
   05-1. 手引き一覧・ジャンルメニュー
   --------------------------------------------------------- */

.cf-guide {
  --cf-guide-bg: #fbf8f1;
  --cf-guide-inner: #fffdf9;
  --cf-guide-gold: #b49a6a;
  --cf-guide-line: #ded1bb;
  --cf-guide-text: #554735;
  --cf-guide-muted: #887761;

  width: 100%;
  margin: 30px 0;
  color: var(--cf-guide-text);
  box-sizing: border-box;
}

.cf-guide *,
.cf-guide *::before,
.cf-guide *::after {
  box-sizing: border-box;
}

/* ジャンルメニュー */
.cf-guide-genres {
  margin-bottom: 36px;
  padding: 25px;
  background: var(--cf-guide-bg);
  border: 1px solid var(--cf-guide-line);
  border-radius: 5px;
}

.cf-guide-genre-heading,
.cf-guide-list-heading {
  margin-bottom: 20px;
  text-align: center;
}

.cf-guide-genre-heading > span,
.cf-guide-list-heading > span {
  display: block;
  margin-bottom: 7px;
  color: var(--cf-guide-gold);
  font-size: 10px;
  letter-spacing: 2px;
}

.cf-guide-genre-heading h2,
.cf-guide-list-heading h2 {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  color: var(--cf-guide-text);
  font-size: 21px;
  font-weight: 600;
}

.cf-guide-genre-heading p,
.cf-guide-list-heading p {
  margin: 0;
  color: var(--cf-guide-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ジャンルリンク */
.cf-guide-genre-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.cf-guide-genre-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--cf-guide-inner);
  border: 1px solid var(--cf-guide-line);
  border-radius: 3px;
  color: var(--cf-guide-text) !important;
  font-size: 13px;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}

.cf-guide-genre-link:hover,
.cf-guide-genre-link.is-active {
  background: #806c4e;
  border-color: #806c4e;
  color: #fff !important;
}

/* ---------------------------------------------------------
   05-2. 手引き記事一覧
   --------------------------------------------------------- */

.cf-guide-list-section {
  width: 100%;
}

.cf-guide-list-heading {
  margin-bottom: 22px;
}

.cf-guide-articles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

/* 個別記事カード */
.cf-guide-card {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 15px;
  background: var(--cf-guide-inner);
  border: 1px solid var(--cf-guide-line);
  border-radius: 4px;
  box-sizing: border-box;
}

/* アイキャッチ画像 */
.cf-guide-card-image {
  display: flex;
  flex: 0 0 180px;
  align-items: center;
  justify-content: center;
  width: 180px;
  min-height: 125px;
  overflow: hidden;
  background: #f1ebdf;
  border-radius: 3px;
  text-decoration: none !important;
}

.cf-guide-card-image img {
  display: block;
  width: 100%;
  height: 135px;
  margin: 0;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cf-guide-card-image:hover img {
  transform: scale(1.04);
}

.cf-guide-no-image {
  color: #a58b68;
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: 1px;
}

/* 記事情報 */
.cf-guide-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 3px 0;
}

/* カテゴリー・日付 */
.cf-guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: var(--cf-guide-muted);
  font-size: 11px;
}

.cf-guide-card-category {
  display: inline-block;
  padding: 3px 8px;
  background: #f0e8d9;
  border: 1px solid #e4d8c5;
  border-radius: 2px;
  color: #806c4e;
  font-size: 10px;
}

/* 記事タイトル */
.cf-guide-card-title {
  margin: 0 0 8px;
  padding: 0;
  border: none;
  color: var(--cf-guide-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.cf-guide-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.cf-guide-card-title a:hover {
  color: #96794e !important;
}

/* 記事抜粋 */
.cf-guide-card-excerpt {
  margin: 0 0 10px;
  color: var(--cf-guide-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* 記事を読む */
.cf-guide-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
  margin-top: auto;
  color: #806c4e !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
}

.cf-guide-card-more:hover {
  color: #a58b68 !important;
}

/* 記事がない場合 */
.cf-guide-empty {
  padding: 30px 15px;
  background: var(--cf-guide-bg);
  border: 1px solid var(--cf-guide-line);
  color: var(--cf-guide-muted);
  text-align: center;
  font-size: 13px;
}

/* ---------------------------------------------------------
   05-3. 手引きページネーション
   --------------------------------------------------------- */

.cf-guide-pagination {
  margin: 30px 0 10px;
  text-align: center;
}

.cf-guide-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cf-guide-pagination li {
  margin: 0;
  padding: 0;
}

.cf-guide-pagination a,
.cf-guide-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 7px 11px;
  background: var(--cf-guide-inner);
  border: 1px solid var(--cf-guide-line);
  border-radius: 3px;
  color: var(--cf-guide-text) !important;
  font-size: 12px;
  text-decoration: none !important;
}

.cf-guide-pagination .current {
  background: #806c4e;
  border-color: #806c4e;
  color: #fff !important;
}

.cf-guide-pagination a:hover {
  background: #f0e8d9;
}

/* 手引き：タブレット */
@media screen and (max-width: 768px) {
  .cf-guide-genres {
    padding: 20px;
  }

  .cf-guide-card {
    gap: 13px;
    padding: 12px;
  }

  .cf-guide-card-image {
    flex-basis: 145px;
    width: 145px;
  }

  .cf-guide-card-image img {
    height: 120px;
  }

  .cf-guide-card-title {
    font-size: 14px;
  }
}

/* 手引き：スマートフォン */
@media screen and (max-width: 600px) {
  .cf-guide-genres {
    margin-bottom: 28px;
    padding: 17px 12px;
  }

  .cf-guide-genre-heading h2,
  .cf-guide-list-heading h2 {
    font-size: 19px;
  }

  .cf-guide-genre-list {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cf-guide-genre-link {
    min-height: 43px;
    font-size: 12px;
  }

  .cf-guide-card {
    gap: 11px;
    padding: 10px;
  }

  .cf-guide-card-image {
    flex: 0 0 105px;
    width: 105px;
    min-height: 105px;
  }

  .cf-guide-card-image img {
    height: 105px;
  }

  .cf-guide-card-content {
    padding: 0;
  }

  .cf-guide-card-meta {
    gap: 5px;
    margin-bottom: 5px;
    font-size: 10px;
  }

  .cf-guide-card-category {
    padding: 2px 5px;
    font-size: 9px;
  }

  .cf-guide-card-title {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.6;
  }

  .cf-guide-card-excerpt {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.6;
  }

  .cf-guide-card-more {
    font-size: 10px;
  }

  .cf-guide-pagination {
    margin-top: 23px;
  }
}


/* =========================================================
   06. 記事共通デザイン・目次・表
   ========================================================= */

/* ---------------------------------------------------------
   06-1. 入門記事一覧
   tag-hajimete.php
   --------------------------------------------------------- */

body.tag-hajimete #sidebar {
  display: none;
}

body.tag-hajimete .main {
  width: 100%;
}

.cf-tag-archive .cf-archive-head {
  margin-top: 40px;
  margin-bottom: 36px;
}

.cf-tag-archive .cf-start {
  margin-bottom: 88px;
}

/* ---------------------------------------------------------
   06-2. Cocoon目次
   --------------------------------------------------------- */

#toc.toc {
  max-width: 100%;
  margin: 2em auto;
  padding: 16px 22px 10px;
  background: #FFFDF9;
  background-image: none;
  border: 2px dashed #B8D4D0;
  border-radius: 14px;
  box-shadow: none;
  color: #5A4E4A;
}

/* 目次タイトル */
#toc .toc-title {
  display: block;
  margin: 0 0 6px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #252221;
  background: none;
  border: 0;
  border-bottom: 2px dotted #D9A441;
  cursor: pointer;
}

#toc .toc-title::before {
  display: none;
}

#toc .toc-title::after {
  font-size: .75rem;
  font-weight: 400;
  color: #7a6c67;
}

/* 目次リスト */
#toc .toc-content {
  padding: 0;
  background: none;
  border: 0;
}

#toc .toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#toc .toc-list li {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted #E6DAD4;
}

#toc .toc-list li:last-child {
  border-bottom: 0;
}

#toc .toc-list li a {
  display: block;
  padding: 9px 6px;
  font-size: .95rem;
  color: #252221;
  text-decoration: none;
  border: 0;
  background: none;
}

#toc .toc-list li a:hover {
  background: #F3E3E1;
}

/* 目次番号 */
#toc .toc-list li::before,
#toc .toc-list li a::before {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 .5em 0 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #D9A441;
  font-weight: 700;
}

/* ---------------------------------------------------------
   06-3. 記事内の表
   --------------------------------------------------------- */

.entry-content table th:first-child,
.entry-content table td:first-child {
  white-space: nowrap;
  min-width: 5.5em;
  font-weight: 700;
}


/* =========================================================
   07. 内部リンク・外部リンクカード
   ========================================================= */

/* ---------------------------------------------------------
   07-1. リンクカード共通
   --------------------------------------------------------- */

.cf-linkbox {
  --cf-link-bg: #fbf8f1;
  --cf-link-line: #ded1bb;
  --cf-link-gold: #b49a6a;
  --cf-link-text: #554735;
  --cf-link-muted: #887761;

  margin: 24px 0;
  color: var(--cf-link-text);
  box-sizing: border-box;
}

.cf-linkbox *,
.cf-linkbox *::before,
.cf-linkbox *::after {
  box-sizing: border-box;
}

/* 誘導文 */
.cf-linkbox-intro {
  margin: 0 0 10px;
  color: var(--cf-link-text);
  font-size: 14px;
  line-height: 1.9;
}

/* カード本体 */
.cf-link-card {
  display: flex;
  align-items: center;
  gap: 17px;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 14px;
  background: var(--cf-link-bg);
  border: 1px solid var(--cf-link-line);
  border-radius: 4px;
  color: var(--cf-link-text) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(75, 59, 37, 0.05);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cf-link-card:hover {
  background: #f6f0e5;
  box-shadow: 0 4px 10px rgba(75, 59, 37, 0.10);
  color: var(--cf-link-text) !important;
  text-decoration: none !important;
}

/* 画像 */
.cf-link-image {
  flex: 0 0 145px;
  width: 145px;
  height: 100px;
  overflow: hidden;
  background: #f0e9dc;
  border: 1px solid var(--cf-link-line);
  border-radius: 3px;
}

.cf-link-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

/* テキスト */
.cf-link-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-right: 16px;
}

.cf-link-title {
  display: block;
  color: #715b3d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* 外部サイト注記 */
.cf-link-note {
  display: block;
  margin-top: 7px;
  color: var(--cf-link-muted);
  font-size: 11px;
}

/* 右端の矢印 */
.cf-link-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cf-link-gold);
  font-size: 17px;
}

/* 画像がない場合 */
.cf-link-card:not(:has(.cf-link-image)) {
  min-height: 76px;
}

/* リンクカード：タブレット */
@media screen and (max-width: 768px) {
  .cf-link-image {
    flex-basis: 125px;
    width: 125px;
    height: 90px;
  }

  .cf-link-card {
    gap: 13px;
    padding: 12px;
  }

  .cf-link-title {
    font-size: 14px;
  }
}

/* リンクカード：スマートフォン */
@media screen and (max-width: 480px) {
  .cf-linkbox-intro {
    font-size: 13px;
  }

  .cf-link-card {
    gap: 11px;
    padding: 10px;
  }

  .cf-link-image {
    flex-basis: 100px;
    width: 100px;
    height: 80px;
  }

  .cf-link-title {
    font-size: 13px;
    line-height: 1.6;
  }

  .cf-link-note {
    font-size: 10px;
  }

  .cf-link-arrow {
    right: 8px;
    font-size: 14px;
  }

  .cf-link-content {
    padding-right: 12px;
  }
}


/* =========================================================
   08. 商品紹介・ECサイトボタン
   ========================================================= */

/* ---------------------------------------------------------
   08-1. 商品紹介カード
   --------------------------------------------------------- */

.cf-product-box {
  margin: 32px 0;
  padding: 20px;
  border: 1px solid #c8b69d;
  border-radius: 5px;
  background: #fcfaf6;
}

/* 商品ラベル */
.cf-product-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: #a58b68;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* 商品カード */
.cf-product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5ddd1;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background 0.25s, box-shadow 0.25s;
}

.cf-product-card:hover {
  background: #f8f4ed;
  box-shadow: 0 3px 10px rgba(70,55,35,0.08);
}

/* 商品画像 */
.cf-product-image {
  flex: 0 0 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.cf-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 商品情報 */
.cf-product-content {
  flex: 1;
  min-width: 0;
}

.cf-product-title {
  margin: 0 0 8px;
  color: #51483e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.cf-product-description {
  margin: 0 0 12px;
  color: #746b60;
  font-size: 12px;
  line-height: 1.8;
}

/* 購入リンク */
.cf-product-button {
  display: inline-block;
  padding: 7px 14px;
  background: #a58b68;
  color: #fff;
  font-size: 12px;
  border-radius: 3px;
}

/* 注意書き */
.cf-product-note {
  margin: 10px 0 0;
  color: #898278;
  font-size: 11px;
}

/* 商品情報エリア */
.cf-product-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 購入先見出し */
.cf-shop-heading {
  margin: 20px 0 12px;
  color: #51483e;
  font-size: 13px;
  font-weight: 600;
}

/* 購入ボタン一覧 */
.cf-shop-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* 各ショップ共通 */
.cf-shop-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 62px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.cf-product-box .cf-shop-buttons {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
}

/* 各ボタン */
.cf-product-box .cf-shop-buttons > a.cf-shop-button {
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 10px 6px !important;
  box-sizing: border-box !important;

  text-align: center !important;
}

/* ショップ名 */
.cf-product-box .cf-shop-name {
  display: block !important;
  margin: 0 !important;
}


/* Amazon */
.cf-shop-button.cf-shop-amazon {
  background: #F5A623 !important;
  border-color: #E39715 !important;
}

/* 楽天市場 */
.cf-shop-button.cf-shop-rakuten {
  background: #BF0000 !important;
  border-color: #A90000 !important;
}

/* Yahoo!ショッピング */
.cf-shop-button.cf-shop-yahoo {
  background: #5A9B36 !important;
  border-color: #4B852D !important;
}

/* ホバー */
.cf-shop-button:hover {
  opacity: 0.88;
  box-shadow: 0 3px 8px rgba(70,55,35,0.15);
}

/* 商品紹介・ECボタン：スマートフォン */
@media screen and (max-width: 600px) {
  .cf-shop-buttons {
    grid-template-columns: 1fr;
  }

  .cf-shop-button {
    flex-direction: row;
    justify-content: space-between;
    min-height: 44px;
    padding: 10px 14px;
  }

  .cf-product-box {
    padding: 14px;
  }

  .cf-product-card {
    gap: 12px;
    padding: 9px;
  }

  .cf-product-image {
    flex-basis: 100px;
  }

  .cf-product-title {
    font-size: 13px;
  }

  .cf-product-description {
    font-size: 11px;
  }
}


/* =========================================================
   09. 商品比較カード
   ========================================================= */

/* ---------------------------------------------------------
   09-1. 商品比較カード全体
   --------------------------------------------------------- */

.cf-compare {
  --cf-bg: #fbf8f1;
  --cf-inner: #fffdf9;
  --cf-gold: #b49a6a;
  --cf-line: #ded1bb;
  --cf-text: #554735;
  --cf-muted: #887761;

  display: block;
  width: 100%;
  max-width: 100%;
  margin: 30px 0;
  padding: 24px;
  background: var(--cf-bg);
  border: 1px solid var(--cf-line);
  border-radius: 5px;
  color: var(--cf-text);
  box-sizing: border-box;
}

.cf-compare *,
.cf-compare *::before,
.cf-compare *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   09-2. 商品比較カード見出し
   --------------------------------------------------------- */

.cf-compare-heading {
  display: block;
  width: 100%;
  margin: 0 0 22px;
  text-align: center;
}

.cf-compare-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--cf-gold);
  font-size: 10px;
  letter-spacing: 2px;
}

.cf-compare-heading h3 {
  margin: 0 0 9px;
  padding: 0;
  border: none;
  color: var(--cf-text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1px;
}
.cf-compare-heading h3::before {
  display: none !important;
  content: none !important;
}
.cf-compare-heading p {
  margin: 0;
  color: var(--cf-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   09-3. 商品カードのグリッド
   通常2列・3商品用3列
   --------------------------------------------------------- */

.cf-compare > .cf-compare-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  grid-auto-rows: auto;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.cf-compare > .cf-compare-grid.cf-compare-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* 商品カード */
.cf-compare-grid > .cf-compare-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  justify-self: stretch;
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 17px;
  float: none !important;
  background: var(--cf-inner);
  border: 1px solid var(--cf-line);
  border-radius: 4px;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   09-4. 商品画像
   --------------------------------------------------------- */

.cf-compare-image {
  width: 100%;
  margin: 0 0 14px;
  text-align: center;
}

.cf-compare-image img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 170px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 3px;
}

/* ---------------------------------------------------------
   09-5. 商品名・価格
   --------------------------------------------------------- */

.cf-compare-name {
  margin: 0 0 10px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--cf-gold);
  color: #715b3d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.cf-compare-price {
  margin: 0 0 14px;
  color: #80643d;
  font-size: 20px;
  font-weight: 600;
}

.cf-compare-price small {
  font-size: 11px;
  font-weight: normal;
}

/* ---------------------------------------------------------
   09-6. 商品情報
   --------------------------------------------------------- */

.cf-compare-info {
  width: 100%;
  margin: 0;
}

.cf-compare-info dt {
  margin: 13px 0 4px;
  color: var(--cf-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cf-compare-info dd {
  margin: 0;
  color: var(--cf-text);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.cf-compare-info a {
  color: #876b43;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   09-7. 購入ボタン
   --------------------------------------------------------- */

.cf-compare-shops {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--cf-line);
}

.cf-compare-shop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.cf-compare-shop:hover {
  opacity: 0.82;
  color: #fff !important;
}

/* Amazon */
.cf-compare-shop.cf-shop-amazon {
  background: #F5A623 !important;
  border-color: #E39715 !important;
}

/* 楽天市場 */
.cf-compare-shop.cf-shop-rakuten {
  background: #BF0000 !important;
  border-color: #A90000 !important;
}

/* Yahoo!ショッピング */
.cf-compare-shop.cf-shop-yahoo {
  background: #5A9B36 !important;
  border-color: #4B852D !important;
}

/* 公式サイト */
.cf-compare-shop.cf-shop-official {
  background: #806C4E !important;
  border-color: #6F5D43 !important;
}

/* 注意書き */
.cf-compare-note {
  margin: 14px 0 0;
  color: var(--cf-muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   09-8. Cocoon干渉対策
   商品比較グリッドの配置崩れ防止
   --------------------------------------------------------- */

.cf-compare .cf-compare-grid::before,
.cf-compare .cf-compare-grid::after {
  content: none !important;
  display: none !important;
}

.cf-compare .cf-compare-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-auto-flow: row !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cf-compare .cf-compare-grid > .cf-compare-card {
  grid-column: auto !important;
  grid-row: auto !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

/* 商品比較カード：タブレット */
@media screen and (max-width: 768px) {
  .cf-compare {
    padding: 18px;
  }

  .cf-compare > .cf-compare-grid.cf-compare-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cf-compare-grid > .cf-compare-card {
    padding: 14px;
  }
}

/* 商品比較カード：スマートフォン */
@media screen and (max-width: 600px) {
  .cf-compare {
    padding: 16px 12px;
  }

  .cf-compare-heading h3 {
    font-size: 19px;
  }

  .cf-compare > .cf-compare-grid,
  .cf-compare > .cf-compare-grid.cf-compare-3,
  .cf-compare .cf-compare-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .cf-compare-grid > .cf-compare-card {
    width: 100% !important;
    padding: 15px;
  }

  .cf-compare-image img {
    height: 190px;
  }

  .cf-compare-shops {
    gap: 7px;
  }

  .cf-compare-shop {
    min-height: 42px;
    font-size: 13px;
  }
}


/* =========================================================
   10. 記事装飾パーツ
   ========================================================= */

/* ---------------------------------------------------------
   10-1. POINT
   --------------------------------------------------------- */

.cf-point {
  margin: 28px 0;
  padding: 18px 20px;
  background: #f7f2e9;
  border: 1px solid #c8b69d;
  border-radius: 5px;
}

.cf-point-title {
  margin-bottom: 10px;
  color: #806746;
  font-size: 14px;
  font-weight: 600;
}

/* POINT：電球アイコン */
.cf-point-title::before {
  content: "✦";
  display: inline-block;
  margin-right: 8px;
  color: #a58b68;
  font-size: 17px;
  vertical-align: -1px;
}

.cf-point-title span {
  display: block;
  margin-bottom: 5px;
  color: #a58b68;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.cf-point p {
  margin: 0;
  color: #51483e;
  font-size: 14px;
  line-height: 1.9;
}

/* ---------------------------------------------------------
   10-2. 注意事項
   --------------------------------------------------------- */

.cf-caution {
  margin: 28px 0;
  padding: 18px 20px;
  background: #f8f5f1;
  border: 1px solid #bba99a;
  border-left: 4px solid #a58b68;
  border-radius: 4px;
}

.cf-caution-title {
  margin-bottom: 10px;
  color: #806746;
  font-size: 14px;
  font-weight: 600;
}

/* 注意事項：警告アイコン */
.cf-caution-title::before {
  content: "⚠";
  display: inline-block;
  margin-right: 8px;
  color: #a58b68;
  font-size: 15px;
  vertical-align: 0;
}

.cf-caution-title span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.cf-caution p {
  margin: 0;
  color: #51483e;
  font-size: 14px;
  line-height: 1.9;
}

/* ---------------------------------------------------------
   10-3. 手順
   --------------------------------------------------------- */

.cf-steps {
  margin: 28px 0;
}

.cf-step {
  display: flex;
  gap: 16px;
  padding: 16px 10px;
  border-bottom: 1px solid #e5ddd1;
}

.cf-step:first-child {
  border-top: 1px solid #e5ddd1;
}

.cf-step-number {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #a58b68;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
}

.cf-step-title {
  margin: 0 0 6px;
  color: #51483e;
  font-weight: 600;
  font-size: 14px;
}

.cf-step p:not(.cf-step-title) {
  margin: 0;
  color: #746b60;
  font-size: 13px;
  line-height: 1.8;
}

/* ---------------------------------------------------------
   10-4. 用語解説
   --------------------------------------------------------- */

.cf-term {
  margin: 28px 0;
  padding: 16px 20px;
  background: #fcfaf6;
  border: 1px solid #ddd5c9;
  border-radius: 5px;
}

.cf-term-label {
  margin: 0 0 8px;
  color: #a58b68;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.cf-term-name {
  margin: 0 0 8px;
  color: #51483e;
  font-size: 16px;
  font-weight: 600;
}

.cf-term-description {
  margin: 0;
  color: #746b60;
  font-size: 13px;
  line-height: 1.9;
}

/* ---------------------------------------------------------
   10-5. FAQ
   --------------------------------------------------------- */

.cf-faq {
  margin: 28px 0;
}

.cf-faq details {
  margin-bottom: 10px;
  border: 1px solid #ddd5c9;
  border-radius: 4px;
  background: #fcfaf6;
}

.cf-faq summary {
  position: relative;
  padding: 16px 38px 16px 16px;
  color: #51483e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.cf-faq summary::-webkit-details-marker {
  display: none;
}

.cf-faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  color: #a58b68;
  font-size: 20px;
}

.cf-faq details[open] summary::after {
  content: "−";
}

.cf-faq-answer {
  padding: 14px 16px;
  border-top: 1px solid #e5ddd1;
  color: #746b60;
  font-size: 13px;
  line-height: 1.9;
}

/* ---------------------------------------------------------
   10-6. まとめ
   --------------------------------------------------------- */

.cf-summary {
  margin: 32px 0;
  padding: 20px;
  background: #f7f2e9;
  border: 1px solid #c8b69d;
  border-radius: 5px;
}

.cf-summary-title {
  margin: 0 0 12px;
  color: #806746;
  font-weight: 600;
  font-size: 15px;
}

.cf-summary ul {
  margin: 0;
  padding-left: 20px;
}

.cf-summary li {
  margin: 7px 0;
  color: #51483e;
  font-size: 13px;
  line-height: 1.8;
}

/* 記事装飾パーツ：スマートフォン */
@media screen and (max-width: 600px) {
  .cf-point,
  .cf-caution,
  .cf-term,
  .cf-summary {
    padding: 15px;
  }

  .cf-step {
    gap: 12px;
  }

  .cf-step-number {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }
}


/* =========================================================
   11. Cocoon・記事内の空段落調整
   ========================================================= */

/* 空の段落の余白を削除 */
.article .entry-content p:empty {
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

/* =========================================================
   CSS管理メモ

   ■ 新しいCSSを追加するとき
   1. 既存の該当セクションを探す
   2. 同じクラスのCSSがないか確認する
   3. 既存コードを修正できる場合は、むやみに追記しない
   4. 新しい機能なら、新しい番号付きセクションを作る


   ※コメントアウトの入れ子には注意する。

   ■ 注意
   .cf-step はトップページのSTEPラベルと、
   記事内の手順表示の両方で使用している。
   今後、専用クラスへの分離を検討する。
   ========================================================= */

