/* ============================================
   スマホ用ヘッダー設定
============================================ */
.sm-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: var(--sm-header-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-sizing: border-box;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 0.5rem;
}

.header-logo img {
    height: 45px;
    width: auto;
}

/* ============================================
   ハンバーガーメニューボタン
============================================ */
.hamburger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 5px;
    padding: 0;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================
   オーバーレイ（背景暗転）
============================================ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   スマホ専用固定フッター
============================================ */
.sm-footer {
    display: none;
}

/* ============================================
   スマホサイズ（max-width: 767px）
============================================ */
@media (max-width: 767px) {
    .sm-header {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .overlay {
        display: block;
    }
    
    .sm-footer {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--sm-footer-color);
        z-index: 1000;
    }
    
    .sm-footer-link {
        flex: 1;
        padding: 15px;
        text-align: center;
        color: white;
        text-decoration: none;
        font-size: 1rem;
        font-weight: bold;
    }
    
    .sm-footer-link:active {
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .sm-footer-divider {
        width: 1px;
        background-color: white;
    }
    
    /* メインコンテンツの下部余白（フッターに隠れないように） */
    #content {
        padding-bottom: 80px;
    }
}
