@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;
}

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

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

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