@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 (max-width: 1023px) {
  #navi .navi-in {
    overflow: visible !important;
  }

  #navi .menu-mobile > .menu-item-has-children > .sub-menu {
    left: 0;
    right: auto;
    width: calc(100vw - 24px);
    max-width: 380px;
    max-height: 70vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
  }

  #navi .menu-mobile > .menu-item-has-children > .sub-menu > li {
    width: 100% !important;
    height: auto !important;
    min-height: 46px;
    line-height: 1.4 !important;
  }

  #navi .menu-mobile > .menu-item-has-children > .sub-menu > li > a,
  #navi .menu-mobile > .menu-item-has-children > .sub-menu .caption-wrap {
    display: block;
    height: auto !important;
    line-height: 1.4 !important;
    white-space: normal;
  }

  #navi .menu-mobile > .menu-item-has-children > .sub-menu > li > a {
    padding: 13px 16px;
  }

  #navi .menu-mobile > .menu-item-has-children > .sub-menu .item-description {
    display: none !important;
  }
}
