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

/* ===== 固定ページ用カスタムメニュー ===== */
.custom-page-menu {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    list-style: none;
    padding: 20px;
    margin: 0;
    gap: 20px;
}
.custom-page-menu li {
    flex: 1 1 auto;
    max-width: 150px;
}
.custom-page-menu li a {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
}
.custom-page-menu li a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background-color: transparent;
}

/* スマホ用ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    height: 4px;
    background: #333;
    border-radius: 2px;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
}
.mobile-menu a {
    padding: 20px;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.mobile-menu a:last-child {
    border-bottom: none;
}
@media (max-width: 768px) {
    .custom-page-menu {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}
