@charset "utf-8";
/* ========== menu-hamburger.css (分離版 全体) ========== */
/* 目的：
   - 検索パネル #g-search と ナビパネル #g-nav を独立制御
   - どちらも同じアニメーション/骨格を共有（見た目の差は別途調整可）
   - ハンバーガーボタン .openbtn のアニメと状態管理
   - オーバーレイで背景クリック閉じ
   - スクロール固定 body.no-scroll
*/

/* ------------------------------
   パネル（共通）
------------------------------ */
#g-nav,
#g-search {
  position: fixed;
  z-index: 999;            /* ヘッダーより前面に */
  right: 0;
  top: -120%;              /* 初期は画面外上に退避 */
  width: 70%;
  height: 600px;            /* 表示領域 */
  background: white;
  transition: all 0.6s;
  border-right: 5px solid #FBE673;
  border-left: 5px solid #FBE673;
  border-bottom: 5px solid #FBE673;
  border-radius: 0 0 50px 50px;
	display: flex;
	justify-content: center;
}

/* ========== 右側パネル (#g-nav) を全画面の透明オーバーレイにする ========== */
#g-nav.site-panel-right {
  /* ここでは背景や枠は付けない。全画面の透明レイヤー */
  background: transparent;
  border: none;
  border-radius: 0;
  justify-content: stretch; /* 中身の幅を自由にする */
}

/* ========== 右端に出す白い箱は .panel-inner に当てる ========== */
#g-nav.site-panel-right .panel-inner {
  margin-left: auto;       /* 右端に寄せる */
  width: 40vw;             /* 右パネルの幅（%でもpxでもOK） */
  max-width: 540px;        /* お好みで上限 */
  height: 100%;
  background: #fff;
	left: auto!important;
	right: 0;

  /* 枠と角丸はここに付ける */
  border-right: 5px solid #00C3C5;
  border-left: 5px solid #00C3C5;
  border-bottom: 5px solid #00C3C5;
  border-radius: 0 0 50px 50px;

  padding: 20px;
  box-sizing: border-box;
  overflow: auto;          /* 中身が多い時はスクロール */
}

/* 中身が古いスタイルを引きずらないように最小限リセット */
#g-nav.site-panel-right .headerNav_right {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
}

/* 画像がはみ出さない保険 */
#g-nav.site-panel-right img {
  max-width: 100%;
  height: auto;
}

/* 開いた時の位置（そのままでOK） */
#g-nav.panelactive,
#g-search.panelactive {
  top: 75px;
}

/* 中身スクロール（共通） */
#g-nav.panelactive #g-nav-list,
#g-nav.panelactive .panel-inner,
#g-search.panelactive .panel-inner {
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 86vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* コンテンツ内側の余白（共通ラッパ） */
.panel-inner {
  padding: 15px 0;
	max-width: 1180px;
}

/* ------------------------------
   オーバーレイ
------------------------------ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;            /* パネルの一つ下 */
  transition: opacity .25s;
}
.menu-overlay[hidden] {
  opacity: 0;
  pointer-events: none;
}

/* 背景スクロール固定 */
body.no-scroll {
  overflow: hidden;
}

/* ------------------------------
   ハンバーガーボタン
------------------------------ */
.openbtn {
  cursor: pointer;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  padding-left: 15px;
  position: relative;
  background-color: white; /* 既存踏襲 */
	border-radius: 55%;
	border: solid 1px #00C3C5;
}

/* 三本線 */
.openbtn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background-color: #00C3C5;
  width: 45%;
}
.openbtn span:nth-of-type(1) { top: 20px; left: 20px;}
.openbtn span:nth-of-type(2) { top: 33px; left: 20px;}
.openbtn span:nth-of-type(3) { top: 46px; left: 20px;}

/* アクティブ（×に変形） */
.openbtn.active span:nth-of-type(1) {
  top: 27px;
  left: 13px;
  transform: translateY(6px) rotate(-45deg);
  width: 65%;
}
.openbtn.active span:nth-of-type(2) { opacity: 0; }
.openbtn.active span:nth-of-type(3) {
  top: 39px;
  left: 13px;
  transform: translateY(-6px) rotate(45deg);
  width: 65%;
}

/* ------------------------------
   キーボード操作・アクセシビリティ
------------------------------ */
.openbtn:focus-visible,
.header_search:focus-visible,
#g-nav a:focus-visible,
#g-search a:focus-visible,
.menu-overlay:focus-visible {
  outline: 3px solid #ffb703;   /* 視認性の高いフォーカス */
  outline-offset: 2px;
}

/* 動きを減らす設定に配慮 */
@media (prefers-reduced-motion: reduce) {
  #g-nav, #g-search, .openbtn span, .menu-overlay {
    transition: none !important;
  }
}

/* ------------------------------
   既存レイアウト補助（任意）
   - 検索ボタンは common-all.css 管理だが、
     ボタン要素化に伴う初期化だけ念のため。
------------------------------ */
.header_search {
  font: inherit;
}
.header_search:hover { cursor: pointer; }

/* ------------------------------
   ここから下は、必要に応じて
   #g-search（検索）と #g-nav（メニュー）の
   見た目差分を追加していけます。
   例）片側を狭く、角丸を強める等
------------------------------ */

/* 例：検索パネルを“広め”、メニューパネルを“やや細め”に見せたい場合は以下を微調整
.site-panel--search .panel-inner { max-width: 1200px; margin: 0 auto; }
.site-panel--nav    .panel-inner { max-width: 720px;  margin-left: auto; }
*/

/* 〜600px（SP） */
@media screen and (max-width: 600px) {
 /* ------------------------------
   パネル（共通）
------------------------------ */
#g-nav,
#g-search {
  position: fixed;
  z-index: 999;            /* ヘッダーより前面に */
  right: 0;
  top: -180%;              /* 初期は画面外上に退避 */
  width: 100%;
  height: 85vh;            /* 表示領域 */
  background: white;
  transition: all 0.6s;
  border-right: 5px solid #FBE673;
  border-left: 5px solid #FBE673;
  border-bottom: 5px solid #FBE673;
  border-radius: 0 0 50px 50px;
	display: flex;
	justify-content: center;
}

/* ========== 右側パネル (#g-nav) を全画面の透明オーバーレイにする ========== */
#g-nav.site-panel-right {
  /* ここでは背景や枠は付けない。全画面の透明レイヤー */
  background: transparent;
  border: none;
  border-radius: 0;
  justify-content: stretch; /* 中身の幅を自由にする */
}

/* ========== 右端に出す白い箱は .panel-inner に当てる ========== */
#g-nav.site-panel-right .panel-inner {
  margin-left: auto;       /* 右端に寄せる */
  width: 100vw;             /* 右パネルの幅（%でもpxでもOK） */
  max-width: 540px;        /* お好みで上限 */
  height: 100%;
  background: #fff;
	left: auto!important;
	right: 0;

  /* 枠と角丸はここに付ける */
  border-right: 5px solid #00C3C5;
  border-left: 5px solid #00C3C5;
  border-bottom: 5px solid #00C3C5;
  border-radius: 0 0 50px 50px;

  padding: 20px;
  box-sizing: border-box;
  overflow: auto;          /* 中身が多い時はスクロール */
}

/* 中身が古いスタイルを引きずらないように最小限リセット */
#g-nav.site-panel-right .headerNav_right {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
}

/* 画像がはみ出さない保険 */
#g-nav.site-panel-right img {
  max-width: 100%;
  height: auto;
}

/* 開いた時の位置（そのままでOK） */
#g-nav.panelactive,
#g-search.panelactive {
  top: 60px;
}

/* 中身スクロール（共通） */
#g-nav.panelactive #g-nav-list,
#g-nav.panelactive .panel-inner,
#g-search.panelactive .panel-inner {
	padding-top: 0;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* コンテンツ内側の余白（共通ラッパ） */
.panel-inner {
	max-width: 1180px;
}

/* ------------------------------
   オーバーレイ
------------------------------ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;            /* パネルの一つ下 */
  transition: opacity .25s;
}
.menu-overlay[hidden] {
  opacity: 0;
  pointer-events: none;
}

/* 背景スクロール固定 */
body.no-scroll {
  overflow: hidden;
}

/* ------------------------------
   ハンバーガーボタン
------------------------------ */
.openbtn {
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 0;
  position: relative;
  background-color: white; /* 既存踏襲 */
	border-radius: 55%;
	border: solid 1px #00C3C5;
}

/* 三本線 */
.openbtn span {
  display: inline-block;
  transition: all 0.4s;
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background-color: #00C3C5;
  width: 45%;
}
.openbtn span:nth-of-type(1) { top: 13px; left: 14px;}
.openbtn span:nth-of-type(2) { top: 23px; left: 14px;}
.openbtn span:nth-of-type(3) { top: 33px; left: 14px;}

/* アクティブ（×に変形） */
.openbtn.active span:nth-of-type(1) {
  top: 18px;
  left: 9px;
  transform: translateY(6px) rotate(-45deg);
  width: 65%;
}
.openbtn.active span:nth-of-type(2) { opacity: 0; }
.openbtn.active span:nth-of-type(3) {
  top: 30px;
  left: 9px;
  transform: translateY(-6px) rotate(45deg);
  width: 65%;
}

/* ------------------------------
   キーボード操作・アクセシビリティ
------------------------------ */
.openbtn:focus-visible,
.header_search:focus-visible,
#g-nav a:focus-visible,
#g-search a:focus-visible,
.menu-overlay:focus-visible {
  outline: 3px solid #ffb703;   /* 視認性の高いフォーカス */
  outline-offset: 2px;
}

/* 動きを減らす設定に配慮 */
@media (prefers-reduced-motion: reduce) {
  #g-nav, #g-search, .openbtn span, .menu-overlay {
    transition: none !important;
  }
}

/* ------------------------------
   既存レイアウト補助（任意）
   - 検索ボタンは common-all.css 管理だが、
     ボタン要素化に伴う初期化だけ念のため。
------------------------------ */
.header_search {
  font: inherit;
}
.header_search:hover { cursor: pointer; }

/* ------------------------------
   ここから下は、必要に応じて
   #g-search（検索）と #g-nav（メニュー）の
   見た目差分を追加していけます。
   例）片側を狭く、角丸を強める等
------------------------------ */

/* 例：検索パネルを“広め”、メニューパネルを“やや細め”に見せたい場合は以下を微調整
.site-panel--search .panel-inner { max-width: 1200px; margin: 0 auto; }
.site-panel--nav    .panel-inner { max-width: 720px;  margin-left: auto; }
*/
}


@media screen and (min-width:601px) and (max-width:1024px){
	/* ------------------------------
   パネル（共通）
------------------------------ */
#g-nav,
#g-search {
  position: fixed;
  z-index: 999;            /* ヘッダーより前面に */
  right: 0;
  top: -180%;              /* 初期は画面外上に退避 */
  width: 100%;
  height: 600px;            /* 表示領域 */
  background: white;
  transition: all 0.6s;
  border-right: 5px solid #FBE673;
  border-left: 5px solid #FBE673;
  border-bottom: 5px solid #FBE673;
  border-radius: 0 0 50px 50px;
	display: flex;
	justify-content: center;
}

/* ========== 右側パネル (#g-nav) を全画面の透明オーバーレイにする ========== */
#g-nav.site-panel-right {
  /* ここでは背景や枠は付けない。全画面の透明レイヤー */
  background: transparent;
  border: none;
  border-radius: 0;
  justify-content: stretch; /* 中身の幅を自由にする */
}

/* ========== 右端に出す白い箱は .panel-inner に当てる ========== */
#g-nav.site-panel-right .panel-inner {
  margin-left: auto;       /* 右端に寄せる */
  width: 40vw;             /* 右パネルの幅（%でもpxでもOK） */
  max-width: 540px;        /* お好みで上限 */
  height: 80%;
  background: #fff;
	left: auto!important;
	right: 0;

  /* 枠と角丸はここに付ける */
  border-right: 5px solid #00C3C5;
  border-left: 5px solid #00C3C5;
  border-bottom: 5px solid #00C3C5;
  border-radius: 0 0 50px 50px;

  padding: 10px;
  box-sizing: border-box;
  overflow: auto;          /* 中身が多い時はスクロール */
}

/* 中身が古いスタイルを引きずらないように最小限リセット */
#g-nav.site-panel-right .headerNav_right {
  width: 100%;
  border: 0;
  margin: 0;
  padding: 0;
}

/* 画像がはみ出さない保険 */
#g-nav.site-panel-right img {
  max-width: 100%;
  height: auto;
}

/* 開いた時の位置（そのままでOK） */
#g-nav.panelactive,
#g-search.panelactive {
  top: 115px;
}
}