@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){
  /*必要ならばここにコードを書く*/
}

/* ======================================
  グローバルナビ（PC・タブレット用）
====================================== */

/* PC版ナビゲーションのデザイン（通常メニュー） */
@media screen and (min-width: 769px) {
  /* PCナビ項目表示 */
  #navi .custom-nav-item {
    display: block !important;
  }

  /* ◉ 背景グラデーション＆文字整列 */
  #navi .custom-nav-item a {
    display: block;
    padding: 10px 12px;
    text-align: center;
    line-height: 1.4;
    background: linear-gradient(to bottom, #444 50%, #000 50%); /* グラデ背景 */
    text-decoration: none;
    border-top: 1px solid #888;
    border-bottom: 2px solid #111;
    text-shadow: 1px 1px 2px #000;
  }

  /* 英語ラベル */
  #navi .custom-nav-item a .en {
    font-family: 'Georgia', serif;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    display: block;
    margin-bottom: 2px;
  }

  /* 日本語ラベル */
  #navi .custom-nav-item a .jp {
    font-size: 11px;
    color: #ccc;
    display: block;
    margin-top: 0;
    transform: translateY(-2px);
  }

  /* ◉マークなど削除 */
  .custom-nav-item a::before {
    content: none !important;
  }

  /* ホバー時の色変更 */
  #navi .custom-nav-item a:hover {
    background: linear-gradient(to bottom, #555 50%, #111 50%);
    color: #ffd700;
  }
}

@media screen and (min-width: 769px) {
  #navi-in ul.menu-header {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* ← 折り返し防止 */
  }

  #navi-in ul.menu-header li {
    flex: 1 1 auto;
    white-space: nowrap;
  }
}

@media screen and (min-width: 769px) {
  #navi-in {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
}

/* ======================================
  モバイルナビ（スマホ用）
====================================== */

@media screen and (max-width: 768px) {
  #navi .custom-nav-item {
    display: none !important; /* スマホでは #navi のメニュー非表示 */
  }

  /* スマホメニュー用デザイン（.mobile-menu をターゲット） */
  .mobile-menu {
    display: block;
  }

  .mobile-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.95);
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
    position: relative;
  }

  .mobile-menu a::before {
    content: "◉";
    color: #7cb342;
    margin-right: 6px;
    font-size: 10px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-menu a .en {
    display: none !important; /* スマホでは英語非表示 */
  }

  .mobile-menu a .jp {
    display: block;
    font-size: 15px;
    color: #444;
    padding-left: 18px;
    line-height: 1.4;
  }
}
