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

/* ==========================================================================
   [A] Cocoon デフォルトスタイル領域（テーマ初期コード）
   ========================================================================== */

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

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

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

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


/* ==========================================================================
   ==========================================================================
   ▼▼▼ ここから SmartNavi Lab 独自カスタムCSS（完全統合版） ▼▼▼
   ==========================================================================
   ========================================================================== */

/* ==========================================================================
   PART 1: サイト共通ナビゲーション＆目次制御
   ========================================================================== */

/* 1. PCグローバルナビゲーション（ホバー時強調）
   -------------------------------------------------------------------------- */
.navi-in a {
  position: relative;
  transition: all 0.2s ease;
}

.navi-in a:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  font-weight: bold;
}

.navi-in > ul > li > a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #334155;
}

/* 2. モバイルメニュー（タップ時）
   -------------------------------------------------------------------------- */
.mobile-menu-buttons a:active,
.navi-menu-content a:active {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* 3. 固定ページ・TOPポータルの目次一括非表示
   -------------------------------------------------------------------------- */
.top-portal-container .toc,
.top-portal-container #toc,
.top-portal-container .toc-box {
  display: none !important;
}


/* ==========================================================================
   PART 2: 本文テキスト強調・マルチカラーアンダーバー（視認性強化版）
   ========================================================================== */

/* ① 青マーカー（最安値・結論・確定データ） */
.marker-blue {
  background: linear-gradient(transparent 60%, #cce5ff 60%);
  font-weight: 700;
  padding: 0 2px;
}

/* テーブルセル内の最重要強調（青マーカー仕様） */
.series-section .cell-emphasize-bold,
.cell-emphasize-bold {
  background: linear-gradient(transparent 60%, #cce5ff 60%);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

/* ② 黄・ゴールドマーカー（注目メリット・独自特典） */
.marker-yellow,
.series-section .marker-yellow {
  background: linear-gradient(transparent 60%, #fff2b2 40%);
  font-weight: 700;
  padding: 0 2px;
}

/* ③ 赤・薄ピンクマーカー（注意点・デメリット・警告） */
.marker-red {
  background: linear-gradient(transparent 60%, #ffd6d6 60%);
  font-weight: 700;
  padding: 0 2px;
  color: #ba1a1a;
}

/* ④ 太字＋下線（重要語句・注意点・必須条件） */
.text-bold-underline {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #0056b3;
}

/* ⑤ シンプル太字（新旧クラス統合） */
.text-bold,
.series-section .cell-bold {
  font-weight: 700;
}

/* ⑥ 下線テキスト（グレー系・細線：注記・補足） */
.text-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: #888888;
}

/* 過去記事互換・補助インライン装飾 */
.series-section .cell-bold-red {
  color: #ba1a1a;
  background-color: #ffebeb;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
}

.series-section .cell-emphasize-blue {
  color: #0066cc;
  font-weight: 700;
}

/* 免責事項・注記用テキスト */
.series-section .snl-small-text {
  font-size: 0.82em;
  color: #7c7971;
  margin-top: 12px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.series-section .cell-small-gray {
  font-size: 0.85em;
  color: #8c8980;
  font-weight: normal;
}


/* ==========================================================================
   PART 3: 連載記事（投稿）基本構造・見出し・リスト
   ========================================================================== */

/* 基本セクション構造 */
.series-section {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
  color: #3f3e3b;
  line-height: 1.8;
  margin-bottom: 45px;
}

/* H2見出し（下線アクセント） */
.series-section h2 {
  color: #4a443c;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 10px;
  margin-top: 45px;
  margin-bottom: 20px;
  font-size: 1.35em;
  font-weight: 700;
}

/* H3見出し */
.series-section h3 {
  color: #59564f;
  font-size: 1.15em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

/* リスト装飾 */
.series-section .snl-list {
  margin: 0 0 15px 0;
  padding-left: 22px;
}

.series-section .snl-list li {
  margin-bottom: 10px;
  list-style-type: disc;
}

/* おすすめ・非おすすめ 対比リスト */
.series-section .pro-con-comparison-list {
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.series-section .pro-con-comparison-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95em;
}

.series-section .pro-con-comparison-list li:last-child {
  margin-bottom: 0;
}

.series-section .pro-con-comparison-list.recommend-yes li::before {
  content: '✔';
  position: absolute;
  left: 4px;
  color: #00885a;
  font-weight: 700;
  font-size: 1.1em;
}

.series-section .pro-con-comparison-list.recommend-no li::before {
  content: '×';
  position: absolute;
  left: 4px;
  color: #d9381e;
  font-weight: 700;
  font-size: 1.2em;
  top: -1px;
}

/* タイムライン・ステップフロー */
.series-section .step-timeline-flow {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  position: relative;
  counter-reset: step-counter;
}

.series-section .step-timeline-flow::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 18px;
  width: 2px;
  bottom: 20px;
  background-color: #ebdcc5;
}

.series-section .step-timeline-flow li {
  position: relative;
  margin-bottom: 30px;
  padding-left: 50px;
}

.series-section .step-timeline-flow li:last-child {
  margin-bottom: 0;
}

.series-section .step-timeline-flow li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: 2px;
  left: 2px;
  width: 32px;
  height: 32px;
  background-color: #d4af37;
  color: #ffffff;
  font-size: 0.95em;
  font-weight: 700;
  text-align: center;
  line-height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.series-section .step-timeline-flow .step-block-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #4a443c;
  margin-bottom: 8px;
  display: block;
}

.series-section .step-timeline-flow p {
  margin: 0;
  font-size: 0.95em;
  color: #59564f;
}


/* ==========================================================================
   PART 4: 囲み枠・カードボックス・参照リンク
   ========================================================================== */

/* 1. キーピース枠（重要ポイント・確定版） */
.key-piece-box,
.series-section .key-piece-box {
  position: relative;
  margin: 28px 0;
  padding: 20px 24px;
  background-color: #f0f7ff;
  border: 1px solid #b8daff;
  border-left: 5px solid #0056b3;
  border-radius: 4px;
}

.key-piece-box .piece-title,
.series-section .key-piece-box .piece-title {
  font-size: 1.15em;
  font-weight: 700;
  color: #0056b3;
  margin-top: 0;
  margin-bottom: 10px;
}

/* 2. おすすめまとめ枠（結論・推奨ルート） */
.summary-recommend-box,
.series-section .summary-recommend-box {
  position: relative;
  margin: 28px 0;
  padding: 20px 24px;
  background-color: #fdfefe;
  border: 2px solid #0056b3;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.08);
}

/* 3. 公式参照リンク別枠（エビデンス明記用） */
.reference-link-box,
.series-section .official-reference-box {
  margin: 24px 0 16px;
  padding: 14px 18px;
  background-color: #f8f9fa;
  border-left: 4px solid #0056b3;
  border-radius: 0 4px 4px 0;
  font-size: 0.9em;
  line-height: 1.6;
}

.reference-link-box a,
.series-section .official-reference-box a {
  color: #0056b3;
  text-decoration: underline;
}

.reference-link-box a:hover,
.series-section .official-reference-box a:hover {
  text-decoration: none;
}

/* 4. サブ結果・注意・メリット専用ボックス（過去連載互換） */
.series-section .snl-sub-result-box {
  background-color: #f7f6f0;
  border-left: 4px solid #d4af37;
  padding: 18px 20px;
  margin: 25px 0;
  border-radius: 0 8px 8px 0;
}

.series-section .snl-card.caution-card {
  background-color: #fffafa;
  border: 1px solid #fcdede;
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
}

.series-section .snl-card.criteria-card {
  background-color: #fafdfb;
  border: 1px solid #defceb;
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
}

.series-section .direct-conclusion-box {
  background-color: #fdfbfa;
  border: 3px solid #d4af37;
  padding: 25px;
  margin: 35px 0;
  border-radius: 12px;
}

.series-section .point-checklist-box {
  background-color: #faf9f6;
  border: 1px solid #e1dbcf;
  border-top: 3px solid #d4af37;
  padding: 22px 25px;
  margin: 25px 0;
  border-radius: 0 0 8px 8px;
}


/* ==========================================================================
   PART 5: レスポンシブ比較テーブル
   ========================================================================== */

/* 横スクロール対応コンテナ */
.snl-table-container,
.series-section .snl-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 25px 0;
  width: 100%;
}

/* 比較テーブル基本仕様 */
.series-section .snl-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  min-width: 550px;
}

.series-section .text-center th,
.series-section .text-center td {
  text-align: center;
}

.series-section .snl-comparison-table th {
  background-color: #f2ede4;
  color: #59564f;
  padding: 14px 12px;
  border: 1px solid #dcd6cb;
  font-weight: 700;
}

.series-section .snl-comparison-table td {
  padding: 14px 12px;
  border: 1px solid #dcd6cb;
  background-color: #ffffff;
}

.series-section .stripe-row-a td {
  background-color: #faf9f5;
}

.series-section .snl-comparison-table td.cell-highlight-red {
  background-color: #fff0f0 !important;
  color: #d9381e;
  font-weight: 700;
}

.series-section .snl-comparison-table td.cell-highlight-green {
  background-color: #eafaf1 !important;
  color: #00885a;
  font-weight: 700;
}


/* ==========================================================================
   PART 6: 独立アフィリエイト枠（縮小防止・並列レイアウト）
   ========================================================================== */

.snl-affiliate-isolated-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px auto;
  padding: 12px;
  max-width: 100%;
  box-sizing: border-box;
}

/* スマホ閲覧時のはみ出し防止 */
.snl-affiliate-isolated-box img,
.snl-affiliate-isolated-box iframe {
  max-width: 100% !important;
  height: auto;
}

/* 旧flexコンテナ互換 */
.series-section .affiliate-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 30px 0 10px 0;
  width: 100%;
}

.series-section .affiliate-item {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

@media screen and (max-width: 600px) {
  .series-section .affiliate-flex-container {
    flex-direction: column;
    gap: 20px;
  }
}


/* ==========================================================================
   PART 7: トップポータル専用レイアウト（SmartNavi Lab Top）
   ========================================================================== */

.top-portal-container {
  max-width: 100%;
  margin: 0 auto;
  color: #1e293b;
}

.top-hero-box {
  text-align: center;
  padding: 32px 16px 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.top-hero-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px 0;
  color: #0f172a;
}

.top-hero-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.top-section {
  margin-bottom: 40px;
}

.top-section-title {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  border-left: 4px solid #334155;
  padding-left: 12px;
  margin-bottom: 18px;
}

/* 目的別ナビ（テキストカード） */
.top-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .top-nav-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.top-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px 12px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-nav-card:hover {
  background-color: #f8fafc;
  border-color: #334155;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.top-nav-main {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.top-nav-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* バナー画像グリッド（WordPress自動タグ対策） */
.top-banner-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}

@media screen and (min-width: 768px) {
  .top-banner-grid {
    gap: 16px !important;
  }
}

.top-banner-grid > p,
.top-banner-grid > br {
  display: none !important;
}

.top-banner-item {
  display: block !important;
  overflow: hidden;
  border-radius: 8px;
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100% !important;
}

.top-banner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.top-banner-item img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover;
}

/* 特集ガイドカード */
.top-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
}

@media screen and (min-width: 768px) {
  .top-feature-grid {
    gap: 16px !important;
  }
}

.top-feature-grid > p,
.top-feature-grid > br {
  display: none !important;
}

.top-feature-card {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14px 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  height: 100%;
  box-sizing: border-box;
}

.top-feature-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-card-badge {
  align-self: flex-start;
  background-color: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.feature-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 6px;
}

@media screen and (min-width: 768px) {
  .feature-card-title {
    font-size: 16px;
  }
}

.feature-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}