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

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

.ad_center_a8 {
    text-align:center !important;
    transform: translate(3px);
    margin-bottom: 42px !important;
}

.ad_center_rakuten {
    display: flex;           /* Flexboxモードにする */
    justify-content: center; /* 中身を左右中央に寄せる */
    margin-bottom: 40px !important;
}

body:not(#__) .pochipp-box {
  /* 上や左右のmarginはそのまま活かし、下側のmarginだけを上書きします */
  margin-bottom: calc(2em + 12px) !important;
}

/* =======================================
   RTOC（サイドバー）：H3を強制フルオープン（最強指定）
======================================= */
body div#rtoc-mokuji-widget-wrapper .rtoc-mokuji.level-1 li .rtoc-mokuji.level-2 {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 0 !important;
}

/* =======================================
   RTOC：右下の「目次に戻る」ボタンをグレー半透明に（最強指定）
======================================= */
body #rtoc_return a {
    background-color: #444 !important; /* プラグインの青色を上書き！ */
    opacity: 0.6 !important;          /* 60%の半透明 */
    transition: opacity 0.2s;         /* ふわっとした動き */
}

/* 指でタップした瞬間だけ、透明度をなくしてハッキリさせる */
body #rtoc_return a:active,
body #rtoc_return a:hover {
    opacity: 1 !important;
}

/* =======================================
   AI注記表示用（アピールエリア改修）
======================================= */
.appeal-title {
    font-size: 11px !important;
    font-weight: normal !important; /* 太字を打ち消す */
    background-color: #f4f5f7;
}

.appeal-in {
    display: block !important; /* flexを打ち消す */
    height: 0px !important;
    min-height: 0px !important;
    padding: 5px 5px 1px 5px !important;
}

.appeal-content {
    padding: 0 !important;
}

@media screen and (max-width: 834px) {
    .appeal-in {
        padding: 5px 5px 5px 5px !important;
        background-color: white !important;
    }

    .appeal-title {
        font-size: 11px !important;
        color: #999999 !important;
        background-color: white !important;
    }

    body {
        background-color: white !important;
    }
}

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

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

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