@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-06-12 復旧：日本語・英語切り替えボタン用・ミニマルデザイン */
.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-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;
}
/* ===================================================
 * 2026-06-18: えみちゃんサイズ専用！オリジナル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;
}

/* 擬似要素で「STEP 1」の丸ボタンを作成 */
ol.custom-step-list > li::before {
  /* カウンターで数字を自動生成（STEPと数字の間で改行） */
  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;
  
  /* 💡丸の真ん中に線をドンピシャで配置（線の幅が1pxになったので調整） */
  left: 25px; 
  
  top: 50px;     /* えみちゃんの丸の高さ（50px）の下端からスタート！ */
  bottom: -10px; /* 次の丸の少し内側まで線を伸ばす */
  
  /* 💡【細さの調整】ここを「1px」にして線を限界まで細くしたで！ */
  width: 1px; 
  
  /* 💡【細かさの調整】背景画像で「2px塗って2px空ける」超細かい破線を自作！ */
  background-image: linear-gradient(to bottom, #cccccc 50%, rgba(255,255,255,0) 50%);
  background-size: 1px 4px; /* 👈 4pxずつの周期で繰り返すから、めちゃ目の細かい点線になるで！ */
  background-repeat: repeat-y;
  
  z-index: 1;    /* 線の後ろに隠す */
}

/* 💡最後の手順だけは、下に伸ばす破線を消す */
ol.custom-step-list > li:last-child::after {
  display: none;
}
/* 2026-06-18 文章の中で使う赤丸白抜き数字 */
.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; /* 周りの文字と上下中央を揃える */
}