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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
.site-name-text,
.logo-text {
  display: none !important;
}
/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/* スマホ・狭い画面（1023px以下）で元のヘッダー画像を横幅ぴったりに縮小表示 */
@media screen and (max-width: 1023px) {
  #header-container,
  .header-container,
  #header,
  .header {
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
  }

  .header-container-in,
  .header-in {
    background-image: none !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  /* 画像内の文字・クマと重複するロゴやテキストをすべて非表示 */
  .logo-menu-button img,
  .logo-header,
  .site-name-text,
  .site-name-text-link::after,
  #header::after {
    display: none !important;
    content: none !important;
  }

  /* 下部の「Scroll」表示を消す */
  .scroll-down,
  .header-scroll,
  .go-to-bottom {
    display: none !important;
  }
}

/* スマホの記事ページ・固定ページ上部の余白を完全に消す */
@media screen and (max-width: 1023px) {
  .single #header-container,
  .single .header-container,
  .single #header,
  .single .header,
  .page #header-container,
  .page .header-container,
  .page #header,
  .page .header {
    aspect-ratio: auto !important;
    height: 60px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
.single .content,
  .page .content {
    margin-top: 0 !important;
    padding-top: 0 !important; /* ← 60px を 0 に変更！ */
  }
}  /* ← 100行目にこれを1つ足す！ */