@charset "UTF-8";
/* CSS Document */
/* ===== ルート・基本 ===== */
:root {
    --fonts-color: #051332;
    --hover-color:#83776a;
    --bg-tya:#4f3d2b;
    --link-color:#888266;
    --link-hover:#5c5845;
}
/* ===== ドロワーメニュー ===== */

/* ==================== ドロワーメニュー完全版 ==================== */

/* メインコンテンツ移動 */
.contents {
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    box-shadow: 0 0 50px 0 rgba(0,0,0,.8);
    transition: all 0.5s;
}
.check:checked ~ .contents {
    transform: translateX(-300px);
}

/* ドロワーメニュー */
.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 20px 0;
    background: #333;
    transition: all 0.5s;
    transform-origin: right center;
    transform: perspective(500px) rotateY(-90deg);
    opacity: 0;
    z-index: 111111;
    overflow-y: auto;
}

.drawer-menu li {
    text-align: left;
}

.drawer-menu li a {
    display: block;
    width: 100%;
    box-sizing: border-box; /* padding含めて100% */
    color: #fff;
    font-weight: bold;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.drawer-menu li a:hover {
    color: #5E4923;
}

/* ドロワータイトル・サブタイトル */
.drawer-title {
    font-weight: 700;
    margin-top: 20px;
}

.drawer-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.6;
    margin-top: 12px;
    background-color: #fff;
    display: inline-block;
    padding: 3px 10px;
}

.drawer-child a, .drawer-nagumo a {
    font-size: .8em!important;
}

/* チェックボックス非表示 */
.check {
    display: none;
}

/* ---------------- メニューボタン ---------------- */
.menu-btn {
    position: fixed;
    top: 0;
    right: 0;
    width: 52px;
    height: 50px;
    cursor: pointer;
    z-index: 111114;
    background-color: #333;
    padding: 3px;
}

/* ハンバーガーのバー */
.bar {
    position: absolute;
    left: 11px;
    width: 33px;
    height: 1px;
    background: #fff;
    transition: all 0.5s;
    transform-origin: center;
}

.bar.top {
    top: 7px;
}
.bar.middle {
    top: 16px;
}
.bar.bottom {
    top: 25px;
}

/* メニューテキスト */
.menu-btn__text {
    position: absolute;
    bottom: 3px;
    left: 11px;
    margin: auto;
    color: #fff;
    transition: all 0.5s;
    font-size: 10px!important;
    font-family: "Outfit", sans-serif;
    letter-spacing: 1px;
}

/* ---------------- ドロワー開閉 ---------------- */
.check:checked ~ .drawer-menu {
    transform: none;
    opacity: 1;
    z-index: 13;
}

.check:checked ~ .menu-btn .menu-btn__text {
    opacity: 0;
    visibility: hidden;
}

/* ハンバーガー → × アニメーション */
.check:checked ~ .menu-btn .bar.top {
    transform: rotate(45deg);
    top: 25px; /* 中央に重ねる */
}
.check:checked ~ .menu-btn .bar.middle {
    opacity: 0;
}
.check:checked ~ .menu-btn .bar.bottom {
    transform: rotate(-45deg);
    top: 25px; /* 中央に重ねる */
}

/* 背景のオーバーレイ */
.check:checked ~ .close-menu {
    background: rgba(0,0,0,.2);
    visibility: visible;
    opacity: 1;
    z-index: 3;
}
.close-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    visibility: hidden;
    opacity: 0;
    z-index: 2;
}

/* スクロール対策 */
.drawer-menu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------------- メディアクエリ ---------------- */
@media (max-width: 768px) {
    .drawer-menu {
        width: 100%;
    }
    .check:checked ~ .contents {
        transform: translateX(-300px);
    }
}