@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){
  /*必要ならばここにコードを書く*/
}

/* ========================================
   template-free.biz 新トップページ CSS
   ======================================== */

/* --- ヒーローセクション --- */
.tf-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  margin: -20px -20px 30px -20px;
  border-radius: 0 0 20px 20px;
}

.tf-hero h1 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tf-hero-sub {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

/* --- 統計情報 --- */
.tf-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
}

.tf-stat-item {
  text-align: center;
}

.tf-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: bold;
}

.tf-stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* --- 検索ボックス --- */
.tf-search-box {
  max-width: 500px;
  margin: 0 auto;
}

.tf-search-box form {
  display: flex;
  gap: 0;
}

.tf-search-box .tf-search-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.tf-search-box button {
  padding: 14px 24px;
  background: #f59e0b;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.tf-search-box button:hover {
  background: #d97706;
}

/* --- セクション共通 --- */
.tf-section {
  margin-bottom: 40px;
}

.tf-section-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tf-icon {
  font-size: 1.2rem;
}

/* --- カテゴリグリッド --- */
.tf-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tf-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  background: #f8fafc;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.tf-category-card:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tf-cat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.tf-cat-name {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.tf-cat-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --- 人気テンプレートリスト --- */
.tf-popular-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tf-popular-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.tf-popular-item:hover {
  background: #f0f4ff;
  border-color: #667eea;
}

.tf-popular-rank {
  min-width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.85rem;
}

.tf-popular-rank.gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

.tf-popular-rank.silver {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
  color: #fff;
}

.tf-popular-rank.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.tf-popular-content {
  flex: 1;
  min-width: 0;
}

.tf-popular-title {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-popular-pv {
  font-size: 0.75rem;
  color: #666;
  margin-top: 2px;
}

/* --- シーン別ナビ --- */
.tf-scene-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.tf-scene-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.tf-scene-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tf-scene-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tf-scene-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
}

.tf-scene-desc {
  font-size: 0.8rem;
  color: #666;
}

/* --- 定番テンプレート（タグ風） --- */
.tf-all-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tf-all-categories a {
  display: inline-block;
  padding: 8px 16px;
  background: #f1f5f9;
  border-radius: 20px;
  text-decoration: none;
  color: #475569;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tf-all-categories a:hover {
  background: #667eea;
  color: #fff;
}

/* --- もっと見るボタン --- */
.tf-more-btn {
  text-align: center;
  margin-top: 20px;
}

.tf-more-btn a {
  display: inline-block;
  padding: 10px 30px;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.tf-more-btn a:hover {
  background: #667eea;
  color: #fff;
}

/* --- CTAセクション --- */
.tf-cta {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  margin-top: 40px;
}

.tf-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.tf-cta p {
  color: #666;
  margin-bottom: 20px;
}

.tf-btn {
  display: inline-block;
  padding: 14px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: #fff;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
  .tf-hero {
    padding: 40px 15px;
    margin: -15px -15px 20px -15px;
  }
  
  .tf-hero h1 {
    font-size: 1.5rem;
  }
  
  .tf-stats {
    gap: 25px;
  }
  
  .tf-stat-num {
    font-size: 1.5rem;
  }
  
  .tf-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tf-scene-nav {
    grid-template-columns: 1fr;
  }
  
  .tf-popular-title {
    font-size: 0.85rem;
  }
}


/* ============================================
   アフィリエイトCTA改善 (2026-01-14)
   ============================================ */

/* --- 1. プライマリボタン強化 --- */
.tf-btn-primary {
  padding: 16px 36px !important;
  font-size: 1.1em !important;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
  position: relative;
  overflow: hidden;
}

.tf-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: tf-shimmer 2.5s infinite;
}

@keyframes tf-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- 2. Social Proof改善 --- */
.tf-social-proof {
  font-size: 1em !important;
  padding: 14px 20px 14px 45px !important;
  background: linear-gradient(90deg, #FEF3C7 0%, #FDE68A 100%) !important;
  border: none !important;
  border-left: 4px solid #F59E0B !important;
  border-radius: 8px !important;
  position: relative;
  box-shadow: none !important;
  color: #333 !important;
}

.tf-social-proof::before {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: #059669;
  font-weight: bold;
}

.tf-social-proof strong {
  color: #333 !important;  /* 黒文字に変更 */
  /* color: #DC2626 旧 */
  font-size: 1.15em !important;
}

/* --- 3. 緊急性訴求 --- */
.tf-urgency {
  background: linear-gradient(90deg, #DC2626 0%, #EF4444 100%) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 0.9em !important;
  font-weight: 700 !important;
  display: inline-block;
  margin: 12px 0 !important;
  animation: tf-pulse 2s infinite;
}

@keyframes tf-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* --- 4. CTAボックス差別化 --- */
.tf-cta-box {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%) !important;
  color: #fff !important;
  border: 2px solid #1e3a5f !important;
  border-left: 5px solid #F97316 !important;
  box-shadow: 0 4px 15px rgba(30,58,95,.3) !important;
  padding: 30px !important;
  margin: 40px 0 !important;
}

/* tf-highlight - 黄色背景で視認性UP */
.tf-cta-box .tf-highlight,
.tf-highlight {
  background: linear-gradient(90deg, #FEF3C7 0%, #FDE68A 100%) !important;
  color: #333 !important;  /* 旧: #92400E */
  border: none !important;
  border-left: 4px solid #F59E0B !important;
  padding: 15px !important;
}

.tf-highlight p,
.tf-highlight strong {
  color: #333 !important;  /* 旧: #92400E */
}

.tf-cta-box h3 {
  font-size: 1.5em !important;
  margin-bottom: 15px !important;
  color: #fff !important;
}

.tf-cta-box h4 {
  color: #fff !important;
}

/* tf-highlight内のpは黒文字（詳細度を上げて優先） */
/* tf-social-proof内は黒文字（詳細度を上げて優先） */
.tf-cta-box .tf-social-proof,
.tf-cta-box .tf-social-proof strong {
  color: #333 !important;
}

.tf-cta-box .tf-highlight p {
  color: #333 !important;
}

.tf-cta-box p {
  color: #fff !important;
}

.tf-cta-box ul li {
  color: #fff !important;
}

/* --- 5. セカンダリボタン改善 --- */
a.tf-btn-secondary,
.tf-btn-secondary {
  color: var(--tf-accent, #6366F1) !important;
  background: rgba(99, 102, 241, 0.08) !important;
  border: 2px solid var(--tf-accent, #6366F1) !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
}

a.tf-btn-secondary:hover,
.tf-btn-secondary:hover {
  background: var(--tf-accent, #6366F1) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* --- 6. マイクロコピー強化 --- */
.tf-microcopy {
  font-size: 0.85em !important;
  color: #4B5563 !important;
  margin-top: 12px !important;
  padding-left: 20px;
  position: relative;
}

.tf-microcopy::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 600px) {
  .tf-cta-box {
    padding: 20px !important;
    margin: 20px 0 !important;
  }
  
  .tf-cta-box h3 {
    font-size: 1.25em !important;
  }
  
  a.tf-btn-primary,
  .tf-btn-primary,
  a.tf-btn-secondary,
  .tf-btn-secondary {
  color: var(--tf-accent, #6366F1) !important;
    width: 100% !important;
    text-align: center !important;
    padding: 16px 20px !important;
    font-size: 1em !important;
  }
  
  .tf-social-proof {
    padding: 12px 15px 12px 40px !important;
    font-size: 0.9em !important;
  }
  
  .tf-social-proof::before {
    left: 12px;
  }
}

/* ============================================
   比較記事 CTR・CVR改善 Phase 1 (2026-01-14)
   ============================================ */

/* --- 1. スティッキーCTA（追従型CTA） --- */
.tf-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #FF6B35, #F7931E);
  padding: 12px 15px;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
  display: none; /* JSで表示制御 */
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tf-sticky-cta.is-visible {
  display: flex;
}

.tf-sticky-cta .tf-sticky-text {
  color: #fff;
  font-weight: bold;
  font-size: 0.95em;
}

.tf-sticky-cta .tf-sticky-btn {
  background: #fff;
  color: #FF6B35 !important;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tf-sticky-cta .tf-sticky-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tf-sticky-cta .tf-sticky-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,107,53,.3), transparent);
  animation: tf-shimmer 2.5s infinite;
}

.tf-sticky-cta .tf-sticky-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.3);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* --- 2. ランキングバッジ --- */
.tf-rank-card {
  position: relative;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  background: #fff;
}

.tf-rank-card.tf-rank-1 {
  border-color: #FFD700;
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%);
  box-shadow: 0 4px 15px rgba(255,215,0,0.2);
}

.tf-rank-card.tf-rank-2 {
  border-color: #C0C0C0;
  background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.tf-rank-card.tf-rank-3 {
  border-color: #CD7F32;
  background: linear-gradient(180deg, #FEF3E2 0%, #FFFFFF 100%);
}

.tf-rank-badge {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 1.2em;
  box-shadow: 0 4px 10px rgba(255,165,0,0.4);
  animation: tf-badge-pulse 2s infinite;
}

.tf-rank-badge.tf-silver {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  box-shadow: 0 4px 10px rgba(192,192,192,0.4);
}

.tf-rank-badge.tf-bronze {
  background: linear-gradient(135deg, #CD7F32, #B8860B);
  box-shadow: 0 4px 10px rgba(205,127,50,0.4);
}

@keyframes tf-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* --- 3. 緊急性バナー --- */
.tf-urgency-banner {
  background: linear-gradient(90deg, #DC2626, #EF4444);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  animation: tf-pulse 2s infinite;
}

.tf-urgency-banner strong {
  font-size: 1.1em;
}

.tf-urgency-countdown {
  background: rgba(255,255,255,0.25);
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 600px) {
  .tf-sticky-cta {
    padding: 10px;
    gap: 10px;
  }
  
  .tf-sticky-cta .tf-sticky-text {
    font-size: 0.85em;
    text-align: center;
  }
  
  .tf-sticky-cta .tf-sticky-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  .tf-rank-badge {
    width: 40px;
    height: 40px;
    font-size: 1em;
    top: -12px;
    left: 15px;
  }
  
  .tf-urgency-banner {
    padding: 12px 15px;
    font-size: 0.9em;
  }
}

/* 最終手段: tf-social-proof黒文字（ファイル末尾で最優先） */
.entry-content .tf-cta-box .tf-social-proof,
.entry-content .tf-cta-box .tf-social-proof strong,
div.tf-social-proof,
div.tf-social-proof strong {
  color: #333 !important;
}
.tf-cta-box .tf-highlight p, .tf-cta-box .tf-social-proof p { color: #333 !important; }

/* --- 確定申告シーズン緊急性バッジ (2026/01/23追加) --- */
.tf-urgency {
  display: inline-block;
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95em;
  margin: 10px 0;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
  animation: tf-urgency-pulse 2s infinite;
}

@keyframes tf-urgency-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3); }
  50% { transform: scale(1.02); box-shadow: 0 5px 15px rgba(220, 38, 38, 0.5); }
}

/* --- CTAボタン - 目立つオレンジボタンスタイル (2026/01/26追加) --- */
.tf-cta-box .cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
  color: #fff !important;
  padding: 18px 40px !important;
  font-size: 1.15em !important;
  font-weight: bold !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.tf-cta-box .cta-button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5) !important;
}

/* ボタン内のテキスト調整（<p>タグ対応） */
.tf-cta-box .cta-button p {
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
}

/* シミー（光が流れる）アニメーション */
.tf-cta-box .cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: cta-shimmer 2.5s infinite;
}

@keyframes cta-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* モバイル対応 */
@media (max-width: 600px) {
  .tf-cta-box .cta-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 16px 20px !important;
  }
}

/* ============================================
   3-LLM協議改善 Phase 1: 共通CSS改善 (2026-03-12)
   Claude Code × Gemini CLI × Codex 統合
   ============================================ */

/* === 1. クロスセルボックス（テンプレート→比較記事導線） === */
.tf-cross-sell-box {
  border: 2px solid #e0f2fe;
  border-radius: 12px;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  margin: 40px 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.tf-cross-sell-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

.tf-cross-sell-badge {
  background: #0ea5e9;
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 12px;
}

.tf-cross-sell-box h4 {
  margin: 0 0 16px 0 !important;
  color: #1e293b !important;
  font-size: 1.15em !important;
  border: none !important;
  padding: 0 !important;
  background: none !important;
}

.tf-cross-sell-body p {
  color: #475569;
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tf-cross-sell-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.tf-cross-sell-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
  color: #fff !important;
}

/* === 2. デュアルCTA改善 === */
.tf-cta-dual .cta-dual-inner {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.tf-cta-dual .cta-dual-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}

.tf-cta-dual .cta-dual-label {
  font-size: 0.9em;
  margin-bottom: 12px !important;
  opacity: 0.9;
}

.tf-cta-dual .cta-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box;
}

.tf-cta-dual .cta-reassurance {
  text-align: center;
  font-size: 0.85em;
  opacity: 0.85;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 600px) {
  .tf-cta-dual .cta-dual-inner {
    flex-direction: column;
    gap: 12px;
  }
}

/* === 3. スマートスティッキーCTA（スクロール方向対応） === */
.tf-sticky-cta {
  transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.tf-sticky-cta.is-hidden {
  transform: translateY(100%) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.tf-sticky-cta .tf-sticky-balloon {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #FF6B35;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tf-sticky-cta .tf-sticky-balloon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
}

/* === 4. 比較テーブルモバイル改善 === */
.tf-comparison-table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  .tf-table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f9ff;
    border: 1px dashed #0ea5e9;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.85em;
    color: #0369a1;
    animation: tf-hint-pulse 2s ease-in-out 3;
  }

  @keyframes tf-hint-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  .tf-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }
}

/* === 5. CTA内ベネフィットリスト === */
.tf-cta-benefits {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.tf-cta-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9em;
  padding: 6px 0;
}

.tf-cta-benefits li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: bold;
}

/* === 6. 記事内比較カード（テンプレ記事用） === */
.tf-inline-comparison {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}

.tf-inline-comparison .tf-ic-icon {
  font-size: 2.5em;
  min-width: 50px;
  text-align: center;
}

.tf-inline-comparison .tf-ic-content {
  flex: 1;
}

.tf-inline-comparison .tf-ic-title {
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 6px;
  color: #1e293b;
}

.tf-inline-comparison .tf-ic-desc {
  font-size: 0.85em;
  color: #64748b;
  margin-bottom: 10px;
}

.tf-inline-comparison .tf-ic-link {
  display: inline-block;
  color: #2563eb;
  font-weight: bold;
  font-size: 0.9em;
  text-decoration: none;
}

.tf-inline-comparison .tf-ic-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .tf-inline-comparison {
    flex-direction: column;
    text-align: center;
  }
}

/* === 7. 信頼性バッジ（E-E-A-T強化） === */
.tf-trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.tf-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  color: #475569;
}

.tf-trust-badge-icon {
  color: #10b981;
  font-size: 1.1em;
}

/* ============================================
   3-LLM協議改善 Phase 2: Claude Agent追加提案 (2026-03-12)
   ============================================ */

/* === 1. CTA 2行構造 === */
.cta-button .cta-main-text {
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  display: block;
}

.cta-button .cta-sub-text {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.01em;
  display: block;
  margin-top: 4px;
}

/* === 2. 結論ファーストCTA === */
.tf-conclusion-first {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0 30px;
}

.tf-conclusion-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tf-conclusion-badge {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
}

.tf-conclusion-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #0c4a6e;
  margin: 0 !important;
}

.tf-conclusion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.tf-conclusion-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
}

.tf-conclusion-primary {
  border-color: #0ea5e9;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.tf-editors-pick {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
  white-space: nowrap;
}

.tf-runner-up {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #6b7280;
  color: #fff;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: bold;
  white-space: nowrap;
}

.tf-conclusion-reason {
  font-size: 0.9em;
  color: #475569;
  margin: 16px 0 12px !important;
}

.tf-conclusion-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tf-conclusion-price {
  font-weight: bold;
  color: #dc2626;
  font-size: 0.95em;
}

.tf-conclusion-trial {
  background: #dcfce7;
  color: #166534;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.8em;
  font-weight: bold;
}

.tf-conclusion-note {
  text-align: center;
  font-size: 0.8em;
  color: #94a3b8;
  margin: 0 !important;
}

/* === 3. 季節連動CTA === */
.tf-seasonal-cta {
  display: none;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 24px;
  margin: 30px 0;
  text-align: center;
}

.tf-seasonal-header {
  margin-bottom: 12px;
}

.tf-seasonal-badge {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9em;
  animation: tf-urgency-pulse 2s infinite;
}

.tf-seasonal-message {
  font-size: 1em;
  color: #1e293b;
  margin: 12px 0 16px !important;
  line-height: 1.6;
}

.tf-seasonal-countdown {
  display: none;
  font-size: 1.2em;
  font-weight: bold;
  color: #dc2626;
  margin-top: 12px !important;
  padding: 8px 16px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
}

/* === 4. E-E-A-T強化: 著者情報・体験レビュー === */
.tf-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}

.tf-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

.tf-author-info {
  flex: 1;
}

.tf-author-name {
  font-weight: bold;
  font-size: 0.95em;
  color: #1e293b;
}

.tf-author-desc {
  font-size: 0.8em;
  color: #64748b;
  margin-top: 2px;
}

.tf-affiliate-disclosure {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.8em;
  color: #64748b;
  margin: 20px 0;
  text-align: center;
}

/* === 5. アクセシビリティ === */
@media (prefers-reduced-motion: reduce) {
  .tf-urgency, .tf-rank-badge, .cta-button::after, .tf-seasonal-badge {
    animation: none !important;
  }
}

.cta-button:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .tf-conclusion-grid {
    grid-template-columns: 1fr;
  }
  .tf-conclusion-card {
    padding: 16px;
  }
  .tf-author-box {
    flex-direction: column;
    text-align: center;
  }
}
