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

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

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

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

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


/*幅調整*/
@media screen and (min-width: 1024px) {
  .wrap {
    max-width: 1400px !important;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .content {
    display: flex;
    gap: 40px;
    max-width: 100% !important;
  }

  .main {
    flex: 1 1 auto;
  }

  .sidebar {
    width: 300px !important;
    max-width: 300px !important;
  }
}

/* 目次ボックスの最大幅を広げる */
#outline {
  max-width: 100% !important; /* ボックス自体を広く */
  width: 100% !important;
}

/* 目次ボックスの全体幅を広げる（親要素） */
.article .toc {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
}

/* 目次リストの中身も広げておく */
.article .toc-list {
  width: 100% !important;
  word-break: break-word;
}

/* スマホでも自然に広がるように */
@media screen and (max-width: 1023px) {
  .article .toc {
    padding-left: 10px;
    padding-right: 10px;
  }
}


/* SNSシェアボタンの上下余白を調整 */
.sns-share {
  margin-top: 0px;
  margin-bottom: 0px;
}

/* SNSシェアボタン内のアイコンやテキストの余白を調整 */
.sns-share-buttons a {
  padding: 0px 0px;
}
