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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
/* =====================================================================
   1. Design Tokens (CSS Variables)
   ===================================================================== */
:root {
  /* ----- Color: Brand ----- */
  --bt-navy-900: #0B1F3F;       /* メインブランドカラー(深いネイビー) */
  --bt-navy-800: #14274A;
  --bt-navy-700: #1D2F58;
  --bt-navy-600: #2C3E5C;       /* セカンダリ */
  --bt-navy-500: #485B7A;       /* ナビゲーション・ボーダー */
  --bt-navy-400: #6B7B96;       /* マイナーテキスト */
  --bt-navy-300: #9AA5BA;       /* 補助 */

  /* ----- Color: Accent (Gold) ----- */
  --bt-gold-700: #A88845;
  --bt-gold-600: #C9A961;       /* メインアクセント(マットゴールド) */
  --bt-gold-500: #D4B97A;
  --bt-gold-400: #E0C99A;
  --bt-gold-100: #F5EFE0;

  /* ----- Color: Neutral ----- */
  --bt-white: #FFFFFF;
  --bt-bg-soft: #FAFBFC;        /* 微妙なオフホワイト */
  --bt-bg-section: #F4F6F9;     /* セクション背景 */
  --bt-border: #E5EAF0;         /* 標準ボーダー */
  --bt-border-strong: #CDD4DF;  /* 強調ボーダー */

  /* ----- Color: Text ----- */
  --bt-text-primary: #1A1F36;   /* 本文(濃灰) */
  --bt-text-secondary: #4A5568; /* サブテキスト */
  --bt-text-muted: #6B7280;     /* 補足 */
  --bt-text-disabled: #A0AEC0;  /* 無効 */

  /* ----- Color: Semantic ----- */
  --bt-success: #10B981;
  --bt-warning: #F59E0B;
  --bt-danger:  #EF4444;
  --bt-info:    #3B82F6;

  /* ----- Typography ----- */
  --bt-font-sans: "Noto Sans JP", -apple-system, "BlinkMacSystemFont",
                  "Helvetica Neue", "Arial", "Hiragino Sans",
                  "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --bt-font-serif: "Noto Serif JP", "Hiragino Mincho ProN",
                   "Yu Mincho", "MS PMincho", serif;
  --bt-font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas",
                  "Menlo", monospace;

  /* ----- Font Size Scale ----- */
  --bt-fs-xs:    0.75rem;       /* 12px */
  --bt-fs-sm:    0.875rem;      /* 14px */
  --bt-fs-base:  1rem;          /* 16px */
  --bt-fs-md:    1.125rem;      /* 18px */
  --bt-fs-lg:    1.25rem;       /* 20px */
  --bt-fs-xl:    1.5rem;        /* 24px */
  --bt-fs-2xl:   1.875rem;      /* 30px */
  --bt-fs-3xl:   2.25rem;       /* 36px */
  --bt-fs-4xl:   3rem;          /* 48px */

  /* ----- Spacing Scale ----- */
  --bt-space-1:  0.25rem;
  --bt-space-2:  0.5rem;
  --bt-space-3:  0.75rem;
  --bt-space-4:  1rem;
  --bt-space-5:  1.25rem;
  --bt-space-6:  1.5rem;
  --bt-space-8:  2rem;
  --bt-space-10: 2.5rem;
  --bt-space-12: 3rem;
  --bt-space-16: 4rem;
  --bt-space-20: 5rem;
  --bt-space-24: 6rem;

  /* ----- Border Radius ----- */
  --bt-radius-sm:  4px;
  --bt-radius-md:  8px;
  --bt-radius-lg:  12px;
  --bt-radius-xl:  16px;

  /* ----- Shadows (refined, business-grade) ----- */
  --bt-shadow-sm: 0 1px 2px rgba(11, 31, 63, 0.04),
                  0 1px 3px rgba(11, 31, 63, 0.06);
  --bt-shadow-md: 0 4px 8px rgba(11, 31, 63, 0.06),
                  0 2px 4px rgba(11, 31, 63, 0.04);
  --bt-shadow-lg: 0 12px 24px rgba(11, 31, 63, 0.08),
                  0 4px 8px rgba(11, 31, 63, 0.04);
  --bt-shadow-xl: 0 20px 40px rgba(11, 31, 63, 0.10),
                  0 8px 16px rgba(11, 31, 63, 0.05);
  --bt-shadow-gold: 0 4px 16px rgba(201, 169, 97, 0.20);

  /* ----- Transitions ----- */
  --bt-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --bt-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --bt-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================================
   2. Global / Body Reset
   ===================================================================== */
body,
body.home,
body.single,
body.page {
  font-family: var(--bt-font-sans);
  font-size: var(--bt-fs-base);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.025em;
  color: var(--bt-text-primary);
  background-color: var(--bt-bg-soft);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* テキスト選択時のハイライト */
::selection {
  background-color: var(--bt-gold-600);
  color: var(--bt-white);
}

/* リンク */
a {
  color: var(--bt-navy-700);
  text-decoration: none;
  transition: color var(--bt-transition-fast);
}
a:hover {
  color: var(--bt-gold-600);
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--bt-gold-600);
  outline-offset: 2px;
  border-radius: var(--bt-radius-sm);
}

/* =====================================================================
   3. Site Header
   ===================================================================== */
#header,
.header {
  background-color: var(--bt-white);
  border-bottom: 1px solid var(--bt-border);
  box-shadow: var(--bt-shadow-sm);
  padding: var(--bt-space-4) 0;
}

#header-in.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--bt-space-6);
}

/* サイトロゴ・タイトル */
.site-name-text-link,
.header-container .site-name a {
  font-family: var(--bt-font-sans);
  font-weight: 800;
  font-size: var(--bt-fs-2xl);
  letter-spacing: -0.02em;
  color: var(--bt-navy-900) !important;
  text-decoration: none;
  position: relative;
}

.site-name-text-link::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--bt-gold-600);
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: top;
  margin-top: 8px;
}

.tagline {
  color: var(--bt-text-muted);
  font-size: var(--bt-fs-xs);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* =====================================================================
   4. Global Navigation
   ===================================================================== */
#navi,
.navi-in {
  background-color: var(--bt-navy-900);
  border-top: 3px solid var(--bt-gold-600);
}

#navi .navi-in > .menu-header > .menu-item > a,
.menu-header li a {
  color: var(--bt-white) !important;
  font-weight: 500;
  font-size: var(--bt-fs-sm);
  letter-spacing: 0.05em;
  padding: 1.25rem 1.5rem;
  transition: all var(--bt-transition-fast);
  position: relative;
}

#navi .navi-in > .menu-header > .menu-item > a:hover,
.menu-header li a:hover {
  background-color: var(--bt-navy-700);
  color: var(--bt-gold-400) !important;
}

/* メニューホバー時のアンダーライン */
#navi .navi-in > .menu-header > .menu-item > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--bt-gold-600);
  transition: all var(--bt-transition-base);
  transform: translateX(-50%);
}
#navi .navi-in > .menu-header > .menu-item > a:hover::after {
  width: 60%;
}

/* サブメニュー */
.menu-header .sub-menu {
  background-color: var(--bt-navy-800);
  border-top: 2px solid var(--bt-gold-600);
  box-shadow: var(--bt-shadow-lg);
}

/* =====================================================================
   5. Article List (Top Page / Category)
   ===================================================================== */
.entry-card,
.related-entry-card {
  background-color: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-md);
  overflow: hidden;
  transition: all var(--bt-transition-base);
  margin-bottom: var(--bt-space-6);
  box-shadow: var(--bt-shadow-sm);
}

.entry-card:hover,
.related-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bt-shadow-lg);
  border-color: var(--bt-gold-400);
}

.entry-card-thumb img,
.entry-card-thumb-content img,
.related-entry-card-thumb img {
  transition: transform var(--bt-transition-slow);
}
.entry-card:hover .entry-card-thumb img {
  transform: scale(1.05);
}

.entry-card-content {
  padding: var(--bt-space-6) var(--bt-space-5) var(--bt-space-5);
}

.entry-card-title,
.related-entry-card-title {
  color: var(--bt-navy-900) !important;
  font-weight: 700;
  font-size: var(--bt-fs-md);
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: var(--bt-space-3);
}

.entry-card-snippet {
  color: var(--bt-text-secondary);
  font-size: var(--bt-fs-sm);
  line-height: 1.7;
}

.entry-card-meta,
.related-entry-card-info {
  color: var(--bt-text-muted);
  font-size: var(--bt-fs-xs);
}

/* カテゴリーバッジ */
.cat-label,
.entry-card .cat-label,
.entry-card .post-categories a {
  background-color: var(--bt-navy-700);
  color: var(--bt-white);
  font-size: var(--bt-fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* =====================================================================
   6. Single Article Page
   ===================================================================== */
.article {
  background-color: var(--bt-white);
  padding: var(--bt-space-10) var(--bt-space-12);
  border-radius: var(--bt-radius-lg);
  box-shadow: var(--bt-shadow-md);
  margin-bottom: var(--bt-space-10);
}

@media (max-width: 768px) {
  .article {
    padding: var(--bt-space-6) var(--bt-space-4);
  }
}

/* アイキャッチ */
.eye-catch {
  margin: 0 calc(var(--bt-space-12) * -1) var(--bt-space-8);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .eye-catch {
    margin: 0 calc(var(--bt-space-4) * -1) var(--bt-space-6);
  }
}

/* 記事タイトル(H1) */
.entry-title,
.article h1 {
  font-family: var(--bt-font-sans);
  font-weight: 800;
  font-size: var(--bt-fs-3xl);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--bt-navy-900);
  margin: 0 0 var(--bt-space-6);
  padding-bottom: var(--bt-space-5);
  border-bottom: 4px solid var(--bt-navy-900);
  position: relative;
}

.entry-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 80px;
  height: 4px;
  background-color: var(--bt-gold-600);
}

@media (max-width: 768px) {
  .entry-title,
  .article h1 {
    font-size: var(--bt-fs-2xl);
  }
}

/* 投稿日・更新日 */
.date-tags {
  margin-bottom: var(--bt-space-8);
  font-size: var(--bt-fs-xs);
  color: var(--bt-text-muted);
  letter-spacing: 0.05em;
}

.date-tags .post-date,
.date-tags .post-update {
  display: inline-flex;
  align-items: center;
  margin-right: var(--bt-space-4);
}

/* =====================================================================
   7. Article Body Typography
   ===================================================================== */

/* H2 - セクション見出し(★最重要) */
.entry-content h2,
.article-body h2 {
  font-weight: 700;
  font-size: var(--bt-fs-xl);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--bt-navy-900);
  margin: var(--bt-space-12) 0 var(--bt-space-6);
  padding: var(--bt-space-4) 0 var(--bt-space-4) var(--bt-space-6);
  border-left: 6px solid var(--bt-gold-600);
  background: linear-gradient(
    90deg,
    var(--bt-bg-section) 0%,
    transparent 80%
  );
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
  position: relative;
}

.entry-content h2::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--bt-gold-700), var(--bt-gold-400));
}

/* H3 - サブセクション */
.entry-content h3,
.article-body h3 {
  font-weight: 700;
  font-size: var(--bt-fs-lg);
  line-height: 1.5;
  color: var(--bt-navy-800);
  margin: var(--bt-space-10) 0 var(--bt-space-4);
  padding-bottom: var(--bt-space-2);
  border-bottom: 2px solid var(--bt-navy-300);
  position: relative;
}

.entry-content h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--bt-gold-600);
}

/* H4 - 詳細見出し */
.entry-content h4,
.article-body h4 {
  font-weight: 600;
  font-size: var(--bt-fs-md);
  color: var(--bt-navy-700);
  margin: var(--bt-space-8) 0 var(--bt-space-3);
  padding-left: var(--bt-space-4);
  border-left: 4px solid var(--bt-navy-500);
}

/* 本文段落 */
.entry-content p,
.article-body p {
  margin: 0 0 var(--bt-space-5);
  line-height: 1.95;
  color: var(--bt-text-primary);
  font-size: var(--bt-fs-base);
  letter-spacing: 0.025em;
}

/* リード文 (最初の段落) */
.entry-content > p:first-of-type {
  font-size: var(--bt-fs-md);
  font-weight: 400;
  color: var(--bt-navy-800);
  border-left: 3px solid var(--bt-gold-600);
  background-color: var(--bt-bg-section);
  padding: var(--bt-space-5) var(--bt-space-6);
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
  margin-bottom: var(--bt-space-8);
}

/* 強調 */
.entry-content strong,
.article-body strong {
  font-weight: 700;
  color: var(--bt-navy-900);
  background: linear-gradient(transparent 60%, rgba(201, 169, 97, 0.3) 60%);
  padding: 0 2px;
}

/* イタリック */
.entry-content em,
.article-body em {
  color: var(--bt-navy-700);
  font-style: normal;
  font-weight: 600;
}

/* リンク(本文内) */
.entry-content a,
.article-body a {
  color: var(--bt-navy-700);
  text-decoration: underline;
  text-decoration-color: var(--bt-gold-400);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all var(--bt-transition-fast);
}

.entry-content a:hover,
.article-body a:hover {
  color: var(--bt-gold-700);
  text-decoration-color: var(--bt-gold-600);
}

/* =====================================================================
   8. Lists
   ===================================================================== */
.entry-content ul,
.entry-content ol {
  margin: var(--bt-space-5) 0;
  padding-left: 0;
}

.entry-content ul li,
.entry-content ol li {
  list-style: none;
  position: relative;
  padding: var(--bt-space-2) 0 var(--bt-space-2) var(--bt-space-8);
  line-height: 1.85;
  color: var(--bt-text-primary);
}

/* ul のマーカー(ゴールドの丸) */
.entry-content ul > li::before {
  content: "";
  position: absolute;
  left: var(--bt-space-3);
  top: 1.1em;
  width: 8px;
  height: 8px;
  background-color: var(--bt-gold-600);
  border-radius: 50%;
}

/* ol の数字 */
.entry-content ol {
  counter-reset: bt-counter;
}
.entry-content ol > li {
  counter-increment: bt-counter;
}
.entry-content ol > li::before {
  content: counter(bt-counter);
  position: absolute;
  left: 0;
  top: var(--bt-space-2);
  width: 24px;
  height: 24px;
  background-color: var(--bt-navy-900);
  color: var(--bt-white);
  font-size: var(--bt-fs-xs);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ネストされたリスト */
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin: var(--bt-space-2) 0;
}

.entry-content ul ul > li::before {
  background-color: var(--bt-navy-300);
  width: 6px;
  height: 6px;
}

/* =====================================================================
   9. Blockquote (引用)
   ===================================================================== */
.entry-content blockquote,
.article-body blockquote {
  background-color: var(--bt-bg-section);
  border-left: 5px solid var(--bt-navy-700);
  padding: var(--bt-space-6) var(--bt-space-8);
  margin: var(--bt-space-6) 0;
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
  position: relative;
  font-style: normal;
  color: var(--bt-text-secondary);
}

.entry-content blockquote::before {
  content: "“";
  position: absolute;
  top: var(--bt-space-2);
  left: var(--bt-space-4);
  font-family: var(--bt-font-serif);
  font-size: 4rem;
  color: var(--bt-gold-400);
  line-height: 1;
  font-weight: 700;
}

.entry-content blockquote p {
  margin-left: var(--bt-space-8);
  margin-bottom: var(--bt-space-2);
}

.entry-content blockquote cite,
.entry-content blockquote .source {
  display: block;
  font-size: var(--bt-fs-sm);
  color: var(--bt-text-muted);
  margin-top: var(--bt-space-2);
  font-style: normal;
}

/* =====================================================================
   10. Tables (Comparison Tables - ★最重要)
   ===================================================================== */
.entry-content .wp-block-table,
.article-body table,
.wp-block-table figure {
  margin: var(--bt-space-8) 0;
}

.entry-content .wp-block-table table,
.entry-content table,
.article-body table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  background-color: var(--bt-white);
  box-shadow: var(--bt-shadow-md);
  border-radius: var(--bt-radius-md);
  overflow: hidden;
}

/* テーブルヘッダー */
.entry-content table th,
.article-body table th,
.wp-block-table table th {
  background: linear-gradient(
    135deg,
    var(--bt-navy-900) 0%,
    var(--bt-navy-700) 100%
  );
  color: var(--bt-white);
  font-weight: 600;
  font-size: var(--bt-fs-sm);
  letter-spacing: 0.05em;
  padding: var(--bt-space-4) var(--bt-space-5);
  text-align: left;
  border: none;
  position: relative;
}

.entry-content table th:not(:last-child)::after,
.wp-block-table table th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

/* テーブルセル */
.entry-content table td,
.article-body table td,
.wp-block-table table td {
  padding: var(--bt-space-4) var(--bt-space-5);
  border-bottom: 1px solid var(--bt-border);
  color: var(--bt-text-primary);
  font-size: var(--bt-fs-sm);
  line-height: 1.7;
  vertical-align: top;
}

/* 偶数行の背景色(縞模様) */
.entry-content table tr:nth-child(even) td,
.wp-block-table table tr:nth-child(even) td {
  background-color: var(--bt-bg-soft);
}

/* 行ホバー */
.entry-content table tr:hover td,
.wp-block-table table tr:hover td {
  background-color: var(--bt-gold-100);
  transition: background-color var(--bt-transition-fast);
}

/* 最初の列(ラベル列)を強調 */
.entry-content table tr td:first-child,
.wp-block-table table tr td:first-child {
  font-weight: 600;
  color: var(--bt-navy-800);
  background-color: var(--bt-bg-section);
}

/* レスポンシブ:横スクロール */
.wp-block-table {
  overflow-x: auto;
}

@media (max-width: 768px) {
  .entry-content table th,
  .entry-content table td {
    padding: var(--bt-space-3);
    font-size: var(--bt-fs-xs);
  }
}

/* =====================================================================
   11. Buttons & CTAs (★アフィリエイトリンク用)
   ===================================================================== */

/* ベース - WordPress ブロックボタン */
.wp-block-button__link,
.wp-element-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--bt-navy-900) 0%, var(--bt-navy-700) 100%);
  color: var(--bt-white);
  padding: var(--bt-space-4) var(--bt-space-10);
  font-size: var(--bt-fs-base);
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--bt-radius-md);
  box-shadow: var(--bt-shadow-md);
  transition: all var(--bt-transition-base);
  text-decoration: none !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  background: linear-gradient(135deg, var(--bt-gold-700) 0%, var(--bt-gold-600) 100%);
  color: var(--bt-white);
  transform: translateY(-2px);
  box-shadow: var(--bt-shadow-lg), var(--bt-shadow-gold);
}

/* CTA ボタン(プライマリ・大) */
.wp-block-button.is-style-fill .wp-block-button__link {
  padding: var(--bt-space-5) var(--bt-space-12);
  font-size: var(--bt-fs-md);
}

/* アウトライン版 */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--bt-navy-900);
  border: 2px solid var(--bt-navy-900);
  box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--bt-navy-900);
  color: var(--bt-white);
}

/* Cocoon スタイルのボタン (.btn) */
.entry-content .btn,
a.btn {
  display: inline-block;
  background: var(--bt-navy-900);
  color: var(--bt-white) !important;
  padding: var(--bt-space-3) var(--bt-space-8);
  border-radius: var(--bt-radius-md);
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--bt-transition-base);
  box-shadow: var(--bt-shadow-md);
}

.entry-content .btn:hover,
a.btn:hover {
  background: var(--bt-gold-600);
  transform: translateY(-2px);
  box-shadow: var(--bt-shadow-lg);
}

/* CTA ブロック(目立たせ用) */
.cta-box {
  background: linear-gradient(135deg, var(--bt-navy-900) 0%, var(--bt-navy-700) 100%);
  color: var(--bt-white);
  padding: var(--bt-space-8);
  border-radius: var(--bt-radius-lg);
  margin: var(--bt-space-8) 0;
  text-align: center;
  border: 2px solid var(--bt-gold-600);
  box-shadow: var(--bt-shadow-xl);
}

.cta-box h3 {
  color: var(--bt-gold-400) !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: var(--bt-space-4);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--bt-space-6);
}

/* =====================================================================
   12. Cocoon Specific Blocks
   ===================================================================== */

/* 吹き出し([chat]) */
.speech-wrap {
  margin: var(--bt-space-6) 0;
}

.speech-balloon {
  background: var(--bt-bg-section) !important;
  border: 2px solid var(--bt-navy-300) !important;
  border-radius: var(--bt-radius-lg) !important;
  padding: var(--bt-space-4) var(--bt-space-5) !important;
  box-shadow: var(--bt-shadow-sm);
}

.speech-balloon::before {
  border-right-color: var(--bt-navy-300) !important;
}

/* 注意ボックス([alert]) */
.alert-box {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFEFC9 100%);
  border: 1px solid var(--bt-warning);
  border-left: 5px solid var(--bt-warning);
  padding: var(--bt-space-5) var(--bt-space-6);
  border-radius: var(--bt-radius-md);
  margin: var(--bt-space-6) 0;
  position: relative;
}

.alert-box::before {
  content: "⚠️";
  font-size: var(--bt-fs-xl);
  margin-right: var(--bt-space-3);
}

/* ポイントボックス([point]) */
.point-box,
.information-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid var(--bt-info);
  border-left: 5px solid var(--bt-info);
  padding: var(--bt-space-5) var(--bt-space-6);
  border-radius: var(--bt-radius-md);
  margin: var(--bt-space-6) 0;
}

.point-box::before {
  content: "💡 ";
  font-size: var(--bt-fs-xl);
  margin-right: var(--bt-space-2);
}

/* メモボックス */
.memo-box {
  background-color: var(--bt-bg-section);
  border-left: 4px solid var(--bt-navy-500);
  padding: var(--bt-space-4) var(--bt-space-5);
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
  margin: var(--bt-space-5) 0;
  font-size: var(--bt-fs-sm);
  color: var(--bt-text-secondary);
}

/* PR/AI 開示文(設計書 Patch 1.6) */
.ai-pr-disclosure,
.pr-disclosure,
.ai-disclosure {
  background: linear-gradient(135deg, var(--bt-bg-section) 0%, var(--bt-bg-soft) 100%) !important;
  border: 1px solid var(--bt-border);
  border-left: 4px solid var(--bt-navy-500) !important;
  padding: var(--bt-space-4) var(--bt-space-5) !important;
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0 !important;
  margin-bottom: var(--bt-space-8) !important;
  font-size: var(--bt-fs-sm) !important;
  color: var(--bt-text-secondary) !important;
  line-height: 1.7 !important;
}

/* =====================================================================
   13. Table of Contents (目次)
   ===================================================================== */
.toc {
  background-color: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-top: 4px solid var(--bt-navy-900);
  border-radius: var(--bt-radius-md);
  padding: var(--bt-space-6) var(--bt-space-8);
  margin: var(--bt-space-8) 0;
  box-shadow: var(--bt-shadow-sm);
  position: relative;
}

.toc::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--bt-gold-600);
}

.toc-title {
  color: var(--bt-navy-900) !important;
  font-weight: 700;
  font-size: var(--bt-fs-md);
  margin-bottom: var(--bt-space-4) !important;
  padding-bottom: var(--bt-space-3);
  border-bottom: 1px solid var(--bt-border);
  letter-spacing: 0.02em;
}

.toc-list,
.toc-list li {
  list-style: none !important;
}

.toc-list a {
  color: var(--bt-navy-700);
  font-weight: 500;
  text-decoration: none;
  padding: var(--bt-space-2) 0;
  display: block;
  transition: all var(--bt-transition-fast);
  border-left: 3px solid transparent;
  padding-left: var(--bt-space-3);
}

.toc-list a:hover {
  color: var(--bt-gold-700);
  border-left-color: var(--bt-gold-600);
  background-color: var(--bt-bg-soft);
  padding-left: var(--bt-space-4);
}

.toc-list ul {
  padding-left: var(--bt-space-6);
}

.toc-list ul a {
  font-size: var(--bt-fs-sm);
  color: var(--bt-text-secondary);
}

/* =====================================================================
   14. Breadcrumb (パンくずリスト)
   ===================================================================== */
#breadcrumb,
.breadcrumb {
  background-color: transparent;
  padding: var(--bt-space-4) 0;
  font-size: var(--bt-fs-xs);
  color: var(--bt-text-muted);
  letter-spacing: 0.05em;
}

#breadcrumb a,
.breadcrumb a {
  color: var(--bt-navy-700);
  text-decoration: none;
}

#breadcrumb a:hover,
.breadcrumb a:hover {
  color: var(--bt-gold-700);
}

/* =====================================================================
   15. Sidebar
   ===================================================================== */
#sidebar {
  font-size: var(--bt-fs-sm);
}

.widget,
.widget_search,
.widget_categories,
.widget_archive {
  background-color: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-md);
  padding: var(--bt-space-5);
  margin-bottom: var(--bt-space-5);
  box-shadow: var(--bt-shadow-sm);
}

.widget h3,
.widget-sidebar-title,
.widget-title {
  color: var(--bt-navy-900) !important;
  font-weight: 700;
  font-size: var(--bt-fs-md);
  margin-bottom: var(--bt-space-4);
  padding-bottom: var(--bt-space-3);
  border-bottom: 2px solid var(--bt-navy-900);
  border-left: none;
  background: none;
  position: relative;
  padding-left: 0;
}

.widget h3::after,
.widget-sidebar-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--bt-gold-600);
}

.widget ul li,
.widget ol li {
  border-bottom: 1px solid var(--bt-border);
  padding: var(--bt-space-3) 0;
}

.widget ul li::before,
.widget ol li::before {
  display: none;
}

.widget a {
  color: var(--bt-navy-700);
  text-decoration: none;
}

.widget a:hover {
  color: var(--bt-gold-700);
}

/* 人気記事ウィジェット */
.popular-entry-card {
  border-bottom: 1px solid var(--bt-border);
  padding: var(--bt-space-3) 0;
}

.popular-entry-card-title {
  color: var(--bt-navy-800) !important;
  font-weight: 600;
}

/* =====================================================================
   16. Footer
   ===================================================================== */
#footer,
.footer {
  background-color: var(--bt-navy-900);
  color: var(--bt-navy-300);
  padding: var(--bt-space-12) 0 var(--bt-space-6);
  margin-top: var(--bt-space-16);
  border-top: 4px solid var(--bt-gold-600);
}

#footer a,
.footer a {
  color: var(--bt-navy-300);
  text-decoration: none;
}

#footer a:hover,
.footer a:hover {
  color: var(--bt-gold-400);
}

.footer-widgets {
  border-bottom: 1px solid var(--bt-navy-700);
  padding-bottom: var(--bt-space-8);
  margin-bottom: var(--bt-space-6);
}

.footer-widgets h3 {
  color: var(--bt-white) !important;
  font-weight: 600;
  font-size: var(--bt-fs-base);
  margin-bottom: var(--bt-space-4);
  border: none;
  padding: 0;
}

.copyright,
.footer-bottom {
  color: var(--bt-navy-400);
  font-size: var(--bt-fs-xs);
  text-align: center;
  letter-spacing: 0.05em;
}

/* フッターメニュー */
.menu-footer {
  display: flex;
  justify-content: center;
  gap: var(--bt-space-6);
  flex-wrap: wrap;
  margin-bottom: var(--bt-space-4);
  list-style: none;
  padding: 0;
}

.menu-footer li {
  border: none !important;
}

.menu-footer li::before {
  display: none !important;
}

.menu-footer a {
  color: var(--bt-navy-300);
  font-size: var(--bt-fs-xs);
  letter-spacing: 0.05em;
  transition: color var(--bt-transition-fast);
}

.menu-footer a:hover {
  color: var(--bt-gold-400);
}

/* =====================================================================
   17. Related Posts
   ===================================================================== */
.related-entry-card,
.related-entry-card-wrap {
  background-color: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-md);
  transition: all var(--bt-transition-base);
}

.related-entry-card:hover {
  border-color: var(--bt-gold-400);
  box-shadow: var(--bt-shadow-md);
  transform: translateY(-2px);
}

.related-list-title {
  color: var(--bt-navy-900);
  font-weight: 700;
  font-size: var(--bt-fs-lg);
  border-bottom: 3px solid var(--bt-navy-900);
  padding-bottom: var(--bt-space-3);
  margin-bottom: var(--bt-space-6);
  position: relative;
}

.related-list-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--bt-gold-600);
}

/* =====================================================================
   18. Pagination
   ===================================================================== */
.pagination {
  margin: var(--bt-space-10) 0;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: var(--bt-space-2) var(--bt-space-4);
  margin: 0 var(--bt-space-1);
  border-radius: var(--bt-radius-sm);
  background-color: var(--bt-white);
  border: 1px solid var(--bt-border);
  color: var(--bt-navy-700);
  font-weight: 500;
  transition: all var(--bt-transition-fast);
}

.pagination a:hover {
  background-color: var(--bt-navy-900);
  color: var(--bt-white);
  border-color: var(--bt-navy-900);
}

.pagination .current {
  background-color: var(--bt-navy-900);
  color: var(--bt-white);
  border-color: var(--bt-navy-900);
}

/* =====================================================================
   19. Forms (Contact Form 7)
   ===================================================================== */
.wpcf7-form {
  background-color: var(--bt-white);
  padding: var(--bt-space-8);
  border-radius: var(--bt-radius-lg);
  box-shadow: var(--bt-shadow-md);
  border: 1px solid var(--bt-border);
}

.wpcf7-form label {
  display: block;
  font-weight: 600;
  color: var(--bt-navy-800);
  margin-bottom: var(--bt-space-4);
  font-size: var(--bt-fs-sm);
}

.wpcf7-form .required {
  background-color: var(--bt-danger);
  color: var(--bt-white);
  font-size: var(--bt-fs-xs);
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: var(--bt-space-2);
  font-weight: 500;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: var(--bt-space-3) var(--bt-space-4);
  border: 1.5px solid var(--bt-border);
  border-radius: var(--bt-radius-sm);
  font-size: var(--bt-fs-base);
  font-family: var(--bt-font-sans);
  background-color: var(--bt-bg-soft);
  transition: all var(--bt-transition-fast);
  color: var(--bt-text-primary);
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--bt-navy-700);
  background-color: var(--bt-white);
  box-shadow: 0 0 0 3px rgba(11, 31, 63, 0.1);
}

.wpcf7-form .wpcf7-submit {
  background: linear-gradient(135deg, var(--bt-navy-900) 0%, var(--bt-navy-700) 100%);
  color: var(--bt-white);
  padding: var(--bt-space-4) var(--bt-space-12);
  border: none;
  border-radius: var(--bt-radius-md);
  font-size: var(--bt-fs-base);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: auto;
  margin-top: var(--bt-space-4);
  box-shadow: var(--bt-shadow-md);
  transition: all var(--bt-transition-base);
}

.wpcf7-form .wpcf7-submit:hover {
  background: linear-gradient(135deg, var(--bt-gold-700) 0%, var(--bt-gold-600) 100%);
  transform: translateY(-2px);
  box-shadow: var(--bt-shadow-lg);
}

/* =====================================================================
   20. Top Page Hero / Sections
   ===================================================================== */
.appeal {
  background: linear-gradient(135deg, var(--bt-navy-900) 0%, var(--bt-navy-700) 100%);
  color: var(--bt-white);
  padding: var(--bt-space-16) var(--bt-space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--bt-gold-600);
}

.appeal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle at 30% 50%,
    rgba(201, 169, 97, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.appeal h1,
.appeal-title {
  color: var(--bt-white) !important;
  font-size: var(--bt-fs-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--bt-space-4);
  border: none !important;
  padding: 0 !important;
}

.appeal-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--bt-fs-md);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .appeal {
    padding: var(--bt-space-10) var(--bt-space-4);
  }
  .appeal h1 {
    font-size: var(--bt-fs-2xl);
  }
}

/* =====================================================================
   21. Code Blocks
   ===================================================================== */
.entry-content code,
.article-body code {
  font-family: var(--bt-font-mono);
  background-color: var(--bt-bg-section);
  border: 1px solid var(--bt-border);
  padding: 2px 8px;
  border-radius: var(--bt-radius-sm);
  font-size: 0.9em;
  color: var(--bt-navy-800);
}

.entry-content pre,
.article-body pre {
  background-color: var(--bt-navy-900);
  color: #E5E7EB;
  padding: var(--bt-space-5);
  border-radius: var(--bt-radius-md);
  overflow-x: auto;
  margin: var(--bt-space-6) 0;
  box-shadow: var(--bt-shadow-md);
  border: 1px solid var(--bt-navy-700);
}

.entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* =====================================================================
   22. Search Form
   ===================================================================== */
.search-form input[type="search"],
.searchform input[type="text"] {
  background-color: var(--bt-white);
  border: 1.5px solid var(--bt-border);
  padding: var(--bt-space-3) var(--bt-space-4);
  border-radius: var(--bt-radius-md);
  font-size: var(--bt-fs-sm);
}

.search-form input[type="search"]:focus {
  border-color: var(--bt-navy-700);
}

/* =====================================================================
   23. Cookie / Privacy Notice / Modal
   ===================================================================== */
.appeal-area-content,
.notice-box {
  background-color: var(--bt-bg-section);
  border-left: 4px solid var(--bt-gold-600);
  padding: var(--bt-space-4) var(--bt-space-5);
  border-radius: 0 var(--bt-radius-md) var(--bt-radius-md) 0;
  margin: var(--bt-space-6) 0;
  font-size: var(--bt-fs-sm);
  color: var(--bt-text-secondary);
}

/* =====================================================================
   24. Author Box (執筆者情報)
   ===================================================================== */
.author-box {
  background-color: var(--bt-white);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  padding: var(--bt-space-6);
  margin: var(--bt-space-8) 0;
  box-shadow: var(--bt-shadow-sm);
  display: flex;
  gap: var(--bt-space-5);
  align-items: flex-start;
}

.author-box-thumb img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--bt-gold-600);
}

.author-box-name {
  color: var(--bt-navy-900);
  font-weight: 700;
  font-size: var(--bt-fs-md);
  margin-bottom: var(--bt-space-2);
}

.author-box-description {
  color: var(--bt-text-secondary);
  font-size: var(--bt-fs-sm);
  line-height: 1.7;
}

/* =====================================================================
   25. SNS Share Buttons
   ===================================================================== */
.sns-share {
  margin: var(--bt-space-8) 0;
  padding-top: var(--bt-space-6);
  border-top: 1px solid var(--bt-border);
}

.sns-share-buttons {
  display: flex;
  gap: var(--bt-space-3);
  flex-wrap: wrap;
}

.sns-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--bt-space-3) var(--bt-space-5);
  border-radius: var(--bt-radius-md);
  background-color: var(--bt-bg-section);
  color: var(--bt-navy-800);
  font-weight: 500;
  font-size: var(--bt-fs-sm);
  text-decoration: none;
  transition: all var(--bt-transition-fast);
  border: 1px solid var(--bt-border);
}

.sns-share a:hover {
  background-color: var(--bt-navy-900);
  color: var(--bt-white);
  border-color: var(--bt-navy-900);
}

/* =====================================================================
   26. Cocoon Skin Reset (スキンが付与する不要な装飾の打ち消し)
   ===================================================================== */
.cf::before,
.cf::after {
  content: none !important;
}

/* スキンによる不要なグラデーションをリセット */
.entry-card::before,
.entry-card::after,
.related-entry-card::before,
.related-entry-card::after {
  content: none;
}

/* =====================================================================
   27. Print Style
   ===================================================================== */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  #header,
  #footer,
  #sidebar,
  .sns-share,
  .related-entry-cards,
  .breadcrumb,
  .pagination,
  .ad,
  .wp-block-button {
    display: none !important;
  }

  .article {
    box-shadow: none;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* =====================================================================
   28. Mobile Responsive Adjustments
   ===================================================================== */
@media (max-width: 1024px) {
  #header-in.wrap {
    padding: 0 var(--bt-space-4);
  }
}

@media (max-width: 768px) {
  body {
    font-size: var(--bt-fs-sm);
  }

  .entry-content h2 {
    font-size: var(--bt-fs-lg);
    margin: var(--bt-space-8) 0 var(--bt-space-4);
    padding: var(--bt-space-3) 0 var(--bt-space-3) var(--bt-space-4);
  }

  .entry-content h3 {
    font-size: var(--bt-fs-base);
    margin: var(--bt-space-6) 0 var(--bt-space-3);
  }

  .article {
    padding: var(--bt-space-5) var(--bt-space-4);
  }

  .toc {
    padding: var(--bt-space-4);
  }

  .wpcf7-form {
    padding: var(--bt-space-4);
  }
}

@media (max-width: 480px) {
  .site-name-text-link {
    font-size: var(--bt-fs-xl);
  }

  .entry-title {
    font-size: var(--bt-fs-xl) !important;
  }
}

/* =====================================================================
   29. Utility Classes (記事内で使えるクラス)
   ===================================================================== */
.bt-text-center { text-align: center !important; }
.bt-text-right  { text-align: right !important; }
.bt-text-bold   { font-weight: 700 !important; }
.bt-text-muted  { color: var(--bt-text-muted) !important; }
.bt-text-gold   { color: var(--bt-gold-700) !important; }
.bt-text-navy   { color: var(--bt-navy-900) !important; }

.bt-bg-section  { background-color: var(--bt-bg-section) !important; }
.bt-bg-soft     { background-color: var(--bt-bg-soft) !important; }

.bt-mt-0   { margin-top: 0 !important; }
.bt-mt-4   { margin-top: var(--bt-space-4) !important; }
.bt-mt-8   { margin-top: var(--bt-space-8) !important; }
.bt-mb-0   { margin-bottom: 0 !important; }
.bt-mb-4   { margin-bottom: var(--bt-space-4) !important; }
.bt-mb-8   { margin-bottom: var(--bt-space-8) !important; }

/* 商品比較カード(記事内のアフィリエイト訴求用) */
.bt-product-card {
  background: var(--bt-white);
  border: 2px solid var(--bt-border);
  border-radius: var(--bt-radius-lg);
  padding: var(--bt-space-6);
  margin: var(--bt-space-6) 0;
  box-shadow: var(--bt-shadow-md);
  transition: all var(--bt-transition-base);
  position: relative;
}

.bt-product-card:hover {
  border-color: var(--bt-gold-600);
  box-shadow: var(--bt-shadow-xl);
  transform: translateY(-2px);
}

.bt-product-card.bt-recommended::before {
  content: "おすすめ";
  position: absolute;
  top: -12px;
  left: var(--bt-space-6);
  background: var(--bt-gold-600);
  color: var(--bt-white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: var(--bt-fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bt-product-name {
  color: var(--bt-navy-900);
  font-weight: 700;
  font-size: var(--bt-fs-lg);
  margin-bottom: var(--bt-space-3);
  border-bottom: 2px solid var(--bt-border);
  padding-bottom: var(--bt-space-3);
}

.bt-product-spec {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--bt-space-2);
  margin-bottom: var(--bt-space-4);
}

.bt-product-spec dt {
  font-weight: 600;
  color: var(--bt-text-secondary);
  font-size: var(--bt-fs-sm);
  background: var(--bt-bg-section);
  padding: var(--bt-space-2);
  border-radius: var(--bt-radius-sm);
}

.bt-product-spec dd {
  margin: 0;
  padding: var(--bt-space-2);
  font-size: var(--bt-fs-sm);
}

/* =====================================================================
   30. Subtle Animations
   ===================================================================== */
@keyframes bt-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry-card,
.bt-product-card {
  animation: bt-fade-in-up 0.4s ease-out;
}

/* =====================================================================
   END of biz-trend Custom CSS