/* 操作説明画面専用スタイル */

/* ヘルプモーダル */
#helpModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
}

#helpModal.hidden {
    display: none;
}

.help-content {
    background: #1a1a1a;
    color: #fff;
    padding: 40px;
    border-radius: 14px;
    text-align: center;
    min-width: 400px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 2px solid #C1272D;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.help-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.help-header h2 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #C1272D;
}

.help-close-btn {
    background: #C1272D;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 15px;
    right: 15px;
}

.help-close-btn:hover {
    background: #a02020;
    transform: scale(1.1);
}

.help-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 70vh;
    margin: 20px 0;
}

.help-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.help-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 20px;
}

.help-nav-btn {
    background: #C1272D;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.help-nav-btn:hover:not(:disabled) {
    background: #a02020;
    transform: scale(1.1);
}

.help-nav-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.nav-arrow {
    font-weight: bold;
    font-size: 1.2em;
}

.help-page-info {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    font-family: 'Noto Serif JP', 'Yu Mincho', 'serif';
    min-width: 60px;
    text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .help-image {
        max-width: 90%;
        max-height: 80%;
    }
    
    .help-navigation {
        gap: 25px;
    }
    
    .help-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .help-content {
        padding: 30px 20px;
        min-width: 320px;
    }
    
    .help-header h2 {
        font-size: 1.6em;
    }
    
    .help-image {
        max-width: 95%;
        max-height: 70%;
    }
    
    .help-navigation {
        gap: 20px;
        margin-top: 15px;
    }
    
    .help-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .help-page-info {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .help-content {
        padding: 25px 15px;
        min-width: 280px;
    }
    
    .help-header h2 {
        font-size: 1.4em;
    }
    
    .help-close-btn {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
        top: 10px;
        right: 10px;
    }
    
    .help-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
}
