@charset "UTF-8";
/* ==========================================================================
   gnav.css — 全ページ共通 ハンバーガードロワー (gnav.php)
   読み込み: header.php (全ページ常時)
   トリガー: 任意の [data-gnav-toggle="open"] 要素 (front-page では .home-header__menu)
   開閉JS: js/menu.js
   寸法: SP は 1500px ベース — calc(N * var(--u-sp) / 1500)
   ※ 後々デザイン変更予定。最小骨組み実装。
   ========================================================================== */

/* PC (>=1025px) ではドロワー・トリガーは非表示 */
.gnav__drawer,
.gnav__trigger {
  display: none;
}

/* スクロールロック (ドロワー開時) */
body.is-gnav-open {
  overflow: hidden;
}

/* ==========================================================================
   ▼▼▼ SP / Tablet (max-width: 1024px) ▼▼▼
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --u-sp: min(100vw, 750px);
    --gnav-c-ink: #544b42;
    --gnav-c-black: #231815;
    --gnav-c-overlay: rgba(252, 252, 252, 0.95);
    --gnav-ff-en: 'Roboto', 'Noto Sans JP', sans-serif;
    --gnav-ff-jp: 'YuGothic', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  }

  /* ============================== ドロワー本体 ============================== */
  .gnav__drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--gnav-c-overlay);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    -webkit-overflow-scrolling: touch;
  }
  .gnav__drawer.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
  }

  .gnav__inner {
    display: flex;
    flex-direction: column;
    gap: calc(80 * var(--u-sp) / 1500);
    width: 100%;
    min-height: 100%;
    padding-bottom: calc(80 * var(--u-sp) / 1500);
  }

  /* ============================== 上部 (ロゴ + ✕) ============================== */
  .gnav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: calc(40 * var(--u-sp) / 1500);
  }

  /* ロゴサイズは home-header__logo (front-page.css SP) と揃える */
  .gnav__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  .gnav__logo-img {
    display: block;
    width: calc(420 * var(--u-sp) / 1500);
    height: auto;
  }

  .gnav__close {
    position: relative;
    width: calc(150 * var(--u-sp) / 1500);
    height: calc(75 * var(--u-sp) / 1500);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .gnav__close-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: calc(3 * var(--u-sp) / 1500);
    background: var(--gnav-c-black);
  }
  .gnav__close-bar:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .gnav__close-bar:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  /* ============================== メニューリスト ============================== */
  .gnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(12 * var(--u-sp) / 1500);
    width: calc(1000 * var(--u-sp) / 1500);
    max-width: 100%;
    align-self: center;
  }
  .gnav__item {
    width: 100%;
  }
  .gnav__link {
    display: flex;
    align-items: center;
    gap: calc(20 * var(--u-sp) / 1500);
    padding: calc(20 * var(--u-sp) / 1500) calc(40 * var(--u-sp) / 1500);
    color: var(--gnav-c-ink);
    text-decoration: none;
  }
  .gnav__icon {
    display: block;
    flex-shrink: 0;
    width: calc(20 * var(--u-sp) / 1500);
    height: calc(20 * var(--u-sp) / 1500);
    background: rgba(84, 75, 66, 0.6);
  }
  .gnav__en {
    font-family: var(--gnav-ff-en);
    font-weight: 700;
    font-size: calc(36 * var(--u-sp) / 1500);
    line-height: 1;
    letter-spacing: 0.02em;
  }
  .gnav__jp {
    font-family: var(--gnav-ff-jp);
    font-weight: 700;
    font-size: calc(24 * var(--u-sp) / 1500);
    line-height: 1;
    margin-left: calc(20 * var(--u-sp) / 1500);
  }
}
