@charset "UTF-8";

/* --- メインビュー背景（例） --- */
.mainView {
  width: 100vw;
  height: 100vh;
  background-color: #ccc;
}

/* --- ハンバーガーボタン全体（緑背景） --- */
.el_humburger {
  position: fixed;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  padding: 10px;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #00A651; /* 緑色 */
  transition: transform 0.3s ease;
}

/* hoverしたらふわっと拡大 */
.el_humburger:hover {
  transform: scale(1.05);
}

/* --- 2本線をまとめる --- */
.el_humburger_wrapper {
  width: 100%;
  height: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px; /* 2本線の間隔 */
}

/* --- 2本線（白い線） --- */
.el_humburger_bar {
  width: 40px;
  height: 5px;
  background-color: #fff;
  border-radius: 2px;
  transition: transform 0.4s ease, background 0.4s ease;
  transform-origin: center center;
}

/* --- 押したらクロスに変形 --- */
.js_humburgerOpen .el_humburger_bar.top {
  transform: translateY(8px) rotate(45deg);
}

.js_humburgerOpen .el_humburger_bar.bottom {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- ハンバーガーテキスト（MENU→CLOSE） --- */
.el_humburger_text {
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #fff;
  font-family: "游ゴシック Medium", YuGothic, "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  text-align: center;
  transition: opacity 0.3s ease;
}

/* MENUテキストとCLOSEテキストを分けて制御 */
.el_humburger_text__menu {
  display: block;
}

.el_humburger_text__close {
  display: none;
}

/* ボタンが開いたときの切り替え */
.js_humburgerOpen .el_humburger_text__menu {
  display: none;
}

.js_humburgerOpen .el_humburger_text__close {
  display: block;
}

/* ナビゲーション（メニュー本体） */
.navi {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;        /* ← ここが重要 */
  visibility: hidden;          /* ← ここも追加 */
  transition: all 0.6s ease;
  z-index: 999;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 50px 20px;
}

/* ナビが開いたとき */
.js_humburgerOpen .navi {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;        /* ← 有効にする */
  visibility: visible;         /* ← 表示する */
}


/* ナビの中身 */
.navi_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

/* ナビリンク（文字サイズ可変・自然行間） */
.navi_item {
  font-size: clamp(16px, 3vw, 24px);
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

.navi_item a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
  position: relative;         /* ★追加：クリック対象として明示 */
  z-index: 2001;              /* ★追加：他のUIの下敷き防止 */
  pointer-events: auto;       /* ★追加：無効化されていた場合に備え */
}

/* リンクホバー時 */
.navi_item a:hover {
  color: #00A651;
}

/* --- スマホ対応（幅840px以下） --- */
@media screen and (max-width: 840px) {
  .el_humburger {
    width: 60px;
    height: 60px;
    padding: 8px;
  }

  .el_humburger_wrapper {
    gap: 8px;
  }

  .el_humburger_bar {
    width: 30px;
    height: 4px;
  }

  .el_humburger_text {
    font-size: 12px;
  }

  .navi_item {
    font-size: clamp(14px, 4vw, 20px);
  }
}


.scroll-background {
  display: none;          /* JSでも非表示にするがCSSでも設定しておく */
  opacity: 0;
  transition: opacity 1.2s ease; /* スムーズなフェード効果 */
  background-color: white;       /* 背景色は適宜 */
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
     opacity: 0;
 display: block; /* クラスで非表示にしない構成なので block に */
}
.scroll-background.show {
  display: block;
  opacity: 1;
}


