@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: 835px) {

  /* 固定ヘッダー全体 */
  .single-post #header-container.fixed-header {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 38, 75, 0.12);
  }

  /* ロゴとナビを横並びにする */
  .single-post .fixed-header .header-container-in {
    width: 100% !important;
    max-width: 1200px !important;
    height: 72px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 左側のロゴ領域 */
  .single-post .fixed-header .header {
    width: 170px !important;
    flex: 0 0 170px !important;
    background: none !important;
  }

  .single-post .fixed-header .header,
  .single-post .fixed-header .header-in,
  .single-post .fixed-header .logo {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
  }

  /* 固定時に表示するペイセンロゴ */
  .single-post .fixed-header .site-name-text-link {
    display: block !important;
    width: 160px !important;
    height: 60px !important;
    background-image: url("https://marca-tokyo.com/wp-content/uploads/2026/09/ps_icon.png") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
  }

  /* 右側のグローバルナビ */
  .single-post .fixed-header #navi {
    width: auto !important;
    height: 72px !important;
    flex: 1 1 auto !important;
    background: #fff !important;
  }

  .single-post .fixed-header #navi-in,
  .single-post .fixed-header .menu-header,
  .single-post .fixed-header .menu-header > li,
  .single-post .fixed-header .menu-header > li > a {
    height: 72px !important;
  }

  .single-post .fixed-header .menu-header {
    display: flex !important;
    justify-content: flex-end !important;
  }

  .single-post .fixed-header .menu-header > li > a {
    display: flex !important;
    align-items: center !important;
    padding: 0 10px !important;
    color: #10254a !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  .single-post .fixed-header .menu-header > li > a:hover {
    color: #0079d8 !important;
    background: #eaf8f6 !important;
  }
}

/* 固定ナビ左上の空白をなくす（個別記事以外） */
@media screen and (min-width: 835px) {
  body:not(.single-post) #header-container.fixed-header .header {
    display: none !important;
    width: 0 !important;
    flex: 0 0 0 !important;
  }

  body:not(.single-post) #header-container.fixed-header #navi {
    width: 100% !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
  }

  body:not(.single-post) #header-container.fixed-header #navi-in,
  body:not(.single-post) #header-container.fixed-header .menu-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}
