@charset "UTF-8";
/* ============ PC / SP 表示切り替え ============ */
.pc_no { display: none !important; }

/* ============ ハンバーガーメニュー（SPのみ） ============ */
@media (max-width: 767px) {
  .sp_no { display: none !important; }
  .pc_no { display: block !important; }

  /* ヘッダー右上のボタンと重ならないよう余白を確保 */
  .header__top { padding-right: 72px; }

  /* --- ボタン --- */
  .btn-gnavi {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    background: var(--orange, #ee7d11);
    cursor: pointer;
  }
  .btn-gnavi span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s, opacity .3s, top .3s;
  }
  .btn-gnavi span:nth-child(1) { top: 16px; }
  .btn-gnavi span:nth-child(2) { top: 23px; }
  .btn-gnavi span:nth-child(3) { top: 30px; }

  /* 開いたとき：三本線 → × */
  .btn-gnavi.open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
  .btn-gnavi.open span:nth-child(2) { opacity: 0; }
  .btn-gnavi.open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

  /* --- メニュー本体（右からスライド） --- */
  #global-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: min(80%, 320px);
    height: 100vh;
    height: 100dvh;
    padding: 80px 0 40px;
    overflow-y: auto;
    background: var(--cream-light, #fff9f0);
    box-shadow: -4px 0 16px rgba(0, 0, 0, .08);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  body.drawer-open #global-nav {
    transform: none;
    visibility: visible;
  }

  /* 背景を暗くする */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  body.drawer-open::before {
    opacity: 1;
    visibility: visible;
  }

  /* 開いている間は背面をスクロールさせない */
  body.drawer-open { overflow: hidden; }

  /* --- メニュー項目 --- */
  .header-nav {
    list-style: none;
    margin: 0;
    padding: 0 24px;
  }
  .header-nav li { border-bottom: 1px dashed #e3d6c4; }
  .header-nav a {
    display: block;
    padding: 16px 4px;
    font-weight: 700;
    font-size: 15px;
    color: #333;
    text-decoration: none;
  }
  .header-nav a::after {
    content: "";
    float: right;
    margin-top: 8px;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--orange, #ee7d11);
    border-right: 2px solid var(--orange, #ee7d11);
    transform: rotate(45deg);
  }

  /* 最後の「お問い合わせ」はボタン表示 */
  .header-nav li:last-child { border-bottom: none; margin-top: 24px; }
  .header-nav li:last-child a {
    padding: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green, #12a743), var(--green-light, #3fcf62));
    color: #fff;
    text-align: center;
  }
  .header-nav li:last-child a::after { display: none; }
}
