@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（まるっと。WordPress専用版）
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template: cocoon-master
Version: 1.1.3
*/

/* ====================================
   1. 基本設定・ラベル（解説の補足用）
   ==================================== */
.setting, .setting_g, .reference {
    color: #FFFFFF;
    font-size: 80%;
    padding: 2px 4px 1px;
    border-radius: 2px;
    text-align: center;
    margin-right: 8px;
    vertical-align: 1px;
}
.setting_g { background-color: green; }
.setting { background-color: #1e73be; }
.reference { background-color: #ea5506; }

.cat-label { display: none !important; }

/* ステップ内の注記などに使えるPRラベル（必要に応じて） */
.widget .custom-pr-label,
.entry-content .custom-pr-label {
    display: block;
    text-align: right;
    margin-bottom: 5px;
    line-height: 1;
}
.widget .custom-pr-label span,
.entry-content .custom-pr-label span {
    display: inline-block;
    font-size: 11px;
    color: #773c30;
    background-color: #fcf8f7;
    border: 1px solid #d7a69c;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
}

/* ====================================
   2. 本文レイアウト・装飾の適正化
   ==================================== */
/* 記事本文の段落（pタグ）の下余白を1.8emから1emに調整して読みやすく */
.entry-content p {
    margin-bottom: 1em;
}

/* 記事本文内で使える汎用フォントサイズ拡大クラス */
.entry-content .x2 {
    font-size: 2.0em;
    line-height: 1.2;
    display: inline-block;
}
.entry-content .x3 {
    font-size: 2.5em;
    line-height: 1.2;
    display: inline-block;
}

/* リストの中に画像を置いたときの上下マージン調整 */
.entry-content ol img {
    margin: 10px 0;
}

/* コメントフォームのチェックボックス周りの余白調整 */
.comment-form input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.comment-form > p {
    margin-bottom: 15px;
}

/* ====================================
   3. ブログカード・広告ラベル固定設定
   ==================================== */
.pr-card {
    text-align: left;
    display: flex;
    justify-content: flex-start;
}
.pr-card .blogcard {
    position: relative;
}
.pr-card .blogcard::before {
    content: "広告";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 10px;
    padding: 4px 5px;
    border-radius: 3px;
    z-index: 10;
    pointer-events: none;
    line-height: 1;
}

/* ====================================
   4. ガジェット・設定画面 比較テーブルCSS
   ==================================== */
.emichan-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.device-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 25px;
}

.tracker-compare-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
    background-color: #ffffff;
}
.tracker-compare-table th {
    background-color: #333333;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 12px 10px;
    border: 1px solid #444444;
}
.tracker-compare-table td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid #e0e0e0;
}
.tracker-compare-table td:first-child {
    background-color: #f7f9fa;
    font-weight: bold;
    color: #444444;
    text-align: left;
}
.tracker-compare-table tr:nth-child(even) td {
    background-color: #fcfdfe;
}

/* ====================================
   5. 画像配置・2枚スクショ横並び（スマホ時縦並び）
   ==================================== */
.custom-img-pair {
    justify-content: center;
    align-items: flex-end;
}
.custom-img-pair > div {
    flex: 0 1 400px;
}
.custom-img-pair img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .custom-img-pair {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .custom-img-pair > div {
        flex: 0 1 auto;
        width: 100%;
        max-width: 400px;
    }
    .custom-img-pair .img_margin {
        margin-right: 0;
    }
}

/* ====================================
   6. セキュリティ＆共通ウィジェット設定
   ==================================== */
/* スマホの右下 reCAPTCHAバッジを非表示にして画面を広くする */
.grecaptcha-badge {
    visibility: hidden;
}

/* カスタムHTMLウィジェット内でショートコードを有効化 */
.widget_custom_html {
    content: "enable-shortcode";
}

/* プロフィールボックスの不要なRSSボタン等を非表示 */
.author-box .author-follows {
    display: none;
}
.author-box .author-description p {
    margin-bottom: 0 ;
}
.author-box .author-description div,
.author-box .author-description span {
    margin-top: 5px;
    margin-bottom: 0 ;
}

/* ===================================================
   7. えみちゃんサイズ専用！オリジナルSTEPリスト（極細破線）＆赤丸数字
   =================================================== */
ol.custom-step-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    counter-reset: step-counter;
}

ol.custom-step-list > li {
    position: relative;
    padding-left: 80px;
    padding-bottom: 40px;
    margin-bottom: 0;
}

ol.custom-step-list > li::before {
    counter-increment: step-counter;
    content: "STEP\A " counter(step-counter);
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    font-size: 12px;
    line-height: 1.2;
    background-color: #5bc0de;
    color: #ffffff;
    border-radius: 50%;
    font-weight: bold;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: pre-line;
}

ol.custom-step-list > li::after {
    content: "";
    position: absolute;
    left: 25px; 
    top: 50px;
    bottom: -10px;
    width: 1px;
    background-image: linear-gradient(to bottom, #cccccc 50%, rgba(255,255,255,0) 50%);
    background-size: 1px 4px;
    background-repeat: repeat-y;
    z-index: 1;
}

ol.custom-step-list > li:last-child::after {
    display: none;
}
ol.custom-step-list > li:last-child {
    padding-bottom: 0;
}

/* 本文内で使える赤丸白抜き数字 */
.step-num-red {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    background-color: #e53935;
    color: #ffffff;
    font-size: 14px;
    border-radius: 50%;
    margin: 0 4px;
    vertical-align: middle;
}
/* ====================================
   2026-06-05 新設：スマホの右下 reCAPTCHAバッジを非表示にする
   ==================================== */
.grecaptcha-badge {
    visibility: hidden;
}
/* ==========================================================================
   2026-06-06 英語・日本語切り替えボタン用・ミニマルデザイン（本家完全版）
   ========================================================================== */
.global-lang-link-box {
    text-align: right;          /* 右寄せにして主張を抑える */
    margin: 10px 0;             /* 上下の余白 */
    background: none;           /* 背景のグレーのボックスを消滅させる */
    border: none;               /* 枠線も完全に消滅させる */
    padding: 0;                 /* 内側の余白もなし */
}

/* ボックス内の文字設定 */
.global-lang-link-box p {
    margin: 0;
    font-size: 0.8em;          /* 文字を少し小さくして上品に */
    color: #666;                /* 落ち着いたグレー */
    display: inline-block;      /* 背景をつけるための設定 */
    background: #f7f7f7;        /* るなさん風の薄いグレーの背景 */
    padding: 2px 10px;          /* 文字の周りの程よい余白 */
    border-radius: 4px;         /* ほんの少しだけ角を丸く */
    border: 1px solid #eee;     /* 目立たない薄い枠線 */
}

/* リンク文字設定（下線を消して色をなじませる） */
.global-lang-link-box a {
    font-weight: normal;        /* 太字をやめてスタイリッシュに */
    color: #0066cc;             /* 綺麗なブルー */
    text-decoration: none;      /* 頑固な下線を完全に抹殺！ */
}

/* マウスを乗せた（ホバー）時 */
.global-lang-link-box a:hover {
    text-decoration: underline; /* ホバー時だけ優しく下線を出す */
    opacity: 0.8;
}
/* 2026-06-22 自動表示のアイキャッチ画像に薄い影と外枠をつける（影で表現） */
.eye-catch img {
    box-shadow: 0 0 0 1px #ccc, 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* -----------------------------------------
 * new漆黒スリム：黒枠（CODE）完全同化アコーディオン
 * ----------------------------------------- */
.custom-accordion {
    width: 100%;
    margin: 20px 0;
}

/* =========================================
 * 1. ボタン全体のデザイン（スリムさ・文字サイズ）
 * ========================================= */
.custom-accordion dt {
    /* 🔴【縦のスリムさ調整】前後の数値をいじると縦幅が変わります（現在は上下 7px / 左右 16px） */
    padding: 7px 16px; 
    
    /* 🔴【文字サイズ調整】「コードを見る」の文字の大きさを変更できます */
    font-size: 1rem; 
    
    cursor: pointer;
    color: #fff;
    background-color: #333333;
    border: 1px solid #444444;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

/* マウスを乗せた時 */
.custom-accordion dt:hover {
    background-color: #444444;
}

/* =========================================
 * 2. アイコン（閉じてる時・プラス）のデザイン
 * ========================================= */
.custom-accordion dt::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0fe"; /* 四角プラス */
    
    /* 🔴【アイコンと文字の隙間】右側の文字との距離を調整できます */
    margin-right: 10px; 
    
    /* 🔴【アイコンのサイズ調整】ここを大きくしたり小さくしたりして文字と揃えます */
    font-size: 1rem; 
    
    /* 🔴【中心軸の固定】アイコンの縦の中心を文字と完璧に合わせるおまじない */
    line-height: 1; 
    color: #fff;
}
.custom-accordion dt::after {
    content: "コードを見る";
}

/* =========================================
 * 3. アイコン（開いてる時・マイナス）のデザイン
 * ========================================= */
.custom-accordion dt.active {
    border-bottom: none;
    background-color: #333333;
}
.custom-accordion dt.active::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f146"; /* 四角マイナス */
    
    /* 🔴【重要】開いた時のアイコンサイズも、上の通常時（2番）と「同じ数値」に揃えてな！ */
    font-size: 1rem; 
    
    line-height: 1;
    color: #fff;
}
.custom-accordion dt.active::after {
    content: "コードを閉じる";
}

/* =========================================
 * 4. 中身の箱（黒枠CODEとの合体エリア）
 * ========================================= */
.custom-accordion dd {
    display: none;
    margin: 0;
    padding: 0;
    background: #2f2f2f;
    border: 1px solid #444444;
    border-top: none;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

/* 中のCocoon標準コード枠の余白（一体化のための強制リセット ➔ 1行目の見切れを完璧に防止！） */
.custom-accordion dd pre.wp-block-code,
.custom-accordion dd pre {
    position: relative !important;
    margin: 0 !important;
    padding: 24px 12px 12px 12px !important; /* 🔴上の余白だけ【24px】に広げて「CODE」ラベルと1行目の文字が重なるのを防ぎます！ */
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* すべてのh2の先頭に「クローン」アイコンを表示 */
.article h2::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f24d"; /* fa-clone の文字コード */
    margin-right: 0.6em; /* アイコンと文字の間の隙間 */
}

/* すべてのh3の先頭に「チェック」アイコンを表示 */
.article h3::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f039"; /* fa-check の文字コード */
    margin-right: 0.6em; /* アイコンと文字の間の隙間 */
}
/* 2026-07-06/===================================================
   8. 旧Luxe資産 復活サルベージCSS（完全版）
   =================================================== */

/* 1. インフォボックス（水色枠・ピンク枠の案内ボックス） */
.info-box.information {
    background-color: rgba(108, 166, 205, 0.08); /* Cocoonに馴染む薄い水色 */
    border: 1px solid #6ca6cd;
    border-radius: 4px;
    margin: 15px 0 25px;
    padding: 15px 20px; /* パディングを適正サイズに調整 */
}
.info-box.notice {
    background-color: rgba(251, 240, 208, 0.15); /* 薄い桜・ピンクベージュ */
    border: 1px solid #daa496;
    border-radius: 4px;
    margin: 15px 0 25px;
    padding: 15px 20px;
}

/* 2. リスト装飾（丸数字リスト：青・緑・赤） */
ol.circle_b, ol.circle_g, ol.circle_r {
    counter-reset: li;
    padding-left: 0 !important; /* ボックス内での不要な左パディングを完全に排除 */
    margin: 0 !important;        /* ボックスを押し広げる不要な上下余白をリセット */
}
ol.circle_b li, ol.circle_g li, ol.circle_r li {
    list-style: none !important; /* Cocoonの標準中黒を強制排除 */
    position: relative;
    padding-left: 2.3rem; 
    line-height: 2.2rem;
    margin-bottom: 8px;
}
ol.circle_b li:last-child, ol.circle_g li:last-child, ol.circle_r li:last-child {
    margin-bottom: 0;            /* 最後の項目の下マージンを消して、ボックス内の上下のバランスを均等に */
}
ol.circle_b li::before, ol.circle_g li::before, ol.circle_r li::before {
    counter-increment: li;
    content: counter(li);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1.6rem;
    position: absolute;
    left: 0.2rem;
    top: 50%;
    transform: translateY(-50%); /* 数字の縦軸を完璧に中央揃え */
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    font-weight: bold;
}
ol.circle_b li::before { background: #1e73be; } /* 青丸 */
ol.circle_g li::before { background: green; }   /* 緑丸 */
ol.circle_r li::before { background: #e42527; } /* 赤丸 */

/* 3. 特殊な囲み枠（青・赤・オレンジのタイトル付き枠） */
.ecs-box, .red-box, .orange-box {
    position: relative;
    margin: 25px auto 20px;
    padding: 20px;
    border-radius: 5px;
    background-color: #ffffff;
}
.ecs-box-title, .red-box-title, .orange-box-title {
    position: absolute;
    padding: 0 10px;
    left: 15px;
    top: -12px;
    font-weight: bold;
    background-color: #ffffff; /* 枠線を綺麗にくり抜く白背景 */
    font-size: 110%;
}
.ecs-box { border: 2px solid #1e73be; }
.ecs-box-title { color: #1e73be; }
.red-box { border: 2px solid #e42527; }
.red-box-title { color: #e42527; }
.orange-box { border: 2px solid #ea5506; }
.orange-box-title { color: #ea5506; }

/* 4. 文字装飾（ドット下線・蛍光マーカー・汎用色） */
.dotn {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #0068b7;
    font-weight: bold;
}
.marker {
    background-color: #ffff00;
    padding: 0 2px;
    border-radius: 3px;
}
.pink_line {
    background: linear-gradient(transparent 60%, #ffc0cb 40%);
}
.yellow_line {
    background: linear-gradient(transparent 60%, #febb00 40%);
}
.green { color: #008000; }
.red { color: #ff0000; }
.blue { color: #217db9; }

/* 5. 過去記事文字サイズ適正化（巨大化暴走ストッパー） */
span.x2 {
    font-size: 1.2em !important; /* Cocoonの2倍指定を打ち消し、旧Luxe時代の1.2倍に強制固定 */
    display: inline !important;  /* 改行されずに文字の中に綺麗に収まるように設定 */
}
span.x3 {
    font-size: 1.5em !important; /* Cocoonの2.5倍指定を打ち消し、旧Luxe時代の1.5倍に強制固定 */
    display: inline !important;  /* 綺麗に文章の中に収まるように設定 */
}

/* 6. 記事バージョン情報（グレー・緑枠） */
.ver3 {
    box-sizing: border-box;
    border: 2px solid green;
    border-radius: 5px;
    padding: 3px 10px;
    color: green;
    text-align: center;
    display: inline-block; /* 横幅を文字に合わせる */
    font-weight: bold;
}