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

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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* ===== トップページ メイン＋サイドバー横並び ===== */
.top-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content-top {
  flex: 1;
  min-width: 0;
}

#sidebar-top {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  padding: 20px;
  height: fit-content;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  .top-layout {
    flex-direction: column;
    gap: 20px;
  }

  #sidebar-top {
    width: 100%;
    position: static;
    margin-top: 30px;
  }
}

/* === Cocoonの標準レイアウトを保ったまま調整 === */
body.page-template-front-page #main {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* メイン部分（左） */
body.page-template-front-page #content {
  flex: 1;
  min-width: 0;
}

/* サイドバー（右固定） */
body.page-template-front-page #sidebar {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  padding: 20px;
  height: fit-content;
}

/* モバイル対応 */
@media screen and (max-width: 1024px) {
  body.page-template-front-page #main {
    flex-direction: column;
  }

  body.page-template-front-page #sidebar {
    width: 100%;
    position: static;
    margin-top: 20px;
  }
}




/* =======================================
   EA紹介サイト向けデザイン（ブラック×ゴールド）
   Cocoon COLORS(ブラック)併用用
   ======================================= */
/* リンクカラー（本文・サイドバー共通） */
a {
  color: #d4af37;
  /* ゴールド */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffda6b;
  /* 明るめゴールド */
  text-decoration: underline;
}

/* 見出しにゴールドのアクセントライン */
.article h2 {
  border-left: 4px solid #d4af37;
  padding-left: 10px;
  background: linear-gradient(to right, rgba(212, 175, 55, 0.1), transparent);
  border-radius: 3px;
}

.article h3 {
  color: #f5f5f5;
  border-bottom: 1px solid #444;
}

/* ボタンカラー（Cocoonボタンをゴールド化） */
.button,
.btn,
input[type="submit"],
input[type="button"],
button {
  background-color: #d4af37;
  border: none;
  border-radius: 4px;
  color: #111;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover,
.btn:hover,
input[type="submit"]:hover,
button:hover {
  background-color: #ffda6b;
  color: #000;
}

/* 記事タイトル・リンクをゴールド寄りに */
.entry-card-title a,
.article h1 a {
  color: #f2f2f2;
  transition: color 0.3s ease;
}

.entry-card-title a:hover,
.article h1 a:hover {
  color: #d4af37;
}

/* サイドバーの見出し（ウィジェットタイトル） */
.sidebar h2,
.sidebar h3 {
  color: #d4af37;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}

/* サイドバーの見出し（ウィジェットタイトル）のデザイン崩れ対策 */
/*#sidebar-top h2, #sidebar-top h3 {
  color: #d4af37;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}*/

/* ページネーション */
.pagination a,
.pagination span {
  border: 1px solid #333;
  color: #d4af37;
  background-color: transparent;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 0 3px;
}

.pagination a:hover {
  background-color: #d4af37;
  color: #111;
}

/* フッターのリンクもゴールドに */
footer#footer a {
  color: #d4af37;
}

footer#footer a:hover {
  color: #ffda6b;
}

/* 表のデザイン（バックテスト結果など） */
table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
}

th,
td {
  border: 1px solid #444;
  padding: 8px 10px;
}

th {
  background-color: #222;
  color: #d4af37;
  font-weight: bold;
}

td {
  color: #f2f2f2;
}

/* トップページの h2 を確実に中央揃えにする（各種Cocoon構造対応） */
body.home .entry-content h2,
body.home .article .entry-content h2,
body.page .entry-content h2,
.entry-content>h2,
.entry-content h2 {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* border-bottom を使っている h2 は「幅自動＋inline-blockで中央寄せ」したい場合の例 */
body.home .entry-content h2[style*="border-bottom"],
body.page .entry-content h2[style*="border-bottom"],
.entry-content h2[style*="border-bottom"] {
  display: inline-block !important;
  width: auto !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* スマホ最適化 */
@media (max-width: 768px) {
  .article h2 {
    font-size: 1.1em;
  }
}


/* ================================
   EA一覧部分共通スタイル
   ================================ */
/* === EA一覧ページ用スタイル === */
.ea-list-wrapper {
  text-align: center;
  margin: 2em auto;
  padding: 0 1em;
  max-width: 1200px;
}

.ea-list-title {
  font-size: 2em;
  color: #d4af37;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  margin-bottom: 0.5em;
}

.ea-list-desc {
  color: #444;
  margin-bottom: 2em;
  font-size: 1em;
}

.ea-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5em;
}

.ea-card-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.ea-card-body {
  padding: 1em;
  text-align: left;
}

.ea-card-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5em;
}

.ea-card-meta p {
  font-size: 0.95em;
  margin: 0.2em 0;
  color: #333;
}

.ea-card-excerpt {
  font-size: 0.9em;
  color: #555;
  margin-top: 0.8em;
}

@media (max-width: 768px) {
  .ea-card-thumb img {
    height: 160px;
  }
}

.ea-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.ea-card-content {
  padding: 16px;
}

.ea-card-content h3 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 8px;
}

.ea-card-content p {
  color: #555;
  font-size: 0.95em;
  margin-bottom: 12px;
}

.ea-card-link {
  text-decoration: none;
  color: inherit;
}

/* ====== EAカード ====== */
.ea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.ea-card-body {
  padding: 10px;
  text-align: center;
}

.ea-card-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* === EAカード：ベース === */
.ea-card {
  display: block;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: #000;
}

.ea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

/* === サムネ（見切れさせない版）=== */
.ea-card .ea-thumb {
  width: 100%;
  height: 140px;
  /* 横はそのまま、縦だけ低めに */
  background: #f7f7f7;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ea-card .ea-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  /* ←見切れ防止 */
  object-position: center !important;
  display: block;
}

/* === 本文 === */
.ea-card-content {
  padding: 16px;
  text-align: left;
}

.ea-card-content h3 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 8px;
}

.ea-card-content p {
  color: #555;
  font-size: .95em;
  margin-bottom: 12px;
}

/* === 詳細リンク === */
.ea-card .ea-link {
  display: inline-block;
  color: #d4af37;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all .2s ease;
}

.ea-card .ea-link:hover {
  border-color: #d4af37;
  color: #000;
}

/* スマホ時は少し背を低くする場合 */
@media (max-width: 768px) {
  .ea-card .ea-thumb {
    height: 120px;
  }
}


/* ================================
   EA詳細ページ共通スタイル
   ================================ */

/* ========== 全体レイアウト ========== */
.ea-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  color: #333;
}

/* 記事タイトル */
.ea-post-title {
  text-align: center;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

/* ========== カード風EA概要 ========== */
.ea-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.ea-card h2 {
  font-size: 1.4em;
  color: #222;
  margin-bottom: 10px;
}

.ea-meta {
  margin-bottom: 15px;
  font-size: 0.95em;
  color: #555;
}

.ea-meta span {
  display: inline-block;
  margin-right: 15px;
  color: #333;
}

/* ========== タブ ========== */
.ea-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.ea-tab {
  padding: 10px 25px;
  cursor: pointer;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid transparent;
  background-color: #f8f8f8;
  border-radius: 5px 5px 0 0;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.ea-tab:hover {
  background-color: #e8e8e8;
}

.ea-tab.active {
  color: #d1b357;
  /* 落ち着いた金色 */
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom: 2px solid #d1b357;
}

/* ========== テーブル ========== */
.ea-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.ea-table th,
.ea-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}

.ea-table th {
  background-color: #fafafa;
  color: #d1b357;
  /* 金色 */
  width: 25%;
}

.ea-table td {
  color: #333;
}

/* ========== 感想 ========== */
.ea-comment {
  background: #fff;
  border-left: 4px solid #d1b357;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.ea-comment h3 {
  margin-bottom: 10px;
  color: #222;
}

.ea-date-meta {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.ea-post-date,
.ea-updated-date {
  margin-right: 10px;
}

.ea-new-label {
  display: inline-block;
  background: #ff4d4d;
  color: #fff;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 8px;
  animation: blink 1.2s infinite alternate;
}

/* NEWラベルの点滅アニメーション */
@keyframes blink {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}


/* ========== スマホ対応 ========== */
@media screen and (max-width: 768px) {

  .ea-table th,
  .ea-table td {
    display: block;
    width: 100%;
  }

  .ea-table tr {
    display: block;
    margin-bottom: 10px;
  }

  .ea-tab {
    padding: 8px 15px;
    font-size: 0.9em;
  }
}

/* 満足度カード */
.ea-rating-box {
  background-color: #fff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ea-rating-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding-bottom: 5px;
}

.ea-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.ea-rating .star {
  font-size: 1.6rem;
  color: #d4af37;
  /* ゴールド */
  line-height: 1;
}

.ea-rating .star.empty {
  color: #ccc;
}

.ea-rating .rating-number {
  font-size: 1rem;
  color: #444;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .ea-rating .star {
    font-size: 1.3rem;
  }
}


/* ★ 重複表示防止 — 他テーマやプラグインで追加された擬似要素を無効化 */
.star::before,
.star::after {
  content: none !important;
}


/* EA検索画面 */
.ea-search-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.ea-search-title {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

/* ===== 検索フォーム ===== */
.ea-search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.ea-search-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.ea-search-form input,
.ea-search-form select {
  width: 100%;
  padding: 8px;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.ea-search-form button {
  grid-column: 1 / -1;
  padding: 10px 20px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: 0.3s;
}

.ea-search-form button:hover {
  background: #005f8d;
}

/* ===== 検索結果テーブル ===== */
.ea-results-table {
  width: 100%;
  table-layout: auto;
  /* 自動幅調整 */
  border-collapse: collapse;
  font-size: 0.75rem;
  /* フォントサイズ小さめ */
}

.ea-results-table th,
.ea-results-table td {
  padding: 6px;
  white-space: nowrap;
  /* 横にはみ出す場合はスクロールで対応 */
  border: 1px solid #ddd;
  color: #000;
  /* 値部分文字色黒 */
}

/* ヘッダー行 */
.ea-results-table thead th {
  position: sticky;
  top: 0;
  background-color: #cce4f6;
  /* ヘッダー背景 */
  color: #000;
  font-weight: bold;
  z-index: 2;
  /* 全体ヘッダーより高めに */
}

/* 左列固定（EA名） */
.ea-results-table th:first-child,
.ea-results-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #cce4f6;
  /* ヘッダーと値列両方 */
  z-index: 3;
  /* 左列はヘッダーより高くする */
}

/* 左上セル（ヘッダーのEA名） */
.ea-results-table thead th:first-child {
  z-index: 4;
  /* 左上セルだけさらに高く */
}

/* 数値列右詰め */
.ea-results-table td.numeric,
.ea-results-table th.numeric {
  text-align: right;
}

/* ================================
   左上ヘッダーセル完全固定対策
   ================================ */

/* 左列固定（ヘッダー・ボディ共通） */
.ea-results-table th:first-child,
.ea-results-table td:first-child {
  position: sticky;
  left: 0;
  background-color: #cce4f6;
  z-index: 5;
  /* 通常より高めに */
}

/* ヘッダー行全体 */
.ea-results-table thead th {
  position: sticky;
  top: 0;
  background-color: #cce4f6;
  color: #000;
  font-weight: bold;
  z-index: 4;
}

/* 左上セル（ヘッダー×左列交差） */
.ea-results-table thead th:first-child {
  position: sticky;
  top: 0;
  left: 0;
  background-color: #b8d8ef;
  /* 少し濃くして強調 */
  z-index: 6;
  /* 一番上に表示 */
}


/* モバイル対応 */
@media screen and (max-width: 768px) {
  .ea-results-table {
    font-size: 0.65rem;
  }

  .ea-search-form {
    grid-template-columns: 1fr;
  }
}

/* 固定列の背景を統一 */
.dataTables_wrapper .DTFC_LeftBodyLiner,
.dataTables_wrapper .DTFC_LeftHeadWrapper {
  background-color: #cce4f6;
}

/* 左列の見た目を同じに */
.DTFC_LeftBodyWrapper table,
.DTFC_LeftHeadWrapper table {
  border-collapse: collapse;
}

.DTFC_LeftBodyWrapper td,
.DTFC_LeftHeadWrapper th {
  background-color: #cce4f6;
  color: #000;
  font-weight: bold;
  border-right: 1px solid #bbb;
}

/* ===============================
   DataTables 固定列の左上ヘッダー固定対策
   =============================== */

/* 固定列ヘッダー領域を最前面に */
.DTFC_LeftHeadWrapper {
  z-index: 9999 !important;
  position: relative !important;
}

/* 左上ヘッダーセル（EA名）を明確に見せる */
.DTFC_LeftHeadWrapper th {
  background-color: #b8d8ef !important;
  /* ヘッダー強調 */
  color: #000 !important;
  font-weight: bold;
  border-right: 1px solid #999;
}

/* 固定列ボディの背景合わせ */
.DTFC_LeftBodyWrapper td {
  background-color: #cce4f6 !important;
  color: #000 !important;
  border-right: 1px solid #bbb;
}

/* 通常ヘッダーより上に表示（z-index競合防止） */
.dataTables_scrollHead {
  z-index: 1 !important;
}

/* ========================================
   DataTables 固定左上セル重なり対策（決定版）
   ======================================== */

/* 固定列のヘッダー（左上セル）を最前面に */
.DTFC_LeftHeadWrapper th:first-child {
  position: relative !important;
  z-index: 9999 !important;
  background-color: #b8d8ef !important;
  /* 見やすい色 */
  color: #000 !important;
  font-weight: bold;
  border-right: 1px solid #999;
}

/* 通常ヘッダーよりも固定ヘッダーを上に */
.DTFC_LeftHeadWrapper {
  z-index: 9998 !important;
}

/* 固定列のボディ部分も重なり対策 */
.DTFC_LeftBodyWrapper td:first-child {
  position: relative !important;
  z-index: 9997 !important;
  background-color: #cce4f6 !important;
  color: #000 !important;
  border-right: 1px solid #bbb;
}

/* 通常ヘッダーは下に配置 */
.dataTables_scrollHead {
  z-index: 1 !important;
}


/* =========================
   EA検索テーブル表示最適化 強制上書き
   ========================= */
/*
.ea-search-wrapper .ea-results-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: 20px !important;
  font-size: 0.85rem !important;
  table-layout: fixed !important;
  word-wrap: break-word !important;
  color: #111 !important;
}

.ea-search-wrapper .ea-results-table th,
.ea-search-wrapper .ea-results-table td {
  padding: 8px 10px !important;
  border: 1px solid #ddd !important;
  text-align: left !important;
  color: #111 !important;
}

.ea-search-wrapper .ea-results-table th {
  background-color: #0073aa !important;
  color: #fff !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.ea-search-wrapper .ea-results-table tbody tr:nth-child(even) {
  background: #f8f8f8 !important;
}

.ea-search-wrapper .ea-results-table tbody tr:nth-child(odd) {
  background: #fff !important;
}

.ea-search-wrapper .ea-results-table tbody tr:hover {
  background: #f0f7ff !important;
}

.ea-results-container {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

@media screen and (max-width: 768px) {
  .ea-search-wrapper .ea-results-table {
    font-size: 0.8rem !important;
  }
}*/


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

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

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

/* ===== EAセクション ===== */
.ea-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.section-title {
  color: #d4af37;
  font-size: 1.8rem;
  margin-bottom: 25px;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding-bottom: 5px;
}

.ea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ea-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
}

.ea-item:hover {
  transform: translateY(-4px);
}

.ea-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ea-item h3 {
  font-size: 1rem;
  margin: 10px;
  color: #222;
}

/* ===== ボタン群 ===== */
.top-links {
  text-align: center;
  margin: 50px 0 80px;
}

.btn-gold,
.btn-outline {
  display: inline-block;
  margin: 10px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.btn-gold {
  background: #d4af37;
  color: #111;
}

.btn-outline {
  border: 2px solid #d4af37;
  color: #d4af37;
}

.btn-outline:hover {
  background: #d4af37;
  color: #111;
}

/* ===== EAカード（トップページ） ===== */
.ea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.ea-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.ea-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.ea-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ea-item-body {
  padding: 14px 16px;
  text-align: center;
}

.ea-item-body h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 700;
  color: #222;
}


/* 星評価（SVG風ゴールド） */
.stars::before {
  content: '★★★★★';
  letter-spacing: 2px;
  background: linear-gradient(90deg, #d4af37 calc(var(--rating, 0) / 5 * 100%), #ccc calc(var(--rating, 0) / 5 * 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  text-align: center;
}

[data-rating] {
  --rating: attr(data-rating number);
}

/*
.stars::before {
  content: '★★★★★';
  letter-spacing: 2px;
  background: linear-gradient(90deg, #d4af37 calc(var(--rating) / 5 * 100%), #ccc calc(var(--rating) / 5 * 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.1rem;
  display: block;
  text-align: center;
}

.stars::before {
  content: "★★★★★";
  letter-spacing: 2px;
  background: linear-gradient(90deg, #d4af37 calc(var(--rating) / 5 * 100%), #ccc calc(var(--rating) / 5 * 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}*/

/* 星評価（正確なクリップ方式） */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  /* 数字との間隔 */
  line-height: 1;
}

.stars-bg,
.stars-fg {
  position: relative;
  display: inline-block;
  font-size: 1.1rem;
  letter-spacing: 2px;
  font-family: Menlo, Consolas, monospace;
  /* 幅が安定するフォント */
}

.stars-bg {
  color: #ccc;
  /* 灰色の土台 */
}

.stars-fg {
  color: #d4af37;
  /* 金色の前面 */
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  /* ← 幅％でクリップ */
  pointer-events: none;
}

.stars-num {
  font-size: 0.9rem;
  color: #555;
}

/* 親が position:relative を持っていないと fg の絶対配置が効かないため */
.stars {
  position: relative;
  padding-right: 2px;
  /* ほんの少しだけ余白 */
}

.section-title {
  color: #d4af37;
  font-size: 1.8rem;
  margin-bottom: 25px;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding-bottom: 5px;
}

@media (max-width: 768px) {
  .ea-item img {
    height: 140px;
  }

  .ea-item-body h3 {
    font-size: 0.95rem;
  }
}


/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .ea-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}

/* === サイドバー全体 === */
.sidebar {
  padding: 15px;
}

/* === バナー系 === */
.about-banner,
.banner-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  text-align: center;
  margin-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.about-banner {
  background: linear-gradient(135deg, #fff7da, #fef3c7);
  border: 2px solid #d4af37;
}

.about-banner-content {
  padding: 25px 15px;
}

.about-banner-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 8px;
}

.about-banner-content p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
}

.banner-link {
  border-radius: 12px;
  padding: 20px 10px;
}

.banner-link.gold-gradient {
  background: linear-gradient(135deg, #d4af37, #f2d785);
  color: #111;
}

.banner-link.gold-gradient:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.banner-link.outline-gold {
  border: 2px solid #d4af37;
  background: #fff;
}

.banner-link.outline-gold:hover {
  background: #fff8e1;
  transform: translateY(-4px);
}

.banner-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.banner-content p {
  font-size: 0.85rem;
  color: #555;
}

/* === 最新EAリスト === */
.widget_latest_ea {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.widget_latest_ea .widget-title {
  font-size: 1rem;
  font-weight: bold;
  color: #d4af37;
  border-bottom: 2px solid #d4af37;
  margin-bottom: 10px;
  padding-bottom: 3px;
}

.ea-latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ea-latest-list li {
  margin-bottom: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ea-latest-list li a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}

.ea-latest-list li a:hover {
  color: #d4af37;
}

/* ====== メインレイアウト（右サイドバー） ====== */
#main.site-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メインコンテンツ */
#content.content {
  flex: 1;
  min-width: 0;
}

/* サイドバー固定 */
.sidebar-fixed {
  position: sticky;
  top: 100px;
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  height: fit-content;
}

/* ====== キービジュ ====== */
.hero-section {
  background: url('/wp-content/themes/cocoon-child-master/images/hero-bg.png') center/cover no-repeat;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  border-radius: 10px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.hero-btn {
  display: inline-block;
  background: #d4af37;
  color: #111;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.hero-btn:hover {
  background: #ffda6b;
}



/* ===== CTA ===== */
.top-links {
  text-align: center;
  margin: 50px 0 80px;
}

.btn-gold,
.btn-outline {
  display: inline-block;
  margin: 10px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}

.btn-gold {
  background: #d4af37;
  color: #111;
}

.btn-outline {
  border: 2px solid #d4af37;
  color: #d4af37;
}

.btn-outline:hover {
  background: #d4af37;
  color: #111;
}

/* ===== サイドバー ===== */
.sidebar-fixed h3 {
  color: #d4af37;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.sidebar-fixed ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-fixed li {
  border-bottom: 1px solid #eee;
  padding: 6px 0;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-fixed li a {
  color: #333;
  text-decoration: none;
}

.sidebar-fixed li a:hover {
  color: #d4af37;
}

/* ===== サイト紹介バナー ===== */
.sidebar-about {
  background: linear-gradient(135deg, #fafafa, #fff);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.sidebar-about h4 {
  color: #d4af37;
  margin-bottom: 8px;
}

/* ===== バナーリンク ===== */
.sidebar-banner {
  display: block;
  background: #fff8e1;
  border: 2px solid #d4af37;
  border-radius: 10px;
  text-align: center;
  padding: 12px 10px;
  font-weight: bold;
  color: #111;
  text-decoration: none;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.sidebar-banner:hover {
  background: #d4af37;
  color: #fff;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  #main.site-main {
    flex-direction: column;
  }

  .sidebar-fixed {
    width: 100%;
    position: static;
    margin-top: 20px;
  }
}


/* ===== カスタム・ヘッダーバー共通 ===== */
.site-topbar {
  position: sticky;
  /* スクロールで追従 */
  top: 0;
  z-index: 9999;
  border-bottom: 1px solid #e9e9e9;
  backdrop-filter: saturate(180%) blur(6px);
}

.site-topbar__inner {
  max-width: 1200px;
  /* コンテナ幅 */
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 左：サイトタイトル */
.site-topbar__brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

/* 右：メニュー */
.site-topbar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.topnav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}

.topnav__item .dashicons {
  font-size: 18px;
}

/* 検索ボックス */
.topnav__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 6px 4px 10px;
  border-radius: 9999px;
  border: 1px solid #ddd;
  background: #fff;
}

.topnav__search input[type="search"] {
  border: none;
  outline: none;
  background: transparent;
  min-width: 200px;
  /* PC 幅 */
  font-size: 0.95rem;
}

.topnav__search-btn {
  border: none;
  background: #d4af37;
  color: #111;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.topnav__search-btn .dashicons {
  line-height: 1;
}

/* —— 明るめテーマ —— */
.site-topbar {
  background: #fafafa;
  /* 明るめ */
  color: #222;
}

.site-topbar a {
  color: #222;
}

.site-topbar .topnav__item:hover {
  background: #f1f1f1;
}

/* —— 濃色テーマ（使いたい場合 .site-topbar に is-dark を付ける） —— */
.site-topbar.is-dark {
  background: #202329;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .12);
}

.site-topbar.is-dark a {
  color: #fff;
}

.site-topbar.is-dark .topnav__item:hover {
  background: rgba(255, 255, 255, .08);
}

.site-topbar.is-dark .topnav__search {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .18);
}

.site-topbar.is-dark .topnav__search input {
  color: #fff;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .site-topbar__inner {
    gap: 12px;
  }

  .topnav__search input[type="search"] {
    min-width: 140px;
  }
}

@media (max-width: 600px) {
  .site-topbar__inner {
    flex-wrap: wrap;
  }

  .site-topbar__brand {
    margin-bottom: 6px;
  }

  .topnav__search input[type="search"] {
    min-width: 120px;
  }
}

/* Cocoon の標準ナビ要素を非表示に（必要なときだけ） */
#navi,
.global-nav {
  display: none !important;
}



/* ===== フッター：EA新着ブロック ===== */
.footer-ea-block {
  padding: 24px 0 8px;
  border-top: 1px solid #e9e9e9;
}

.footer-ea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* PCは左右2カラム */
  gap: 24px;
  align-items: start;
}

.footer-col-title {
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: #d4af37;
  border-bottom: 2px solid #f0e3ba;
  padding-bottom: 4px;
}

.footer-ea-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-ea-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}

.footer-ea-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 54px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.footer-ea-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* 2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #333;
  line-height: 1.4;
  font-size: .95rem;
}

.footer-ea-empty {
  color: #666;
  font-size: .9rem;
  padding: 6px 0;
}

.footer-ea-list a {
  text-decoration: none;
}

.footer-ea-list a:hover .footer-ea-title {
  color: #d4af37;
}

/* 免責 */
.footer-disclaimer {
  margin: 18px 0 0;
  padding: 12px 14px;
  font-size: .9rem;
  line-height: 1.6;
  color: #555;
  background: #fffdf6;
  border: 1px solid #f3e3a8;
  border-radius: 8px;
}

@media (min-width: 1024px) {

  /* Cocoonのコンテナ幅を上書き（必要なものに広めのmax-widthを付与） */
  #footer-in .container,
  #footer-bottom .container,
  #footer .footer-widgets,
  #footer .widget-area,
  #footer .container {
    max-width: 1440px !important;
    /* お好みで 1360 / 1400 など */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== フッター新着：PCで“サムネ横・タイトル右”に並べる ===== */
@media (min-width: 1024px) {

  /* カラムを少しワイドに（各カラムの最小幅を確保） */
  .footer-ea-grid {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
    column-gap: 28px;
  }

  /* アンカー自体を横並びに */
  .footer-ea-list li a,
  .footer-ea-item>a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    text-decoration: none;
  }

  /* サムネ：サイズは固定のまま、中身は縮小表示（見切れ防止） */
  .footer-ea-list li img,
  .footer-ea-item img {
    max-width: 160px;
    /* 上限だけ決める */
    max-height: 90px;
    /* 上限だけ決める */
    width: auto;
    /* ← どちらかは auto */
    height: auto;
    /* ← どちらかは auto */
    object-fit: unset;
    /* 不要だが明示的に無効化 */
    object-position: initial;
    background: transparent;
    /* レターボックスの下地も消す */
    border: none;
    /* 不要なら枠も外す */
    box-shadow: none;
    flex: 0 0 auto;
    /* 画像幅で確保して縮まない */
  }

  /* タイトルは右側で可変幅＋2行で省略 */
  .footer-ea-title {
    flex: 1;
    min-width: 0;
    /* ← 折り返しのために重要 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: .95rem;
    color: #222;
  }

  /* ホバーで視認性アップ */
  .footer-ea-list a:hover .footer-ea-title {
    color: #d4af37;
  }
}


/* ===== スマホは従来通り縦積み（念のため整える） ===== */
@media (max-width: 1023px) {
  .footer-ea-list li a {
    display: grid;
    grid-template-columns: 96px 1fr;
    /* 小さめサムネ＋タイトル */
    gap: 10px;
    align-items: center;
  }

  .footer-ea-list li img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 6px;
  }

  .footer-ea-list .footer-ea-title {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* ===== Cocoonのフッターを明るく見やすくする ===== */
/* フッター全体（ウィジェット部） */
#footer,
#footer-in {
  background: #fafafa !important;
  /* 明るいグレー */
  color: #222 !important;
  /* 濃いテキストでコントラスト確保 */
}

/* フッター内リンク色 */
#footer a {
  color: #333 !important;
  text-decoration: none;
}

#footer a:hover {
  color: #d4af37 !important;
  /* ゴールドに合わせる */
  text-decoration: underline;
}

/* ウィジェット列の背景が個別に暗く上書きされる場合の保険 */
#footer .footer-widgets,
#footer .widget,
#footer .widget-area,
#footer .container {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

/* コピーライト帯（最下部） */
#footer-bottom {
  background: #f0f0f3 !important;
  /* 少しだけ濃い明るめグレーで段差表現 */
  color: #333 !important;
  border-top: 1px solid #e5e5e5 !important;
}

/* この記事用ブロックの見やすさも合わせて調整 */
.footer-ea-block {
  background: transparent;
}

/* 親に合わせる */
.footer-ea-title {
  color: #222;
}

.footer-ea-list a:hover .footer-ea-title {
  color: #d4af37;
}

.footer-disclaimer {
  background: #fffef6;
  border-color: #edde8f;
  color: #444;
}


/* ====================================
   EA詳細テンプレート用スタイル
   ==================================== */
/* パンくず */
.breadcrumb-ea {
  font-size: 0.9rem;
  color: #666;
  margin: 10px 0 20px;
  padding: 0 10px;
}

.breadcrumb-ea a {
  color: #555;
  text-decoration: none;
}

.breadcrumb-ea .dashicons {
  font-size: 1rem;
  line-height: 1;
  margin-right: 4px;
}

/* H1タイトル */
h1.ea-entry-title {
  font-size: 1.6rem;
  border-bottom: 2px solid #d4af37;
  border-left: none;
  padding-bottom: 10px;
  margin-bottom: 10px;
  text-align: left !important;
  line-height: 1.4;
  color: #222;
  /* 濃い文字 */
}

/* メタ情報 */
.ea-entry-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 30px;
}

.ea-entry-meta span {
  margin-right: 15px;
}

/* ヒーローエリア */
.ea-hero-box {
  display: flex;
  gap: 30px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ea-hero-img {
  flex: 0 0 35%;
  min-width: 250px;
}

.ea-hero-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.ea-hero-info {
  flex: 1;
}

/* スペック表 */
.ea-spec-table {
  margin: 15px 0 20px;
  font-size: 0.95rem;
  border-collapse: collapse;
}

.ea-spec-table th {
  background: #222;
  color: #d4af37;
  width: 35%;
  padding: 10px 15px;
  border: 1px solid #444;
  vertical-align: middle;
}

.ea-spec-table td {
  color: #111;
  /* 濃い黒に変更 */
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px 15px;
  vertical-align: middle;
}

.ea-spec-table a {
  color: #d4af37;
  text-decoration: underline;
}

/* 評価星 */
.ea-rating-large {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.ea-rating-large .stars {
  font-size: 1.8rem;
}

.ea-rating-large .rating-val {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d4af37;
}

/* CTAボタン */
.btn-hero-cta {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  padding: 12px 0;
  width: 100%;
  max-width: 300px;
  background-color: #d4af37;
  color: #111;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-hero-cta:hover {
  background-color: #ffda6b;
  color: #000;
}

/* セクション見出し H2 (番号なし) */
h2.ea-heading {
  font-size: 1.4rem;
  background: linear-gradient(to right, #222, #333);
  color: #d4af37;
  padding: 12px 20px;
  border-left: 5px solid #d4af37;
  margin: 50px 0 25px;
  border-radius: 4px;
  text-align: left !important;
  display: block !important;
}

/* バックテストブロック */
.ea-bt-block {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px dashed #ddd;
}

.ea-bt-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ea-sub-heading {
  font-size: 1.15rem;
  color: #222;
  font-weight: bold;
  border-left: 6px solid #888;
  padding-left: 12px;
  margin-bottom: 15px;
}

/* データテーブル */
.ea-data-table-wrapper {
  overflow-x: auto;
  margin: 15px 0;
}

.ea-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.ea-data-table th,
.ea-data-table td {
  padding: 12px;
  border: 1px solid #ccc;
  /* 枠線を少し濃く */
}

.ea-data-table th {
  background: #f5f5f5;
  width: 25%;
  font-weight: bold;
  color: #222;
  /* 文字色を濃く */
}

.ea-data-table td {
  width: 25%;
  background: #fff;
  text-align: right;
  color: #111;
  /* 文字色を濃い黒に変更 */
  font-weight: 500;
  /* 少し太く */
}

.ea-data-table td.plus {
  color: #007000;
  font-weight: bold;
}

/* 緑を少し濃く */
.ea-data-table td.minus {
  color: #c00000;
  font-weight: bold;
}

/* 赤を少し濃く */

/* グラフ画像 */
.ea-bt-graph {
  margin-top: 25px;
  text-align: center;
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.graph-caption {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 10px;
  font-weight: bold;
}

.ea-bt-graph img {
  max-width: 100%;
  height: auto;
  border: 1px solid #eee;
  display: block;
  margin: 0 auto;
}

/* メリット・デメリット */
.ea-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.ea-pros-box,
.ea-cons-box {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.ea-pros-box {
  border-top: 4px solid #4CAF50;
}

.ea-cons-box {
  border-top: 4px solid #F44336;
}

.pros-title,
.cons-title {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-weight: bold;
}

.pros-title {
  color: #2e7d32;
}

.cons-title {
  color: #c62828;
}

/* ターゲットボックス */
.ea-target-box {
  background: #fffbea;
  border: 2px dashed #d4af37;
  padding: 25px;
  border-radius: 8px;
  color: #333;
}

/* 最後のCTAエリア */
.ea-cta-area {
  margin: 50px 0;
  text-align: center;
}

.btn-large {
  font-size: 1.3rem;
  padding: 18px 50px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.micro-copy {
  font-size: 0.8rem;
  color: #666;
  margin-top: 10px;
}

/* 内部リンク */
.ea-related-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
  text-align: center;
}

.ea-related-area h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #444;
}

.btn-outline {
  display: inline-block;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-outline:hover {
  background-color: #d4af37;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .ea-hero-box {
    flex-direction: column;
    gap: 20px;
  }

  .ea-hero-img {
    width: 100%;
  }

  .ea-pros-cons-grid {
    grid-template-columns: 1fr;
  }

  h1.ea-entry-title {
    font-size: 1.3rem;
  }

  h2.ea-heading {
    font-size: 1.2rem;
  }

  /* スマホでは表のセルをブロック化して縦積みに */
  .ea-data-table th,
  .ea-data-table td {
    display: block;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  .ea-data-table th {
    background: #eee;
    margin-top: 10px;
    border-bottom: none;
  }

  .ea-data-table td {
    text-align: left;
    padding-left: 20px;
  }
}


/* === Cocoonの既存ナビを丸ごと非表示（PC/モバイル） === */
#navi,
#navi-in,
.navi,
.global-nav,
#header .menu,
.menu-header-container,
.menu-container,
.menu-toggle,
.menu-button,
.mobile-menu-buttons,
#mobile-menu,
.drawer-menu,
#drawer,
#header .navi,
#header .global-nav {
  display: none !important;
}

/* ナビ分の高さ/余白が残る場合の保険 */
#header,
#header-in,
#header-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* ===========================================
   満足度テキスト表示（星なし版）
   =========================================== */
.ea-rating-simple {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: baseline;
  /* 文字の下ラインを揃える */
  gap: 8px;
  background: #fafafa;
  border: 1px solid #eee;
  padding: 8px 16px;
  border-radius: 6px;
}

.ea-rating-simple .rating-label {
  font-size: 1rem;
  font-weight: bold;
  color: #444;
}

.ea-rating-simple .rating-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #d4af37;
  /* ゴールド */
  line-height: 1;
}

/* ===================================================
   レイアウト幅と中身の強制拡大（スクロール強制修正版）
   =================================================== */

/* 1. PC表示時 (1024px以上) のレイアウト設定 */
@media (min-width: 1024px) {

  /* サイト全体の枠：Gridレイアウト */
  body #main.site-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 40px !important;

    max-width: 1460px !important;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start !important;

    /* Flexbox等の無効化 */
    flex-wrap: unset !important;
    justify-content: unset !important;
    box-sizing: border-box;
  }

  /* メインコンテンツエリア */
  body #content.content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: none !important;
    min-width: 0 !important;
    /* Grid拡張防止 */
  }

  /* サイドバーエリア */
  body #sidebar,
  body .sidebar-fixed {
    width: 100% !important;
    min-width: auto !important;
    max-width: 300px !important;
    margin: 0 !important;
    flex: none !important;
  }
}

/* 2. 記事の中身（白い箱）の幅制限解除 */
/* PHPを使わず汎用クラスで指定 */
.ea-detail-article,
.ea-detail-article .entry-content,
article[id^="post-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* ===================================================
   3. テーブルごとの表示最適化
   =================================================== */

/* --- A. 基本データ表（ヒーローエリア内） --- */
/* 画面幅に合わせて文字改行 */
.ea-spec-table {
  width: 100% !important;
  table-layout: fixed !important;
  /* 枠内に収める */
  border-collapse: collapse;
  min-width: 0 !important;
}

.ea-spec-table th,
.ea-spec-table td {
  white-space: normal !important;
  /* 改行許可 */
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  font-size: 0.9rem;
  padding: 10px !important;
  vertical-align: middle;
}

.ea-spec-table th {
  width: 35%;
  background: #f5f5f5;
  color: #d4af37;
  font-weight: bold;
}

/* --- B. バックテスト結果表 --- */
/* ★重要：中身に合わせて表を広げ、はみ出し部分はスクロール */

/* スクロール枠（ラッパー） */
.ea-data-table-wrapper {
  display: block !important;
  width: 100% !important;
  /* 横スクロール強制 */
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;

  margin-bottom: 20px;
  border: 1px solid #eee;
  background: #fff;

  /* スクロールバーが被らないように少し余白 */
  padding-bottom: 5px;
}

/* 表本体 */
.ea-data-table {
  /* ★ここが修正点：100%ではなく、中身の最大幅に合わせる */
  width: max-content !important;
  min-width: 100% !important;

  border-collapse: collapse;
  /* ★Cocoonのfixed(固定幅)を解除し、auto(自動幅)にする */
  table-layout: auto !important;
}

.ea-data-table th,
.ea-data-table td {
  white-space: nowrap !important;
  /* 改行禁止（横に伸ばすため） */
  padding: 12px 15px !important;
  /* 余白を広めにとって見やすく */
  font-size: 1rem;
  vertical-align: middle;
  border: 1px solid #ddd;
}

.ea-data-table th {
  background: #f9f9f9;
  font-weight: bold;
}

/* ===================================================
   4. タブレット・スマホ時のリセット
   =================================================== */
@media (max-width: 1023px) {
  body #main.site-main {
    display: block !important;
    padding: 0 15px;
  }

  body #content.content {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 40px !important;
  }

  body #sidebar,
  body .sidebar-fixed {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
    position: static !important;
  }

  .ea-spec-table th,
  .ea-spec-table td {
    font-size: 0.85rem;
    padding: 8px !important;
  }
}

/* ===========================================
   EAタグ（ハッシュタグ）のデザイン
   =========================================== */
/* 左カラム（画像＋タグ）をまとめる枠 */
.ea-hero-img-area {
  flex: 0 0 35%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  /* gap: 15px;  ← これを削除またはコメントアウトして、下の margin-bottom で調整します */
}

/* 画像自体のスタイル */
.ea-hero-img {
  width: 100%;
  margin-bottom: 1px !important;
}

.ea-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* タグ同士の間隔 */
  margin-bottom: 15px;
}

.ea-tag-link {
  display: inline-block;
  font-size: 0.8rem;
  color: #555;
  background-color: #f0f0f0;
  /* 薄いグレー背景 */
  padding: 4px 12px;
  border-radius: 20px;
  /* 丸みをつける */
  border: 1px solid #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  /* タグ内での改行禁止 */
}

/* ホバー時の色（ゴールドに） */
.ea-tag-link:hover {
  background-color: #d4af37;
  color: #fff;
  border-color: #d4af37;
  text-decoration: none;
}

/* スマホでは文字サイズ微調整 */
@media (max-width: 768px) {
  .ea-tag-link {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
}

/* ===========================================
   EAタグ一覧ページのデザイン
   =========================================== */
.ea-archive-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.ea-archive-title {
  font-size: 1.8rem;
  color: #333;
}

.ea-tag-label {
  color: #d4af37;
  /* ゴールド */
  font-weight: bold;
  font-size: 1.2em;
}

.ea-archive-desc {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

/* 一覧グリッドの調整（既存のクラスを再利用していますが念のため） */
.ea-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .ea-archive-title {
    font-size: 1.4rem;
  }

  .ea-list {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   Core Web Vitals 最適化 (モバイルファースト調整)
   =================================================== */

/* 1. スマホでのタップ領域の確保 (ボタン・リンク) */
/* 指で押しやすいよう、タップ可能な要素は最低44pxの高さを確保 */
@media (max-width: 768px) {

  /* リンクボタン、タブ、ページネーション */
  .btn,
  .button,
  .hero-btn,
  .ea-tab,
  .pagination a,
  .ea-related-area a,
  .widget_categories li a,
  .widget_archive li a {
    min-height: 44px;
    /* タップ領域の高さ確保 */
    min-width: 44px;
    /* 幅も確保 */
    padding: 12px 16px;
    /* 余白を広げて押しやすく */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    /* 誤タップ防止の隙間 */
    touch-action: manipulation;
    /* ダブルタップズーム遅延を無効化 */
  }

  /* 内部リンクなどのテキストリンクも行間を広げる */
  .ea-text-content a {
    padding: 4px 0;
    display: inline-block;
  }
}

/* 2. フォントサイズの最適化 (可読性向上) */
/* Google推奨の最低16px以上を確保し、ズーム不要にする */
@media (max-width: 768px) {

  body,
  p,
  li,
  td,
  th,
  .ea-text-content {
    font-size: 16px !important;
    line-height: 1.7;
    /* 行間を広げて読みやすく */
  }

  /* テーブル内の文字は情報量が多いので少し小さくてもOK（14px程度） */
  .ea-spec-table th,
  .ea-spec-table td,
  .ea-data-table th,
  .ea-data-table td {
    font-size: 14px !important;
    line-height: 1.4;
  }
}

/* 3. CLS (Cumulative Layout Shift) 対策 */
/* 画像読み込み中のガタつきを防ぐため、画像の高さを確保 */
.ea-hero-img img,
.ea-bt-graph img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  /* 大まかなアスペクト比を指定（横長画像の場合） */
  display: block;
  background-color: #f5f5f5;
  /* 画像が出るまでの背景色 */
}

/* 4. LCP (Largest Contentful Paint) 対策 */
/* ファーストビュー（ヒーローエリア）の画像表示を優先 */
.ea-hero-img img {
  /* 画像のデコードを優先させる */
  content-visibility: auto;
}