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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* --- パンくず --- */
.breadcrumb {
    padding: 80px 160px;
    background: #f0f0f0;
    font-size: 14px;
}
.breadcrumb span {
    margin-right: 8px;
}
.breadcrumb span::after {
    content: ">";
    margin-left: 8px;
}
.breadcrumb span:last-child::after {
    content: "";
}

/* --- ハンバーガーボタン --- */
.hamburger {
    position: absolute;
    top: 100px;
    left: 10px;
    cursor: pointer;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1100;
}
.hamburger div {
    background: #333;
    height: 4px;
    border-radius: 2px;
}

/* --- メニュー全体 --- */
.menu-overlay {
    position: fixed;
    top: 15%;              /* 上から15% */
    left: 0;
    width: 25%;            /* 横幅25% */
    height: 70%;           /* 高さ70% */
    background: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;

    /* 初期状態は画面外 */
    transform: translateX(-100%);
    transition: transform 0.3s ease;

    /* 立体感 */
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px 8px 8px 0;
}
.menu-overlay.open {
    transform: translateX(0);
}

/* --- 大項目・中項目 --- */
.menu-item {
    margin: 10px 0;
}
.menu-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 6px;
}

/* --- 小項目 --- */
.sub-menu {
    margin-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.sub-menu.open {
    max-height: 500px; /* 十分大きめにして展開可能に */
}
.sub-menu a {
    display: block;
    padding: 6px 10px;
    color: black;
    text-decoration: none;
}
.sub-menu a:hover {
    color: orange;
}

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

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

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