@charset "UTF-8";

/* =========================================
   hamburger.css - シネマティックデザイン
   ========================================= */

/* --- ハンバーガーボタンの配置 --- */
.hamburger {
    position: absolute;
    left: 0px;
    /* ヘッダーより上に表示させる */
    z-index: 1001; 
}

.btn-trigger {
    position: relative;
    width: 50px;
    height: 44px;
    cursor: pointer;
}

/* --- ボタンの3本線 --- */
.btn-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px; /* 少し細くして洗練させる */
    background-color: #fff; /* ダーク背景に合わせて白に変更 */
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5); /* 影をつけて立体感を出す */
}

.btn-trigger,
.btn-trigger span {
    display: inline-block;
    transition: all 0.5s;
    box-sizing: border-box;
}

.btn-trigger span:nth-of-type(1) {
    top: 10px; /* 位置を少し調整 */
}

.btn-trigger span:nth-of-type(2) {
    top: 20px;
}

.btn-trigger span:nth-of-type(3) {
    bottom: 10px; /* 位置を少し調整 */
}

/* --- ×印になるアニメーション --- */
#btn01.active span:nth-of-type(1) {
    -webkit-transform: translateY(10px) rotate(-45deg); /* 数値を調整 */
    transform: translateY(10px) rotate(-45deg);
    background-color: #ff8b5e; /* 開いた時はオレンジ色にする */
}

#btn01.active span:nth-of-type(2) {
    opacity: 0;
}

#btn01.active span:nth-of-type(3) {
    -webkit-transform: translateY(-10px) rotate(45deg); /* 数値を調整 */
    transform: translateY(-10px) rotate(45deg);
    background-color: #ff8b5e; /* 開いた時はオレンジ色にする */
}


/* --- ナビゲーションメニュー本体 --- */
#nav {
    display: flex;
    flex-direction: column; /* 明示的に縦並び */
    
    /* ダークモード背景（すりガラス効果） */
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    
    width: 260px;
    height: 100vh; /* 画面の高さ100% */
    padding: 80px 16px 20px; /* 上部に余白を取り、ボタンと被らないように */
    z-index: 1000;
    
    /* ドロワーナビゲーションの配置 */
    position: fixed;
    right: -270px;
    top: 0;
    
    /* 開く、閉じるアニメーション（少しリッチな動きに） */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

#nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* --- メニューリンクのデザイン --- */
#nav li a {
    color: #e0e0e0; /* 白に近いグレー */
    text-decoration: none;
    display: block;
    padding: 18px 10px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em; /* 文字間隔を広げて映画っぽく */
    transition: all 0.3s ease;
}

/* ホバー時のエフェクト */
#nav li a:hover {
    color: #ff8b5e; /* アクセントカラー（オレンジ） */
    background-color: rgba(255, 255, 255, 0.05); /* うっすら背景を明るく */
    padding-left: 20px; /* 右にスライドする動き */
}

/* 区切り線 */
.bo-da- {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* 薄い透明な線 */
}

.last, .last a {
    width: 100%;
}

/* --- ドロワーが開かれた時のスタイル --- */
.show {
    transform: translate3d(-270px, 0, 0);
}