/**
 * Drawer Menu Component Styles
 *
 * @package NONKE_SPA
 * @since 1.0.0
 */

/* ドロワーメニュー */
.c-drawerMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 10000; /* 固定フッターより前面 */
    transition: right 0.3s ease;
}

.c-drawerMenu.is-open {
    right: 0;
}

/* オーバーレイ */
.c-drawerMenu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.c-drawerMenu.is-open .c-drawerMenu__overlay {
    opacity: 1;
}

/* メニュー本体 */
.c-drawerMenu__inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #303c09;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

/* 背景画像用の疑似要素 */
.c-drawerMenu__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--drawer-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* 黒いモヤ */
.c-drawerMenu__inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.c-drawerMenu.is-open .c-drawerMenu__inner {
    transform: translateX(0);
}

/* 閉じるボタン */
.c-drawerMenu__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.c-drawerMenu__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #fff5b8;
    transform-origin: center;
}

.c-drawerMenu__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.c-drawerMenu__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.c-drawerMenu__close:hover span {
    background: #fff;
}

/* ヘッダー部分（削除） */
.c-drawerMenu__head {
    display: none;
}

/* メニューボディ */
.c-drawerMenu__body {
    padding: 30px 0;
}

/* メニューリスト */
.c-drawerMenu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.c-drawerMenu__list li {
    border-bottom: 1px solid rgba(255, 245, 184, 0.2);
}

.c-drawerMenu__list a {
    display: block;
    padding: 20px 30px;
    color: #fff5b8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.c-drawerMenu__list a:hover {
    background-color: rgba(255, 245, 184, 0.1);
    padding-left: 35px;
    color: #fff;
}

.c-drawerMenu__list .current-menu-item > a {
    color: #fff;
    font-weight: 700;
    background-color: rgba(255, 245, 184, 0.15);
}

/* サブメニュー */
.c-drawerMenu__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
}

.c-drawerMenu__list .sub-menu a {
    padding-left: 50px;
    font-size: 14px;
}

/* 多言語切替（モバイル） */
.c-drawerMenu__lang {
    padding: 30px;
    border-top: 1px solid rgba(255, 245, 184, 0.2);
}

/* ウィジェットエリア */
.c-drawerMenu__widget {
    padding: 30px;
}

/* bodyのスクロール防止 */
body.is-drawerOpen {
    overflow: hidden;
}

/* PCでは非表示 */
@media (min-width: 961px) {
    .c-drawerMenu {
        display: none;
    }
}