/*
 * スマホ・タブレット用の全画面メニュー（991px以下）
 * 既存の Bootstrap ナビには依存しない、専用のマークアップ（header.php の .hs-burger / .hs-menu）。
 * PC（992px以上）では何も表示せず、従来のナビがそのまま使われる。
 */

.hs-burger,
.hs-menu {
  display: none;
}

@media (max-width: 991px) {

  /* 従来の三本線ボタンと折りたたみナビは、このサイズでは使わない */
  #menu-wrap .navbar-toggle,
  #menu-wrap #gnavi {
    display: none !important;
  }

  /* ---------- 三本線 → バツ ---------- */
  .hs-burger {
    position: fixed;
    top: 16px;
    right: 12px;
    z-index: 1060;
    display: block;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #232323;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .4s ease;
  }
  .hs-burger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
  .hs-burger span {
    position: absolute;
    left: 12px;
    width: 24px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: top .45s cubic-bezier(.7, 0, .2, 1), transform .45s cubic-bezier(.7, 0, .2, 1), opacity .2s ease;
  }
  .hs-burger span:nth-child(1) { top: 16px; }
  .hs-burger span:nth-child(2) { top: 23px; }
  .hs-burger span:nth-child(3) { top: 30px; }

  .hs-menu-open .hs-burger { color: #fff; }
  .hs-menu-open .hs-burger span:nth-child(1) { top: 23px; transform: rotate(45deg); }
  .hs-menu-open .hs-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hs-menu-open .hs-burger span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

  .hs-menu-open,
  .hs-menu-open body {
    overflow: hidden;
  }

  /* ---------- 全画面メニュー（ボタンの位置から円形に広がる） ---------- */
  .hs-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    background: #153d32; /* ロゴの背景色に合わせた緑 */
    color: #fff;
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 36px) 40px);
    transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .7s;
  }
  .hs-menu-open .hs-menu {
    visibility: visible;
    clip-path: circle(150% at calc(100% - 36px) 40px);
    transition-delay: 0s;
  }

  .hs-menu__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 76px 0 20px;
  }
  .hs-menu__logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
  }

  .hs-menu__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px 28px calc(36px + env(safe-area-inset-bottom, 0px));
  }
  .hs-menu__inner {
    max-width: 560px;
    margin: 0 auto;
  }

  /* ---------- 項目 ---------- */
  .hs-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .2);
  }
  .hs-menu__item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .hs-menu__toggle,
  .hs-menu__link {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 18px 40px 18px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .hs-menu__toggle:focus-visible,
  .hs-menu__link:focus-visible,
  .hs-menu__sub a:focus-visible,
  .hs-menu__btn:focus-visible,
  .hs-menu__tel a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .hs-menu__en {
    display: block;
    margin-bottom: 4px;
    font-family: "futura-pt", "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .24em;
    line-height: 1;
    color: rgba(255, 255, 255, .6);
  }
  .hs-menu__jp {
    display: block;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.4;
  }

  /* ＋ ／ － */
  .hs-menu__toggle::before,
  .hs-menu__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 16px;
    height: 1px;
    background: #fff;
    transition: transform .4s cubic-bezier(.7, 0, .2, 1);
  }
  .hs-menu__toggle::after { transform: rotate(90deg); }
  .is-open > .hs-menu__toggle::after { transform: rotate(0); }

  /* 直接のリンクは右向きの矢印 */
  .hs-menu__link::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    transform: rotate(45deg);
  }

  /* 子項目（滑らかに開閉） */
  .hs-menu__sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .45s cubic-bezier(.7, 0, .2, 1);
  }
  .is-open > .hs-menu__sub { grid-template-rows: 1fr; }
  .hs-menu__sub > ul {
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
  }
  .hs-menu__sub li:last-child { padding-bottom: 14px; }
  .hs-menu__sub a {
    position: relative;
    display: block;
    padding: 11px 0 11px 24px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    letter-spacing: .05em;
    line-height: 1.5;
    text-decoration: none;
  }
  .hs-menu__sub a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 1px;
    background: rgba(255, 255, 255, .5);
  }

  /* ---------- ご予約・オンラインストア ---------- */
  .hs-menu__cta {
    display: grid;
    gap: 12px;
    margin-top: 32px;
  }
  .hs-menu__btn {
    display: block;
    padding: 17px 12px;
    border: 1px solid #fff;
    background: #fff;
    color: #153d32;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
  }
  .hs-menu__btn--ghost {
    background: transparent;
    color: #fff;
  }

  .hs-menu__tel {
    margin: 28px 0 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: .08em;
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
  }
  .hs-menu__tel a {
    display: inline-block;
    margin-top: 2px;
    color: #fff;
    font-family: "futura-pt", "Helvetica Neue", Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: .1em;
    text-decoration: none;
  }

  /* ---------- 開くとき、項目が順に現れる ---------- */
  .hs-menu-open .hs-menu__head,
  .hs-menu-open .hs-menu__item,
  .hs-menu-open .hs-menu__cta,
  .hs-menu-open .hs-menu__tel {
    animation: hsMenuIn .6s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hs-menu-open .hs-menu__head { animation-delay: .25s; }
  .hs-menu-open .hs-menu__item:nth-child(1) { animation-delay: .30s; }
  .hs-menu-open .hs-menu__item:nth-child(2) { animation-delay: .35s; }
  .hs-menu-open .hs-menu__item:nth-child(3) { animation-delay: .40s; }
  .hs-menu-open .hs-menu__item:nth-child(4) { animation-delay: .45s; }
  .hs-menu-open .hs-menu__item:nth-child(5) { animation-delay: .50s; }
  .hs-menu-open .hs-menu__cta { animation-delay: .55s; }
  .hs-menu-open .hs-menu__tel { animation-delay: .62s; }
}

@keyframes hsMenuIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-burger span,
  .hs-burger,
  .hs-menu,
  .hs-menu__sub,
  .hs-menu__toggle::before,
  .hs-menu__toggle::after { transition-duration: .01s !important; transition-delay: 0s !important; }
  .hs-menu-open .hs-menu__head,
  .hs-menu-open .hs-menu__item,
  .hs-menu-open .hs-menu__cta,
  .hs-menu-open .hs-menu__tel { animation: none; }
}
