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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* スマホ・タブレット用設定 */
/* PCでは完全に非表示 */
.custom-menu-trigger,
.custom-full-menu {
  display: none;
}

/* スマホ・タブレット（991px以下）用設定 */
@media screen and (max-width: 991px) {
  /* ボタン本体 */
  .custom-menu-trigger {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    width: 24px;
    height: 18px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .custom-menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff; 
    transition: all 0.4s ease;
  }
  
  .custom-menu-trigger.is-active span {
    background: #ffffff !important;
  }

  .custom-menu-trigger span:nth-child(1) { top: 0; }
  .custom-menu-trigger span:nth-child(2) { top: 8px; }
  .custom-menu-trigger span:nth-child(3) { bottom: 0; }

  /* バツ印変形 */
  .custom-menu-trigger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .custom-menu-trigger.is-active span:nth-child(2) { opacity: 0; }
  .custom-menu-trigger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

 /* 全面メニュー背景 */
  .custom-full-menu {
    display: flex !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 10000 !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .custom-full-menu.is-active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* --- ここから Cocoon/SILK の背景色干渉をリセット --- */
  .menu-content,
  .menu-content ul,
  .menu-content ul li,
  .menu-content ul li a {
    background: transparent !important; /* 背景を透明に強制 */
    border: none !important;           /* 枠線があれば消す */
    box-shadow: none !important;       /* 影があれば消す */
  }

/* メニューリスト全体を中央に固定 */
  .menu-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 画面の高さ分を確保して中央寄せを確実に */
 transform: translateY(-100px); 
  } 
 
  .menu-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
  }

  .menu-content ul li {
    margin: 15px 0 !important;
  }

  .menu-content ul li a {
 font-weight: bold !important; 
    font-size: 1.0rem !important;
    color: #ffffff !important; /* 文字色を白に */
    text-decoration: none !important;
    letter-spacing: 0.2em;
    display: inline-block;
  }
    /* 項目の頭にロゴ画像を表示 */
  .menu-content ul li a::before {
    content: ""; /* 空にする */
    display: inline-block;
    width: 20px;  /* ロゴを表示したい幅 */
    height: 20px; /* ロゴを表示したい高さ */
    margin-right: 5px; /* 文字との間隔 */
 transform: translateY(2px);
    
    /* 画像の設定 */
    background-image: url("https://irenka.jp/wp-content/uploads/2026/01/img_9766-e1769503412590.png");
    background-size: contain;   /* 枠内に収める */
    background-repeat: no-repeat;
    background-position: center;
    
    opacity: 0.9; /* 好みで少し透かせる */
  }

}

/* =============================================
 * PC表示：左サイドバー完全固定・縦書きレイアウト（全PC対応版）
 * ============================================= */
@media screen and (min-width: 1024px) {
  .header, .nav-menu-content, .breadcrumb, .category-link {
    display: none !important;
  }
}

  /* 2. サイドバー本体：左端の隙間をゼロにして固定 */
  #container { padding-left: 0 !important; margin-left: 0 !important; }
  
  #sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important; /* 左端の隙間を排除 */
    width: 260px !important; 
    height: 100vh !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    float: none !important;
    border: none !important;
    /* 背景画像設定 */
    background-image: url("https://irenka.jp/wp-content/uploads/2026/01/img_9435.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /* 3. メインコンテンツを右にずらす */
  #content {
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
    max-width: none !important;
    padding: 0 !important;
    float: none !important;
  }
  #main { width: 100% !important; padding: 0 !important; margin: 0 !important; }

  /* 4. ロゴと装飾線のサイズ調整 (vh単位で高さを調整) */
  /* 全体の画像ウィジェット共通設定 */
  #sidebar .widget_media_image img {
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* ロゴのみのサイズ（1つ目の画像ウィジェット） */
  #sidebar .widget_media_image:first-of-type img {
    width: 30px !important;
    margin-top: 17vh !important;    /* 画面高に合わせて伸縮 */
    margin-bottom: 15vh !important; 
  }

  /* 装飾用横線のみのサイズ（2つ目の画像ウィジェット） */
  #sidebar .widget_media_image:nth-of-type(2) img {
    width: 300px !important; 
    margin-bottom: 10vh !important; 
  }
/* 1. 親要素：変更なし */
 #sidebar .widget_nav_menu ul {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: center !important;
    align-items: flex-start !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    gap: 1vw !important;
 }

 /* 2. 各項目：ここを▼の基準点に固定 */
 #sidebar .widget_nav_menu li {
    position: relative !important; /* ▼の絶対位置の基準 */
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    min-width: 2rem !important;
 }

 /* 3. リンク要素：サー指定のサイズを維持 */
 #sidebar .widget_nav_menu li a {
    display: block !important;
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    letter-spacing: 0.3em !important;
	text-indent: 0.3em !important; 
    /* paddingで文字の位置を微調整 */
    padding: 30px 0.3vw 5vh 0.3vw !important; 
    text-align: center !important;
 }

 /* 4. ▼アイコン：配置をaの中からliの上端へリマッピング */
 #sidebar .widget_nav_menu li a::before {
    content: "▼" !important;
    position: absolute !important;
    /* aタグのpaddingに左右されず、liの最上部(top:0)に配置 */
    top: 5px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    writing-mode: horizontal-tb !important;
    font-size: 10px !important;
    line-height: 1 !important;
    color: #ffffff !important;
 }
/* 不要なアイコン消去 */
  #sidebar .widget_nav_menu i, .sub-menu-toggle { display: none !important; }

  /* 6. スキン固有の装飾リセット */
  .sidebar .widget { background: transparent !important; border: none !important; box-shadow: none !important; }
}

/* サイドバーのロゴ画像の枠・影・背景を完全に消す */
#sidebar .widget_nav_menu li a::before {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}

/* もし画像自体にテーマの枠線設定が効いている場合 */
#sidebar img {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* スマホ表示 */
/* =============================================
 * スマホ表示：サイドバーを隠し、ヘッダーを復活
 * ============================================= */
@media screen and (max-width: 1023px) {
  /* 1. 固定していたサイドバーを完全に非表示にする */
  #sidebar {
    display: none !important;
  }

  /* 2. PCで消していたヘッダーをスマホだけで復活させる */
  .header, .nav-menu-content {
    display: block !important;
  }

  /* 3. メインコンテンツの左余白を解除して全幅に戻す */
  #content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* 4. スライダーなどの要素もスマホ用の余白にリセット */
  #main {
    padding: 0 !important;
  }
}

/* =============================================
 * 3. スマホ表示：ロゴ中央配置・レイアウト正常化
 * ============================================= */
@media screen and (max-width: 1023px) {
  /* PC用サイドバーを隠す */
  #sidebar { display: none !important; }

  /* 1. ヘッダー自体の高さを確保して中身を見せる */
  .header {
    display: block !important;
    position: relative !important;
    background-color: #fff !important; /* 背景色 */
    min-height: 50px !important;      /* ロゴの高さに合わせて調整 */
    z-index: 100 !important;
  }

  /* 2. ロゴを「画面中央」に強制配置 */
  .logo-header {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    z-index: 20000 !important; /* ここでも高数値を指定 */
  }

  .logo-header img {
    display: block !important;
    max-width: 150px !important;
    height: auto !important;
  }

  /* 3. コンテンツ（スライダー等）をヘッダーの下に正しく配置 */
  #content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 0 !important; /* ヘッダーがrelativeなら0でOK */
    position: relative !important;
    z-index: 1 !important;
  }

  /* 余計な余白をカット */
  #header-container { margin-bottom: 0 !important; }

}

/* --------------------------------------------------
 * サイト全体の基本フォント設定
 * -------------------------------------------------- */
body {
    font-family: 'Jost', 'Noto Sans JP', sans-serif;
    font-weight: 500;
    letter-spacing: 0.07em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------
 * 部分的に明朝体にするための設定
 * -------------------------------------------------- */
.mincho, .font-mincho {
    font-family: 'Shippori Mincho', serif !important;
    font-weight: 400;
    letter-spacing: 0.03em;
}

/* 共通 */
body {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

/* PC用：あらゆる画面幅で「残り領域のセンター」を計算 */
@media screen and (min-width: 1025px) {
  body {
    background-image: url("https://irenka.jp/wp-content/uploads/2026/02/img_9952.png");
    background-attachment: fixed;
    /* 計算式：
       左端から260px（サイドバー分）を確保し、
       残りの100% - 260pxの領域の「半分(50%)」の位置を基準にする
    */
    background-position: calc(260px + (100% - 260px) / 2) top !important;
    background-size: cover;
  }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  body {
    background-image: url("https://irenka.jp/wp-content/uploads/2026/02/img_9954.png");
    background-attachment: scroll;
  }
}

/* スマホ用 擬似パララックス */
@media screen and (max-width: 767px) {

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("https://irenka.jp/wp-content/uploads/2026/02/img_9953.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
  }

  body {
    background: none;
  }
}
/* スマホ・タブレット横向き 擬似パララックス */
@media screen and (max-width: 1024px) and (orientation: landscape) {

  body::before {
    content: "";
    position: fixed;
    top: -10vh;
    left: 0;
    width: 100vw;
    height: 120vh;
    background-image: url("https://irenka.jp/wp-content/uploads/2026/02/img_9953.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
  }

  body {
    background: none;
  }
}


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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