/* =============================================
   ハンバーガーメニュー
   ============================================= */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger-menu:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #3a3a3a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ハンバーガーメニューがアクティブな時のスタイル */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* メニューオーバーレイ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* メニューコンテンツ */
.menu-content {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100%;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.menu-content.active {
    right: 0;
}

/* メニューロゴ */
.menu-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-logo .logo-square {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.menu-logo .logo-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-logo h2 {
    font-size: 24px;
    font-weight: 600;
    color: #3a3a3a;
    letter-spacing: 1px;
}

/* メニューナビゲーション */
.menu-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-nav-item {
    margin-bottom: 20px;
}

.menu-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #3a3a3a;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.menu-nav-link:hover {
    background: #ff9999;
    color: white;
    transform: translateX(5px);
}

.menu-nav-link:hover .icon-square {
    border-color: white;
}

/* メニューフッター */
.menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* メニュー内のアニメーション背景 */
.menu-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    opacity: 0.03;
}

/* =============================================
   レスポンシブ対応
   ============================================= */
@media (max-width: 480px) {
    .menu-content {
        width: 280px;
        padding: 20px;
    }

    .hamburger-menu {
        width: 45px;
        height: 45px;
    }

    .hamburger-line {
        width: 25px;
    }

    .menu-logo h2 {
        font-size: 20px;
    }

    .menu-nav-link {
        font-size: 15px;
        padding: 10px 12px;
    }
}

/* =============================================
   フッター コンポーネント
   ============================================= */
footer {
    margin-top: auto;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff9999;
}

/* フッターのレスポンシブ対応 */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}