@charset "UTF-8";

/*
 * ハンバーガーメニュー
 */

/* PC（768px以上）ではハンバーガーボタンを非表示 */
#hamburger-btn {
  display: none; /* PCでは完全に非表示 */
}
/* 1本目（通常時） */
.hamburger span:nth-child(1) {
  top: 4px;
}
/* 2本目（通常時） */
.hamburger span:nth-child(2) {
  top: 10px;
}
/* 3本目（通常時） */
.hamburger span:nth-child(3) {
  top: 16px;
}
/* ハンバーガーメニューが開いたときの「×」ボタン */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  background-color: #000; /* ×の色を黒に */
  top: 10px; /* 中心に揃える */
}
.hamburger.active span:nth-child(2) {
  opacity: 0; /* 真ん中の線を消す */
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  background-color: #000; /* ×の色を黒に */
  top: 10px; /* 中心に揃える */
}
/* メニューの全画面表示（初期状態） */
.mobile-menu {
  display: none;
  height: 100dvh; /* 画面全体を覆う */
  overflow-y: hidden; /* 初期状態ではスクロールを無効 */
}
/* メニューが開いた時 */
.mobile-menu.active {
  display: flex;
}
/* `Subscribe to Newsletter` を一番下に配置 */
.mobile-menu .front-subsc , .mobile-menu .custom-subsc { 
  display: block;
  text-align: left; /* 左寄せ */
  width: 100%;
  padding: 15px 10px;
  font-size: 1.2rem;
  color: #000;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-end; /* `Subscribe` を確実に最下部に配置 */
}
/* メニューリストのスタイル */
.mobile-menu ul {
  flex-grow: 1; /* メニュー部分を伸ばして、`Subscribe` を下に押し下げる */
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 0; /* 必要以上に拡大しないようにする */
  overflow-y: auto; /* 必要になった時のみスクロールを許可 */
}
.mobile-menu ul li {
  margin: 5px 0;
}
.mobile-menu ul li a {
  font-size: 2rem;
  color: #000 !important;
  text-decoration: none;
  display: block;
  padding: 10px 20px; /* 左の余白を確保 */
}
/* メニューが開いた状態 */
.mobile-menu.active {
  transform: translateY(0);
}

/* 1023px以下の場合、ハンバーガーメニューを表示 */
@media screen and (max-width: 1023px) {
   /* ハンバーガーメニューボタン */
  #hamburger-btn {
    display: block; /* 1024px以下で表示 */
    position: fixed;
    top: 10px;
    right: 12px;
    width: 25px;
    height: 20px;
    z-index: 1003; /* 最前面に */
    background: none;
    border: none;
    cursor: pointer;
  }
  /* ハンバーガーの3本線（通常時） */
  .hamburger span {
    display: block;
    position: absolute;
    width: 20px;
    height: 1px;
    background-color: #fff;
    left: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  /* モバイルメニュー */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background-color: #FFFFFF; /* 完全な白 */
    color: black; /* テキストカラーを黒に */
    display: flex; /* スマホ時のみ表示 */
    align-items: flex-start; /* メニューを上部に揃える */
    justify-content: flex-start; /* 左寄せに変更 */
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    z-index: 1001;
    opacity: 0; /* 透明状態からスタート */
    transform: scale(0.98); /* 少し縮小状態からスタート */
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
    pointer-events: none; /* 非表示時にクリック無効 */
  }
  /* メニューが開いた状態（ふわっと表示） */
  .mobile-menu.active {
    opacity: 1; /* しっかり表示 */
    transform: scale(1); /* 拡大して通常サイズに */
    pointer-events: auto; /* 表示時にクリック有効 */
  }
  /* ハンバーガーメニューのnewsletter */
  .mobile-menu .front-subsc, .mobile-menu .custom-subsc {
    font-size:1.3rem;
    font-weight: 600;
  }
}

