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

/* ハンバーガー本体 */
#menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: #FDF2E4;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ハンバーガーの3本線 */
#menu-toggle span {
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #04377c;
  transition: all 0.3s ease;
}

#menu-toggle span:nth-child(1) {
  transform: translateY(-8px);
}
#menu-toggle span:nth-child(2) {
  transform: translateY(0);
}
#menu-toggle span:nth-child(3) {
  transform: translateY(8px);
}

/* メニューオープン時のハンバーガー→❌ */
#menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
}
#menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
#menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* 全画面ドロワーメニュー */
.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  overflow-y: auto;
  padding: 30px 20px;
}

/* 表示状態 */
.drawer-menu.open {
  transform: translateY(0);
}

/* メニュー内 */
.drawer-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* セクションタイトル */
.menu-section-title {
  display: block;
  margin: 30px 0 10px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  border-left: 4px solid #f39800;
  padding-left: 10px;
}

/* メニューリンク */
.drawer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.drawer-menu ul li {
  margin: 10px 0;
}
.drawer-menu ul li a {
  font-size: 1em;
  color: #000;
  text-decoration: none;
}
.drawer-menu ul li a:hover {
  text-decoration: underline;
}

/* 中タイトル（セクション名） */
.menu-section-title {
  background-color: #FDF2E4;
  padding: 12px 16px;
  font-weight: bold;
  font-size: 1.1em;
  border-left: 4px solid #f39800;
  color: #333;
  margin: 30px 0 10px;
}

/* メニューリスト */
.drawer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* メニュー項目 */
.drawer-menu ul li {
  border-bottom: 1px solid #ddd;
  position: relative;
}

/* メニューリンク */
.drawer-menu ul li a {
  display: block;
  padding: 14px 16px;
  font-size: 1em;
  color: #000;
  text-decoration: none;
}

/* 右端の▶︎マーク */
.drawer-menu ul li a::after {
  content: "▶";
  color: #f39800;
  font-size: 0.9em;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
