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

/************************************
** 子テーマ用カスタムスタイル
************************************/

/* 記事内見出し */
.article h2 {
  background: #b4e090;
  box-shadow: 0px 0px 0px 5px #b4e090;
  border: dashed 1px #007b43;
  padding: 0.5em;
  color: #454545;
}

.article h3 {
  padding: 0.5em;
  color: #494949;
  background: #f2ffe7;
  border-left: solid 5px #007b43;
}

.tab-caption-box,
.label-box {
  border: none;
}

/************************************
** メニュー（PC 共通）
************************************/
#header-container .navi-in > ul li {
  height: auto;
  font-weight: 600;
  line-height: 1.3;
}

#header-container #navi a {
  color: #3a3a3a;
  padding: 0.8em 1em;
  font-size: 1em;
}

#header-container #navi a:hover {
  color: #a3a3a3;
}

#header-container .navi-in > ul > .menu-item-has-children > a::after {
  top: 0.8em;
  font-size: 1.2em;
  font-weight: 600;
}

#header-container .sub-menu .caption-wrap {
  padding-left: 1em;
}

.navi-in > ul .menu-item-has-description > a > .caption-wrap {
  height: auto;
}

/************************************
** スマホ・タブレット（1030px 以下）
************************************/
@media screen and (max-width: 1030px) {

  /* モバイルメニューを横スクロール */
  #header-container .menu-mobile,
  .navi-in > .menu-mobile {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  /* モバイル用 メニューアイテム */
  #header-container #navi a {
    font-size: 1em;
    padding: 1em 1em;
    color: #333;
  }

  #header-container #navi a:hover {
    color: #a3a3a3;
  }

  /* 子メニューアイコン非表示 */
  #header-container .navi-in > ul > .menu-item-has-children > a::after {
    display: none;
  }

  /* li の高さ調整（ここが文字消失の原因 → 修正済み） */
  #navi .navi-in > .menu-mobile li {
    height: auto;
    line-height: 1.4;
  }

  /* モバイルボタンずれ修正 */
  .mblt-header-mobile-buttons {
    margin-top: 53px;
  }

  #header-container {
    position: relative;
    z-index: 1000;
  }
}

/************************************
** その他のレスポンシブ
************************************/
@media screen and (max-width: 1023px) {
  /* 必要なら追加 */
}

@media screen and (max-width: 834px) {
  /* 必要なら追加 */
}

@media screen and (max-width: 480px) {
  /* 必要なら追加 */
}
/* プロフィール名リンク無効化（Cocoon対応版） */
.author-name a,
.author-box-name a,
.fn a {
  pointer-events: none !important;
  text-decoration: none !important;
  cursor: default !important;
  color: inherit !important;
}
