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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.sidebar:not(#slide-in-sidebar) .widget-sidebar {
box-shadow: none;
}

.wp-block-image.alignleft, .wp-block-table.alignleft {
    margin-top: 0 !important;
    margin-right: 5 !important;
    margin-bottom: 0 !important;
    width: auto !important;
    display: table !important; /* もしくは inline-block */
}

#header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: #fff; /* 背景が透けるのを防ぐため白を指定（サイトに合わせて調整） */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 境目を見やすくする影 */
}

#sidebar-scroll {
position: -webkit-sticky !important;
position: sticky !important;
top: 100px !important;
z-index: 10;
display: block !important;
}

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

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

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