/* Astra標準の開いたメニューを消す */
.ast-mobile-popup-drawer,
.ast-mobile-popup-overlay,
.ast-builder-menu-mobile,
.ast-header-break-point .main-header-bar-navigation,
.ast-header-break-point .main-navigation,
.ast-header-break-point .ast-mobile-menu-buttons,
.ast-header-break-point .ast-mobile-menu-expanded,
.ast-header-break-point .menu-toggle .ast-close-svg,
.ast-header-break-point .ast-builder-menu-mobile-focus-item{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;

}

/* bodyにopen系classが付いても止める */
body.ast-main-header-nav-open .ast-mobile-popup-drawer,
body.ast-main-header-nav-open .main-header-bar-navigation,
body.ast-main-header-nav-open .ast-builder-menu-mobile{
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* スクロール固定 */
body.drawer-open{
    overflow: hidden;
}

/* オーバーレイ */
.mithril-drawer-overlay {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
.mithril-drawer-overlay.is-open { display: block; }

/* ドロワー本体 */
.mithril-drawer {
    position: fixed;
    top: 0;
    right: -2000px;   /* 右から出す場合 */
    width: calc(100% - 560px);
    height: 100vh;
    background: #1c2820;
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 0;
    overflow: visible;
}
.mithril-drawer.is-open { right: 0; }

.mithril-drawer:after {
    content: "";
    position: absolute;
    width: 560px;
    height: 100vh;
    left: 0%;
    top: 50%;
    transform: translate(-100%, -50%);
    background-image: url('/wp-content/uploads/2026/05/header_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.mithril-drawer > * {
    position: relative;
    z-index: 1;
  }

  .mithril-drawer__inner{
    height: calc(100% - 80px);
    margin-top: 80px;
    padding: 0 80px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* 閉じるボタン（×） */
.mithril-drawer__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
.mithril-drawer__close span {
    display: block;
    width: 100%;
    height: 2px;
    background: #aea18a;
    position: absolute;
    left: 0;
}
.mithril-drawer__close span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.mithril-drawer__close span:nth-child(2) { transform: rotate(-45deg); top: 15px; }

/* ロゴ */
.mithril-drawer__logo {
    position: absolute;
    top: 20px;
    left: 80px;
    width: 120px;
    cursor: pointer;
  }
  .mithril-drawer__logo:hover{
    opacity: 0.8;
  }

/* メニューリスト */
.mithril-drawer__nav{
    width: 620px;
    margin-top: 40px;
}

.mithril-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.mithril-drawer__list a {
    position: relative;
    display: inline-block;
    padding-left: 24px;
    color: #aea18a;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.1em;
    transition: opacity .3s ease;
}

.mithril-drawer__list a::before{
    content: "○";    
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%); 
    opacity: 0;
    transition: opacity .3s ease;
}

.mithril-drawer__list a:hover{
    color: #f7f4f1;
}

.mithril-drawer__list a:hover::before{
    opacity: 1;
}

/* SNS・体験予約ボタン */
.mithril-drawer__down{
    display: flex;
    justify-content: flex-end;
    width: 620px;
    margin-top: 120px;
    gap: 4em;
}

/* SNS */
.mithril-drawer__sns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    padding: 10px 0;
  }
  
  .mithril-drawer__sns a {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.3s ease;
  }
  
  .mithril-drawer__sns a:hover {
    opacity: 0.7;
  }
  
  .mithril-drawer__sns img {
    width: 27px;
    height: auto;
    display: block;
  }

  /* 体験予約ボタン */
.mithril-drawer__trial {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 250px;
    gap: 0;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .mithril-drawer__trial:hover {
    color: #1c2820 !important;
    opacity: 0.85;
    transform: translateY(-2px);
  }

  .mithril-drawer__trial-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 50px;
    background: #fff;
    color: #1c2820;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.15em;
    line-height: 1;
    flex-shrink: 0;
  }
  
  .mithril-drawer__trial-arrow {
    display: flex;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-left: -1px;
  }
  
  .mithril-drawer__trial-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

.mithril-sidebar--right {
  height: 100vh !important;
  min-height: 100vh !important;
  top: 0 !important;
}

  @media (max-width: 1025px){

    .mithril-drawer{
        width: calc(100% - 200px);
    }

    .mithril-drawer::after{
        width: 200px;
    }
  
    .mithril-drawer__nav{
        width: 250px;
        margin-top: 20px;
    }

    .mithril-drawer__down{
        width: 250px;
        justify-content: center;
        flex-direction: column;
        margin-top: 30px;
        gap: 2em;
    }

    .mithril-drawer__sns {
        justify-content: flex-end;
      }
    
    .mithril-drawer__trial {
        width: 100%;
        justify-content: center;
        margin: 0 auto;
      }
    
      .mithril-drawer__trial-text {
        width: calc(100% - 50px);
      }
  }

  @media (max-width: 767px){

    .mithril-drawer{
        width: calc(100% - 100px);
    }
  
    .mithril-drawer::after{
        width: 100px;
        background-image: url('/wp-content/uploads/2026/05/header_bg_sp.webp');
    }

    .mithril-drawer__inner{
      padding: 0 20px 40px;
  }

    .mithril-drawer__logo {
        left: 20px;
      }

      .mithril-drawer__nav{
        width: 100%;
    }

    .mithril-drawer__list {
        gap: 24px;
    }

    .mithril-drawer__list a {
        font-size: 14px;
    }

    .mithril-drawer__down{
        width: 100%;
    }

 
  }