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

/* ========================================
   digital-hikaku.com 追加CSS
   アフィリエイト特化UI
   ======================================== */

/* ── 1. CTAボタン（メイン・オレンジ） ── */
.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff6b35, #f7c59f);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.04em;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

/* ── 2. CTAボタン（サブ・グリーン） ── */
.cta-btn-green {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #00b894, #55efc4);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 184, 148, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.45);
}

/* ── 3. ボタン中央寄せラッパー ── */
.cta-wrap {
  text-align: center;
  margin: 24px auto;
}

/* ── 4. 比較表（TablePress拡張スタイル） ── */
.tablepress {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 24px 0;
}
.tablepress th,
.tablepress td {
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
  text-align: center;
}
.tablepress thead th {
  background: #2d3561;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}
.tablepress tbody tr:nth-child(even) {
  background: #f7f9fc;
}
.tablepress tbody tr:hover {
  background: #eef2ff;
}
.tablepress tbody tr:first-child {
  background: #fffbe6;
  font-weight: 600;
}
.tablepress tbody tr:first-child td:first-child::before {
  content: "1位 ";
}

/* ── 5. おすすめバッジ ── */
.badge-best {
  display: inline-block;
  background: #e17055;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── 6. ランキングボックス ── */
.rank-box {
  border: 2px solid #2d3561;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  position: relative;
  background: #fff;
  box-shadow: 0 2px 12px rgba(45,53,97,0.08);
}
.rank-box .rank-label {
  position: absolute;
  top: -14px;
  left: 20px;
  background: #2d3561;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
}
.rank-box.rank-1 {
  border-color: #f39c12;
}
.rank-box.rank-1 .rank-label {
  background: #f39c12;
}

/* ── 7. 総評ボックス ── */
.review-box {
  background: #f0f4ff;
  border-left: 4px solid #2d3561;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ── 8. スマホ対応 ── */
@media (max-width: 768px) {
  .tablepress-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cta-btn,
  .cta-btn-green {
    display: block;
    width: 90%;
    margin: 0 auto;
    padding: 16px 20px;
    font-size: 1rem;
  }
}
/* ── ヘッダー・ナビ強制ネイビー ── */
#header,
.header-container,
.site-header {
  background-color: #2d3561 !important;
}
#header .site-name-text,
#header .header-title,
.header-container .site-name-text {
  color: #fff !important;
}

/* ── グローバルナビ ── */
#nav,
.navi-in > ul,
.global-nav {
  background-color: #1e2a50 !important;
}
#nav a,
.navi-in > ul > li > a {
  color: #fff !important;
}
#nav a:hover,
.navi-in > ul > li > a:hover {
  background-color: #ff6b35 !important;
  color: #fff !important;
}

/* ── サイト全体の背景色 ── */
body {
  background-color: #f5f7fa !important;
}

/* ── コンテンツエリア ── */
#content {
  background-color: #fff;
}
