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

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* スマホ乗り換えナビ カスタムCSS                         */
/* WordPress管理画面 → 外観 → カスタマイズ →             */
/* 追加CSS にこの内容を貼り付けてください                   */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 1. ランキングカード（mybest風）  */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.ranking-section {
  margin: 32px 0;
  display: grid;
  gap: 24px;
}

.ranking-item {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ランキング番号バッジ（1位、2位、3位の装飾） */
.ranking-item h4 {
  position: relative;
  padding-left: 64px;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 48px;
  color: #1f2937;
  border: none;
}

.ranking-item h4::before {
  content: "順位";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6b7280;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 48px;
  letter-spacing: -0.5px;
}

/* 1位（金） */
.ranking-section .ranking-item:nth-of-type(1) h4::before {
  content: "1位";
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 2位（銀） */
.ranking-section .ranking-item:nth-of-type(2) h4::before {
  content: "2位";
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.3);
}

/* 3位（銅） */
.ranking-section .ranking-item:nth-of-type(3) h4::before {
  content: "3位";
  background: linear-gradient(135deg, #d97706, #b45309);
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
}

/* 4位以降 */
.ranking-section .ranking-item:nth-of-type(4) h4::before { content: "4位"; }
.ranking-section .ranking-item:nth-of-type(5) h4::before { content: "5位"; }

.ranking-item p {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 16px;
}

.ranking-item ul {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px 16px 16px 36px;
  margin: 16px 0;
}

.ranking-item ul li {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 4px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 2. 比較表（モダンな見た目）       */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin: 24px 0;
  font-size: 14px;
  background: #ffffff;
}

.comparison-table thead {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.comparison-table thead th {
  color: #ffffff;
  font-weight: 700;
  padding: 16px 12px;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.5px;
  border: none;
}

.comparison-table tbody tr {
  transition: background 0.15s ease;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.comparison-table tbody tr:hover {
  background: #eff6ff;
}

.comparison-table tbody td {
  padding: 14px 12px;
  text-align: center;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
  white-space: nowrap;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  color: #1f2937;
  background: #f9fafb;
}

/* スマホ表示で横スクロール可能に */
@media (max-width: 768px) {
  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .comparison-table th, .comparison-table td {
    font-size: 13px;
    padding: 10px 8px;
  }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 3. アフィリエイトボタン            */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.affiliate-btn {
  display: inline-block;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  margin: 10px 6px 10px 0;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: 0.3px;
  max-width: 100%;
}

.affiliate-btn::after {
  content: " →";
  font-weight: 400;
}

.affiliate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(249, 115, 22, 0.45);
  color: #ffffff !important;
}

/* 比較表の中に入ってしまったボタンは強制的に非表示にする（保険） */
.comparison-table .affiliate-btn,
.comparison-table td .affiliate-btn,
.comparison-table th .affiliate-btn {
  display: none !important;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 4. FAQ セクション                  */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.faq-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 32px 0;
}

.faq-item {
  background: #ffffff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
  padding-left: 32px;
  position: relative;
  border: none;
}

.faq-item h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  line-height: 24px;
}

.faq-item p {
  margin: 0;
  padding-left: 32px;
  position: relative;
  color: #4b5563;
  line-height: 1.8;
}

.faq-item p:first-of-type::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: #f97316;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  line-height: 24px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 5. 注意書き・補足                   */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.note, p.note {
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  border-left: 3px solid #9ca3af;
  padding: 10px 16px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 6. キャリア比較カード              */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.carrier-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.carrier-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

.carrier-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
}

.carrier-card h4 {
  color: #2563eb;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eff6ff;
}

.carrier-card .campaign-info {
  background: #fef3c7;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  font-weight: 500;
  margin-top: 12px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 7. ステップリスト                  */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.step-list li {
  counter-increment: step-counter;
  background: #ffffff;
  border-left: 4px solid #3b82f6;
  padding: 16px 16px 16px 64px;
  margin-bottom: 12px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  line-height: 1.8;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: #3b82f6;
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  line-height: 32px;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
/* 8. 利用シーン別カード              */
/* ━━━━━━━━━━━━━━━━━━━━━━━━ */
.use-case-section, .caution-list, .campaign-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.use-case-item, .caution-item, .campaign-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.use-case-item h4, .caution-item h4, .campaign-item h4 {
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
}

.caution-item h4 {
  color: #dc2626;
}


