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

/* ============================================
   Cocoon 全体適用CSS（夢カナLP風）
   - デザインは全体適用（body配下）
   - 「不要要素の非表示」だけはLP用に限定（.page-id-50のまま）
   ============================================ */

/* フォント読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');

/* ============================================
   ■ ベース（全体）
   ============================================ */
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif !important;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.03em;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  background: #fafbfc;
}

/* ============================================
   ■ ヘッダー簡素化（全体）
   ============================================ */
body .header-container {
  border-bottom: 1px solid #e8edf2;
}

/* ============================================
   ■ メインコンテンツ（全体）
   ============================================ */
body .entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 16.5px;
  line-height: 2.05;
}

@media (max-width: 768px) {
  body .entry-content {
    font-size: 15.5px;
    padding: 0 16px;
    line-height: 2.0;
  }
}

/* ============================================
   ■ H1 ページタイトル（全体）
   ============================================ */
body .entry-title {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.55;
  color: #2b3a4e;
  text-align: center;
  margin-bottom: 16px;
  padding: 48px 16px 20px;
}

@media (max-width: 768px) {
  body .entry-title {
    font-size: 22px;
    padding: 28px 8px 16px;
  }
}

/* ============================================
   ■ リード文（タイトル直下）（全体）
   ============================================ */
body .entry-content > p:first-of-type {
  font-size: 16px;
  color: #5a6a7e;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.95;
}

/* ============================================
   ■ H2 見出し（全体）
   ============================================ */
body .entry-content h2 {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 23px;
  font-weight: 900;
  color: #2b3a4e;
  border: none !important;
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%) !important;
  border-left: 5px solid #3b82c4 !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 20px 24px !important;
  margin: 56px 0 24px !important;
  line-height: 1.55;
  position: relative;
}

body .entry-content h2::after {
  display: none;
}

@media (max-width: 768px) {
  body .entry-content h2 {
    font-size: 19px;
    padding: 16px 18px !important;
    margin: 40px 0 20px !important;
  }
}

/* ============================================
   ■ H3 見出し（全体）
   ============================================ */
body .entry-content h3 {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #2b3a4e;
  border: none !important;
  background: none !important;
  padding: 28px 0 12px 0 !important;
  margin: 0 !important;
  line-height: 1.55;
  position: relative;
}

body .entry-content h3::before {
  content: '●';
  color: #3b82c4;
  font-size: 10px;
  margin-right: 10px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  body .entry-content h3 {
    font-size: 18px;
    padding: 24px 0 10px 0 !important;
  }
}

/* ============================================
   ■ 本文段落（全体）
   ============================================ */
body .entry-content p {
  margin-bottom: 24px;
  color: #444;
}

/* ============================================
   ■ 太字の強調（全体）
   ============================================ */
body .entry-content strong {
  color: #2b3a4e;
  font-weight: 700;
  background: linear-gradient(transparent 55%, #fff0b3 55%);
  padding: 0 3px;
}

/* ============================================
   ■ リスト（全体）
   ============================================ */
body .entry-content ul {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 28px 48px;
  margin: 28px 0;
  border: 2px solid #e8edf2;
  box-shadow: 0 2px 8px rgba(59, 130, 196, 0.06);
  list-style: none;
}

body .entry-content ul li {
  margin-bottom: 14px;
  line-height: 1.85;
  color: #444;
  position: relative;
  padding-left: 20px;
}

body .entry-content ul li::before {
  content: '✔';
  color: #3b82c4;
  font-size: 14px;
  font-weight: 700;
  position: absolute;
  left: -4px;
  top: 2px;
}

body .entry-content ul li:last-child {
  margin-bottom: 0;
}

/* ============================================
   ■ テーブル（全体）
   ============================================ */
body .entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 4px 16px rgba(59, 130, 196, 0.1);
  font-size: 15px;
  border: 2px solid #d4e4f2;
}

body .entry-content table thead th,
body .entry-content table tr:first-child th,
body .entry-content table tr:first-child td {
  background: linear-gradient(135deg, #3b82c4, #5a9fd4);
  color: #fff;
  font-weight: 700;
  padding: 16px;
  text-align: center;
  border: none;
  font-size: 14px;
}

body .entry-content table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #e8edf2;
  background: #fff;
  color: #444;
}

body .entry-content table tr:nth-child(even) td {
  background: #f5f9fd;
}

body .entry-content table tr:last-child td {
  border-bottom: none;
}

/* 0円を赤く強調（全体） */
body .entry-content table td strong {
  color: #e63946;
  background: none;
  font-size: 17px;
}

@media (max-width: 768px) {
  body .entry-content table {
    font-size: 13px;
  }
  body .entry-content table td,
  body .entry-content table th {
    padding: 10px 6px;
  }
}

/* ============================================
   ■ 引用ブロック（全体）
   ============================================ */
body .entry-content blockquote {
  background: #fff;
  border: 2px solid #d4e4f2;
  border-left: none;
  border-radius: 20px;
  padding: 32px 28px;
  margin: 28px 0;
  font-style: normal;
  position: relative;
  box-shadow: 0 4px 16px rgba(59, 130, 196, 0.08);
}

body .entry-content blockquote::before {
  content: '💬';
  font-size: 28px;
  position: absolute;
  top: -16px;
  left: 24px;
  background: #fafbfc;
  padding: 0 8px;
}

body .entry-content blockquote p {
  margin-bottom: 14px;
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}

body .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

body .entry-content blockquote strong {
  background: linear-gradient(transparent 55%, #d4e4f2 55%);
}

/* ============================================
   ■ CTAボタン（全体）
   ============================================ */
body .entry-content .btn,
body .entry-content .wp-block-button .wp-block-button__link,
body .entry-content a.btn,
body .entry-content .btn-wrap a,
body .entry-content p > a[href*="yume-kana"] {
  display: block;
  max-width: 540px;
  margin: 20px auto;
  padding: 22px 32px;
  background: linear-gradient(135deg, #f07020, #f59e3f);
  color: #fff !important;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  text-decoration: none !important;
  border-radius: 60px;
  border: none;
  box-shadow: 0 6px 20px rgba(240, 112, 32, 0.35);
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  position: relative;
  line-height: 1.5;
}

body .entry-content .btn:hover,
body .entry-content .wp-block-button .wp-block-button__link:hover,
body .entry-content a.btn:hover,
body .entry-content .btn-wrap a:hover,
body .entry-content p > a[href*="yume-kana"]:hover {
  background: linear-gradient(135deg, #e06010, #f08a2f);
  box-shadow: 0 8px 28px rgba(240, 112, 32, 0.45);
  transform: translateY(-3px);
  color: #fff !important;
  text-decoration: none !important;
}

/* ボタン内要素すべて白・下線なし（全体） */
body .entry-content a.btn *,
body .entry-content .btn-wrap a *,
body .entry-content .wp-block-button a *,
body .entry-content p > a[href*="yume-kana"] * {
  color: #fff !important;
  text-decoration: none !important;
}

body .entry-content .btn-wrap a:visited,
body .entry-content a.btn:visited,
body .entry-content p > a[href*="yume-kana"]:visited {
  color: #fff !important;
  text-decoration: none !important;
}

/* ボタンのパルスアニメーション（全体） */
@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 6px 20px rgba(240, 112, 32, 0.35); }
  50% { box-shadow: 0 6px 30px rgba(240, 112, 32, 0.55); }
}

body .entry-content .btn-wrap a,
body .entry-content p > a[href*="yume-kana"] {
  animation: pulse-shadow 2.5s ease-in-out infinite;
}

body .entry-content .btn-wrap a:hover,
body .entry-content p > a[href*="yume-kana"]:hover {
  animation: none;
}

@media (max-width: 768px) {
  body .entry-content .btn,
  body .entry-content .wp-block-button .wp-block-button__link,
  body .entry-content a.btn,
  body .entry-content .btn-wrap a,
  body .entry-content p > a[href*="yume-kana"] {
    font-size: 16px;
    padding: 18px 20px;
    border-radius: 50px;
  }
}

/* ============================================
   ■ CTA周辺テキスト（全体）
   ============================================ */
body .entry-content .btn-wrap + p,
body .entry-content .wp-block-button + p {
  text-align: center;
  font-size: 13px;
  color: #8899aa;
  margin-top: 8px;
}

/* CTA前の「＼ ○○ ／」テキスト（全体）
   ※ :has() は環境によって無効になる場合あり（装飾が当たらないだけで致命ではない） */
body .entry-content p:has(+ .btn-wrap),
body .entry-content p:has(+ p > a[href*="yume-kana"]) {
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  color: #f07020;
  font-size: 15px;
  margin-bottom: 8px;
}

/* ============================================
   ■ CTA囲みボックス（全体）
   ============================================ */
body .entry-content .blank-box {
  background: linear-gradient(180deg, #f0f7ff 0%, #fff 100%);
  border: 2px solid #d4e4f2;
  border-radius: 20px;
  padding: 36px 24px;
  margin: 48px 0;
  text-align: center;
}

/* ============================================
   ■ 数字のハイライト（全体）
   ============================================ */
body .entry-content strong:has(> em),
body .entry-content em strong {
  font-size: 1.15em;
}

/* ============================================
   ■ セクション間の区切り線（全体）
   ============================================ */
body .entry-content hr {
  border: none;
  border-top: 2px dashed #d4e4f2;
  margin: 48px 0;
}

/* ============================================
   ■ サイドバーなし時の微調整（全体）
   ============================================ */
body .no-sidebar .content,
body.no-sidebar .content {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   ■ パンくずリスト（全体）
   ============================================ */
body .breadcrumb {
  font-size: 12px;
  color: #aab;
  margin-bottom: 8px;
}

/* ============================================
   ■ PR表記（全体）
   ※ 先頭pをPRにする運用だと「リード文」と競合しやすいです。
   ※ ここは元CSSを踏襲しつつ、必要なら運用に合わせて調整してください。
   ============================================ */
body .entry-content > p:first-child {
  font-size: 12px;
  color: #aab;
  text-align: left;
  margin-bottom: 8px;
  border: none;
  background: none;
}

/* ============================================
   ■ フッター（全体でダーク化）
   ※ 全体適用にするとサイト全体のフッターが暗くなります。
   ============================================ */
body #footer {
  background: #2b3a4e;
  color: #8899aa;
}

body #footer a {
  color: #bcc;
}

body #footer a:hover {
  color: #fff;
}

/* ============================================
   ■ アイキャッチ（全体）
   ============================================ */
body .eye-catch img {
  border-radius: 16px;
  margin-bottom: 24px;
}

/* ============================================
   ■ ボタン内 strong の黄色マーカー無効化（全体）
   ============================================ */
body .entry-content .btn strong,
body .entry-content .wp-block-button .wp-block-button__link strong,
body .entry-content a.btn strong,
body .entry-content .btn-wrap a strong,
body .entry-content p > a[href*="yume-kana"] strong {
  background: none !important;
  padding: 0 !important;
}

/* ============================================
   ▼▼▼ ここだけ「LP専用（.page-id-50のまま）」 ▼▼▼
   全体に適用すると、投稿日/関連記事/SNS等が全部消えます。
   必要なら「LPにしたいページだけ」に限定する方式も案内できます。
   ============================================ */

/* 不要要素の非表示（LP専用） */
.page-id-50 .date-tags,
.page-id-50 .post-date,
.page-id-50 .post-update,
.page-id-50 .author-info,
.page-id-50 .entry-categories-tags,
.page-id-50 .related-entries,
.page-id-50 .related-list,
.page-id-50 .sns-share,
.page-id-50 .sns-follow,
.page-id-50 .comment-area,
.page-id-50 .post-navi,
.page-id-50 .under-entry-content {
  display: none !important;
}

/* Cocoonスクリーンショットのアイキャッチ非表示（LP専用） */
.page-id-50 .eye-catch img[src*="screenshot"] {
  display: none;
}
/* ============================================
   テーブル：ヘッダーと縞模様の衝突を修正（上書き）
   ============================================ */

/* ❶ まず「1行目tdをヘッダー扱い」にしていた指定を無効化（保険） */
body .entry-content table tr:first-child td{
  background: #fff !important;
  color: #444 !important;
}

/* ❷ ヘッダーは thead の th だけに適用（確実） */
body .entry-content table thead th{
  background: linear-gradient(135deg, #3b82c4, #5a9fd4) !important;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  border: none;
}

/* ❸ 縞模様は tbody だけで交互に（ヘッダー行を数えない） */
body .entry-content table tbody tr:nth-child(odd) td{
  background: #fff !important;
}
body .entry-content table tbody tr:nth-child(even) td{
  background: #f5f9fd !important;
}
/* ============================================
   表：1行目のセル罫線が消える問題の修正（上書き）
   ============================================ */

/* tbody内のセルは常に「下線＋縦線」を持つ（ヘッダーのborder:none影響を打ち消す） */
body .entry-content table tbody td{
  border-bottom: 1px solid #e8edf2 !important;
  border-right: 1px solid #e8edf2 !important;
}

/* 行の一番左のセルだけ、左線も付ける */
body .entry-content table tbody td:first-child{
  border-left: 1px solid #e8edf2 !important;
}

/* tbodyの1行目は上線も付けて、ヘッダーとの境界を作る */
body .entry-content table tbody tr:first-child td{
  border-top: 1px solid #e8edf2 !important;
}

/* 最終行は下線なし（見た目を綺麗に）※不要なら消してOK */
body .entry-content table tbody tr:last-child td{
  border-bottom: none !important;
}

@media (max-width: 768px) {
  body .entry-content table{
    table-layout: fixed !important; /* 幅配分を安定させる */
  }
  body .entry-content table th:first-child,
  body .entry-content table td:first-child{
    width: 38% !important; /* 35〜45%で調整 */
  }
}
/* ============================================
   テーブル最終版（PCは今のまま / スマホは横スワイプで安定）
   - スクロール担当：.wp-block-table（Gutenbergテーブルの外側）
   - 角丸/枠線も外側で保持して、iOSのスクロール不安定を回避
   ============================================ */

/* --- 共通（PC含む）：ヘッダー判定の事故を防ぐ --- */
/* 「tr:first-child td をヘッダー扱い」するのをやめる */
body .entry-content table thead th{
  background: linear-gradient(135deg, #3b82c4, #5a9fd4) !important;
  color: #fff !important;
  font-weight: 700;
  border: none !important;
  text-align: center;
}

/* 1行目tdを青くしない（theadが無い表にも効く保険） */
body .entry-content table tr:first-child td{
  background: #fff !important;
  color: #444 !important;
}

/* 縞模様はtbodyだけ（theadがある前提で綺麗に） */
body .entry-content table tbody tr:nth-child(odd) td{ background: #fff !important; }
body .entry-content table tbody tr:nth-child(even) td{ background: #f5f9fd !important; }

/* 罫線（tbody） */
body .entry-content table tbody td{
  border-bottom: 1px solid #e8edf2 !important;
  border-right: 1px solid #e8edf2 !important;
}
body .entry-content table tbody td:first-child{
  border-left: 1px solid #e8edf2 !important;
}
body .entry-content table tbody tr:first-child td{
  border-top: 1px solid #e8edf2 !important;
}
body .entry-content table tbody tr:last-child td{
  border-bottom: none !important;
}

/* --- スマホ：横スクロールを安定させる --- */
@media (max-width: 768px){

  /* ① スクロール箱を .wp-block-table にする（最重要） */
  body .entry-content .wp-block-table{
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: 16px;                 /* 角丸は外側に */
    border: 2px solid #d4e4f2;           /* 枠線も外側に */
    box-shadow: 0 4px 16px rgba(59,130,196,0.1);
    background: #fff;
  }

  /* ② table側は「見た目だけ」にして、スクロールを邪魔しない */
  body .entry-content .wp-block-table table{
    width: auto !important;              /* 100%をやめる */
    min-width: 720px;                    /* 横スワイプ用の幅（必要なら760に） */
    border: none !important;             /* 外側に枠線を移した */
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;        /* ← iOSでスクロール殺しがちなので解除 */
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 !important;                /* 外側に任せる */
  }

  /* ③ 文字が縦割れしないように（全部nowrap） */
  body .entry-content .wp-block-table table th,
  body .entry-content .wp-block-table table td{
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  /* ④ 渡航先だけは長いので、2行くらいの自然改行OK */
  body .entry-content .wp-block-table table td:first-child{
    white-space: normal !important;
    min-width: 220px;
    line-height: 1.6 !important;
    text-align: left !important;
  }

  /* ⑤ スマホ時のセルpadding（詰めすぎ防止） */
  body .entry-content .wp-block-table table td,
  body .entry-content .wp-block-table table th{
    padding: 12px 10px !important;
    font-size: 13px !important;
  }
}