@charset "UTF-8";
/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ (Elizabeth Edition)
Theme URI: https://wp-cocoon.com/
Author: わいひら
Template: cocoon-master
Version: 1.1.3
*/

/* ====================================
   基本設定・ラベル・余白調整
   ==================================== */
.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; }

/* 広告ラベル */
.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;
}

/* 記事H2見出しの余白 */
.article h2 {
    margin: 2em 0 1em 0;
    padding: 12px 10px 8px 10px;
}

/* 記事本文の段落（pタグ）の下余白 */
.entry-content p {
    margin-bottom: 1em;
}

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

/* 汎用フォントサイズ拡大クラス */
.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;
}

/* ブログカードの広告ラベル */
.pr-card .blogcard {
    position: relative;
}
.pr-card .blogcard::before {
    content: "広告"; /* ※必要に応じて "Ad" や "Sponsored" に変更してな！ */
    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;
}

/* プロフィール欄の調整 */
.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 ;
}

/* ==========================================================================
   ガジェット検証特化：デバイス比較表＆専用ボックス
   ========================================================================== */

/* スマホでも表がはみ出さないための横スクロールコンテナ */
.emichan-table-container,
.device-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0 25px 0;
    border-radius: 8px;
}

/* テーブル全体のスタイリング */
.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;
}

/* Fitbit Air用 オレンジボックス（炎） */
.fitbit-box-air {
    border: 2px solid #ff4500;
    padding: 15px;
    border-radius: 8px;
    background-color: #fff5ee;
    margin-bottom: 20px;
}

/* Fitbit Charge 6用 ブルーボックス（紅葉） */
.fitbit-box-charge6 {
    border: 2px solid #1e90ff;
    padding: 15px;
    border-radius: 8px;
    background-color: #f0f8ff;
    margin-bottom: 20px;
}
/* 2026-07-10 アップデート：日本語・英語切り替えリンク（究極ミニマルテキストデザイン） */
.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;                /* 落ち着いたグレー */
    font-style: italic;         /* アーカイブノートと統一感を持たせる斜体 */
}

/* リンク文字設定（スチールブルーでオシャレなテキストリンクへ） */
.global-lang-link-box a {
    font-weight: normal;        /* 太字をやめてスタイリッシュに */
    color: #557799;             /* アーカイブノートと同じ上品なスチールブルー */
    text-decoration: underline; /* 控えめな下線でテキストリンクらしく */
}

/* マウスを乗せた（ホバー）時 */
.global-lang-link-box a:hover {
    color: #113355;             /* ホバー時だけ優しく色を濃くする */
}

/* 2026-06-09 翻訳リンクボックスの直後にくる「h2」の上部余白を適正化 */
.global-lang-link-box + h2,
.global-lang-link-box + #toc + h2 {
    margin-top: 0.5em; /* Cocoonのデフォルトより狭くして間延びを防ぐ */
}
/* 2026-06-16 ヘッダーのドロップダウンメニューを美しくお化粧する */
#navi .navi-in a {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 親メニュー（Category）にマウスが乗ったときの上品な背景 */
#navi .navi-in > ul > .menu-item-has-children:hover > a {
  background-color: #f5f7fa; /* ほんのり上品な極薄グレー */
}

/* サブメニュー（子階層）の四角い箱をクリーンに整える */
#navi .navi-in .sub-menu {
  background-color: #ffffff; /* パジャマグレーを排除して純白に！ */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 綺麗に浮かび上がらせる上品な影 */
  border-top: 2px solid #333333; /* メニュー上部にキリッと引き締まる細いライン */
  padding: 8px 0;
}

/* 子メニューの中の文字（Fitbit / Cocoon Guide）の配置を美しく整える */
#navi .navi-in .sub-menu a {
  padding: 10px 24px; /* 左側の不自然な空間をなくして綺麗に整列！ */
  background-color: #ffffff;
  color: #333333;
  text-align: left;
  font-size: 14px;
}

/* 子メニューの文字にマウスが乗ったときのオシャレな演出 */
#navi .navi-in .sub-menu a:hover {
  background-color: #f5f7fa; /* マウスを乗せると優しく色が変わる */
  color: #000000;
}
/* 2026-06-17 リストの中の画像の上下余白 */
.entry-content ol img {
  margin: 10px 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: 70px;
    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: 45px;
    height: 45px;
    font-size: 11px;
    line-height: 1.2;
    background-color: #737677;
    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: 22px; 
    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;
}
/* 2026-07-11（色追加）共通のスタイル（赤・緑・青すべてに適用） */
.step-num-red,
.step-num-green,
.step-num-blue {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    font-size: 14px;
    border-radius: 50%;
    margin: 0 4px;
    vertical-align: middle;
}
/* ここから下に、それぞれの「色」だけを個別に指定！ */
.step-num-red {
    background-color: #e53935;
}
.step-num-green {
    background-color: #1db333;
}
.step-num-blue {
    background-color: #0d6cbf;
}

/* 2026-06-22 自動表示のアイキャッチ画像に薄い影と外枠をつける（影で表現） */
.eye-catch img {
    box-shadow: 0 0 0 1px #ccc, 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* 2026-07-10 Cocoon設定で作ったボタンを、さらにオシャレに仕上げる最低限のCSS */
#go-to-top .go-to-top-button {
  width: 60px;                   /* ほんのり大きめの60pxに変更 */
  height: 60px;                  /* ほんのり大きめの60pxに変更 */
  line-height: 60px;             /* 縦幅に合わせて中央に配置 */
  font-size: 32px;               /* 矢印の大きさもバランスよく調整 */
  border-radius: 50% ;           
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) ; 
  transition: all 0.3s ease ;    
}

/* マウスを乗せたときの浮き上がりアニメーション */
#go-to-top .go-to-top-button:hover {
  transform: translateY(-4px) ;  
}
/* 2026-07-10 /* 英語版アーカイブノートの共通ボックス（英文直結・色調整版） */
.archive-note-box {
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  background-color: #fafafa;
}

.archive-note-box p {
  font-size: 0.85em;
  line-height: 1.4;
  color: #777777;
  font-style: italic;
  margin: 0;
}

/* 英文のすぐ後ろに続くリンク文字の装飾 */
.archive-note-box p a {
  color: #557799; /* グレーに馴染む上品なスチールブルー（悪目立ちゼロ！） */
  text-decoration: underline;
  margin-left: 8px; /* 英文との間に心地よい隙間をプラス */
}

.archive-note-box p a:hover {
  color: #113355; /* マウスを乗せたら少し濃くなる親切設計 */
}
/* 2026-07-11 ==========================================================================
   サイドバー：ボックスメニューのアイコン＆ホバー影カラー変更（肉厚版）
   ========================================================================= */

/* 通常時のアイコンの色を変更する（スチールブルー） */
.box-menu-icon {
    color: #4682b4;
}

/* 【これや！】ホバー時の線を2pxに太くして、元のオレンジと同じ美しい厚みを再現！ */
.nwa .box-menu:hover {
    box-shadow: inset 2px 2px 0 0 #4682b4, 2px 2px 0 0 #4682b4, 2px 0 0 0 #4682b4;
}
/* 2026-07-13 /* ==========================================================================
   本文内限定：連番リスト（ol）斜体ドット数字カスタマイズ（目次・STEPは完全除外）
   ========================================================================== */

/* 1. 目次の中（.toc）には絶対に干渉しないよう、通常の本文直下やdiv直下のolのliだけを狙い撃ち */
.entry-content > ol:not(.custom-step-list),
.entry-content div:not([class*="toc"]):not(.toc) > ol:not(.custom-step-list) {
    counter-reset: li;
    list-style: none; /* 本文のデフォルト数字だけを消去 */
    padding-left: 0;
}

.entry-content > ol:not(.custom-step-list) > li,
.entry-content div:not([class*="toc"]):not(.toc) > ol:not(.custom-step-list) > li {
    position: relative;
    padding-left: 1.8em;  /* 数字と本文の間のスキマ */
    line-height: 1.7;
    margin-bottom: 0.5em;
}

/* 2. 本文内のliだけに、えみちゃん理想のオシャレな斜体ドット数字を生成 */
.entry-content > ol:not(.custom-step-list) > li::before,
.entry-content div:not([class*="toc"]):not(.toc) > ol:not(.custom-step-list) > li::before {
    counter-increment: li;
    content: counter(li) ".";
    color: #333333;
    position: absolute;
    left: 0;
    top: 0;
    font-style: italic;
    font-size: 1.15em;
    font-weight: strong;
    text-align: right;
    width: 1.2em;
}

/* 3. 目次（.toc）の中のolとliは、Cocoonデフォルトの数字表示スタイルを完全維持 */
.entry-content .toc ol,
.entry-content [class*="toc"] ol {
    list-style: decimal; /* 目次の中はブラウザ標準の1.2.3.の数字を強制復活！ */
    padding-left: 20px;  /* Cocoon本来のインデントを維持 */
}

.entry-content .toc ol li,
.entry-content [class*="toc"] ol li {
    position: static;
    padding-left: 0;
}
/* 2026-07-13 見出し3（h3）の背景の内側余白を調整してアイコンの左側に息を吹き込む */
.article h3 {
    padding: 10px 15px 10px 16px; /* 左側の余白を「18px」に広げてアイコンの詰まりを解消！ */
}

/* 見出しのアイコン（::before）の右側のスキマもあわせて微調整 */
.article h3::before {
    margin-right: 12px;
}

/* 本文（pタグなど）の左側にほんの少し余白を足して、見出しの背景より上品に字下げする */
.entry-content p,
.entry-content ul,
.entry-content ol {
    padding-left: 10px; /* 本文全体を右に10px引っ込めて、見出しとの美しい段差を演出！ */
}

/* スマホ画面では横幅を広く使いたいので、字下げの余白を少しだけ引き締める */
@media screen and (max-width: 480px) {
    .entry-content p,
    .entry-content ul,
    .entry-content ol {
        padding-left: 4px;
    }
}
/* 2026-07-15 固定ページのアイキャッチ画像の上に余白を作る */
.page .eye-catch-wrap {
  margin-top: 20px;
}